text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I can run the server on my local machine and connect to it on the same machine, but when I try to connect to it from a different computer over the internet, there is not sign of activity on my server, nor a response from the server on the computer I'm testing it on. I've tried both XP and Vista, turn off firewalls, ope...
[ 0.13827095925807953, 0.11945521831512451, 0.48410356044769287, -0.22922061383724213, 0.04763537645339966, 0.1534896343946457, 0.48220327496528625, 0.021407825872302055, 0.02659490890800953, -1.083297848701477, -0.11403872817754745, 0.4145047068595886, -0.33119067549705505, 0.37807229161262...
try { TcpListener listener = new TcpListener(new IPEndPoint(IPAddress.Any, port)); listener.Start(); Console.WriteLine("Server established\nListening on Port: {0}\n", port); while (true)
[ -0.27013760805130005, -0.26073339581489563, 0.7641156315803528, -0.23756125569343567, 0.28098374605178833, 0.2682848274707794, 0.5448907613754272, -0.2733011841773987, -0.13211177289485931, -0.8346452713012695, -0.28755855560302734, 0.3652634620666504, -0.4416792392730713, 0.07715717703104...
{ socket = listener.AcceptSocket(); socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, outime); socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true); socket.DontFragment = true;
[ 0.07445980608463287, -0.07124748080968857, 0.5330289006233215, -0.2689627707004547, 0.19726993143558502, 0.29225096106529236, 0.5259716510772705, -0.12318728864192963, 0.15259632468223572, -0.3504970967769623, -0.33908283710479736, 0.5850657224655151, -0.1704539954662323, 0.357813566923141...
NewConnection pxy = new NewConnection(socket); Thread client = new Thread(new ThreadStart(pxy.Start)); client.IsBackground = true; client.Start();
[ -0.005674957297742367, -0.33421871066093445, 0.5158297419548035, -0.26778796315193176, 0.21887251734733582, 0.18139156699180603, 0.20387962460517883, -0.08148595690727234, -0.4184023439884186, -0.6831936240196228, -0.34791919589042664, 0.2334205061197281, -0.3981773853302002, 0.57438856363...
} } ``` I think that the problem is in your router, not your computer. When packets come from the Internet, it should be routed to an specific server. You have to configure your router to redirect the traffic on port `3326` to your server.
[ -0.11839038133621216, 0.24700067937374115, 0.33961251378059387, -0.0424877405166626, 0.20659808814525604, -0.14028334617614746, 0.16363932192325592, 0.27286842465400696, -0.08451810479164124, -0.8807840347290039, -0.11347746104001999, 0.5363792181015015, -0.6047594547271729, 0.287094503641...
For a single-server LAMP site (which is usually under quite high load), what is best way to use memcache? Does it make sense to run the memcache daemon on the same server as the application, or is that just going to take valuable memory away from MySQL, giving a net performance loss. Does it even make sense to use me...
[ 0.46961042284965515, 0.1528121531009674, 0.2351338416337967, 0.28187990188598633, -0.06346100568771362, -0.31281039118766785, 0.3318045437335968, -0.07316567748785019, -0.31203871965408325, -0.34708818793296814, 0.16748157143592834, 0.361447811126709, -0.362011581659317, 0.1607859432697296...
this stage on the live site. Especially as someone out there certainly knows the answer off the top of their head. Usually, the recommendation (see *What about shared memory?* in the [memcached page](http://www.danga.com/memcached/)) is to run memcached on the same machines as web servers, on the premise that web appli...
[ 0.20461709797382355, 0.4096781611442566, 0.13751132786273956, 0.04084060341119766, 0.18848717212677002, -0.23246386647224426, 0.15049047768115997, 0.05365428701043129, -0.3926733136177063, -0.5507326722145081, -0.37658920884132385, 0.7338544130325317, 0.21294115483760834, -0.11927478015422...
When are **custom Exception classes** most-valuable? Are there cases when they should or should not be used? What are the benefits? **Related questions:** 1. **[Performace Considerations for throwing Exceptions](https://stackoverflow.com/questions/6891/performance-considerations-for-throwing-exceptions)** 2. **[Do...
[ 0.28020596504211426, -0.19807744026184082, 0.0002708918764255941, 0.11727508157491684, -0.28085052967071533, -0.33651983737945557, 0.2633088529109955, -0.15387772023677826, -0.5965926647186279, -0.4558164179325104, 0.09142965823411942, 0.350259393453598, -0.0006944510387256742, -0.43815752...
need to attach additional information? Because you encountered an unrecoverable error in some data, and need to communicate the specifics back to client code? Because you like `throw`ing things? 4. What is the exception? Not what caused it but what is it **from the perspective of the catcher**? Something they can fix a...
[ 0.5230002999305725, 0.06455333530902863, -0.11621490120887756, 0.20324820280075073, -0.24433653056621552, -0.1909913867712021, 0.6289544701576233, -0.3902975618839264, -0.3429456055164337, -0.5354275107383728, -0.2379261553287506, 0.22460225224494934, -0.41891393065452576, -0.1846812814474...
not "double up" exceptions: each custom exception type should have a well-defined case where it can and should be caught; exceptions that don't match should be broken out into their own custom types (rather than, say, forcing the catcher to build conditional logic into a single `catch()` clause). 3. Unless you have a *...
[ 0.601966917514801, -0.33268269896507263, -0.33234497904777527, 0.012192599475383759, -0.018537629395723343, -0.49896207451820374, 0.5725910663604736, -0.26859182119369507, -0.3881170451641083, -0.3680885434150696, -0.46599671244621277, 0.29080504179000854, -0.6384710073471069, -0.269176244...
I'm trying to save some XML-Data in my UserSettings (Properties.Settings.Default.UserSettings) in a .NET Winforms Project. Is there a Possibility to do that or would it be better to save this Data in a seperated File? Thanks for your Answers! You can store an XML document's string representation in a setting of type S...
[ 0.5005160570144653, -0.12452089041471481, 0.22267138957977295, 0.3588847219944, -0.0535324290394783, -0.23736418783664703, 0.16664259135723114, -0.028208665549755096, -0.12807106971740723, -0.6342107653617859, 0.1548214554786682, 0.5556926727294922, -0.14667056500911713, 0.0167356263846158...
intrinsically wrong with storing an XML document as text within another XML document -- there isn't. But most settings that you access through the UserSettings property are single values. You're introducing a mode of operation where a single setting can now contain an arbitrary number of actual settings. That's not wha...
[ 0.5488728880882263, 0.3341049551963806, 0.12798604369163513, 0.1794622242450714, 0.14130941033363342, -0.3724069595336914, 0.48469042778015137, 0.11530037224292755, -0.07150472700595856, -0.6098044514656067, -0.07656943798065186, 0.46874475479125977, -0.4261828064918518, 0.1766724586486816...
We know that code coverage is a poor metric to use when gauging the quality of test code. We also know that testing the language/framework is a waste of time. On the other hand, what metrics can we use to identify quality tests? Are there any best practices or rules of thumbs that you've learned to help you identify ...
[ 0.8335756659507751, 0.2383359968662262, -0.16268756985664368, 0.4552907645702362, 0.16458125412464142, -0.4518977999687195, 0.4938628375530243, -0.2952646315097809, 0.11834373325109482, -0.45768553018569946, 0.1272815763950348, 0.6979283094406128, -0.14700555801391602, -0.2643616497516632,...
Set up a Requirements Verification Traceability Matrix (RVTM). Each test should verify one or more requirement. Also, each requirement should be verified by at least one test. 4. Make sure your tests are identifiable. Establish a simple naming or labeling convention and stick to it. Reference the test indentifier when ...
[ 0.9661661982536316, 0.26572564244270325, 0.21988528966903687, 0.4554904103279114, 0.1931583732366562, -0.5464139580726624, 0.3370550870895386, -0.6708379983901978, -0.06102233752608299, -0.46490055322647095, -0.15346424281597137, 0.6571798920631409, 0.018502499908208847, -0.113267697393894...
of tests, as needed. 7. Make your tests as succinct as possible. This makes them easier to run, and automate. It's better to run lots of little tests than one large test. 8. When a test fails, make it easy to see *why* the test failed.
[ 0.5519763827323914, -0.05569840967655182, -0.2546658515930176, 0.47303685545921326, 0.06219867616891861, -0.17475318908691406, 0.5376469492912292, -0.060930803418159485, -0.3573622703552246, -0.5683814287185669, -0.023154830560088158, 0.5564266443252563, -0.14676403999328613, -0.1766148954...
For explanation imagine a simple address. Written in a HTML paragraph with line breaks it would like this: ``` Street: Example Street 1 City: Vienna Zip Code: 1010 Country: Austria ``` Most of the time that's completely okay, but sometimes I have to achieve the following output: ``` Street: Example Street 1 City:...
[ 0.23746009171009064, 0.27905508875846863, 0.6868996024131775, 0.17611345648765564, -0.04380856081843376, -0.09473109990358353, 0.3825886845588684, 0.0259911697357893, -0.07445914298295975, -0.8593633770942688, -0.2668994665145874, -0.06186032295227051, -0.6257862448692322, -0.3688740134239...
would be useful in other situation too How do you achieve this output (using HTML and/or CSS)? I find that definition lists make much more sense than tables here. Float the `dt` to the left with a specific width and have it clear on the left. If either the label or the data are going to wrap, you'll have to do some po...
[ 0.4176466166973114, -0.24589098989963531, 0.32443374395370483, 0.10636656731367111, -0.34268948435783386, 0.06202087923884392, 0.11617879569530487, -0.011975091882050037, -0.20566010475158691, -0.7760387659072876, 0.13978944718837738, 0.6207596063613892, -0.008169926702976227, -0.271916270...
automatically, if you don't mind brushing off IE6.
[ 0.6827902793884277, 0.17490911483764648, -0.06431156396865845, 0.11525631695985794, -0.0037643122486770153, -0.25289812684059143, 0.041685789823532104, 0.12678465247154236, -0.06108453497290611, -0.5230876803398132, -0.2917942702770233, 0.23877307772636414, 0.14100758731365204, -0.15014059...
I am in the process of developing a web application that consists visually of a header above a body containing four columns of variable-height content. The design gods have decreed it to be fixed height, mainly because each of the columns can potentially get very long, and so (being designers) they are wanting iframes ...
[ 0.6611224412918091, 0.295184850692749, 0.6122960448265076, 0.18918724358081818, -0.2791541516780853, 0.2421378195285797, -0.005937735550105572, 0.018381431698799133, -0.2755301296710968, -0.5000855922698975, 0.16276173293590546, 0.23651045560836792, -0.04336189106106758, 0.0198752842843532...
like 700 pixels to give it the 'best chance' of fitting vertically, but I don't want to do that for various reasons which I'd hope would be obvious. So my question is: What would be the best way to have a body container that fills the available (vertical space) with each of the columns doing the same thing? Is it even...
[ 0.6067191958427429, 0.09857433289289474, 0.40331119298934937, 0.17359772324562073, -0.14262734353542328, 0.20519644021987915, 0.07286142557859421, -0.18820643424987793, -0.2303735911846161, -0.636997640132904, 0.23256760835647583, 0.27099278569221497, -0.10338146984577179, -0.0621316730976...
as I'll need for the header). Also, this must be standards-compliant and backwards-compatible to IE6. TIA. EDIT: I'm not looking for a CSS layout solution per se, my problem is how to accommodate the need for each column to be the maximum height possible within the body container and scrollable, without fixing the he...
[ 0.5790359377861023, 0.1265188455581665, 0.44264206290245056, 0.18001365661621094, -0.20134662091732025, -0.014972781762480736, 0.12062347680330276, 0.026547599583864212, -0.29357749223709106, -0.5846734046936035, -0.09861952811479568, 0.1425250768661499, -0.17352600395679474, -0.1449448615...
On a site of mine in which a textarea is used for submission, I have code that can appear something along the lines of the following: ``` <textarea><p>text</p></textarea> ``` When validating (XHTML 1.0 Transitional), this error arises, ``` line 88 column 50 - Error: document type does not allow element "p" here ``...
[ 0.33744996786117554, 0.32817989587783813, 0.14320498704910278, -0.07439044862985611, -0.24785058200359344, -0.22772334516048431, 0.2333328127861023, -0.2721326947212219, -0.07839670032262802, -0.5111299157142639, 0.00188311783131212, 0.25197961926460266, -0.29982858896255493, 0.22338531911...
if it's for display purposes (ie, showing code) it should be translated: ``` <textarea>&lt;p&gt;text&lt;/p&gt;</textarea> ``` beyond validation issues, allowing arbitrary tags (which are not properly encoded as above) to display can be a huge security issue. it's paramount to make sure any user supplied input has be...
[ 0.54131680727005, 0.23269996047019958, 0.19951875507831573, -0.10853341966867447, -0.1186995804309845, -0.3620220720767975, 0.11802402883768082, -0.40487152338027954, -0.0969521775841713, -0.48182329535484314, -0.5459659695625305, 0.3160078227519989, -0.41249069571495056, -0.35789895057678...
Does anybody know of a good media framework for Flex? I'd like to be able to create apps that can play not only those formats that the Flex framework provides support for, but other formats as well (like wav, wma, ogg and other...). **EDIT 13.10.2008.:** It was recently pointed out to me in the answers section that...
[ 0.7545315623283386, 0.14688892662525177, 0.25344178080558777, 0.2361147701740265, -0.261445015668869, -0.34415534138679504, 0.0430159829556942, 0.14825475215911865, -0.6583480834960938, -0.681816577911377, 0.01671461947262287, 0.7973041534423828, -0.04693152382969856, -0.16559776663780212,...
formats? Never mind about the portability to different platforms now. Portability would be nice, but if I can't get it, I can live without it :-). Thanks for the answers! is there a reason you're trying to put a `<p>` within `<textarea>`? as you found out it's not valid. if it's for display purposes (ie, showing cod...
[ 0.5449080467224121, 0.11387909948825836, 0.6274116039276123, 0.19956563413143158, -0.07753611356019974, -0.40990978479385376, 0.02790575660765171, -0.10774748772382736, -0.3853686451911926, -0.7168557643890381, -0.22699019312858582, 0.4391360580921173, -0.32169994711875916, -0.012302497401...
I chmod'ed the directory to 777, same with the directory contents. Still, I get a "permission denied" error. Does PHP throw this error if apache is not the group/owner, regardless of the file permissions? Here's the call that's failing: ``` rename('/correct/path/to/dir/1', '/correct/path/to/dir/2'); ``` You're editin...
[ 0.04455222561955452, 0.38218507170677185, 0.2447899729013443, -0.12702271342277527, -0.1765935868024826, -0.3167792558670044, 0.6325938105583191, -0.33676382899284363, -0.0014782730722799897, -0.2456159144639969, 0.0752294734120369, 0.7029132843017578, -0.12983505427837372, 0.1506917774677...
I'm working on designing the kernel (which I'm going to actually call the "core" just to be different, but its basically the same) for an OS I'm working on. The specifics of the OS itself are irrelevant if I can't get multi-tasking, memory management, and other basic things up and running, so I need to work on that fir...
[ 0.17771321535110474, 0.11592486500740051, 0.0954219177365303, 0.17576134204864502, 0.23525433242321014, 0.2078990787267685, -0.07271171361207962, 0.40342119336128235, -0.036561518907547, -0.6403235197067261, 0.01382402889430523, 0.770743727684021, -0.13883037865161896, -0.0095942672342062,...
implementation of the C standard library either way, so I get to write a malloc. My question is actually rather simple in this regard, how does C (or C++) manage its heap? What I've always been taught in theorey classes is that the heap is an ever expanding piece of memory, starting at a specified address, and in a lo...
[ -0.12650306522846222, -0.043773818761110306, -0.00011169454228365794, 0.06211468577384949, -0.0633235052227974, -0.10981658846139908, -0.14904557168483734, 0.04522673785686493, -0.37472274899482727, -0.6173549294471741, -0.15561935305595398, 0.4275815188884735, -0.14777585864067078, -0.084...
out of scope are simply left in memory space, but that space is marked as free so the heap can expand more if it needs to. What I need to know is, how on earth does C actually handle a dynamically expanding heap in this manner? Does a compiled C program make its own calls to a malloc routine and handle its own heap, o...
[ 0.28480327129364014, 0.1361621469259262, -0.12270643562078476, 0.09837587922811508, 0.04141915217041969, -0.17152807116508484, -0.060708124190568924, 0.034663621336221695, -0.24472637474536896, -0.27836087346076965, -0.3271735608577728, 0.34338414669036865, -0.24386323988437653, 0.10515385...
like any examples to be in C/C++ because I'm most comfortable with that language. I also would like to not worry about other things such as the stack, as I think I'm able to handle things like this on my own. So I suppose my real question is, other than malloc/free (which handles getting and freeing pages for itself, ...
[ 0.3363773822784424, 0.13406306505203247, -0.1605956256389618, 0.1589885652065277, -0.3009577691555023, 0.01614442653954029, 0.18999692797660828, 0.1661381721496582, -0.5107100009918213, -0.648537278175354, -0.20072339475154877, 0.5025863647460938, -0.32443755865097046, -0.24029435217380524...
but C is cross compiler so it shouldn't matter. ^\_^ EDIT FURTHER: I understand that I may be getting terms confused. I was taught that the "heap" was where the program stored things like global/local variables. I'm used to dealing with a "stack" in assembly programming, and I just realized that I probably mean that i...
[ 0.20587167143821716, 0.23670166730880737, -0.22566136717796326, 0.01734442263841629, -0.002287043957039714, -0.1201852411031723, 0.030369924381375313, 0.13261432945728302, -0.37539711594581604, -0.5681540966033936, -0.06970268487930298, 0.331633597612381, -0.311335951089859, -0.01167315430...
do I deal with an ever expanding *stack*? (it does appear that my C theory class was mildly... flawed.) `malloc` is generally implemented in the C runtime in userspace, relying on specific OS system calls to map in pages of virtual memory. The job of `malloc` and `free` is to manage those pages of memory, which are fix...
[ 0.16723975539207458, 0.17232860624790192, 0.18995575606822968, 0.1270904839038849, -0.016436196863651276, -0.06950893253087997, -0.14253924787044525, 0.05251277983188629, -0.3524365723133087, -0.6692039966583252, -0.36707034707069397, 0.23461797833442688, -0.15188440680503845, 0.1679721623...
[final lab handout](http://pdos.lcs.mit.edu/6.828/2007/labs/lab6/lab6-handout.tar.gz), and take a look at `lib/malloc.c`. This code uses the operating system JOS developed in the class. The way it works is that it reads through the page tables (provided read-only by the OS), looking for unmapped virtual address ranges....
[ -0.1780243068933487, 0.03789899870753288, 0.5999762415885925, -0.16403184831142426, 0.10312943160533905, -0.08114776015281677, -0.08942218869924545, 0.013308249413967133, -0.17630647122859955, -0.823472797870636, -0.43305277824401855, 0.05996164306998253, -0.24974656105041504, -0.058246146...
I just forgot the password. Can anyone help me how to get back the password. There is no way to get the old password back. Log into the SQL server management console as a machine or domain admin using integrated authentication, you can then change any password (including sa). Start the SQL service again and use the ne...
[ 0.44227996468544006, 0.013290507718920708, 0.5318046808242798, 0.11939819902181625, 0.06423439085483551, -0.043000780045986176, 0.721923828125, 0.06413371860980988, -0.3693068027496338, -0.8318391442298889, -0.03830469027161598, 0.5057727098464966, 0.018775567412376404, 0.39337989687919617...
I have a component which writes/generates javascript from a server side renderer. This component can be used in multiple times in a same page. However, once the page is loaded I have to collect all the variables or JSO written by this multiple components in the page. How can I do this so that I will have a collection o...
[ 0.4090941846370697, 0.0677538588643074, 0.28262895345687866, -0.18578848242759705, -0.5528232455253601, 0.1316433846950531, 0.12323332577943802, -0.6162634491920471, -0.20790797472000122, -0.7010270953178406, 0.23302917182445526, 0.5272032618522644, -0.3952120542526245, 0.11125360429286957...
Array['Third', 'Fourth']. In order to make a final rendering I have to combine these two arrays. You will need to be a little more specific about your problem, maybe with an example page but here are some thoughts. If you have a server-side component that writes JavaScript during page generation, I would generate a ...
[ -0.37866559624671936, -0.012832006439566612, 0.938016414642334, -0.2521436810493469, -0.4100508689880371, 0.3573375642299652, 0.2974390983581543, -0.350441038608551, -0.16702504456043243, -0.7662578225135803, -0.15296465158462524, 0.7521624565124512, -0.5386047959327698, -0.257400780916214...
For a current project I am working I need to return an aggregate report based on date ranges. I have 3 types of reports, yearly, monthly and daily. To assist in returning this report I need a function that will return all of the sub-ranges of datetimes, within a big range. So for example if I as for all the daily r...
[ -0.02183481864631176, 0.12219919264316559, 0.6677184104919434, -0.10179923474788666, -0.21870224177837372, 0.30657002329826355, 0.29205793142318726, -0.480878084897995, -0.11251091957092285, -0.21520408987998962, 0.007985205389559269, 0.36104750633239746, 0.23983386158943176, 0.01828498765...
2006-01-05 00:00:00.000 2006-01-05 00:00:00.000, 2006-01-05 08:00:00.000 ``` For the yearly range of '2006-01-01 11:10:00' to '2009-05-05 08:00:00', I would expect. ``` select * from dbo.fnGetDateRanges('y', '2006-01-01 11:10:00', '2009-05-05 08:00:00') 2006-01-01 11:10:00.000, 2007-01-01 00:00:00.000 2007-...
[ 0.045282427221536636, 0.015920717269182205, 0.8495927453041077, -0.023685410618782043, -0.023486878722906113, 0.18940666317939758, 0.4512035548686981, -0.590246856212616, 0.17156194150447845, -0.22272637486457825, 0.0353800505399704, 0.6965543031692505, 0.1100931465625763, -0.0478589758276...
datetime declare @to datetime set @from = @start if @type = 'd' begin set @to = dateadd(day, 1, convert ( datetime, cast(DatePart(d,@start) as varchar) + '/'
[ 0.45810166001319885, -0.5400522947311401, 0.7136361002922058, -0.43067866563796997, 0.4307515323162079, 0.059709928929805756, 0.09918025135993958, -0.2673912048339844, 0.1665060669183731, -0.45115986466407776, -0.3207079768180847, 0.4826453924179077, -0.30798763036727905, 0.114692263305187...
+ cast(DatePart(m,@start) as varchar) + '/' + cast(DatePart(yy,@start) as varchar), 103 ) ) end if @type = 'm' begin set @to = dateadd(month, 1, convert
[ 0.16622239351272583, -0.07705376297235489, 0.874613344669342, -0.4333447813987732, 0.3212836980819702, 0.2221108078956604, 0.3554394841194153, -0.4121858477592468, -0.04783673956990242, -0.12639424204826355, -0.3654405474662781, 0.12277314066886902, -0.13978300988674164, 0.2647157907485962...
( datetime, '1/' + cast(DatePart(m,@start) as varchar) + '/' + cast(DatePart(yy,@start) as varchar), 103 ) ) end if
[ -0.18127846717834473, -0.18228808045387268, 0.7602821588516235, -0.3883998394012451, 0.4646076261997223, 0.009399758651852608, 0.35740333795547485, -0.299981027841568, -0.008027180097997189, -0.2911764681339264, -0.48519590497016907, 0.24940809607505798, -0.1745380312204361, 0.210064485669...
@type = 'y' begin set @to = dateadd(year, 1, convert ( datetime, '1/1/' + cast(DatePart(yy,@start) as varchar), 103
[ 0.27800244092941284, 0.07494053244590759, 0.6754189729690552, -0.2652881145477295, 0.33368879556655884, 0.12416429072618484, 0.24257898330688477, -0.23605334758758545, 0.14268717169761658, -0.15053486824035645, -0.13187943398952484, 0.07229654490947723, -0.07062961161136627, 0.309630870819...
) ) end while @to < @finish begin insert @ranges values (@from, @to) set @from = @to if @type = 'd' set @to = dateadd(day, 1, @to) if @type = 'm'
[ 0.3741457760334015, -0.12783105671405792, 0.7350937128067017, -0.35471802949905396, 0.530006468296051, 0.15533603727817535, 0.24899648129940033, -0.34969913959503174, 0.13065990805625916, -0.37219497561454773, -0.3399828374385834, 0.11699138581752777, -0.07594256848096848, 0.19083993136882...
set @to = dateadd(month, 1, @to) if @type = 'y' set @to = dateadd(year, 1, @to) end insert @ranges values (@from, @finish) return end ```
[ 0.6780619025230408, 0.06648430228233337, 0.730802595615387, -0.2108936756849289, 0.39431455731391907, 0.05359005928039551, -0.07677916437387466, -0.18383678793907166, 0.20672941207885742, -0.17332276701927185, -0.1670076996088028, 0.24578027427196503, -0.08021169900894165, 0.23701924085617...
I know of many utilities that can tell me the bitrate of an MP3 file, but I've never seen one that can tell me whether or not the MP3 file is VBR (variable bit rate - the bit rate fluctuates within the file) or a CBR (constant bit rate - the bit rate stays the same within the file). My guess is that most programs aren'...
[ 0.609165370464325, 0.10831894725561142, 0.1323375254869461, 0.23377975821495056, -0.2575385868549347, 0.03637434542179108, 0.0608382374048233, -0.09850367903709412, -0.166010320186615, -0.2994343936443329, 0.3980989158153534, 0.9611903429031372, -0.2603953778743744, 0.3360074460506439, 0...
- so how could I programmatically determine whether or not an MP3 file is VBR or CBR? I have about 15,000 files to go through to find this out for, so I need to automate the process. MP3 files are essentially build of so called frames. Each frame has a small header that stores information about the frame. The header al...
[ 0.7400116920471191, 0.39168331027030945, 0.03489992767572403, 0.09994364529848099, -0.23196843266487122, -0.14528781175613403, 0.02089339680969715, -0.6018374562263489, -0.19429075717926025, -0.3989245891571045, 0.17033380270004272, 0.5682862401008606, -0.3312769830226898, 0.19732177257537...
the file, look at the header and check if the bitrate field changes. If it does, its an VBR MP3. A full description of the MP3 format is here: <http://www.mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm>
[ 0.1179484874010086, -0.11100578308105469, 0.536906361579895, 0.13479533791542053, -0.4231444299221039, 0.001599314738996327, 0.12399020045995712, -0.3072378635406494, -0.49484872817993164, -0.2514035701751709, -0.292529433965683, 0.5902137160301208, -0.46063336730003357, 0.2188061475753784...
Nightly, I need to fill a SQL Server 2005 table from an ODBC source with over 8 million records. Currently I am using an insert statement from linked server with syntax select similar to this: ``` Insert Into SQLStagingTable from Select * from OpenQuery(ODBCSource, 'Select * from SourceTable') ``` This is really ine...
[ 0.13577210903167725, 0.17960427701473236, 0.4741846024990082, -0.05995406210422516, 0.17925317585468292, -0.164580300450325, 0.20749585330486298, -0.08906862139701843, -0.38154157996177673, -0.6488232016563416, -0.012863789685070515, 0.46122854948043823, -0.20197449624538422, 0.12691950798...
the populated datatable uses more memory than is available on the machine it is running (a server with 16GB of memory in my case)? I've thought about using the overloaded ODBCDataAdapter [fill](http://msdn.microsoft.com/en-us/library/59wzthcw(VS.80).aspx) method which allows you to fill only the records from x to n (w...
[ 0.14147868752479553, -0.03281865268945694, 0.6092502474784851, 0.2891148328781128, 0.25542062520980835, 0.07484889030456543, -0.012706159614026546, 0.08175226300954819, -0.277658075094223, -0.9083582758903503, -0.02007286436855793, 0.13403372466564178, -0.5061516165733337, 0.16477306187152...
and let the OS manage the memory? Should I populate it in chunks? Is there another solution I haven't thought of? The easiest way would be to use ExecuteReader() against your odbc data source and pass the [IDataReader](http://msdn.microsoft.com/en-us/library/system.data.idatareader.aspx) to the [WriteToServer(IDataRead...
[ -0.033418748527765274, 0.09253682941198349, 0.17992062866687775, 0.24908798933029175, -0.0347171276807785, 0.09637269377708435, 0.14937222003936768, -0.2510511577129364, 0.12492592632770538, -0.5421780943870544, -0.15395458042621613, 0.6913934946060181, -0.3176034986972809, -0.017326842993...
Should I be using this method of throwing errors: ``` if (isset($this->dbfields[$var])) { return $this->dbfields[$var]; } else { throw new FieldNotFoundException($var); } ``` or this style: ``` try { return $this->dbfields[$var]; } catch (Exception $e) { throw new FieldNotFoundException($var); } ``...
[ 0.2576906979084015, 0.03418295085430145, -0.0832480937242508, -0.24379511177539825, -0.19842936098575592, -0.29465794563293457, 0.5178066492080688, -0.5082725882530212, -0.025320857763290405, -0.5631157755851746, -0.06512627750635147, 0.5792362093925476, -0.43999260663986206, 0.04441266506...
also assume you know why that exception was thrown - if there was some other exception, like say an out of memory or something, you're reporting it as a "field not found" even if it wasn't. Keep in mind that `try`/`catch` in languages like C++ and Java are very expensive because of all the state they have to save and ...
[ 0.35223546624183655, 0.09934017062187195, -0.5194820165634155, 0.23477250337600708, -0.032644230872392654, -0.48878180980682373, 0.45579227805137634, 0.4333227574825287, -0.3085060119628906, -0.4511628746986389, -0.14523878693580627, 0.6207748055458069, -0.19265690445899963, -0.32901892066...
I'm new to extending Drupal, though I've done similar kinds of things for other CMSes. Anyone care to share opinions on the best way to access an external API from within Drupal? I need to show things like search results, listings, and listing summaries. In my reading up on Drupal, I think this implies I need to creat...
[ 0.580655574798584, 0.07288952171802521, 0.30696338415145874, 0.0659438818693161, -0.00822661817073822, -0.11230815201997757, 0.1386122852563858, 0.05964329466223717, -0.2815994918346405, -0.6762745976448059, 0.1741044670343399, 0.33047357201576233, -0.16855491697788239, 0.11266443133354187...
I'm trying to do. I'll model my module after that one. Yes, they are all possible from within the same module; consult the various [hook functions](http://api.drupal.org/api/group/hooks/6) on how to declare nodes and blocks in a function. There's also the PHP filter, which lets you embed pure PHP code on content pages...
[ 0.6186358332633972, -0.21681076288223267, 0.11551635712385178, -0.12304050475358963, -0.08200924843549728, -0.13508646190166473, 0.2659052312374115, -0.24179157614707947, -0.15434181690216064, -0.5185145735740662, 0.222619891166687, 0.42951345443725586, -0.24185872077941895, -0.19167038798...
I have a text file in the root of my web app *<http://localhost/foo.txt>* and I'd like to load it into a variable in javascript.. in groovy I would do this: ``` def fileContents = 'http://localhost/foo.txt'.toURL().text; println fileContents; ``` How can I get a similar result in javascript? XMLHttpRequest, i.e. AJA...
[ 0.25988444685935974, 0.0016807550564408302, 0.394265741109848, -0.1670929193496704, -0.13743256032466888, -0.19735953211784363, 0.40321341156959534, -0.12443628162145615, -0.2796987295150757, -0.8148218989372253, -0.11208982765674591, 0.8549656271934509, -0.2755926251411438, 0.006182763725...
is to use an AJAX framework like jQuery. One extra consideration: this will only work as long as foo.txt is on the same domain. If it's on a different domain, same-origin security policies will prevent you from reading the result.
[ 0.23478548228740692, -0.06505875289440155, 0.012212236411869526, 0.12876516580581665, -0.09286554902791977, -0.4444076418876648, 0.3367789089679718, 0.3927012085914612, -0.16580823063850403, -0.3816509246826172, 0.05791277065873146, 0.6044394969940186, -0.36666232347488403, -0.333773076534...
What's the best/most efficient way to extract text set between parenthesis? Say I wanted to get the string "text" from the string "ignore everything except this (text)" in the most efficient manner possible. So far, the best I've come up with is this: ``` $fullString = "ignore everything except this (text)"; $start =...
[ -0.188055619597435, 0.008994590491056442, 0.4815714657306671, -0.25500184297561646, -0.09443719685077667, 0.02628239430487156, 0.38911035656929016, -0.049417175352573395, -0.2772347331047058, -0.21246647834777832, -0.4644162058830261, 0.8428563475608826, -0.49953800439834595, -0.4873645901...
and get it over with. unless you are doing enough iterations that it becomes a huge performance issue, it's just easier to code (and understand when you look back on it) ``` $text = 'ignore everything except this (text)'; preg_match('#\((.*?)\)#', $text, $match); print $match[1]; ```
[ 0.02599021978676319, 0.15092569589614868, 0.4493798613548279, -0.22187431156635284, 0.41874536871910095, -0.3121538758277893, 0.46917763352394104, -0.04803790524601936, -0.014715428464114666, -0.5935531258583069, -0.4670332670211792, 0.7439858317375183, -0.5868894457817078, -0.012323549948...
I am trying to connect to a webservice over ssl with a client certificate. Is there an elegant way of doing this apart from shoving things like "javax.net.ssl.keyStore" into System.properties. Any pointers to code examples would be appreciated. Possibly an obvious point - a developer can ignore (or not be aware of) yo...
[ 0.4584178030490875, 0.23106727004051208, 0.09643597155809402, 0.03839339688420296, -0.0030105579644441605, -0.28721240162849426, 0.34243184328079224, 0.033783718943595886, -0.25922849774360657, -0.6285369992256165, -0.004002605564892292, 0.2191758155822754, -0.09630294889211655, 0.06559646...
There are lots of non-image-based CAPTCHA ideas floating around. But what about the old-fashioned way? What are the elements of a good image CAPTCHA? What visual elements are hard for computers, but easier for humans? What about mistakes, elements that are easier for computers than they are for humans? What are good t...
[ 0.09454482048749924, -0.055052679032087326, 0.4002475142478943, 0.32723283767700195, -0.07090668380260468, -0.09172413498163223, 0.07932175695896149, -0.0820719376206398, -0.47938811779022217, -0.8360345959663391, 0.13409025967121124, 0.517825186252594, -0.297851026058197, -0.1453517824411...
(Specifically, I'm using PHP GD.) Things that come to mind are: * Change the color of the text, possibly making it multicolored. * Add "scratches" or marks that mildly obscure the text. * Add to the distortion so that it's affected by sine waves horizontally as well. **What goes into a superb image CAPTCHA?** --- E...
[ 0.41101476550102234, 0.011956187896430492, 0.30118587613105774, 0.08079394698143005, -0.41385748982429504, -0.17271296679973602, 0.5157748460769653, 0.16970597207546234, -0.3570636808872223, -0.7921937704086304, -0.15058709681034088, 0.4656858742237091, 0.11480343341827393, -0.158861741423...
that not only the image, but also the *experience* matters, so feel free to comment on that. **Make letters difficult to separate**. Use handwriting-like font or add lines that join letters. Decrease and randomize spacing between letters. **Add wave distortion in other axis too**. Distortion in one axis only can be re...
[ 0.5489107966423035, 0.0014417311176657677, 0.0443241149187088, -0.0028525644447654486, -0.1031966581940651, 0.051424454897642136, 0.3501988351345062, -0.05511881038546562, -0.39903023838996887, -0.930107831954956, 0.2954789400100708, 0.7900249361991882, -0.15495645999908447, -0.01439639274...
If you are using php5 and mysql5, is there a substantial advantage to using stored procs over prepared statements? ( i read somewhere you may not get substantial performance gains from mysql5 stored proc) They are not really the same thing - with stored procedures, your database logic resides inside the database. Prepa...
[ 0.11555539816617966, 0.19339847564697266, -0.13238711655139923, 0.2565518319606781, -0.3679913580417633, 0.017053021118044853, 0.48092538118362427, -0.1257695108652115, -0.21390587091445923, -0.3715161383152008, 0.2414053976535797, 0.5799707770347595, -0.09455450624227524, -0.1453720480203...
one place.
[ -0.11950322240591049, 0.06133680045604706, -0.44120052456855774, 0.22865726053714752, -0.2883813977241516, -0.21313579380512238, -0.3309691548347473, 0.2010231465101242, 0.13048452138900757, -0.4918193817138672, -0.05944318324327469, -0.06452516466379166, -0.5150145888328552, 0.16819508373...
I was hoping to do something like this, but it appears to be illegal in C#: ``` public Collection MethodThatFetchesSomething<T>() where T : SomeBaseClass { return T.StaticMethodOnSomeBaseClassThatReturnsCollection(); } ``` I get a compile-time error: > 'T' is a 'type parameter', which is not valid in the gi...
[ 0.2552110254764557, 0.04500330612063408, 0.24241769313812256, -0.04533090069890022, 0.0009523183107376099, -0.11500890552997589, 0.31103137135505676, -0.08613754063844681, -0.3729560375213623, -0.2260681688785553, -0.17036184668540955, 0.8279693126678467, -0.47654488682746887, 0.3010825812...
than: ``` SomeBaseClass.StaticMethodOnSomeBaseClassThatReturnsCollection ``` Going through the generic type parameter is an unneeded indirection and hence not supported.
[ -0.029585925862193108, 0.08492366969585419, 0.3919408917427063, 0.04378482699394226, 0.04250108078122139, -0.3977537751197815, 0.30873429775238037, -0.07781732827425003, 0.1891126036643982, -0.5467148423194885, -0.20800383388996124, 0.44309914112091064, -0.35992446541786194, 0.487192213535...
I have a form that has multiple fields, and for testing purposes is there a way I could print out the values entered in all the fields, without having to individually print each value. You should be able to do a `var_dump($_REQUEST);` <http://us2.php.net/manual/en/reserved.variables.request.php> <http://us2.php.net/m...
[ 0.5423352122306824, 0.10852357000112534, 0.40046659111976624, -0.03618350997567177, -0.1209184005856514, -0.10507213324308395, 0.3207920789718628, -0.4935103952884674, 0.022776465862989426, -0.32507744431495667, 0.20438824594020844, 0.44739606976509094, -0.05764630809426308, 0.203578546643...
I'm working on a system that includes a large number of reports, generated using [JasperReports](http://jasperforge.org/plugins/project/project_home.php?group_id=102). One of the newer features is that you can define styles for reports. From the available docs I believe there is some way to have an external file defin...
[ 0.9295709133148193, 0.07935205847024918, 0.3618890047073364, 0.1793832629919052, -0.017310794442892075, -0.15130211412906647, -0.08609466254711151, 0.03831236809492111, -0.3688056468963623, -0.4876432418823242, 0.34875020384788513, 0.483022004365921, -0.24397198855876923, -0.12572883069515...
and if so, how to do it? Use [JasperReport templates](http://jasperreports.sourceforge.net/sample.reference/templates/#templates). A JasperReports template is one that ends in `.jrtx`, and may look similar to this (`styles.jrtx`): ``` <?xml version="1.0"?> <!DOCTYPE jasperTemplate PUBLIC "-//JasperReports//DTD Templ...
[ 0.5474985837936401, -0.15445290505886078, 0.7515274286270142, 0.28950202465057373, 0.09251000732183456, -0.26191943883895874, -0.1302993893623352, -0.294709712266922, -0.14012812077999115, -0.21464841067790985, -0.05111005902290344, 0.6587070226669312, -0.35273927450180054, -0.304394930601...
necessary).
[ -0.07786862552165985, 0.19182538986206055, 0.3580215573310852, 0.03223071247339249, 0.4995143711566925, 0.12464014440774918, 0.4272443652153015, -0.5131383538246155, 0.2516186535358429, -0.3193162679672241, -0.6161515712738037, 0.9649978876113892, -0.33393654227256775, 0.0536368265748024, ...
Say I have a fairly hefty JavaScript file, packed down to roughly 100kb or so. By file I mean it’s an external file that would be linked in via `<script src="...">`, not pasted into the HTML itself. Where’s the best place to put this in the HTML? ``` <html> <head> <!-- here? --> <link rel="stylesheet" href="s...
[ 0.31058064103126526, 0.2203676849603653, 0.5280307531356812, -0.014026356860995293, 0.03971121460199356, 0.13080936670303345, 0.016163337975740433, -0.24633723497390747, -0.1271093487739563, -0.7808825373649597, 0.011005304753780365, 0.3077564239501953, 0.062117449939250946, -0.22044654190...
team recommend [placing scripts at the bottom of your page](http://developer.yahoo.com/performance/rules.html#js_bottom) because of the way browsers download components. Of course Levi's comment "just before you need it and no sooner" is really the correct answer, i.e. "it depends".
[ 0.4081054627895355, -0.1392403244972229, -0.049283720552921295, 0.1978142261505127, 0.1087455153465271, -0.20573581755161285, 0.0037398156709969044, -0.19720062613487244, 0.09442520141601562, -0.6622540950775146, -0.09627268463373184, 0.17499803006649017, 0.36051473021507263, -0.1825278252...
I need to match something in the form ``` <a href="pic/5" id="piclink"><img src="thumb/5" /></a> ``` to find the number, in this case 5, using JavaScript. I have no idea how to use regexes, so I was wondering if anyone here could help out. Just to make sure you know what's going on, the pattern you posted in your o...
[ 0.35996705293655396, 0.14003078639507294, 0.27465060353279114, 0.1532699465751648, -0.09932161122560501, 0.047895897179841995, -0.008014403283596039, -0.19038701057434082, -0.47846201062202454, -0.6418514847755432, 0.22848710417747498, 0.4518853425979614, -0.04686539247632027, -0.007442196...
but once you get a handle on the basic syntax, they're incredibly useful and powerful.
[ 0.2261064201593399, 0.46604180335998535, -0.15296658873558044, 0.1781194508075714, -0.15503248572349548, -0.0549909807741642, 0.4282895624637604, 0.37490957975387573, -0.017840970307588577, -0.45932817459106445, -0.4764571189880371, 0.4698505103588104, 0.21468715369701385, -0.4283663332462...
I've been working with the Joomla framework and I have noticed that they use a convention to designate private or protected methods (they put an underscore "`_`" in front of the method name), but they do not explicitly declare any methods `public`, `private`, or `protected`. Why is this? Does it have to do with portabi...
[ 0.2565484046936035, 0.20137445628643036, 0.16091562807559967, 0.28965315222740173, -0.28816288709640503, -0.19566108286380768, 0.4198174476623535, 0.06817629188299179, -0.4428068697452545, -0.2287042737007141, -0.11806953698396683, 0.23227155208587646, 0.005481582134962082, 0.1542350947856...
php4 still has over a 35% usage rate sadly.
[ -0.09950022399425507, 0.2372296154499054, 0.5897137522697449, 0.14688296616077423, -0.39817485213279724, 0.015450055710971355, 0.5813350081443787, 0.4701380431652069, -0.3566146790981293, -0.15554776787757874, 0.3943955600261688, 0.04175253584980965, 0.11325619369745255, 0.2950390577316284...
How are arrays manipulated in D? [Here](http://www.digitalmars.com/d/2.0/arrays.html) you can find a complete reference of array manipulations in D.
[ 0.4180834889411926, -0.3485546112060547, 0.08274774253368378, 0.15100844204425812, -0.07956943660974503, 0.03622044250369072, -0.14214041829109192, -0.3888053596019745, -0.5456348061561584, -0.40647462010383606, -0.015440411865711212, 0.46279239654541016, -0.2290649712085724, -0.1584573239...
I've seen some horrific code written in Perl, but I can't make head nor tail of this one: ``` select((select(s),$|=1)[0]) ``` It's in some networking code that we use to communicate with a server and I assume it's something to do with buffering (since it sets `$|`). But I can't figure out why there's multiple `sele...
[ 0.1036185622215271, -0.0002948495384771377, 0.3843693733215332, -0.2642504870891571, 0.0041040279902517796, 0.05613195523619652, 0.18781059980392456, 0.07787628471851349, -0.22510170936584473, -0.7045240998268127, -0.06641045957803726, 0.411339670419693, -0.4327470660209656, 0.353376984596...
`select` returns the old one), and sets autoflush (`$| = 1`). It does this in a list (`(...)[0]`) and returns the first value (which is the result of the `select` call - the original STDOUT), and then passes *that* back into another `select` to reinstate the original STDOUT filehandle. Phew. But now you understand it ...
[ -0.09598125517368317, -0.21759682893753052, 0.5213912129402161, -0.30349937081336975, 0.19716016948223114, 0.27605026960372925, -0.19575311243534088, -0.2806150019168854, -0.18095876276493073, -0.50831139087677, -0.18958239257335663, 0.5238544344902039, -0.38475480675697327, 0.125296324491...
Given a string of keywords, such as "Python best practices", I would like to obtain the first 10 Stack Overflow questions that contain that keywords, sorted by relevance (?), say from a Python script. My goal is to end up with a list of tuples (title, URL). How can I accomplish this? Would you consider querying Google...
[ 0.055647894740104675, 0.06395801901817322, 0.3944738507270813, 0.16561290621757507, -0.3590930998325348, 0.02909940481185913, 0.10850660502910614, -0.6618463397026062, -0.5459274649620056, -0.19169487059116364, -0.396399587392807, 0.45992183685302734, -0.3440597355365753, -0.21762225031852...
feeds for programmers/developers?'), ('/questions/3088/best-ways-to-teach-a-beginner-to-program#13185', 'Best ways to teach a beginner to program?'), ('/questions/13678/textual-versus-graphical-programming-languages#13886', 'Textual versus Graphical Programming Languages'), ('/questions/58968/what-defines-pythonian-or-...
[ 0.0936417281627655, -0.021864544600248337, 0.2580461800098419, 0.21548818051815033, -0.3771924674510956, 0.015545282512903214, 0.0076444405131042, 0.040748778730630875, -0.13942120969295502, -0.25856176018714905, -0.5425176024436951, 0.6451642513275146, -0.027174092829227448, -0.4879821538...
program?'), ('http://stackoverflow.com/questions/13678/textual-versus-graphical-programming-languages#13886', 'Textual versus Graphical Programming Languages'), ('http://stackoverflow.com/questions/58968/what-defines-pythonian-or-pythonic#59877', 'What defines &#8220;pythonian&#8221; or &#8220;pythonic&#8221;?'), ('htt...
[ 0.015991222113370895, -0.04083007946610451, 0.23900087177753448, -0.08531901240348816, -0.06511631608009338, 0.05446436628699303, 0.09342341870069504, -0.2873164415359497, -0.22876590490341187, -0.12988778948783875, -0.6015838980674744, 0.641143798828125, -0.37801593542099, -0.282719343900...
= re.findall(r'<h3><a href="([^"]*)" class="answer-title">([^<]*)</a></h3>', html) links = [(urlparse.urljoin('http://stackoverflow.com/', url), title) for url,title in links] return links ```
[ -0.058383841067552567, 0.23343133926391602, 0.9171082377433777, -0.16924427449703217, 0.21912609040737152, -0.030157631263136864, 0.44566646218299866, -0.5932894349098206, -0.43128344416618347, -0.22132481634616852, -0.7997071743011475, 0.43853557109832764, -0.05605963245034218, 0.73002016...
My VPS provider (Slicehost) doesn't provide an SMTP server. I use Google Apps to send and receive mail for my domains, but I want to be able to programmatically send e-mail. I've been Googling this issue on and off for many months, and I just can't seem to get a clear picture of what I need to do. Do I just need an MT...
[ 0.37876230478286743, 0.21293585002422333, 0.6305021643638611, 0.0484962984919548, -0.2094373255968094, -0.16262607276439667, 0.42605727910995483, 0.23941119015216827, -0.46061277389526367, -0.6564077138900757, 0.0019495075102895498, -0.12171241641044617, -0.29438990354537964, 0.47331449389...
careful about tinkering with? Also, if my VPS host **did** provide an SMTP server, what *wouldn't* I need to do, that I'm doing now? Thank you! **Edit**: A quick synopsis of my findings: * Update `/etc/hosts` and `/etc/hostname` to reflect the FQDN (for example, `mail.domain.com` or `sub.domain.com` instead of `slic...
[ 0.49535802006721497, 0.04668382555246353, 0.23678363859653473, 0.07845979183912277, -0.15475265681743622, -0.21515688300132751, 0.48099571466445923, -0.16703523695468903, 0.03085179440677166, -0.49010369181632996, 0.21637293696403503, 0.6905975341796875, -0.08440304547548294, 0.25333836674...
with `mail whateveryouremailis@gmail.com` Have you looked [here](http://articles.slicehost.com/search?q=email), seems to me that there is plenty of information to get started. I found [mail-server-slice-setup](http://articles.slicehost.com/2008/9/2/mail-server-slice-setup) to be quite informative.
[ 0.4839306175708771, -0.07192260026931763, 0.31170716881752014, -0.33924034237861633, -0.4292256832122803, -0.19227370619773865, 0.17778325080871582, 0.3323257863521576, -0.17989160120487213, -0.5955020785331726, 0.07381422072649002, 0.3030937612056732, 0.08699974417686462, -0.0643794685602...
I am looking for a way to add a drop down list in WPF to a menu. This used to be really easy in winforms and so I am expecting you experts to know just now to do it in WPF. Thanks. Sorry if this is a bad question, it is late and I don't want to think. It is very easy to add any UIElement to any control, You can just a...
[ 0.3240489661693573, -0.4420854151248932, 0.27609023451805115, 0.12661303579807281, -0.17441269755363464, -0.1922096163034439, 0.313505619764328, -0.1940043568611145, -0.09446223080158234, -0.8476818203926086, -0.036643024533987045, 0.5728879570960999, -0.2552853226661682, 0.105273544788360...
<MenuItem Header="Close"/> <Separator/> <ComboBox Width="85" Height="21.96" /> </MenuItem> </Menu> ```
[ -0.1466110348701477, 0.04266563057899475, 0.5157346725463867, -0.4100028872489929, -0.0950482189655304, 0.1796228587627411, -0.03207922726869583, -0.4814073145389557, -0.2513256072998047, -0.4617394804954529, -0.2865060567855835, 0.5809335112571716, 0.23527050018310547, 0.09132570028305054...
Would you recommend me the best approach to edit SQL query with Visual Studio 2008 Professional, please? I know I can open Query window from context menu in Server Explorer and edit text in SQL Pane. But unfortunately I am not allowed to save query to a file and Find and Replace commands are not working there. Alter...
[ -0.10464098304510117, 0.20152322947978973, 0.07299365848302841, 0.19452477991580963, -0.4836444854736328, -0.21535615622997284, 0.2309129536151886, -0.08208705484867096, -0.03242511674761772, -0.564643919467926, 0.3035188317298889, 0.856432318687439, -0.011276789009571075, 0.01370569411665...
solution. Many thanks for suggestions! If you create a Database project within your solution in Visual Studio, then you can set up a default database connection for that project. Then any \*.sql files that are included in the database project can be executed against that connection. What I usually do is select the tex...
[ 0.03298391401767731, -0.09748689830303192, 0.3180296719074249, 0.2197047919034958, 0.2225789874792099, 0.03256511315703392, 0.19976282119750977, -0.17842541635036469, -0.05088874325156212, -0.9876223802566528, -0.03584819659590721, 0.42605459690093994, -0.40588268637657166, 0.0378301031887...
Is there any open source OCR library written in .NET, or written in any language but can be used in an ASP.NET application? Or is there any open source OCR API available in the market for image to tabular formats ? Use [Tessnet](http://www.pixel-technology.com/freeware/tessnet/). Tessnet is C++/CLI .NET Wrapper for t...
[ 0.10495597124099731, -0.16018922626972198, 0.4873293936252594, 0.19708707928657532, -0.1113516166806221, -0.00034877838334068656, -0.2546911835670471, 0.23158137500286102, -0.12125551700592041, -0.5706301331520081, -0.2616537809371948, 0.5502811074256897, -0.36335882544517517, -0.472408294...
JavaScript doesn't seem to have a native `trim()` method. How can I trim white spaces at the start and end of a string with JavaScript? I know this question is ancient but now, Javascript actually does have a native .trim() <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim>
[ 0.10406462848186493, 0.014127589762210846, -0.013613001443445683, -0.1640760898590088, -0.27079126238822937, -0.05162810534238815, 0.16387082636356354, 0.037904322147369385, -0.28200599551200867, -0.8397756218910217, -0.014119954779744148, 0.2493097484111786, -0.47245103120803833, 0.007086...
I was trying the following example, but with external URLs: [Using WebViews](http://android-developers.blogspot.com/2008/09/using-webviews.html) The example shows how to load an HTML file from assets folder (`file:// url`) and display it in a WebView. But when I try it with external URLs (like <http://google.com>), ...
[ 0.15450747311115265, 0.33430689573287964, 0.3254045248031616, -0.2740379869937897, 0.08965317159891129, -0.04717737063765526, 0.08545426279306412, -0.1104271411895752, -0.1789347231388092, -0.6821532249450684, -0.15479739010334015, 0.47814592719078064, -0.46970483660697937, 0.2059972435235...
be edited graphically in Eclipse plugin through permissions tab.
[ 0.3002362847328186, 0.049207545816898346, -0.035248953849077225, -0.00417857151478529, -0.05150642991065979, -0.30714207887649536, 0.11395972222089767, -0.05728544294834137, 0.0191386379301548, -0.7435747385025024, -0.6063505411148071, 0.5416063666343689, -0.21874459087848663, -0.424128383...
I have an application that I have to run as Administrator. One small part of that application is to start other applications with Process.Start The started applications will also be run as administrators, but I'd rather see them run as the 'normal' user. How do I accomplish that? /johan/ The WinSafer API's allow a ...
[ 0.23013387620449066, 0.0053907944820821285, 0.533453643321991, 0.058439016342163086, 0.09502047300338745, -0.45245659351348877, 0.24152152240276337, -0.5041793584823608, 0.09006386250257492, -0.5505926012992859, -0.17528896033763885, 0.5730190873146057, -0.32479724287986755, 0.149466603994...
SaferLevelScope.User, saferLevel, SaferOpen.Open, out saferLevelHandle, IntPtr.Zero)) { throw new Win32Exception(Marshal.GetLastWin32Error()); } try { //Generate the access token to use, based on the safer level handle. IntPtr hToken = IntPtr.Zero; ...
[ -0.004201376345008612, -0.2542829215526581, 0.29615867137908936, 0.27599480748176575, 0.39058229327201843, -0.31006380915641785, 0.48643994331359863, -0.9300102591514587, 0.18298397958278656, -0.5544317364692688, -0.006988032720983028, 0.541645348072052, -0.21160978078842163, 0.03607676178...
saferLevelHandle, // SAFER Level handle IntPtr.Zero, // NULL is current thread token. out hToken, // Target token SaferTokenBehaviour.Default, // No flags IntPtr.Zero)) // Reserved
[ -0.009360172785818577, -0.35307109355926514, 0.2242671102285385, 0.2777024805545807, 0.11165167391300201, -0.20980998873710632, 0.3011760413646698, -0.4095456004142761, 0.07039154320955276, -0.24216613173484802, 0.19866997003555298, 0.2934722602367401, -0.15719518065452576, 0.0844937488436...
{ throw new Win32Exception(Marshal.GetLastWin32Error()); } try { //Now that we have a security token, we can lauch the process //using the standard CreateProcessAsUser API STARTUPINFO si = new STARTUPINFO(); si.cb = Marshal.SizeOf(si); si.lpDesktop
[ 0.2851523160934448, -0.013492547906935215, 0.21684008836746216, 0.18498796224594116, 0.4824352264404297, -0.05689307302236557, 0.04296353831887245, -0.7105718851089478, -0.38745954632759094, -0.6225326061248779, -0.09727569669485092, 0.3549737334251404, -0.09376181662082672, 0.047644305974...
= String.Empty; PROCESS_INFORMATION pi = new PROCESS_INFORMATION(); // Spin up the new process Boolean bResult = Windows.CreateProcessAsUser( hToken, fileName, arguments,
[ -0.17117524147033691, -0.03414231911301613, 0.5175073146820068, -0.26887083053588867, 0.2580871880054474, 0.38173720240592957, 0.1986904889345169, -0.20522254705429077, -0.36793753504753113, -0.5120794177055359, -0.27255016565322876, 0.2761049270629883, -0.21392634510993958, 0.569201469421...
IntPtr.Zero, //process attributes IntPtr.Zero, //thread attributes false, //inherit handles 0, //CREATE_NEW_CONSOLE IntPtr.Zero, //environment null, //current directory
[ -0.02710891328752041, -0.06810755282640457, 0.5318291187286377, -0.15693892538547516, 0.5027934312820435, 0.3078446686267853, -0.10639658570289612, 0.03206655755639076, -0.09714145958423615, -0.6258225440979004, 0.24482731521129608, 0.5792675614356995, -0.26816314458847046, 0.5241893529891...