text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I'm trying to figure out the SQLite functionality for the iPhone, and I'm having some problems reading my database file from an overridden UITableViewDataSource function. I am storing the database file location in an ivar (as an NSString) in my application delegate, however when I try to access that string from an over...
[ -0.03585038334131241, 0.16288723051548004, 0.19762174785137177, 0.06534303724765778, 0.1627613604068756, 0.20045380294322968, 0.4312961995601654, -0.0925302729010582, -0.09132340550422668, -0.5417865514755249, 0.31143590807914734, 0.6698915362358093, -0.34222447872161865, 0.202371910214424...
the NSString to hold the path to my database file using stringByAppendingPathComponent: . I failed to realize that this was going to be autoreleased, and so I didn't bother to explicitly retain it. That reason it was returning a different type of object was because that memory had been reused once the string had been a...
[ -0.13577522337436676, -0.19564034044742584, 0.5552705526351929, 0.1243855208158493, -0.059263236820697784, -0.06318349391222, 0.3882388174533844, -0.008170108310878277, -0.3620469272136688, -0.2712639570236206, 0.19884489476680756, 0.6111091375350952, -0.347646027803421, 0.3013007342815399...
Just wondering, because of a problem I am running into, is it possible to create a vector of pointers? And if so, how? Specifically concerning using iterators and .begin() with it, ie: How would I turn this vector into a vector of pointers: ``` class c { void virtual func(); }; class sc:public c { void func...
[ -0.10085256397724152, -0.24348656833171844, 0.7413514256477356, -0.038777805864810944, 0.002630708971992135, 0.1715983748435974, -0.272124320268631, -0.2560907006263733, -0.47886332869529724, -0.5163159966468811, -0.2055698037147522, 0.725102961063385, -0.43319350481033325, 0.0242521390318...
iterator, you want something like: ``` (*it)->func(); ``` Of course, it's quite probable you didn't want a vector of pointers in the first place...
[ -0.18723160028457642, -0.25360023975372314, 0.12804947793483734, 0.3398735225200653, -0.053523335605859756, -0.1088184267282486, -0.057374633848667145, 0.023464102298021317, -0.2006130814552307, -0.163253054022789, -0.1496574580669403, 0.6173163652420044, -0.4121817648410797, -0.2820841372...
I'm copying data from one database to another and massaging the data while I'm at it. Both databases have tables called Clients and Jobs. However, in database "Alpha" the Jobs table does not have a relationship to the Clients table, where database "Epsilon" does. Alpha's Jobs table just has the Clients name in an nva...
[ 0.24847745895385742, 0.05861411988735199, 0.083808533847332, -0.04466816410422325, 0.06789485365152359, 0.3998187780380249, -0.22786077857017517, -0.19384896755218506, -0.16843090951442719, -0.8289376497268677, 0.06645873188972473, 0.16625402867794037, -0.3261348307132721, 0.32088351249694...
Name, Location, DateCreated from Alpha.dbo.Jobs ``` How can I modify this so that the ???? contains the ClientId from the Clients table in Epsilon? I know I need to lookup the data using the Name column in Jobs, but I can't figure out the syntax for this. ``` insert into Epsilon.dbo.Jobs (ClientId, Name, Location, Da...
[ -0.10682196170091629, 0.20743580162525177, 0.13841144740581512, -0.2932332754135132, 0.0623975470662117, 0.20198224484920502, -0.1259745955467224, -0.13493970036506653, -0.01437328476458788, -0.7024548649787903, -0.11078561097383499, 0.42181363701820374, -0.3751479685306549, 0.083063423633...
I have this block of code: ``` users = Array.new users << User.find(:all, :conditions => ["email like ?", "%foo%"]) users << User.find(:all, :conditions => ["name like ?", "%bar%"]) users.flatten! users.uniq! puts users.to_json :include => [:licenses] ``` When I run it using script/console, it returns exactly what y...
[ -0.031309738755226135, -0.03362113609910011, 0.5785143971443176, -0.19875364005565643, -0.06858988106250763, -0.02689104713499546, 0.008032751269638538, -0.15025445818901062, -0.11278203874826431, -0.8972227573394775, 0.014657675288617611, 0.4395785629749298, -0.37615036964416504, 0.563395...
code is verbatim the same. The only difference is that when I'm running it in the console, I'm entering the conditions manually, but in my method, I'm pulling the query from `params[:query]`. But, I just tried hardcoding the queries and got the same result, so I don't think that is the problem. If I remove the `:includ...
[ 0.20762944221496582, 0.14399731159210205, 0.07813400030136108, 0.3038829565048218, -0.08092670887708664, -0.020230723544955254, 0.6456962823867798, 0.18972617387771606, -0.12407815456390381, -0.6537259221076965, -0.32121551036834717, 0.5158198475837708, -0.4370213747024536, 0.1373185366392...
Twitter gem is one of them (ran into a problem with this awhile back). Do you have "include [anything]" or "require [anything]" in this controller? If not, I'd suggest temporarily removing any plugins you're using to troubleshoot, etc. Finally, what happens if you replace that entire controller action with simply: %...
[ 0.5229977965354919, -0.33316391706466675, -0.10952944308519363, 0.24614958465099335, -0.15243449807167053, -0.2634296417236328, 0.5787532925605774, 0.44439056515693665, -0.18480715155601501, -0.6684900522232056, 0.2656570076942444, 0.4557650089263916, -0.3752414584159851, -0.03651163727045...
In Java, suppose I have 3 classes, C extends from B which extends from A. ``` class X { interface A {} interface B extends A {} interface C extends B {} void f(A a) {} void test() { C c = new C() B b = (B) c; f(b); } } ``` If I do something like this as shown in `test()` above: ...
[ -0.06837321072816849, 0.09960529953241348, 0.020584464073181152, -0.4364260137081146, -0.2190195769071579, -0.12417525798082352, 0.26765134930610657, -0.523185670375824, -0.05923297256231308, -0.6634059548377991, -0.07361298054456711, 0.29426339268684387, -0.4273203909397125, -0.0100783370...
`C` and `B` both extend from `A`. I wanted `f()` to receive `b` as type `B` and not type `C`. Is there anyway to force this upcasting? `f()` will *always* receive something typed as A (despite under the covers it's actually a B or C, and can be downcast appropriately). You can define an additional f() thus ``` f(B b...
[ 0.26301056146621704, 0.023704595863819122, 0.1140969842672348, -0.21021036803722382, 0.012288295663893223, -0.09964083880186081, 0.14800339937210083, -0.14539670944213867, -0.1855975240468979, -0.38126614689826965, -0.5564203262329102, 0.5703452229499817, -0.5468934178352356, 0.08483181893...
that your cast in the question is redundant. You can write: ``` C c = new C() B b = c; f(b); ``` since C extends from B, C *is a* B.
[ 0.2989322245121002, 0.08588109910488129, 0.07263710349798203, -0.3550341725349426, -0.11447681486606598, -0.035866428166627884, 0.1814994215965271, -0.36051100492477417, 0.05185994505882263, -0.2285715639591217, -0.40236443281173706, 0.6287502646446228, -0.30641970038414, -0.09868688136339...
> **Possible Duplicate:** > > [Create a temporary directory in Java](https://stackoverflow.com/questions/617414/create-a-temporary-directory-in-java) Duplicate: [stackoverflow.com/questions/375910](https://stackoverflow.com/questions/375910) Is there a way of creating a temporary folder in java ? I know of File's ...
[ -0.2601495385169983, 0.31621167063713074, 0.19635793566703796, -0.1443285346031189, 0.08720356225967407, 0.0621139220893383, 0.23830090463161469, 0.007113569416105747, -0.5970724821090698, -0.7724078893661499, -0.08780992031097412, 0.020504746586084366, -0.52862548828125, 0.128389865159988...
What exactly is an "assert", or more specifically, how do I get rid of an error. When I create a vector of pointers to a class with data member int x, and then do this: ``` for(I=antiviral_data.begin();I<antiviral_data.end();I++) { if((*I)->x>maxx) { antiviral_data.erase(I); } } ``` And run the p...
[ 0.010651477612555027, -0.056848153471946716, 0.2375425547361374, 0.07596483081579208, -0.027467062696814537, 0.03436214104294777, 0.5232056379318237, -0.531100869178772, 0.10786483436822891, -0.3847392201423645, -0.08703785389661789, 0.8150060772895813, 0.044887300580739975, 0.153848335146...
information on how your program > can cause an assertion failure, see > the Visual C++ documentation on > asserts. > > > (Press Retry to debug the application) > > > [Abort][Retry][Ignore] Also, if I try to use cout: ``` cout<<(*antiviral_data.begin())->x<<endl; ``` I get this error: > Debug Assertion Faile...
[ 0.14585497975349426, 0.2076319456100464, 0.3400091230869293, -0.05009816214442253, -0.058479029685258865, -0.08602152019739151, 0.5013530254364014, -0.3453601896762848, -0.26147565245628357, -0.4126898944377899, -0.195875346660614, 0.7583301663398743, -0.24032549560070038, 0.08512026071548...
I can't USE any of the data in the vector, and how to fix it? ALSO: antiviral\_data is a vector of pointers, with a single element: ``` antiviral_data.push_back(new aX1(player.x,player.y,'>')); ``` If that helps. The most probable reason why you get the assertion is that you increment I after an erase. Try this ins...
[ -0.007220383733510971, 0.04010738804936409, 0.5544031858444214, -0.016065381467342377, -0.08170537650585175, 0.0578833669424057, 0.3194040060043335, -0.404034823179245, -0.323403924703598, -0.44140398502349854, -0.11005446314811707, 0.4196796119213104, -0.5329018831253052, 0.43484303355216...
I have a many-to-many relationship between photos and tags: A photo can have multiple tags and several photos can share the same tags. I have a loop that scans the photos in a directory and then adds them to NHibernate. Some tags are added to the photos during that process, e.g. a 2009-tag when the photo is taken in ...
[ 0.34655120968818665, -0.04020669311285019, 0.4743974208831787, -0.11966653913259506, -0.038600582629442215, -0.28565409779548645, 0.04544103518128395, -0.4261658191680908, 0.09549140930175781, -0.5305966734886169, 0.2143174558877945, 0.33535417914390564, -0.3446967601776123, 0.303824454545...
... foreach (var fileName in fileNames) { var photo = new Photo { FileName = fileName }; AddDefaultTags(_session, photo, fileName); _session.Save(photo); } ... } private void AddDefaultTags(…) { ... var tag =_session.CreateCriteria(typeof(Tag)) .Add(Restr...
[ 0.27709436416625977, -0.08743966370820999, 0.5337924361228943, -0.29288995265960693, 0.43298307061195374, 0.07967779040336609, 0.29519087076187134, -0.37522098422050476, -0.23795737326145172, -0.5529555678367615, -0.4794541597366333, 0.5510871410369873, -0.3277829885482788, 0.3218947350978...
.UniqueResult<Tag>(); if (tag != null) { photo.AddTag(tag); } else { var tag = new Tag { Name = year.ToString()) }; _session.Save(tag); photo.AddTag(tag); } } ``` My problem is when the tag does not exist, e.g. the first photo of a new year. The AddDefaultTags method check...
[ 0.0855363979935646, 0.20912127196788788, 0.4047762453556061, -0.1604747176170349, 0.207220658659935, -0.24454134702682495, 0.27981802821159363, -0.1052701324224472, -0.4789154827594757, -0.5744386315345764, -0.17235982418060303, 0.2603762745857239, -0.20577946305274963, 0.40455055236816406...
and adds it to NHibernate. That works great when adding a single photo but when importing multiple photos in the new year and within the same unit of work it fails since it still doesn’t exist in the database and is added again. When completing the unit of work it fails since it tries to add two entries in the Tags tab...
[ 0.3894023001194, 0.10626900941133499, 0.537185549736023, 0.20972488820552826, -0.4756922721862793, -0.06802143901586533, 0.3075961768627167, -0.48487588763237, -0.453007310628891, -0.39462539553642273, 0.2591722309589386, 0.1805255264043808, -0.4805164933204651, 0.16935671865940094, -0.3...
or can I set up the mapping in such a way that it works? You need to run `_session.Flush()` if your criteria should not return stale data. Or you should be able to do it correctly by setting the `_session.FlushMode` to Auto. With FlushMode.Auto, the session will automatically be flushed before the criteria is execut...
[ 0.14826324582099915, -0.28340765833854675, 0.37284353375434875, 0.07234528660774231, 0.05945783853530884, -0.3301575779914856, 0.13855932652950287, -0.4827435314655304, -0.22293715178966522, -0.8875294327735901, 0.047364141792058945, 0.7493062615394592, -0.071406789124012, -0.0884782671928...
further here: [NHibernate ISession Flush: Where and when to use it, and why?](https://stackoverflow.com/questions/43320/nhibernate-isession-flush-where-and-when-to-use-it-and-why)
[ -0.26272323727607727, -0.044379256665706635, 0.27872028946876526, -0.185092955827713, -0.03330105170607567, -0.19412344694137573, 0.057726070284843445, -0.16779229044914246, -0.29156407713890076, -0.4793710708618164, -0.449862539768219, 0.37921711802482605, -0.2670360505580902, -0.26128157...
I'm trying to figure out the best way to estimate the maximum size of the browser viewable area. i.e. the screen dimensions less toolbars, bookmarks, etc. Obviously it wont be perfect for cases when the window isn't maximized and due to the fact that people do actually use different browsers - I'm just looking for a go...
[ 0.4398554265499115, -0.0718267560005188, 0.497994601726532, -0.06694087386131287, -0.33694690465927124, -0.12316146492958069, 0.00750764412805438, 0.13054393231868744, -0.36509162187576294, -0.8172265291213989, 0.08170057833194733, 0.5303652882575989, 0.2033487856388092, 0.0655944421887397...
it was originally based on. You can [watch for that event](http://docs.jquery.com/Events/resize), but that could hurt performance if you're doing complicated things.
[ 0.303229957818985, -0.6268872618675232, 0.20835000276565552, 0.20038098096847534, 0.22276847064495087, -0.19455483555793762, 0.16863489151000977, -0.18175677955150604, -0.08047884702682495, -0.4290314018726349, 0.3283383846282959, 0.5307852625846863, 0.07362718135118484, 0.1190442591905593...
I have a VS 2008 solution with 2 projects. Project A builds into an assembly that is used by Project B (MVC project). I have created a custom task in Project A, which I call when building Project B. I have come across 2 issues: 1. If my AssemblyFile property points to Project A's bin directory, everything works well...
[ 0.14953191578388214, 0.009338025003671646, 0.10116620361804962, -0.07896897941827774, -0.2774890661239624, 0.05522878095507622, 0.5730876922607422, -0.31295135617256165, -0.1851568967103958, -0.6607842445373535, 0.09482986479997635, 0.5796138048171997, -0.30618757009506226, 0.3078681230545...
to Project B's bin directory, build fails saying that it cannot load or find Project A's assembly. I've triple checked the path, filename, uppercase/lowercase, spelling and also checked that Project A's assembly really is there when the build fails. So what is wrong with scenario 1 and 2. Or where should I be pointing...
[ 0.4247260093688965, 0.034894779324531555, -0.13555902242660522, -0.047713134437799454, -0.12730750441551208, -0.041419558227062225, 0.5508143305778503, -0.3150731325149536, 0.014609740115702152, -0.3401604890823364, -0.1692458987236023, 0.5402932167053223, -0.2493264377117157, -0.217541068...
Given a HTML table with some data that may be either narrower or wider than the browser window, In the former case I know how to make it expand to fill the full width. In the latter case, how do you make it squash (by truncating some columns, not by wordwrap) to fit within the available width? Well, your question is ...
[ 0.13918675482273102, -0.09043712168931961, 0.10970815271139145, 0.009983927942812443, -0.35517486929893494, 0.0802161917090416, -0.0016128107672557235, 0.07631237804889679, -0.5242847204208374, -0.8613448143005371, -0.14433535933494568, 0.24956877529621124, -0.13184498250484467, -0.1680727...
Check the other components, YUI uses just javascript and some of them are really cool.
[ 0.4816238284111023, -0.08140771836042404, -0.27513551712036133, 0.36022090911865234, -0.3499128818511963, -0.48286569118499756, 0.02430875599384308, 0.21152794361114502, 0.23581166565418243, -0.4652303457260132, 0.038370706140995026, 0.4412274658679962, -0.02542777732014656, -0.43336126208...
I have an NSTimer that fires off every second, and on that second I update a UILabel by setting the text property like so: ``` remainglbl.text = [NSString stringWithFormat:@"%i:%02i", var1, var2]; ``` It works fine, but when I run it in xcode with Start With Performance Tool -> Leaks, it appears that the memory j...
[ -0.0046936688013374805, 0.00844127219170332, 0.6791831254959106, 0.1100907251238823, 0.13035263121128082, -0.07388332486152649, 0.795313835144043, -0.12795014679431915, -0.38711029291152954, -0.5747110843658447, 0.2533273994922638, 0.7993820309638977, 0.020277809351682663, -0.0253868401050...
to create the timer is as follows: ``` timeTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(changeTime:) userInfo:nil repeats:YES]; ``` code to cleanup at timer finish is as follows: ``` [timeTimer invalidate]; [timeTimer release]; timeTimer = nil; ``` Anything wrong with this?...
[ 0.368455708026886, -0.007819759659469128, 0.3254573941230774, -0.1420157104730606, 0.2322198450565338, -0.21242041885852814, 0.41744109988212585, -0.2806777060031891, -0.1693245768547058, -0.6261997818946838, 0.055912792682647705, 0.7063645124435425, -0.43763819336891174, 0.271099656820297...
I was planning to use jquery autocomplete for a site and have implemented a test version. Im now using an ajax call to retrieve a new list of strings for every character input. The problem is that it gets rather slow, 1.5s before the new list is populated. What is the best way to make autocomplete fast? Im using cakeph...
[ 0.09416358172893524, -0.05209384858608246, 0.3518237769603729, 0.15467286109924316, -0.3807719051837921, -0.08796072751283646, 0.23286502063274384, 0.1851196587085724, -0.36739152669906616, -0.6440011858940125, -0.07323983311653137, 0.6175922751426697, -0.21450385451316833, -0.344207048416...
of your contacts, in JavaScript, in > under 200ms (this is true even for > members with 10,000+ contacts). In > order to get this level of > performance, we had to completely > rethink how we send data from the > server to the client."
[ 0.22041872143745422, 0.02220909111201763, 0.5764759182929993, 0.12737683951854706, 0.18581482768058777, -0.010710762813687325, 0.4819978177547455, -0.14548835158348083, -0.2502228021621704, -0.9726229906082153, -0.18544983863830566, 0.617612361907959, -0.15451441705226898, -0.3049651980400...
How would you suggest the best way of avoiding duplicate event subscriptions? if this line of code executes in two places, the event will get ran twice. I'm trying to avoid 3rd party events from subscribing twice. ``` theOBject.TheEvent += RunMyCode; ``` In my delegate setter, I can effectively run this ... ``` the...
[ 0.2270900458097458, 0.15636438131332397, 0.06565921753644943, 0.04961462691426277, -0.04667124152183533, -0.3187073767185211, 0.4004926383495331, -0.22621658444404602, -0.41948211193084717, -0.6286693215370178, 0.024842455983161926, 0.705926775932312, -0.32638025283813477, 0.21518580615520...
lock (_eventLock) { _theEvent -= value; _theEvent += value; } } remove { lock (_eventLock) { _theEvent -= value;
[ -0.145780548453331, -0.14205080270767212, 0.30153051018714905, -0.2568828761577606, 0.6287128329277039, -0.17892296612262726, 0.45756611227989197, -0.2521916925907135, 0.2145598977804184, -0.1176750436425209, -0.43286922574043274, 0.9286895990371704, -0.23310139775276184, 0.292860180139541...
} } } ```
[ 0.033695679157972336, 0.4034728407859802, 0.1949702352285385, -0.15257494151592255, 0.4299153685569763, -0.20141436159610748, 0.07711705565452576, 0.4467844069004059, 0.3091506361961365, -0.5090379118919373, -0.3048633635044098, 0.5600791573524475, -0.33611243963241577, 0.3141762912273407,...
I am trying to add a border att tha bottom of my textrured window with a sidebar. I would like to look exactly like in finder: [alt text http://jeenaparadies.net/t/s/finder-border.png](http://jeenaparadies.net/t/s/finder-border.png) for now it looks like that: [alt text http://jeenaparadies.net/t/s/twittia-border.pn...
[ 0.20571376383304596, -0.45940259099006653, 0.417147696018219, 0.016938040032982826, -0.34159815311431885, 0.038807403296232224, 0.3269290328025818, 0.11834525316953659, -0.31228914856910706, -0.9554911255836487, 0.4988235831260681, 0.36154332756996155, -0.03503649681806564, 0.1843394637107...
I'm searching for a query for an Excel VBA macro to get a web page's HTML source code as a string. I've found some source with `getHTTPrequest` but I can't register .net framework `system.dll` or link it. Thanks! Close enough: [How can I send an HTTP POST request to a server from Excel using VBA?](https://stackoverfl...
[ 0.04138786345720291, 0.08463352173566818, 0.37139013409614563, -0.008619495667517185, -0.43069976568222046, -0.10693858563899994, 0.4226108193397522, -0.23379701375961304, -0.21712537109851837, -0.6579246520996094, -0.20419056713581085, 0.44591039419174194, -0.3208523988723755, 0.095273487...
I need to draw peak meters for audio in realtime. Minimum 44100 samples per second times a minimum 40 streams. Each buffer is between 64 and 1024 samples. I need to grab the abs max from each buffer. (These are then fed through a kind of lowpass filter and drawn at about 20ms intervals.) ``` for(int i = 0; i < numSamp...
[ 0.19920684397220612, 0.02522481232881546, 0.8153395652770996, -0.20354624092578888, 0.051386795938014984, 0.1207166537642479, 0.5300585031509399, -0.7295112609863281, -0.03622937574982643, -0.487479567527771, -0.017931750044226646, 0.7970603108406067, -0.2762030065059662, -0.34460434317588...
there some tricky comp-sci quicksort-esque way of doing this faster? Failing that, branchless ABS and MAX functions for floats, do they exist? edit: Primary platform is Linux/gcc but a windows port is planned (probably with mingw). edit, the second: I gave the accept to onebyone because of the bit regarding the a...
[ 0.4822225868701935, -0.39483317732810974, 0.19432389736175537, 0.30784323811531067, -0.4277042746543884, 0.048933275043964386, -0.12091613560914993, 0.08654631674289703, -0.26017889380455017, -0.48655036091804504, 0.08415599912405014, 0.41816219687461853, -0.2306402623653412, -0.2190287560...
up. :) fabs and comparison are both really fast for IEEE floats (like, single-integer-op fast in principle). If the compiler isn't inlining both operations, then either poke it until it does, or find the implementation for your architecture and inline it yourself. You can maybe get something out of the fact that *pos...
[ 0.23354026675224304, 0.07061569392681122, 0.4718564450740814, 0.1686895489692688, -0.1519254744052887, -0.034215062856674194, -0.2915036976337433, -0.4752347767353058, -0.29345837235450745, -0.570602297782898, 0.014222194440662861, 0.48119089007377625, -0.322683185338974, -0.25192347168922...
course). There's an explanation of why this works here: <http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm>. But your compiler already knows all this, as does your CPU, so it may not make any difference. There is no complexity-faster way of doing it. Your algorithm is already O(n), and you can'...
[ 0.15830083191394806, 0.1326455920934677, 0.42378878593444824, 0.30408933758735657, 0.16053040325641632, 0.2858242988586426, 0.07658671587705612, 0.027593405917286873, -0.31382542848587036, -0.7788184881210327, 0.17013950645923615, 0.43296146392822266, -0.1778307557106018, 0.294636100530624...
CPU, especially since you're dealing with 40 independent streams anyway. That will be at best a few factors faster. "Just" launch the appropriate number of extra threads, split the work between them, and use the lightest-weight primitive you can to indicate when they're all complete (maybe a thread barrier). I'm not qu...
[ 0.3229351043701172, -0.1365799754858017, 0.25679755210876465, 0.38100019097328186, 0.26180559396743774, 0.28356826305389404, 0.0948714166879654, -0.27524951100349426, -0.40969118475914, -0.7681533694267273, 0.03457707539200783, 0.6138127446174622, -0.173162043094635, -0.21014967560768127, ...
disassembly to see how much the compiler has unrolled the loop. Try unrolling it a bit more, see if that makes any difference. Another thing to think about is how many cache misses you are getting, and whether it's possible to reduce the number by giving the cache a few clues so it can load the right pages ahead of ti...
[ 0.49968281388282776, 0.16218242049217224, -0.03376169130206108, 0.004974422976374626, -0.10294821113348007, -0.16913531720638275, 0.6541016697883606, 0.0015253475867211819, -0.1860584169626236, -0.2657518982887268, -0.17941108345985413, 0.45864492654800415, -0.19089308381080627, 0.25324320...
the loop for this block". What percentage of the required speed are you currently at? Or is it a case of "as fast as possible"?
[ 0.488743394613266, -0.36858123540878296, 0.27283990383148193, 0.45821526646614075, 0.025998959317803383, -0.24411317706108093, 0.5979660153388977, -0.31829649209976196, -0.40430948138237, -0.24201443791389465, 0.3540593385696411, 0.4122099280357361, -0.1128196120262146, -0.2307811975479126...
I've recently deployed an ASP.NET application to my shiny new VPS and while I'm happy with the general performance increase that a VPS can give over a shared hosting solution, I'm unhappy with the startup time of my application. My web application takes a fair amount of time to start up when my client first hits it. I...
[ 0.08492516726255417, 0.16389746963977814, 0.46681925654411316, -0.09125220775604248, 0.04994389787316322, -0.1943281590938568, 0.2506503760814667, 0.08042947947978973, -0.571699321269989, -0.6929234862327576, 0.07290302962064743, 0.39339759945869446, -0.1296074092388153, 0.417439341545105,...
my client hits my application it takes a good 15-20 seconds to respond. Subsequent calls take 1-2 seconds, unless I wait a few minutes for my application to shut down. Then it's back to a 15-20 second startup time. (I'm aware that my timing benchmark is very unscientific, those numbers should just give a feel for the ...
[ 0.07501153647899628, -0.05836288258433342, 0.6285739541053772, -0.30116456747055054, -0.16128182411193848, 0.015379499644041061, 0.7704473733901978, -0.09260164946317673, -0.21706503629684448, -0.9696704745292664, -0.15502426028251648, 0.6580381393432617, -0.15952616930007935, -0.103888973...
understanding incorrect? So, after that book-sized preface, here are my questions: * Is my understanding of ASP.NET's compilation incorrect? How does it actually work? * Is there a way I can force IIS to cache my binaries, or keep my application alive indefinitely? * If it's a bad idea to do either of the things in m...
[ 0.1517234742641449, 0.13966181874275208, 0.05123848468065262, 0.12361647188663483, 0.013610659167170525, 0.01831957697868347, 0.5667221546173096, -0.08014395087957382, -0.2759160101413727, -0.6165750622749329, 0.021629875525832176, 0.3224119544029236, -0.32858583331108093, 0.16383719444274...
think, however, that my question is more comprehensive, and I'd appreciate if it wasn't closed as a duplicate unless there are better, already-asked questions on here that address this. IIS also shuts down your web app after a given time period, depending on its configuration. I'm not as familiar with IIS7 and where to...
[ 0.16399802267551422, 0.14769519865512848, 0.30985262989997864, 0.1833394318819046, 0.25307148694992065, -0.4066958427429199, 0.45543172955513, 0.23368795216083527, -0.5595453977584839, -0.4995105266571045, -0.22019368410110474, 0.3967072665691376, -0.3067229390144348, 0.18374499678611755, ...
the better option for you. You'll have to check it out and see, however, as it may come with a downside, depending on how you interact with your website.
[ 0.5108741521835327, -0.12164948880672455, 0.14943662285804749, 0.34318840503692627, 0.29725733399391174, -0.04688343033194542, 0.21067233383655548, 0.39570340514183044, -0.0942750871181488, -0.6423476338386536, 0.13798728585243225, 0.45802345871925354, 0.3795888125896454, -0.06388177722692...
Is there a way in C# to serialize a struct to a binary stream (MemoryStream) such that the binary representation is equivalent to how the struct is visually layed out (i.e. no padding)? In C/C++, you use #pragma commands to tell the compiler to pack the struct's so that there is no padding between the fields. This is ...
[ 0.22965876758098602, -0.1581427901983261, 0.1426096260547638, 0.036451879888772964, -0.1018022894859314, -0.01290470827370882, -0.031541045755147934, -0.11089789122343063, -0.41240933537483215, -0.606538712978363, -0.3769082725048065, 0.5582013726234436, -0.6109781265258789, -0.53979754447...
have to do endianness swapping if necessary). Not unless you use unsafe code. Use Protocol Buffers or Thrift or something like that; I wouldn't recommend .NET built-in binary serialization based on my experience. You could also serialize/deserialize with `BinaryWriter/BinaryReader` (use reflection or pre-generate seria...
[ 0.33122938871383667, -0.17896108329296112, -0.16504500806331635, 0.1923791468143463, 0.07292146980762482, -0.2224687784910202, 0.37844011187553406, -0.029761629179120064, -0.22406665980815887, -0.5777906775474548, -0.09627683460712433, 0.75962895154953, -0.22627851366996765, -0.04137472808...
I tried to draw a selected text using two TextOut call and TA\_UPDATECP flag but when I move the selected area, the characters are moving a bit. Does someone know the correct way to do that ? Not unless you use unsafe code. Use Protocol Buffers or Thrift or something like that; I wouldn't recommend .NET built-in binar...
[ 0.2541702687740326, -0.151981383562088, 0.00009877639240585268, 0.0502980537712574, -0.15435506403446198, 0.05335001274943352, 0.17010246217250824, -0.23582115769386292, -0.21926845610141754, -0.7271720170974731, 0.07320678234100342, 0.5994768142700195, -0.2667829990386963, -0.027667360380...
a)In this case does the random number generator uses the system's clock (making the seed change) on each run? b)Is the seed used to generate the pseudo-random values of expovariate(lambda)? "Use the Source, Luke!"...;-). Studying <https://svn.python.org/projects/python/trunk/Lib/random.py> will rapidly reassure you;-...
[ -0.004015748389065266, 0.0832337737083435, -0.04092827066779137, -0.310264527797699, 0.22769004106521606, 0.08245676755905151, 0.004143892787396908, -0.349804550409317, -0.3099658787250519, -0.08757325261831284, 0.012761798687279224, 0.46923190355300903, -0.45523229241371155, 0.20959362387...
= self.random u = random() while u <= 1e-7: u = random() return -_log(u)/lambd ``` obviously uses the same underlying random generator as every other method, and so is identically affected by the seeding or lack thereof (really, how else would it have been done?-)
[ 0.010509463958442211, -0.11991171538829803, -0.03683903068304062, -0.271231085062027, -0.2534811198711395, -0.015889333561062813, 0.13125751912593842, -0.36192354559898376, 0.05603571981191635, -0.294678270816803, 0.2796614170074463, 0.4703299403190613, -0.44775813817977905, 0.246031284332...
In my ASP MVC application I'm using standard SQL (rather that Linq to SQL or other ORM) to query my database. I would like to pass the database results to my view and iterate over the results in my view. But I'm not sure how to do this. Every example I've seen passes some string or uses L2S. I would like to pass some...
[ 0.32125431299209595, 0.04543114826083183, 0.39162397384643555, -0.0877053365111351, -0.29762980341911316, -0.0666547417640686, 0.20443592965602875, -0.005837858654558659, -0.35467714071273804, -0.6950443983078003, 0.20644380152225494, 0.4480571746826172, -0.3827321231365204, 0.131402507424...
from a standard SQL query to my view? I would really like use Linq or other ORM, but requirements dictate we don't (don't ask me why, I don't understand). I'm doing this in VB. I'll try by best to convert any C# examples provided. You could create simple classes for the data you want to transfer and then populate a Lis...
[ 0.46688154339790344, -0.011512965895235538, 0.7014614939689636, -0.02842973731458187, -0.14606145024299622, -0.08329463750123978, -0.13302427530288696, -0.0032467052806168795, -0.2885132133960724, -0.7434771060943604, -0.04932350292801857, 0.6688894033432007, -0.27320340275764465, 0.285178...
new Customer(); c.Id = dataReader.GetInt32(0); c.Name = dataReader.GetString(1); // etc (you might want to use string indexers instead of ints for the get methods) customers.Add(c); } // close and dispose your datareader / connection etc as usual return View("List", customers); ```
[ 0.2146005928516388, -0.18776550889015198, 0.8750397562980652, -0.057340070605278015, 0.2411859929561615, 0.06739408522844315, -0.16793063282966614, -0.17412833869457245, -0.40273764729499817, -0.5987851023674011, -0.39028117060661316, 0.6961394548416138, -0.21738886833190918, 0.48445147275...
Does anyone have a good suggestion on how to do video recording? We have a camera that can record and then stream live video to a server. So this means we can have 1000's of cameras sending data 24X7 for recording. We will store data for over 7 / 14 / 30 days depending on the package. * Per day if a camera is sending...
[ 0.7699000835418701, 0.06567857414484024, 0.7470654845237732, 0.2558861970901489, -0.10129833966493607, 0.0647607073187828, 0.21206839382648468, -0.17612093687057495, -0.5021535754203796, -0.5191633105278015, 0.20206598937511444, 0.712319016456604, 0.0009356072987429798, 0.04219075292348862...
know the most cost effective way to get this data stored? Thanks! Sun has a [lovely product optimized](http://www.sun.com/servers/networking/streamingsystem/) for this kind of thing, with a large Flash or RAM cache between big storage and the rest of the world.
[ 0.4663873612880707, 0.10008928924798965, 0.2353879064321518, 0.3702114224433899, 0.24770668148994446, -0.13627398014068604, -0.06713143736124039, 0.584490180015564, -0.5122765898704529, -0.3488624393939972, 0.022528022527694702, 0.26677313446998596, 0.2428700029850006, -0.08381575345993042...
I'm working on a little C++-Game in Visual Studio 2008. I want to see the content of a vector after a couple of seconds or after I pressed some buttons. Breakpoints are useless in this case, because they stop me at every call of the gameloop (~60 times per second). How do I debug in this case? Thanks! Use function Out...
[ 0.022178713232278824, -0.14611636102199554, 0.3463110327720642, 0.061177048832178116, -0.19828841090202332, -0.02534349635243416, 0.3112790286540985, -0.021609939634799957, -0.3510475754737854, -0.6237410306930542, 0.3100244104862213, 0.6421313881874084, -0.27972251176834106, -0.0432188287...
in "Immediate Window" not the "Output".
[ -0.34893858432769775, -0.3459411859512329, 0.24675653874874115, -0.24047760665416718, -0.0647914707660675, 0.08860857784748077, 0.032272689044475555, 0.45919162034988403, -0.030222667381167412, -0.6045750975608826, -0.4967903792858124, 0.4259848892688751, -0.24719995260238647, 0.0501807332...
I am brand new to C and programming. I would like to use DJGPP as my compiler at this point. How can I install it? From what I understand it is multiple files. I cant seem to find a site that actually has the files that has working links. Thank you! I am on Windows Vista. His official website worked for me when I down...
[ 0.6179630160331726, 0.2491782307624817, 0.47669997811317444, 0.08596059679985046, -0.018859656527638435, -0.3367331027984619, 0.07548069208860397, 0.25725018978118896, -0.30153796076774597, -0.7129342555999756, 0.05418533459305763, 0.6376435160636902, 0.0671495646238327, 0.1433852612972259...
I am having a PowerShell script which is walking a directory tree, and sometimes I have auxiliary files hardlinked there which should not be processed. Is there an easy way of finding out whether a file (that is, `System.IO.FileInfo`) is a hard link or not? If not, would it be easier with symbolic links (symlinks)? Tr...
[ 0.13622915744781494, -0.20010803639888763, 0.4186152219772339, 0.02357875183224678, -0.050613950937986374, -0.16130821406841278, 0.421019971370697, -0.6210169792175293, -0.33556535840034485, -0.6488954424858093, -0.22620433568954468, 0.9332790374755859, -0.2575167417526245, -0.022842179983...
of [NTFS reparse points](http://en.wikipedia.org/wiki/NTFS_reparse_point), [IIRC](http://en.wiktionary.org/wiki/IIRC).
[ -0.24194082617759705, -0.25056931376457214, 0.4582195580005646, -0.10686565190553665, -0.20374596118927002, 0.2780344784259796, -0.05348709970712662, -0.45348113775253296, -0.7099974155426025, -0.49169573187828064, -0.6126928925514221, 0.2144000232219696, -0.20361265540122986, 0.1351684480...
thanks for any assistance. I'm creating a wcf web service for an external client. The client is requesting a copy of the wsdl. I currently am waiting on being able to provide the client with access to the service. when I go to my local webserver running the service (<http://localhost/Services.svc?wsdl>) I am shown t...
[ 0.4682162404060364, 0.177163228392601, 0.6465730667114258, 0.08259108662605286, -0.09794410318136215, -0.15594391524791718, 0.2436922937631607, -0.023895379155874252, -0.4473299980163574, -0.8070995211601257, 0.13068652153015137, 0.15598030388355255, 0.07263415306806564, 0.32221719622612, ...
so that they have the entire wsdl should I provide the main schema and also each of the imported schemas? or is there any other way of accomplishing this (other then the client hitting a server) ie: is there a way of packaging all of them within one file? (Seems like something would be available to extract each of...
[ 0.12805035710334778, -0.14516545832157135, 0.5871282815933228, 0.04960782453417778, -0.13253548741340637, 0.037516988813877106, 0.37510547041893005, -0.9116384387016296, -0.3746042847633362, -0.6495570540428162, -0.12421335279941559, 0.8600573539733887, -0.19674628973007202, -0.25687021017...
the trick. Note that this doesn't distinguish between a hard link and a symbolic link. Underneath, they both just take advantage of [NTFS reparse points](http://en.wikipedia.org/wiki/NTFS_reparse_point), [IIRC](http://en.wiktionary.org/wiki/IIRC).
[ -0.2144467532634735, -0.3850095868110657, 0.44435033202171326, 0.2909739017486572, -0.08546535670757294, -0.20955736935138702, 0.3818507790565491, -0.31337592005729675, -0.43568381667137146, -0.5469658374786377, -0.21399180591106415, 0.5179809331893921, -0.12413972616195679, 0.080045640468...
I want to remove all null properties in a generic object. It doesn't have to be recursive, one level deep is also fine. The reason I need is for a custom JavascriptConvertor implementation for JSON serialization which gives me: {"Name":"Aleem", "Age":null, "Type":"Employee"} And I would like to skip over the null obj...
[ -0.07302878797054291, 0.21538682281970978, 0.2971785366535187, -0.12049613147974014, -0.13424302637577057, 0.05838727205991745, 0.2861729562282562, -0.22888970375061035, -0.2013462483882904, -0.6978043913841248, -0.06729654222726822, 0.2732774019241333, -0.2556963860988617, 0.4521290659904...
of your type. Then you get full control on how properties are serialized. @Richards answer provides a nice implementation of the Serialize method. The Deserialize method would be quite similar but I'll leave the implementation up to you. Now the only drawback with JavaScriptConverter is that it has to get the support...
[ 0.4310445785522461, -0.054775528609752655, 0.48803621530532837, -0.019685933366417885, -0.16440926492214203, -0.11161962151527405, 0.26617640256881714, -0.3239857256412506, -0.05049368366599083, -0.8114228248596191, 0.09270519763231277, 0.7032880783081055, -0.46189770102500916, 0.040945138...
e.g. via the class constructor.
[ 0.19696779549121857, -0.09121476113796234, -0.40837329626083374, 0.23989172279834747, -0.15571171045303345, -0.4062594771385193, 0.2521010935306549, 0.06152696907520294, -0.03351019322872162, -0.5802310705184937, -0.6740539073944092, 0.5094144940376282, -0.22714844346046448, 0.177397459745...
My VB6 application which runs successfully on many machines is producing the above error on just 1 users machine. Machine has Vista SP1 which means the MDAC installer will not work since MDAC 2.8 is already included. Code that leads up to the error: ``` 'Temp file to users temp directory: FileName = C:\DOCUME~1\nmill...
[ 0.4512840211391449, 0.24856595695018768, 0.6837913990020752, 0.009365209378302097, -0.2678093910217285, -0.13482683897018433, 0.4319189190864563, -0.29007428884506226, -0.13057468831539154, -0.7278565168380737, -0.03640181943774223, 0.5837326049804688, -0.3280313313007355, 0.48440155386924...
of the Serialize method. The Deserialize method would be quite similar but I'll leave the implementation up to you. Now the only drawback with JavaScriptConverter is that it has to get the supported types from somewhere. Either hardcode it like this: ``` public override IEnumerable<Type> SupportedTypes { get ...
[ 0.3005727529525757, -0.04659082368016243, 0.45002481341362, -0.20914888381958008, -0.04305576905608177, -0.23815667629241943, 0.45199623703956604, -0.32591021060943604, -0.12388646602630615, -0.6701228618621826, 0.01827702857553959, 0.7137084007263184, -0.5888460874557495, 0.15333859622478...
All, my situation is that I have the basic route, plus some other simple routes: ``` routes.MapRoute( "Default", "{controller}/{action}/{id}",
[ -0.23232246935367584, -0.08525484800338745, 0.5644413232803345, 0.14948298037052155, 0.1314156949520111, -0.045245297253131866, 0.09435173869132996, 0.05968932434916496, -0.15055438876152039, -1.0201178789138794, -0.16129693388938904, 0.19232112169265747, -0.29896479845046997, -0.198014929...
new { controller = "Home", action = "Index", id = 1} ); ``` So the following url works: **<http://somesite.com/tags/index/1>** However, some of my index pages take url parameters in the following fashion: **<http://somesite.com/tags/index/1?when=lastmonth>** **How do I use Html.RouteLink to link to thi...
[ 0.028433488681912422, -0.21849682927131653, 0.8780094981193542, 0.021452272310853004, -0.03542691469192505, -0.35425251722335815, -0.12495698034763336, -0.21995027363300323, -0.4474886655807495, -1.069880485534668, -0.12127131968736649, 0.27039405703544617, -0.16253356635570526, 0.33306381...
new {controller = "Tags", action = "Index", id = "", when = ""}); ``` If this route worked I could link to it using: ``` Html.RouteLink(string.Format("{0} ", link.Rating), "LinksWhen", new {id=link.ReferenceId, when=Model.When}) ``` but it doesn't! So I'm not sure how I would use a Html.RouteLink t...
[ 0.04456940293312073, -0.35624560713768005, 0.8877241015434265, 0.10577138513326645, -0.03971206024289131, -0.3178183138370514, 0.00782435666769743, -0.38462916016578674, -0.4274407923221588, -0.9459611773490906, 0.16319894790649414, 0.35593855381011963, -0.252056360244751, 0.24249827861785...
"Links", "Links/details/{id}", new { controller = "Links", action =
[ 0.021198317408561707, -0.755581796169281, 0.5557620525360107, 0.40381330251693726, 0.36120954155921936, -0.21569512784481049, -0.17347581684589386, -0.042461466044187546, -0.5897541642189026, -0.722763180732727, -0.3382495045661926, 0.3021702766418457, -0.4589185118675232, 0.26577156782150...
"Details", id = ""} defaults ); ``` and this routelink: ``` Html.RouteLink("Link Text", "Links", new {id=link.ReferenceId, when=Model.When }) ``` generates the correct url: <http://localhost:2535/Links/details/1?when=onemonth>
[ -0.24446885287761688, -0.19104868173599243, 0.9028483629226685, 0.139420285820961, 0.008432638831436634, -0.07757579535245895, 0.0015293497126549482, -0.01677594520151615, -0.20459751784801483, -0.9106211066246033, -0.336885005235672, 0.2429615706205368, -0.1349504590034485, 0.243236556649...
When should I use a [`ThreadLocal`](https://docs.oracle.com/javase/8/docs/api/java/lang/ThreadLocal.html) variable? How is it used? One possible (and common) use is when you have some object that is not thread-safe, but you want to avoid [synchronizing](https://docs.oracle.com/javase/tutorial/essential/concurrency/syn...
[ 0.11422455310821533, -0.08563163131475449, 0.2995690703392029, -0.17590175569057465, 0.1343860775232315, -0.021145978942513466, 0.09679252654314041, -0.49818235635757446, -0.1520487517118454, -0.481438010931015, -0.0061599984765052795, 0.3440176844596863, -0.3883403241634369, 0.10220119357...
{ return new SimpleDateFormat("yyyyMMdd HHmm"); } }; public String formatIt(Date date) { return formatter.get().format(date); } } ``` [Documentation](https://docs.oracle.com/javase/8/docs/api/java/lang/ThreadLocal.html).
[ 0.2604871392250061, -0.3531298041343689, 0.6110803484916687, -0.2861320972442627, 0.22062918543815613, -0.11723466217517853, 0.04045156389474869, -0.06821216642856598, -0.2165175974369049, -0.27742382884025574, -0.5463266968727112, 0.5098422765731812, -0.24430204927921295, 0.49914970993995...
How do I generate a unique session id in Python? You can use the [uuid library](http://docs.python.org/library/uuid.html) like so: ``` import uuid my_id = uuid.uuid1() # or uuid.uuid4() ```
[ 0.3178473114967346, 0.2544601261615753, 0.2680368423461914, 0.0026280784513801336, -0.16793201863765717, -0.3774091899394989, 0.157375767827034, -0.2861955463886261, -0.15905490517616272, -0.5888277888298035, 0.0385880246758461, 0.4270869791507721, -0.12455635517835617, 0.32978448271751404...
I am working on a new application that uses a jet (MS Access) database. I have built the database using FluentNHibernate's AutoMapping feature from my C# objects. I need to present this database for an on-line WebEx design review on Tuesday and am looking for a tool to create ERD's for my database that I can group ont...
[ -0.16737693548202515, 0.1635793149471283, 0.7014300227165222, 0.12010695040225983, -0.29916632175445557, 0.26736322045326233, 0.18062086403369904, -0.15965862572193146, -0.20565693080425262, -0.8322644233703613, 0.11185313761234283, 0.7661352157592773, -0.22902007400989532, 0.0508053787052...
easy way to create clear diagrams. Since I have everything for Fluent NH and NHibernate, I could use their drivers/dialects to create a schema for any supported database to use in generating the diagrams. Any suggestions to help? If your MS Access DB has all the attributes of a real DB like constraints etc... then Vi...
[ 0.006924082059413195, -0.003240710822865367, 0.2987308204174042, 0.17442871630191803, -0.33826592564582825, -0.08924423903226852, 0.3468175232410431, -0.01797172799706459, -0.028707345947623253, -0.7907382249832153, -0.04104423150420189, 0.6857256293296814, -0.21200618147850037, -0.1206846...
in the end and how you extend the captured data. Good luck
[ 0.5114794373512268, -0.08532236516475677, 0.3222165107727051, 0.21946272253990173, 0.102112777531147, -0.39436522126197815, 0.12102782726287842, 0.6640368103981018, 0.157033771276474, -0.8873748183250427, -0.13280268013477325, 0.3746039867401123, 0.4872625172138214, -0.0929383933544159, ...
On F# WikiBook under [Encapsulating Mutable State](http://en.wikibooks.org/wiki/F_Sharp_Programming/Mutable_Data) section, there is a following code snippet. ``` > let incr = let counter = ref 0 fun () -> counter := !counter + 1 !counter;; val incr : (unit -> int) > incr();; val it : int = 1 ...
[ -0.09455785900354385, 0.020532721653580666, 0.5720487833023071, -0.13998600840568542, -0.045296810567379, 0.10211872309446335, 0.36442074179649353, -0.5094001293182373, -0.3185967206954956, -0.42174312472343445, -0.37053772807121277, 0.7168112397193909, -0.05844094976782799, 0.299046486616...
couldn't understand were when `counter` is freed from heap and also how `counter` still refers to previous value before being incremented. How is `counter` that lives within `incr` function scope survive through multiple function calls? So main questions are: * When does `counter` freed from heap? * Isn't `counter` a...
[ 0.44028159976005554, -0.19405917823314667, 0.02503379061818123, 0.1988460123538971, 0.05107087641954422, 0.04169973358511925, 0.6651155948638916, -0.18833477795124054, -0.38279402256011963, -0.37011393904685974, 0.09454213082790375, 0.4577414095401764, 0.04856903851032257, 0.58784526586532...
an implementation detail a small lexical scope (that hides the implementation details from callers), but extend its lifetime by capturing it in a closure (so that its lifetime becomes the lifetime of the enclosing object - in this instance the 'incr' function). This is a common way to do encapsulation in functional pro...
[ 0.08309128135442734, -0.21642208099365234, 0.3336750864982605, -0.05926718935370445, 0.134036585688591, -0.1860683411359787, 0.3316132128238678, -0.14542144536972046, -0.28511297702789307, -0.48624342679977417, -0.012292210943996906, 0.40092235803604126, -0.22358299791812897, 0.08791849017...
a 'leak', but it depends on intent. If you have some unique id counter you need for the entire lifetime of your entire program, then you are going to have to store that counter varable *somewhere* that it lasts for the whole program. So either this is 'a leak' or 'a by design feature' depending on how 'incr' will be us...
[ 0.48583343625068665, 0.05296720936894417, 0.13647150993347168, 0.34721237421035767, 0.28292495012283325, -0.24616797268390656, 0.23847921192646027, 0.015166235156357288, -0.1802007257938385, -0.2655503749847412, -0.16432680189609528, 0.3982395827770233, -0.11966247856616974, 0.229656472802...
the closure referenced by 'incr' to become unreachable when it is no longer needed. Commonly this might be by making it local to some other function, e.g. ``` let MyComplicatedFuncThatNeedsALocalCounter args = let incr = // as before // other code that uses incr // return some result that does not...
[ -0.25012603402137756, -0.0038970918394625187, 0.5484614372253418, -0.23276016116142273, 0.20058520138263702, -0.26318106055259705, 0.3215405344963074, 0.4220602810382843, -0.11536702513694763, -0.31749778985977173, -0.5405164957046509, 0.47707319259643555, -0.3693847060203552, 0.4576624929...
I've created a project, and used `svn import`. Now I'd like to commit a change to files, how to do that? I have empty `~/.workspace/project/.svn/entries`. If I try svn commit I get this: ``` $ svn commit src/dat/Win.java svn: '/home/st/.workspace/dat/src/dat' is not a working copy svn: Can't open file '/home/st/.wor...
[ 0.2821974456310272, -0.07530494779348373, 0.5817023515701294, -0.2557470202445984, 0.16033516824245453, 0.002077982295304537, 0.2690875232219696, -0.25998541712760925, -0.5073593258857727, -0.8639141917228699, -0.08194015175104141, 0.627855658531189, -0.21277959644794464, 0.358263045549392...
copy, you can use `svn commit`. See [Getting Data into your Repository](http://svnbook.red-bean.com/en/1.4/svn.tour.importing.html) in the SVN Book.
[ 0.2814733386039734, -0.11140131950378418, 0.17552214860916138, 0.023912563920021057, -0.10563268512487411, -0.7108676433563232, 0.16974574327468872, 0.26524555683135986, -0.7630575299263, -0.6822890639305115, -0.1894560605287552, 0.5608697533607483, -0.14499716460704803, 0.0957255959510803...
I wish to send an email from my localhost machine (using PHPs mail function) but I can not do this since I don't have a mail server. In addition, I need to be able to send emails through a network that is heavily firewalled (to what extent I do not know yet). My idea is to make use of "QK SMTP Server 3" and get that t...
[ 0.13587747514247894, 0.1470978558063507, 0.24305889010429382, -0.1035994291305542, -0.388864666223526, 0.004864883609116077, 0.6476680040359497, 0.11456108093261719, -0.17082518339157104, -0.8873291611671448, 0.11257677525281906, 0.18520896136760712, -0.2775997519493103, 0.3478200137615204...
my server so it can receive this request. By executing this command I get: ``` [root@balder296 ~]# service iptables status Firewall is stopped. [root@balder296 ~]# ``` Thank you for any help and advice. Solved ------ Hotmail (surprisingly) provides a free relay service. I hope this works for me when I test this! B...
[ 0.3153816759586334, 0.1432957798242569, 0.856605052947998, -0.02349095232784748, -0.3757503032684326, -0.17669689655303955, 0.8090410232543945, 0.30381903052330017, -0.2542860507965088, -0.9232609868049622, -0.2418622076511383, 0.500900387763977, -0.3093910217285156, 0.36625322699546814, ...
example, from your 'service' remark I assume you're running Redhat or Centos) If you're unable to connect to Internet mail servers on port 25, you can try finding an internal mail relay (this is something you will have to find yourself, depending on your network). At that point you have two options. You can use the i...
[ 0.5315592288970947, -0.2714622914791107, 0.05005132034420967, 0.29403263330459595, 0.0020657081622630358, -0.10859982669353485, 0.2307939976453781, 0.2307051122188568, -0.4977501928806305, -1.0172086954116821, 0.06366735696792603, 0.173831507563591, -0.2128564417362213, 0.2818302810192108,...
I have a need for a model(?) on my app which basically contains a status of another entity. In the entity I want to store the id of the status, but in my app, the view is talking in terms of a nice word description. For instance, 1=New, 2=Used etc etc. How can I go about implementing this in the best way that means I ...
[ 0.14761203527450562, 0.11146439611911774, 0.3518480658531189, 0.18119770288467407, 0.20062997937202454, 0.1648610532283783, 0.057411931455135345, -0.019432706758379936, -0.3321439027786255, -0.637420654296875, 0.15339109301567078, 0.399380624294281, -0.12036367505788803, 0.2546486854553222...
the right way? You can code a custom writer method: ``` STATUS_VALUES = { 1 => 'new', 2 => 'modified', 3 => 'deleted' } class Foo attr_reader :status_id def status STATUS_VALUES[@status_id] end def status=(new_value) @status_id = STATUS_VALUES.invert[new_value] new_value end end ``` For exam...
[ 0.16100147366523743, -0.1202576607465744, 0.5605980157852173, 0.2449227124452591, 0.23719707131385803, -0.05717945098876953, 0.1304735392332077, -0.4172821342945099, -0.1778455674648285, -0.5629326105117798, -0.05658531188964844, 0.5924763083457947, -0.09490841627120972, -0.010397524572908...
I'm trying to decide the best way of having radiobuttons switch around the contents of a panel (or another container), using Windows Forms .NET (C#), and maintaining the ability to use the Visual Studio designer on the form/usercontrol that contains these. What I'd really like is something like the TabControl where I ...
[ 0.5147098898887634, 0.002434477210044861, 0.5165548324584961, 0.00853352528065443, -0.23747722804546356, -0.3205896019935608, -0.20766681432724, -0.21923507750034332, -0.10704401880502701, -0.7146521806716919, -0.027800224721431732, 0.8516425490379333, -0.29166799783706665, -0.045746605843...
radiobutton, and switch them around using visibility and such - but this is annoying to work with in the Visual Studio designer, as these panels will either be hidden beneath each other or not in the correct position (and the overall form not in the right size if there's no room for more than the one panel that should ...
[ 0.42989733815193176, -0.0712246522307396, 0.2773534059524536, 0.13022874295711517, -0.07524721324443817, -0.4926551282405853, -0.04728052765130997, -0.004863190930336714, -0.23929554224014282, -0.37883955240249634, -0.09061145037412643, 0.6950376033782959, -0.3133288621902466, -0.251844823...
set something like this up? I guess I would simply build such a page control. Can't be too hard, I guess (even though design time support tend to be a tad more complicated than you would wish for sometimes...)
[ 0.4489075839519501, -0.005068648606538773, 0.1384316086769104, 0.3702772855758667, 0.25110000371932983, -0.023410551249980927, -0.023432139307260513, 0.1705111265182495, -0.1713772714138031, -0.22275203466415405, 0.3567355275154114, 0.3284706473350525, -0.07286450266838074, -0.188856303691...
I am using SQLite in an application that I am developing. I am trying to run a pretty complex query (complex for me!) and I have gotten the basic results I need but I am stuck on getting over the last hurdle. I presently have this query that does what i need it to do... ``` SELECT SUM(activity) FROM activities WH...
[ 0.18383701145648956, 0.1935053914785385, 0.4900137782096863, -0.20999260246753693, 0.04239565134048462, 0.3358980417251587, -0.43701693415641785, -0.18414399027824402, -0.31960704922676086, -0.806387186050415, 0.4017113447189331, 0.05008389428257942, -0.08048928529024124, 0.402079284191131...
need to find the sum of a result set which contains the minimum number between two values from two different tables as long as a certain statement is true. Basically.. ``` SELECT SUM(total) FROM (SELECT MIN(value from table1 which is determined by a value in table2, value from table3) AS total FROM table3 WHERE val...
[ 0.2884916365146637, -0.03578680008649826, 0.20719732344150543, -0.034242335706949234, 0.08363603800535202, 0.14721746742725372, 0.04268255457282066, -0.3409090042114258, -0.46947747468948364, -0.4163829982280731, -0.031714100390672684, 0.6478709578514099, -0.23168741166591644, -0.117376223...