text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
data transfer classes (and maybe even *in all classes you write...*), you should implement a sensible [`toString`](http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()) method. So here you need to override `toString()` in your `Person` class and return the desired state. There are [utilities availabl...
[ -0.0636633038520813, -0.2925964891910553, 0.30799898505210876, 0.07610640674829483, 0.06679781526327133, -0.4719570279121399, 0.26004502177238464, -0.3296052813529968, -0.07914359122514725, -0.545311689376831, -0.319152295589447, 0.5303166508674622, -0.2811252176761627, -0.1356319338083267...
There's a web services I want to call in my application, I can use it with importing the WSDL or by just use "HTTP GET" with the URL and parameters, so I prefer the later because it's simple thing. I know I can use indy idhttp.get, to do the job, but this is very simple thing and I don't want to add complex indy code ...
[ 0.3830395042896271, 0.05421411991119385, 0.4442642033100128, 0.2925513982772827, -0.013448730111122131, -0.29737189412117004, 0.15871691703796387, 0.0010438117897138, -0.07399656623601913, -0.7253503799438477, -0.016413342207670212, 0.9374470710754395, -0.1597459763288498, -0.1504820436239...
that. You could use the [WinINet API](http://msdn.microsoft.com/en-us/library/aa383630(VS.85).aspx) like this: ``` uses WinInet; function GetUrlContent(const Url: string): string; var NetHandle: HINTERNET; UrlHandle: HINTERNET; Buffer: array[0..1024] of Char; BytesRead: dWord; begin Result := ''; NetHandl...
[ -0.265207439661026, -0.19514434039592743, 0.7684304118156433, 0.053336549550294876, 0.13881662487983704, -0.09586398303508759, 0.15174217522144318, -0.1772388070821762, -0.07712804526090622, -0.7137933969497681, -0.4784798324108124, 0.3700205981731415, -0.19550400972366333, 0.3014446198940...
Result := Result + Buffer; FillChar(Buffer, SizeOf(Buffer), 0); InternetReadFile(UrlHandle, @Buffer, SizeOf(Buffer), BytesRead); until BytesRead = 0; InternetCloseHandle(UrlHandle); end else { UrlHandle is not valid. Raise an exception. } raise Exception.CreateFmt('Cannot...
[ -0.1875772327184677, 0.10023383796215057, 0.9106078743934631, -0.09021434932947159, 0.1358228623867035, -0.22025500237941742, 0.4592821002006531, -0.13402393460273743, -0.19278527796268463, -0.6194103956222534, -0.5667335391044617, -0.010206127539277077, -0.3644992709159851, 0.503858745098...
to initialize Wininet'); end; ``` source: <http://www.scalabium.com/faq/dct0080.htm> The WinINet API uses the same stuff InternetExplorer is using so you also get any connection and proxy settings set by InternetExplorer for free.
[ -0.07564754784107208, -0.23159444332122803, 0.3501514792442322, -0.02490624226629734, 0.03663104772567749, -0.051174815744161606, 0.045437462627887726, 0.15552937984466553, 0.03465771675109863, -0.8426386713981628, -0.10330253839492798, 0.38281404972076416, -0.3708794116973877, 0.163318440...
Is it possible (by using the stock c# TreeView) to have Multiline TreeNodes? Also, is it possible to add control characters to TreeNode's text e.g. '\t'? This same effect could also be achieved by adding columns to the TreeNode. is this possible? I do not believe this is possible using WinForms, at least without draw...
[ 0.12803974747657776, -0.24308857321739197, 0.24005074799060822, 0.124933160841465, -0.24138143658638, -0.10297366231679916, 0.13332119584083557, 0.214271679520607, -0.24715889990329742, -0.6144697070121765, 0.036832090467214584, 0.5754281878471375, -0.2970462143421173, -0.26873236894607544...
The 'attach to process' dialogue box on VC6 running on win 2003 (I believe vista as well) has no processes to attach to in it... I've tried logging on as an administrator and running as an administrator but no luck. Any other ideas? I do not believe this is possible using WinForms, at least without drawing your own nod...
[ -0.19869692623615265, -0.07675234228372574, 0.25654032826423645, 0.13454589247703552, -0.11668471246957779, -0.040816910564899445, -0.035914916545152664, 0.20348012447357178, -0.3213351368904114, -0.6021339297294617, 0.03355886787176132, 0.8065900802612305, -0.43001002073287964, 0.04757507...
Whats this syntax useful for : ``` function(String... args) ``` Is this same as writing ``` function(String[] args) ``` with difference only while invoking this method or is there any other feature involved with it ? The only difference between the two is the way you call the function. With String var ...
[ 0.10698571056127548, -0.13694711029529572, 0.42275142669677734, -0.37961816787719727, -0.047152530401945114, 0.10169940441846848, 0.30972254276275635, -0.16608203947544098, -0.26731759309768677, -0.19894474744796753, -0.23451964557170868, 0.8210567235946655, -0.6181051135063171, 0.20459966...
callMe1(String[] args) { System.out.println(args.getClass() == String[].class); for (String s : args) { System.out.println(s); } } public static void callMe2(String... args) { System.out.println(args.getClass() == String[].class); for (String s : args) { System.out.println(s); } ...
[ -0.257399320602417, -0.21946577727794647, 0.5787662267684937, -0.6430403590202332, 0.2544797658920288, 0.07030609995126724, 0.5483036637306213, -0.43832871317863464, 0.06864770501852036, -0.5600230097770691, -0.6008750796318054, 0.7358437776565552, -0.5858648419380188, 0.038395293056964874...
I've got to write few words about C#, generally piece of cake? No! I've searched through various internet resources and books and what i got is kind of headache. For example **Garbage Collector** some sources says that this is C# feature, other that CLR got this feature and C# along with all other .NET languages got ...
[ 0.47615358233451843, 0.49835503101348877, 0.11011362075805664, -0.04628074914216995, -0.623907744884491, -0.5532851815223694, 0.5478261709213257, 0.5907242894172668, -0.2364753633737564, -0.6630936861038208, 0.0126445097848773, 0.48888468742370605, -0.0705450251698494, 0.25262120366096497,...
thing are origins of C# syntax, again few choices and nothing clear, other language combo by each other author. C, c++, Java, that's ok but VB6 and Delphi, i have doubts. And again features origin from these languages is mixed up with c# but in fact it is not clear if it is C# or CLR feature MTH GC is provided by the ...
[ 0.4020867347717285, -0.002750140381976962, 0.17813971638679504, 0.11064419895410538, -0.05350152403116226, -0.2536296844482422, 0.042116131633520126, -0.14030921459197998, -0.1614505499601364, -0.19571645557880402, -0.04914350435137749, 0.5953859686851501, -0.22752781212329865, -0.00353410...
anything that relates to the code you type, but which isn't directly provided by either the CLR or the framework is a language feature. Other languages may implement them too, of course... * using [try/finally/Dispose] * lock [Monitor.Enter/try/finally/Monitor.Exit] * foreach [GetEnumerator()/while/[Dispose]] * extens...
[ 0.2760865092277527, -0.10440385341644287, 0.24976928532123566, -0.053267091512680054, 0.1067657321691513, -0.3430778980255127, 0.13989999890327454, -0.25867167115211487, -0.3820469081401825, -0.5013768672943115, -0.4871528744697571, 0.5918495059013367, -0.1837080419063568, -0.1414563506841...
I found this in the code I'm working on at the moment and thought it was the cause of some problems I'm having. In a header somewhere: ``` enum SpecificIndexes{ //snip INVALID_INDEX = -1 }; ``` Then later - initialization: ``` nextIndex = INVALID_INDEX; ``` and use ``` if(nextIndex != INVALID_INDEX) { ...
[ -0.22816422581672668, 0.1397595852613449, 0.04361407831311226, -0.10777923464775085, 0.22670720517635345, -0.23177267611026764, 0.36998987197875977, -0.051207154989242554, -0.32275283336639404, -0.518193781375885, -0.023127034306526184, 0.38010677695274353, -0.3836895525455475, 0.395240396...
looking more closely, the test ``` if(nextIndex != INVALID_INDEX) ``` Was behaving correctly, i.e, it never executed the body of the if when nextIndex was the "large +ve value". Is this correct? How is this happening? Is the enum value being implicitly cast to an unsigned int of the same type as the variable, and h...
[ 0.12220659106969833, -0.2719820439815521, 0.2408626675605774, 0.08700889348983765, -0.0914083942770958, -0.3069722354412079, 0.28331369161605835, -0.29922109842300415, -0.20455600321292877, -0.49076035618782043, -0.12629061937332153, 0.3925975263118744, -0.15849468111991882, 0.108847096562...
implicitly cast into unsigned ints, now this depending on your compiler might give a warning, but its still very commonly used, however you should explicitly cast to make it clear to maintainers.
[ 0.4430959224700928, 0.06121198460459709, -0.2536700665950775, -0.35521140694618225, -0.2853721082210541, -0.19905748963356018, 0.5825145244598389, 0.12269971519708633, 0.1275641918182373, -0.1501389890909195, 0.07272674143314362, 0.4069032073020935, -0.3693458139896393, -0.1003195419907569...
We have a huge web application running on lasso, mainly because it first was a huge internal Filemaker database, that was to be opened to the public as a web app. The web application doesn't use Filemaker though, it runs on a MySQL database, recreated every day. The only reason I know of for using lasso is it's easy ...
[ 0.13354434072971344, -0.10072672367095947, 0.32712322473526, 0.23806659877300262, -0.11647878587245941, -0.04418342560529709, 0.15550465881824493, 0.12998135387897491, -0.2294033020734787, -0.4922198951244354, 0.1833108365535736, 0.44753795862197876, -0.3853687644004822, -0.140163734555244...
we use a more widely used and know language, or should we stick with lasso? Is there anyone here that actually uses lasso? Hey there... just thought I'd add my two cents to the discussion: I am currently developing daily in Lasso. I was hired here (big New England university) about 1.5 years ago as a web programmer......
[ 0.46516329050064087, 0.01739158295094967, 0.16124001145362854, 0.06667686998844147, -0.17213501036167145, -0.15551315248012543, 0.2970285713672638, 0.3133622705936432, -0.26984941959381104, -0.5256832838058472, 0.7192732095718384, 0.15984636545181274, 0.014100130647420883, -0.4544358253479...
here. Anyway, they were pretty confident that I'd pick it up quickly. As skeptical as I was, they were right. The Lasso syntax is quick and easy to learn. Once you wrap your head around the syntax and the `[SquareBrackets]`, the rest falls into place instantly. In a short time I was able to build some really complex, d...
[ 0.13463327288627625, 0.0028892518021166325, 0.2877485752105713, 0.06440973281860352, -0.35308143496513367, -0.3230019211769104, 0.4087854325771332, 0.2994680106639862, -0.13623134791851044, -0.3648480474948883, 0.034105610102415085, 0.3574921488761902, 0.0034575650934129953, -0.41353005170...
helpful. Personally, I find a small devoted community more easily approachable and less intimidating. Most of the really juicy Lasso conversations take place on [LassoTalk](http://www.nabble.com/Lasso---Talk-f739.html). Oh also, I went to the Lasso Developers Conference last year and was blown away by the dedication of...
[ 0.22978368401527405, -0.28151965141296387, 0.23131006956100464, 0.22850856184959412, -0.13114449381828308, -0.03891834244132042, 0.2673080563545227, 0.322065532207489, -0.1939467340707779, -0.3811814486980438, 0.13784146308898926, 0.4922718405723572, 0.15000134706497192, -0.071852035820484...
be able to get away with the [developer's installation](http://www.lassosoft.com/Downloads/index.lasso)). Second, lack of mature hosting options. Take a look at the vast amount of stuff you can get in any random $5/mo. php hosting plan and compare that to anything you can find for Lasso. Yeah, it's pretty rough out the...
[ 0.208782359957695, -0.17272350192070007, 0.12822088599205017, 0.32331228256225586, -0.04859497770667076, -0.19958020746707916, 0.5871292352676392, -0.02282974310219288, -0.4656813144683838, -0.35520240664482117, 0.3879261016845703, 0.3350888788700104, -0.1310192346572876, -0.08986485749483...
Reference](http://reference.lassosoft.com/Reference.LassoApp) [Tip of the Week](http://www.lassosoft.com/Documentation/TotW/index.lasso) Also worth noting, there's a Lasso environment for Eclipse as well as a built-in support in Panic's Coda (which I enthusiastically endorse!). Yeesh... didn't mean for this to be so...
[ -0.26508602499961853, -0.4661082327365875, 0.4691169559955597, 0.4108724892139435, -0.23382271826267242, -0.21709828078746796, 0.13090582191944122, -0.07663298398256302, -0.2982581555843353, -0.2850063145160675, 0.14380685985088348, 0.38947513699531555, 0.15663059055805206, -0.223547369241...
We are using popup windows in a Silverlight 2 application; these can be moved in the standard way by clicking on the title bar and dragging. If the title bar is dragged out of site behind the browser chrome, the window can no longer be moved. We have users that consider this problematic and I was wondering if there mi...
[ 0.32640084624290466, 0.030533388257026672, 0.5729237794876099, -0.17459319531917572, 0.00754889752715826, -0.09832653403282166, 0.043977972120046616, -0.1263839304447174, -0.2376905083656311, -0.7310651540756226, -0.10861412435770035, 0.21375389397144318, -0.3922516405582428, -0.0354810692...
bit I discovered that there is no standard dragging mechanism for pop-ups but that a colleague had implemented it. It was easy to expand the code to constrain the pop-up to the host window. It behaves a bit strangely though. Slow and smooth dragging allows the popup to move right up to the edge of the host window but f...
[ 0.08706709742546082, -0.245859757065773, 0.652006208896637, 0.11054418236017227, -0.3957512378692627, 0.02908712439239025, -0.004045174922794104, 0.2845389246940613, -0.31327009201049805, -0.4118374288082123, 0.11834351718425751, 0.3324410021305084, -0.3583737909793854, 0.46061617136001587...
How do you set a break points in server tags in .aspx pages. e.g. ``` <% dim breakhere =new object() %> ``` The web application is running in debug mode with the `<compilation debug="true" ...` in the web.config. But the page says: > The break point will not currently be > hit. No symbols have been loaded for > ...
[ 0.43713507056236267, 0.02005029283463955, 0.43611955642700195, 0.12860345840454102, 0.05169814079999924, -0.23132143914699554, 0.40324246883392334, -0.2599191963672638, -0.3902568817138672, -0.4330748915672302, -0.10123421996831894, 0.19868123531341553, -0.3107801079750061, -0.135148108005...
- instead put it in a method in the code-behind file, and then call that method from your markup. In your method in the code-behind, you can use the breakpoints as you normally would.
[ 0.2873362898826599, 0.1746303290128708, -0.18704892694950104, 0.18866482377052307, 0.22664611041545868, -0.0910395160317421, 0.04384845122694969, -0.3379286229610443, -0.013936725445091724, -0.26249071955680847, -0.23386232554912567, 0.2628316581249237, -0.019917158409953117, -0.0312580578...
I would like to replace "&gt" with ">" and "&lt" with "<" but only when they occur outside "<pre>" and "</pre>". Is this possible? ``` $newText = preg_replace('&gt', '>', $text); ``` I would be using the preg\_replace in PHP as above. If you want to do this with a regex, the trick is to make your regex match the thi...
[ -0.2009565532207489, -0.1592201590538025, 0.42514804005622864, -0.21250857412815094, -0.11340583115816116, 0.012492538429796696, 0.27348393201828003, -0.3079490065574646, 0.03987674415111542, -0.6627036333084106, -0.30201002955436707, 0.7704733610153198, -0.4270540177822113, -0.27516886591...
} elseif ($groups[1] == '&gt;') { return '>'; } else { return $groups[0]; } } ```
[ 0.0007815728895366192, 0.21075715124607086, -0.003687684889882803, -0.21402288973331451, -0.028417525812983513, -0.164977565407753, 0.3129356801509857, -0.43860530853271484, -0.0474003329873085, -0.3374727964401245, -0.4388861358165741, 0.7449273467063904, -0.5786277055740356, -0.054262220...
Is it possible to embed a windows form within another windows form? I have created a windows form in Visual Studio along with all its associated behaviour. I now want to create another windows form containing a tab view, and I want to embed the first windows form into the tab view. Is this possible? Not directly. You...
[ 0.35845130681991577, -0.04153788462281227, 0.4612680971622467, -0.06968198716640472, -0.05624175816774368, -0.015394413843750954, 0.018002159893512726, 0.024372659623622894, -0.1409415751695633, -0.7635819911956787, -0.01538263913244009, 0.6423597931861877, -0.3129202425479889, -0.13694730...
I would like to know if there is any easy way to print multiple emails(about 200) so that they continue on as opposed to printing one per page. I have tried with thunderbird and evolution and this does not seem possible. Would concatenating the individual mail files work or are there other unix utilities that could do ...
[ 0.4152601659297943, 0.006467467173933983, 0.29508113861083984, 0.19870227575302124, -0.039141945540905, 0.18328461050987244, -0.09352393448352814, 0.1141226515173912, -0.33470618724823, -0.7734244465827942, 0.16060732305049896, 0.5618324875831604, -0.4368140697479248, -0.16495491564273834,...
I need to purchase SQL Server 2008 Standard edition, because it's features fit what I need. On the features page, it says it can handle 32,767 user connections, but how does that connect with CALs? What are CALs and how can they affect a project? A CAL is a client access license. SQL Server 2008 has 3 licensing mode...
[ 0.3026377856731415, 0.2809925079345703, 0.5959051847457886, 0.106585793197155, -0.030254647135734558, 0.26076164841651917, -0.2143719345331192, -0.1201230064034462, 0.24892035126686096, -0.44507896900177, 0.48382702469825745, 0.6772589683532715, -0.13530029356479645, 0.40764567255973816, ...
device CAL allows any number of users to gain access to licensed server software from a particular device. A user CAL lets a particular user gain access to licensed server software from any number of devices. In other words, a user CAL covers a particular user's access to the server software from work computers and lap...
[ 0.32898300886154175, -0.0028620560187846422, 0.5695123672485352, 0.2985672056674957, 0.39698734879493713, -0.02212609350681305, -0.4054802358150482, -0.07925150543451309, -0.06208924204111099, -0.6997126936912537, -0.29565030336380005, 0.5169740915298462, 0.07916202396154404, 0.45688167214...
Am I right to think that there is no way to set the selected value in the C# class SelectList after it is created? Isn't that a bit silly? I think you are fighting the framework. The data going into your views should be created at the Last Possible Minute (LPM). Thinking this way, a `SelectList` is a type to feed the ...
[ 0.43235182762145996, -0.10272902250289917, 0.2472374141216278, 0.13195867836475372, -0.027440553531050682, -0.22012299299240112, -0.29247015714645386, -0.1168857216835022, -0.35179516673088074, -0.3605092465877533, 0.007650219835340977, 0.5994603037834167, -0.2839689254760742, 0.0177394747...
of this practice is that it allows you to reuse your `List<T>` for more than one `DropDownList`, such as: ``` Country of birth Country of residence ``` These `SelectLists` all use the Countries list of type `List<Country>`. You can use your `List<T>` at the 'last minute' like in this example: ``` public class TaxC...
[ 0.45808103680610657, -0.07039421051740646, 0.41888299584388733, 0.25896984338760376, 0.49216428399086, 0.04006625711917877, 0.042550817131996155, -0.13021354377269745, -0.4592086672782898, -0.1959233433008194, -0.5229456424713135, 0.06986353546380997, -0.031692299991846085, 0.2521656155586...
public TaxCheatsFormViewModel(TaxCheat baddie) { TaxCheat = baddie; countries = TaxCheatRepository.GetList<Country>(); CountryOfBirth = new SelectList(countries, baddie.COB); CountryOfResidence = new SelectList(countries, baddie.COR); CountryOfDomicile = new SelectList(countr...
[ 0.2623782157897949, 0.16423462331295013, 0.30957481265068054, 0.3211754560470581, 0.3101308345794678, -0.363151490688324, 0.05356153845787048, -0.03139614686369896, -0.30683064460754395, -0.2227472960948944, -0.28116780519485474, 0.35940393805503845, -0.08281838148832321, 0.274256438016891...
I need to check whether the user executing the script has administrative privileges on the machine. I have specified the user executing the script because the script could have been executed with a user other than the logged on using something similar to "Runas". @Javier: Both solutions work in a PC with an English v...
[ 0.2666074335575104, 0.05530913174152374, 0.23645927011966705, 0.16128383576869965, 0.3358961045742035, -0.21893176436424255, 0.09802552312612534, -0.000012923414033139125, 0.027683570981025696, -0.6416342854499817, 0.11455444246530533, 0.6606849431991577, 0.02662043645977974, -0.2167220413...
logged on user is an administrator ``` Set objNetwork = CreateObject("Wscript.Network") strComputer = objNetwork.ComputerName strUser = objNetwork.UserName isAdministrator = false Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators") For Each objUser in objGroup.Members If objUser.Name = strUser...
[ 0.24527417123317719, -0.03728218376636505, 0.5971133708953857, -0.18537642061710358, 0.11683916300535202, -0.0951547920703888, 0.6397221088409424, 0.0009198844200000167, -0.2963530123233795, -0.7811561226844788, -0.08564694970846176, 0.42274758219718933, -0.3897351622581482, -0.15190191566...
There seem to be so many color wheel, color picker, and color matcher web apps out there, where you give one color and the they'll find a couple of other colors that will create a harmonic layout when being used in combination. However most of them focus on background colors only and any text printed on each background...
[ 0.5912160277366638, 0.006197391077876091, -0.28869137167930603, 0.16517898440361023, 0.0011505994480103254, -0.032602209597826004, 0.01928333193063736, 0.240850567817688, -0.3113866448402405, -0.6862049698829651, 0.4012363851070404, 0.6794674396514893, -0.3554040789604187, 0.19778142869472...
(the more, the merrier) I can use as font colors on this background. Most important is that the color will make sure the font is readable (contrast not being too low, also maybe not being too high to avoid that eyes are stressed) and of course that the combination of foreground and background just looks good. Anyone b...
[ 0.37308335304260254, -0.06105860695242882, 0.5564250946044922, 0.09703410416841507, -0.07842497527599335, 0.151799276471138, 0.14495065808296204, 0.16931039094924927, -0.16267232596874237, -0.9580870270729065, -0.04895087331533432, 0.6721273064613342, -0.07391238212585449, -0.0324487872421...
this article: <http://en.wikipedia.org/wiki/HSL_and_HSV#Conversion_from_RGB_to_HSL_or_HSV> Hue is in [0,360). To find the "opposite" color (think colorwheel), just add 180 degrees: ``` h = (h + 180) % 360; ``` For saturation and value, invert them: ``` l = 1.0 - l; v = 1.0 - v; ``` Convert back to RGB. This sho...
[ 0.06180005520582199, 0.04896733909845352, 0.5806468725204468, -0.29776525497436523, -0.27907082438468933, 0.36337700486183167, 0.1577533483505249, -0.36492639780044556, -0.04157964885234833, -0.6738986372947693, 0.08258437365293503, 0.6211494207382202, -0.32803842425346375, -0.017194004729...
Recently, my Eclipse 3.4 installation started complaining while trying to update installed software. I normally have Automatic Updates switched on, so this is particularly annoying. Updates are found, but I am unable to install them because eclipse is unable to satisfy version dependencies. From the .log file: !ENT...
[ -0.023034999147057533, 0.31000030040740967, 0.7672542929649353, -0.2443280667066574, -0.2932451367378235, -0.20797759294509888, 0.6246999502182007, -0.24938257038593292, -0.2402317225933075, -0.5100877285003662, -0.07747138291597366, 0.8779956698417664, -0.2468787431716919, -0.061897393316...
ones. In this case, the new version of jst, which has been released to the jst update site, relies on a new version of wst. The update site for wst is not the same as for jst, and hadn't been updated on the 17th. Writing today, on the 19th, the jst update site now has the correct new version, and the update will go t...
[ 0.10336003452539444, 0.003545457264408469, 0.6001415252685547, 0.011798212304711342, -0.2016068696975708, -0.42966166138648987, 0.17829252779483795, 0.08515793085098267, -0.2595149874687195, -0.7861075401306152, -0.5198478698730469, 0.6529930233955383, -0.3230663537979126, -0.1207678467035...
"Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 9828 bytes)". This is the error i get but I am only trying to upload a 1mb image. I have increased the memory limit in php.ini and the execution time. I am trying this on a local MAMP server, on a Mac using firefox. This going to be for a...
[ -0.1706746369600296, 0.11735225468873978, 0.4874322712421417, -0.14933034777641296, -0.11387688666582108, 0.11649336665868759, 0.4699496924877167, -0.23426394164562225, -0.11270549148321152, -0.766322910785675, -0.06444314867258072, 0.7271145582199097, -0.3429732024669647, -0.0149201257154...
$source = $_FILES['new_image']['tmp_name']; $target = "images/".$imagename; move_uploaded_file($source, $target); $imagepath = $imagename; //below here for the removed code $save = "thumbs/uploads/" . $imagepath; //This is the new file you saving $file = "im...
[ 0.4950343668460846, -0.15390625596046448, 1.0465168952941895, -0.17037321627140045, 0.29259634017944336, 0.16575565934181213, 0.06821878999471664, -0.056971073150634766, -0.39106032252311707, -0.8981311917304993, -0.08358164876699448, 0.6712690591812134, -0.4828783869743347, 0.056106090545...
$imagesize = getimagesize($file); list($width, $height) = $imagesize; unset($imagesize); if($width>$height) { $modwidth = 150; $diff = $width / $modwidth;
[ 0.17507298290729523, -0.3401186466217041, 0.9410029053688049, -0.2690618336200714, 0.028171822428703308, 0.16185612976551056, 0.13614702224731445, -0.4123976528644562, -0.19085966050624847, -0.5830228924751282, -0.37287065386772156, 0.7279360294342041, -0.27937179803848267, 0.0930611267685...
$modheight = $height / $diff; }else{ $modheight = 150; $diff = $height / $modheight; $modwidth = $width / $diff; }
[ 0.028975166380405426, -0.036268096417188644, 0.521590530872345, -0.36344486474990845, -0.0839056745171547, 0.007385682314634323, 0.4322635233402252, -0.37425896525382996, 0.10628998279571533, -0.3210373520851135, -0.1792430877685547, 0.7470079064369202, -0.0032709024380892515, -0.085995413...
$tn = imagecreatetruecolor($modwidth, $modheight); $image = imagecreatefromjpeg($file); $imagecopy = imagecopyresampled($tn, $image, 0, 0, 0, 0, $modwidth, $modheight, $width, $height); imagedestroy($image); imagedestroy($im); imagedestroy($imagecopy); ima...
[ -0.11910028010606766, -0.12267603725194931, 0.7221784591674805, -0.10094387829303741, 0.033399421721696854, 0.4501860439777374, 0.08371424674987793, -0.33621087670326233, -0.2696729004383087, -0.571826696395874, -0.27822768688201904, 0.8359593749046326, -0.46377095580101013, 0.121363647282...
100); imagedestroy($tn); imagedestroy($imagejpg); ``` --- EDIT This has now been sorted out hopefully. One of my colleagues had a solution all along but neglected to tell me! You're likely loading the image to do some manipulation of it. That causes the image data to be decompressed, which re...
[ 0.12847822904586792, 0.096073217689991, 0.5516692996025085, 0.006467513740062714, -0.09714800119400024, -0.039929911494255066, 0.3366091251373291, -0.18873770534992218, -0.2675830125808716, -0.6692341566085815, -0.05877472832798958, 0.6391457915306091, -0.371211439371109, 0.158031910657882...
or some other program. It depends a bit on what you're trying to accomplish.
[ 0.7405029535293579, 0.010143599472939968, 0.04447898268699646, 0.3896864950656891, 0.16689178347587585, 0.1443505883216858, 0.012146166525781155, 0.08315017819404602, -0.047442059963941574, -0.39716801047325134, 0.15389254689216614, 0.4613035023212433, 0.21382518112659454, -0.1571035832166...
I'm trying to test the functionality of a web app by scripting a login sequence in Python, but I'm having some troubles. Here's what I need to do: 1. Do a POST with a few parameters and headers. 2. Follow a redirect 3. Retrieve the HTML body. Now, I'm relatively new to python, but the two things I've tested so far h...
[ 0.2832658290863037, -0.0575752891600132, 0.5945565700531006, -0.08999711275100708, -0.4175434112548828, 0.017308717593550682, 0.36944085359573364, -0.07844008505344391, -0.04893672466278076, -0.7878320217132568, 0.056762829422950745, 0.41009968519210815, -0.41228580474853516, -0.0109296534...
the page I'm trying to login to, I guess it's because of lack of cookies or something. Am I missing something simple? Thanks. Focus on `urllib2` for this, it works quite well. Don't mess with `httplib`, it's not the top-level API. What you're noting is that `urllib2` doesn't follow the redirect. You need to fold in...
[ 0.14059139788150787, 0.14466093480587006, 0.36150503158569336, 0.13503798842430115, -0.36464565992355347, -0.23800823092460632, 0.3598027527332306, -0.031896065920591354, -0.09939312934875488, -0.9172807335853577, -0.1846165955066681, 0.5044400095939636, -0.23955677449703217, 0.20635375380...
redirects and cookies properly. You may want to add your own subclass of `HTTPHandler` to capture and log various error codes, also.
[ 0.10892567783594131, -0.24882438778877258, 0.049128077924251556, 0.5321541428565979, -0.22941170632839203, -0.3110120892524719, 0.4560549557209015, -0.04958036169409752, -0.38700976967811584, -0.8117663860321045, -0.24166445434093475, 0.5616356134414673, -0.12978368997573853, -0.0843209773...
This is my first crack at a method that is run periodically during the lifetime of my ASP.NET application to clean up expired sessions stored in my database. It seems to work pretty well, but the software engineer in me doesn't feel "right" about this code. I've been working with LINQ to SQL for a few months now, but I...
[ 0.38840657472610474, 0.1456402838230133, 0.09419228136539459, 0.01980234682559967, 0.03934674710035324, -0.3665134608745575, 0.5517953038215637, -0.13512927293777466, -0.2603011727333069, -0.4508986175060272, 0.41360923647880554, 0.5053999423980713, -0.014551043510437012, 0.065475642681121...
of the idea of transactions, but I want to make sure I'm using them properly. 2. Is my query going to cause performance issues? Or is it appropriate in this case to select all of the records in this particular table? This method only runs every 15 minutes, so it's not like that query will be made over and over again in...
[ 0.3010602295398712, 0.32703664898872375, 0.41541245579719543, 0.08744415640830994, 0.24963225424289703, -0.2342866212129593, 0.3212707042694092, -0.19736556708812714, -0.4490490257740021, -0.6060678362846375, 0.14479336142539978, 0.6249973177909851, -0.0601380318403244, 0.03157274797558784...
<param name="connectionString">Database connection string</param> /// <returns>Number of expired sign in records removed</returns> public static int Clean(String connectionString) { MyDatabaseDataContext db = new MyDatabaseDataContext(connectionString); var signIns = db.SignIns.Select(x => x); int removeCo...
[ 0.1416979432106018, -0.1436624526977539, 0.7632715702056885, -0.2108236849308014, 0.1736871898174286, 0.1166406124830246, 0.305606484413147, -0.6183871626853943, -0.4743450880050659, -0.5264467597007751, -0.27307069301605225, 0.23186859488487244, -0.34493783116340637, 0.2502528727054596, ...
= currentTime.Subtract(signIn.LastActivityTime); if (span.Minutes > 10) { db.SignIns.DeleteOnSubmit(signIn); ++removeCount; } } db.SubmitChanges(); scope.Complete();
[ 0.253609299659729, -0.29637977480888367, 0.7810945510864258, -0.4479357600212097, 0.3037245571613312, -0.05647283419966698, 0.6091330051422119, -0.6608369946479797, -0.020426850765943527, -0.5847665071487427, -0.21458297967910767, 0.1943730264902115, -0.1405833661556244, 0.3211268186569214...
} return removeCount; } ``` This sounds like something you could easily do in a sproc. SQLServer gives you a GETDATE() method that returns the current time... I don't see why you can't just ``` DELETE * FROM tblSignIns WHERE LastActivityTime < DATEADD("minute", -10, GETDATE()); ``` Wouldn't that do the same...
[ 0.15415655076503754, -0.2944181561470032, 0.35141417384147644, -0.12635278701782227, 0.4006246328353882, -0.2768890857696533, 0.21332915127277374, -0.10718970000743866, -0.013145954348146915, -0.43147170543670654, 0.13867725431919098, 0.4535893499851227, -0.20513977110385895, 0.37978404760...
I am working on an ASP.NET MVC application where I need to export data to an excel spreadsheet. Previously, in webforms apps, I used some code I found to render a GridView as an excel-compatible file. This was quite handy. I was wondering what the quickest/most effective method would be to do this in MVC. Thanks. One s...
[ 0.4038274586200714, 0.06438034772872925, 0.4953277111053467, -0.15323735773563385, -0.11555889993906021, -0.0805235281586647, -0.033118221908807755, 0.2549256980419159, -0.20716889202594757, -0.7232434153556824, 0.12341832369565964, 0.5971361994743347, -0.012023611925542355, -0.05141159519...
up to you, of course. [XML 2003 ref on MSDN](http://msdn.microsoft.com/en-us/library/aa140066.aspx#odc_xmlss_ss:Workbook) [XML 2007 ref on MSDN](http://msdn.microsoft.com/en-us/library/aa338205.aspx)
[ 0.16914315521717072, 0.04731825366616249, 0.3895378112792969, 0.3280860185623169, 0.15500836074352264, -0.1446402668952942, 0.010255795903503895, -0.17717596888542175, -0.2676643133163452, -0.23189963400363922, -0.555873453617096, 0.6752253174781799, 0.14913296699523926, -0.303417384624481...
I try to write to a large file, but it seems like it does not work for files larger than 2GB. I have tried with boost::iostreams::file\_sink. Is this just a limit with the boost stream? Is there some other way I can write a large file on Win64 and win32? This depends on: * The file system which you're using. Old file ...
[ 0.29796352982521057, 0.20177467167377472, 0.41154560446739197, -0.16948074102401733, 0.044298481196165085, -0.06611490994691849, 0.27648016810417175, -0.32825520634651184, -0.2046622782945633, -0.8183220624923706, 0.1849747747182846, 0.8725379109382629, -0.16356110572814941, -0.11159920692...
and "tell"), you can only ever access 2GB (2^31bits, the 32th is the sign +/-) This might also help: <http://www.boost.org/doc/libs/1_37_0/libs/iostreams/doc/faq.html#offsets>
[ 0.20288003981113434, -0.06823192536830902, 0.41078153252601624, -0.1297556459903717, 0.268151193857193, 0.21505889296531677, -0.05443737283349037, -0.35655784606933594, -0.5142792463302612, -0.3972702920436859, -0.04074832797050476, 0.7746306657791138, -0.2868116796016693, -0.7319682240486...
What's the best way to move a document from one doc library to another? I don't care about version history or preserving CreatedBy and ModifiedBy metadata... ``` SPList lib1 = (SPDocumentLibrary) web.Lists["lib1"]; SPList lib2 = (SPDocumentLibrary) web.Lists["lib2"]; SPItem item1 = lib1.Items[0]; //insert code to move...
[ -0.29235103726387024, 0.043297991156578064, 0.6192956566810608, -0.12138549983501434, -0.12370867282152176, 0.2071533203125, 0.34391269087791443, -0.5281273722648621, -0.537652850151062, -0.8197919130325317, -0.22209583222866058, 0.405396044254303, -0.1914186328649521, 0.003783541964367032...
I have created a Registry class in .NET which is a singleton. Apparently this singleton behaves as if it were kept in the Cache (the singleton object is available to each session). Is this a good practice of should I add this Singleton to the Cache? + do I need to wacth out for concurrency problems with the GetInstance...
[ -0.04274670407176018, 0.21081309020519257, 0.3265145421028137, -0.047616347670555115, 0.1576254665851593, -0.009245744906365871, 0.5107637643814087, -0.2089463770389557, -0.015897128731012344, -1.004029393196106, -0.06058960035443306, 0.5979191660881042, -0.09023743122816086, 0.23870113492...
ExamDTORegistry() { examDTODictionary = new Dictionary<int, ExamDTO>(); } public static ExamDTORegistry GetInstance() { if (instance == null) { instance = new ExamDTORegistry();
[ -0.432748019695282, -0.13373969495296478, 0.8428243398666382, -0.04456868767738342, 0.007768516428768635, 0.045838531106710434, 0.47979435324668884, -0.2949872314929962, 0.20040152966976166, -0.7680522203445435, -0.42474350333213806, 0.6469523310661316, -0.12538215517997742, 0.096711426973...
} return instance; } } } ``` i would make it like: private static READONLY ExamDTORegistry instance; then you dont need to check for NULL and its thread safe.
[ -0.18066301941871643, 0.1424143761396408, 0.1216299906373024, -0.0722423642873764, -0.06036496162414551, -0.3485822379589081, 0.4009501039981842, 0.30480441451072693, 0.043136078864336014, -0.5728634595870972, -0.08248666673898697, 0.6040411591529846, -0.31606346368789673, 0.22803378105163...
In VB.NET, what is the difference between `And` and `AndAlso`? Which should I use? The `And` operator evaluates both sides, where `AndAlso` evaluates the right side if and only if the left side is true. **An example:** ``` If mystring IsNot Nothing And mystring.Contains("Foo") Then ' bla bla End If ``` **The abov...
[ 0.049740079790353775, 0.03766502067446709, 0.5638408660888672, -0.28711214661598206, -0.3162553310394287, -0.34397873282432556, 0.2071499228477478, -0.012251160107553005, -0.42781883478164673, -0.09399653971195221, -0.3812674283981323, 0.7097955346107483, -0.23698574304580688, -0.186078011...
I was intending to have a play with git, and was wondering if anyone had used the [git plugin for eclipse](http://www.eclipse.org/egit/) I see it's at version 0.3.1, and was wondering if anyone knew how stable it was / any gotchas? --- Update: If you are using a recent version of Eclipse, your Help menu has an 'Ecl...
[ 0.5586168766021729, -0.08160822093486786, 0.5053520202636719, 0.04957468435168266, -0.38910263776779175, -0.2507545053958893, 0.11720973253250122, 0.2355639636516571, -0.13067840039730072, -0.9900572299957275, 0.11676066368818283, 0.6834558844566345, 0.003553242888301611, -0.04912645742297...
I'm writing a java app using eclipse which references a few external jars and requires some config files to be user accessable. 1. What is the best way to package it up for deployment? 2. My understanding is that you cant put Jars inside another jar file, is this correct? 3. Can I keep my config files out of the jars ...
[ 0.693410336971283, 0.37758398056030273, -0.03649201616644859, -0.08318907022476196, -0.1265380084514618, 0.09600843489170074, 0.2939722239971161, -0.38528865575790405, 0.11688397079706192, -0.8726016283035278, 0.3725964426994324, 0.4645770192146301, -0.3241228461265564, -0.2369605153799057...
but I'm not sure I know what I'm doing. 5. Is there an equivelent of the deployment projects in Visual studio, that will figure out everything you need and just make an installer? I've used install4j before, and it was powerful if no where near as automated as .Net deployment projects. Cheers. There is no one 'best wa...
[ 0.67924964427948, -0.05157966539263725, 0.42476969957351685, -0.0401841402053833, -0.118590347468853, -0.07720454037189484, 0.2803146541118622, -0.18386130034923553, -0.15699826180934906, -0.8088152408599854, 0.03312164172530174, 0.8033024072647095, 0.12604162096977234, -0.1804935485124588...
your classpath, effectively meaning that jar files do not contain jar files). On point 3, you certainly can reference config files outside the jar file. You can typically reference a config file as a file or a resource. If you use the resource approach, it typically comes from the classpath (can be in a jar). If you u...
[ 0.12067610025405884, -0.1282295435667038, 0.08924397826194763, -0.03574538603425026, -0.24938683211803436, -0.2782754898071289, 0.33653056621551514, 0.06795918196439743, -0.19755592942237854, -0.97187340259552, 0.12130684405565262, 0.320130854845047, -0.3524346351623535, 0.0228124279528856...
I am developing a Rails application that will access a lot of RSS feeds or crawl sites for data (mostly news). It will be something like Google News but with a different approach, so I'll store a lot of news (or news summaries), classify them in different categories and use ranking and recommendation techniques. * Sho...
[ 0.38809072971343994, 0.03683081269264221, 0.07932829111814499, 0.17192278802394867, -0.41889482736587524, -0.052536316215991974, 0.11228625476360321, -0.038944147527217865, 0.04486406594514847, -0.7787224054336548, 0.11197696626186371, 0.7480530738830566, -0.2547955811023712, 0.06733108311...
scenario? I'd like to choose the best option but without over-complicating the solution. So I discarded the idea to use two different storage solutions (one for the news documents and other for the rest of the data). I'm also considering only "free" options, so I didn't look at Oracle or MS SQL Server. purexml is heav...
[ 0.3253267705440521, -0.02474725991487503, 0.1542896181344986, 0.12452714145183563, 0.03522180765867233, -0.17697538435459137, 0.12459573149681091, -0.10555045306682587, -0.22572052478790283, -0.4075906574726105, 0.12791509926319122, 0.3760114908218384, -0.35230010747909546, 0.0742391869425...
go with MySQL because its really good at serving and its totally free, well PostgreSQL is too, but haven't used it so I can't say. CouchDB could make sense, but not if you plan on doing OLAP (Offline Analysis) of your data, a normal RDBMS will be better at it.
[ 0.4494834244251251, -0.15862426161766052, -0.0286919753998518, 0.20213650166988373, -0.4034074544906616, -0.527277410030365, -0.08364842087030411, 0.46429434418678284, -0.06741929799318314, -0.39104893803596497, -0.08056023716926575, 0.6404786109924316, -0.3464958965778351, -0.137680456042...
I have a base class vehicle and some children classes like car, motorbike etc.. inheriting from vehicle. In each children class there is a function Go(); now I want to log information on every vehicle when the function Go() fires, and on that log I want to know which kind of vehicle did it. Example: ``` public class ...
[ 0.2513551414012909, 0.245732843875885, 0.1070295050740242, 0.12354875355958939, 0.06618863344192505, 0.23601238429546356, -0.036322902888059616, -0.2129000872373581, -0.20987741649150848, -0.4114252030849457, -0.15362423658370972, 0.8520717024803162, 0.05328343063592911, 0.1908444762229919...
Go() : base() { // do something } } ``` --- How can I know in the function Log that car called me during the base()? Thanks, Omri Calling [`GetType()`](http://msdn.microsoft.com/en-us/library/system.object.gettype.aspx) from Vehicle.Go() would work - but only if Go() was actually called. O...
[ 0.25311365723609924, 0.009202681481838226, 0.2771463692188263, -0.013067713938653469, -0.25110727548599243, 0.023721057921648026, -0.00007741996523691341, -0.10169178992509842, -0.1393473893404007, -0.16331155598163605, -0.20007315278053284, 0.9388343691825867, -0.1600903868675232, 0.01050...
GoImpl(); } protected abstract void GoImpl(); } public class Car : Vehicle { protected override void GoImpl() { // do something } } ```
[ 0.10322669893503189, 0.07348980009555817, 0.4399031698703766, 0.2198633998632431, 0.27230626344680786, 0.029870226979255676, -0.10606381297111511, -0.022133219987154007, -0.27581164240837097, -0.27348238229751587, -0.4884260296821594, 0.8206850290298462, -0.3924548625946045, 0.150568172335...
Good morning, Apologies for the newbie question. I'm just getting started with ASP.NET internationalization settings. Background info: I have a website which displays a `<table>` HTML object. In that `<table>` HTML object, I have a column which displays dates. My server being in the US, those dates show up as `MM/DD...
[ 0.6492687463760376, 0.4507828950881958, 0.855498194694519, -0.22375597059726715, -0.01777149736881256, -0.13665543496608734, 0.28583356738090515, 0.5071882009506226, -0.37235358357429504, -0.7109581232070923, -0.30067336559295654, 0.05435029789805412, 0.1548081487417221, 0.2232568413019180...
As is, they are downloading the dates as `MM/DD/YYYY`, which makes their spreadsheets unusable since their regional settings are set to `DD/MM/YYYY`. My question is: How do I make it so the web server realizes that the incoming request has a `en-GB` culture setting? I could engineer my own little custom workaround, b...
[ 0.41119271516799927, 0.04676399379968643, 0.5717578530311584, 0.14375704526901245, 0.2710561156272888, -0.07534898817539215, 0.4195113778114319, 0.40939486026763916, -0.3630281090736389, -0.4664415717124939, -0.004336829297244549, 0.2757780849933624, 0.12764334678649902, 0.2801443040370941...
I'm going to dread 6 months from now. Thanks a lot in advance, -Alan. A couple of points: * The <globalization> element also needs the attribute culture="auto". The uiCulture attribute affects the language used to retrieve resources. The culture attribute affects the culture used for formatting numbers an dates. * As...
[ 0.4264032542705536, 0.16677434742450714, 0.8019577860832214, -0.058070581406354904, 0.28172576427459717, 0.002737444592639804, 0.26456418633461, 0.27759110927581787, -0.3955517113208771, -0.5781154036521912, 0.018278440460562706, 0.0222189798951149, 0.02631017006933689, 0.19889335334300995...
or language and culture (CultureInfo name) for the page.
[ 0.3870561718940735, 0.14391303062438965, 0.2631952166557312, -0.1876153200864792, 0.09645820409059525, 0.2475256472826004, 0.3878052234649658, 0.4914703369140625, -0.4587196707725525, -0.40907925367355347, -0.5213364362716675, 0.14490815997123718, 0.08353201299905777, -0.013716576620936394...
I would like to assign a global hotkey to my Python application, running in Gnome. How do I do that? All I can find are two year old posts saying, well, pretty much nothing :-) Check out the Deskbar source code - they do this; afaik, they call out a C library that interacts with X11 to do the job
[ 0.16150492429733276, 0.3121997117996216, 0.1727496087551117, 0.08789434283971786, -0.018980978056788445, 0.028832610696554184, 0.44047215580940247, 0.5019451975822449, -0.23378683626651764, -0.3620385527610779, -0.07924022525548935, 0.21573130786418915, -0.17810404300689697, -0.08404033631...
I've recently been exposed to the fluent interface in nUnit and I love it; however, I am using msTest. Does anyone know if there is a fluent interface that is either testing framework agnostic or for msTest? See [Fluent Assertions](http://www.fluentassertions.com/). You can do stuff like ``` "ABCDEFGHI".Should().Sta...
[ 0.276127427816391, 0.07025454938411713, 0.4299154281616211, -0.33340534567832947, 0.061772290617227554, 0.09595297276973724, 0.642244815826416, -0.5678331851959229, 0.1443367749452591, -0.40807265043258667, -0.07860548049211502, 0.8212422132492065, -0.012208913452923298, 0.0831512287259101...
In your workplace, where do you store your common, non-database specific scripts that you use in SQL Server? Do you keep them in .SQL scripts on the file server, do you store them in the Master database, or do you keep them in a database you defined specifically for these kinds of things? We store them as regular sourc...
[ 0.7005243301391602, 0.2848188579082489, -0.17525474727153778, 0.16542474925518036, 0.062377240508794785, -0.3536810278892517, -0.10210414230823517, 0.2940842807292938, -0.38734695315361023, -0.6417189836502075, 0.1889626383781433, 0.40668612718582153, -0.018507320433855057, 0.1468439996242...
I'm working with a VB Script file written by someone else that uses Windows Management Instrumentation (WMI) calls to check on the status of several Windows Services. This script runs every few minutes on set schedule. I need to upgrade/replace the .exe for those services. I stop the VB Script, stop the services, and ...
[ 0.3144650459289551, 0.11637282371520996, 0.5643408298492432, -0.037204135209321976, 0.24854284524917603, -0.20872583985328674, 0.669164776802063, 0.22520145773887634, -0.3609735071659088, -0.7000902891159058, -0.19537538290023804, 0.6149526238441467, -0.26446178555488586, 0.552779436111450...
be a completely scripted/automated upgrade. Is there a way I can force WMI to release it's handle on the .exe? Please keep in mind I'm new to working with WMI. I'm also looking for a solution to this problem. Would also like to understand why wmiprsve has handles on some of my service executables but not on others. T...
[ 0.43842175602912903, -0.3155781924724579, 0.15452302992343903, 0.20843291282653809, 0.18292440474033356, -0.2665231227874756, 0.29359421133995056, -0.037887923419475555, -0.04929816350340843, -0.8163230419158936, -0.08576932549476624, 0.877945065498352, -0.31386056542396545, 0.115303434431...
I am tasked with developing a web application and am thinking of using the Struts framework as it seems to be a standard and is easy to implement. However, before making a decision I need to know the security features available in Struts. Are there effective ways to handle the [OWASP Top 10](http://www.owasp.org/ind...
[ 0.40140217542648315, -0.026504190638661385, 0.19375967979431152, -0.08560521900653839, -0.22974473237991333, 0.03538717329502106, 0.28122225403785706, -0.4086035490036011, -0.31408268213272095, -0.2323634773492813, 0.12394087761640549, 0.3979116678237915, -0.2170225828886032, -0.2551070153...
The hover "joke" in #505 [xkcd](http://en.wikipedia.org/wiki/Xkcd) touts "I call rule 34 on Wolfram's Rule 34". I know [what rule 34 is in Internet terms](http://www.urbandictionary.com/define.php?term=Rule%2034) and I've googled up [who Wolfram is](http://en.wikipedia.org/wiki/Stephen_Wolfram) but I'm having a hard t...
[ 0.09971106052398682, 0.10633699595928192, 0.34443414211273193, 0.0854937732219696, 0.217439204454422, 0.20561003684997559, -0.17992305755615234, -0.2953447103500366, -0.38062962889671326, -0.3735450804233551, -0.15951170027256012, -0.11045081913471222, -0.31194597482681274, 0.1566406935453...
0 1 2: 0 1 0 3: 0 1 1 4: 1 0 0 5: 1
[ -0.6212389469146729, 0.14475780725479126, 0.11155445128679276, -0.2766225039958954, -0.5171929001808167, 0.024897420778870583, 0.2576039731502533, -0.07245732843875885, 0.3297143578529358, -0.6579470038414001, 0.275970458984375, -0.4484065771102905, -0.20716488361358643, 0.1791122406721115...
0 1 6: 1 1 0 7: 1 1 1 ``` If you're evaluating a stage in a cellular automaton (CA) that follows rule 2, then whenever a three-bit string matches rule 2's configuration, the center bit becomes (or stays, in this case) true on the next iteration. A CA's rules are descr...
[ 0.11598876863718033, 0.3857460618019104, 0.138029083609581, -0.42146191000938416, 0.09107383340597153, -0.09332786500453949, 0.018566878512501717, -0.5997846126556396, 0.26198020577430725, 0.10882726311683655, -0.14697599411010742, 0.1369827687740326, -0.5129803419113159, 0.157792732119560...
a bitstring. Say it's rule 110 (my favorite). In binary, 110 is 01101110. The digit of least significance is zero. This means that if the cell and its neighbors match rule 0 above, it turns white/negative/0/false/whatever. The second least significant digit is one, so if the cell and its neighbors match rule 1 above, i...
[ -0.08495041728019714, 0.203735813498497, -0.1369503140449524, 0.01187457051128149, -0.03715657442808151, 0.07585727423429489, 0.1850314885377884, -0.17947407066822052, 0.0190651286393404, -0.3284527063369751, -0.06627364456653595, -0.1443159133195877, -0.3753318786621094, 0.342287540435791...
unique CA: <http://lucasoman.com/files/projects/caeditor/caed.php> As you can see by playing with it, you can randomly toggle any block, which alters every block below it according to the rules. It's kind of a neat way to see the chain reaction caused by aberrations in the process. Hope this helps.
[ 0.5151235461235046, 0.11072950810194016, -0.24761417508125305, 0.3662759065628052, -0.2948170304298401, -0.11093419790267944, 0.0792127251625061, -0.10991520434617996, -0.22209733724594116, -0.3340988755226135, 0.4441380202770233, -0.04842601716518402, -0.13823875784873962, 0.3488559126853...
I'm just starting out with WiX as I need to be able to automate building an MSI on our CI server. Is there anyway to automatically include all the dependencies of a project? The "proj" extension to heat.exe is getting better. [Heat](http://wixtoolset.org/documentation/manual/v3/overview/heat.html) isn't quite ready to ...
[ 0.46547409892082214, -0.06542551517486572, 0.5095997452735901, -0.2658727765083313, 0.08617793023586273, -0.17236439883708954, 0.17488837242126465, -0.16779088973999023, -0.0957641527056694, -0.8147294521331787, -0.04148478806018829, 0.2792391777038574, -0.27454209327697754, -0.03404104709...
trouble that people mention above. It's on our list to do better after the most egregious bugs are fixed in the core toolset.
[ 0.2600667476654053, 0.2911161780357361, 0.12581056356430054, 0.2635873258113861, 0.33148959279060364, -0.02765636332333088, 0.3463387191295624, 0.3535442650318146, -0.2161276936531067, -0.5561907887458801, 0.0010804140474647284, 0.7510607838630676, -0.20379085838794708, -0.1260617077350616...
Somehow my iPhone Simulator is unable to play sounds. First an app I'm working on using `AudioServicesPlaySystemSound()` stopped working.. I spent a while debugging this but sound is still working on the iPhone when I run the app on the device. I get the same results with other iPhone apps such as the sample Crash Land...
[ 0.3995622396469116, 0.3393068015575409, 0.15667188167572021, 0.2668984532356262, 0.44775834679603577, 0.03753158450126648, 0.4792114496231079, -0.22964602708816528, 0.16171103715896606, -0.8058369159698486, 0.045849382877349854, 0.9261820316314697, -0.21640290319919586, 0.03425918519496918...
"Play user interface sound effects". You need to re-activate your system sounds, see the end of [this](http://discussions.apple.com/thread.jspa?messageID=8883401) page.
[ 0.21592602133750916, -0.03459182381629944, 0.32342034578323364, -0.01731826551258564, 0.29802048206329346, -0.1965419501066208, 0.23763833940029144, 0.13812009990215302, -0.39488813281059265, -0.6018333435058594, -0.33842411637306213, 0.8134868144989014, -0.25395432114601135, -0.0877419933...
I'm trying to programmatically set the constructor sting of a COM+ component from a C# application. I found the following sample code online, but it throws an exception: ``` COMAdminCatalogCollection Components; COMAdminCatalogClass Catalog = new COMAdminCatalogClass(); string strConstr; ...
[ 0.0323362797498703, 0.10542842745780945, 0.6376063227653503, -0.3592376410961151, -0.06890912353992462, 0.2578815221786499, 0.09054484963417053, -0.49941858649253845, -0.3762718737125397, -0.49161043763160706, -0.21542449295520782, 0.5503733158111572, -0.2751852869987488, 0.069998972117900...
Applications.Populate(); // find the correct application foreach (COMAdminCatalogObjectClass AppObject in Applications) { if (AppObject.Name == ApplicationName) { // find matching component Components = (COMAdminCatalogCollectionClass)(Appl...
[ -0.5024412274360657, -0.004394720308482647, 0.9638009071350098, -0.06223222613334656, 0.3139127790927887, 0.37007737159729004, 0.11461775749921799, -0.43927159905433655, -0.05523090809583664, -0.6295561194419861, -0.43541470170021057, 0.5162559747695923, -0.47960516810417175, -0.0109966760...
Components.Populate(); foreach (COMAdminCatalogObjectClass CompObject in Components) { if (CompObject.Name.ToString() == CompName) {
[ -0.2770572304725647, -0.3645351529121399, 0.6066267490386963, -0.042070239782333374, 0.2509925365447998, 0.12738646566867828, 0.11059211194515228, -0.3699846863746643, -0.22575606405735016, -0.3385963439941406, -0.48132091760635376, 0.5657067894935608, -0.39850035309791565, -0.046571560204...
CompObject.get_Value("ConstructorString").ToString(); CompObject.get_Value("ConstructionEnabled").ToString(); } } } } ``` When I run
[ -0.11394509673118591, -0.036680493503808975, 0.28978291153907776, -0.3710961639881134, 0.2418196201324463, 0.06516218930482864, 0.5639578104019165, -0.2306138426065445, -0.056679412722587585, -0.4799499809741974, -0.44469183683395386, 0.7171703577041626, -0.2710115611553192, 0.058851171284...
this code, I get the following exception on line 6: > Unable to cast COM object of type 'System.\_\_ComObject' to class type 'COMAdmin.COMAdminCatalogCollectionClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the \_\_C...
[ -0.07417553663253784, 0.2184068113565445, 0.6275615692138672, 0.07220131903886795, 0.13753804564476013, -0.04779025912284851, 0.13500165939331055, -0.1317952275276184, -0.40196746587753296, -0.598997950553894, -0.08133348822593689, 0.46313634514808655, -0.344413161277771, 0.337610512971878...
to avoid the exception. Rather than doing this in C#, I can take advantage of VB.NET's optional weak typing to remove all of the casts and a couple of the variable declaration types. The resulting code looks like this: ``` Dim Components As COMAdminCatalogCollection Dim Catalog As New COMAdminCatalogClass() ...
[ 0.06291183829307556, -0.16433337330818176, 0.8731496930122375, -0.3092942535877228, 0.2556406259536743, 0.2455253154039383, 0.07685086131095886, -0.3391987979412079, -0.45631250739097595, -0.44807958602905273, -0.4100688695907593, 0.5085600018501282, -0.5281078815460205, 0.1628127992153167...