text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
svnserve very easy to install and maintain and doesn't penalise you in lack of futures. SSH can be enabled for svnserve and path based security is also possible if you're the '"one repository, many projects" kind of guy' Steve Robbins talks about :)
[ 0.13956882059574127, 0.031018199399113655, 0.45305702090263367, 0.22479434311389923, -0.1379193514585495, -0.6331121325492859, 0.6283982396125793, -0.04701486602425575, -0.28420814871788025, -0.7979539632797241, -0.16927213966846466, 0.474294513463974, -0.09602885693311691, 0.0909402072429...
Can someone explain to me why ``` @Override public void fooMethod(Class<?> c) ``` doesn't override ``` public void fooMethod(Class c) ``` and gives me the following errors instead: ``` - Name clash: The method fooMethod(Class<?>) of type SubClass has the same erasure as fooMethod(Class) of type SuperClass but...
[ -0.15745089948177338, 0.18424062430858612, 0.04436173290014267, -0.1279100924730301, 0.043911468237638474, -0.29980766773223877, 0.23391631245613098, -0.2821561098098755, -0.23261049389839172, -0.498002827167511, 0.03750934079289436, 0.7547491192817688, -0.2776593863964081, 0.1639830321073...
is simply `Class` ([JLS 4.6](http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html)). Hence, `fooMethod(Class)` is a subsignature of the `fooMethod(Class<?>)` but not the opposite ([JLS 8.4.2](http://java.sun.com/docs/books/jls/third_edition/html/classes.html)). For overriding with instance methods yo...
[ -0.18074741959571838, 0.06741859763860703, 0.13780595362186432, 0.07687373459339142, -0.1937042474746704, -0.1692485213279724, 0.35646823048591614, -0.2386532425880432, -0.10799721628427505, -0.3452833294868469, -0.29353800415992737, 0.5441160798072815, -0.5491412281990051, 0.2383901029825...
override, they must be both available on the subtype as separate methods, but they have identical runtime signatures: conflict. So Java has to disallow it. Overriding generic parameter types using raw parameter types *is* allowed because raw types exist just for this reason: they are a convenient mechanism with specif...
[ -0.12637607753276825, -0.014180760830640793, 0.26705366373062134, 0.1910751461982727, -0.3302876055240631, -0.43388694524765015, 0.4476836323738098, -0.32504525780677795, -0.22687023878097534, -0.5359560251235962, -0.09577153623104095, 0.42573973536491394, -0.5401419401168823, 0.4474797248...
code.
[ 0.49412402510643005, 0.1709488481283188, -0.34349244832992554, 0.47293370962142944, 0.020621994510293007, -0.3459796905517578, 0.26370447874069214, 0.010925516486167908, 0.1232805997133255, -0.7033259272575378, -0.3256821036338806, 0.21533121168613434, -0.41662225127220154, 0.0147464526817...
How to do Trim operation to remove space character in a text field in JavaScript? in case you *did* mean Trim: `x.replace(/^\s*|\s*$/g,'');`
[ -0.02275850623846054, 0.06360869109630585, 0.19608809053897858, -0.146514892578125, 0.18082907795906067, 0.10569659620523453, 0.02927444502711296, -0.2760426998138428, 0.09857580065727234, -0.6181682348251343, -0.46731242537498474, 0.5722435712814331, -0.3305664658546448, -0.25884589552879...
I am using the MFC Feature Pack and I have some buttons on a ribbon bar, instances of CMFCRibbonButton. The problem is that I would like to enable and disable some of them in certain conditions, but at runtime. How can I do this? because there is no specific method for this...I heard that a solution would be to attach/...
[ 0.02982301637530327, 0.07157029956579208, 0.5321527123451233, -0.22237540781497955, 0.09518458694219589, -0.0064999801106750965, 0.2151545137166977, -0.3971605896949768, -0.3318815529346466, -0.4984893798828125, -0.375001460313797, 0.6106905341148376, -0.5764340162277222, 0.103002987802028...
done using the usual command update mechanism in MFC, using the [`CCmdUI`](http://msdn.microsoft.com/en-us/library/6kc4d8fh.aspx) class. For example, if you have a ribbon button whose command ID is `ID_MYCOMMAND` and you want to handle this command in your application's view class, you should add these functions to th...
[ 0.09976036846637726, -0.1114303469657898, 1.0379438400268555, -0.12498553097248077, 0.2834753692150116, 0.15690678358078003, -0.010218402370810509, -0.313687801361084, -0.5392378568649292, -0.7805856466293335, -0.3779055178165436, 0.5917574763298035, -0.17122656106948853, 0.128837108612060...
// add command handler code. } void CMyView::OnUpdateMyCommand(CCmdUI* pCmdUI) { BOOL enable = ...; // set flag to enable or disable the command. pCmdUI->Enable(enable); } ``` You should also add `ON_COMMAND` and `ON_UPDATE_COMMAND_UI` entries to the message map for the `CMyView` class: ``` // MyView.cpp BE...
[ 0.01878857985138893, 0.1953520029783249, 0.8077916502952576, -0.21488268673419952, 0.18016639351844788, 0.057616885751485825, 0.22475092113018036, -0.2641165852546692, -0.4075509309768677, -1.0538684129714966, -0.24794776737689972, 0.6374786496162415, -0.30736228823661804, 0.03507921844720...
I'm playing with a PHP weblog application using a shared hosting service, as a part of my PHP learning process. The service provider has a typical LAMP environment with remote ssh access. Vim has been my best friend in exploring the PHP code. However, I found it sometimes hard to trace stuff in the code in case of er...
[ 0.5501582026481628, 0.28856274485588074, 0.03826330229640007, 0.05535092577338219, -0.11441246420145035, -0.40474873781204224, 0.1048809289932251, 0.5065942406654358, -0.30202215909957886, -0.33609530329704285, 0.3022497892379761, 0.31301090121269226, -0.019475474953651428, 0.1011880412697...
CGI programming. So PHP is a very refreshing experience with me :-) In case it matters, the application I'm playing with is [Lyceum](http://lyceum.ibiblio.org/), and I don't have much choice on the LAMP environment itself. EDIT: Free software tools preferred :-) I assume your hosting provider configured their PHP in...
[ 0.4780198037624359, 0.0020127298776060343, 0.7370513677597046, 0.06927644461393356, 0.11111083626747131, -0.47111669182777405, -0.2539631128311157, 0.37550491094589233, -0.3078005611896515, -0.5408130884170532, -0.10738962888717651, 0.6056807637214661, -0.40640193223953247, 0.0202169474214...
letting users access your web site. For advance debugging I'd recommend [Xdebug](http://xdebug.org/) installed on the server with [Eclipse PDT](http://www.eclipse.org/pdt/) or [NetBeans IDE with PHP support](http://www.netbeans.org/downloads/index.html) as your editor. They both are good clients for debugging, but I r...
[ 0.49881410598754883, 0.05933785066008568, 0.27780449390411377, 0.026571664959192276, -0.36052849888801575, -0.4978334903717041, 0.07317639142274857, 0.2977449595928192, -0.3233931362628937, -0.5993304252624512, -0.2060883790254593, 0.5911195278167725, -0.5959834456443787, 0.097153156995773...
I am trying to join a number of binary files that were split during download. The requirement stemmed from the project <http://asproxy.sourceforge.net/>. In this project author allows you to download files by providing a url. The problem comes through where my server does not have enough memory to keep a file that is...
[ 0.3732139766216278, -0.04881271719932556, 0.19546207785606384, -0.07141861319541931, -0.21189890801906586, 0.1051497831940651, 0.1610919088125229, -0.025276552885770798, -0.39355477690696716, -0.5115593671798706, 0.05920020118355751, 0.23953084647655487, -0.3650000989437103, 0.326745808124...
and hopefully get the second 10 megs. Now i have got all this working , except when the user needs to join the files they downloaded i end up with corrupt files , as far as i can tell something is either being added or removed via the download. I am currently join the files together by reading all the files then writi...
[ 0.6962817311286926, 0.059495002031326294, 0.42079854011535645, 0.08710038661956787, -0.007644721306860447, -0.12476572394371033, 0.2120712548494339, 0.04570446535944939, -0.4785037934780121, -0.7224056720733643, 0.23051448166370392, 0.5802465081214905, -0.07532179355621338, 0.1605349332094...
as i am home i will post the exact code if anyone is willing to help out. Please let me know if i am missing out anything or if there is a better way to do this , i.e what could i use as an alternative to a memory stream. The source code for the original project which i made changes to can be found here <http://asprox...
[ 0.3526679277420044, -0.0962432250380516, 0.3691500127315521, -0.14195893704891205, -0.014368128962814808, 0.1519019901752472, 0.32639870047569275, -0.06804286688566208, -0.3243025243282318, -1.0751160383224487, -0.09407797455787659, 0.108565554022789, -0.06476560235023499, 0.26833829283714...
continue execution. Let me know if there is anything i missed. Thanks In the end i have found that by using a FTP request i was able to get arround the memory issue and the file is saved correctly. Thanks for all the help
[ 0.48528945446014404, 0.18277698755264282, 0.02808113396167755, 0.27452942728996277, -0.03219158202409744, -0.015859367325901985, 0.7684341669082642, 0.4602961838245392, -0.31052833795547485, -0.6143035292625427, 0.03886587917804718, 0.5700957179069519, 0.02828529290854931, 0.01585094258189...
I have been doing some OO Perl programming and I was wondering: which is the best way to perform unit tests? So far I have been using the [Test::Simple](https://metacpan.org/pod/Test::Simple) module to perform tests, but it feels insufficient for what I want. Can you point me to some nice modules for that? I'd add ...
[ 0.8006969690322876, -0.06562427431344986, 0.0607711598277092, 0.08486335724592209, -0.20840473473072052, -0.17264008522033691, -0.06607307493686676, -0.43128901720046997, -0.05526422709226608, -0.4359718859195709, 0.0852571576833725, 0.5929107666015625, 0.13542884588241577, -0.049697872251...
and distribute testing. If you want to just "jump right in", I think [`Test::Class`](https://metacpan.org/pod/Test::Class) provides xTest facilities with a [TAP](http://testanything.org/) backend. I haven't used it at all (I'm a [`Test::More`](https://metacpan.org/pod/Test::More) person myself), but it's [very highly ...
[ 0.8682194948196411, -0.0899648517370224, 0.178401917219162, 0.15216787159442902, 0.0014155741082504392, -0.42872145771980286, -0.1317080706357956, 0.09371274709701538, -0.3500669300556183, -0.29694128036499023, 0.3194787800312042, 0.25903889536857605, 0.08909443765878677, 0.146933495998382...
* a ticketing site offers a discount on "family" tickets. * a family ticket is 2 adults, 2 children. * the sell tickets page allows a user to enter any number of adult and child tickets. **How do I work out how to apply the family ticket discount, then charge all remaining tickets at their relevant cost (i.e. adult ti...
[ 0.4310534596443176, -0.08336912095546722, 0.6483792662620544, 0.3876546025276184, 0.21398939192295074, 0.34095150232315063, 0.19767974317073822, -0.2009436935186386, -0.25870227813720703, -0.8177942633628845, -0.16308587789535522, 0.013681321404874325, 0.10946715623140335, 0.11184701323509...
matching pairs for child / adult if ( $numAdultPairs > $numChildPairs ) { $numberOfFamilyTickets = $numAdultPairs - $numChildPairs; } else if ( $numAdultPairs < $numChildPairs ){ $numberOfFamilyTickets = $numChildPairs - $numAdultPairs; } else if ( $numAdultPairs == $numChildPairs ) { $numberOfFamilyTickets...
[ -0.11689269542694092, -0.16216814517974854, 0.38877108693122864, 0.24388889968395233, 0.2528338134288788, 0.7121419906616211, 0.32912278175354004, -0.5040587782859802, 0.06830571591854095, -0.6042478680610657, -0.41508880257606506, 0.40250280499458313, -0.3175240755081177, 0.13414378464221...
correct result would be two family tickets and two adult tickets, though. You want the lowest number of pairs to determine the amount of family tickets. Try something like this: ``` $numberOfFamilyTickets = min($numAdultPairs, $numChildPairs); $remainingAdult = $oForm->adult - 2 * $numberOfFamilyTickets; $remainingCh...
[ -0.14056731760501862, -0.23285309970378876, 0.2767763137817383, 0.3461434841156006, 0.2922987639904022, 0.48865634202957153, 0.16021689772605896, -0.22448775172233582, -0.04791618883609772, -0.6754650473594666, -0.21858686208724976, 0.4421212077140808, -0.014300261624157429, 0.105642244219...
Folks, What is the best way to go about researching and presenting for a technical whitepaper? I dont mean the format, overview, sections and such stuff. I've never written one - and I wonder if a white paper needs to be very very generic (conceptual) or specific (for instance favouring a particular tool/methodolog...
[ 0.6651095747947693, 0.4733904004096985, -0.07558071613311768, 0.24779126048088074, -0.27586260437965393, -0.3483421802520752, 0.021904321387410164, 0.1358661949634552, -0.0903049036860466, -0.4044478237628937, 0.12623178958892822, 0.6088987588882446, 0.30648985505104065, -0.219142228364944...
subject? Yes, try to read other technical white papers. But don't just read any white paper. Read the better ones. You can *usually* determined which is the "better" one by checking how many times the paper has been cited (One web site I go to for this is [cite seer](http://citeseer.ist.psu.edu) and google scholar). So...
[ 0.9141370058059692, 0.2649928331375122, -0.22908124327659607, 0.2030995637178421, -0.33504560589790344, -0.543152928352356, 0.6168032288551331, -0.06498542428016663, -0.06033557280898094, -0.34122732281684875, -0.04227370396256447, 0.7471923828125, 0.04539927467703819, -0.08323915302753448...
to be very specific. State exactly how your method works, state exactly how you conduct the experiments (so that others can replicate your experiments), state exactly your findings (lots of graphs would be nice), and finally, conclude it in 40-60 words or so. 5. Emphasis on stuff that are new (Stuff that you are propos...
[ 0.7883403301239014, 0.33951535820961, -0.23304098844528198, 0.34056052565574646, 0.04245317727327347, -0.37867677211761475, 0.35506945848464966, -0.15588818490505219, 0.31173041462898254, -0.47992435097694397, -0.03863219544291496, 0.28406617045402527, 0.09736032038927078, -0.0653067529201...
towards academic paper. But I think it should apply in your case.
[ 0.2217870056629181, 0.06612288951873779, 0.09578154981136322, -0.022593170404434204, 0.08776881545782089, -0.12282735109329224, 0.09141366183757782, 0.3077492415904999, -0.027073102071881294, -0.34510537981987, 0.1970994919538498, 0.5478332042694092, 0.5374627709388733, -0.0805323198437690...
I have an application with 2 directories (books and export). If we create a book or a page of a book in the application a directory is added with the id of the page (this is for uploading resources). If we delete a page, the page (and it's directory) is removed from the database and the filesystem. However this ...
[ 0.6784206032752991, -0.05457371845841408, 0.27708229422569275, -0.09080329537391663, 0.03199320286512375, -0.13853195309638977, 0.2425207495689392, -0.017060717567801476, -0.31634482741355896, -0.37417709827423096, -0.05186237767338753, 0.11644937098026276, -0.31586194038391113, 0.31513574...
that will clean up the directories at night. But there has got to be another solution for this no? Oh and putting the directory outside the virtual directory is not an option. > Oh and putting the directory outside > the virtual directory is not an > option. Putting the directory outside the virtual directory ...
[ 0.22204799950122833, -0.02334946021437645, 0.5453383922576904, 0.15215831995010376, 0.24493946135044098, -0.2546252906322479, 0.514394998550415, -0.012465308420360088, -0.41129612922668457, -0.8111665844917297, -0.1690714955329895, 0.32306650280952454, -0.30657389760017395, 0.4383171498775...
directory (where we create/delete files and folders) is located at C:\projectX\data * then we create a link which makes the data folder available as C:\projectX\website\data The link is created using the program Linkd.exe (available in the windows resource kit), with the following command: ``` linkd c:\projectX\websi...
[ 0.2224903404712677, 0.13796624541282654, 0.8723722100257874, 0.20395460724830627, 0.2938908040523529, -0.16910682618618011, -0.09331484138965607, 0.1683393269777298, -0.2978953421115875, -0.9123351573944092, -0.29065582156181335, 0.36010947823524475, -0.31189557909965515, 0.518643021583557...
Does anyone have experience with the prefuse graph toolkit? Is it possible to change an already displayed graph, ie. add/remove nodes and/or edges, and have the display correctly adapt? For instance, prefuse comes with an example that visualizes a network of friends: > <http://prefuse.org/doc/manual/introduction/exa...
[ -0.14416472613811493, -0.287636935710907, 0.5686526298522949, -0.2842547595500946, 0.047685038298368454, 0.13608337938785553, 0.3612934350967407, -0.1845787763595581, -0.27150771021842957, -0.8263723254203796, 0.066818006336689, 0.8730477690696716, -0.3280155658721924, -0.2917593717575073,...
// Node newNode = graph.addNode(); // insert new edge // graph.addEdge(oldNode, newNode); // remember node for next call // oldNode = newNode; } }).start(); ``` But it doesn't seem to work. Any hints? As pointed out in my other post, the reason new nodes and edges are not...
[ -0.12224186956882477, -0.1933324933052063, 0.46483922004699707, -0.23132137954235077, 0.278316468000412, -0.15036897361278534, 0.5554634928703308, 0.05433996766805649, -0.4192996025085449, -1.0026748180389404, -0.1818927675485611, 0.31027692556381226, -0.42470744252204895, 0.17140929400920...
way to fix this is to explicitly call vis.run("color"); whenever a node or edge was added. Alternatively, we can ensure that the color action is always running, by initializing the ActionList to which we add it (called "color" in the original example) slightly differently: instead of ``` ActionList color = new Actio...
[ 0.1259659379720688, -0.8101844191551208, 0.5941954851150513, -0.17559075355529785, 0.19127695262432098, -0.026888590306043625, 0.6098156571388245, -0.17409297823905945, -0.3972664773464203, -0.8245684504508972, -0.1665784865617752, 0.6573668718338013, -0.35741257667541504, -0.1513861119747...
sense, but for colors it seems to me that a constantly running coloring action is mostly overhead. So, perhaps the previously posted solution of just running the "color" action explicitly (but only once) whenever the graph gets extended, might be the better choice...
[ 0.3265843093395233, -0.22589699923992157, 0.1517588049173355, 0.09625782072544098, -0.0659269392490387, -0.19763663411140442, 0.2759350538253784, -0.07766865938901901, -0.312382310628891, -0.7578556537628174, -0.0029859249480068684, 0.25124871730804443, -0.5065281391143799, -0.228209719061...
I am working on a web API for the insurance industry and trying to work out a suitable data structure for the quoting of insurance. The database already contains a "ratings" table which is basically: ``` sysID (PK, INT IDENTITY) goods_type (VARCHAR(16)) suminsured_min (DECIMAL(9,2)) suminsured_max (DECIMAL(9,2)) perc...
[ 0.6671609282493591, 0.24194568395614624, 0.8616026639938354, -0.08086356520652771, -0.2393072247505188, 0.4259040355682373, -0.0972147285938263, -0.17683473229408264, -0.002747178543359041, -0.577226996421814, 0.08638845384120941, 0.8483532667160034, 0.14842426776885986, 0.2651838660240173...
Key premium (DECIMAL(9,2)) ``` Denormalising this data should be easy to maintain as the rates are generally only updated once per month at most. All requests for values >$100 will always be looked up in the primary tables and calculated. My question(s) are: 1. Am I better off storing the suminsured values as DEC...
[ 0.2888376712799072, -0.03299592435359955, 0.6769499778747559, 0.04666437208652496, 0.06454542279243469, 0.07499469071626663, 0.010444307699799538, -0.28001779317855835, -0.05229754373431206, -0.3990047574043274, 0.04691731929779053, 0.8833521604537964, 0.0334235280752182, 0.219224989414215...
stick with the main tables and do the calculation? Don't create new tables. You already have an index on goods, min and max values, so this sql for (known goods and its value): ``` SELECT percent_premium FROM ratings WHERE goods='PRECIOUST' and :PREC_VALUE BETWEEN suminsured_min AND suminsured_max ``` will use yo...
[ 0.4395335912704468, -0.11514768749475479, 0.35732266306877136, 0.16298402845859528, 0.10673124343156815, 0.08738511055707932, -0.2906457781791687, 0.004206896293908358, -0.11978783458471298, -0.7793522477149963, 0.2710134983062744, 0.9441033601760864, 0.03519371896982193, 0.299424529075622...
The problem I'm trying to solve is that I have a table like this: a and b refer to point on a different table. distance is the distance between the points. ``` | id | a_id | b_id | distance | delete | | 1 | 1 | 1 | 1 | 0 | | 2 | 1 | 2 | 0.2345 | 0 | | 3 | 1
[ -0.3694773316383362, 0.3884010910987854, 0.3278128206729889, -0.17777742445468903, -0.03701242431998253, 0.11733081191778183, -0.22069954872131348, -0.3678281903266907, -0.1963261514902115, -0.6218715906143188, 0.14893580973148346, -0.0972907617688179, -0.26201674342155457, 0.5096261501312...
| 3 | 100 | 0 | | 4 | 2 | 1 | 1343.2 | 0 | | 5 | 2 | 2 | 0.45 | 0 | | 6 | 2 | 3 | 110 | 0 | .... ``` The important column I'm
[ -0.5923044681549072, 0.27162349224090576, 0.597836971282959, -0.31416258215904236, 0.1835974007844925, 0.23948708176612854, 0.1927133947610855, -0.15215839445590973, -0.1341584324836731, -0.21098171174526215, -0.17008063197135925, 0.18650095164775848, -0.38979673385620117, 0.07828041911125...
looking is a\_id. If I wanted to keep the closet b for each a, I could do something like this: ``` update mytable set delete = 1 from (select a_id, min(distance) as dist from table group by a_id) as x where a_gid = a_gid and distance > dist; delete from mytable where delete = 1; ``` Which would give me a result tabl...
[ -0.3393191695213318, 0.03597898781299591, 0.45088738203048706, -0.348063588142395, 0.07257839292287827, 0.30418333411216736, 0.18128253519535065, -0.08866504579782486, -0.12652243673801422, -0.6996065974235535, -0.1306256502866745, 0.47574669122695923, -0.41617459058761597, 0.1102523133158...
| 2 | 2 | 0.45 | 0 | .... ``` i.e. I need one row for each value of a\_id, and that row should have the lowest value of distance for each a\_id. However I want to keep the 10 closest points for each a\_gid. I could do this with a plpgsql function but I'm curious if there is a more SQL-y way. min() an...
[ -0.1969803124666214, 0.0793422982096672, 0.26813021302223206, -0.17099928855895996, 0.006251944229006767, 0.25991716980934143, 0.13495834171772003, -0.29824158549308777, 0.07231023162603378, -0.7354930639266968, 0.07453702390193939, 0.5655781626701355, -0.21173256635665894, 0.0702228918671...
do this in similar manner to the above. I'm using PostgeSQL. Try this: ``` SELECT * FROM ( SELECT a_id, ( SELECT b_id FROM mytable mib WHERE mib.a_id = ma.a_id ORDER BY dist DESC LIMIT 1 OFFSET s ) AS b_id
[ 0.0777142196893692, 0.0824279859662056, 0.15102088451385498, -0.3456723392009735, 0.18792511522769928, -0.018950920552015305, 0.14935094118118286, -0.013249517418444157, -0.1050606295466423, -0.6996126174926758, -0.14228399097919464, 0.37835952639579773, -0.14393748342990875, 0.22368961572...
FROM ( SELECT DISTINCT a_id FROM mytable mia ) ma, generate_series (1, 10) s ) ab WHERE b_id IS NOT NULL ``` Checked on PostgreSQL 8.3
[ -0.10754907131195068, 0.013033061288297176, 0.13510385155677795, -0.1641445904970169, 0.2507840096950531, 0.20892611145973206, 0.2936636209487915, -0.12563543021678925, -0.008123488165438175, -0.460540771484375, -0.48356959223747253, 0.17077656090259552, -0.20492364466190338, 0.32824018597...
I have a table which contains data recorded every minute, so I have a row for each minute. When returning the data for processing, this accuracy is required for the last 6 hours but after that, a lower level of accuracy is sufficient, e.g. every 5 minutes. I can return all the data into an array and then remove all bu...
[ 0.13828596472740173, 0.03470078855752945, 0.5732290148735046, 0.000384106911951676, -0.1780228465795517, 0.09260103106498718, 0.3233068883419037, -0.3375614881515503, -0.1490941196680069, -0.5814172029495239, 0.09447359293699265, 0.22306101024150848, 0.16489815711975098, 0.1296946555376052...
suggests using primaryKey % 5 = 0 where primaryKey is auto\_increment but this a) doesn't use indexes b) will only return primaryKey values which are divisible by 5 and in the case of deletions, may not actually be every 5th row Can this be done just within the SQL query or will it require looping row by row through ...
[ 0.16756469011306763, -0.05141825973987579, 0.3991550803184509, -0.1683555394411087, -0.1694701761007309, 0.28321224451065063, 0.28341051936149597, -0.39544564485549927, -0.15059848129749298, -0.5685715079307556, 0.1325085461139679, 0.2553141415119171, -0.01609623059630394, 0.45991283655166...
sub-select to get the requested log entries by joining `logtimestamps` to `first_of_five_minutes` on the . Of course, additional `WHERE`-clauses have to be replicated inside and outside so you get the "right" timestamps. Also, note that this returns the first timestamp in every five-minute interval, wheras solutions d...
[ 0.03430791199207306, -0.2103448063135147, 0.3631865084171295, 0.14858734607696533, 0.1781659871339798, 0.10755951702594757, 0.48829102516174316, -0.30253034830093384, -0.30095037817955017, -0.5608180165290833, -0.3564245402812958, 0.2973581850528717, 0.12569722533226013, 0.2994121015071869...
What are the datastructure used in DBMS like Oracle,MySQL & Sqlite for storing and retrieving records. **MySQL** has pluggable storage systems. That means that engine can use different storages. It currently has 5-6 of them that you can use. And since it's open source, you can see how it is done. **SQLite** uses it'...
[ 0.19216330349445343, 0.28228041529655457, 0.06299378722906113, 0.3471979796886444, -0.0855705589056015, -0.005682387854903936, -0.1727972775697708, 0.052988581359386444, -0.23852919042110443, -0.5651241540908813, 0.1593732386827469, 0.3486083447933197, -0.34289899468421936, 0.2026901990175...
secret.
[ 0.0762505903840065, 0.0038502200040966272, 0.06735026091337204, 0.5377292037010193, 0.08257874846458435, -0.5762996077537537, 0.13360857963562012, 0.1155654788017273, 0.020643969997763634, -0.28534582257270813, -0.43284112215042114, 0.37907034158706665, 0.00200249208137393, 0.2276952564716...
Over the time i developed my own framework and it's working great - it's light, it's fast and is proven that can handle decent load. Now I'm working on project that can be described as a online shop where every user will have his sub domain where his items will be available for sale. My framework works by splitting r...
[ 0.3993328809738159, -0.28875240683555603, 0.39062750339508057, 0.26650506258010864, -0.24535244703292847, 0.14759984612464905, 0.19742703437805176, -0.1319178342819214, -0.306720107793808, -0.6925709843635559, -0.12933669984340668, 0.22990457713603973, -0.06406421214342117, 0.5416502356529...
object look like: ``` DPLS_Request Object ( [_request] => Array ( [0] => [1] => [action] => defaultAction [controller] => home ) [_params] => Array (
[ -0.2973600924015045, -0.37727120518684387, 0.7162177562713623, -0.05428609997034073, 0.06296597421169281, 0.12802653014659882, 0.14521434903144836, -0.4342341125011444, -0.2212122231721878, -0.6139070987701416, -0.1237698495388031, 0.3154798448085785, -0.4354727566242218, 0.243870154023170...
) [_rurl:private] => kodi.shop.local [_segment] => kodi [get_params] => Array ( ) ) ``` so \_segment is the subdomain, and later i can use it in code to validate it vs username and other stuff but i'm having conceptual problems even before that. my problem is that my framework expect som...
[ -0.006289592478424311, -0.10232580453157425, 0.5742930173873901, -0.01847807504236698, -0.09179643541574478, -0.056346431374549866, 0.26382383704185486, -0.15051260590553284, -0.2513516843318939, -0.5684768557548523, -0.3739093840122223, 0.18661919236183167, -0.39902764558792114, 0.6284514...
what to do next ... how to incorporate subdomains in whole mvc controllers/actions story? one quick and dirty sollution is to modify part of my request class: ``` if($this->_request['controller']==''){ $this->_request['controller'] = DEFAULT_CONTROLLER; } if($this->_request['action']==''){ $this->_request['...
[ 0.11096738278865814, -0.5361186265945435, 0.5492000579833984, 0.07411560416221619, 0.2086883783340454, -0.13676214218139648, 0.11156456172466278, -0.511038601398468, -0.2519603371620178, -0.5801447033882141, -0.15699820220470428, 0.639799952507019, -0.24587418138980865, 0.24242645502090454...
any "best practice" when dealing with subdomains and controllers and actions? It sounds like, to me, the approach you are describing is the logical next step to implement the features you are adding. The new features will bring some added complexity but your Request object/Router should do a good job of encapsulating t...
[ 0.21753810346126556, -0.24560458958148956, 0.07494571059942245, 0.24633736908435822, 0.17498236894607544, -0.2560308277606964, 0.09262784570455551, -0.1055164709687233, -0.23173917829990387, -0.5391079187393188, 0.02058308757841587, 0.7471106052398682, -0.19901522994041443, -0.192587867379...
In several C++ examples I see a use of the type `size_t` where I would have used a simple `int`. What's the difference, and why `size_t` should be better? From [the friendly Wikipedia](http://en.wikipedia.org/wiki/Size_t#Member_data_types): > The stdlib.h and stddef.h header files define a datatype called **size\_t** ...
[ 0.0710519552230835, -0.08436782658100128, 0.1285056471824646, -0.12151367217302322, -0.16835768520832062, -0.03612962365150452, -0.11228887736797333, -0.2653360962867737, -0.3862658739089966, -0.5838103890419006, -0.14360018074512482, 0.25876060128211975, -0.44545432925224304, 0.1232585683...
particularly as 64-bit architectures become more prevalent. Also, check [Why size\_t matters](http://www.embedded.com/electronics-blogs/programming-pointers/4026076/Why-size-t-matters)
[ 0.3700883984565735, 0.08144700527191162, 0.08932948112487793, -0.2636905014514923, -0.14666593074798584, 0.03733021393418312, -0.05304749310016632, 0.0260672215372324, -0.1765800565481186, -0.2667367458343506, -0.3998926281929016, 0.7717813849449158, -0.003918006084859371, 0.13937591016292...
Instead of the overhead with [saving binary as Base64](https://stackoverflow.com/questions/502814/storing-base64-data-in-xml), I was wondering if you could directly store double-byte binary streams into XML files, using CDATA, or commenting it out, or something? You can store it as CDATA, but there's the risk that some...
[ 0.3289225697517395, -0.017452973872423172, -0.024466805160045624, -0.18071560561656952, -0.17040479183197021, -0.07136838883161545, 0.04831215366721153, -0.04519754648208618, -0.2820444405078888, -0.261991024017334, -0.12483000755310059, 0.45050933957099915, -0.24767088890075684, 0.1000597...
The company has recently implemented software not written by us. The software uses Crystal Reports and whenever somebody draws a particularly large report and close their browser before the report is finished loading, we cannot draw anymore reports. The only way to fix it is to reset iis which is obviously exceptionall...
[ 0.4536588191986084, 0.3005326986312866, 0.23090381920337677, 0.12422508001327515, 0.06586188077926636, -0.3942716419696808, 0.27916961908340454, 0.08509208261966705, -0.504533588886261, -0.340337336063385, 0.21999052166938782, 0.36320433020591736, -0.28617140650749207, 0.25131452083587646,...
bit like the app's implementation of Crystal is holding an exclusive lock on the original template, and so when the user quits prematurely the app doesn't release the template for other users to use.
[ 0.6530537605285645, -0.3599892258644104, 0.46032992005348206, 0.19219711422920227, 0.2327386885881424, -0.08777058124542236, 0.6216574907302856, -0.120792455971241, -0.00012565603537950665, 0.005951765459030867, -0.17867282032966614, 0.2148047536611557, -0.3926428258419037, 0.5154652595520...
> **Possible Duplicate:** > > [Cast int to enum in C#](https://stackoverflow.com/questions/29482/cast-int-to-enum-in-c-sharp) If I have the following code: ``` enum foo : int { option1 = 1, option2, ... } private foo convertIntToFoo(int value) { // Convert int to respective Foo value or throw exce...
[ 0.21660014986991882, 0.05864279344677925, 0.19031278789043427, -0.17445002496242523, 0.20662148296833038, 0.267011433839798, 0.24391299486160278, -0.32418808341026306, -0.153956800699234, -0.5425006747245789, 0.15796595811843872, 0.7233999371528625, -0.3575204014778137, 0.01054663304239511...
you really want to make sure your value is defined in the enum, you can use Enum.IsDefined: ``` int i = 1; if (Enum.IsDefined(typeof(Foo), i)) { Foo f = (Foo)i; } else { // Throw exception, etc. } ``` However, using IsDefined costs more than just casting. Which you use depends on your implemenation. You might...
[ 0.21358388662338257, -0.032412197440862656, 0.10724558681249619, -0.1546042114496231, 0.11145017296075821, -0.23667410016059875, 0.06333541125059128, -0.2940506935119629, -0.007920563220977783, -0.5798514485359192, -0.025156747549772263, 0.624815046787262, -0.30167093873023987, -0.00690926...
I have a Django app that requires a `settings` attribute in the form of: ``` RELATED_MODELS = ('appname1.modelname1.attribute1', 'appname1.modelname2.attribute2', 'appname2.modelname3.attribute3', ...) ``` Then hooks their post\_save signal to update some other fixed model depend...
[ 0.4031031131744385, 0.5934670567512512, 0.32231462001800537, -0.2447061687707901, -0.10683249682188034, -0.09472482651472092, 0.17249631881713867, -0.20307394862174988, 0.014714648015797138, -0.400076299905777, 0.07162272930145264, 0.5095937252044678, -0.5677865147590637, -0.23575603961944...
to be installed). How can I create and attach/register/activate mock models just for the test database? (or is it possible at all?) Solutions that allow me to use test fixtures would be great. You can put your tests in a `tests/` subdirectory of the app (rather than a `tests.py` file), and include a `tests/models.py` ...
[ 0.7447799444198608, 0.21556775271892548, 0.42057257890701294, 0.2878258526325226, 0.22796830534934998, -0.015026947483420372, 0.32135841250419617, -0.4450540244579315, -0.10395785421133041, -0.6954126954078674, -0.09344702214002609, 0.6463670134544373, -0.21835707128047943, -0.318939208984...
project, and Django 1.6+ doesn't by default.) (**NOTE**: The alternative dynamic method described below only works in Django 1.1+ if your test case subclasses `TransactionTestCase` - which slows down your tests significantly - and no longer works at all in Django 1.7+. It's left here only for historical interest; don'...
[ 0.3551645278930664, 0.05366174504160881, 0.23358209431171417, -0.12970972061157227, -0.11314468085765839, -0.276645690202713, 0.41779714822769165, -0.20994128286838531, -0.060576967895030975, -0.555402398109436, -0.16581642627716064, 0.544548511505127, -0.46687212586402893, -0.069072104990...
clean up by restoring the old version of INSTALLED\_APPS and clearing the app cache again. [This class](http://www.djangosnippets.org/snippets/1011/) encapsulates the pattern so it doesn't clutter up your test code quite as much.
[ 0.33673274517059326, 0.16893842816352844, -0.014085792936384678, -0.017511282116174698, 0.28159934282302856, -0.2884632647037506, 0.5140956044197083, 0.05309974029660225, -0.4159125089645386, -0.7350725531578064, -0.334718257188797, 0.3737959861755371, -0.3491136133670807, -0.1704715937376...
I'm developing a web application (ASP.NET 3.5) that will consume a number of web services. I have created a separate dll-project for each web service: these projects contains the service reference and client code. However, the calling website MUST have the `<system.serviceModel>` information (the `<bindings>` and `<c...
[ 0.5043443441390991, 0.14853963255882263, 0.4467003345489502, -0.22513370215892792, -0.30490246415138245, -0.2679954469203949, 0.27501943707466125, -0.1679975986480713, -0.16031329333782196, -0.950604259967804, -0.08261009305715561, 0.35175028443336487, -0.2016943097114563, 0.19763781130313...
I'm allergic to WCF's xml files and have managed to avoid them thus far. I don't recomend this generally but I put the configuration details in my apps existing configuration store and then apply them programatically. E.g. With a Web service proxy I use the constructor for the Client that takes 'bindings'and 'endpoint'...
[ 0.5366871356964111, 0.34995460510253906, 0.5245592594146729, -0.4100585877895355, -0.1314520537853241, -0.12928953766822815, 0.22488655149936676, -0.29119059443473816, -0.19803749024868011, -0.6912984251976013, 0.17991353571414948, 0.4324225187301636, -0.4465770423412323, 0.157832562923431...
How can I set the horizontal size of a specific column on a GtkTreeView? I have 4 columns on my TreeView and the last one expands on the rest of the free space. How can I set the first or second column to be expanded on the free space to set a fixed width on all columns? You can use `gtk_tree_view_get_column` to get th...
[ 0.17646363377571106, 0.06659456342458725, 0.708890974521637, 0.023266546428203583, -0.26823219656944275, 0.2756013572216034, 0.19092290103435516, -0.35926276445388794, -0.39921605587005615, -0.8245001435279846, -0.12939102947711945, 0.46149030327796936, -0.23799964785575867, -0.23319345712...
equally amongst all columns that have the expand set to TRUE. If no column has this option set, then the last column gets all extra space. By default, every column is created with this FALSE.
[ 0.050744712352752686, 0.15991848707199097, 0.29145050048828125, -0.2700558006763458, 0.2278832644224167, 0.23013335466384888, 0.5344568490982056, -0.35069483518600464, -0.09984338283538818, -0.5125417709350586, -0.19470979273319244, 0.3922610580921173, -0.3235991597175598, -0.0653600990772...
My website is an asp.net-mvc(beta1) website, fully validates and works in all browsers (except obviously in IE6 for this matter). I can reproduce the error by doing the following: 1. Make a POST request with some parameters 2. From the results click one of the generated GET links 3. Pressing the "BACK" button from th...
[ 0.437019020318985, 0.18266795575618744, 0.5324151515960693, -0.07295804470777512, -0.06418476998806, -0.4632963240146637, 0.9449818134307861, 0.2973393499851227, 0.06037476658821106, -0.9483528733253479, -0.1289052665233612, 0.2982911765575409, -0.09079987555742264, 0.3942176401615143, 0...
the triggering factor.. I'm guessing IE is not caching anything there so it will re-post the url. Nothing seems to be hitting my controller though. What is happening? How can I start to debug this or even better: fix this? Implement [POST+REDIRECT+GET](http://en.wikipedia.org/wiki/Post/Redirect/Get)?
[ 0.31211334466934204, -0.0392979234457016, 0.555391788482666, 0.15177525579929352, -0.25569257140159607, -0.38644522428512573, 0.5575736165046692, 0.0958591029047966, -0.2396954447031021, -0.5829441547393799, -0.20198403298854828, 0.3393140733242035, -0.30261507630348206, 0.2913123071193695...
I have HTML output similar to this: ``` <select> <option value="1">Item1 </option> </select> ``` **How do I use JavaScript to get the value "Item1 " (with the space) rather than "Item1"?** In Internet Explorer all the properties I've tried, e.g. *text*, *innerHTML*, *data*, *nodeValue* return "Item1" instead of "It...
[ -0.08919227123260498, -0.17800304293632507, 0.3369077444076538, -0.09336360543966293, -0.3988965153694153, 0.016234830021858215, 0.16431128978729248, -0.06778858602046967, -0.26207074522972107, -1.0106735229492188, -0.02545086480677128, 0.35349932312965393, -0.19043990969657898, -0.0663005...
have to use a non-breaking-space character (eg. &#160; character reference).
[ 0.17228581011295319, 0.4789498746395111, 0.1115528866648674, 0.17805169522762299, 0.33173617720603943, -0.3896401524543762, 0.34706220030784607, -0.014819781295955181, -0.09405559301376343, -0.34661680459976196, -0.9690887928009033, 0.12002506107091904, -0.10966441035270691, 0.003653302090...
For some reason images are not visible in my Javadoc view of Eclipse. [no images visible http://shlinkr.com/images/CropperCapture-12.Png](http://shlinkr.com/images/CropperCapture-12.Png) But the *same* Javadocs work perfectly fine in a browser: [images visible http://shlinkr.com/images/CropperCapture-13.Png](http:/...
[ 0.14360669255256653, 0.09178337454795837, 0.15498821437358856, -0.02075841650366783, -0.44932207465171814, -0.20554861426353455, 0.17391081154346466, 0.20146876573562622, -0.3968394100666046, -0.7815472483634949, 0.2658793330192566, 0.6072876453399658, -0.2137729674577713, -0.0218251552432...
stream](http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg23081.html)... So... what eclipse are you using ? 3.4 ? 3.4.1 ? 3.5Mx ?
[ 0.5485729575157166, -0.3317372500896454, 0.19302919507026672, 0.33019691705703735, -0.08004721254110336, 0.004048003815114498, 0.01554787065833807, 0.04484538733959198, -0.05656811222434044, -0.36047783493995667, 0.3430604040622711, 0.707736611366272, -0.595130205154419, -0.339735031127929...
I have an application that runs on a terminal. The terminal is registered on a database table. During all session that application is running on a terminal, I need to ensure that the line of the table corresponding to the terminal is locked and nobody can update that. What is the best way to do this? I use C#.NET ...
[ 0.4311164617538452, 0.4648948013782501, 0.24418485164642334, 0.00975715834647417, 0.020343191921710968, -0.23741932213306427, 0.27089908719062805, 0.12474150210618973, -0.06842702627182007, -0.6592458486557007, -0.12942126393318176, 0.48900651931762695, -0.1963997632265091, 0.3250277638435...
will do everything needed. When working with long-lived locks: It is a bad idea to use rdbms-locks for that purpose - it simply doesn't scale. Timestamp or row-version columns are a good way of doing optimistic concurrency to prevent against accidental over-writing. To publish / enforce the fact that a row is being e...
[ 0.2509249448776245, 0.024739695712924004, 0.5747528672218323, 0.22798195481300354, 0.34552353620529175, -0.14168019592761993, 0.09460119903087616, -0.17169584333896637, -0.08731190860271454, -0.7555879950523376, -0.2038911134004593, 0.626309871673584, -0.3240354359149933, -0.14485754072666...
that aren't removed correctly (because of a dead terminal etc) there are 3 common options: * when the lock owner logs in again, allow them to break their own locks * allow an administrator to break the user's locks * store a lock-timeout column (datetime), and have a scheduled task automatically unlock rows that are o...
[ -0.2515542507171631, 0.05050192400813103, 0.573554515838623, -0.002446818398311734, 0.597827136516571, -0.1186697706580162, 0.34175345301628113, -0.2800846993923187, -0.4419645071029663, -0.45525863766670227, -0.3593263626098633, 0.4794729948043823, -0.24684064090251923, 0.1213579848408699...
I was using the following script to delete the browsing history in IE 7.0 ``` RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255 ``` But now I need a script to clear browsing history in IE 6.0 I get an error that "missing entry ClearMyTracksByProcess" I have passed different parameters like 2 ,5 etc and wasn't suc...
[ -0.0024701182264834642, 0.3059408664703369, 0.6044822931289673, 0.058529939502477646, 0.09504595398902893, -0.16737093031406403, 0.5609554052352905, -0.2994230389595032, -0.11232815682888031, -0.788451611995697, -0.1597691923379898, 0.5228857398033142, -0.20692291855812073, 0.3703183829784...
initialize MFC and print and error on failure if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0)) { // TODO: change error code to suit your needs _tprintf(_T("Fatal Error: MFC initialization failed\n")); nRetCode = 1; } else { // TODO: code your app...
[ -0.3550855815410614, -0.12248362600803375, 0.40917646884918213, -0.18473748862743378, 0.31273186206817627, 0.1254706233739853, 0.4476276636123657, -0.5726223587989807, -0.09904364496469498, -0.7874736785888672, -0.2364036589860916, 0.4408821165561676, -0.6665979027748108, 0.054052352905273...
clearing the history. HRESULT hr; DWORD cRef; CoInitialize(NULL); // Load the correct Class and request IUrlHistoryStg2 hr = CoCreateInstance(CLSID_CUrlHistory, NULL, CLSCTX_INPROC_SERVER, IID_IUrlHistoryStg2, reinterpret_cast<void **>(&pHistory)); if (SUCCEEDED(...
[ -0.3058364689350128, -0.03342844173312187, 0.7241902947425842, -0.07929740101099014, 0.16030222177505493, -0.16821828484535217, 0.31949007511138916, -0.22955238819122314, 0.05846717953681946, -0.5363467335700989, -0.5809818506240845, 0.27098286151885986, -0.15738248825073242, 0.39037266373...
hr = pHistory->ClearHistory(); } // Release our reference to the cRef = pHistory->Release(); CoUninitialize(); } return nRetCode; } ```
[ -0.009830022230744362, 0.3217019736766815, 0.751049816608429, -0.21205730736255646, 0.40812885761260986, 0.09391571581363678, -0.021000200882554054, -0.3442448675632477, -0.061202529817819595, -0.5558031797409058, -0.3493495285511017, 0.492755651473999, -0.45407676696777344, 0.192292600870...
I've got a little class hierarchy where each class corresponds to a certain TComponent descendent (say base class TDefaultFrobber with descendents TActionFrobber and TMenuItemFrobber, corresponding to TComponent, TCustomAction and TMenuItem, respectively). Now I want a factory (?) function something like this: ``` fun...
[ 0.24185526371002197, -0.3714856803417206, 0.576166570186615, 0.05849633365869522, 0.26317834854125977, 0.43339407444000244, 0.2574878931045532, -0.2461055964231491, -0.26497119665145874, -0.5028578042984009, 0.07621076703071594, 0.6770359873771667, -0.24632413685321808, 0.18402987718582153...
Classes; type IComponentFrobber = interface end; TComponentFrobberClass = class of TComponentFrobber; TComponentFrobber = class(TInterfacedObject, IComponentFrobber) strict private FComponent: TComponent; protected constructor Create(AComponent: TComponent); property Component: TComponent rea...
[ -0.3929026424884796, -0.15453216433525085, 0.3493460416793823, 0.012376845814287663, 0.014546973630785942, 0.333156555891037, 0.3967549800872803, -0.37838172912597656, -0.2811358869075775, -0.3672208786010742, -0.268672913312912, 0.6741750836372375, -0.518943727016449, 0.13909229636192322,...
of TComponentFrobberRegistryItem; class function TComponentFrobber.FindFrobberClass(AComponentClass: TComponentClass): TComponentFrobberClass; var i: Integer; begin // Search backwards, so that more specialized frobbers are found first: for i := High(FComponentFrobberRegistry) downto Low(FComponentFrobberRegistr...
[ -0.6576880812644958, -0.31631746888160706, 0.7519877552986145, 0.10377928614616394, 0.10797317326068878, 0.3426900804042816, 0.3216782510280609, -0.6100239753723145, -0.2986413836479187, -0.392397940158844, -0.40088725090026855, 0.7067573070526123, -0.21276584267616272, 0.04341749101877212...
if AComponent is FComponentFrobberRegistry[i].ComponentClass then begin Result := FComponentFrobberRegistry[i].FrobberClass; Exit; end; Result := nil; end; class procedure TComponentFrobber.RegisterFrobber(AComponentClass: TComponentClass; AFrobberClass: TComponentFrobberClass); var i: Intege...
[ -0.6308072209358215, -0.38970667123794556, 0.520391583442688, 0.09572362899780273, 0.04009034112095833, 0.4310031831264496, 0.3516885042190552, -0.5376883149147034, -0.2992681562900543, -0.3563666045665741, -0.4703235626220703, 0.7175573110580444, -0.27022600173950195, 0.09999607503414154,...
mghie. 2 suggestions: Make class pair array of classes, then you can get the Index and use the pair of the class constructor, ``` var ArrayItem: array[0..1] of TComponentClass = (TActionFrobber, TMenuItemFrobber); ArrayOwner: array[0..1] of TComponentClass = (TCustomAction, TMenuItem); function CreateFrobber(ACom...
[ -0.1545240432024002, -0.30710041522979736, 0.5687896609306335, -0.18796402215957642, 0.0978514552116394, 0.23618260025978088, 0.34370994567871094, -0.6009174585342407, -0.0844980850815773, -0.39106830954551697, -0.06389749050140381, 0.8033742904663086, -0.37286487221717834, 0.1054877936840...
this: ``` function CreateFrobber(AComponent: TComponentClass): IFrobber; const FrobberClassSuffix = 'Frobber'; var LClass: TComponentClass; LComponent: TComponent; begin LClass:= Classes.FindClass(AComponent.ClassName + FrobberClassSuffix); if LClass <> nil then LComponent:= LClass.Create(AComponent) ...
[ -0.29439958930015564, -0.30891573429107666, 0.5532968640327454, -0.17964933812618256, 0.15673045814037323, 0.16462711989879608, 0.3432266116142273, -0.505424439907074, -0.2578105628490448, -0.5259754657745361, -0.38222262263298035, 0.7263649106025696, -0.35612812638282776, -0.0309981480240...
I'm a newbie to Adobe Flex 3.0. I need to show data within the Pie Chart Legend, alongside the colored markers. I have a few vague ideas about how to go about it. (Maybe I would have to write my custom legendMarkerRenderer.) Could anybody give any pointers? There aren't many examples on the net regarding this. Thanks ...
[ 0.4296298623085022, 0.16961884498596191, 0.2812701165676117, -0.013894759118556976, -0.33193066716194153, 0.020628653466701508, 0.3438115417957306, 0.3372458517551422, -0.5249583125114441, -0.6902574896812439, 0.16283676028251648, 0.34006157517433167, 0.4444766640663147, 0.1568579971790313...
I'm a ASP.NET and ABAP developer. For years, I used RFC's to communicate with ASP.NET using SAP .NET Connector. During the integrated tests, sometimes we need to debug a RFC that has been called from ASP.ENT, just because the bug we are facing does not happens at SE37. So, everytime I needed to debug the RFC, I just ...
[ 0.5634816884994507, 0.32891640067100525, -0.1142084002494812, -0.23970338702201843, -0.1611863076686859, -0.1664031744003296, 0.14752569794654846, 0.13614967465400696, -0.13067485392093658, -0.7546223998069763, 0.05900321155786514, 0.2078358680009842, -0.35838040709495544, 0.51948148012161...
order to debug, or implementing some debug control functionality. So, what do you do when you need to debug RFC's? Thanks in advance! I assume you are using a fairly recent version of sap (4.7+) Do the following: * Get the username that makes the RFC call into SAP in ASP * Fire up SE37, go to the code section of yo...
[ 0.6375289559364319, 0.16088880598545074, -0.10211125016212463, 0.21416901051998138, -0.21685506403446198, -0.34508195519447327, 0.479744553565979, -0.10562293976545334, -0.22214145958423615, -0.4766026735305786, -0.13219913840293884, 0.40746551752090454, -0.4290015697479248, -0.03288007155...
the call) * Session breakpoint active immediately is nice to click as well * Put your external breakpoint where you need it (click the icon with the stop sign and the little man) * Test your ASP connector * The breakpoint should come into effect, a debug window will pop up * You might not have the authorization to do t...
[ 0.17552056908607483, -0.2830235958099365, 0.37765252590179443, 0.158654123544693, 0.06474205106496811, -0.32317912578582764, 0.6286137700080872, -0.025669598951935768, -0.23403306305408478, -0.4607020318508148, -0.4338401257991791, 0.6333590149879456, -0.2470872551202774, -0.04396073892712...
We started a Web Project in Eclipse 3.2 a ways back and we've since upgraded to Eclipse 3.4 but now the Project has the error: "This project needs to migrate WTP metadata" We've tried right-clicking and doing the "quick-fix" which is in fact to Migrate WTP Metadata. Unfortunately nothing happens and the error remains...
[ 0.6800152063369751, 0.004761367570608854, 0.31626924872398376, 0.1760106235742569, -0.34606677293777466, -0.5103698372840881, 0.17121703922748566, -0.005034118425101042, -0.1685943305492401, -0.6833682060241699, 0.12308108806610107, 0.5730445384979248, -0.3498203456401825, 0.00320775923319...
on the answer that works for you rather than adding your own answer that references a previous person's answer. The above solution works fine but it creeps up again and again. An easier solution is to right click on the concerned project in Eclipse and choose Validate.
[ 0.4315909743309021, 0.049051277339458466, 0.3281824588775635, 0.39407050609588623, -0.12003324925899506, -0.05212987959384918, 0.09469030052423477, -0.1989290714263916, -0.03672998398542404, -0.3829682171344757, 0.003006148850545287, 0.5094925165176392, -0.10832580178976059, -0.07775603234...
I have the following code, for which I get the error: **Warning**: mysqli\_stmt::bind\_result() [mysqli-stmt.bind-result]: Number of bind variables doesn't match number of fields in prepared statement in file. If this is only a warning, shouldn't the code still work? I want to do a select \* and display all the data ...
[ 0.08943811058998108, 0.07279160618782043, 0.3314545154571533, -0.024027669802308083, -0.19628021121025085, -0.16008910536766052, 0.39949360489845276, -0.48251447081565857, -0.2820749878883362, -0.5343995094299316, 0.016564400866627693, 0.39997267723083496, -0.6007760763168335, 0.3049159348...
of binding, and is it necessary. ``` <?php if (isset($_GET["cmd"])) $cmd = $_GET["cmd"]; else die("You should have a 'cmd' parameter in your URL"); $id = $_GET["id"]; $con = mysqli_connect("localhost", "user", "password", "db"); if (!$con) { echo "Can't connect to MySQL Server. Errorcode: %s\n". mysqli_connect...
[ 0.10288751870393753, 0.08804771304130554, 0.5961855053901672, -0.14696890115737915, 0.15928591787815094, 0.0850236564874649, 0.41090402007102966, -0.7198185324668884, -0.0727667436003685, -0.27880164980888367, -0.39600318670272827, 0.28352537751197815, -0.4288462698459625, 0.37096032500267...
PIC_DIASHOW, PIC_COUNT, ITEM_SITE_ID FROM Sales WHERE Product_NO = ?")) FROM SaleS WHERE PRODUCT_NO = ?")) { $getHtml = $con->prepare("SELECT PRODUCT_DESC FROM SaleS WHERE PRODUCT_NO = ?"); $getHtml->bind_param("i", $id); $getHtml->execute(); $getHtml->bind_result($PRODUCT_DESC); ...
[ -0.02710591070353985, 0.13190335035324097, 0.7177874445915222, -0.06525017321109772, -0.021325943991541862, 0.5207200646400452, -0.03339628875255585, -0.6123557686805725, -0.1773129552602768, -0.3444105088710785, -0.5749273896217346, 0.4675169885158539, -0.18582271039485931, 0.274158120155...
$Sale_TYPE, $ACCESSINSERT_DATE, $ACCESSUPDATE_DATE, $CAT_DESC, $CAT_PATH, $COUNTRYCODE, $LOCATION, $CONDITIONS, $REVISED, $PAYPAL_ACCEPT, $PRE_TERMINATED, $SHIPPING_TO, $FEE_INSERTION, $FEE_FINAL, $FEE_LISTING, $PIC_XXL, $PIC_DIASHOW, $PIC_COUNT, $ITEM_SITE_ID); while ($getRecords->fetch()) { ...
[ 0.09640169143676758, 0.01728719100356102, 0.7422319054603577, -0.016843697056174278, 0.11682984977960587, -0.09519599378108978, 0.03418940305709839, -0.41945213079452515, -0.2672336995601654, -0.338153600692749, -0.25415050983428955, 0.5059831142425537, -0.39105287194252014, 0.552678346633...
such as a slash or quote. edit: The code now displays an error after replace \* with column names, however the while loop is never entered, and hence no actions are performed. I should note that the article you referenced is old, and that you should now use [Exception::Class](http://metacpan.org/pod/Exception::Class) ...
[ 0.2977772653102875, 0.35360845923423767, 0.37017208337783813, -0.06618642807006836, 0.0010169282322749496, -0.10072465986013412, 0.5227932333946228, 0.02591516450047493, -0.3456946313381195, -0.3247063159942627, -0.01481497660279274, 0.31178709864616394, -0.21570993959903717, 0.35801121592...
I have to ensure the security of a asp.net website at work. They asked me to do a role based security with the active directory of my work so I could do a sitemap and give the right access at the right person. Which class of the framework should I use? make generic identity? It's already built into AD authentication. ...
[ 0.3951268494129181, 0.09313074499368668, 0.5031964778900146, -0.08218100666999817, -0.09186743944883347, -0.09447478502988815, 0.3067357540130615, -0.283398300409317, -0.1889525204896927, -0.4983217120170593, 0.14836664497852325, 0.38587599992752075, -0.22515131533145905, 0.252840489149093...
use the *WindowsTokenRoleProvider*. This is a one way role manager (you can't add people to groups - you have to use the AD tools for that. The use the sitemap's [built in](http://msdn.microsoft.com/en-us/library/ms178428.aspx) support for trimming site maps according to role.
[ 0.02177620492875576, -0.22396743297576904, 0.18433919548988342, 0.21798017621040344, -0.08386477082967758, -0.24768908321857452, 0.30833470821380615, 0.15147815644741058, -0.22621621191501617, -0.7453169226646423, -0.09285624325275421, 0.4505857825279236, -0.09251857548952103, -0.188128411...
I must be dumb (and i m sure i am making mistake but cant figure out at the moment) Actually i deployed ASMX page containing reference to a Class Library which contains few web methods. It exposes those methods when i browse the site. But some how it is not showing me any further methods which i have added in it. The ...
[ 0.3821573257446289, 0.2368013560771942, 0.11924698948860168, 0.14846867322921753, -0.12085669487714767, -0.34061574935913086, 0.6761143207550049, 0.060477063059806824, -0.11096847802400589, -0.358767032623291, 0.2304975986480713, 0.22153730690479279, -0.13409487903118134, 0.009630756452679...
the files from bin and GAC and then re-added the files.After rebuilding , i deployed them again and it worked. You need to update the web reference that you added to your project. If the class library contains the web reference, update the reference in it and then re-add/update your project's reference to the class lib...
[ 0.515618622303009, -0.08912484347820282, 0.12612219154834747, 0.5187174081802368, -0.027042130008339882, -0.15802614390850067, 0.20724619925022125, -0.23078331351280212, -0.04513115435838699, -0.7223254442214966, 0.13339920341968536, 0.5919134020805359, -0.09744402766227722, 0.155801191926...