text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
copy-pasted and adopted them from one project to the next. This approach paid out very well, resulting in fast development, no overhead at all and a framework which actually was mightier than most Java frameworks out there but with only a few hundred lines of code in a single file plus some simple mod\_rewrite rules...
[ 0.4929862916469574, 0.010448827408254147, 0.17977985739707947, 0.49570780992507935, -0.22181034088134766, -0.14407020807266235, 0.2555816173553467, 0.0031545846723020077, -0.1404571533203125, -0.680948793888092, 0.2778284549713135, 0.5745492577552795, -0.29149681329727173, -0.1668972373008...
zero overhead. So why all that hassle with using this frameworks, why not throwing them all away and going back to the roots? What should I say to my boss when we're starting tomorrow the next project with a new framework again? Or are there maybe frameworks which really make a difference? Or some hidden adva...
[ 0.7071503400802612, 0.4452667236328125, -0.1672210395336151, 0.2144869565963745, -0.525262176990509, -0.4884543716907501, 0.26542678475379944, 0.05887006223201752, -0.18520362675189972, -0.17405684292316437, 0.34787672758102417, 0.5213138461112976, -0.10149011760950089, 0.1244405061006546,...
frameworks and most abstractions to manage such things create far more complexity than they solve. > > > Take any regular Java or .NET OMR, or any supposedly modern MVC framework for either which does "magic" to solve tedious, simple tasks. You end up writing huge amounts of ugly XML boilerplate that is difficult to ...
[ 0.4287688136100769, 0.25425124168395996, 0.004795348271727562, 0.5465373992919922, -0.23282605409622192, -0.39874082803726196, 0.4735298752784729, 0.08314497768878937, -0.0818689614534378, -0.738735556602478, -0.08409114927053452, 0.4010833203792572, -0.4461962878704071, 0.0319614931941032...
need most of that. > > > How about all the different application servers with their own darned descriptor syntax, the overly complex database and groupware products? > > > The point of this is not that complexity==bad, it's that unnecessary complexity==bad. I've worked in massive enterprise installations where some...
[ 0.11363410949707031, 0.5646865367889404, -0.005092785693705082, 0.21843485534191132, 0.00906831119209528, 0.055982302874326706, 0.2842108905315399, 0.036652009934186935, -0.22240546345710754, -0.7303356528282166, -0.06492900103330612, 0.6877681612968445, -0.5915512442588806, -0.05891364812...
Currently there are a lot of variations on the MVVM design pattern but as I understand it the view is allowed to have dependencies on the viewmodel. A colleague of mine disagrees but he couldn't provide a satisfactory explanation. E.g. my views contain a reference to their viewmodel. This is not needed for all views b...
[ 0.514262855052948, 0.17177273333072662, 0.5584596395492554, 0.17208531498908997, -0.0032119927927851677, -0.014837030321359634, 0.12082056701183319, -0.21063651144504547, -0.24189479649066925, -0.46547290682792664, 0.16915763914585114, 0.5962836742401123, 0.012331144884228706, 0.3876892030...
it get the information it needs to display itself? Usually just having the view model in the `DataContext` of the view is sufficient, but that still constitutes a dependency. Without the VM in the `DataContext`, the view would be useless. Sometimes you need the view to call back to the VM. Normally I just do this in m...
[ 0.07511444389820099, -0.3936295509338379, 0.6259778738021851, -0.023836005479097366, 0.005494657438248396, 0.04231547564268112, 0.04598109796643257, 0.07435021549463272, -0.13493961095809937, -0.5986022353172302, -0.35254544019699097, 0.7968935370445251, -0.011011275462806225, 0.1883146017...
on a particular view implementation, it is tightly coupled to the view and difficult to test as a result. If the VM needs to interact in some fashion with the view, you can abstract the requirements into an interface and have the view implement that interface. Then, when the view loads, it can provide the VM with a re...
[ 0.42233118414878845, -0.14478839933872223, 0.3026520907878876, 0.31084221601486206, -0.03501768410205841, 0.20641881227493286, -0.31539449095726013, -0.40000981092453003, -0.16658924520015717, -0.5742631554603577, -0.31715741753578186, 0.8262052536010742, -0.14407877624034882, 0.1031540483...
In [my question about searching for date ranges](https://stackoverflow.com/questions/778353/comparing-two-date-ranges-when-one-range-has-a-range-of-starting-dates) I tried simplifying the problem and inadvertently posed a different and simpler problem. Rather than complicate that question with an edit I am going to as...
[ 0.2969410717487335, -0.13338735699653625, 0.5482100248336792, 0.05275454744696617, 0.29546603560447693, -0.03658976033329964, -0.12739691138267517, -0.5518786311149597, -0.2146146148443222, -0.5483576059341431, 0.2664875388145447, 0.2865150570869446, -0.1460341513156891, 0.2990106046199798...
day slot which starts anytime in May." Now I can do this by: 1. Running 31 queries for each potential start day 2. Finding all bookings in May, condense them into one array of 31 booleans representing days and loop through looking for slots. I assume (2) is more efficient in most cases. Is there any better algorithms...
[ 0.2982112169265747, -0.232945516705513, 0.6092116236686707, 0.07288924604654312, 0.16512587666511536, -0.041599661111831665, 0.14974868297576904, 0.029296906664967537, -0.20081739127635956, -0.5335480570793152, -0.15503141283988953, 0.41644006967544556, -0.6039603352546692, 0.1838203519582...
`/` character (`%2f`) in a URI (even though this appears to be legal in my reading of [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986)). ``` Uri uri = new Uri("http://example.com/%2F"); Console.WriteLine(uri.AbsoluteUri); // prints: http://example.com// ``` (Note: [don't use Uri.ToString](https://faithlife.codes/b...
[ 0.3348834216594696, 0.239653080701828, 0.6037097573280334, -0.1497448831796646, -0.013897992670536041, -0.24389533698558807, 0.7459885478019714, -0.12092895060777664, -0.17953775823116302, -0.6176072359085083, -0.22707155346870422, 0.7235729098320007, -0.42640504240989685, 0.19347877800464...
visible, but the [documentation for `<schemeSettings>`](http://msdn.microsoft.com/en-us/library/ee656539.aspx) recommends this approach to allow escaped `/` characters in URIs. Note (as per that article) that there may be security implications for components that don't handle escaped slashes correctly.
[ 0.13443176448345184, -0.24088096618652344, 0.18176396191120148, -0.1489194929599762, 0.1678912490606308, 0.06543798744678497, 0.4277741611003876, 0.14389696717262268, -0.3187413215637207, -0.7578997611999512, -0.3939860761165619, 0.003546342719346285, -0.3019961416721344, 0.078109979629516...
I'm considering implementing one or two JSR APIs. I have not yet read the entire specification (the plan is to read them as I code the implementation) but I am very familiar with them. I have read that the JSR process includes implementing a Test Compatibility Kit (TCK) for testing said JSR implementations. Before I s...
[ 0.7248340845108032, 0.2887784242630005, 0.06489671021699905, -0.08146950602531433, -0.19863897562026978, -0.48290207982063293, 0.19234022498130798, -0.08120366185903549, 0.04063798487186432, -0.5139189958572388, 0.16263560950756073, 0.5533164739608765, -0.34883415699005127, 0.0135794524103...
could be defined as a TCK for the given JSR. So my question is basically: What steps do I need to do in order to produce my own implementation of a JSR spec and how do I verify that I have indeed done so. For what it's worth, I am considering implementing JSR-168 and JSR-286, but I think that is not relevant for thi...
[ 0.7553581595420837, 0.23425957560539246, 0.35399845242500305, 0.19570016860961914, -0.034938205033540726, -0.4656061828136444, 0.05084427818655968, -0.5171663165092468, -0.0870097205042839, -0.04638528823852539, -0.03315981850028038, 0.5951307415962219, -0.10664411634206772, -0.03693491593...
access to the TCK. Certainly with the Java SE specification, Sun does indeed charge a license fee for the TCK, unless you qualify as a non-profit organization to receive it for free. That said, I believe it varies from JSR to JSR, so as I said above, the best bet is to contact the JSR spec lead.
[ 0.47635045647621155, 0.17043055593967438, 0.3034965395927429, 0.24407802522182465, -0.13485752046108246, -0.7660629153251648, 0.1802491843700409, 0.2459668219089508, -0.22087708115577698, -0.3142986297607422, -0.11466547101736069, 0.48145508766174316, -0.07657573372125626, -0.0176344662904...
1. What is `UITransitionView`? 2. What is `UILayoutContainerView`? 3. Will I get in trouble for adding subviews to them? They are the superviews of a `UITableView` which is inside of a `UINavigationController` which is inside of a `UITabBarController`. `UITransitionView` I got by asking for the superview of the table...
[ 0.42109182476997375, -0.15693095326423645, 0.629134476184845, 0.17763268947601318, -0.13205528259277344, -0.19434754550457, 0.34270206093788147, 0.0843275934457779, -0.006939059589058161, -0.619138240814209, 0.0027191985864192247, 0.6431726813316345, -0.17966626584529877, 0.268801808357238...
(or be careful if you do do) is make assumptions about the view you are adding to. Specifically its class but even basic things like the fact that it even exists. What are you trying to do? There may be a simpler way - like adding your view directly to the app's UIWindow.
[ 0.5606598854064941, -0.3397475481033325, -0.032128941267728806, 0.377939373254776, 0.0284426212310791, -0.2792719304561615, 0.09992089867591858, 0.18111100792884827, -0.03201444074511528, -0.546890377998352, 0.15105655789375305, 0.6362472176551819, -0.14742600917816162, -0.1842509657144546...
I think my Webapplication gets shut down after a while. It returns a new session if I haven't used the application in maybe 5 minutes. The session timeout is set to 720 minutes so that can't be the issue. Is it maybe a setting in the Application Pool or something like that? I figure it is some sort of resource manage...
[ 0.33572712540626526, 0.07869791984558105, 0.3000938296318054, 0.0921083614230156, 0.10752362757921219, -0.3775794208049774, 0.7320810556411743, 0.10508926957845688, -0.3395675718784332, -0.6225354075431824, 0.1744537651538849, 0.7424486875534058, -0.047425586730241776, 0.09225596487522125,...
Service that woke up every 3 minutes and requested a page as @Wayne suggested. Worked like a charm.
[ 0.123526431620121, -0.2566504180431366, 0.18553365767002106, 0.2636682987213135, -0.590591311454773, 0.15020811557769775, 0.7455065250396729, 0.3988489508628845, -0.07908300310373306, -0.2680149972438812, 0.038518354296684265, 0.3375050723552704, -0.047350700944662094, 0.09192121028900146,...
I've developed few little Sharepoint application on *Microsoft Virtual PC* but now we start a new and bigger project on Sharepoint. What do you think? Should we switch from *VPC* to *VMWare* (Server?) or there is no significant performance differences? (Developer's hardware: notebook with external hard drive, 2GB mem...
[ 0.49777060747146606, 0.12101442366838455, 0.1886788308620453, 0.24276487529277802, -0.15491615235805511, 0.00866276677697897, 0.11089139431715012, 0.22944176197052002, -0.5706239938735962, -0.6626577377319336, 0.2624899744987488, 0.44074180722236633, -0.008423490449786186, 0.51175725460052...
Windows as much as under Linux/Unix --- **Edit** I think for SharePoint Development the only one really important thing is the remote debugger. Everything else is just "nice to have". * VPC vs. VMWare Workstation: VMWare wins. It has a lot really nice features, but nothing important for Sharepoint. * VPC vs. Virtua...
[ -0.006250961218029261, -0.09740354865789413, 0.43429118394851685, 0.4456867277622223, -0.39708763360977173, -0.22301113605499268, 0.07233324646949768, 0.4571480453014374, -0.3892604410648346, -0.7687832117080688, -0.05467496067285538, 0.5842077136039734, -0.15452584624290466, 0.49346137046...
I have created an msi to install my Windows form application and when i try to run the msi I get the following error: ``` "This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic" ``` I understan...
[ 0.30445149540901184, 0.20620040595531464, 0.3180404603481293, -0.1760542392730713, 0.05511300638318062, -0.2956758737564087, 0.520590603351593, -0.3665696978569031, 0.16708675026893616, -0.7663994431495667, -0.33954131603240967, 0.6391395926475525, -0.41498497128486633, 0.02320328541100025...
might be a conflict with your domain policy. You can try using: ``` msiexec /i product.msi /qb ``` I assume you're running as a local admin, not domain admin. You should also make sure that you haven't already installed the package.
[ 0.37073343992233276, 0.24418331682682037, 0.18433432281017303, -0.18667198717594147, 0.0306809451431036, -0.4237601161003113, 0.20379091799259186, 0.1546696424484253, 0.04849008843302727, -0.6236281394958496, -0.26406893134117126, 0.7523513436317444, -0.1323181688785553, 0.1709130108356475...
I have client/server program in C, through which I am transferring files to the client from server. But the client is waiting for recv even after receiving the last byte of the file. Client is terminating only if I kill it or server is killed by me. But server has to be in a loop as it to has to entertain the request ...
[ 0.31855309009552, -0.1216224804520607, 0.5612285137176514, 0.11573447287082672, 0.2662249505519867, 0.1578274518251419, 0.07773202657699585, 0.04357067495584488, -0.2133074849843979, -0.4966646432876587, -0.18977977335453033, 0.40823814272880554, -0.18068066239356995, 0.8446273803710938, ...
the whole server program is killed. Why doesn't the client terminate when the server's child exits? You can see server code [here](http://pastebin.com/m31451f56) and client code [here](http://pastebin.com/m71a01916). You should make sure that you call `shutdown(s, SHUT_WR`) followed by `close(s)` in the server proces...
[ 0.3129672110080719, 0.20575545728206635, 0.37455829977989197, -0.06008417159318924, 0.06172911450266838, -0.018791161477565765, 0.2934279441833496, 0.05979494750499725, -0.31111153960227966, -0.32634425163269043, -0.46339333057403564, 0.45787933468818665, -0.35596686601638794, 0.6035066246...
so it doesn't get torn down by the kernel. If after the `fork()` you add some extra logic: ``` if (p > 0) { close(connected); } ``` then your code works without a call to `shutdown()`. If you're using the code I sent in [my answer](https://stackoverflow.com/questions/778544/client-server-programme/778815#778815...
[ 0.06695050746202469, -0.06870818883180618, 0.43956461548805237, 0.044915661215782166, 0.18318654596805573, -0.10059980303049088, 0.27354156970977783, -0.10131018608808517, -0.426845520734787, -0.3695353865623474, -0.2302882820367813, 0.6514576077461243, -0.21392333507537842, 0.322702974081...
Can anyone suggest a DAO implementation for a web application? What will be the problem if I create a transaction for fundamental operation (e.g. `findByID()`, `findALL()`, `createObject()`, `deleteObject()`, etc.)? Please suggest a DAO implementation that supports lazy operations. If you use [Hibernate Tools](http:/...
[ -0.13375432789325714, -0.0338929183781147, 0.22542530298233032, -0.0787406712770462, 0.06720054894685745, 0.1145920380949974, 0.29667022824287415, -0.3872832953929901, -0.07289990782737732, -0.6408311724662781, -0.261529803276062, 0.5302209258079529, -0.5887824296951294, 0.0072542536072432...
transact.execute(parameters, tx); tx.commit(); LOG.trace("executeTransaction() success"); } catch (Exception e) { rollback(tx); throw new ApplicationException(e); } } private void rollback(Transaction tx) throws ApplicationException { LOG.warn("rollback()"); if (...
[ 0.35339730978012085, -0.4888469874858856, 0.5738929510116577, -0.09966594725847244, 0.27719366550445557, 0.27460312843322754, 0.25382480025291443, -0.4015004634857178, -0.11335114389657974, -0.3342401087284088, 0.06841488927602768, 0.7188346982002258, -0.6008622050285339, 0.363043367862701...
tx.rollback(); } catch (Exception ex) { LOG.error("rollback() failure",ex); } } } public interface Transact { public void execute(Object[] parameters, Transaction tx) throws Exception; } void updateDistrictImpl(final Distretto district) throws Applic...
[ 0.1719909906387329, -0.38981893658638, 0.471025288105011, -0.03911334276199341, 0.2421044260263443, 0.3158539831638336, 0.3119611144065857, -0.11203847080469131, -0.08953907340765, -0.43491384387016296, -0.216345876455307, 0.5638766884803772, -0.5231779217720032, 0.3434593379497528, 0.15...
LOG.trace("updateDistrict[" + distrettoToString(district) + "]"); executeTransaction(new Transact() { public void execute(Object[] parameters, Transaction tx) throws ApplicationException { DistrettoHome DistrettoDAO = new DistrettoHome(); DistrettoDAO.attachDirty(district); ...
[ -0.08832947164773941, -0.2144821435213089, 0.5011221766471863, -0.20143026113510132, 0.5707617998123169, 0.06748905777931213, 0.4370616674423218, -0.44519293308258057, -0.1975070834159851, -0.34818485379219055, -0.3450179994106293, 0.5849443674087524, -0.5452450513839722, 0.210746541619300...
throw e; } } ```
[ 0.011971427127718925, 0.2811923921108246, -0.08290339261293411, -0.47409728169441223, -0.10081463307142258, -0.3601531684398651, 0.4578741490840912, -0.0020157084800302982, 0.11897154152393341, -0.4769129455089569, -0.44864073395729065, 0.4588015377521515, -0.3038671314716339, 0.2196896374...
I'm new to linq and I'm trying to write an update statement. I have two tables, tblProject and tblPage. the two are linked via a foreign key in tblPage. So when trying to create a row in tblPage this it th inq query I have ``` public void CreatePage(int projectId, string pageName, DateTime createdDate, int creat...
[ 0.4075739085674286, 0.041365329176187515, 0.6020556688308716, -0.2838684022426605, -0.06207946687936783, -0.03419823572039604, 0.38262858986854553, -0.44261589646339417, -0.04772842302918434, -0.6871832609176636, 0.06465985625982285, 0.29281097650527954, -0.4135429263114929, 0.164084002375...
Page(); page.Project = db.ProjectSet.Single(p => p.ProjectId == projectId); page.LastUpdatedBy = updatedBy; page.LastUpdatedDate = updatedDate; page.CreatedBy = createdBy; page.CreatedDate = createdDate; page.PageName = pageName; }
[ 0.23087294399738312, -0.1298934370279312, 0.47573161125183105, -0.13157659769058228, -0.41597509384155273, 0.29845941066741943, 0.3734622299671173, -0.20495586097240448, -0.3027949035167694, -0.7887536883354187, -0.45824307203292847, -0.2741795778274536, -0.25704389810562134, 0.61984789371...
} ``` What I want to know is this the correct way of inserting a row via linq to Entities. Sorry if none of this makes sense :) Edit: I'm particulary interested if this line is the correct way ``` page.Project = db.ProjectSet.Single(p => p.ProjectId == projectId); ``` You're almost done... you have to actually i...
[ 0.13926155865192413, 0.21381594240665436, 0.5194112062454224, -0.0909266471862793, -0.10319198668003082, -0.1382182240486145, 0.10453537851572037, -0.0875069722533226, -0.11410237103700638, -0.7691340446472168, -0.1311909556388855, 0.288693904876709, -0.3043670356273651, 0.0247325487434864...
above. I'm pretty sure you can do something like this in EF: ``` page.Project.ProjectID = projectID; ``` So you don't have to download the "db.ProjectSet.Single" just to re-insert it.
[ 0.5276167392730713, 0.161775603890419, 0.017284495756030083, 0.051726773381233215, -0.06552375853061676, -0.4277813136577606, 0.2733997106552124, -0.2980642020702362, -0.2505180239677429, -0.6559388041496277, -0.07573933899402618, 0.5349045991897583, -0.2984248399734497, 0.0346821770071983...
I am trying to enhance my Logger class with some conditionals to control what to log and where to log. I've got two kinds of logging functions: ``` public static class Logger { [Conditional("Logging"), Conditional("VerboseLogging")] public static void Log(string msg, string filename) { // log to fi...
[ 0.2511915862560272, -0.014734456315636635, 0.3239240050315857, -0.1472381353378296, 0.018022622913122177, 0.028728650882840157, 0.39567556977272034, 0.07121306657791138, -0.2707842290401459, -0.5921456217765808, -0.1488848328590393, 0.6660019159317017, -0.4044020175933838, 0.15137396752834...
} } ``` However, running the following program ``` #define Logging #define VerboseLogging static void Main(string[] args) { Logger.Log("Logging", ""); Logger.VerboseLog("VerboseLogging", ""); } ``` yields only the output "Logging", missing "VerboseLogging". Debugging the application showed that VerboseLo...
[ -0.12591415643692017, -0.03426000475883484, 0.3533494472503662, -0.20756329596042633, -0.021368330344557762, -0.2935240566730499, 0.5974729657173157, 0.3318295180797577, -0.4836887717247009, -0.22138169407844543, -0.331651508808136, 0.6280040144920349, -0.5679194927215576, 0.13443011045455...
also, because `VerboseLog` will not call `Log` if `Logging` is not defined there. To add a project-wide conditional define, right click on your Project, and select Project Properties. Then go to the Build tab and enter "Logging, VerboseLogging" to the "Conditional compilation symbols" text box.
[ 0.368181437253952, -0.1984603852033615, -0.017179524526000023, 0.041306063532829285, 0.10335958749055862, -0.2887619733810425, 0.4179241955280304, 0.17268022894859314, -0.25109991431236267, -0.38170450925827026, -0.31893467903137207, 0.6918784379959106, 0.054427385330200195, -0.09026832133...
I am trying to setup a shared authentication system on a build server. We have several maven projects that declares how the deployment should be done regarding the different teams that we have (each team has its own authentication user/password): ``` <profile> <id>release-profile</id> <distributionManagement> ...
[ 0.45714715123176575, 0.14507749676704407, 0.26736879348754883, -0.13315212726593018, -0.12810222804546356, 0.19905830919742584, 0.05976731702685356, -0.48069220781326294, -0.43114611506462097, -0.5136673450469971, -0.13698989152908325, 0.5567581057548523, -0.03198806196451187, 0.0543725118...
<url>http://somewhere-snapshots</url> </snapshotRepository> </distributionManagement> </profile> ``` Then I declare in the settings.xml the authentification to the declared servers as following: ``` <servers> <server> <id>rep-releases</id> <username>${release.user.name}</username> <password>$...
[ 0.34348630905151367, 0.3090391457080841, 0.7634879946708679, -0.44447219371795654, -0.07820878177881241, 0.3316589891910553, 0.05850675329566002, -0.4630638659000397, -0.20431725680828094, -0.5423906445503235, -0.29487109184265137, 0.6341611742973328, -0.00517689436674118, -0.0804734006524...
<properties> <release.user.name>team1-user</release.user.name> <release.user.password>team1-password</release.user.password> </properties> </profile> ``` The problem is that when doing a deploy of the project I got an authentication error (HTTP 401) like the following: ``` Error deploying artifact: Failed ...
[ 0.007612104061990976, 0.07313276827335358, 0.0840248167514801, -0.2834976017475128, 0.22186578810214996, -0.11681678891181946, 0.22142858803272247, -0.5828799605369568, -0.13313812017440796, -0.5152314901351929, 0.21358704566955566, 0.7360609173774719, -0.0780222937464714, -0.2225163280963...
duplicated settings (except user/password) for each team and tie each project to the good maven installation. I must admit that this solution does not enchant me... The easiest and most direct method if you have multiple teams and thus multiple auth schemes, is just use a different id in the distributionManagement. So ...
[ 0.304335355758667, -0.2150341272354126, 0.3804756700992584, 0.16539768874645233, 0.09149136394262314, 0.25421470403671265, 0.3189554512500763, -0.20297925174236298, -0.5435919165611267, -0.7616536617279053, -0.31325581669807434, 0.6664524078369141, -0.3579501509666443, -0.23652997612953186...
build server. This approach does have a draw back that it would mess up inheritence if you defined the repos in a single corporate pom...but if you have a team level pom it would be easy. Another thought is why does the same build machine need to login as a different person when doing builds? Shouldn't that build ma...
[ 0.38759398460388184, -0.013301311060786247, 0.042237453162670135, 0.11947628110647202, -0.3467334508895874, -0.1809253841638565, 0.07885177433490753, -0.2104298621416092, -0.42094749212265015, -0.46230360865592957, -0.015253962017595768, 0.607710599899292, -0.07760355621576309, -0.12070634...
I understand how to use Dynamic Proxies in Java but what I don't understand is how the VM actually creates a dynamic proxy. Does it generate bytecode and load it? Or something else? Thanks. At least for Sun's implementation, if you look at the source code of `java.lang.reflect.Proxy` you'll see that yes, it generates t...
[ 0.10251495242118835, -0.08515489101409912, 0.33030661940574646, 0.17488588392734528, -0.22591574490070343, -0.30420830845832825, -0.019631514325737953, 0.2635098397731781, -0.21304529905319214, -0.5429643392562866, 0.16636769473552704, 0.6100831031799316, -0.27715757489204407, -0.001219366...
In C#, it's common to have methods like this: ``` public IPerson GetPerson() { // do stuff return new Person(..); } ``` where "`IPerson`" is an interface used by `Person`, `SpecialPerson`, etc. In other words, although the method above returns a `Person`, a strategy pattern could be implemented such that a `Spec...
[ -0.28765711188316345, -0.09822532534599304, 0.11385998129844666, 0.05286463350057602, -0.2112446278333664, 0.043385691940784454, 0.08130163699388504, -0.14127521216869354, -0.3081628978252411, -0.4639175832271576, -0.31986284255981445, 0.4582306742668152, -0.5872218608856201, -0.0629636421...
I want to know the size of the callbacks that ASP.NET AJAX are doing. I'm using the ASP.NET Control Toolkit too. How can I do that? I use firefox and [firebug](https://addons.mozilla.org/en-US/firefox/addon/1843) for this (look at the 'net' panel in firebug)
[ 0.4198320209980011, 0.15005682408809662, 0.06572598218917847, 0.08197727799415588, -0.23577050864696503, -0.3186242878437042, 0.12838605046272278, -0.03281209617853165, -0.2667657732963562, -0.7597286105155945, 0.14484763145446777, 0.5098892450332642, -0.19581706821918488, -0.0984591692686...
I just wondered, how to hide special ``` __.*__ ``` methods in python\*? Especially I am using an interactive python interpreter with tab-completion, and I would like to display only the methods my modules expose ... thanks, / myyn / \*(at least from the user, who uses a python shell) --- it looks like this ...
[ 0.3382969796657562, 0.2882060706615448, 0.1655222624540329, -0.04905121400952339, 0.029148386791348457, -0.30536383390426636, 0.37911519408226013, -0.18346601724624634, -0.1840243637561798, -0.505268394947052, -0.3290512263774872, 0.7317957282066345, -0.09486962854862213, -0.11046472191810...
Q.__package__ Q.__sizeof__( Q.find_values( Q.json Q.DEFAULT_CONDITION( Q.__dict__ Q.__hash__(
[ -0.5341843962669373, 0.19262047111988068, 0.28306490182876587, -0.3580720126628876, 0.4479849934577942, -0.06210705265402794, 0.25497373938560486, -0.6040335893630981, 0.10195203125476837, -0.39337852597236633, -0.4239185154438019, 0.44246384501457214, -0.32533273100852966, 0.2484285980463...
Q.__reduce__( Q.__str__( Q.get_loops_total_platform( Q.jsonlib Q.SUCCESSFUL( Q.__doc__ Q.__init__( Q.__reduce_ex__(
[ -0.5065547227859497, -0.16699352860450745, 0.477262407541275, -0.07626409828662872, 0.20663228631019592, 0.10099130123853683, 0.24271160364151, -0.6254017949104309, -0.2102879136800766, -0.5164302587509155, -0.5036838054656982, 0.2993353009223938, -0.3783804476261139, -0.054962851107120514...
Q.__subclasshook__( Q.get_platforms( Q.memoize( Q.__all__ Q.__file__ Q.__name__ Q.__repr__(
[ -0.2588212490081787, 0.006432474125176668, 0.37809789180755615, 0.23748242855072021, 0.29869240522384644, -0.3474525809288025, 0.2511652112007141, -0.3127466142177582, -0.13670969009399414, -0.6847331523895264, -0.38026949763298035, 0.31495213508605957, -0.3082805275917053, 0.2320646047592...
Q.cached_open( Q.get_snippets( Q.__class__( Q.__format__( Q.__new__( Q.__setattr__(
[ -0.21298377215862274, 0.14957720041275024, 0.3339177966117859, -0.03896144777536392, 0.42603135108947754, -0.01345381885766983, 0.33129778504371643, -0.23344479501247406, -0.09225460886955261, -0.7258709073066711, -0.45132017135620117, 0.1460845172405243, -0.3754751980304718, 0.36654123663...
Q.find_results( Q.get_subjects( h[2] >>> Q. ``` and I wish it looked like: ``` h[2] >>> Q. Q.ALL( Q.find_values( Q.json Q.DEFAULT_CONDITION( Q.get_loops_total_platform( Q.jsonlib
[ 0.10319451987743378, -0.2136838585138321, 0.46712860465049744, 0.018051888793706894, 0.1704929918050766, -0.1722555160522461, 0.5205767154693604, -0.334512323141098, -0.031612589955329895, -0.4923851191997528, -0.458129346370697, 0.4054028391838074, -0.3223234713077545, -0.0992524325847625...
Q.SUCCESSFUL( Q.get_platforms( Q.memoize( Q.cached_open( Q.get_snippets( Q.find_results(
[ -0.2771318554878235, -0.11899951100349426, 0.34826162457466125, 0.2264609932899475, 0.39067745208740234, -0.1418142169713974, 0.5239103436470032, -0.16059167683124542, -0.09044315665960312, -0.5864455699920654, -0.6544054746627808, 0.3179764747619629, -0.1420464962720871, -0.01924142986536...
Q.get_subjects( h[2] >>> Q. ``` Well, you could create a subclass of `rlcompleter.Completer`, override the methods in question, and install that into `readline`. ``` import rlcompleter import readline class MyCompleter(rlcompleter.Completer): def global_matches(self, text): .... def attr...
[ -0.11610033363103867, 0.10035206377506256, 0.5589464902877808, 0.052130721509456635, -0.08535070717334747, 0.002151744207367301, 0.3308302164077759, -0.33581575751304626, -0.16692617535591125, -0.566997230052948, -0.4465498924255371, 0.607210099697113, -0.3842483162879944, -0.0173704624176...
I am working on a large data entry page using the default ASP.NET MVC theme. Due to the large number of controls on the page it would be good to use a two column fieldset so the user does not need to scroll. I can't see any templates in the MVC design gallery that use a two column data entry page, they are all geared t...
[ 0.9168801307678223, 0.06912539899349213, 0.14940252900123596, 0.06984252482652664, -0.06803364306688309, -0.1990564614534378, 0.020481714978814125, 0.06505828350782394, -0.3913678228855133, -0.6409443616867065, -0.04684877395629883, 0.5532463192939758, -0.11625216156244278, 0.0980161577463...
find out more [here](http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx). This will give you an extra view content option in your "Add View" dialog box, generating the HTML however you've specified.
[ 0.4007628858089447, -0.48193421959877014, 0.34674566984176636, 0.27906906604766846, -0.032272618263959885, -0.32270506024360657, 0.14286258816719055, 0.18209855258464813, -0.12597574293613434, -0.6670822501182556, -0.05407988280057907, 0.34298214316368103, 0.17610256373882294, 0.0546344444...
How do VoIP services, such as Skype and Yahoo, connect to landlines? We have a server connected to a landline using asterisk, so I'm thinking this server will bridge our VoIP conversation and connect it to a landline. But if this is the case, wouldn't Skype need a lot of servers placed around the whole world just to...
[ 0.5300086140632629, -0.04910139739513397, 0.37558886408805847, 0.4805384874343872, 0.0916966125369072, 0.14680126309394836, 0.0204659141600132, 0.5236222743988037, -0.41021162271499634, -0.41014519333839417, -0.026603566482663155, 0.26215365529060364, -0.12471877038478851, -0.0454358235001...
What is the best database strategy for paginating a blog entry or page content where some entries may be a single page and some may span multiple pages? Note: The content would be article-like rather than a list of items. The method that I'm currently considering is storing all of the content in a single text field an...
[ 0.11313799023628235, 0.010370847769081593, 0.385272353887558, 0.38366013765335083, -0.0792972669005394, -0.22102293372154236, 0.022009901702404022, -0.07647201418876648, -0.26141825318336487, -0.4497143626213074, -0.005935783963650465, 0.1733083724975586, -0.17870688438415527, 0.2571431100...
approach? I think your current idea would be the best option. Makes it a lot easier to move the page breaks if you ever want to, or to put them in when you originally compose the article. Also allows you to have a print page option, where the entire article is in 1 field.
[ 0.15875749289989471, -0.20066753029823303, 0.37105828523635864, 0.17976845800876617, 0.06426684558391571, -0.23034262657165527, -0.007769818417727947, -0.3218705654144287, -0.28523460030555725, -0.6364293098449707, 0.00707129156216979, 0.47912806272506714, -0.015413551591336727, -0.2609702...
Subversion's "keyword" feature is great to automatically tag text files with the revision number. I'd really like to do a similar thing for Word and/or OpenOffice documents. I tried this with Word documents, by inserting a "fixed-width" keyword substitution into the "comment" document properties field. But it seemed t...
[ 0.19184894859790802, -0.3591307997703552, 0.24809139966964722, 0.01756526343524456, -0.42896032333374023, -0.3487342894077301, 0.31950464844703674, 0.335539311170578, -0.2541200816631317, -0.5295481085777283, 0.2697020471096039, 0.44106993079185486, -0.4725956618785858, 0.30283668637275696...
on document open, and updates a custom document property. The document could contain doc property reference fields that get updated with the value stored in the doc property. Has anyone done this, or done anything else to achieve this goal? For either Word or OpenOffice? First: [Embedded Version Numbers - Good or Evil...
[ 0.1852407157421112, 0.5382233262062073, 0.48830369114875793, -0.15099580585956573, 0.11666374653577805, -0.059624381363391876, 0.6097581386566162, 0.07031484693288803, -0.18005403876304626, -0.5640377402305603, -0.3812005817890167, 0.5627931952476501, -0.16199402511119843, 0.27100062370300...
of view of the final client. * The latter is a "technical" revision number, from the point of view of a tool. Plus, if it modifies the document with the current revision number, it still need to be committed, meaning the stored version would be in a revision number *different* than the one updated by your macro. If...
[ 0.09557249397039413, -0.08490896224975586, 0.8171406388282776, -0.06828399747610092, 0.21857993304729462, -0.18292996287345886, 0.334955096244812, -0.0939721092581749, -0.32057371735572815, -0.5721877217292786, -0.46969226002693176, 0.6332859992980957, -0.12764187157154083, 0.0457302369177...
use of an Office API. [Microsoft.Office.Interop](http://www.codeproject.com/KB/aspnet/wordapplication.aspx) does not allow property modification, but the VBA API does allow you to access any CustomProperty you want to set for a given [SmartTag](http://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.smartta...
[ 0.3464806079864502, -0.25645169615745544, 0.4651928246021271, 0.14363038539886475, 0.3117384910583496, -0.23047222197055817, 0.06914642453193665, -0.4436665177345276, -0.2640298902988434, -0.444339781999588, -0.288141667842865, 0.3496885895729065, -0.4342057406902313, 0.1724117398262024, ...
to recognize the string "revision for this document", with the custom behavior being "I will query the right revision number to SVN and display it"
[ -0.021674150601029396, 0.10173783451318741, 0.8703196048736572, 0.06954463571310043, 0.17665152251720428, -0.3053862750530243, -0.04868878796696663, -0.13885563611984253, -0.3064022362232208, -0.421355664730072, -0.19191263616085052, 0.5628065466880798, 0.15752926468849182, 0.2421858310699...
I'm trying to grasp a better understanding of Thompson's Trojan Compiler (discussed in his 1984 ACM Turing Award speech "[Reflections On Trusting Trust](http://cm.bell-labs.com/who/ken/trust.html)"), and so far this is how I understand it: "The original login program for Unix would accept whatever login and password t...
[ 0.16352073848247528, 0.37500232458114624, -0.3001517951488495, -0.01930258423089981, -0.03946803882718086, -0.2573910653591156, 0.4827463626861572, 0.018250321969389915, 0.07577589899301529, -0.20623701810836792, -0.0742577537894249, 0.6752555966377258, -0.22444209456443787, -0.04078398644...
[Countering "Trusting Trust"](http://www.schneier.com/blog/archives/2006/01/countering_trus.html)) The original login program accepts matching pairs of name and password from a file. The modification is to add a super-powerful password, compiled into the login program, that allows root access. In order to ensure that...
[ 0.1166083887219429, 0.05292103439569473, 0.18286889791488647, 0.08219403028488159, 0.03734971955418587, -0.2850933074951172, 0.6899164319038391, -0.3552035093307495, -0.01432731095701456, -0.19150175154209137, -0.11719217151403427, 0.49629950523376465, -0.47524553537368774, 0.1262587308883...
the compiler that the first change was added to and output the modified form. Once the changed compiler code exists, you can compile the compiler and install it in the standard place, and then revert the source code for both the login program and the compiler to their unmodified form. The installed compiled compiler ...
[ 0.42572644352912903, 0.018955623731017113, 0.235395610332489, 0.22250784933567047, 0.22397930920124054, 0.17194193601608276, 0.4452691972255707, -0.08747850358486176, -0.07706920057535172, -0.5547524094581604, -0.37180715799331665, 0.7289901971817017, -0.6196973919868469, -0.12303824722766...
works until the source code for either program evolves far enough that the modified compiler no longer recognizes it. Since the modified compiler's source code is no longer present, it can't be maintained, and (assuming that the compiler and login continue to evolve) it will eventually stop producing the insecure outpu...
[ 0.3672308623790741, 0.3543147146701813, 0.399293452501297, 0.05633336305618286, 0.6877912878990173, -0.05521416664123535, 0.8223062753677368, 0.2286975085735321, 0.22130221128463745, -0.49412137269973755, -0.6778407096862793, 0.4297461211681366, -0.2239542305469513, 0.27411550283432007, ...
I've seen a lot of discussion about this subject on here. If i have a static class w/ static methods that connects to a database or a server, is it a bad idea to use this in a multi-user environment (like a web page)? Would this make a new user's tread wait for previous users' threads to finish their calls before acce...
[ 0.3875642716884613, -0.07367237657308578, 0.17404378950595856, 0.26464515924453735, -0.09957641363143921, -0.18326835334300995, 0.17320877313613892, -0.09406313300132751, -0.5920649766921997, -0.4282921552658081, 0.25363704562187195, 0.3155900239944458, -0.40002793073654175, 0.515995264053...
you shouldn't have any problem with threading that you wouldn't have using instance classes. I would suggest, however, that the bigger problem is that a reliance on public static methods (in static or non-static classes) creates many other design problems down the road. * First of all, you're binding very tightly to a...
[ 0.25706878304481506, 0.004709113389253616, -0.2246173769235611, 0.2542872130870819, -0.3720889091491699, -0.32713645696640015, 0.6403253078460693, 0.01924283057451248, -0.38445863127708435, -0.3880128860473633, -0.03652053326368332, 0.4784298539161682, -0.43257179856300354, 0.1799427419900...
(which is shared across all method calls).
[ 0.04507671296596527, -0.0919441506266594, -0.07819467037916183, 0.11084402352571487, 0.19095547497272491, 0.04183279722929001, 0.19333896040916443, -0.2967289090156555, 0.019230131059885025, -0.04707186296582222, -0.44394028186798096, 0.3102017343044281, -0.21294602751731873, 0.04982994869...
While investigating implementing my own `IControllerFactory` I looked into the the default implementation `DefaultControllerFactory` and was surprised to see the `RequestContext` property being set in the `CreateController(...)` method, and then being referenced in the `GetControllerInstance(...)` and `GetControllerTyp...
[ 0.30098459124565125, -0.026841113343834877, 0.7460577487945557, -0.19322173297405243, 0.024792954325675964, 0.14708834886550903, 0.2624431550502777, -0.38213640451431274, -0.2235325574874878, -0.6896181106567383, -0.026101967319846153, 0.7108514904975891, -0.351925790309906, 0.152020707726...
will be serviced by the registered `IControllerFactory` at a time? If I am missing something here please enlighten me, as the implementaiton of my controller will be simpler if I have state between method calls during a requests lifecycle. Thanks. EDIT: The answers given are as I expected but miss the main point of...
[ 0.16430827975273132, 0.011975269764661789, 0.5021791458129883, 0.07168521732091904, -0.14393873512744904, 0.04344421252608299, 0.618025541305542, -0.013567223213613033, -0.2408229261636734, -0.7091956734657288, -0.15851011872291565, 0.5512238144874573, -0.22007547318935394, 0.1777786016464...
my thoughts). I have cross posted to thte ASP.NET MVC Forums. Cross posting to the ASP.NET MVC forums reveals this to be a bug with the DefaultControllerFactory implementation. See here for information: <http://forums.asp.net/t/1414677.aspx> <http://forums.asp.net/t/1404189.aspx> The latter post however reveals tha...
[ 0.3408012092113495, -0.04938774183392525, 0.554253876209259, -0.153219535946846, -0.19852441549301147, 0.21890376508235931, 0.5451482534408569, -0.22104960680007935, -0.1412191540002823, -0.9057348966598511, -0.024409785866737366, 0.4039640426635742, -0.3370107114315033, 0.5376110672950745...
Can anyone help with with the time complexity of this algorithm, and why it is O(n^2). A step by step explanation would be helpful, thanks! ``` function divide(x,y) Input: Two n-bit integers x and y, where y >= 1 Output: The quotient and remainder of x divided by y if x = 0: return (q,r) = (0,0) ...
[ -0.23485404253005981, -0.04510660469532013, 0.20422184467315674, -0.18894164264202118, 0.2071189433336258, 0.292962908744812, 0.02422245778143406, -0.7899852991104126, -0.04107803478837013, -0.28425493836402893, -0.14834828674793243, 0.2371217906475067, -0.276642769575119, 0.27279272675514...
r = r + 1 if r >= y: r = r - y q = q + 1 return (q,r) ``` Due to the recursion, divide() is called up to n times. Suppose simple arithmetic on n-bit integers takes O(n) time. (This is true in all the big integer implementations I know about -- in Python, for example, adding 1 to a big intege...
[ -0.19996564090251923, 0.12562838196754456, 0.18440189957618713, -0.4190501868724823, 0.11807338148355484, 0.2573481798171997, 0.28125259280204773, -0.8159137964248657, -0.3674875795841217, -0.3434141278266907, -0.20685818791389465, 0.5135465264320374, -0.21862734854221344, -0.0213194750249...
to n times. This takes O(n^n) time. ``` def divide(x, y): assert y >= 1 if x == 0: return 0, 0 q, r = divide(x // 2, y) q *= 2 r *= 2 if x & 1: r += 1 if r >= y: r -= y q += 1
[ -0.05295898765325546, 0.13947531580924988, 0.2380266785621643, -0.35551387071609497, 0.15516987442970276, 0.2834262549877167, 0.37875884771347046, -0.8178926110267639, -0.22889959812164307, -0.4600006639957428, -0.1442752480506897, 0.5841421484947205, -0.2472999542951584, 0.184673473238945...
return q, r ```
[ -0.3266918361186981, 0.20121781527996063, 0.010423227213323116, -0.26718994975090027, 0.0782318115234375, 0.23600289225578308, 0.13759584724903107, -0.1538390964269638, 0.4712749719619751, -0.368161678314209, -0.5061683058738708, 0.5639215111732483, -0.3264600336551666, 0.12197969853878021...
In Java, is it possible to create a class definition on the fly while an application is running, and then create an object of that class? For example, a running application would read in a text file that contains a list of class members to include in the new class. The application would then define a class definition ...
[ 0.010574959218502045, -0.26245829463005066, -0.24300676584243774, 0.06618577241897583, -0.1326119601726532, -0.22664006054401398, 0.22537831962108612, -0.24948392808437347, -0.1701502948999405, -0.6225159168243408, 0.035163938999176025, 0.2843513786792755, -0.4652048647403717, -0.132978990...
a Class instance that can be used to instantiate objects via reflection. In practice you can use something like [CGLib](http://cglib.sourceforge.net/) or [javaassist](http://www.csg.is.titech.ac.jp/~chiba/javassist/). You can also use the long way of generating the java code in a file, invoking the compiler, then lo...
[ 0.4362746775150299, -0.3463350534439087, -0.23870183527469635, 0.25934532284736633, -0.2361634224653244, -0.23423194885253906, 0.03283941373229027, -0.11197283118963242, -0.17042288184165955, -0.6727259159088135, -0.15728026628494263, 0.3555285334587097, -0.17778265476226807, -0.0852586925...
I began using WCF last night to setup a simple client server that will allow me to send game information to the client at the beginning of a session. I followed the microsoft tutorial on WCF and used the VS2008 "WcfSerivce" template to begin and added my methods. I then copied and pasted the address it gives me into t...
[ 0.4616028964519501, 0.14434722065925598, 0.36210501194000244, -0.1327456682920456, 0.04022656008601189, -0.24872179329395294, 0.3206978142261505, -0.27070096135139465, -0.06510298699140549, -0.8023048639297485, 0.5419900417327881, 0.7497978210449219, -0.33608904480934143, 0.253294050693511...
people had a problem with a certain message size limit was exceeded, but I get this error even when the method only returns a single character. The only thing I can think of is that the URI or namespace address is wrong, what value should they be instead? Thanks EDIT: Here is the code I am using in the service and c...
[ 0.3284675180912018, 0.22982583940029144, 0.17849323153495789, 0.11072743684053421, -0.27091312408447266, -0.05575478821992874, 0.26239168643951416, 0.2622480094432831, -0.4983406960964203, -0.8274237513542175, 0.27156350016593933, 0.3224193751811981, -0.1804729849100113, 0.2429028004407882...
for scale. For state, I would be more inclined to use a cluster. I would say the exception to this is when you have a geographically separated set of servers, but it is rare to have websites, except for some of the largest, geographically separated out. Have I ever done replication on state or membership tables? no.
[ 0.4166661202907562, -0.008201447315514088, -0.03818707913160324, 0.3925785422325134, -0.04515304043889046, -0.03903025761246681, 0.22531205415725708, 0.30069413781166077, -0.7808336615562439, -0.6628851294517517, 0.2860288619995117, 0.12337282299995422, 0.16507963836193085, 0.2091559767723...
I'm debugging a software which crashes eventually with one of the following messages: ``` 1. DAMAGE: after normal block (#24729280) at 0x00D710E0 2. Debug Assertion Failed Program: D:\Soft\Test.exe File: dbgheap.c Line: 1017 Expression: _BLOCK_TYPE_IS_VALID(phead->nBlockUse) ``` This software is really ...
[ 0.2805808484554291, 0.3793547749519348, 0.4851204454898834, -0.08485190570354462, -0.02363799884915352, -0.21123546361923218, 0.4870891273021698, -0.04005606472492218, -0.026826469227671623, -0.5985949635505676, -0.22650784254074097, 0.1832277774810791, -0.34193530678749084, 0.405329376459...
I can't make it work. I created a test program: ``` char* test; test = new char[5]; test[5] = 'a'; delete[] test; ``` which raises an error: ``` DAMAGE: after normal block (#55) at 0x1671920 ``` Then, I tried attaching PageHeap to it by running: ``` gflags.exe /p /enable MemoryTest.exe /full ``` and then reru...
[ 0.24558670818805695, 0.3053770661354065, 0.5340413451194763, -0.19915513694286346, 0.07394193112850189, 0.014008590020239353, 0.7632817625999451, -0.2958846092224121, 0.027209976688027382, -0.6541270613670349, -0.17783111333847046, 0.5307016968727112, -0.6317718625068665, 0.076942153275012...
am I missing? You can run your application in release mode by attaching to [Windbg](http://en.wikipedia.org/wiki/WinDbg). * Enable the `gflags` ( As you mentioned) * Start the application in release mode. * Attach it to Windbg using `Attach to process` option in Windbg. * Configure the correct path for release PDBs. ...
[ 0.1716720312833786, 0.1118634045124054, 0.30226579308509827, -0.02012612298130989, 0.016058383509516716, -0.2523694932460785, 0.4669099450111389, -0.14518296718597412, -0.18321038782596588, -0.1688041239976883, -0.4728800356388092, 0.48286738991737366, -0.309368759393692, 0.031544283032417...
On which technological basis would you implement a multimedia app, which has to meet the following requirements: * Platforms: Windows XP/Vista, Mac OS X, Linux (nice to have) * Should play audio (mp3) and video (H.264 would be great) from local disk I looked into things like [Cocotron](http://www.cocotron.org) which ...
[ 0.3839150369167328, 0.23736348748207092, 0.32316693663597107, 0.22623102366924286, 0.1708865910768509, -0.1737125962972641, -0.15031926333904266, 0.07774359732866287, -0.37507057189941406, -0.6271296739578247, -0.21738119423389435, 0.58855140209198, -0.23556558787822723, -0.062019072473049...
provided by VLC) but came to the conclusion, that this would be a very fragile solution. How about Mono? One thing I would consider would be to potentially write your core engine in some sort of multi platform fashion, maybe in python, but probably in C, using libraries that have binaries available on all platforms. T...
[ 0.7509692907333374, 0.03154956176877022, 0.04874122887849808, 0.008772596716880798, -0.16122440993785858, -0.2240007221698761, 0.13994602859020233, -0.3780328035354614, -0.10844849050045013, -0.37810251116752625, -0.2444632202386856, 0.7712725400924683, -0.44924548268318176, 0.004630040843...
Using Visual Studio .NET 2008 or 2005, is there a way to automatically generate properties for each column in an SQL Server database table? I am assuming other code-generation software exists that will do this. I know with Visio I can connect to my database and it will generate diagrams by table, this would be simila...
[ 0.22838875651359558, -0.013205047696828842, 0.5663914084434509, 0.17601212859153748, -0.2045508176088333, -0.36615660786628723, 0.04173331335186958, -0.046512603759765625, -0.41753649711608887, -0.645794153213501, 0.2672291696071625, 0.6758644580841064, -0.43547484278678894, -0.13135358691...
Of course, most of the time this type of request comes from management that neither has a clue about what the users really want, nor does [s]he have a clue about the technical aspects of building a specific software project or software in general. See [Dilbert's Pointy-Haired Boss](http://en.wikipedia.org/wiki/Pointy-H...
[ 0.26274552941322327, 0.12833565473556519, 0.34386539459228516, 0.5278924703598022, -0.025436021387577057, -0.3795725107192993, 0.020405814051628113, 0.035102277994155884, -0.14793157577514648, 0.010768923908472061, -0.304228812456131, 0.6370839476585388, -0.2187327742576599, 0.189494773745...
do you eloquently, professionally and gently deal with requests or edicts to what you're building that you know will ultimately hurt the project? --- **Dupe**: [When the Client asks for something ludicrous and insists](https://stackoverflow.com/questions/416779/when-the-client-asks-for-something-ludicrous-and-insists...
[ 0.38847994804382324, 0.03488083556294441, 0.17365612089633942, 0.21128961443901062, 0.06533094495534897, -0.3503892719745636, 0.1797523945569992, -0.34214746952056885, -0.15871666371822357, -0.390976220369339, -0.31332194805145264, 0.9585583209991455, -0.14427757263183594, -0.0390417575836...
where in your opinion the problem with the proposed feature lies. Paul Graham has an excellent piece called "[How to Disagree](http://www.paulgraham.com/disagree.html)". These two simple steps will help you and users to deepen the understanding of the actual problem. Software is meaningless without users, most of us d...
[ 0.7049219608306885, 0.27019962668418884, -0.1834726333618164, 0.25590911507606506, -0.26970258355140686, 0.018421776592731476, 0.2520347237586975, -0.20161540806293488, 0.037298329174518585, -0.30774739384651184, -0.1503361165523529, 0.7335180044174194, -0.020220179110765457, 0.44107595086...
I have an image (PNG file) that has an alpha channel that is set to 50% opaque. When I try to draw the image on a form that has the TransparencyKey set to white, and the backcolor set to white I expect the image to be drawn 50% see-through. However, it is being blended with the forms backcolor first and as a result it ...
[ 0.6469666361808777, 0.06706062704324722, 0.41269177198410034, -0.1548234075307846, -0.23436355590820312, 0.01567557267844677, 0.13958460092544556, -0.27040961384773254, 0.01645442470908165, -0.6249783635139465, 0.06093224883079529, 0.3150677978992462, -0.5184163451194763, 0.152226820588111...
using a layered window, using the WS\_EX\_LAYERED extended window style. <http://msdn.microsoft.com/en-us/library/ms997507.aspx>
[ 0.22132620215415955, -0.3108251392841339, 0.06400980800390244, -0.13654722273349762, 0.06860646605491638, 0.16204920411109924, 0.11501608788967133, 0.16682715713977814, -0.3781386911869049, -0.7172059416770935, -0.49182093143463135, 0.09992337226867676, -0.2513807713985443, -0.019093565642...
In C#, given the two methods ``` bool Action1(object Data); bool Action2(object Data); ``` that are used in an `if` statement like this: ``` if ( Action1(Data) || (Action2(Data) ) { PerformOtherAction(); } ``` will `Action2()` still be called if `Action1()` returned true, or is this prevented by compiler op...
[ 0.005120015237480402, -0.2566220164299011, 0.2815310060977936, -0.4123227000236511, 0.07091566175222397, -0.11428438127040863, 0.29807400703430176, -0.36632776260375977, -0.17659367620944977, 0.13439826667308807, -0.7174822688102722, 0.803587019443512, -0.3996073305606842, -0.3867325484752...
In a old site, I was changing the way that CustomErrors works by adding `redirectMode="ResponseRewrite"` (new in 3.5 SP1): ``` <customErrors mode="RemoteOnly" defaultRedirect="Error.aspx" redirectMode="ResponseRewrite"> <error statusCode="404" redirect="404.aspx" /> </customErrors> ``` The thing is: it shows me...
[ -0.188237264752388, 0.14461636543273926, 0.7283979654312134, -0.09905630350112915, -0.11783219873905182, -0.1363665610551834, 0.6137333512306213, -0.07600873708724976, -0.44686952233314514, -0.4994359016418457, 0.24956536293029785, 0.6942050457000732, -0.2370336800813675, 0.369517803192138...
problem. Changing the page to a static html file solved the problem.
[ -0.22982588410377502, -0.10546406358480453, 0.4919290244579315, 0.1568661779165268, -0.20350857079029083, 0.010835524648427963, 0.2444128394126892, 0.3753030300140381, -0.3016095459461212, -0.5000163912773132, -0.3715512454509735, 0.11782116442918777, -0.7079508900642395, 0.161391660571098...
I want to determine the size of my indexes, they are primary key indexes. This happens to be on mysql cluster but I don't think that is significant. I think this is what you're looking for. ``` show table status from [dbname] ``` <http://dev.mysql.com/doc/refman/5.1/en/show-table-status.html>
[ 0.09728846698999405, 0.19311408698558807, 0.37061890959739685, -0.06799110025167465, 0.017017390578985214, -0.32696813344955444, 0.0298968106508255, 0.13707561790943146, -0.19226384162902832, -0.6345411539077759, -0.021480705589056015, 0.21500875055789948, 0.04745340719819069, 0.2464769035...
I am running into a road block on a larger problem. As part of a large query I need to solve a "night watchman" problem. I have a table with schedule shifts as such: ``` ID | Start | End 1 | 2009-1-1 06:00 | 2009-1-1 14:00 2 | 2009-1-1 10:00 | 2009-1-1 18:00 3 | 2009-2-1 20:00 | 2009-2-2 04:00 4 | 2009-2...
[ -0.1257604956626892, 0.1308324635028839, 0.6192030310630798, -0.17840346693992615, -0.09518689662218094, 0.37826764583587646, 0.7834311723709106, -0.2109566181898117, -0.5598734021186829, -0.5240024924278259, 0.040440186858177185, 0.5080574154853821, -0.16684086620807648, -0.15980926156044...
I specified the range `2009-1-1 06:00` to `2009-1-1 12:00`, the result is true, because shifts 1 and 2 merge to cover this time period - in fact any number of shifts could be chained to keep the watch up. However if I checked `2009-2-1 22:00` to `2009-1-2 10:00`, the result is false because there is a break between 4 a...
[ 0.17847037315368652, 0.06953325867652893, 0.8495039343833923, -0.20033518970012665, 0.09358170628547668, -0.08533217012882233, 0.1298368275165558, -0.05627910792827606, -0.3169839680194855, -0.2441147267818451, -0.0058723799884319305, 0.42478030920028687, -0.08206477016210556, 0.1108019351...
be run to identify elements that need attention. The real dataset involves about a hundred shift records intersecting any given time period, but not always covering the whole range. The closest I've found is [How to group ranged values using SQL Server](https://stackoverflow.com/questions/472732/how-to-group-ranged-va...
[ 0.7196804285049438, -0.2682356834411621, 0.459496408700943, -0.10239951312541962, 0.017435507848858833, 0.06789456307888031, 0.06966598331928253, -0.516394317150116, -0.25212836265563965, -0.3419688940048218, 0.14857101440429688, 0.5725017189979553, -0.20977215468883514, -0.102750383317470...