text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
term="News" label="News & Politics"/> <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Garofalo"/> <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Olbermann"/> <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="commentary"/> <category s...
[ -0.07059336453676224, 0.38767725229263306, 0.4678567945957184, -0.5666512250900269, -0.6086553931236267, 0.021159954369068146, 0.3047902584075928, -0.4861912429332733, -0.25930139422416687, 0.12690871953964233, -0.4086854159832001, 0.3941836357116699, -0.3915090560913086, 0.327056348323822...
Politics" scheme="http://gdata.youtube.com/schemas/2007/categories.cat"> News </media:category> <media:content url="http://www.youtube.com/v/bwbZJw-C4Jk&f=videos&app=youtube_gdata" type="application/x-shockwave-flash" medium="video" isDefault="true" expression="full" duration="236" yt:format="5"/> <media:content ur...
[ -0.05195688083767891, 0.08931973576545715, 0.34835192561149597, 0.29628586769104004, -0.1638796329498291, 0.04578094556927681, -0.13358983397483826, -0.3712892234325409, -0.6598954200744629, -0.1419914811849594, -0.3477843999862671, 0.42779937386512756, -0.3135015368461609, 0.1240145191550...
yt = "http://gdata.youtube.com/schemas/2007"; public function Gdata() { var atom:Namespace = new Namespace(); trace("0",xml.children()[22]); trace("1",xml.inScopeNamespaces()); trace("2",xml..media::group); trace("3",xml..yt::statistics.@favoriteCount); trace("4",xml..yt::duration.@seconds); trace("5",xml...
[ 0.2581113874912262, -0.5051977038383484, 0.6539586186408997, -0.10631762444972992, -0.16208556294441223, 0.14735718071460724, 0.1672639399766922, -0.29695144295692444, -0.13161754608154297, -0.4355710446834564, -0.3284601867198944, 0.4249819219112396, -0.44195088744163513, 0.07273495942354...
trace("1",xml.inScopeNamespaces()); trace("2",xml..media::group); trace("3",xml..yt::statistics.@favoriteCount); trace("4",xml..yt::duration.@seconds); trace("5",xml..author ); // why????????? trace("6",xml.author
[ 0.6567240953445435, -0.2522832155227661, 0.3924553096294403, 0.28379112482070923, 0.28474685549736023, -0.059591323137283325, 0.14111289381980896, -0.4054954946041107, -0.020260151475667953, -0.30445659160614014, -0.2900775074958801, 0.08267278969287872, -0.21874314546585083, -0.0420195087...
); // why????????? var x:int = 0; for each (var i in xml.children()) { if(i.localName() == 'author') { trace("author", i); } } } ```
[ 0.20839755237102509, 0.020565588027238846, 0.43094587326049805, -0.015975847840309143, 0.4152717888355255, -0.12255001068115234, 0.1543368697166443, -0.15304765105247498, 0.03659738600254059, -0.5957548022270203, -0.4723091423511505, 0.2671152949333191, -0.24106360971927643, 0.382576763629...
I often do the command such as: ``` mv folder $something_that_does_not_exist mv files* $something_that_does_not_exist ``` Then, I realise that my files are gone. I cannot see them even in the folder "$something\_that\_does\_not\_exist". Where have my files and folders gone? How can I get them back? In order to preve...
[ 0.22780974209308624, 0.39196786284446716, 0.5736926794052124, -0.6133531928062439, -0.08129856735467911, -0.1689934879541397, 0.5089332461357117, 0.007162916008383036, -0.425177663564682, -0.40081319212913513, -0.3893984258174896, 0.6424306631088257, -0.2615596055984497, 0.7342440485954285...
I am getting a bit confused here. In our application we are having a few servlets defined. Here is the excerpt from the `web.xml` for one of the servlets: ```xml <servlet> <servlet-name>AxisServlet</servlet-name> <display-name>Apache-Axis Servlet</display-name> <servlet-class>com.foo.framework.axis2.http.F...
[ 0.16978126764297485, -0.058172184973955154, 0.4367784559726715, -0.049143750220537186, -0.19810672104358673, 0.10125065594911575, 0.14504237473011017, -0.27831920981407166, -0.6700170636177063, -0.2874956727027893, -0.07336265593767166, 0.47909367084503174, -0.4905931353569031, 0.136033728...
0 or greater, > it indicates an order for servlets to be loaded, servlets with higher numbers get > loaded after servlets with lower numbers. The [JSP 3.1 spec](https://jcp.org/aboutJava/communityprocess/final/jsr340/) (JSR 340) says this on page 14-160: > The element `load-on-startup` indicates that this servlet s...
[ -0.1193941980600357, -0.2372112274169922, 0.5177709460258484, -0.08635025471448898, -0.09201309084892273, -0.09606025367975235, 0.054401613771915436, -0.3909043073654175, -0.21511949598789215, -0.23678159713745117, -0.5363461971282959, 0.1422855406999588, -0.5005130171775818, 0.27001702785...
to load the servlet whenever it chooses. If the value is a positive > integer or 0, the container must load and initialize the servlet as the application is > deployed. The container must guarantee that servlets marked with lower integers > are loaded before servlets marked with higher integers. The container may ch...
[ 0.05980820208787918, -0.016703031957149506, 0.4770166277885437, -0.03419458121061325, 0.018952960148453712, -0.28086408972740173, -0.04802686348557472, -0.3348448872566223, -0.3592745065689087, -0.5348311066627502, -0.40871283411979675, 0.41319915652275085, -0.332074373960495, -0.010115684...
Is there any way to suppress the pop-up titles on links, yet still keep them on the page for the visually impaired? That's a function of the browser to interpret the link title and display a tooltip/popup. There's no way to suppress them. I tried (because a client didn't like them either) and there's no way around them...
[ 0.4997003376483917, 0.3637562692165375, 0.544819176197052, 0.25674185156822205, 0.15936163067817688, -0.3587802052497864, 0.469987154006958, 0.31973516941070557, -0.46841591596603394, -0.22680793702602386, -0.04223871976137161, 0.44840022921562195, -0.2790893018245697, 0.10855327546596527,...
I'am trying to understand the example from program\_options of the boost library (<http://www.boost.org/doc/libs/1_38_0/doc/html/program_options/tutorial.html#id3761458>) Especially this part: ``` desc.add_options() ("help", "produce help message") ("compression", po::value<int>(), "set compression level") ; ...
[ 0.027129268273711205, 0.04361998662352562, 0.6313626170158386, -0.0877966657280922, 0.02046937309205532, -0.11708017438650131, 0.16600048542022705, -0.21112699806690216, -0.12361269444227219, -0.6013099551200867, -0.3871281147003174, 0.939487874507904, -0.34144067764282227, -0.188055321574...
the calls can be chained as you have shown.
[ 0.4123782515525818, -0.0757838785648346, 0.13869932293891907, 0.25108349323272705, -0.03430484980344772, -0.04754317179322243, 0.17805741727352142, -0.29285678267478943, -0.3118450343608856, -0.2879801094532013, -0.22036050260066986, 0.5474134087562561, -0.3470174968242645, 0.1280404925346...
If I have some xml containing things like the following mediawiki markup: > " ...collected in the 12th century, of which [[Alexander the Great]] was the > hero, and in which he was represented, > somewhat like the British [[King > Arthur|Arthur]]" what would be the appropriate arguments to something like: `re.fin...
[ 0.042780034244060516, -0.14239071309566498, 0.287984162569046, 0.3245176672935486, -0.32379186153411865, -0.1810922920703888, 0.16751033067703247, -0.3020947575569153, -0.32799768447875977, -0.5315371155738831, -0.47916939854621887, -0.09986967593431473, -0.417690247297287, 0.0149941090494...
outputs ['Alexander of Paris'] ``` Version 2, puts more into the regex, but as a result, changes the output: ``` import re pattern = re.compile(r"\[\[([\w ]+)(\|[\w ]+)?\]\]") text = "[[a|b]] fdkjf [[c|d]] fjdsj [[efg]]" results = pattern.findall(text) # outputs [('a', '|b'), ('c', '|d'), ('efg', '')] print [link...
[ -0.3307267427444458, 0.14645172655582428, 0.7190009355545044, -0.061445724219083786, -0.03121764026582241, 0.08161600679159164, 0.3087313175201416, -0.6794767379760742, -0.26812341809272766, -0.4499175250530243, -0.6421722173690796, 0.193825364112854, -0.6594223380088806, -0.11704856157302...
Is it possible to read the content of a file that has been selected with a file input control? I wish to do something like: ``` <input type="file" id="fileInput" onblur="readFile(this)"/> <script language="javascript"> function readFile(file) { document.write(file); } </script> ``` Is anything like this ...
[ 0.3794909417629242, -0.0370694175362587, 0.23228998482227325, 0.04325764626264572, 0.03970978409051895, -0.443608820438385, 0.17062115669250488, -0.03572602942585945, -0.18406637012958527, -0.8989186882972717, -0.27721959352493286, 0.6601164937019348, -0.312402606010437, -0.036973226815462...
using an `XMLHTTPRequest`.
[ -0.1067567765712738, -0.13882148265838623, 0.07455141842365265, 0.13577653467655182, -0.24046659469604492, -0.3741491436958313, -0.0454772487282753, 0.10325807332992554, -0.07255372405052185, -0.5628215670585632, -0.6721192598342896, 0.20793740451335907, -0.4243776798248291, -0.06632603704...
It seems like all of the Cocoa Touch templates are set up to load a nib. If I want to start a new project that's going to use a view controller, and load its view(hierarchy) programatically, not from a nib/xib, what are the steps to setting that up or adjusting a template. I though all I had to do was implement -loa...
[ 0.1357840746641159, 0.291399747133255, 0.2307431995868683, -0.23930703103542328, -0.10739755630493164, -0.03950392082333565, -0.006474170368164778, -0.009011543355882168, -0.36666715145111084, -0.6253505349159241, 0.05780141055583954, 0.6882725358009338, -0.3976929485797882, 0.071980074048...
NSAutoreleasePool *pool = [NSAutoreleasePool new]; UIApplicationMain(argc, argv, nil, @"MyAppDelegate"); [pool release]; return 0; } ``` where MyAppDelegate is the name of your application delegate class. This means that an instance of MyAppDelegate will be created on launch, something that is normal...
[ -0.03841884061694145, -0.1746109127998352, 0.6071694493293762, -0.0208599790930748, 0.17616477608680725, -0.108031265437603, 0.42525485157966614, -0.255344957113266, -0.09625659883022308, -0.7488018274307251, -0.3700180649757385, 0.40281006693840027, -0.26421263813972473, 0.338728040456771...
[self release]; return; } window.backgroundColor = [UIColor whiteColor]; rootController = [[MyRootViewController alloc] init]; [window addSubview:rootController.view]; [window makeKeyAndVisible]; [window layoutSubviews]; } ``` where MyRootViewController is the view controller for...
[ -0.017507869750261307, -0.17080923914909363, 0.5965476632118225, -0.14256346225738525, 0.013073171488940716, -0.04570744186639786, 0.4912475645542145, -0.27547764778137207, 0.004418571479618549, -0.694708526134491, -0.24168580770492554, 0.5416887402534485, -0.2690906822681427, 0.3067834675...
interface through MyRootViewController.
[ -0.1244850680232048, -0.06210913136601448, 0.5241333246231079, 0.27350082993507385, -0.05840115621685982, -0.05760445073246956, 0.09141577780246735, 0.43938639760017395, -0.01987292431294918, -1.2942650318145752, -0.178061380982399, 0.5802605748176575, 0.004699538461863995, 0.2204430103302...
I'm working on this project where the client has a virtual server setup. I installed apache and such and got everything working fine on localhost. But in order for it to show up on the internets, the people that run this virtual server needs me to: "If you try and reach 10.0.0.7:8000 you do not come to the index page...
[ 0.41057705879211426, 0.3080853521823883, 0.3165585398674011, -0.09423919767141342, 0.10865544527769089, -0.257639080286026, 0.4060891568660736, 0.1358645111322403, -0.4300912916660309, -0.9150389432907104, 0.3652755618095398, 0.7015193104743958, -0.06861483305692673, 0.252462774515152, 0...
everything together localhost and uploads his stuff with regular ftp). I bet the answer is simple, but their hotline is closed because they are accross the atlantic. Can someone tell me how to go round and do this? (I am almost blushing because for my not knowing). The virtual server is running on Windows 2003 OS I bel...
[ 0.08437220007181168, -0.16309987008571625, 0.6471174359321594, 0.07523548603057861, 0.15748701989650726, -0.40450891852378845, 0.8195171356201172, 0.19801150262355804, -0.5671281814575195, -0.4851415157318115, -0.107147216796875, 0.60861736536026, -0.05960273742675781, -0.04086143895983696...
Is it possible that when you have a webpage, when you open the PDF, the file view is defaulted to 100% size? Thanks. Use the [Open Parameters](http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf) for Acrobat PDF. ``` <a href="/path/to/doc.pdf#zoom=100">PDF Link</a> ```
[ -0.10939988493919373, -0.023471487686038017, 0.42732736468315125, 0.24962720274925232, 0.05093792825937271, -0.11890551447868347, 0.21302549540996552, -0.2200677990913391, -0.3543784022331238, -0.2638944089412689, -0.3254128098487854, 0.5430222153663635, -0.17860524356365204, -0.3853947818...
I have the following xml file and cannot seem to figure out how to get the value in the elements (which are buried in a CDATA). I am trying to use linq to xml for this. If someone knows how you would convert this into a "Product" object (assume we have a product object that has properties with the same names as the ele...
[ 0.35671496391296387, 0.1701771765947342, 0.4422704875469208, 0.19111672043800354, -0.030866296961903572, 0.048944201320409775, -0.2141307145357132, -0.21400803327560425, -0.29787546396255493, -0.5482838153839111, -0.10045331716537476, 0.2835552990436554, -0.03182234242558479, 0.06479189544...
= "http://api.cnet.com/rest/v1.0/ns"; XElement techProd = doc.Root.Element(ns + "TechProduct"); Product product = new Product { Id = (int)techProd.Attribute("id"), Name = techProd.Element(ns + "Name").Value, Topic = techProd.Element(ns + "Topic").Value, TopicId = (int)techProd.Element(ns + "Topic").Att...
[ 0.3468469977378845, -0.37640681862831116, 0.7560151815414429, -0.062286198139190674, 0.2171129435300827, 0.41493695974349976, -0.20003141462802887, -0.25637978315353394, -0.23807942867279053, -0.9123502969741821, -0.7996521592140198, 0.6134821772575378, -0.2774326205253601, 0.2515663206577...
TechProduct { get; set; } } [Serializable, XmlType(Namespace = CnetResponse.Namespace)] public class TechProduct { [XmlAttribute("id")] public int Id { get; set; } public string Name {get;set;} public Topic Topic { get; set; } [XmlElement("ImageURL")] public Image Image { get; set; } } [...
[ 0.6814192533493042, -0.7317255735397339, 0.7173252701759338, 0.3246355354785919, 0.10568274557590485, 0.3468037247657776, -0.34892693161964417, 0.19382214546203613, 0.02289518713951111, -1.0192205905914307, -0.7289424538612366, 0.971712589263916, -0.5212659239768982, -0.01146530918776989, ...
[XmlAttribute("width")] public int Width { get; set; } [XmlText] public string Url {get;set;} } ``` Or alternatively, just run the xml through `xsd.exe` to get C# code to suit: ``` xsd foo.xml xsd foo.xsd /classes ```
[ 0.23679660260677338, 0.03230217844247818, 0.7742815017700195, -0.10115016251802444, -0.29262620210647583, -0.1383504867553711, -0.1517060548067093, -0.24233096837997437, -0.1390085518360138, -0.6383394002914429, -0.3243824541568756, 0.46824800968170166, -0.10211524367332458, 0.246330633759...
Does the iPhone SDK include Xcode for Mac OS X development? Or do I need to install Xcode for Mac separately? If the latter, does order of installation matter? It includes it. It's all the same app (well, the iPhone version is newer, so download a copy, don't install the version that came with your Mac) Documentation...
[ 0.46826961636543274, 0.30780041217803955, 0.11116964370012283, -0.032993510365486145, 0.058576855808496475, -0.020823437720537186, 0.16138365864753723, -0.32755813002586365, -0.12589457631111145, -0.537041962146759, -0.1663963943719864, 0.5131086111068726, -0.3257159888744354, -0.285361856...
If I have a nullable "decimal? d" and I want to assign d to non nullable e, what is the proper way? ``` decimal e = d ?? 0.0; ```
[ 0.013545400463044643, 0.478677898645401, 0.05276425555348396, 0.06804971396923065, 0.16944830119609833, 0.019822590053081512, 0.1375623345375061, -0.22253012657165527, 0.3107617497444153, -0.34862837195396423, -0.347356915473938, 0.37232157588005066, -0.16735166311264038, 0.007490807678550...
How do I do the following SQL in LINQ? I am actually using LINQ to NHibernate (but maybe it's not possible in NHibernate LINQ due to embedded lambda expression I think). But I want to know generally how to do it in LINQ. I’ve never came across this situation before. ``` SELECT c.CustomerID, c.CustomerName --etc FROM ...
[ 0.05446900054812431, 0.08200429379940033, 0.6744113564491272, -0.21529622375965118, 0.012040860950946808, 0.21535247564315796, -0.16364213824272156, -0.28381556272506714, -0.006519225891679525, -0.4357318878173828, -0.05590890347957611, 0.6507179737091064, -0.17581546306610107, 0.080494731...
} public IList<Order> Orders { get; set; } } public class Order { public int OrderID { get; set; } public int CustomerID { get; set; } } ``` I want to do something similar to this: ``` var customers = (from c in Customers where c.Orders.Where(o => o.Status == 1) select c).ToList(); ``` THANK ...
[ 0.06977063417434692, -0.1605943739414215, 0.4592645764350891, -0.28167325258255005, 0.1830870807170868, 0.3321145176887512, -0.06597678363323212, -0.17232578992843628, -0.4024353325366974, -0.5088155269622803, -0.3072022795677185, 0.7236920595169067, -0.501034140586853, 0.12453258782625198...
select c ```
[ -0.023861566558480263, 0.3322613537311554, -0.1333153247833252, -0.15677183866500854, 0.3513675034046173, -0.18860623240470886, -0.18229205906391144, 0.10752671211957932, 0.150720477104187, -0.3763601779937744, -0.6505406498908997, 0.4432598650455475, -0.313595712184906, 0.242396280169487,...
How can we access and reference classes and variables in different pages in ASP.NET? In version 2003, it was straight forward, just reference the class name of the page and the whole page becomes at your command, but with Websites instead of Web Applications, that does not seem to be the case. I have an App\_Code folde...
[ 0.2562279999256134, -0.1331179440021515, 0.7799850106239319, -0.08028171211481094, -0.2451905757188797, 0.001955487998202443, 0.2827216386795044, -0.0067791929468512535, -0.2664850056171417, -0.8939618468284607, -0.05643405020236969, 0.4353533387184143, -0.5184136033058167, -0.048027399927...
public string thisUrl { get { return "/newfolder/mypage.aspx"; } } protected void Page_Load(object sender, EventArgs e) { } } ``` but obviously it doesnt work... it would be great if someone can refer me to a good source of knowledge as I tried MSDN, this site, and Google, and I also hav...
[ 0.15833868086338043, 0.24369123578071594, 0.5891322493553162, -0.04359302669763565, 0.04852903261780739, -0.32705217599868774, 0.5624945163726807, 0.14928807318210602, -0.025619585067033768, -0.7529967427253723, -0.1330001801252365, 0.2764827609062195, -0.39615944027900696, 0.1943833678960...
good idea to make pages dependent on each other like that IMHO ``` public partial class mypage : System.Web.UI.Page { public static string thisUrl { get { return "/newfolder/mypage.aspx"; } } } public partial class mypage : System.Web.UI.Page { ... Page_Load() { mypage.thisUrl ...
[ 0.06095011159777641, -0.040586989372968674, 0.6406189203262329, 0.12867307662963867, 0.0027933609671890736, -0.12929636240005493, 0.14984172582626343, 0.13612988591194153, -0.103317491710186, -0.8726152181625366, -0.3498567044734955, 0.5361393690109253, -0.46376049518585205, 0.148165240883...
I've followed all the steps to get intellisense working for jQuery in VS 2008 SP1 (with the vsdoc hotfix). It works when I reference jQuery inside an asp:ScriptManager control like so: ``` <asp:ScriptManager runat="server"> <scripts> ... </scripts> </asp:ScriptManager> ``` But I'm using ajax ToolkitScriptManager ins...
[ -0.15230035781860352, -0.0290071964263916, 0.1844746172428131, -0.052605897188186646, -0.461803674697876, -0.17983077466487885, 0.2655330300331116, 0.008727611973881721, 0.1363675892353058, -0.7699549198150635, 0.33006298542022705, 0.7088328003883362, -0.14297673106193542, -0.1534943431615...
to trick Visual Studio: ``` <% if(false) { %> <script src="/scripts/jquery-1.3.2.js" type="text/javascript"></script> <% } %> ``` The script tag will never be rendered but VS interprets it and enables intellisense.
[ 0.07644884288311005, -0.2474696934223175, 0.6216661334037781, 0.03178689628839493, 0.23841312527656555, -0.2976904809474945, 0.6108012795448303, -0.15270374715328217, 0.14758829772472382, -0.5727307200431824, 0.007122084032744169, 0.7438945770263672, -0.11485179513692856, -0.28528767824172...
I've seen some methods like this: ``` void SomeClass::someMethod() const; ``` What does this const declaration do, and how can it help optimize a program? **Edit** I see that the first part of this question has been asked before... **BUT**, it still doesn't answer the second part: how would this optimize the progr...
[ 0.07443936169147491, -0.039096299558877945, -0.028779571875929832, 0.15228740870952606, -0.04649313911795616, -0.1069158986210823, 0.04794812574982643, -0.24701127409934998, -0.09372931718826294, -0.3373944163322449, -0.05158960819244385, 0.5932527780532837, -0.3553280532360077, -0.0276810...
Can I replace these foreach's with LINQ or delegates? ``` foreach (List<Shopping.BasketPayment> payList in Basket.basketPayments) { foreach (var pay in payList) { if (pay.paymentMethod == "Money Order" { foreach (OrderItem orderItem in order.Items)
[ 0.11161863803863525, 0.07617528736591339, 0.5767733454704285, -0.09462175518274307, 0.2565515339374542, 0.2374395728111267, -0.1953314244747162, -0.6548007130622864, -0.22194190323352814, -0.4898333251476288, -0.21415013074874878, 0.6508155465126038, -0.207899808883667, 0.0477726124227047,...
{ ``` ``` var qry = from payList in Basket.basketPayments from pay in payList where pay.paymentMethod == "Money Order" from orderItem in order.Items // where did "order" come from? ... etc ending in `select` of one or more articles foreach(var item in qry) { // do something...
[ -0.11649791896343231, 0.06152169406414032, 0.32444122433662415, -0.22690030932426453, -0.07191523909568787, 0.5161566734313965, -0.21053794026374817, -0.3998512923717499, -0.38119208812713623, -0.5158590078353882, -0.3846321403980255, 0.27758848667144775, -0.296488493680954, 0.148232504725...
Here is a function similar to the one I've defined: ``` void Function( BYTE *data ); ``` What I would like to do is something like this: ``` Function( new BYTE { 0x00, 0x00 } ); ``` You cannot use the array initialiser syntax with dynamically allocated arrays using `new`. You could do something like this: ``` BYT...
[ -0.05761367455124855, 0.04441322386264801, 0.16612495481967926, -0.33075234293937683, -0.002914950018748641, 0.054752103984355927, -0.013533147051930428, -0.3622291088104248, -0.15054063498973846, -0.44342896342277527, -0.19287973642349243, 0.6405825018882751, -0.5933431386947632, -0.11596...
class `std::vector` which acts like a dynamically allocated (but type safe) array: ``` std::vector<BYTE> ary(2); Function(&ary[0]); ```
[ -0.22903038561344147, -0.2868298292160034, 0.09037065505981445, -0.06384523957967758, -0.18536250293254852, 0.1520661860704422, 0.006042766384780407, 0.012939419597387314, -0.2072460949420929, -0.28882303833961487, -0.2731364667415619, 0.4104543626308441, -0.7105745077133179, 0.06850009411...
I'm trying to use `NSNumberFormatter` to round a number to 5 decimal places in an iPhone app, but `[formatter stringFromNumber:]` always returns strings rounded to 0.001 (3 decimal places). What am I doing wrong? ``` formatter = [[NSNumberFormatter alloc] init]; [formatter setNumberStyle:NSNumberFormatterDecimalStyle]...
[ -0.22293619811534882, 0.25530698895454407, 0.3655126094818115, -0.10539046674966812, -0.050974175333976746, 0.5787221193313599, 0.2663056552410126, -0.35962215065956116, -0.3673553466796875, -0.11816077679395676, -0.1834479123353958, 0.3060995042324066, -0.026872403919696808, -0.0939549356...
When using [Restlets](http://restlet.org), how can I read configuration parameters passed in through web.xml? With servlets, [context-param](https://stackoverflow.com/questions/520467/how-to-read-the-web-xml-from-a-webapp) can be used. How do I read context parameters from within a Restlet? From the [mailing list](http...
[ -0.1429762989282608, -0.09828691929578781, 0.766777753829956, 0.09035346657037735, -0.06906390190124512, 0.3217516243457794, 0.20213089883327484, -0.6427934765815735, -0.4924647808074951, -0.5841870903968811, -0.659618616104126, 0.2451993077993393, -0.14082957804203033, -0.2243143320083618...
I have two machines each, to the best of my knowledge, running python 2.5 and BeautifulSoup 3.1.0.1. I'm trying to scrape <http://utahcritseries.com/RawResults.aspx>, using: ``` from BeautifulSoup import BeautifulSoup import urllib2 base_url = "http://www.utahcritseries.com/RawResults.aspx" data=urllib2.urlopen(ba...
[ -0.1540932059288025, 0.04408368095755577, 0.4248234033584595, -0.24657876789569855, -0.13192886114120483, 0.25144267082214355, 0.2956184446811676, -0.001214868389070034, 0.025650814175605774, -0.9114307165145874, 0.042432595044374466, 0.20048782229423523, 0.047168221324682236, 0.2796643376...
my mac, I don't. instead, I get ``` 3/2/2002 - Rocky Mtn Raceway Criterium None - Rocky Mtn Raceway Criterium 3/23/2002 - Rocky Mtn Raceway Criterium None - Rocky Mtn Raceway Criterium 4/2/2002 - Rocky Mtn Raceway Criterium None - Saltair Time Trial 4/9/2002 - Rocky Mtn Raceway Criterium None - DMV Criterium 4/16/2002...
[ -0.4652293026447296, 0.4372827410697937, 0.6080858707427979, 0.4921976923942566, -0.032507359981536865, -0.04824171960353851, 0.546081006526947, 0.09186068922281265, -0.4268104135990143, -0.3061698377132416, 0.512589693069458, 1.2794792652130127, 0.08880142867565155, -0.13325455784797668, ...
<a disabled="disabled"> Results </a> </td> </tr> <tr style="color:#333333;background-color:#EFEFEF;"> <td> 3/16/2002 </td> <td> <a href="Event.aspx?id=227"> Rocky Mtn Raceway Criterium </a> </td> <td> Confirmed </td> <td> <a href="Event.aspx?id=227"> Points </a> </td> <td> <a disabled="disabled"> Resul...
[ -0.6710662245750427, 0.14049102365970612, 0.38756969571113586, 0.26115232706069946, -0.2237042337656021, 0.030190445482730865, 0.1590917706489563, -0.2721881866455078, -0.31030961871147156, -0.21199291944503784, 0.24062280356884003, 0.683137834072113, 0.025301078334450722, 0.04340910166501...
</a> </td> </tr> <tr bgcolor="#EFEFEF"> <td> <font color="#333333"> 3/16/2002 </font> </td> <td> <font color="#333333"> <a href="Event.aspx?id=227"> Rocky Mtn Raceway Criterium </a> </font> </td> <td> <font color="#333333"> Confirmed </font> </td> <td> <font color="#333333"> <a href="Event.aspx?id=...
[ -0.34286779165267944, 0.32306820154190063, 0.3466922342777252, 0.4248235523700714, 0.059044864028692245, -0.17853473126888275, 0.46982577443122864, -0.34051617980003357, -0.374526709318161, -0.001159055856987834, 0.3318273723125458, 0.8120274543762207, -0.07968664169311523, 0.1494404375553...
machines: ``` urllib2.urlopen(base_url) ``` This page looks like it might help: <http://bytes.com/groups/python/635923-building-browser-like-get-request> The simplest solution is probably just to detect which environment the script is running in and change the parsing logic accordingly. ``` >>> import os >>> os.u...
[ 0.04067232832312584, 0.3202933669090271, 0.5226135849952698, 0.2684456408023834, 0.08580299466848373, 0.06540665775537491, 0.2774251401424408, 0.09436289966106415, -0.3980601727962494, -1.0842692852020264, 0.0698002502322197, 0.5026975274085999, -0.37847673892974854, 0.363472580909729, -...
Is it possible to use shared object files in a portable way like DLLs in Windows?? I'm wondering if there is a way I could provide a compiled library, ready to use, for Linux. As the same way you can compile a DLL in Windows and it can be used on any other Windows (ok, not ANY other, but on most of them it can). Is t...
[ 0.44114959239959717, 0.07652109116315842, 0.002554201288148761, 0.3553892970085144, 0.03937578573822975, -0.1980089247226715, -0.0026668498758226633, 0.27601033449172974, -0.4092838764190674, -0.6905338168144226, 0.00818200595676899, 0.4596208930015564, -0.11614838242530823, 0.037263799458...
so users with no experience on compilation dont need to do it themselves. Hence the idea is to provide a .so file that works on as many different Linuxes as possible. The library is written in C++, using STL and Boost libraries. I **highly** **highly** recommend using the LSB app / library checker. Its going to t...
[ 0.4209980368614197, -0.06219979375600815, 0.2674100399017334, 0.1154562458395958, 0.05550818517804146, -0.38619279861450195, 0.009679315611720085, -0.0439181849360466, -0.025808414444327354, -0.9242693781852722, -0.2601704001426697, 0.5202619433403015, -0.13615632057189941, -0.287578016519...
upon lots of other very good checks You can get [more information here](http://ldn.linuxfoundation.org/lsb/check-your-app) as well as download the tool. Its easy to run .. just untar it, run a perl script and point your browser at localhost .. the rest is browser driven. Using the tool, you can easily get your librar...
[ 0.3713771104812622, -0.14999106526374817, 0.45767682790756226, 0.10932395607233047, -0.11476877331733704, -0.3999057710170746, 0.15803541243076324, 0.053872741758823395, -0.2680418789386749, -0.7990254163742065, -0.3234988749027252, 0.8132362365722656, -0.20682235062122345, -0.034890733659...
your library to appear in most distributions, so writing a portable program, I can't count on it being present) and comment your public interface well. For libraries, I find that [Doxygen](http://www.doxygen.nl/) works the best. Documentation is very important, it surely influences my choice of library to use for any ...
[ 0.4527794122695923, 0.14850682020187378, 0.1338857114315033, 0.44858336448669434, -0.046929482370615005, -0.3373506963253021, 0.15199555456638336, 0.3010668158531189, -0.5363385081291199, -0.960035502910614, -0.033051203936338425, 0.49941855669021606, 0.020688755437731743, 0.06450421363115...
I said, it could take a couple of years before it becomes common in most distributions. Its much easier for me to just grab your code, drop it in src/lib and use it, until and if your library is common. And please, please .. give me unit tests, [TAP](http://ccan.ozlabs.org/info/tap.html) (test anything protocol) is a g...
[ 0.85031658411026, 0.08616586774587631, -0.025899086147546768, 0.3913380801677704, 0.20243394374847412, -0.4136011302471161, -0.062155935913324356, 0.04142788052558899, -0.34808826446533203, -0.6727302670478821, -0.037802018225193024, 0.3974383771419525, -0.0802055224776268, 0.0919719487428...
A Ruby Struct allows an instance to be generated with a set of accessors: ``` # Create a structure named by its constant Customer = Struct.new(:name, :address) #=> Customer Customer.new("Dave", "123 Main") #=> #<Customer name="Dave", address="123 Main"> ``` This looks convenient and powerful, however, ...
[ 0.1133124828338623, 0.4044570028781891, 0.2555292546749115, -0.07335297018289566, -0.49906620383262634, 0.01564212329685688, 0.4312843978404999, -0.030797023326158524, 0.09781722724437714, -0.5758097171783447, -0.023175686597824097, 0.30548208951950073, -0.42646345496177673, 0.147520810365...
to make a piece of data act like a collection of data instead of loosely coupled under a `Hash`. For instance I've made a script that downloads videos from Youtube and in there I've a struct to represent a Video and to test whether all data is in place: ``` Video = Struct.new(:title, :video_id, :id) do def to_s ...
[ 0.6897552013397217, 0.057014841586351395, 0.5956591367721558, 0.054638635367155075, -0.003407300217077136, -0.08638030290603638, 0.18999341130256653, -0.42614027857780457, -0.4390595853328705, -0.2909051179885864, -0.05124642327427864, 0.39600425958633423, -0.2543019652366638, 0.2965120673...
is [James Edward Gray IIs](http://blog.grayproductions.net/) [configuration class](http://www.ruby-forum.com/topic/138141#614705) which uses `OpenStruct` to easily add configuration variables loaded from an external file: ``` #!/usr/bin/env ruby -wKU require "ostruct" module Config module_function def load_conf...
[ -0.11727511882781982, 0.2249295860528946, 0.40318194031715393, -0.08145835250616074, 0.017112061381340027, -0.17735157907009125, 0.19906531274318695, -0.5440824627876282, -0.019083963707089424, -0.4245487153530121, -0.5772441029548645, 0.47145187854766846, -0.4032512307167053, 0.0992738455...
no value set will return `Nil`
[ -0.1276789903640747, 0.3718637228012085, -0.258463054895401, -0.07502219825983047, -0.3573490381240845, 0.038706231862306595, 0.24217210710048676, 0.19160987436771393, 0.21077844500541687, -0.4316113591194153, -0.3720213770866394, 0.24741429090499878, -0.09865237027406693, 0.39602577686309...
The situation: A user on the page in question selects a category from a dropdown which then dynamically populates all the users of that category in a second dropdown beside it. All the data is being retrieved using LinqtoSQL and I was wondering if this can be done a) Using html.dropdownlist in a strongly typed view? ...
[ 0.02519657090306282, -0.09134603291749954, 0.49969515204429626, 0.16823558509349823, -0.049761369824409485, -0.07682149857282639, 0.21252049505710602, 0.061814937740564346, -0.26352593302726746, -0.37833502888679504, -0.26635733246803284, 0.47424837946891785, -0.21778343617916107, 0.129223...
to examples etc greatly! Thanks in advance! EDIT: This is kind of what I was trying to achieve.Dirst the ViewPage: ``` <script type="text/javascript"> $(document).ready function TypeSearch() { $.getJSON("/Home/Type", null, function(data) { //dont know w...
[ 0.15709266066551208, -0.0042011127807199955, 0.45803356170654297, -0.2072746902704239, 0.2524607479572296, -0.3062763810157776, 0.551365315914154, -0.0855114683508873, -0.029984014108777046, -0.7962315678596497, -0.3553563058376312, 0.7307706475257874, -0.11374901235103607, 0.0381835177540...
}); } </script> <p> <label for="userType">userType:</label> <%= Html.DropDownList("userType") %> <%= Html.ValidationMessage("userType", "*") %> <input type="submit" runat="server" onclick="TypeSearch()" />
[ -0.1281142234802246, -0.05615009367465973, 0.5594213604927063, -0.18889504671096802, 0.015841379761695862, 0.08122049272060394, 0.25192514061927795, -0.6204499006271362, 0.03855081647634506, -0.39423292875289917, -0.4594360589981079, 0.28274112939834595, -0.2532889246940613, -0.01368082221...
<label for="accountNumber">accountNumber:</label> <%= Html.DropDownList("accountNumber") %> <%= Html.ValidationMessage("accountNumber", "*") %> </p> ``` Then home controller action: ``` public ActionResult Type() { string accountType = dropdownvalue; List<Accou...
[ 0.057848408818244934, 0.09086376428604126, 0.6766253113746643, -0.32165104150772095, 0.11594527214765549, 0.18546408414840698, 0.34338581562042236, -0.3918699324131012, -0.37055930495262146, -0.6359621286392212, -0.16319166123867035, 0.6237547397613525, -0.04077766090631485, -0.07684439420...
to make a piece of data act like a collection of data instead of loosely coupled under a `Hash`. For instance I've made a script that downloads videos from Youtube and in there I've a struct to represent a Video and to test whether all data is in place: ``` Video = Struct.new(:title, :video_id, :id) do def to_s ...
[ 0.6897552013397217, 0.057014841586351395, 0.5956591367721558, 0.054638635367155075, -0.003407300217077136, -0.08638030290603638, 0.18999341130256653, -0.42614027857780457, -0.4390595853328705, -0.2909051179885864, -0.05124642327427864, 0.39600425958633423, -0.2543019652366638, 0.2965120673...
is [James Edward Gray IIs](http://blog.grayproductions.net/) [configuration class](http://www.ruby-forum.com/topic/138141#614705) which uses `OpenStruct` to easily add configuration variables loaded from an external file: ``` #!/usr/bin/env ruby -wKU require "ostruct" module Config module_function def load_conf...
[ -0.11727511882781982, 0.2249295860528946, 0.40318194031715393, -0.08145835250616074, 0.017112061381340027, -0.17735157907009125, 0.19906531274318695, -0.5440824627876282, -0.019083963707089424, -0.4245487153530121, -0.5772441029548645, 0.47145187854766846, -0.4032512307167053, 0.0992738455...
no value set will return `Nil`
[ -0.1276789903640747, 0.3718637228012085, -0.258463054895401, -0.07502219825983047, -0.3573490381240845, 0.038706231862306595, 0.24217210710048676, 0.19160987436771393, 0.21077844500541687, -0.4316113591194153, -0.3720213770866394, 0.24741429090499878, -0.09865237027406693, 0.39602577686309...
As I always understood it, any change to the programs state (or anything to do with IO) is a side effect. It does not matter, whether the change occurs in a global variable or in a private field of the object the method is called on. It follows that all methods which do not return anything either do nothing at all or h...
[ 0.31844258308410645, 0.10372697561979294, 0.15400560200214386, 0.17547883093357086, -0.0038498053327202797, -0.20604613423347473, 0.3001384437084198, 0.13856151700019836, -0.1652223765850067, -0.4364459812641144, -0.1431674063205719, 0.16129910945892334, -0.28658342361450195, 0.21179515123...
to the SO editors for not pasting the entire article here, this is what Wikipedia has to say: [http://en.wikipedia.org/wiki/Side\_effect\_(computer\_science)](http://en.wikipedia.org/wiki/Side_effect_%28computer_science%29) Money Quote #1: > In computer science, a function or expression is said to have a side effect...
[ 0.2104671448469162, 0.1747109442949295, 0.09727813303470612, -0.01480746641755104, -0.19906902313232422, 0.014757152646780014, 0.009297600015997887, -0.2747706472873688, 0.013696499168872833, 0.047317542135715485, -0.17698977887630463, 0.5570275783538818, -0.22661326825618744, 0.1962145119...
Since Google App Engine doesn't permit joins, does this mean that I have to take all of the tables in my web app and figure out a way of combining them into a single huge table? Just because you don't have joins implemented by the DBMS doesn't mean you can't have multiple tables. In App Engine, these are called 'entity...
[ 0.36043259501457214, 0.27780935168266296, 0.30178993940353394, 0.22590306401252747, 0.1468239724636078, 0.05043074116110802, 0.1339283138513565, -0.07493137568235397, -0.5031827092170715, -0.5872558951377869, -0.04657004401087761, -0.010737732984125614, -0.7308522462844849, 0.0359310843050...
the join in user code.
[ 0.09324951469898224, 0.13842546939849854, 0.33425280451774597, -0.00136366777587682, -0.00195468426682055, -0.22289252281188965, 0.07992930710315704, 0.11209879070520401, -0.14033593237400055, -0.634704053401947, -0.48129919171333313, 0.14586977660655975, -0.2624906003475189, 0.13273881375...
What is the best way to build a **non web browser** stand alone php app that works with some sort of database without requiring the user to install a database server. Or am i just asking too much? If you're targeting Windows, try [WinBinder](http://winbinder.org). It allows you to develop native Windows applications us...
[ 0.47701916098594666, 0.006510922685265541, -0.022421138361096382, 0.2087855488061905, -0.1914295107126236, -0.1767653375864029, 0.1902153640985489, 0.29834291338920593, -0.123436339199543, -0.6316245198249817, 0.20811347663402557, 0.6322469115257263, -0.22663713991641998, 0.132439017295837...
JSLint (with the onevar flag turned on) is flagging some javascript code that I have with the following: ``` Problem at line 5 character 15: Too many var statements. ``` I am happy to fix these errors, but I'd like to know, am I doing it for performance or because it is just a bad practice and has a greater potential...
[ 0.24981689453125, 0.04085041210055351, 0.06254243105649948, -0.3970564603805542, -0.5540375113487244, -0.0689988061785698, 0.6503545641899109, 0.007114465348422527, -0.17634283006191254, -0.46460574865341187, 0.04325415939092636, 0.7161864042282104, -0.5940984487533569, 0.2874819040298462,...
attempt at an example. Explain how the code will benefit from only having 1 var statement: ``` function Test(arg) { var x = arg + 1, y = cache.GetItem('xyz'); if (y !== null) { // This is what would cause the warning in JSLint var request = ajaxPost(/* Parameters here */); } } ``` Javascr...
[ 0.22541382908821106, -0.07003864645957947, -0.16734111309051514, -0.20496973395347595, -0.10044612735509872, -0.269596666097641, 0.5873956680297852, -0.15170104801654816, -0.1982397586107254, -0.5471335053443909, -0.23699288070201874, 0.2539905905723572, -0.5483500957489014, -0.10035892575...
it, but in javascript you can. The author of JSLint believes it is a bad practice, since you (or other readers) might get confused and think that you can no longer access the variable, but you actually can. Therefore, you should declare all your variables at the top of the function.
[ 0.11547940224409103, -0.13137546181678772, 0.16032709181308746, -0.04835667088627815, -0.0020727571099996567, -0.4820292592048645, 0.49742916226387024, 0.07872539758682251, 0.025323057547211647, -0.30373111367225647, -0.42997410893440247, 0.5793954133987427, -0.5174840688705444, 0.07103651...
I'm working my way through the MVC Storefront code and trying to follow the path of a repository, a service and a model that is a poco, outside of the dbml/data context. It's pretty easy to follow actually, until I started writing tests and things failed in a way I just don't understand. In my case, the primary key is...
[ 0.12741562724113464, 0.43265825510025024, 0.28455016016960144, -0.3469098210334778, 0.2038794457912445, 0.20232875645160675, 0.09024184197187424, -0.10327106714248657, -0.04252919554710388, -0.5020999312400818, -0.28859394788742065, 0.46607705950737, -0.18164627254009247, 0.621286511421203...
Name = r.Name }; } ``` In this case, Restaurant is a Models.Restaurant of course, and not \_context.Restaurants.Restaurant. Filtering in the service class (or in repository unit tests) against All(), this works just as expected: ``` var results = Repository.All().Where(r => r.Name == "BW<3").ToList(); ```...
[ -0.12314660847187042, 0.2310609370470047, 0.38157594203948975, -0.23322154581546783, 0.07718322426080704, 0.018511727452278137, 0.2119150608778, -0.3836677074432373, -0.27156496047973633, -0.5730074048042297, -0.2738083302974701, 0.5534287095069885, -0.3216313421726227, 0.23410004377365112...
class level the linq2sql layer isn't aware of. To me, that means the the first version shouldn't work either. Of course, if my pk is an int, it works just fine. What's really going on here? Lord knows, it's not very intuitive to have one work and one not work. What am I misunderstanding? The easiest way to fix your co...
[ 0.04590144008398056, -0.1674111932516098, 0.41509395837783813, 0.044241636991500854, 0.2505282461643219, -0.1869286745786667, 0.40644386410713196, -0.010054637677967548, -0.03312171995639801, -0.5217342972755432, -0.10756569355726242, 0.6937010288238525, -0.26426205039024353, 0.16930751502...
print "$var2\n"; } ``` One of the problematic lines in your code was `my $int = @_`, which was equivalent to `my $int = 1`, because it evaluated `@_` in scalar context, yielding the number of elements in `@_`. To get the first argument of your sub, use `my($int) = @_;`, which evaluates `@_` in list context, or fetch ...
[ -0.1674260050058365, -0.26836252212524414, 0.3723565340042114, -0.32500627636909485, -0.2322569489479065, 0.13102370500564575, 0.42437639832496643, -0.40058547258377075, -0.217377170920372, -0.290946900844574, -0.17182883620262146, 0.519108772277832, -0.5288118720054626, -0.052509814500808...
list context, yielding the list of `($1, $2, ...)`, and assigning `$var2 = $1`. The construct `(??{...})` you were trying to use had the opposite effect to what you wanted: (among doing other things) it compiled your regexp the first time it was used for matching. For regexps containing `$` or `@`, but not containing ...
[ 0.0023419829085469246, -0.2604394853115082, 0.5767820477485657, -0.028824763372540474, -0.3130970895290375, 0.20016109943389893, -0.16048859059810638, -0.24423274397850037, -0.2347307652235031, -0.3059398829936981, -0.07769058644771576, 0.6024553775787354, -0.647710382938385, 0.03017458692...
it didn't work in your example is that you would have needed an extra layer of parentheses to capture `$1`, but even with `my ($var2) = $var =~ m/((??{$int}))/` it wouldn't have worked, because `??{` has an undocumented property: it forces the compilation of its argument the first time the regexp is used for matching, ...
[ -0.048659272491931915, -0.028241269290447235, 0.269253671169281, -0.11812224239110947, 0.17376556992530823, 0.15439733862876892, 0.3448061943054199, -0.43211352825164795, -0.023627951741218567, -0.2307550460100174, -0.00821513868868351, 0.8124440312385559, -0.31664058566093445, 0.026003349...
Is it possible to write a cross server select query using MySQL Client. Basically the setup is like follows. Server IP       Database ---------       -------- 1.2.3.4       Test a.b.c.d       Test I want to write a query that will select rows from a table in the Test Database on 1.2.3.4 and insert the result...
[ 0.3143766522407532, -0.14021454751491547, 0.3407265245914459, 0.11985018104314804, -0.007518138736486435, -0.01899551786482334, -0.05001622065901756, 0.00733014615252614, 0.055931370705366135, -0.9393841028213501, 0.405744343996048, 0.07613535225391388, -0.3181237578392029, 0.1505421400070...
... INTO OUTFILE` and then `LOAD DATA INFILE ...` commands. MySQL does have the federated storage engine which might be useful to you. Here's some more documentation on it <http://dev.mysql.com/doc/refman/5.0/en/federated-storage-engine.html> I have to confess that I've not had huge success with it but it might work f...
[ 0.25274452567100525, -0.32872676849365234, 0.18275710940361023, 0.10128015279769897, -0.2098221331834793, 0.037549275904893875, -0.27761775255203247, 0.25336065888404846, -0.11969394981861115, -0.5552564263343811, 0.2538329064846039, 0.6272810101509094, -0.3568441867828369, -0.040720589458...
I have a free command line tool called [FW Tools](http://fwtools.maptools.org/). Works great. Here is a sample line i enter in the console window :- ``` ogr2ogr -f "ESRI Shapefile" -a_srs "EPSG:26986" -t_srs "EPSG:4326" towns_geodetic.shp TOWNSSURVEY_POLY.shp ``` I wish to change the last to arguments, based on ...
[ 0.1746092140674591, 0.10087688267230988, 0.5916439890861511, -0.06324315071105957, 0.16536349058151245, 0.07309150695800781, 0.09153658896684647, 0.1653624027967453, -0.1662321537733078, -0.9237678647041321, 0.01777050457894802, 0.5870148539543152, 0.056251488626003265, -0.0968466699123382...
more of a detailed approach to this and do something like this ``` string ApplicationName = "ogr2ogr"; string BaseOptions = "-f \"ESRI Shapefile\" -a_srs \"EPSG:26986\" -t_srs \"EPSG:4326\""; //Start your loop here ProcessStartInfo oStartInfo = new ProcessStartInfo() oStartInfo.FileName = Appli...
[ 0.07452481240034103, 0.06115639954805374, 0.6704761981964111, -0.2529776096343994, 0.3943496346473694, -0.12036660313606262, 0.3684644401073456, -0.08168456703424454, -0.49092555046081543, -0.6986513137817383, -0.24863052368164062, 0.5205882787704468, -0.12046750634908676, 0.11230178922414...
I want to know, How can I store multiple rows in a variable.i.e. My query will return multiple rows and i want to store it in a variable. Thanks in adv. In SQL Server 2008, there's a feature called **[Table Valued Parameters](http://www.sqlteam.com/article/sql-server-2008-table-valued-parameters)** which allow you to s...
[ 0.03359734266996384, 0.0892852395772934, 0.3697757124900818, 0.1182355284690857, -0.1754077523946762, 0.10839993506669998, -0.15685708820819855, -0.23201175034046173, -0.3442205786705017, -0.4406887888908386, 0.33136704564094543, 0.5541340708732605, -0.3254739046096802, 0.27539342641830444...
now contains all the rows matching the criteria, you can still continue to add more rows, do further manipulations and even return its contents.
[ -0.022019680589437485, 0.09627427905797958, 0.5507014393806458, 0.19338081777095795, 0.1477542370557785, 0.03184925764799118, 0.044005151838064194, -0.05194276571273804, -0.20840305089950562, -0.6080538630485535, -0.029315052554011345, 0.07490596175193787, -0.10261990129947662, 0.368858426...
I've been approached to set up an internet radio station that is focused on the local music scene in El Paso, TX. I've looked at various options, but it seems most solutions out there are for streaming pre-recorded audio. While I might need to fall back on this, I was wondering if anyone had done a similar project and ...
[ 0.7526822686195374, 0.12611471116542816, 0.2688947319984436, 0.2822699248790741, -0.045788899064064026, -0.6477000713348389, 0.3396133482456207, 0.4809315800666809, -0.21448533236980438, -0.44155338406562805, 0.04081370308995247, 0.8455248475074768, 0.06591115146875381, -0.0650901794433593...
(FLV) file can contain only audio. FLV files are a 'progressive' format - you can start playing them before you've received the whole file. FLV files can be 'progressively downloaded' via normal http. The Open Source (GPL) [Movino](http://www.movino.org/) server does just this - it receives audio packets from some s...
[ 0.5070773363113403, -0.33274218440055847, 0.7416552901268005, 0.13069961965084076, -0.22371843457221985, -0.4436171352863312, -0.19136695563793182, -0.28660863637924194, -0.5717593431472778, -0.07802855223417282, -0.0796881765127182, 0.8818387389183044, -0.2568228840827942, 0.1537852138280...
scale!
[ 0.07500404864549637, 0.04968825355172157, 0.016741454601287842, 0.09667335450649261, -0.29269492626190186, -0.1190793439745903, 0.22603178024291992, -0.026311712339520454, -0.47074094414711, -0.2600472867488861, 0.12322846055030823, 0.2354394942522049, 0.0023176383692771196, 0.315452903509...
I have a string that may have whitespace characters around it and I want to check to see whether it is essentially empty. There are quite a few ways to do this: ``` 1 if (myString.Trim().Length == 0) 2 if (myString.Trim() == "") 3 if (myString.Trim().Equals("")) 4 if (myString.Trim() == String.Empty) 5 if (myStr...
[ 0.04472731426358223, 0.0292845219373703, 0.379939466714859, -0.1801072508096695, 0.10268326103687286, -0.09591931104660034, 0.23978978395462036, -0.42472967505455017, 0.04845735430717468, -0.6721211075782776, -0.0921877920627594, 0.7235108017921448, -0.1424548327922821, -0.2525612711906433...
visitors to this question: 1. There have been some amazingly detailed investigations into this question - particularly from Andy and Jon Skeet. 2. If you've stumbled across the question while searching for something, it's well worth your while reading at least Andy's and Jon's posts in their entirety. It seems that t...
[ 0.30180656909942627, 0.19628632068634033, 0.23573200404644012, 0.28852370381355286, -0.19892728328704834, -0.07006227970123291, 0.08491477370262146, 0.13757558166980743, -0.3490544855594635, -0.5540658235549927, -0.3157881796360016, 0.019826527684926987, 0.012653389014303684, -0.1211414113...
as the "correct" one simply because he deserves the reputation boost for the effort he put in and Jon has like eleventy-billion reputation already. **Edit: New tests:** ``` Test orders: x. Test name Ticks: xxxxx //Empty String Ticks: xxxxx //two space Ticks: xxxxx //single letter Ticks: xxxxx //single letter with spac...
[ -0.3792917728424072, -0.00525766471400857, 0.6937103867530823, 0.4481143057346344, -0.04163143411278725, 0.3443775773048401, 0.26035425066947937, -0.6681103110313416, -0.19125071167945862, -0.4592096507549286, -0.018571848049759865, 0.3462677597999573, -0.25390326976776123, 0.1082996502518...
18551904 ticks: 40183768 6. if (IsEmptyOrWhitespace(myString)) //See John Skeet's Post for algorithm ticks: 6597776 ticks: 9988304 ticks: 7855664 ticks: 7826296 ticks: 7885200 ticks: 7872776 7. is (string.IsNullOrEmpty(myString.Trim()) //Cloud's suggestion ticks: 4302232 ticks: 10200344 ticks: 18425416 ticks: 2949...
[ -0.07904605567455292, -0.16420499980449677, 0.48108336329460144, 0.03376496583223343, 0.4628119468688965, 0.4471541941165924, 0.33459219336509705, -0.4615415930747986, -0.37699180841445923, -0.6417755484580994, -0.03240584582090378, 0.40246108174324036, -0.5500416159629822, 0.3138386011123...
myString = ""; break; case 1: myString = " "; break; case 2: myString
[ -0.6679314374923706, -0.2648223340511322, 0.41885337233543396, -0.12273740023374557, -0.08124759793281555, -0.0351259708404541, 0.2898010313510895, -0.21736443042755127, -0.38900500535964966, -0.1079125627875328, -0.5411808490753174, 0.43153923749923706, -0.2223835289478302, -0.18932898342...
= "x"; break; case 3: myString = "x "; break; case 4: myString = "this is a long
[ -0.10194727033376694, -0.32817158102989197, 0.5609350204467773, -0.18314941227436066, 0.2128259837627411, -0.2898901104927063, 0.30196741223335266, 0.06749216467142105, -0.17006486654281616, 0.32120057940483093, -0.6457382440567017, 0.3400653004646301, -0.22040583193302155, 0.3006325066089...
string for testing triming empty things."; break; case 5: myString = "this is a long string for testing triming empty things. "; break; } bool result = false;
[ 0.04257408529520035, -0.27619409561157227, -0.19972781836986542, -0.3012836277484894, 0.281167596578598, -0.19661158323287964, 0.5346992611885071, -0.14987069368362427, -0.010461983270943165, 0.023883262649178505, -0.379981130361557, 0.6811025142669678, -0.1874249130487442, 0.1006353199481...
Stopwatch sw = new Stopwatch(); sw.Start(); for (int i = 0; i <= 100000; i++) { result = myString.Trim().Length == 0; } sw.Stop(); res += "ticks: " + sw.ElapsedTicks + Environment.NewLine; } Console.ReadKey(); //break point here to get the results } ```
[ 0.2703460454940796, -0.4520236551761627, 1.0247280597686768, -0.26919740438461304, 0.32374295592308044, 0.19328035414218903, 0.29199516773223877, -0.5198248028755188, -0.3925785720348358, -0.4364182651042938, -0.07073081284761429, 0.5697019100189209, -0.1868295520544052, 0.3708310723304748...
I'm looking for a replacement for JCaptcha, which doesn't seem to be maintained any more, and isn't very good to begin with. The replacement has to integrate nicely with JavaEE webapps. As I can see it, there are three options: * JCaptcha - No longer maintained, crude API * SimpleCaptcha - much nicer API, nicer captc...
[ 0.3063989281654358, -0.28944504261016846, 0.531088650226593, 0.12663523852825165, -0.16968248784542084, -0.049113545566797256, 0.4381176233291626, 0.08097409456968307, -0.3960249125957489, -0.9043570160865784, 0.01474015787243843, 0.49351322650909424, -0.4200517237186432, -0.00911960657685...
world better (improve OCR results to old text), with almost unlimited database. All other captchas are usually limited by its database, or do nothing good to this world. **EDIT :: I found steps how to implement captcha using recaptcha.** You can check both Online and Offline captcha using java [here](http://technosc...
[ 0.0005885056452825665, -0.28327685594558716, 0.7129150032997131, 0.29010656476020813, 0.0048187910579144955, -0.22974921762943268, 0.4060262143611908, 0.16437219083309174, -0.3044974207878113, -0.6724653840065002, -0.24625976383686066, 0.5608563423156738, -0.18632687628269196, -0.067199863...
My application generally running on 10-20 threads and these threads sending events to the GUI to the update certain controls almost every seconds. When the user close the application middle of these, all updates related with these events causes several random crashes. Mostly `ObjectDisposedException` and `NullReferenc...
[ 0.15559181571006775, 0.24996794760227203, 0.635219156742096, -0.06817995756864548, 0.13179028034210205, -0.22481732070446014, 0.6019308567047119, 0.16452984511852264, -0.2957985997200012, -0.7830703854560852, -0.23934273421764374, 0.4359394609928131, -0.2642538249492645, 0.3694176971912384...
threads (via a flag somewhere) * presumably to talk to your UI, you are raising events that are handled by the UI (which handles synchronization etc) - keep a flag, and (if it is safe to do do) simply drop events if the flag has been set (again, because you are exiting) * when exiting, have the UI unsubscribe from even...
[ 0.06482402235269547, -0.41380345821380615, 0.23815076053142548, 0.2021949142217636, 0.2266160100698471, -0.10343705862760544, 0.24296338856220245, 0.19906312227249146, -0.4772709310054779, -0.6471570134162903, -0.20867642760276794, -0.013932404108345509, -0.3417508006095886, 0.358924746513...