text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
While learning Haskell I had the feeling that the authors where not always telling me everything, so to truly understand it I would like to know the theory behind the type system, monads and concepts like that. Most of these concepts come from Category Theory I heard, so what are some good books/websites on this topic...
[ -0.22003242373466492, 0.23785434663295746, -0.310452401638031, -0.15178124606609344, -0.3738771677017212, 0.020113585516810417, 0.37431392073631287, 0.11207732558250427, -0.06519497185945511, -0.18085242807865143, -0.23032724857330322, 0.25455009937286377, -0.316867470741272, -0.3426492512...
I have read a lot of books about Microsoft Dot Net and I have learned a lot of things * Object Oriented programming * Windows User Interface designing * Using SQL Server and XML * Debugging an application * Using Serialization and application Domains * Deploying a Windows application * Security and licencing I know h...
[ 0.5238144993782043, 0.12434139847755432, 0.09062808007001877, 0.18683260679244995, 0.12478537857532501, -0.07034747302532196, 0.3300722539424896, 0.14348988234996796, 0.06678418070077896, -0.8986871838569641, 0.07149328291416168, 0.5488808155059814, -0.029245492070913315, 0.008727874606847...
an application while writing it or after, when to implement security, when to deploy and test it, if my application is missing a step, if it's compatible with other dot net frameworks, if it'll works perfect on all platforms.... I feel that I have some missing in my learning that prevent me from building a whole appli...
[ 0.40394914150238037, 0.2054183930158615, 0.2030058205127716, 0.3058215379714966, 0.4567711055278778, 0.02878265641629696, 0.3766394853591919, -0.11105209589004517, -0.15068191289901733, -0.7361298203468323, -0.07218080759048462, 0.543455958366394, -0.011168778873980045, -0.1264404058456421...
part time until I complete study and find a full time job?? Don't start by thinking big. Start by thinking small. When you think big, you risk intimidating yourself. When I start out by thinking too big, I can never find the right starting place and I go in endless thought circles much like what you are describing. If...
[ 0.5705678462982178, -0.05513252317905426, -0.09289757162332535, 0.22527384757995605, 0.18003171682357788, 0.20849482715129852, 0.3035338521003723, 0.14500802755355835, -0.3338756263256073, -0.33880653977394104, 0.17151789367198944, 0.3438701331615448, 0.3043540418148041, 0.0657101944088935...
ok. At least I got started and am on the right track and not stuck in "where do I start" perfectionist limbo. How do you eat an elephant? One bite at a time. **[Edit]** Here's another idea: try to write a simple but *complete* app every day for a week. This will necessitate doing hack-y things and using half-thought ...
[ 0.7315240502357483, 0.12053852528333664, -0.09657072275876999, 0.08529475331306458, -0.051594410091638565, 0.1288861632347107, 0.5471737384796143, 0.2892993688583374, -0.37411051988601685, -0.4900403916835785, 0.28497856855392456, 0.5796874165534973, 0.05729107931256294, -0.142565608024597...
habits. However, for your personal mental block, this exercise may help. If you do decide to do something like this, please post back here and let us all know how it went. Good luck! ps: great question. I'm sure many people face this same situation but don't want to ask for fear of looking bad. I know I've doomed ma...
[ 0.7037706971168518, -0.1599755585193634, 0.03160618990659714, 0.33912840485572815, 0.35837680101394653, -0.4414941668510437, 0.437912255525589, 0.37539994716644287, -0.12492441385984421, -0.6778827905654907, 0.2265237420797348, 0.34428083896636963, 0.23791126906871796, -0.0516081266105175,...
I installed Ruby In Steel Trial Edition for Visual Studio 2008 and when I try to save an IronRuby Project, it keep warning: > "The operation could not be completed. No such interface supported". I cannot save the project but only run it. Most probably: Either your installation is corrupt or, you have hit upon a VS bu...
[ 0.5794351696968079, 0.2565279006958008, 0.09465974569320679, -0.062378980219364166, -0.46358487010002136, 0.0005841716192662716, 0.6730330586433411, -0.10237055271863937, 0.008518927730619907, -0.38772842288017273, 0.29599007964134216, 0.5613598823547363, -0.31991589069366455, 0.2330169826...
I have tried to reset the timer based on the current time after clicking a button, but it doesn't work. ``` private long startTime = System.currentTimeMillis(); Timer timer = new Timer(1000, this); timer.start(); timer.stop(); long endTime = System.currentTimeMillis(); long timeInMilliseconds = (endTime - startT...
[ -0.10909918695688248, -0.0031519632320851088, 0.808857798576355, -0.19070857763290405, 0.4705515503883362, 0.10970401018857956, 0.5381608009338379, -0.002502419985830784, -0.24966514110565186, -0.6118250489234924, -0.352081835269928, 0.6481538414955139, -0.2561349868774414, 0.6542403697967...
timer.start(); } //Everytime the button stop clicked, the time will stop and reset to the most current time of the system public actionPerformed () { timer.stop(); long endTime = System.currentTimeMillis(); long timeInMilliseconds = (endTime - startTime); **startTime = ...
[ 0.13618320226669312, -0.26990172266960144, 0.6896095275878906, -0.22700423002243042, 0.5271016955375671, 0.05561206117272377, 0.28305864334106445, -0.14971372485160828, -0.41669490933418274, -0.46753227710723877, -0.2721007764339447, 0.6625738739967346, -0.19738568365573883, 0.558482825756...
Our RCP application logs a fair bit, but only INFO and above are output to console. On windows/linux this is ok, but on OSX all logging seems to be passed to syslogd, which then decides what to log and not log, this means handling thousands and thousands of FINEST log messages, this makes syslogd use 140% cpu and gobb...
[ 0.257014662027359, 0.18521128594875336, 0.6970083713531494, 0.15725746750831604, 0.17961512506008148, -0.14112627506256104, 0.4187430143356323, -0.14588063955307007, -0.29153263568878174, -0.32285967469215393, -0.1350623369216919, 0.8589118123054504, -0.581188440322876, 0.01056353468447923...
problem. How can I stop syslogd handling my RCP logging on OSX? Take a look at your RCP Application's RCP.App/Contents/Info.plist file. The default file generated by the RCP product build has <string>-consoleLog<string>. This may be why everything ends up in syslogd.
[ 0.06296320259571075, 0.1494460254907608, 0.2622970640659332, 0.1307285577058792, 0.2587311863899231, -0.13995963335037231, 0.23035979270935059, 0.25039348006248474, -0.3473200798034668, -0.5320780277252197, -0.0577780120074749, 0.7110515832901001, -0.5179329514503479, 0.2269192337989807, ...
I am doing some hardware work and I do not know what is the difference between a 4 way processor and an 8 way processor. Can please anyone clarify what does way mean?. Thanks a lot. Number of CPU cores.
[ 0.5140109658241272, 0.24191370606422424, 0.37488818168640137, 0.40038973093032837, -0.0807211622595787, 0.3157954216003418, -0.010836389847099781, 0.3350323438644409, -0.26746341586112976, -0.8106050491333008, 0.2574355900287628, 0.5489110946655273, 0.12796936929225922, -0.0095514683052897...
If I had a div in HTML that had class="blah user\_foo", whats the Match() regex to get the 'foo' bit? ``` /<div\s(?:[^>'"]*|".*?"|'.*?')*?\bclass\s*=\s*"blah user_(.*?)"/i ``` The above handles whitespace; and other things before the class specification. It doesn't handle the case where `class='single-quoted-somethi...
[ 0.09397245198488235, 0.12779736518859863, 0.3928699195384979, -0.12006083875894547, -0.42777761816978455, -0.20966966450214386, 0.1627170294523239, -0.2267591506242752, -0.07831436395645142, -0.2853412628173828, 0.30534499883651733, 0.49976250529289246, -0.44685983657836914, 0.218564078211...
how to find a loop in the file system in Linux? i am indexing all files for making search fast(O(1))... i am using c programming language to implement by using the library functions in dir.h.... I can scan through entire file system but it goes in a loop if there is loop in the filesystem(example loop mount)... how to ...
[ 0.27141010761260986, 0.017746452242136, 0.006060564424842596, 0.10406471788883209, 0.17511802911758423, -0.5093281269073486, 0.1884700357913971, 0.03366975486278534, -0.23225218057632446, -0.7175193428993225, -0.15458035469055176, 0.5267885327339172, -0.5301857590675354, 0.0994230583310127...
a DAG](http://coding.derkeiler.com/Archive/General/comp.theory/2004-02/0473.html): > Steinar H. Gunderson wrote: > > > > > On Thu, 26 Feb 2004 00:28:32 +0100, Orlondow wrote: > > > > > > > > > ...also reproduced in the Cormen-Leiserson-Rivest, IIC. Which is > > > easiest > > > to find. > > > > > > Yes, I act...
[ -0.244941845536232, -0.11541030555963516, 0.2411404252052307, -0.049676332622766495, -0.5803245306015015, -0.2481343001127243, 0.1622859686613083, -0.47571006417274475, -0.5186477899551392, -0.43812960386276245, 0.009690094739198685, 0.022691836580634117, -0.7877528667449951, -0.2297314256...
as long > as there exists one, you don't need to > go overboard with SCC. Plain old depth > first search DFS (in the same chapter > of CLRS) is enough. So, roughly speaking, while you are traversing the directory tree, create a DAG which represents the structure of the tree with the data at the node refering to th...
[ -0.17435449361801147, -0.18216878175735474, 0.12761645019054413, 0.09843021631240845, 0.07426925748586655, -0.49811822175979614, 0.0143211018294096, 0.08468549698591232, -0.1580151617527008, -0.9009109735488892, -0.27391326427459717, 0.41310128569602966, -0.2726011276245117, -0.00471979379...
I am binding live events on links in my [PhoneGap](http://phonegap.com/) app. The event does fire successfully (confirmed by `alert()`ing), but it seems any touch data is not attached to the event object like it should be. This happens on all touch events - `touchstart`, `touchmove`, and `touchend`. ``` $('a').live('t...
[ -0.0608024038374424, 0.09435924142599106, 0.9062082767486572, -0.33142974972724915, 0.0259527787566185, -0.2506825923919678, 0.46862637996673584, -0.44764018058776855, -0.15235649049282074, -0.7531136870384216, -0.2085091471672058, 0.682401180267334, -0.3742639422416687, 0.1440688073635101...
change, submit You might want to consider trying to use click if that will suit your needs, or you can switch to using [livequery](http://docs.jquery.com/Plugins/livequery), which probably will support it. (livequery is what live was originally based on, I'm not sure why it doesn't support all of the same events)
[ 0.6842784285545349, -0.5295614004135132, 0.4189634919166565, 0.1267644464969635, -0.09458835422992706, -0.18873751163482666, 0.14978580176830292, -0.08362706750631332, -0.2065081000328064, -0.8791766166687012, -0.1118611991405487, 0.6808373928070068, -0.5015730261802673, 0.1113940775394439...
I need to add more views to a view for handling multiple webaddress and the clicks on the labels. I try to do it in a for statement. My code is something like that: ``` // we have a UITabbarViewController for holding amongs other the parentViewController UITabBarController *tabbedViewController = [[UITabBarController ...
[ 0.05552941560745239, 0.05342106148600578, 0.7198641896247864, 0.13072247803211212, -0.28162881731987, 0.0467924103140831, 0.23375636339187622, -0.05607736110687256, -0.03622928634285927, -0.9657624959945679, -0.20270942151546478, 0.439529150724411, 0.11180209368467331, 0.46215561032295227,...
// init my controller with a nib file UIViewController *webadressViewController = [[WebadressViewController alloc] initWithNibName:@"WebadressViewController" bundle:nil]; // position the view ... // ... not listed here // add webaddress to parent view [parentViewController.vi...
[ -0.03991159796714783, -0.19939950108528137, 0.7378214001655579, 0.20600342750549316, -0.010389355942606926, -0.011293106712400913, 0.1511802226305008, -0.03870939090847969, -0.002542606322094798, -0.9666244387626648, -0.06394075602293015, 0.3237156867980957, 0.09008610248565674, 0.73545581...
code. But if I release it within the for block all the subviews desapears. My question is how can I release that objects? (As I see the problem is the following: when I call addSubview on parentViewController it will own the webaddressViewController.view but not the webaddressController itself. Therefore if I releas...
[ 0.6591101288795471, 0.06719014048576355, 0.6278495788574219, 0.3631470501422882, -0.2786557674407959, -0.27806738018989563, 0.29262301325798035, -0.21081309020519257, -0.11468937993049622, -0.7268711924552917, -0.15000098943710327, 0.6098180413246155, -0.33512288331985474, 0.45126315951347...
whichever object this code belongs to - and then release them in its dealloc method. But I wonder why you are creating the webAdressViewControllers in the first place? Do you have any code in the webAdressViewController class, apart from that that creates the view? (If you're talking of releasing the controllers at th...
[ 0.46725067496299744, -0.31623610854148865, 0.6688634753227234, 0.44443339109420776, -0.0013238233514130116, -0.17970703542232513, -0.3573521375656128, -0.030794227495789528, -0.4899674355983734, -0.5553528666496277, -0.048159778118133545, 0.6555752754211426, -0.15434394776821136, 0.2249253...
the tabbed view controller as a property, and release it in dealloc. The parentViewController has a retain count of two - once for the alloc init, andtwice for being added to the array. If you don't need to access this controller again yourself directly (i.e. if the tabbed controller does all the view cmanagement you ...
[ 0.08110342919826508, -0.4016239047050476, 1.1134531497955322, -0.1425233632326126, -0.17074914276599884, -0.10097888857126236, -0.18404679000377655, -0.2798639237880707, -0.24084201455116272, -0.7252404689788818, -0.30363792181015015, 0.7963242530822754, -0.0876694768667221, 0.181875914335...
I'm experimenting with ASP.NET MVC and Routes. It appears MVC forces me to add a public method to the controller any time I want to create a view. For example: ``` public class HomeController : Controller { public ActionResult Index() { return View(); } public ActionResult About() { ...
[ 0.07905827462673187, -0.348413348197937, 0.39583227038383484, -0.03642211854457855, -0.10223186016082764, -0.038849394768476486, 0.17065086960792542, -0.14368826150894165, -0.4124106764793396, -0.5985304713249207, -0.023358909413218498, 0.5094137191772461, -0.5271062850952148, 0.4085381031...
every view. By default, I want the behavior of "return View()" for all views in the system, unless otherwise specified. For example, HTTP GET: ``` site.com/about site.com/features site.com/ site.com/testimonials site.com/contact-us ``` As it stands now, I would have to add: ``` HomeController.About() HomeControll...
[ 0.012349101714789867, 0.057256922125816345, 0.6081406474113464, -0.09964212030172348, -0.13761474192142487, 0.023522567003965378, 0.23801308870315552, -0.14722119271755219, -0.3534981608390808, -0.629689633846283, -0.314813494682312, 0.6073865294456482, -0.25984349846839905, 0.135297000408...
ShowBasicView(){ //HTTP GET: //site.com/about //site.com/features //site.com/ //site.com/testimonials //All URLs above map to this action return View(); } [AcceptVerbs(HttpVerbs.Post)] public ActionResult ContactUs(FormCollection data){ //HTTP POST: //site.com/c...
[ -0.08992596715688705, -0.41730135679244995, 0.7238907217979431, -0.17367462813854218, -0.39549288153648376, -0.21025849878787994, 0.3874552547931671, 0.057724811136722565, -0.3746478259563446, -0.5684756636619568, -0.3222506642341614, 0.5661921501159668, -0.3735250234603882, 0.051996860653...
is that due to the implicit wiring of views, each of those urls will all return the same view, namely: > \Views\Home\ShowBasicView.aspx Now, this might be what you want, although it's probably unlikely. You could possibly set this up by having a route such as: ``` routes.MapRoute( "ShowBasic", "{id}", new {...
[ 0.07989425957202911, -0.33462780714035034, 0.6361175179481506, -0.0641411691904068, 0.01135710533708334, 0.07359865307807922, 0.04800558090209961, -0.18520097434520721, -0.4061891436576843, -0.6742168068885803, 0.019222557544708252, 0.2865508496761322, -0.3980843424797058, 0.09672508388757...
ViewData.Model = GetContent(pageName); // All URLs above map to this action return View(); } } ``` Alternatively, if the content is hardcoded in the views you could try: ``` public class HomeController: Controller{ public ActionResult ShowBasicView(string pageName){ // All URLs above map to this ac...
[ -0.0071008289232850075, -0.43974587321281433, 0.6058154106140137, -0.0812516063451767, -0.13223068416118622, 0.018632886931300163, 0.13708800077438354, -0.1811513602733612, -0.37369194626808167, -0.5135265588760376, -0.2745693624019623, 0.5460875034332275, -0.47791728377342224, 0.178731977...
only hit for a URL with a string value.
[ 0.19276264309883118, 0.22482962906360626, 0.09345604479312897, 0.23491984605789185, -0.22725427150726318, -0.32213982939720154, 0.5053679347038269, 0.2506115138530731, 0.020268196240067482, -0.11918404698371887, -0.205190047621727, 0.31114086508750916, -0.12259998917579651, 0.0250404756516...
In most of the NHiberate examples they use an ISET over an IList. I am aware of the basic differences between the two *ie* **a set is unique**. However, I am unsure why they use an ISet over an IList when doing lazy loading. What advantage does (Iesi.Collections.Generic)ISet have over IList? Particularity when lazy l...
[ -0.12234175205230713, -0.059769969433546066, 0.12402794510126114, 0.05738251283764839, -0.6020771861076355, 0.021422188729047775, 0.18596217036247253, -0.11489032953977585, -0.29119226336479187, -0.530989944934845, 0.0175173282623291, 0.3160163164138794, -0.29105034470558167, 0.10849159210...
because this is more common in Java, and the samples were ported from Java. (Some of the samples use set without really needing it to be a set...) That being said, there are distinct differences to a set vs. a list. The behavior is different, so there are use cases where a set's behavior is more appropriate. For lazy ...
[ 0.32355350255966187, -0.37634676694869995, -0.060617316514253616, 0.23365682363510132, -0.22918207943439484, -0.18404313921928406, 0.0841977521777153, -0.35444962978363037, -0.3631003201007843, -0.626924991607666, 0.17157277464866638, 0.5145460963249207, -0.6149687170982361, 0.131252810359...
I have a robot that is contolled with a local UI via a 9 pin serial connection and I would like to make it controllable via a web page, but only one user should be able to interact with it at any time. I'm still thinking about how to use WCF communications between the web server and the local PC, and might ask about th...
[ 0.5917507410049438, -0.03968318924307823, 0.8298189043998718, 0.20824624598026276, -0.086434505879879, 0.07161520421504974, -0.04617613926529884, -0.050116878002882004, -0.23559154570102692, -0.8089542388916016, 0.22099505364894867, 0.4658272862434387, -0.1546705663204193, 0.35604941844940...
about so far is to store user sessions in the order they request to control the robot, and then use AJAX to let each one know when it's their turn. I want to show the user where their place is in the queue and move users forward in the queue when others are done, abandon their sessions, or timeout during their turns. ...
[ 0.4250542223453522, -0.0953766256570816, 0.040286775678396225, 0.14240892231464386, 0.0629524439573288, -0.019363367930054665, -0.04120568558573723, 0.05660196393728256, -0.26654356718063354, -0.5697699189186096, 0.2928624749183655, 0.4101867973804474, 0.1708323210477829, -0.13473585247993...
doing it with ASP.NET. In my opinion, web applications are made to be multi-users and massively concurrent. So, I'm not sure a web application is the best answer to your problem. However, I think it's possible to manage that problem on a webapp by managing an unique token shared between multiple clients (like on a tok...
[ -0.1335807740688324, -0.2146800309419632, 0.21840491890907288, 0.22994503378868103, -0.3720598816871643, -0.1802038699388504, 0.23983581364154816, -0.0757189616560936, -0.7578665614128113, -0.53029865026474, 0.27151456475257874, 0.22225052118301392, -0.29379889369010925, -0.068804733455181...
some times ago but I'm pretty sure an .net equivalent is available). Here's a rapid description : > In web development, Comet is a > neologism to describe a web > application model in which a long-held > HTTP request allows a web server to > push data to a browser, without the > browser explicitly requesting it...
[ 0.08427274972200394, -0.3641757369041443, 0.012778978794813156, 0.020027432590723038, -0.5177098512649536, -0.2576666474342346, 0.2331712692975998, 0.11864738166332245, -0.4074588418006897, -0.19331799447536469, 0.12124375998973846, 0.12948442995548248, -0.2259170264005661, 0.1338451206684...
I am creating an application for mobile phone which sends the acceleration measurements through TCP connection to the server. I would like to reduce the message length as much as possible but in the same time I would like to make it the current format possible to extend without a lot of pain on modifying receiver pars...
[ 0.18148738145828247, 0.27264976501464844, 0.5319847464561462, 0.0823247879743576, -0.20049571990966797, 0.16185422241687775, -0.1147557720541954, 0.04083148390054703, -0.2942708432674408, -0.7207003831863403, 0.2813720703125, 0.5497272610664368, 0.13424940407276154, -0.1686825454235077, ...
the XML, but it adds a lot of load which of course I would like to avoid (the measurements are sent every 100-250 ms). One recommendation is sending simple key name / value pairs if you need to stick completely to an ASCII text type stream. The key name is used to describe the name of the field that each value conveys ...
[ 0.21585655212402344, -0.1577073037624359, 0.2965419292449951, 0.2517824172973633, -0.36553531885147095, -0.41583430767059326, -0.2803979218006134, -0.09820085018873215, -0.22432328760623932, -0.5702035427093506, -0.24868926405906677, 0.3532997667789459, -0.1570574939250946, 0.0645330250263...
is that the receiver can recognize fields that it understands by the code number and then can also skip tags it doesn't know how to decode. In this way, the encoding becomes extensible. If you need multiple tags grouped into logical messages, I would wrap a group of these binary coded tags in an overall message hierarc...
[ 0.3742330074310303, -0.1281454861164093, 0.05810410901904106, -0.07270918041467667, -0.27423810958862305, -0.06783199310302734, 0.18411050736904144, -0.2081737220287323, -0.3334968686103821, -0.5678401589393616, -0.022679852321743965, 0.41106051206588745, -0.33344510197639465, 0.0139961522...
is a lot more concise and constrained so that it is nearly trivial to decode.*
[ -0.025316566228866577, 0.23259517550468445, -0.15930509567260742, -0.036788251250982285, -0.12173794955015182, -0.03616531565785408, 0.4258389472961426, 0.36456170678138733, -0.013097531162202358, -0.5886938571929932, -0.4474041759967804, 0.11485031247138977, -0.16494721174240112, -0.05154...
we have a J2EE web application usig Spring MVC. We have a new requirement for our web application where we have to remove certain pre-defined characters from the user input. For example, let's say that the application should remove '<' from all the user inputs. I have come up with 2 approaches to meet this requirement ...
[ 0.013914494775235653, -0.22829203307628632, 0.3671572506427765, 0.0902218222618103, -0.24397698044776917, -0.11326529085636139, 0.2990592122077942, -0.29626354575157166, -0.013863216154277325, -0.4509719908237457, -0.1813279688358307, 0.3180680572986603, -0.380807489156723, -0.155294299125...
: Override the request.getParameter method and write the character removal logic inside it. Whenever this method is called, it will return the filtered result. 2.2 : At the filter level, scan the parameter map and filter the required characters. Then write a setParameter method and set the new values in the request pa...
[ 0.09927956759929657, -0.4620336592197418, 0.42400968074798584, 0.12292826175689697, -0.21385329961776733, -0.1171487346291542, 0.1150880977511406, -0.2858591079711914, 0.042476456612348557, -0.825864315032959, -0.1882232427597046, 0.6461215019226074, -0.4729882776737213, -0.439745306968688...
can also just post what they like when it comes down to it. Client-side validation is a convenience. It is no substitute for server-side validation. As for using servlet filters, I'm not sure I'm a big fan of that. It seems like (and I could be wrong here) you're trying to protect yourself from lazy, forgetful or just...
[ 0.7181749939918518, -0.017462817952036858, 0.2247643619775772, 0.18800689280033112, -0.27402791380882263, -0.560838520526886, 0.21801570057868958, 0.3212217390537262, -0.22285716235637665, -0.5759697556495667, -0.09776138514280319, 0.41752782464027405, -0.15017537772655487, -0.022173462435...
it if you're really worried about it. Servlet filters just seems heavyhanded and possibly problematic for this. You're using Spring MVC. Are you using any particular validation framework behind Spring's validators? Whatever the case, IMHO this is the correct place to deal with this kind of problem and easily unit-tes...
[ 0.4223766326904297, -0.19220583140850067, 0.21650896966457367, 0.2025570273399353, -0.17451035976409912, -0.1769481748342514, 0.011466754600405693, -0.4766639471054077, -0.20414207875728607, -0.12843774259090424, -0.06374293565750122, 0.5392912030220032, -0.10192615538835526, -0.0609094314...
Can you even do that? Even if you can I wouldn't.
[ 0.5090469121932983, 0.4176817536354065, -0.2640284597873688, 0.2599951922893524, -0.09926234185695648, -0.11057041585445404, 0.6460338234901428, -0.14721733331680298, -0.2387334555387497, -0.10950510948896408, 0.2816713750362396, 0.03401007503271103, -0.20477861166000366, 0.318460494279861...
How can I compare two files in a batch file, and perform an action based on whether or not they match? I've tried something like: ``` if file1.txt NEQ file2.txt goto label ``` but it compares the actual string "file1.txt" rather than the file. I've read about the COMP command, but it doesn't seem to work if I put it...
[ 0.5168505311012268, 0.1880997121334076, 0.2620837390422821, -0.15649168193340302, -0.22083337604999542, 0.013548494316637516, 0.07345244288444519, -0.21836987137794495, -0.10890510678291321, -0.6901836395263672, 0.263587087392807, 0.44068634510040283, -0.2961639165878296, -0.01596176251769...
> nul if errorlevel 1 goto error :next echo insert next CD pause goto main :error echo failed check ``` (Pulled from <http://www.computing.net/answers/dos/batch-file-command/15753.html>)
[ -0.013166381977498531, -0.27425748109817505, -0.01580909639596939, -0.33307206630706787, -0.19250677525997162, 0.20030929148197174, 0.17931482195854187, -0.26184335350990295, 0.09036867320537567, -0.24386084079742432, -0.374202162027359, 0.5520606637001038, -0.08421424776315689, 0.16439501...
What is the name of the Command Line Compiler for a C/C++ program that target's Windows Mobile? I have Visual Studio 2008 Professional installed and I need to be able to compile a program from the command line. I've checked the project properties in Visual Studio and it shows me all of the parameters that are being p...
[ 0.08572231233119965, 0.40687090158462524, 0.5157636404037476, -0.23962365090847015, -0.15996888279914856, -0.025621414184570312, -0.09747201949357986, 0.10227227210998535, 0.0023116457741707563, -0.4293869137763977, -0.19043117761611938, 0.6573887467384338, -0.35055962204933167, -0.0742830...
depending on the particular architecture. Here's some further information on the Windows CE / Mobile Command Line Compiler: <http://msdn.microsoft.com/en-us/library/aa448630.aspx>
[ 0.26260241866111755, 0.24378493428230286, 0.02620897814631462, -0.0704106017947197, 0.12645545601844788, 0.36637675762176514, 0.3216773271560669, -0.11381824314594269, -0.055921707302331924, -0.5376508235931396, -0.3131771385669708, 0.33182036876678467, -0.10152444988489151, 0.081865794956...
I am currently creating a program in Qt, OpenCv, Mac os X. I have a main window, and then a separate window that is opened. I pass the new window several matrix clones in the constructor: ``` ImageWindow *imageWin = new ImageWindow( cvCloneMat(getData->getMasterRawMat(1)), cvCloneMat(getData->getMasterRawMat(...
[ 0.2237059772014618, -0.029005948454141617, 1.1024004220962524, -0.18890942633152008, 0.023322731256484985, -0.17536242306232452, 0.27422666549682617, -0.3622816205024719, -0.16115771234035492, -0.9096704721450806, -0.2385651171207428, 0.7375731468200684, -0.3238731622695923, 0.105030894279...
means you can place some clean-up routines in the destructor.
[ 0.5848368406295776, -0.01975579559803009, 0.17330676317214966, 0.2591312527656555, 0.29256588220596313, -0.14731775224208832, 0.328661173582077, 0.005284065380692482, -0.3874638080596924, -0.3801290988922119, -0.052127718925476074, 0.49716123938560486, 0.13758960366249084, -0.3988930284976...
So I need to pull some JavaScript out of a remote page that has (worthless) HTML combined with (useful) JavaScript. The page, call it, <http://remote.com/data.html>, looks something like this (crazy I know): ``` <html> <body> <img src="/images/a.gif" /> <div>blah blah blah</div><br/><br/> var data = { date...
[ 0.4011937081813812, 0.19070245325565338, 0.6539446115493774, -0.15566791594028473, -0.16631516814231873, -0.37703511118888855, 0.2808458209037781, -0.013380812481045723, -0.42379599809646606, -0.3519923686981201, 0.0751303881406784, 0.1379120796918869, -0.08625175058841705, 0.5269307494163...
the JavaScript code, run `eval` on it and be good to use the data. So I thought load the remote page in an iframe, but I can't seem to find the iframe in the DOM. Why not?: ``` <script> alert(window.parent.frames.length); alert(document.getElementById('my_frame')); </script> <iframe name="my_frame" id='my_fra...
[ 0.024244531989097595, -0.006207643076777458, 0.6044726371765137, -0.19866958260536194, -0.1654772162437439, -0.0897519662976265, 0.3942910432815552, -0.35072940587997437, -0.2059105932712555, -0.6758853197097778, -0.19667905569076538, 0.408123254776001, -0.0867660641670227, 0.2498072087764...
give the iframe an onload handler: ``` <iframe src="http://example.com/blah" onload="do_some_stuff_with_the_iframe()"></iframe> ``` Last but not least, pay attention to the cross-site scripting issues - the iframe may be loaded, but your JS may not be allowed to access it.
[ 0.24817703664302826, 0.2748889625072479, 0.08876332640647888, -0.2597537934780121, -0.104344442486763, -0.34721824526786804, 0.23811469972133636, 0.31570112705230713, -0.22019660472869873, -0.6343000531196594, -0.380916565656662, 0.30694374442100525, -0.5035372376441956, -0.140584975481033...
I am pretty new in C# and my English is not so good - sorry in advance if I miss a point. I tried to build an ASP.NET web site with a `ReportService` control. As you might already know, SSRS 2008 does not allow anonymous login. So, I tried to pass Credentials to SSRS which will be stored inside my web page so that use...
[ 0.1430775672197342, 0.4327629804611206, 0.1902729570865631, -0.09956592321395874, -0.32860133051872253, -0.36815109848976135, 0.5301916003227234, 0.20091208815574646, -0.35674309730529785, -0.3363100588321686, 0.13965584337711334, 0.2552122175693512, -0.09177304059267044, 0.012915508821606...
the report parameters, the below code works okay. * But, if I try to change the value of a parameter, the whole page is refreshed and before I click the "View Report" button, all parameters are reset to default or null values. Any suggestion on how to avoid refreshing the whole page, or another way to pass the l...
[ 0.03821799159049988, -0.09254312515258789, 0.6490138173103333, 0.004329746589064598, -0.13726942241191864, -0.09977471083402634, 0.37053003907203674, -0.16114187240600586, -0.47272980213165283, -0.6802453398704529, -0.21605032682418823, 0.5606861114501953, -0.41951602697372437, 0.196168571...
ReportViewer1.Width = 800; ReportViewer1.Height = 600; ReportViewer1.ProcessingMode = ProcessingMode.Remote; IReportServerCredentials irsc =new CustomReportCredentials("administrator", "MYpassworw", "domena"); ReportViewer1.ServerReport.ReportServerCredentials = irsc; ReportViewe...
[ -0.13330814242362976, -0.12958268821239471, 0.9886297583580017, -0.2073759138584137, -0.1876317709684372, 0.2568066120147705, 0.3556273579597473, -0.33005762100219727, -0.45074549317359924, -0.49144667387008667, -0.47205257415771484, 0.6318957805633545, -0.2303585410118103, 0.2972173392772...
string _PassWord; private string _DomainName; public CustomReportCredentials(string UserName, string PassWord, string DomainName) { _UserName = UserName; _PassWord = PassWord; _DomainName = DomainName; } public System.Security.Principal.WindowsIdentity ImpersonationUse...
[ -0.20115110278129578, -0.2830774784088135, 0.4484134614467621, 0.4855562150478363, 0.3106970489025116, 0.01066115964204073, 0.1932099312543869, 0.3365543782711029, -0.41840261220932007, -0.5104623436927795, -0.26727381348609924, 0.7273563742637634, -0.21330784261226654, 0.31702911853790283...
{ get { return new NetworkCredential(_UserName, _PassWord, _DomainName); } } public bool GetFormsCredentials(out Cookie authCookie, out string user, out string password, out string authority) { authCookie = null; user = password = authority = null; return false; ...
[ 0.2146960198879242, -0.2741071581840515, 0.5065802335739136, 0.04259400814771652, -0.032163988798856735, -0.2962123453617096, 0.7347977757453918, -0.05044219270348549, -0.23520661890506744, -0.7206128835678101, -0.1760420948266983, 0.675872802734375, -0.33936819434165955, 0.005035234149545...
tells me you may want to wrap that stuff in an `if (!IsPostBack)` block to keep it from running on the page refresh. My guess is that `ReportViewer1.ServerReport.Refresh()` pulls the default values again. ``` protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { ReportViewer1....
[ 0.1108190044760704, -0.10582427680492401, 0.8762585520744324, -0.09154709428548813, 0.0598425529897213, 0.0696047842502594, 0.4500058591365814, -0.2870626151561737, -0.4315667748451233, -0.6319729685783386, -0.17859531939029694, 0.6540689468383789, -0.2346666157245636, 0.18264161050319672,...
irsc; ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://192.168.0.1/ReportServer/"); ReportViewer1.ServerReport.ReportPath = "/autonarudzba/listanarudzbi"; ReportViewer1.ServerReport.Refresh(); } } ```
[ 0.008824517950415611, 0.16424435377120972, 0.6581141352653503, -0.33539897203445435, -0.41558367013931274, -0.27503257989883423, 0.39130792021751404, -0.3084436058998108, -0.3058716058731079, -0.3143541216850281, -0.4606230854988098, 0.575612485408783, -0.380084365606308, 0.288227528333663...
I have a text file layed out like this: ``` 1 a, b, c 2 c, b, c 2.5 a, c ``` I would like to reverse the keys (the number) and values (CSV) (they are separated by a tab character) to produce this: ``` a 1, 2.5 b 1, 2 c 1, 2, 2.5 ``` (Notice how 2 isn't duplicated for c.) I do not need this exact output...
[ 0.09519212692975998, 0.5167590379714966, 0.21929848194122314, -0.3444848358631134, -0.02704322338104248, 0.17061308026313782, 0.037836067378520966, -0.15285898745059967, -0.04231197014451027, -0.5259305238723755, 0.03191104903817177, 0.7749916315078735, -0.19183708727359772, 0.125794246792...
utilities (awk, sed, grep...) and GCC. I can probably grab a compiler/interpreter for other languages if needed. If you have python (if you're on linux you probably already have) i'd use a short python script to do this. Note that we use sets to filter out "double" items. Edited to be closer to requester's requirement...
[ 0.33791103959083557, -0.1345808058977127, 0.11089354753494263, 0.05030010640621185, -0.014067615382373333, -0.02347501367330551, 0.006236223969608545, -0.21176877617835999, -0.1495676338672638, -0.637086033821106, -0.14371313154697418, 0.708256721496582, -0.40030303597450256, -0.1737140715...
maindict[key].add(Decimal(value)) except KeyError: maindict[key] = set() maindict[key].add(Decimal(value)) csv_writer = csv.writer(open('out.csv', 'w'), delimiter='\t') sorted_keys = [x[1] for x in sorted([(x.lower(), x) for x in maindict.keys()])] for key in sorted_keys: csv_writer.wr...
[ -0.34088125824928284, 0.3178269565105438, 0.42088183760643005, -0.2662027180194855, -0.211494579911232, 0.1378372460603714, 0.5970097184181213, -0.022646555677056313, -0.43394598364830017, -0.24347811937332153, -0.48456069827079773, 0.21349593997001648, -0.3054647743701935, 0.3628964126110...
Greetings all, Is there a built in way to know when a user is done typing into a textbox? (Before hitting tab, Or moving the mouse) I have a database query that occurs on the textchanged event and everything works perfectly. However, I noticed that there is a bit of lag of course because if a user is quickly typing in...
[ -0.05909697338938713, 0.24028073251247406, 0.33034878969192505, 0.2675107717514038, -0.3463342487812042, -0.1645219922065735, 0.2943802773952484, 0.30782586336135864, -0.08141936361789703, -0.2889168858528137, 0.043296437710523605, 0.5212736129760742, -0.09977210313081741, -0.1247419714927...
However, if they type "all the way" the event fires after the y keyup. I have some ideas floating around my head but I'm sure they aren't the most efficient. Like measuring the time since the last textchange event and if it was > than a certain value then it would proceed to run the rest of my procedures. let me know...
[ 0.4073192775249481, -0.15565940737724304, 0.23968501389026642, -0.1056060791015625, -0.02972877025604248, -0.05252804607152939, 0.4641205370426178, -0.20918942987918854, -0.025130292400717735, -0.3804377317428589, 0.1327282190322876, 0.6460480093955994, -0.3034018874168396, -0.435965299606...
and the update occurring 2. In the input's `TextChanged` event, `Stop()` and then `Start()` the `Timer` This will restart the `Timer` if it is already running, so if the user keeps typing at a normal rate, each change will restart the timer. 3. In the timer's `Tick` event, `Stop()` the `Timer` and do the long transact...
[ -0.027383629232645035, -0.11703412234783173, 0.7119156122207642, -0.05389361083507538, 0.26027387380599976, -0.14597684144973755, 0.24270106852054596, -0.34996941685676575, -0.20304875075817108, -0.524181604385376, -0.23717665672302246, 0.7780768871307373, -0.1421905755996704, -0.148533120...
the time since the last update" approach you're considering is that if the last change is made quickly, the update won't happen, and there won't be any subsequent changes to trigger another check. **Note:** There must be a one to one pairing between `TextBox`es and `Timer`s; if you're planning on doing this with more ...
[ 0.3586834967136383, 0.00788917113095522, 0.5044213533401489, -0.1261298805475235, 0.3968404233455658, -0.2770143449306488, 0.37756386399269104, -0.12703076004981995, -0.12178227305412292, -0.7777141332626343, -0.15289917588233948, 0.822463870048523, -0.05734223872423172, -0.216905683279037...
I am writing editing front ends in Python since several years now, and I am fed up with micromanaging every UI detail of a window or dialog every single time. Is there a technology that allows me to, say, specify the relations between a GTK+ Glade-designed interface and the tables and records of an SQLite database to ...
[ 0.12494142353534698, 0.3904605507850647, 0.2681350111961365, -0.17543147504329681, -0.29531341791152954, -0.06517151743173599, 0.06602466106414795, 0.14455881714820862, -0.11771443486213684, -0.5618937611579895, 0.0057195695117115974, 0.469952791929245, -0.19403351843357086, -0.29733538627...
can add: * [Kiwi](http://www.async.com.br/projects/kiwi/api/kiwi.html) * [uxpython](http://www.uxpython.com/) * [pygtk](http://www.pygtk.org/) * [treethon](http://code.google.com/p/treethon/) I've never used any of them so have no recommendations but, for what it's worth, I have used at least 2 complex programs built...
[ 0.5158352851867676, 0.1316378265619278, 0.13949552178382874, 0.17831623554229736, -0.49220961332321167, -0.031664591282606125, 0.10419831424951553, -0.060762714594602585, -0.18653744459152222, -0.692194402217865, -0.016520775854587555, 0.43909966945648193, -0.22920772433280945, -0.00557736...
The question pretty much sums this up, but I'll provide some more details. I can *almost* safely assume that any primary key index in an Oracle database is clustered. But I'm not one to assume. Besides, a user might have created a clustered index that *wasn't* the primary key. If that's the case, I'd really like to kn...
[ 0.1984468251466751, 0.15252120792865753, -0.07247184216976166, 0.3575575053691864, 0.09847931563854218, -0.11499110609292984, -0.09218715131282806, 0.17596590518951416, -0.14228999614715576, -0.37715834379196167, 0.1634594053030014, 0.21800746023654938, -0.024824125692248344, 0.03201154991...
the vintage Action Comics #1 that your mom through out because she thought it was useless at the time.) Thanks! Oracle does not have the concept of "clustered indexes" as SQL Server does. In general, Oracle table are "heaps" with the data stored in no particular order. There is a special type of table called an [INDEX...
[ -0.11329120397567749, -0.04027044028043747, -0.13851511478424072, 0.5754770040512085, -0.2507912218570709, -0.16914258897304535, -0.0653287023305893, 0.14763784408569336, -0.4573051631450653, -0.3454899787902832, -0.11868993937969208, 0.448130339384079, 0.04939594492316246, -0.135016083717...
to declare all your Oracle tables as index organized in an attempt to emulate SQL Server; what is right for one DBMS is not necessarily right for another. I suggest you read the [Oracle Database Concepts guide](http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm) to get to know how Oracle works. Ind...
[ 0.21923379600048065, 0.22038713097572327, -0.10067048668861389, 0.21863894164562225, -0.07304175198078156, -0.1258535534143448, -0.05507349222898483, -0.08270464837551117, -0.1361415833234787, -0.5463170409202576, -0.07237344980239868, 0.38607609272003174, -0.432407021522522, 0.00084628240...
I am currently writing a CRUD class in PHP using PDO. I like the security that prepared statements provide, but I have heard that they also prevent databases like mysql from using the queryCache. Is it better to use a prepared Select statement when you are only doing one select at a time? or would just $pdo->quote() ...
[ 0.08771160989999771, 0.003448404371738434, -0.09718497097492218, 0.1491289883852005, -0.3625255227088928, -0.1365441530942917, 0.004221686627715826, -0.3115862011909485, 0.0861746147274971, -0.4419170022010803, 0.0747242271900177, 0.3104809820652008, -0.15415966510772705, -0.01326732803136...
benchmark (using > SysBench) to see performance of simple > query (single row point select) using > standard statement, prepared statement > and have it served from query cache. > Prepared statements give 2290 > queries/sec which is significantly > better than 2000 with standard > statements but it is still wel...
[ -0.027402620762586594, -0.09701721370220184, 0.30782029032707214, 0.12822620570659637, -0.2332269251346588, 0.19181455671787262, 0.4925241470336914, -0.6029337644577026, -0.01488096360117197, -0.8374768495559692, -0.05380197614431381, 0.5131822228431702, 0.3234539330005646, -0.032996270805...
complex query or a larger result set. It seems counter-intuitive that prepared queries would be faster, given the double round-trip to the server and other factors. Peter's benchmark lacks details. Anyway, you should run your own tests, because the type of query you run, and your environment and hardware, are definite...
[ 0.0004342164902482182, 0.16540782153606415, 0.2827218472957611, 0.01542637962847948, -0.2586723864078522, 0.021152621135115623, 0.521759569644928, -0.46261903643608093, 0.05817337706685066, -0.5178014039993286, -0.09690698981285095, 0.5309314131736755, -0.35356059670448303, 0.1415344774723...
prepared > statements use the query cache under > certain conditions, which differ > depending on the preparation method: ... The documentation goes on to describe these conditions. Go read it. I do recommend using prepared statements for `SELECT` queries. Quoting variables as you interpolate them into SQL stateme...
[ 0.3733344078063965, 0.19012518227100372, -0.08019805699586868, 0.2334389090538025, -0.32889965176582336, -0.015953127294778824, 0.49886801838874817, -0.22101226449012756, -0.009324260987341404, -0.5389112234115601, -0.06166764348745346, 0.40237826108932495, -0.14252114295959473, -0.1018051...
I have put few elements in array (e.g. 5 elements) The first element, index[0] of the array will automatically displayed without the user need to click the button. After the button clicked, it will print the next elements of array and the processes continue until the last element of array. Everytimes the button click...
[ 0.43290796875953674, 0.32608088850975037, 0.33318713307380676, -0.15691979229450226, -0.161238893866539, 0.15973462164402008, 0.4142392873764038, -0.37668848037719727, 0.0694272518157959, -1.000697135925293, 0.23763294517993927, 0.5362263321876526, -0.20637266337871552, 0.3549271523952484,...
ActionListener { ........ private JButton answer1 = new JButton(); String [] a = {"a","b","c","d","e"} in fileNumber = 0; } public mainFramme (){ System.out.println(a.get(fileNumber)) fileNumber++; answer1.addActionListener(this); } public void actionPerformed(ActionEvent e) { if (e...
[ -0.10588199645280838, -0.7659665942192078, 0.7263909578323364, -0.527353823184967, 0.07966950535774231, 0.33110347390174866, 0.4243103265762329, -0.5353034734725952, -0.4471631348133087, -0.46780329942703247, -0.5827334523200989, 0.8752228617668152, -0.4750390350818634, -0.0337352715432643...
new PrintStream(fout).println (Filename); new PrintStream(fout).println ("Answer 1"); fileNumber++; } ... } ``` } Others have basically answered already, but from your comments I don't think it's clear. You are automatically displaying the first String to the screen, but not to a ...
[ 0.18747417628765106, -0.34242838621139526, 0.6334326863288879, -0.3033416271209717, 0.021487731486558914, 0.06477420777082443, -0.04023755341768265, -0.4481991231441498, -0.45132920145988464, -0.6281927824020386, -0.3052455484867096, 0.7307357788085938, -0.4364064633846283, -0.162276789546...
have it written, the file operations are only called when the button is pressed, which is never the case for the first String. This might be clearer: ``` public class mainFrame extends JFrame implements ActionListener { ........ private JButton answer1 = new JButton(); String [] a = {"a","b","c","d","e"} ...
[ 0.15755130350589752, -0.42081525921821594, 0.6752085089683533, -0.4576650857925415, 0.27147504687309265, 0.17973946034908295, 0.298246294260025, -0.5006051063537598, -0.24950586259365082, -0.5801677703857422, -0.5626839995384216, 0.5634725093841553, -0.5044503211975098, 0.00302104232832789...
..... System.out.println(a.get(fileNumber)) fout = new FileOutputStream ("myfile.txt",true); Filename = new File(files.get(fileNumber)); new PrintStream(fout).println (Filename); new PrintStream(fout).println ("Answer 1"); fileNumber++; } ... } ```
[ 0.16618035733699799, -0.3067673444747925, 0.6349472403526306, -0.3453774154186249, 0.25098752975463867, 0.1557389497756958, 0.2747363746166229, -0.42219778895378113, -0.2772899568080902, -0.732714056968689, -0.5157944560050964, 0.756417453289032, -0.5076431035995483, 0.031037021428346634, ...
I witnessed the following weird behavior. I have two functions, which do almost the same - they measure the number of cycles it takes to do a certain operation. In one function, inside the loop I increment a variable; in the other nothing happens. The variables are volatile so they won't be optimized away. These are th...
[ 0.40363502502441406, 0.024549035355448723, 0.1370546966791153, 0.002710700500756502, 0.2461661994457245, 0.15288923680782318, 0.38207584619522095, -0.09758249670267105, -0.352890282869339, -0.16602827608585358, 0.3281831443309784, 0.40044328570365906, -0.24100680649280548, 0.29990875720977...
int i; tsc_counter_t start_t, end_t; start_t = tsc_readCycles_C(); for (i=0; i<_osm_iterations; i++){ ++j; } end_t = tsc_readCycles_C(); if (tsc_C2CI(start_t) ==0 || tsc_C2CI(end_t) ==0 || tsc_C2CI(start_t) >= tsc_C2CI(end_t)) return -1; return (tsc_C2CI(end_t)-tsc_C2CI(start...
[ -0.09129644185304642, -0.3507692813873291, 0.340167760848999, -0.24740785360336304, 0.10667070746421814, 0.3870154321193695, 0.457382470369339, -0.284363716840744, -0.3426101803779602, -0.3625210225582123, -0.18464437127113342, 0.5039563775062561, -0.35651588439941406, 0.34993767738342285,...
; } end_t = tsc_readCycles_C(); if (tsc_C2CI(start_t) ==0 || tsc_C2CI(end_t) ==0 || tsc_C2CI(start_t) >= tsc_C2CI(end_t)) return -1; return (tsc_C2CI(end_t)-tsc_C2CI(start_t))/_osm_iterations; } ``` There are some non-standard functions there but I'm sure you'll manage. The thing is, the firs...
[ -0.018363434821367264, -0.20746876299381256, 0.21896609663963318, -0.13350310921669006, 0.17424874007701874, 0.001291476422920823, 0.4047103226184845, 0.011604849249124527, -0.3977079391479492, -0.362179696559906, 0.017789937555789948, 0.7010005116462708, -0.3852774202823639, 0.24500912427...
overhead for my measurement of the second. Do you have any idea how to do that (as this method doesn't really cut it)? I'm on Ubuntu (64 bit I think). Thanks a lot. I can see a couple of things here. One is that the code for the two loops looks identical. Secondly, the compiler will probably realise that the variable...
[ 0.6711080074310303, -0.10491041839122772, -0.16155937314033508, 0.13688533008098602, -0.33152565360069275, -0.06753736734390259, 0.035561468452215195, 0.07758631557226181, -0.22748833894729614, -0.8096098303794861, 0.34295791387557983, 0.307939738035202, -0.46201756596565247, 0.21224965155...
loop has affected the cachability of the code - this could have moved it across cache lines or some other thing. Since the code is so trivial, you may find it difficult to get an accuate timing value, even if you are doing 5000 iterations, you may find that the time is inside the margin for error for the timing code ...
[ 0.4561567008495331, -0.32637354731559753, 0.09641353040933609, 0.3267064690589905, 0.01950211636722088, -0.18709908425807953, 0.29296979308128357, -0.3663361370563507, -0.38364407420158386, -0.3058490455150604, 0.19844673573970795, 0.11629511415958405, -0.3531518280506134, 0.16109107434749...
I peek at the assembly code > generated by GCC? > > > Q: How can I create a file where I can > see the C code and its assembly > translation together? > > > A: Use the -S (note: capital S) switch > to GCC, and it will emit the assembly > code to a file with a .s extension. > For example, the following command...
[ 0.22304870188236237, 0.24902044236660004, 0.2506982088088989, -0.3349628150463104, -0.20538444817066193, -0.13258309662342072, 0.4110664129257202, -0.1694023609161377, -0.013431472703814507, -0.7210021615028381, -0.263778418302536, 0.3891093134880066, -0.2417706549167633, 0.311297416687011...
the assembly it was converted to, > use a command line like this: > > > gcc -c -g -Wa,-a,-ad [other GCC > options] foo.c > foo.lst > > > which will output the combined > C/assembly listing to the file > foo.lst.
[ 0.16565929353237152, -0.0077227093279361725, 0.34573355317115784, -0.33517560362815857, 0.011486231349408627, 0.2523074150085449, -0.03692106902599335, -0.27480021119117737, -0.04263937845826149, -0.5174221396446228, -0.23811577260494232, 0.38430216908454895, -0.5443196296691895, 0.1115756...
With ActionScript3 for Flash Player 9+, what is the nicest way to call a "once-off" function after exactly one frame? I am aware of the Timer class and it's uses, and the callLater method on Flex UIComponents (which, glancing through the source, doesn't look very efficient in this scenario). I'm also aware of setTimeo...
[ -0.07722005248069763, -0.3994761109352112, 0.4420444667339325, -0.17464376986026764, -0.123104028403759, -0.19682881236076355, 0.15202254056930542, -0.13770835101604462, -0.21605540812015533, -0.5506298542022705, 0.02861730381846428, 0.7646243572235107, -0.42711374163627625, -0.19151630997...
to 0). But this is not guaranteed. Of course, we could listen for Event.ENTER\_FRAME events from a DisplayObject, but that seems like overkill for a once-off delayed function call. Flex was intended to abstract away the frame-based nature of the Flash Player so you will not find much to help you with your problem. The...
[ 0.10358603298664093, -0.1400497853755951, 0.08857644349336624, -0.01953050121665001, -0.15884709358215332, -0.2815874218940735, 0.17100439965724945, -0.11179589480161667, -0.04418877884745598, -0.7445257902145386, -0.054477863013744354, 1.1207460165023804, -0.46709734201431274, -0.00659878...
NextFrameCommand() { private var functionToCall : Function; public function NextFrameCommand(dObj: DisplayObject, func : Function) { functionToCall = func; } public function start() : void { dObj.addEventListener(Event.ENTER_FRAME, onEnterFrame); } private function onEnterFra...
[ -0.31534260511398315, -0.3254680335521698, 0.4965505301952362, -0.29559803009033203, 0.4201207756996155, 0.06047239899635315, 0.12190304696559906, -0.1688251495361328, -0.20600199699401855, -0.94429612159729, -0.279491126537323, 0.5278597474098206, -0.3322288691997528, 0.12089569121599197,...
I'm developing some desktop software for a client to resell. The client wants to restrict the software so that the registration code will be specific to one and only one computer. Besides using the MAC from the network card, does anyone have any other techniques (that work on both Windows and Mac OS X) for uniquely id...
[ 0.4211922287940979, 0.21823127567768097, 0.324049711227417, 0.19347873330116272, 0.39509618282318115, -0.34776124358177185, -0.17754338681697845, -0.24192938208580017, -0.20888924598693848, -0.4577235281467438, 0.06308040022850037, 0.5612105131149292, 0.06970372051000595, 0.256604820489883...
a **license manager**. That is, when the software starts up, it queries a server on the network (either on the customer's LAN or else accessed at your company via the internet) that validates that the customer's usage of the software is legitimate. This is a good solution for "concurrent licenses" so customers can inst...
[ 0.5502657294273376, 0.08263931423425674, 0.5516573786735535, 0.1016869992017746, 0.36989495158195496, -0.5840358138084412, 0.02246883511543274, -0.18922075629234314, -0.31924936175346375, -0.346523255109787, -0.09372732043266296, 0.6569951176643372, 0.05113751068711281, 0.29044950008392334...
that licensed software to run on a specific host. However, I want to offer a caution: if you do this type of licensing, you have to anticipate that it'll become an **ongoing administrative chore** to track your customers' licenses. Once you have a few hundred customers, you'll be amazed at how frequently you get phone...
[ 0.7158401012420654, 0.3223884105682373, 0.4448046386241913, 0.22215725481510162, 0.42442193627357483, -0.4561939537525177, 0.3163753151893616, -0.016239244490861893, -0.18116867542266846, -0.635595977306366, -0.12847693264484406, 0.7325759530067444, -0.2613324820995331, 0.3527480959892273,...
to run your software on the new machine. We got these calls practically every day at the company I worked for. You also need to trust the customer to stop using your software on the old computer (or network adapter) if you give them a new key. If you couldn't trust them to obey the license in the first place, how can...
[ 0.7854107618331909, 0.15690025687217712, -0.22806768119335175, 0.31431257724761963, 0.37170758843421936, -0.38226085901260376, 0.274990975856781, -0.15456880629062653, -0.1415339559316635, -0.14669013023376465, 0.012667719274759293, 0.6165320873260498, -0.3133416175842285, 0.30561828613281...
Some of the SOA foundations are: * Loosely Coupled * Reusability * Stateless Services * Formal contracts between Services * Coarse Granularity * Asynchrony * Abstract Underlying logic (black box) * Composable (services as building blocks) * Discoverable services * Autonomous services --- Most of them could be applie...
[ 0.22736701369285583, -0.02052968181669712, -0.08498653769493103, 0.3781626522541046, 0.021045416593551636, -0.04638583958148956, 0.14209607243537903, -0.00133543333504349, -0.15586084127426147, -0.4537350833415985, -0.2873796224594116, 0.2851252853870392, -0.3735654056072235, -0.0941448062...
the deployed applications to handle their own interconnect needs. IAAS cares only that global quotas are enforced and that hardware remains available and accurately metered (a lot like electricity is metered). So, cloud computing is more or less a marketing buzzword for IAAS. A wise person once said, "If you can't ex...
[ 0.2573605477809906, 0.3603874146938324, 0.16047553718090057, 0.28342312574386597, 0.11216776072978973, -0.22054189443588257, 0.04206280782818794, 0.28754356503486633, -0.3643883764743805, -0.43515950441360474, -0.34631142020225525, 0.5309134125709534, -0.4057988226413727, -0.12059631943702...
can :)
[ -0.2340417206287384, 0.30777034163475037, 0.35650384426116943, 0.12715359032154083, 0.1250699758529663, 0.035281646996736526, 0.4732944369316101, -0.14884626865386963, -0.28267067670822144, -0.4888877272605896, -0.4089653193950653, 0.4409928619861603, -0.22410835325717926, 0.02645158395171...
I would like to press a button from an Adobe AIR application and execute some installed program. For example, I would have a button named "Start Winamp". When this is pressed it should start Winamp.exe directly...I don't want some command line thing executed, I only want an exe to start. Or...is it the same thing ? Ple...
[ 0.19980613887310028, 0.17744357883930206, 0.028360538184642792, -0.000702457211446017, 0.09960882365703583, -0.19735462963581085, 0.1644730120897293, 0.1072039008140564, 0.30504310131073, -0.7118147015571594, -0.09413545578718185, 0.8624273538589478, -0.35819533467292786, -0.08060293644666...
AIR application. The AIR application in turn requests for the executable to process OS-level requests. Download the source from [Google Code](http://code.google.com/p/commandproxy/) and create two projects -- a Visual Studio/Mono for the sample C# exe and another -- for the AIR application. [Here](http://code.google....
[ 0.5892120003700256, 0.3358932435512543, 0.3385985791683197, 0.27235648036003113, -0.16578993201255798, -0.01016200240701437, 0.16872741281986237, -0.38797032833099365, 0.33491426706314087, -0.5980724096298218, -0.6514492034912109, 0.4894408881664276, -0.46382439136505127, -0.30907544493675...