text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
the expression `[[YourClass alloc] init]`, you are personally sending the message directly to the instance. You may also call it indirectly, through another initializer (`[[YourClass alloc] initWithSomethingElse:bar]`) or a convenience factory (`[YourClass instance]`). Unlike `initialize`, you should always send `init...
[ -0.16203846037387848, -0.03827640414237976, 0.1770332157611847, -0.10118433088064194, -0.22431513667106628, -0.01753048226237297, 0.4302678108215332, 0.1227635070681572, 0.1129225343465805, -0.4750896096229553, -0.47881364822387695, 0.4269510805606842, -0.3404603898525238, -0.0644851624965...
people prefer `self = [super init]` on its own line, and [Wil Shipley doesn't assign to `self` at all](http://wilshipley.com/blog/2005/07/self-stupid-init.html)), but the basic idea is the same: call `[super init[WithSomething:…]]`, make sure it didn't return `nil`, set up the instance if it didn't, and return whatever...
[ -0.2367144227027893, -0.07810169458389282, 0.02384019084274769, 0.04841126874089241, -0.32954493165016174, -0.2930998206138611, 0.7734681367874146, -0.08290797472000122, -0.08309193700551987, -0.39353159070014954, 0.049418855458498, 0.5046224594116211, -0.30603474378585815, 0.0670586377382...
the scope of this question.) > How can I use this to create an instance of my AppController with instance variables that make up my interface? The best way is to do it all in `main`: ``` int main(int argc, char **argv) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; AppController *controller =...
[ -0.20369738340377808, -0.19918572902679443, 0.5994662046432495, 0.0969308465719223, 0.11452017724514008, 0.06490711867809296, 0.34280288219451904, -0.3282155394554138, -0.3962845802307129, -0.7645720839500427, -0.3057444393634796, 0.4144952893257141, -0.6286172270774841, 0.1326102316379547...
delegate methods in `AppController`. You already know this, but for anyone else who reads this: **Nibs are your friend. Interface Builder is your friend. Don't fight the framework—work with it, and build your interface graphically, and your application will be better for it.**
[ 0.20358623564243317, 0.012140885926783085, 0.09352646768093109, 0.26497429609298706, -0.12550392746925354, -0.02762879803776741, 0.2715361416339874, -0.30137163400650024, -0.43271058797836304, -0.9846404790878296, -0.09789690375328064, 0.6946561932563782, -0.2085181623697281, -0.1779105216...
I'm designing a re-usable class library that contains 2 assemblies (amongst others) named core.xml.dll and core.string.dll. The xml assembly references the string assembly in order to use some string helper methods. However now there is an string method that would be benefit from using a method contained in the xml ...
[ 0.6948671340942383, 0.05107128620147705, -0.058328740298748016, 0.09257777780294418, 0.15837353467941284, -0.09037144482135773, 0.3040010631084442, 0.020725067704916, -0.2411307543516159, -0.34666189551353455, 0.41134801506996155, 0.13433684408664703, -0.5259453058242798, 0.695562720298767...
in both assemblies. If I find a bug in the implementation I only want to fix it in one place. While I could merge the assemblies into one, this is not ideal as it reduces the cohesiveness of the assembly. I would need to re-build and re-deploy the entire assembly just for a small change to a specific class. Also, ev...
[ 0.2191162407398224, -0.19245152175426483, -0.2831416726112366, 0.060682263225317, -0.17788287997245789, -0.09073469042778015, 0.1996130645275116, -0.09225111454725266, -0.40997573733329773, -0.784919798374176, -0.03849972039461136, 0.3649030029773712, -0.5992076396942139, -0.01459950674325...
with this issue? (In Reflector it appears that System.Configuration.dll references System.XML.DLL and vice versa. Is this actually correct, if so how is the circular dependency managed?) Agree with Knives. Circular depedencies is a design smell. Refactor it Mercilessly! This can be challenging in the case where busin...
[ 0.37804022431373596, 0.27057427167892456, 0.1672344207763672, -0.12351872771978378, -0.32568031549453735, -0.07277174293994904, -0.10684368759393692, -0.45325595140457153, -0.10592875629663467, -0.3866443336009979, 0.23346401751041412, 0.5386437773704529, -0.37110084295272827, 0.3783550560...
higher level, can be abstracted to work with any sort of other type, so long as it fulfills its contracts.
[ 0.23963183164596558, -0.24352052807807922, 0.3733275532722473, 0.5147783160209656, 0.1967964470386505, -0.06603290885686874, -0.12108953297138214, -0.07887642830610275, 0.08511395007371902, -0.535581648349762, -0.40574708580970764, 0.408268541097641, 0.033292051404714584, -0.06474965065717...
I know that modern browsers generally have two render mode: standard mode and quirk mode. The browser detects the heading DocType. The question is how to detect render mode of current page at runtime. Is there any Firebug tool to do that? Before IE8: ``` alert('Page was rendered in ' + ((document.compatMode == 'CSS...
[ 0.07490590214729309, 0.03744175285100937, 0.7297680974006653, -0.06466160714626312, -0.03440862521529198, -0.08349407464265823, 0.5503278970718384, -0.031067371368408203, 0.053473323583602905, -0.8382074236869812, -0.2653113603591919, 0.727672278881073, 0.02285943366587162, 0.0727818533778...
by default" behavior you'll need to be rendering in IE8 Standards Mode. This mode affects the rendering of your HTML+CSS **as well as the fixes to JavaScript** methods like `document.getElementById( id );` and `.setAttribute( name, value );`
[ 0.027202585712075233, -0.1531335413455963, 0.5740625858306885, -0.04666626453399658, 0.11196096986532211, -0.06019669398665428, 0.7235568761825562, -0.12242953479290009, -0.14855071902275085, -0.8609287738800049, -0.46573036909103394, 0.848209798336029, -0.3005979657173157, -0.227267593145...
I have a simple Python web crawler. It uses SQLite to store its output and also to keep a queue. I want to make the crawler multi-threaded so that it can crawl several pages at a time. I figured i would make a thread and just run several instances of the class at once, so they all run concurrently. But the question is,...
[ 0.44573840498924255, 0.1415686458349228, 0.0208227951079607, -0.005109576042741537, -0.19189593195915222, 0.18029768764972687, 0.049622729420661926, 0.09464024007320404, -0.4062409996986389, -0.4976712763309479, 0.5053778290748596, 0.43996527791023254, -0.43893706798553467, 0.2993556559085...
web page, downloads the html, runs a few regex searches through it, stores the info it finds in a SQLite db, and then pops the next url off the queue. You will probably find your application is bandwidth limited not CPU or I/O limited. As such, add as many as you like until performance begins to degrade. You may come...
[ 0.5227877497673035, -0.1740112602710724, 0.5296497344970703, 0.3555532991886139, -0.29627811908721924, -0.24012906849384308, 0.5031120777130127, 0.0956868901848793, -0.5428109169006348, -0.870092511177063, 0.008741214871406555, 0.3987795412540436, -0.13530181348323822, 0.31795015931129456,...
provider may treat you as being infected by a virus or the like. There's also the issue of how many requests the server you're crawling can handle and how much of a load you want to put on it. I wrote a crawler once that used just one thread. It took about a day to process all the information I wanted at about one pa...
[ 0.5062921643257141, -0.259367436170578, 0.21199703216552734, 0.048612888902425766, -0.11658132821321487, 0.35528117418289185, 0.13857263326644897, 0.3586132228374481, -0.47050052881240845, -0.7208815813064575, 0.5105125308036804, 0.25642088055610657, -0.4326346516609192, 0.2823627889156341...
have up to 20-30 threads without any problems.
[ 0.5952003598213196, -0.09710092842578888, 0.27137890458106995, 0.24011392891407013, 0.1607118844985962, 0.0615253709256649, 0.4125630557537079, 0.04713200777769089, -0.23643545806407928, -0.5496807098388672, -0.1831255853176117, -0.03540177270770073, -0.013052603229880333, -0.0657659322023...
After reading the "Modern PHP workflow" article in the [November 2008 edition of php|architect magazine](http://phparch.com/magazine/index/86) which discussed unit testing ([phpUnit](http://www.phpunit.de/)), build tools ([Phing](http://phing.info/trac/)) and continuous integration ([Xinc](http://code.google.com/p/xin...
[ 0.36260300874710083, 0.20010121166706085, 0.11548628658056259, -0.04090790078043938, -0.21900731325149536, -0.05423906072974205, 0.06041295826435089, -0.24950666725635529, -0.13067886233329773, -0.3136138916015625, 0.13563738763332367, 0.5296704173088074, -0.0012555362191051245, -0.0345657...
What should I look out for, or what gotchas might I face? I have used both Phing and Ant and prefer the latter much more. I initially went with Phing due to it being written in PHP but to be honest it isn't as mature as Ant. In the end, having a mature buildsystem with a large community is worth more. Things done with...
[ 0.47767308354377747, 0.10854806005954742, 0.14043162763118744, -0.06343615055084229, -0.2419803887605667, 0.03926200792193413, 0.3434799313545227, -0.0999787226319313, 0.13358309864997864, -0.7524569630622864, 0.20547613501548767, 0.6075607538223267, -0.01684911735355854, -0.32460105419158...
code version 4. run unit tests, etc
[ 0.5293195247650146, -0.0192713662981987, 0.12477967888116837, 0.07856976240873337, -0.0424245223402977, -0.19875024259090424, 0.30502787232398987, -0.41290801763534546, -0.03035428188741207, -0.42200371623039246, -0.4514690637588501, 0.47951000928878784, -0.16786688566207886, -0.1435685157...
I've been reading a number of [tutorials](http://cgi.cse.unsw.edu.au/~dons/blog/2007/11/29) [on](http://www.haskell.org/haskellwiki/Haskell_in_5_steps) Haskell. However, I have not been able to get the compiled application to run on a multicore (I have an Intel Quad Core) on **windows (32 bit)**. I have tried a numbe...
[ -0.22381475567817688, 0.0719389095902443, 0.5338122844696045, -0.14512495696544647, 0.005330651067197323, 0.03603740781545639, 0.5742158889770508, -0.17228055000305176, -0.09078607708215714, -0.8065338730812073, -0.23438028991222382, 0.574367105960846, -0.3647827208042145, -0.0937152355909...
r = fib (n-2) main = forM_ [0..350] $ \i -> printf "n=%d => %d\n" i (fib i) ``` If vili is correct (I can't test as I don't own any MS boxes), it might be related to [this bug](http://hackage.haskell.org/trac/ghc/ticket/2868)
[ -0.030995549634099007, -0.22979164123535156, 0.3589101731777191, -0.08152016997337341, 0.2745913863182068, -0.05407660827040672, 0.26943549513816833, -0.37446558475494385, -0.15374116599559784, -0.5018845200538635, -0.12760545313358307, 0.39736101031303406, -0.6346555948257446, 0.267476260...
In the past I have really enjoyed using [Trac](http://trac.edgewall.org/) with subversion repositories hosted on some of my own servers. The integrated ticketing and online code browsing is very convenient. I have used [github](http://github.com) for some of my public projects but I don't have the money to shell out f...
[ 0.3272988498210907, -0.016098173335194588, 0.32961952686309814, 0.3117446303367615, -0.23457744717597961, -0.3077826499938965, 0.06717897951602936, 0.2307603657245636, -0.5080590844154358, -0.6118285655975342, 0.1773122102022171, 0.4623635709285736, -0.2153063863515854, 0.32223138213157654...
me) to see that commits and current state of the codebase online without making the project public. I am aware of [GitPlugin](http://trac-hacks.org/wiki/GitPlugin) but have not been able to get it up and running successfully. Any other suggestions? Integrated ticketing (and wiki) is desired but not an absolute necessi...
[ 0.283376008272171, -0.12790930271148682, 0.33861351013183594, 0.11352620273828506, -0.0337601974606514, -0.4836248457431793, 0.4322696924209595, 0.050675299018621445, -0.11063328385353088, -0.9224857091903687, 0.06626667082309723, 0.5355361104011536, -0.504204273223877, 0.04289952665567398...
may also try out [Redmine](http://www.redmine.org/) and [CGit](http://hjemli.net/git/cgit/) as this seem like other pieces of software that do what I am looking for. Any other suggestions are welcome. You should take a look at Redmine (<http://www.redmine.org/>). It has all of the features you mention and more. You can...
[ 0.41470766067504883, -0.06345029920339584, 0.20331287384033203, 0.028229501098394394, -0.1980082094669342, -0.42924267053604126, -0.005674752872437239, 0.26196470856666565, -0.4082804322242737, -0.4675980806350708, 0.07315551489591599, 0.5730718970298767, -0.1497650444507599, 0.02029190771...
I remember in vb6 there was a control that was similar to a dropbox/combobox that you can select the drive name. It raises an event which you can then set another control which enumerate files in listbox. (in drive.event you do files.path = drive.path to get this affect). Is there anything like this in C#? a control t...
[ 0.16028045117855072, -0.4419805109500885, 0.09777279943227768, 0.1297881305217743, -0.2333238571882248, -0.1850370466709137, -0.13380315899848938, -0.17167867720127106, -0.42924752831459045, -0.40620309114456177, 0.17556048929691315, 0.8066511750221252, -0.43382561206817627, 0.030919877812...
editing, and in the Load event for the form, add this line: ``` comboBox1.DataSource = Environment.GetLogicalDrives(); ``` Now you can handle the SelectedValueChanged event to take action when someone changes the selected drive. After answering [this question](https://stackoverflow.com/questions/623254/getdrivetype...
[ 0.003458064515143633, -0.21659673750400543, 0.5031190514564514, -0.04356802999973297, 0.13522347807884216, -0.2024003565311432, -0.20501157641410828, -0.15694674849510193, -0.24528323113918304, -0.7128704190254211, -0.12937036156654358, 0.9344080090522766, -0.38098210096359253, 0.050877071...
you can do this now: ``` comboBox1.DataSource = System.IO.DriveInfo.GetDrives() .Where(d => d.DriveType == System.IO.DriveType.Network); comboBox1.DisplayMember = "Name"; ``` I think the DriveInfo method is a lot more flexible.
[ 0.06277863681316376, -0.23491159081459045, 0.4079255163669586, -0.191421777009964, 0.16357102990150452, -0.2688121199607849, -0.16578219830989838, 0.03689160943031311, -0.19554857909679413, -0.8189495801925659, -0.09248603880405426, 0.8487565517425537, -0.3024503290653229, 0.24115779995918...
Am facing error after uploadind to server... as access denied .... can anyone help me.... ``` Document myDocument = new Document(PageSize.A5, 26, 72, 180, 180); string strUniqueFn = "onlineinvoice.pdf"; string imgpath = "logo.gif"; string strUser = Thread.CurrentPrincipal.Identity.Name.Substring(Thread.Cu...
[ -0.07041474431753159, 0.26541686058044434, 1.2024656534194946, -0.16666792333126068, 0.28557753562927246, 0.03708925470709801, 0.6019230484962463, -0.8966382741928101, 0.10453342646360397, -0.7887904047966003, -0.37537190318107605, 0.7606312036514282, -0.19514229893684387, 0.16156519949436...
pdfw = PdfWriter.GetInstance(myDocument, new FileStream(strPath, FileMode.Create)); string iPath = strFolder + "\\" + imgpath; pdfw.CloseStream = false; myDocument.Open(); ...................... myDocument.Close(); ``` Am facing error at `PdfWriter pdfw = PdfWriter.GetInstance(myDocument, new FileStream(...
[ -0.2554731070995331, 0.159895658493042, 0.9136638045310974, 0.1236037164926529, -0.07565438747406006, -0.21321767568588257, 0.40936166048049927, -0.32003161311149597, 0.08088800311088562, -0.8630733489990234, -0.3892623782157898, 0.6003612279891968, -0.22915887832641602, 0.1604617834091186...
We have an open source media center plug-in. At the moment its download size is one measly megabyte. If I change my plug-in to require .NET 3.5, users may have to download [197 megs](http://www.west-wind.com/weblog/posts/292203.aspx) just to be able to use my plug-in. I am in the middle of a big refactoring process, ...
[ 0.2461528331041336, 0.24120697379112244, 0.8415888547897339, 0.15939302742481232, 0.35600870847702026, -0.3361244797706604, 0.008742711506783962, 0.07238810509443283, -0.1255965381860733, -0.6440907120704651, -0.23777595162391663, 0.8168452978134155, 0.02794494852423668, 0.0965135991573333...
next version of Windows, will come with .NET 3.5. And: the probability that the XP and Vista users will already have installed 3.5 for other programs increases from month to month. *P.S.: I'm using your Media Center plugin. I am sure I'll do that 3.5 setup.*
[ 0.3917357325553894, -0.010835572145879269, 0.9083237648010254, 0.2616761028766632, 0.03400973975658417, -0.25109943747520447, 0.45072636008262634, 0.1564536839723587, -0.20880849659442902, -1.0512068271636963, -0.34747788310050964, 0.6903285980224609, 0.07184622436761856, -0.11813955008983...
I want to open the Settings-> Sound & Display-> Phone Ringtones screen from my application. How can I do that? Depending on your needs, there are a couple of alternatives to bring up the 'Ringtones' settings screen from your application. If you want to bring up the actual preferences screen that is usually available t...
[ 0.5476676821708679, 0.1224723756313324, 0.7407585382461548, -0.033561207354068756, 0.1725558489561081, 0.24255336821079254, 0.21339885890483856, -0.5139190554618835, -0.04170460253953934, -0.4356794059276581, 0.07510203123092651, 1.1031931638717651, -0.27396538853645325, 0.0498473942279815...
use in your application you need to add a `RingtonePreference` in your `preferences.xml` definition file, like this: ``` <RingtonePreference android:key="alerts_ringtone" android:title="Select ringtone" android:showDefault="true" android:showSilent="true" android:ringtoneType="" /> ``` You'll be able to ...
[ 0.06653507053852081, 0.11306915432214737, 0.7537405490875244, -0.1924605518579483, 0.09721758961677551, -0.015909481793642044, 0.07142962515354156, -0.4152408838272095, 0.27396559715270996, -0.5404103994369507, -0.27209287881851196, 0.6849323511123657, -0.24849297106266022, -0.084961108863...
I am using Environment.GetLogicalDrives(); to get a list of drives. I remember in c++ i could use GetDriveType to find if the device was CD, removable, flash, etc and i am thinking i want to put a filter in my app to only show CD and removable on default. What is the GetDriveType equivalent in C#? google only showed me...
[ 0.40080466866493225, 0.041368577629327774, 0.4189048409461975, 0.07407841831445694, -0.17275778949260712, -0.21063251793384552, 0.011552353389561176, -0.15120014548301697, -0.08373852074146271, -0.7836328744888306, -0.051106709986925125, 0.9070631265640259, -0.4875928461551666, 0.083902351...
I'd like to have something like a "catch-all" for exceptions thrown from a inside a Control or a Form that reside within the **current thread**, but without resorting to using the `Application.ThreadException` of the entire thread. Why? Because I'd like to keep the exception handling modular. All the code that can ca...
[ 0.534670352935791, 0.07131309062242508, -0.06057603657245636, -0.024376630783081055, -0.00027982619940303266, -0.3171917200088501, 0.08928744494915009, -0.04376829043030739, -0.5955419540405273, -0.3731779456138611, -0.012867331504821777, 0.3732776939868927, -0.3177284896373749, 0.19749902...
the Application.ThreadException, I can know that the cleanup involves closing `DummyForm`. The alternatives, as I see them, are: # Wrap every single thrown exception in the `DummyForm` with a `DummyFormException`. I don't like this so much, since it requires future programmers to remember to wrap each thrown exceptio...
[ 0.4363979399204254, 0.24294494092464447, 0.2974487543106079, -0.12434530258178711, 0.022262871265411377, -0.349149614572525, 0.39347144961357117, 0.1029122993350029, -0.3969200551509857, -0.5401198267936707, 0.040274444967508316, 0.5510998964309692, -0.30606409907341003, 0.3371849358081817...
seems a waste just for error-handling. Or am I going about this all wrong? I'm not sure it's a good idea to put all the error handling code in a single place. Error handling should better take place next to the operation it handles. The whole point of error handling is to change the program behaviour where the progra...
[ 0.32938796281814575, 0.29792705178260803, -0.3306924104690552, 0.21977490186691284, 0.008851713500916958, -0.1253311187028885, 0.5259755253791809, 0.08964694291353226, -0.3368172347545624, -0.5391491651535034, 0.06601164489984512, 0.45205870270729065, -0.20477285981178284, 0.05138255283236...
exceptions handlers (Application.ThreadException, AppDomain.CurrentDomain.UnhandledException) do exists, but that's not what they are for. You should use those to handle unexpected exceptions, ie, something wrong occurred that you didn't think of, and you want to handle this case nicely (For example, you may want to l...
[ 0.2966678738594055, 0.07484256476163864, 0.06611207872629166, 0.14989200234413147, 0.10403948277235031, -0.32826727628707886, 0.4309445321559906, 0.19944854080677032, -0.5161226987838745, -0.5248342752456665, -0.05357180908322334, 0.23335875570774078, -0.27393439412117004, 0.05083896219730...
I was trying this piece of code to check whether the divide by zero exception is being caught: ``` int main(int argc, char* argv[]) { try { //Divide by zero int k = 0; int j = 8/k; } catch (...) { std::cout<<"Caught exception\n"; } return 0; } ``` When I comp...
[ 0.1839705854654312, -0.044342223554849625, 0.07540050148963928, -0.35209256410598755, 0.1831616312265396, -0.0847887322306633, 0.07520250231027603, -0.03965895250439644, -0.24097101390361786, -0.27432534098625183, -0.0731796994805336, 0.31499940156936646, -0.4842078387737274, 0.29996049404...
executed and the output was "Caught exception". However, when I compiled this using VS2008, the program crashed without executing the catch block. What could be the reason for the difference? Enable structured exception handling under project -> properties -> configuration properties -> c/c++ -> code generation -> enab...
[ 0.017959702759981155, -0.06483323127031326, 0.07538913935422897, -0.14231739938259125, -0.10309763252735138, -0.20127040147781372, 0.6552104353904724, -0.25791189074516296, -0.1432770937681198, -0.5161638259887695, -0.07112471014261246, 0.3177257776260376, -0.6528024673461914, -0.264197349...
{ //Divide by zero int k = 0; int j = 8/k; } __except(EXCEPTION_EXECUTE_HANDLER) { if(GetExceptionCode()==EXCEPTION_INT_DIVIDE_BY_ZERO) std::cout << "Caught int divison exception\n"; else std::cout << "Caught exception\n";
[ 0.026074901223182678, -0.25317782163619995, 0.08012646436691284, -0.2900605797767639, 0.2736996114253998, -0.014456732198596, 0.2965548634529114, -0.26011475920677185, -0.2760036289691925, -0.24627023935317993, -0.4620760679244995, 0.17265105247497559, -0.48927122354507446, -0.087912127375...
system("pause"); } return 0; } ```
[ 0.05773492529988289, -0.2635057270526886, 0.2606201767921448, -0.058545660227537155, 0.5334938168525696, 0.13025951385498047, 0.3329029083251953, 0.18255360424518585, -0.25272998213768005, -0.32723069190979004, -0.3850274085998535, 0.6324003338813782, -0.3618168830871582, 0.615881025791168...
In my Rails app, I have a login page. After that person logs in, what is the best way for my app to continue tracking the person that has logged in. For example, if the user moves to different pages, my controllers/actions will lose track of that user unless I keep passing a variable between each page the user subseque...
[ 0.3020484149456024, -0.002691782545298338, 0.4201872944831848, 0.033466458320617676, 0.050766173750162125, 0.009604744613170624, 0.2952684760093689, -0.028457190841436386, -0.18552033603191376, -0.8228088617324829, 0.3576045036315918, 0.5744142532348633, -0.23874053359031677, -0.1779248565...
= User.find(session["user_id]") ```
[ 0.04498257860541344, 0.26838210225105286, -0.04470788314938545, -0.17460300028324127, 0.16766874492168427, -0.4542616009712219, 0.3774341642856598, 0.05871236324310303, 0.0036853125784546137, -0.324290931224823, -0.09823554009199142, 0.4704344868659973, -0.3061351776123047, 0.4124119579792...
I have the following set up Custom Control 1 - MyListControl - Nested Collection of - MyListItemControl MyListItemControl inherits from a Panel so I can write this: ``` <cc1:MyListControl ID="MyListControl1" runat="server"> <ListItems> <cc1:MyListItemControl ID="MyListItemControl1" runat="server" CustomPro...
[ -0.15223874151706696, 0.04652755334973335, 0.6958888173103333, 0.0076315756887197495, 0.03947913274168968, 0.04012484848499298, 0.14009690284729004, -0.34734615683555603, -0.2360481172800064, -0.6973536610603333, -0.1400153934955597, 0.5063444972038269, -0.34788429737091064, -0.03371358290...
is happening and the linkbutton is not being rendered as it normally would? TIA Andrew Yes, sessions are exactly what you are looking for. ``` session["user_id"] = user_id ``` And to fetch the current user on another page (if your model is called User): ``` @current_user = User.find(session["user_id]") ```
[ 0.2700609862804413, -0.20128585398197174, 0.39778971672058105, 0.2612895667552948, 0.08580218255519867, -0.374188095331192, 0.4742811620235443, -0.009609606117010117, -0.47985872626304626, -0.6329358220100403, -0.07212904095649719, 0.5002731084823608, -0.26318493485450745, -0.0271872878074...
How would one go about implementing the indexing "operator" on a class in C# ? ``` class Foo { } Foo f = new Foo(); f["key"] = "some val"; f["other key"] = "some other val"; ``` in C# ? Searched MSDN but came up empty. Here is an example using a dictionary as storage: ``` public class Foo { private Dictiona...
[ -0.22570787370204926, -0.19236117601394653, 0.17599168419837952, -0.03758128359913826, 0.061100658029317856, 0.07397836446762085, 0.1253345012664795, -0.22054129838943481, -0.0491962693631649, -0.37911340594291687, -0.296165406703949, 0.7203531265258789, -0.4428684413433075, 0.034304480999...
return _items[key]; } set { _items[key]=value; } } } ```
[ -0.11786361783742905, 0.07095211744308472, 0.28259438276290894, -0.17956365644931793, 0.12621821463108063, -0.06360825151205063, 0.22550441324710846, -0.19081230461597443, -0.22239339351654053, -0.4701014757156372, -0.5473909378051758, 0.6688655018806458, -0.41343164443969727, 0.2264998555...
I have a short attention span so I couldn't make my way through the [Wikipedia article](http://en.wikipedia.org/wiki/Garbage_Collection). I understand there are several techniques for garbage collection but a common one is the "reachability" test, where an object's eligibility for collection is based on whether or not...
[ 0.25723838806152344, 0.026442069560289383, -0.14929911494255066, 0.27898094058036804, 0.2946433126926422, -0.14284977316856384, 0.36042603850364685, -0.2565615773200989, -0.42021578550338745, -0.26891565322875977, -0.10397160053253174, 0.17990654706954956, 0.3293364942073822, 0.20307248830...
rooted objects. How does it determine the reachability of each of these objects? By walking the pointers/references, I'd say. In principle you just look whether an object still has references pointing to it (from other objects, local variables of currently executed code, ...). If it hasn't then no reference to this obj...
[ 0.0398598350584507, -0.18951018154621124, 0.038240548223257065, 0.3350669741630554, -0.05215965956449509, -0.1803267002105713, 0.2727397680282593, -0.03804329037666321, -0.5171036124229431, -0.2942964434623718, -0.04645887389779091, 0.12506338953971863, -0.045085977762937546, 0.18001554906...
be incremented each time someone gets a reference to that object and decremented each time someone loses a reference to that object. COM in Windows works that way, if I remember correctly. Java and .NET use (among others) generational garbage collection where each object is initially assumed to die very quickly (gener...
[ 0.18114961683750153, 0.08556436002254486, 0.10690745711326599, 0.0722501277923584, -0.18306191265583038, -0.3862806558609009, 0.21459192037582397, 0.01641811802983284, -0.4466816484928131, -0.28933098912239075, -0.10075244307518005, 0.31715306639671326, -0.5107167959213257, 0.3069479167461...
memory is low, i. e. too many dead objects have accumulated and need to be reclaimed. That's why most managed applications seem to waste much more memory compared to unmanaged ones, even though in many cases much of that memory can be reclaimed by running the GC once.
[ -0.11129248142242432, 0.3865710496902466, 0.13647569715976715, 0.3740646541118622, 0.23108048737049103, -0.14029408991336823, 0.03494523465633392, 0.36276137828826904, -0.29119977355003357, -0.5826430916786194, -0.3102608323097229, 0.42084845900535583, -0.009454735554754734, 0.279233932495...
I've decided to tackle Project Euler [problem 233](http://projecteuler.net/index.php?section=problems&id=233) next but I'm having some major problems! I've done some analysis and have made some quite nice progress but I've become stuck now. Here's my working: **Lemma 1**: Since the circle goes through the 4 corner poi...
[ -0.07874467223882675, 0.20389346778392792, 0.2560596764087677, -0.36547282338142395, -0.5963814854621887, 0.11070945858955383, 0.5785906314849854, -0.7546399831771851, -0.29993897676467896, -0.44748276472091675, -0.21354436874389648, 0.059822361916303635, -0.24017545580863953, 0.2009678781...
solution of x^2+y^2 = n(x+y) is written (x, y, z) then another solution is (kx, ky, kz). The proof of that is: ``` (x+y)n = x^2+y^2 (kx)^2+(ky)^2 = (kx+ky)m k(x^2+y^2) = (x+y)m m = kn ``` This was as much as I did with that line of thought - I couldn't see anywhere to go from there but it's included because it well...
[ -0.6570421457290649, 0.02290128730237484, 0.5118923187255859, -0.14914372563362122, -0.18939536809921265, 0.22454896569252014, -0.008930010721087456, -0.4257718622684479, -0.22350579500198364, -0.5775669813156128, -0.2786824703216553, -0.12430275231599808, -0.2070665955543518, 0.2291487455...
that there are just as many solutions to this equation as there are to the equation x^2+y^2=k^2 (see Sloane [A046109](http://www.research.att.com/~njas/sequences/A046109)). This also gives an easy method for computing the number of solutions for any n via [A046080](http://www.research.att.com/~njas/sequences/A046080)....
[ -0.18963341414928436, 0.059809789061546326, 0.21933698654174805, -0.2741486430168152, 0.019136741757392883, 0.5147151350975037, 0.17430230975151062, -0.6106719970703125, -0.2857823371887207, -0.28195133805274963, -0.1229807436466217, 0.42833226919174194, -0.1982858031988144, 0.168961256742...
n, in the form 2k and less than 10^11, which have 420 circle lattice points. The answer (I hope!) is 257199853438240692. Here's the C program: ``` #include "stdlib.h" #include "stdio.h" #include "math.h" #include "string.h" #define lim 1000000000L char prime[lim]; long primes[50000000]; long len = 0; int main(void...
[ -0.06324099004268646, -0.0160388071089983, 0.4259231388568878, -0.2969943881034851, 0.2163005918264389, 0.5281000733375549, 0.00711672380566597, -0.32807791233062744, -0.328276664018631, -0.3220170736312866, -0.13035351037979126, 0.22538048028945923, 0.0030045397579669952, 0.20983709394931...
for(j = 2*i; j < lim; j += i) prime[j] = 0; if((i-1)%4 == 0) { prime[i] = 2; //printf("%li\n", i); primes[len++]
[ -0.1212194636464119, -0.3665420711040497, 0.16902048885822296, -0.5858733654022217, 0.14755088090896606, 0.31810885667800903, 0.2771972417831421, -0.34477317333221436, -0.04418467730283737, -0.27545857429504395, -0.29990968108177185, 0.8479130864143372, -0.3259904384613037, -0.126948460936...
= i; } } if(i < 1000 || (i < 10000 && i%1000 == 0) || i%10000 == 0) printf("%li, %li\n", i, len); } printf("primes!\n"); long a, b, c, v, total = 0, k; for(a = 0; a < len; a++) { v = primes[a]*primes[a]*primes[a]; if(v
[ -0.0563039667904377, -0.08712636679410934, 0.3407366871833801, -0.49208134412765503, 0.21104000508785248, 0.6197566390037537, 0.3884066343307495, -0.5872966647148132, -0.1436883807182312, -0.2120681256055832, -0.3485720157623291, 0.6231570839881897, -0.4333828091621399, 0.22615008056163788...
> 50000000000L) break; for(b = 0; b < len; b++) { if(b == a) continue; v = primes[a]*primes[a]*primes[a]*primes[b]*primes[b]; if(v > 50000000000L) break; for(c = 0; c < len; c++) {
[ 0.2784367799758911, -0.17370477318763733, 0.39051517844200134, -0.21273639798164368, 0.3905884325504303, 0.09502648562192917, 0.43068113923072815, -0.39106863737106323, -0.5461682081222534, -0.031198585405945778, -0.5726784467697144, 0.2956375479698181, -0.3794528841972351, 0.1238201260566...
if(c == a) continue; if(c == b) continue; v = primes[a]*primes[a]*primes[a]*primes[b]*primes[b]*primes[c]; if(v > 50000000000L) break; for(k = 1; k*v <= 50000000000L; k++)
[ 0.1635057032108307, -0.09317798167467117, 0.5235902070999146, -0.19082260131835938, 0.6715997457504272, 0.061627380549907684, 0.5326520800590515, -0.3580223023891449, -0.533505380153656, -0.09882812201976776, -0.6953138709068298, 0.27622172236442566, -0.3085220456123352, 0.3906579613685608...
{ if(prime[k] == 2) continue; total += k*v; } } } }
[ -0.05311191827058792, -0.279842346906662, 0.4223810136318207, -0.35815688967704773, 0.2981826364994049, 0.22256988286972046, 0.4820713400840759, -0.27818721532821655, -0.25747066736221313, -0.026333311572670937, -0.35857799649238586, 0.5086647868156433, -0.31835728883743286, 0.356216639280...
for(a = 0; a < len; a++) { v = primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]; if(v > 50000000000L) break; for(b = 0; b < len; b++) { if(b == a) continue; v = primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes...
[ 0.14771252870559692, -0.07727761566638947, 0.1545257419347763, -0.2000179886817932, 0.4098603427410126, 0.02036656066775322, 0.45508652925491333, -0.4159446358680725, -0.5530557632446289, -0.02022464945912361, -0.7036461234092712, 0.5027003288269043, -0.4624265432357788, 0.0640671774744987...
for(k = 1; k*v <= 50000000000L; k++) { if(prime[k] == 2) continue; total += k*v; } } } for(a = 0; a < len; a++)
[ -0.042563606053590775, -0.43966954946517944, 0.3421984314918518, -0.4110242426395416, 0.03743532672524452, 0.4982564449310303, 0.566351592540741, -0.4024747610092163, -0.32229992747306824, -0.03047465719282627, -0.3304358422756195, 0.3416064977645874, -0.2648095488548279, 0.314245313405990...
{ v = primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]; if(v > 50000000000L) break; for(b = 0; b < len; b++) { if(b == a) continue; v = primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*primes[a]*prime...
[ 0.30317598581314087, -0.1363326907157898, 0.18635062873363495, -0.1959322690963745, 0.249447762966156, 0.04880489781498909, 0.5053523182868958, -0.3970898389816284, -0.5341014266014099, -0.003121127374470234, -0.637162983417511, 0.6750919222831726, -0.42762047052383423, 0.13743047416210175...
for(k = 1; k*v <= 50000000000L; k++) { if(prime[k] == 2) continue; total += k*v; } } } printf("%li\n", 2*total); return 0; } ``` We just need to add on the values of n
[ -0.05438292399048805, -0.03898100554943085, 0.4469479024410248, -0.5421971082687378, 0.2999201714992523, 0.3122992515563965, 0.5197097063064575, -0.5370926260948181, -0.23019878566265106, -0.4341742992401123, -0.23131661117076874, 0.46334683895111084, -0.4143020212650299, 0.106723099946975...
that have 420 circle lattice points and are in the form 2k+1! However, that seems harder than for n=2k and I can't see any method for it. I'm also a little unsure whether my answer for even n is correct since the method is quite convoluted... Can anyone confirm it? Is there a neat method without involving treating diff...
[ 0.1016261950135231, 0.051535237580537796, -0.06979866325855255, -0.14158080518245697, -0.282279372215271, -0.06372876465320587, 0.3028387129306793, -0.32595229148864746, -0.3278387188911438, -0.3293399214744568, -0.03302989900112152, 0.18052907288074493, -0.22543615102767944, 0.28988841176...
applies. Hint 2: Don't bother sliding the circle around. Pick it up off the graph paper and just think about it, the square that defines it, and the as yet unknown points of interest on the circumference in relation to each other. Hint 3: The angle inscribed in a half circle is always 90 degrees. Hint 4: How many wa...
[ 0.24311555922031403, 0.0025034009013324976, 0.4937075078487396, 0.13191156089305878, -0.249309241771698, -0.2514075040817261, 0.2641221284866333, -0.21453623473644257, -0.2165607362985611, -0.4999932050704956, -0.10854651778936386, 0.3604826033115387, 0.06066898629069328, -0.37828269600868...
missing steps to interleave with the hints above: Hint 1.5: You're going to have to change your way of looking at the problem since the approach you were using is based on a flawed premise. Hint 2.5: Think about a lattice point on the left side of the arc between the top corners of the square. By symmetry there is an...
[ 0.0039130947552621365, -0.016823677346110344, 0.029643628746271133, 0.05111510679125786, -0.249461367726326, -0.13385191559791565, 0.16740311682224274, -0.5446843504905701, -0.16802719235420227, -0.5123810768127441, -0.024893514811992645, 0.12495868653059006, -0.25242671370506287, 0.157687...
the left side of the arc between the top corners of the square for any given n?
[ -0.017428457736968994, -0.057381171733140945, 0.16433730721473694, -0.0491248220205307, -0.22090396285057068, 0.13896164298057556, 0.15857762098312378, -0.22665417194366455, -0.22432024776935577, -0.3334423005580902, 0.25076600909233093, 0.16242744028568268, 0.07442157715559006, -0.0378726...
Given a DateTime and a DayOfWeek should return the date of the last DayOfWeek of that month. E.g. 1st-March-2009 and Sunday would return 29th-March-2009 Can't find a handy one-liner but this one works: ``` static DateTime LastDayOfWeekInMonth(DateTime day, DayOfWeek dow) { DateTime lastDay = new DateTime(day.Year...
[ -0.05532475933432579, -0.22631673514842987, 0.8768735527992249, -0.2833588123321533, 0.3138434588909149, -0.017314059659838676, 0.15267910063266754, -0.18416498601436615, -0.07910323888063431, -0.47388955950737, -0.14537149667739868, 0.6229134202003479, -0.11615236848592758, 0.466562390327...
I have just installed VS C# Express 2008 which includes SQL Server Express 2008. It all went ok and I can see VS C# and SQL Server in the list of installed products. When I start VS C# it looks fine but in the DB Explorer / Data Connection context menu the option 'Create new SQL Server Database' is disabled. I have u...
[ 0.09220326691865921, 0.0626104399561882, 0.6454275846481323, -0.1128464937210083, -0.32549118995666504, -0.25824031233787537, 0.4249129891395569, 0.02238222397863865, -0.1138201355934143, -0.6835050582885742, 0.20084743201732635, 0.6793909072875977, -0.2689040005207062, 0.26433324813842773...
cluttering your SQL Server Express with databases. You can create your database with the **Add Connection...** dialog, by choosing the **Microsoft SQL Server Database File** option. The database will reside in a file of your choosing. It works pretty well for any typical 'express' kind of project. Note: If you use th...
[ -0.24768540263175964, 0.007792548276484013, 0.2799633741378784, 0.1541125625371933, -0.21624605357646942, -0.3603222668170929, 0.2646525204181671, 0.5016128420829773, -0.2229292243719101, -0.7395225167274475, 0.1877434402704239, 0.3892787992954254, -0.5074858069419861, 0.31920531392097473,...
I've realized you can have a property in an object run automatically like this: ``` var obj = { init:(function(){ alert('loaded');})(); } ``` I'm trying to use this method as an initializer for the object. The problem I'm running into is passing a reference to 'obj' to the init property. I suspect it generates...
[ -0.019557785242795944, 0.06157325580716133, 0.3922627866268158, -0.23721083998680115, 0.05578772723674774, -0.20292890071868896, 0.5582858920097351, -0.08410172164440155, -0.16912509500980377, -0.6988956332206726, -0.2786518335342407, 0.5443563461303711, -0.6401528716087341, 0.034821175038...
you want to create multiple instances of similar objects, you should use plain old constructor functions (remember to put shared properties in the prototype!). If you want to create a single object, consider using an anonymous constructor. Your example would read: ``` var obj = new (function() { this.prop = funct...
[ 0.29137006402015686, -0.2483799159526825, 0.18156197667121887, -0.13097980618476868, -0.044657088816165924, -0.11551885306835175, 0.48651689291000366, -0.05516384169459343, -0.28077074885368347, -0.6309739947319031, 0.08055729418992996, 0.6012595295906067, -0.6089949011802673, 0.2863660752...
they may make simple things simple, but complex things will get overly complicated.
[ 0.37601950764656067, 0.232502743601799, -0.2002689689397812, 0.46241888403892517, 0.1400475800037384, -0.05107477679848671, 0.26299548149108887, 0.004683254286646843, -0.14366136491298676, -0.4906945824623108, -0.05610741674900055, 0.3485561013221741, 0.008593935519456863, 0.19444790482521...
I have a small utility that was originally written in VS2005. I need to make a small change, but the source code for one of the dlls has been lost somewhere. Is there a free or reasonably priced tool to reverse engineer the dll back to C++ code. [Hex-Rays decompiler](https://www.hex-rays.com/products/decompiler/) is ...
[ 0.5131953954696655, -0.1038847267627716, 0.08655603229999542, 0.19266903400421143, 0.038698289543390274, -0.3032839596271515, 0.014605295844376087, 0.19485503435134888, -0.12771724164485931, -0.5792025327682495, 0.06611141562461853, 0.3180190324783325, -0.27214664220809937, 0.3230584561824...
So you download the toolkit off Codeplex. Now what? Where do you prefer to place the binaries? I'm particularly interested in what you do with the design binaries, where in your systems folders do you place these? Do you add them to the GAC? This question definitely targets the original release(s) of the [Silverlight ...
[ 0.6970155239105225, -0.0034360666759312153, 0.1584106832742691, 0.08167757838964462, -0.23859050869941711, -0.3516366183757782, 0.03676168620586395, -0.024254022166132927, -0.4581936299800873, -0.5465195775032043, 0.04541792720556259, 0.38415250182151794, -0.32547271251678467, 0.1128157228...
Create a set of folders under the Silverlight SDK, to contain the toolkit * Create a Start Menu group with links to documentation, online forums, a getting started guide, and the source code * Register the Silverlight Toolkit's controls with Visual Studio's toolbox and Expression Blend's control library * Register the ...
[ 0.5669869780540466, 0.05866618454456329, 0.2715035676956177, 0.11517521739006042, -0.04555126279592514, -0.19343113899230957, -0.04482271149754524, -0.558074414730072, -0.12462633103132248, -0.7102258801460266, -0.28814977407455444, 0.12766031920909882, -0.5806568264961243, -0.347982257604...
I am using Dotnetopenid for my openid solution, everything is fine when using the built-in user control, but when I want to implement it programmaticaly, like the below code, ``` openid.Response.GetExtension<DotNetOpenId.Extensions.SimpleRegistration.ClaimsResponse>(); ``` is always null. any idea? ``` OpenIdR...
[ -0.03138211369514465, -0.17788787186145782, 0.739936113357544, -0.22259390354156494, 0.22953751683235168, -0.33393630385398865, 0.44648948311805725, -0.34393396973609924, -0.12862327694892883, -0.6727772355079651, -0.04566269740462303, 0.5384545922279358, -0.4191831350326538, 0.11092873662...
// in the authentication assertion. // var extension = openid.Response.GetExtension<SomeExtensionResponseType>(); // Use FormsAuthentication to tell ASP.NET that the user is now logged in, // with the OpenID Claimed Identifier as their username.
[ -0.1524299681186676, -0.2194981873035431, 0.7717255353927612, 0.03704014793038368, 0.12246280908584595, -0.2879849672317505, 0.3687331974506378, -0.12632323801517487, -0.13411879539489746, -0.6686211228370667, -0.33750301599502563, 0.24087050557136536, -0.045639943331480026, 0.083820439875...
State.ProfileFields = openid.Response.GetExtension<DotNetOpenId.Extensions.SimpleRegistration.ClaimsResponse>(); FormsAuthentication.RedirectFromLoginPage(openid.Response.ClaimedIdentifier, false); break; ``` getting help from [Andrew](http://blog.nerdbank.net) I've missed to add exten...
[ 0.2964625358581543, -0.20230375230312347, 0.5520939230918884, 0.05193094164133072, 0.07951552420854568, -0.024131039157509804, 0.43825846910476685, -0.36467164754867554, -0.30459141731262207, -0.9694326519966125, -0.15944701433181763, 0.33762645721435547, -0.32921215891838074, 0.2877753674...
wanted ' to include in the authentication request. ' request.AddExtension(someExtensionRequestInstance); Dim myclaim As New ClaimsRequest With myclaim .BirthDate = DemandLevel.Request .Country = DemandLevel.Request .Email = DemandLevel.Request ...
[ 0.26500457525253296, 0.041607555001974106, 1.1937463283538818, -0.26245149970054626, 0.37270569801330566, -0.035073213279247284, 0.07367166876792908, -0.18154561519622803, -0.19868843257427216, -0.056542083621025085, -0.06989573687314987, 0.26039817929267883, 0.3966112732887268, 0.31818017...
DemandLevel.Request .Gender = DemandLevel.Request .Language = DemandLevel.Request .Nickname = DemandLevel.Request .PostalCode = DemandLevel.Request .TimeZone = DemandLevel.Request End With request.AddExtension(myclaim) ' Send your vi...
[ 0.09831570833921432, -0.1897570639848709, 1.0084478855133057, -0.06476205587387085, -0.1561824530363083, 0.13657516241073608, -0.003866629907861352, 0.08820212632417679, -0.30287793278694153, -0.2565326690673828, -0.36110612750053406, 0.05590328201651573, -0.22082668542861938, 0.2148313671...
their Provider for authentication. request.RedirectToProvider() ``` code is in vb.net
[ 0.6345639228820801, -0.06179956719279289, 0.46346941590309143, 0.12533284723758698, -0.18152973055839539, -0.14664709568023682, 0.2339543253183365, -0.1645139753818512, -0.3168881833553314, -0.458660751581192, -0.04612637311220169, 0.276474267244339, -0.061245862394571304, 0.34046068787574...
Really 2 questions. Why is it that these bits of code dont validate to XHTML 1.0 Strict. XHTML 1.0 Strict is a project requirement. Line 2 causes the problem > document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" ...
[ 0.3996002674102783, -0.015422424301505089, 0.6841745376586914, 0.3419801890850067, -0.06329970061779022, -0.22124359011650085, 0.4619162678718567, -0.07862589508295059, -0.13400614261627197, -0.24611081182956696, -0.23819294571876526, 0.4242326617240906, -0.21720291674137115, -0.3295876979...
"h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag. ``` <form action="#"> <input type="text" size="30" name="query" value="" onkeypress="return disableEnterKey(event)" /> <input type="button" name="searchButton" value="Search" onclick="loadResults(this.form)" /> </form> ``` Y...
[ -0.056096430867910385, -0.17934389412403107, 0.6338947415351868, -0.1474306285381317, 0.2033710926771164, 0.03264543041586876, 0.2293824851512909, -0.529289722442627, -0.042550064623355865, -0.6547473669052124, -0.7168098092079163, 0.5141933560371399, -0.4336455166339874, -0.38143700361251...
I was told this works, but... I guess I'm just not getting this, it seems there's a hidden step I may be missing, can anyone correct this or point out my mistake? Thanks. I have a blank solution: - inside is two .net 2.0 web applications 1) webapp1 2) webapp2 I want them to share the same session data. My ...
[ 0.3132293224334717, -0.025660516694188118, 0.35127827525138855, 0.02920057810842991, -0.09742951393127441, -0.40897202491760254, 0.4296051263809204, -0.2838752567768097, -0.30884885787963867, -0.7614026665687561, -0.06404823064804077, 0.6534508466720581, -0.27379167079925537, 0.05287990346...
set the ``` < machineKey validationKey="BFE2909A81903BB303D738555FEBC0C63EB39636F6FEFBF8005936CBF5FEB88CE327BDBD56AD70749F502FF9D5DECF575C13FA2D17CA8870ED21AD935635D4CC" decryptionKey="2A86BF77049EBA3A2FA786325592D640D5ACD17AF8FFAC04" validation="SHA1" /> < sessionState mode="StateServer" stateConnectionString="tcpi...
[ 0.37325847148895264, 0.036764003336429596, 0.30198463797569275, 0.19376784563064575, -0.0430530421435833, -0.14194568991661072, 0.36503463983535767, -0.5955554842948914, -0.23225879669189453, -0.6330127716064453, -0.019478773698210716, 0.5653509497642517, -0.17667633295059204, 0.0776140913...
understand why this is. From [MSDN](http://msdn.microsoft.com/en-us/library/ms178581.aspx): > ASP.NET session state enables you to store and retrieve values for a > user as the user navigates ASP.NET pages in a Web application. HTTP is > a stateless protocol. This means that a Web server treats each HTTP > request...
[ -0.06858941167593002, -0.2794383466243744, 0.5006452798843384, 0.31606316566467285, -0.11320250481367111, -0.04488448053598404, 0.32145947217941284, -0.2941164970397949, -0.43271389603614807, -0.7990074753761292, -0.18059822916984558, 0.05839956924319267, -0.14614614844322205, 0.3183898329...
that session. ASP.NET Session is a metaphor for a user's current interaction with **one ASP.NET application**. It exists in ASP.NET to give us a place to store temporary state data between the various page requests that a user makes while using your application. If your applications are very closely related, e.g. the...
[ 0.27033478021621704, -0.2298641949892044, 0.2921251356601715, 0.3245064914226532, -0.13272732496261597, -0.12166046351194382, 0.19344186782836914, 0.023753318935632706, -0.38323065638542175, -0.7268007397651672, -0.026617418974637985, 0.08340702950954437, -0.2255377620458603, 0.32707551121...
related, perhaps they should be sharing the same database as a means to exchange data, or using an API e.g. based on Web Services to exchange information.
[ 0.5533878207206726, 0.21650153398513794, 0.2271033674478531, 0.3858840763568878, -0.020416319370269775, -0.25629493594169617, -0.1263877898454666, 0.06674773246049881, -0.41186195611953735, -0.6394444704055786, 0.009525592438876629, 0.31580454111099243, 0.026020171120762825, 0.309619486331...
I've gotten my brain in a knot over the simple task of getting an application directory from the user. I have an AppFolderDialog form, which I use as a dialogue, on which there are OK and Cancel buttons, a read only textbox, and a Browse button. The browse button opens up a FolderBrowserDialog. Now when the user click...
[ 0.11979439109563828, 0.26711490750312805, 0.6700891256332397, 0.049272678792476654, 0.08511833101511002, 0.2402597814798355, 0.2445671558380127, -0.12417837232351303, 0.027314288541674614, -0.4880823791027069, -0.08594758808612823, 0.8454767465591431, -0.4343993067741394, 0.035820838063955...
the user another chance to browse for a directory. Now I also need a Cancel button on the dialogue itself, so the user can cancel without having to select an invalid directory. I know I have this all wrong, but I'm busy with many things at once, and my concentration is shot. I would appreciate some suggestions as to ...
[ 0.2974536716938019, 0.158931702375412, 0.32403337955474854, 0.30240392684936523, -0.1330755352973938, -0.11328808218240738, 0.4013124704360962, 0.2037173956632614, -0.09470140933990479, -0.7163758873939514, -0.029805194586515427, 0.9978554844856262, 0.03752908110618591, 0.07669911533594131...
I wouldn't bother checking in the directory select dialog. Let the user select a directory and if they somehow select one that doesn't exist, or doesn't have your app data in it or whatever, put off the error message. After all, the user could select a perfectly good directory in your app and then delete it.
[ 0.35138848423957825, 0.2495853453874588, 0.12738744914531708, 0.2642636299133301, 0.24233877658843994, -0.15448305010795593, 0.5524166226387024, 0.49468135833740234, -0.11234511435031891, -0.6151888370513916, -0.007976705208420753, 0.656746506690979, -0.25202280282974243, 0.006240992341190...
I was going to create the C++ IDE **Vim** extendable **plugin**. It is not a problem to make one which will satisfy my own needs. This plugin was going to work with workspaces, projects and its dependencies. This is for unix like system with **gcc** as c++ compiler. So my question is what is the most important t...
[ 0.46850529313087463, -0.0010097428457811475, 0.07550595700740814, 0.19652864336967468, -0.17048971354961395, -0.0055360193364322186, -0.35003912448883057, -0.09685885906219482, -0.17630808055400848, -0.5389800071716309, 0.11932917684316635, 0.6133992671966553, -0.16587188839912415, 0.11445...
the most annoying things in this process. Is is necessary to recreate "project" from the Makefile? Thanks. *Reason to create this plugin:* With a bunch of plugins and self written ones we can simulate most of things. It is ok when we work on a one big "infinitive" project. Good when we already have a makefil...
[ 0.6069394946098328, 0.023429924622178078, 0.06268435716629028, 0.47550463676452637, -0.17988955974578857, -0.3763470947742462, 0.46938127279281616, 0.3577370047569275, -0.34983116388320923, -0.62114018201828, 0.1190597265958786, 0.48573359847068787, -0.2631707191467285, 0.34703561663627625...
similar could be a good project api function to cooperate with an existing and the future plugins. Cooperation with an existing makefiles can help to find out the list of the real project files and the executable name. With plugin system inside the plugin there can be different project templates. Above are some reas...
[ 0.49652719497680664, -0.035779211670160294, 0.36294493079185486, 0.15717287361621857, -0.16043385863304138, -0.041621048003435135, -0.033511701971292496, -0.1181342676281929, -0.14531771838665009, -0.9644179940223694, 0.307976633310318, 0.7940190434455872, 0.005953115411102772, 0.222060918...
rename file/variable/method functions * easy access to c++ help * easy change project settings (Makefiles, jam, etc) * fast autocomplette for paths/variables/methods/parameters * smart identation for new scopes (also it will be good thing if developer will have posibility to setup identation rules) * highlighting incor...
[ -0.17020437121391296, 0.000984822167083621, 0.05221397429704666, 0.16170363128185272, -0.1423640251159668, 0.02534252405166626, 0.2918103337287903, -0.45925435423851013, -0.140726700425148, -0.6302111148834229, -0.4127836227416992, 0.31795039772987366, -0.33409568667411804, -0.063979245722...
XUL panels in a Firefox extension overlay always come with a shadow for free. How can I remove this shadow? *Example code for the shadow effect I don't want:* ``` <popupset> <panel id="popuppanel" width="500" noautohide="true"> <vbox> <label value="test"/> <label value=""/> ...
[ 0.41884854435920715, -0.2081792950630188, 0.7517388463020325, 0.012590189464390278, 0.05804142355918884, -0.03098272532224655, -0.054971177130937576, -0.13675612211227417, -0.15066853165626526, -0.6964591145515442, 0.03570803627371788, 0.44664114713668823, -0.18376524746418, -0.06177635118...
</vbox> </panel> </popupset> ``` *And a screenshot:* [Example image of shadow effect I don't want. http://img124.imageshack.us/img124/7766/shadowj.png](http://img124.imageshack.us/img124/7766/shadowj.png "Example of shadow effect I don't want.") Use the following CSS statement: -moz-window-shadow: none; See al...
[ 0.1789640337228775, -0.015660123899579048, 0.7508852481842041, -0.34368741512298584, 0.15109048783779144, 0.16061362624168396, 0.4879550039768219, -0.1128939688205719, -0.2622092664241791, -0.36273273825645447, -0.4293554723262787, 0.5006989240646362, -0.5168067812919617, -0.16958430409431...
Is there a BitTorrent client written completely (I mean completely) written in C# ? I am aware of the BitTorrent clients written in mono, I absolutely love it. Are there any other opensource BitTorrent clients other than MonoTorrent & BitSharp written in C# which is under development? Just wondering how much of an in...
[ 0.46044620871543884, 0.30710193514823914, -0.08266579359769821, 0.3467863202095032, -0.13414323329925537, -0.24075192213058472, 0.2517518997192383, 0.34955453872680664, -0.34781134128570557, -0.4495237171649933, -0.1864309459924698, 0.6731674075126648, -0.23630893230438232, -0.143658071756...
Monsoon for now it runs only at Linux. If you have a time to spend you could write a WPF GUI or with little modification to port Monsoon to Windows. Look for Alan McGovern for more information.
[ 0.2534947395324707, 0.04079838842153549, -0.23965950310230255, 0.04608217254281044, -0.1732408106327057, -0.26982226967811584, 0.20882822573184967, 0.3108951151371002, -0.2326713651418686, -0.30795708298683167, -0.00839107483625412, 0.5334653854370117, -0.2950569689273834, -0.1775687634944...