text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
While searching the web, I've found many references to a "MobileMe API" (or .Mac API) for syncing data with MobileMe, but I can't find any authoritative documentation, even on Apple's site. Anybody know where it is or how to get it? There isn't a MobileMe API or SDK available right now. It was a rumor on WWDC ‘08. Ma...
[ 0.5299147963523865, 0.15784139931201935, 0.4958169758319855, 0.2225715070962906, 0.37587770819664, -0.10574451833963394, 0.22889815270900726, 0.5095788240432739, -0.15320156514644623, -0.4700475335121155, 0.021941067650914192, 0.37284713983535767, -0.1375301033258438, 0.08456995338201523, ...
I'd like to know whose responsibility in the team it is to take the spec (produced by the business analysts) and itemize it (tickets and sub-tasks) in the issue management system (e.g. JIRA) (for the perusal of the developers). I have a feeling it depends on your project management method of choice (e.g. PRINCE2) and/...
[ 0.40866079926490784, 0.20159052312374115, -0.010158587247133255, 0.35140901803970337, -0.02145424112677574, -0.10462754219770432, -0.1777992695569992, -0.26979976892471313, -0.21915222704410553, -0.39193952083587646, -0.18324637413024902, 0.5935006737709045, 0.26842954754829407, -0.2043700...
where you take each requirement in the business analysts' requirements specification and break it up into the functionality that implements that requirement. This is also known as *functional design*, so you are talking about a functional designer. You may choose to document your functional design directly in the desc...
[ 0.5059126019477844, 0.03595642372965813, -0.39803168177604675, 0.005755758378654718, 0.17751416563987732, -0.06092468649148941, 0.09788884222507477, -0.5162429213523865, -0.40617239475250244, -0.4860333800315857, -0.5877852439880371, 0.6373296976089478, -0.025864774361252785, -0.1374791562...
technical lead who assigns work to developers, or alternatively by developers who assign work to themselves. In every case, this task is about translating from the business analyst's perspective to the developer's perspective. How you need to do this, and in how many steps, depends on how well the writer can put it in...
[ 0.07722657173871994, -0.07362654060125351, -0.07975087314844131, 0.20727361738681793, 0.07616934925317764, 0.08717522025108337, 0.03065609373152256, -0.18265292048454285, 0.07730641961097717, -0.4841464161872864, -0.4511655271053314, 0.8439351320266724, 0.3404093384742737, -0.1680225133895...
I am using a set because, i want to use the quick look up property of a sorted container such as a set. I am wondering if I have to use the find member method to get the benefit of a sorted container, or can I also use the static find method in the STL algorithms? My hunch is that using the static version will use a l...
[ 0.04787052422761917, -0.29284244775772095, 0.27036798000335693, 0.03145969286561012, -0.060817427933216095, -0.21439586579799652, -0.059482838958501816, 0.07380007952451706, -0.33075252175331116, -0.566005527973175, -0.291157066822052, 0.20679613947868347, -0.5710984468460083, 0.2755157649...
O(log N) insertion, retrieval and deletion. As a point of definition, the std::find method is not a static function. See here for a description of [the various things static](http://msdn.microsoft.com/en-us/library/s1sb61xd.aspx) can mean in C++.
[ -0.346187949180603, -0.016651108860969543, 0.22669263184070587, -0.10886792838573456, 0.2690671384334564, 0.17086990177631378, -0.1845354586839676, 0.0027686927933245897, -0.20675532519817352, -0.2592107355594635, -0.287605881690979, 0.09084460884332657, -0.5566063523292542, 0.122883491218...
In .Net (C# or VB: don't care), given a file path string, FileInfo struct, or FileSystemInfo struct for a real existing file, how can I determine the icon(s) used by the shell (explorer) for that file? I'm not currently planning to use this for anything, but I became curious about how to do it when looking at [this qu...
[ 0.5751041769981384, -0.09869571030139923, 0.5943565964698792, -0.10894123464822769, 0.12918345630168915, -0.3426147401332855, -0.019954485818743706, -0.06785206496715546, -0.3582364320755005, -0.6269921660423279, -0.05432446300983429, 0.6196313500404358, -0.22594891488552094, -0.0011708949...
Dim TheIcon As Icon = IconFromFilePath(filePath) If TheIcon IsNot Nothing Then ''#Save it to disk, or do whatever you want with it. Using stream As New System.IO.FileStream("c:\myfile.ico", IO.FileMode.CreateNew) TheIcon.Save(stream)
[ 0.41910305619239807, -0.6592252254486084, 0.9737325310707092, 0.04189467057585716, 0.19325444102287292, -0.23789961636066437, 0.15504083037376404, 0.1844952404499054, -0.2552056610584259, -0.21694615483283997, 0.2795511484146118, 1.1132335662841797, -0.4353163242340088, 0.13825386762619019...
End Using End If End Sub Public Function IconFromFilePath(filePath As String) As Icon Dim result As Icon = Nothing Try result = Icon.ExtractAssociatedIcon(filePath) Catch ''# swallow and return nothing. You could supply a default Icon here as well End Try
[ 0.133694589138031, -0.4096110463142395, 0.6397112607955933, -0.23271304368972778, 0.1265612542629242, 0.15914557874202728, 0.514557421207428, -0.24767957627773285, -0.0730547159910202, -0.28917986154556274, 0.042240820825099945, 0.6434890031814575, -0.5391281843185425, 0.12062536925077438,...
Return result End Function End Module ```
[ -0.4393225312232971, 0.3231266140937805, 0.5543909072875977, -0.23214790225028992, -0.0646791011095047, -0.5191795229911804, 0.1347576230764389, -0.1490068882703781, 0.44929978251457214, -0.05484428256750107, -0.7439159750938416, 0.6584156155586243, -0.07464031130075455, 0.156566321849823,...
There's a good discussion of Generics and what they really do behind the scenes over at [this question](https://stackoverflow.com/questions/31693/differences-in-generics), so we all know that `Vector<int[]>` is a vector of integer arrays, and `HashTable<String, Person>` is a table of whose keys are strings and values `...
[ 0.2482987940311432, -0.02177947573363781, -0.3018271327018738, 0.052339255809783936, -0.5586801767349243, -0.16006958484649658, 0.35426175594329834, 0.041688963770866394, -0.3758283853530884, -0.4803134799003601, 0.0061606718227267265, 0.29701822996139526, -0.423867791891098, 0.36717036366...
an object, for reflection and such. Why does it make me specify which class the `Class` object will hold? I clearly don't know, or I wouldn't be using the `Class` object, I would use the specific one. Using the generified version of class Class allows you, among other things, to write things like ``` Class<? extends C...
[ 0.18865558505058289, -0.26971906423568726, -0.05644426867365837, 0.3683968782424927, 0.09661318361759186, -0.24238872528076172, 0.06378201395273209, 0.0771588608622551, -0.18870975077152252, -0.49190396070480347, -0.06286965310573578, 0.3531304597854614, -0.15633121132850647, 0.25914713740...
I declare a variable for a 64 bit counter as : ``` long long call_count; ``` What is the format specifier that I should use in print statements? I tried, `%l`, `%ld`, `%ll`. None seems to be correct. I use Diab C compiler for compiling my application code to run on pSOS operating system. According to C99, it shoul...
[ 0.40399518609046936, 0.2907165288925171, 0.3779412806034088, -0.3626123070716858, -0.06780572980642319, -0.07876541465520859, 0.16268005967140198, 0.12330726534128189, 0.007991776801645756, -0.4316057562828064, -0.11711789667606354, 0.565022349357605, -0.19555528461933136, 0.17512601613998...
How could I restart or shutdown Windows using the .NET framework? The following code will execute the shutdown command from the shell: ``` // using System.Diagnostics; class Shutdown { /// <summary> /// Windows restart /// </summary> public static void Restart() { StartShutDown("-f -r -t 5...
[ 0.4289497137069702, -0.1372186541557312, 0.25015154480934143, 0.017454784363508224, 0.23990818858146667, -0.11099299043416977, 0.2840002179145813, -0.1374756246805191, -0.17998501658439636, -0.4718564748764038, -0.3480708599090576, 0.7477877140045166, -0.14654593169689178, 0.32019731402397...
StartShutDown("-l"); } /// <summary> /// Shutting Down Windows /// </summary> public static void Shut() { StartShutDown("-f -s -t 5"); } private static void StartShutDown(string param) { ProcessStartInfo proc = new ProcessStartInfo(); proc.FileName = "cmd"...
[ 0.009376958012580872, -0.17456327378749847, 0.5294559001922607, -0.1930711418390274, 0.40902599692344666, 0.1652677208185196, 0.23965927958488464, -0.07550104707479477, -0.37079954147338867, -0.3720186650753021, -0.8217478394508362, 0.3437432646751404, -0.13460080325603485, 0.3862465620040...
proc.Arguments = "/C shutdown " + param; Process.Start(proc); } } ``` (Source: <http://dotnet-snippets.de/dns/c-windows-herrunterfahren-ausloggen-neustarten-SID455.aspx>
[ -0.2012832909822464, 0.007166098337620497, 0.5706323981285095, -0.244156152009964, 0.2031518518924713, 0.2823471128940582, 0.3973049521446228, -0.0936700850725174, -0.4854314923286438, -0.3845957815647125, -0.7096004486083984, 0.5408288836479187, -0.3052385449409485, 0.10072100162506104, ...
I have a Window with my user control and I would like to make usercontrol width equals window width. How to do that? The user control is a horizontal menu and contains a grid with three columns: ``` <ColumnDefinition Name="LeftSideMenu" Width="433"/> <ColumnDefinition Name="Middle" Width="*"/> <ColumnDefinition Name=...
[ -0.3424321413040161, -0.03405877947807312, 0.8073616623878479, -0.08562351763248444, 0.014932256191968918, 0.26208364963531494, -0.15372279286384583, -0.19511929154396057, -0.1724010705947876, -0.7988638281822205, -0.001996710430830717, 0.6989439129829407, 0.1143001988530159, -0.0384717844...
x:Name="windowOperacao"> <Canvas x:Name="canv"> <Grid> <tci:Status x:Name="ucStatus"/> <!-- the control which I want to stretch in width --> </Grid> </Canvas> </Window> ``` You need to make sure your usercontrol hasn't set it's width in the usercontrol's xaml file. Just delete the W...
[ -0.1107003465294838, -0.2348792850971222, 0.8383306264877319, -0.10352011770009995, 0.036806438118219376, -0.2238256335258484, -0.0666404739022255, -0.16752010583877563, -0.24606424570083618, -0.4226151406764984, -0.16238202154636383, 0.4673336148262024, 0.052224237471818924, -0.0603983812...
<Grid> <Grid.ColumnDefinitions> <ColumnDefinition Name="LeftSideMenu" Width="100"/> <ColumnDefinition Name="Middle" Width="*"/> <ColumnDefinition Name="RightSideMenu" Width="90"/> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0">a</TextBlock> <Text...
[ -0.5287577509880066, -0.18582293391227722, 0.5807164907455444, -0.03684340789914131, -0.185317724943161, 0.11227571219205856, -0.3207848072052002, -0.5511355400085449, -0.20599506795406342, -0.6888702511787415, -0.30740711092948914, 0.3187215030193329, 0.10923244804143906, -0.0997861474752...
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:WpfApplication1" Title="Window1" Height="300" Width="415"> <Grid> <local:SOAnswerTest Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="2"/> </Grid> </Window> ```
[ -0.39702436327934265, 0.00959827471524477, 0.4291534125804901, -0.13373644649982452, -0.09891020506620407, -0.0628531351685524, -0.22806978225708008, -0.32923027873039246, -0.20413647592067719, -0.36130160093307495, -0.5973387360572815, -0.010197541676461697, 0.012163059785962105, 0.060973...
What is the best way to sniff network packets using Python? I've heard from several places that the best module for this is a module called Scapy, unfortunately, it makes python.exe crash on my system. I would assume that it's just a problem with how I installed it, except that many other people have told me that it d...
[ 0.42245152592658997, 0.04003632441163063, -0.002358235651627183, 0.22368597984313965, -0.025183504447340965, -0.5328506231307983, 0.28367307782173157, 0.3797633945941925, -0.3195933699607849, -0.4779854416847229, 0.23480093479156494, 0.5577234029769897, -0.5246474146842957, -0.137980371713...
Scapy, which I had tried using, was telling me to install PyPcap as well, except that it's a modified version for it's use. It was this modified PyPcap that was causing the problem, apparently, since the example in the answer also caused a hang. I installed the original version of PyPcap (from Google's site), and Scap...
[ 0.3341456651687622, -0.12480533123016357, 0.5356549620628357, 0.39119186997413635, -0.08681344240903854, -0.10800905525684357, 0.021166488528251648, 0.25552621483802795, -0.6320857405662537, -0.6107962131500244, 0.048143330961465836, 0.0995139330625534, -0.6108664274215698, -0.077220410108...
dpkt, pcap pc = pcap.pcap() # construct pcap object pc.setfilter('icmp') # filter out unwanted packets for timestamp, packet in pc: print dpkt.ethernet.Ethernet(packet) ``` output sample: ``` Ethernet(src='\x00\x03G\xb2M\xe4', dst='\x00\x03G\x06h\x18', data=IP(src='\n\x00\x01\x1c', dst='\n\x00\x01\x10', sum=...
[ -0.411363422870636, -0.1479179710149765, 0.6169183254241943, -0.03724321350455284, 0.02159881591796875, 0.41189464926719666, -0.05695277079939842, -0.47785595059394836, -0.2134789675474167, -0.5906814336776733, -0.46093887090682983, 0.3259866237640381, -0.39549148082733154, 0.0899209529161...
I don't know why, but a SOAP Server application and a pair of clients of this services stop compiling without any know causes for me. I have installed delphi 2007 and delphi 2009 and I don't know if the cause can come from this. Now when I compile a soap application I get an error like: > Unit XMLSchema was compiled ...
[ 0.07465749979019165, 0.04636192321777344, 0.37311801314353943, -0.19681492447853088, -0.5236877202987671, 0.0033304544631391764, 0.3177306056022644, -0.1630590558052063, -0.03950345888733864, -0.7070921659469604, 0.29175397753715515, 0.15748398005962372, -0.4004930853843689, 0.292096585035...
[Localisation](http://oddiandeveloper.blogspot.com/2008/11/localization-with-aspnet-mvc.html). So far it is working together very well. The deal breaker with ASP.NET MVC for me was going to be that the controller names had to be unique. It was perfectly foreseeable to require a controller for managing stock within inv...
[ -0.2624033987522125, -0.34126150608062744, 0.18894699215888977, -0.35757002234458923, -0.18095000088214874, 0.16566477715969086, 0.09032168239355087, 0.06165223941206932, -0.5804820656776428, -0.5616499185562134, -0.25419744849205017, 0.12360744923353195, -0.4202268719673157, 0.17478337883...
be surprised to see Areas implemented into ASP.NET MVC very soon. Good luck with your application, I don't think you'll regret choosing ASP.NET MVC.
[ 0.38142895698547363, -0.11045102030038834, 0.2128247767686844, 0.2399180829524994, 0.1137164831161499, -0.3819422125816345, -0.04653136432170868, 0.3763824701309204, -0.3030815124511719, -0.7096489667892456, -0.1081937700510025, 0.45806974172592163, 0.027118058875203133, -0.225016474723815...
Say I have an ID row (int) in a database set as the primary key. If I query off the ID often do I also need to index it? Or does it being a primary key mean it's already indexed? Reason I ask is because in MS SQL Server I can create an index on this ID, which as I stated is my primary key. Edit: an additional questio...
[ 0.4363163113594055, 0.24689045548439026, 0.22664663195610046, 0.32541102170944214, -0.012398060411214828, -0.3112887442111969, -0.012713474221527576, 0.11282047629356384, -0.43779006600379944, -0.5588773488998413, 0.17222929000854492, 0.38604992628097534, -0.3606618344783783, 0.58705765008...
you can create another doesn't indicate that the PK index doesn't also already exist. The additional index does no good, but the only harm (very small) is the additional file size and row-creation overhead.
[ 0.0592295303940773, 0.20450837910175323, 0.14546194672584534, 0.3835489749908447, 0.07952721416950226, -0.05549164488911629, 0.1689777374267578, 0.028604598715901375, -0.11221206933259964, -0.6177009344100952, -0.07742217183113098, 0.3483896255493164, -0.2184050977230072, 0.268008261919021...
Is there any possibility of exceptions to occur other than RuntimeException in Java? Thanks. The java.lang package defines the following standard exception classes that are not runtime exceptions: * **[ClassNotFoundException](http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ClassNotFoundException.html)**: This except...
[ 0.053041864186525345, 0.10168550908565521, -0.053343091160058975, -0.037183843553066254, 0.1879217028617859, -0.2460578829050064, 0.273535817861557, -0.12445774674415588, -0.4097481667995453, -0.5320874452590942, -0.31896495819091797, 0.22013427317142487, -0.4486923813819885, 0.15798620879...
they should be subclasses of the Exception class. * **[IllegalAccessException](http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalAccessException.html)**: This exception is thrown when a program tries to dynamically load a class (i.e., uses the forName() method of the Class class, or the findSystemClass() or the ...
[ 0.19990748167037964, 0.02726706862449646, -0.08374334126710892, -0.19529740512371063, 0.03602641820907593, -0.23213639855384827, 0.4154547154903412, -0.1936323046684265, -0.6133180856704712, -0.2047176957130432, -0.17096906900405884, 0.2640218436717987, -0.6466754674911499, 0.3134299516677...
**[InstantiationException](http://java.sun.com/j2se/1.4.2/docs/api/java/lang/InstantiationException.html)**: This exception is thrown in response to an attempt to instantiate an abstract class or an interface using the newInstance() method of the Class class. * **[InterruptedException](http://java.sun.com/j2se/1.4.2/do...
[ 0.12345903366804123, -0.1882764995098114, 0.231078639626503, -0.28343257308006287, 0.18165841698646545, -0.1994987279176712, 0.2363876849412918, 0.45251432061195374, -0.6374987959861755, -0.3273341953754425, -0.428431898355484, 0.1580096036195755, -0.45871931314468384, 0.544816255569458, ...
I'm converting a foxpro database to SQL Server and some of the keys are VFP-generated unique identifiers - GUIDs I assume. Are these valid uniqueidentifiers? Can I just use the bytes and convert them easily into a uniqueidentifier in SQL Server? Thanks, Craig I haven't used it myself but I have read about [Lucene.n...
[ 0.6358999609947205, 0.1475210189819336, 0.021413670852780342, 0.21147054433822632, 0.005941699258983135, -0.08941087871789932, -0.03699900954961777, 0.19282929599285126, -0.007208283990621567, -0.7974357604980469, 0.39736485481262207, 0.29287609457969666, -0.09614147245883942, 0.2433636784...
Title pretty much sums it up. The external style sheet has the following code: ```css td.EvenRow a { display: none !important; } ``` I have tried using: ``` element.style.display = "inline"; ``` and ``` element.style.display = "inline !important"; ``` but neither works. Is it possible to override an !import...
[ 0.4398583173751831, 0.19969286024570465, 0.7390015721321106, -0.10123694688081741, 0.01783687248826027, -0.35334452986717224, 0.19479477405548096, -0.14457230269908905, 0.011268873699009418, -0.38131752610206604, -0.19253623485565186, 0.7972415685653687, -0.18608485162258148, 0.20057211816...
if (!styleElement) { styleElement = document.createElement('style'); styleElement.type = 'text/css'; styleElement.id = 'styles_js'; document.getElementsByTagName('head')[0].appendChild(styleElement); } styleElement.appendChild(document.createTextNode(newStyle)); } addNewStyle('t...
[ 0.42055678367614746, -0.072397381067276, 0.7156893610954285, -0.081736721098423, -0.04264892637729645, -0.1599521040916443, 0.18322469294071198, -0.5025590658187866, 0.17955583333969116, -0.6047992706298828, -0.41656816005706787, 0.4189792573451996, -0.10908475518226624, 0.0200804248452186...
I'm building a PC with the new Intel I7 quad core processor. With hyperthreading turned on it will report 8 cores in Task Manager. Some of my colleagues are saying that hyperthreading will make the system unreliable and suggest turning it off. Can any of you good people enlighten me and the rest of the stockoverflow ...
[ -0.32247135043144226, 0.4002276360988617, 0.3246983587741852, 0.22447259724140167, -0.06503582000732422, 0.0842553973197937, 0.2192859947681427, 0.09282363951206207, -0.20919333398342133, -0.7790523171424866, 0.07842611521482468, 0.6814410090446472, -0.10575525462627411, 0.1736786961555481...
affected, since the abstraction is very low level and the OS just sees it as another CPU to provide work to. However, performance is another matter. In all honesty I can't say if this is still the case, but at least when the HT-enabled CPUs first came out, there were known problems with at least some applications. For...
[ 0.08099795132875443, 0.1850183606147766, 0.06230601295828819, 0.020225606858730316, -0.1002117469906807, -0.0369991809129715, 0.2980422377586365, 0.5219648480415344, -0.1470087170600891, -0.7108955383300781, -0.10603027045726776, 0.5130982398986816, -0.5427578091621399, 0.15467597544193268...
It's possible that this is no longer an issue, and in a desktop environment this is less likely to be a problem for most use cases. The ability to split work on the CPU generally would lead to more responsive applications when the CPU is heavily utilized. However, the context switching and overhead could be a detrement...
[ 0.21382266283035278, 0.12279839813709259, 0.1845579445362091, 0.2843705713748932, 0.16274434328079224, 0.14247560501098633, 0.11428535729646683, -0.13330307602882385, -0.4321587085723877, -0.6493206024169922, -0.3122985363006592, 0.6084703803062439, -0.30198150873184204, -0.017124492675065...
Looking for an implementation for C++ of a function like .NET's String.Format. Obviously there is printf and it's varieties, but I'm looking for something that is positional as in: > String.Format("Hi there {0}. You are > {1} years old. How does it feel to be > {1}?", name, age); This is needed because we're going ...
[ 0.012006362900137901, 0.19585342705249786, 0.5703405141830444, -0.13241621851921082, 0.18647046387195587, 0.13377241790294647, 0.3301616311073303, 0.31435924768447876, -0.054235246032476425, -0.8466173410415649, -0.01948447898030281, 0.19636887311935425, 0.1782377064228058, 0.0397414229810...
with variable inputs (va\_start, va\_end, etc) is what I'll end up building, but if there is already a solid solution, that would be preferrable. Thanks :) Lots of good recommendations above that would work in most situations. In my case, I ultimately wanted to load strings from a resource, AND keep the string resourc...
[ -0.02721537835896015, -0.2583191394805908, 0.11792992055416107, 0.06544841080904007, -0.2973397374153137, 0.08142507076263428, 0.02116774208843708, -0.06068234518170357, -0.09209863841533661, -0.5016046166419983, 0.06341580301523209, 0.6914865374565125, -0.27174726128578186, 0.035579640418...
from about any string class. There is also a class StringArg -- it's job is to take any parameter type and turn it into a string (ie it mimics ToString in .NET). If a new object needs to be ToString'd, you just add another constructor. The constructor allows a printf-style format specifier for non-default formatting. ...
[ 0.22438375651836395, -0.22605346143245697, 0.24713405966758728, 0.04754121974110603, -0.16661876440048218, -0.10249839723110199, -0.10147976130247116, -0.09940871596336365, 0.016589626669883728, -0.3538804352283478, -0.18478624522686005, 0.6083511710166931, -0.2866244316101074, 0.194424167...
a DLL-specific HINSTANCE by default). Usage examples: ``` dlg.m_prompt = String(1417); //"Welcome to Stackoverflow!" MessageBox(String(1532, m_username)); //"Hi {0}" ``` As it is, it only takes a string ID for an input, but it would be trivial to add an input string instead of a string ID: ``` CString s = String.F...
[ -0.11030600965023041, -0.20795223116874695, 0.9568430781364441, -0.1956116259098053, 0.01974380388855934, -0.22975952923297882, 0.22664834558963776, -0.2525940239429474, -0.057446591556072235, -0.6436053514480591, -0.40664392709732056, 0.5348058938980103, -0.3005356192588806, 0.43786257505...
StringArg(LPCWSTR val); StringArg(const CString& val); StringArg(int val, LPCWSTR formatSpec = NULL); StringArg(size_t val, LPCWSTR formatSpec = NULL); StringArg(WORD val, LPCWSTR formatSpec = NULL); StringArg(DWORD val, LPCWSTR formatSpec = NULL); StringArg(__int64 val, LPCWSTR formatSpec = NUL...
[ -0.24621835350990295, -0.2879870533943176, 0.5916266441345215, -0.38125744462013245, 0.005877089221030474, 0.03682998940348625, 0.4344361126422882, -0.335975706577301, -0.14294792711734772, -0.39749354124069214, -0.6137290000915527, 0.5757623910903931, -0.6528393626213074, 0.34662383794784...
there are a bunch of member functions and constructors that take up to 10 arguments. These ultimately call CentralFormat which does the real work. ``` class String : public CString { public: String() { } String(WORD stringTableID, HINSTANCE hInst = GetModuleHInst()) { Format(stringTableID, hInst); } String...
[ -0.15413624048233032, -0.06290487200021744, 0.5523240566253662, -0.08652851730585098, -0.22200621664524078, 0.46725907921791077, 0.2845955193042755, -0.31642910838127136, -0.199835866689682, -0.5756895542144775, -0.39545851945877075, 0.14921395480632782, -0.10501889884471893, 0.28985044360...
hInst = GetModuleHInst()) { Format(stringTableID, arg1, arg2, arg3, hInst); } String(WORD stringTableID, const StringArg& arg1, const StringArg& arg2, const StringArg& arg3, const StringArg& arg4, HINSTANCE hInst = GetModuleHInst()) { Format(stringTableID, arg1, arg2, arg3, arg4, hInst); } String(WORD stringTab...
[ -0.21450863778591156, -0.047743525356054306, 0.5409323573112488, -0.4003078043460846, -0.16948437690734863, 0.2117299735546112, 0.6296034455299377, -0.4604838490486145, -0.07383423298597336, -0.734506368637085, -0.4800699055194855, 0.47675275802612305, -0.19479908049106598, 0.0888442769646...
Format(stringTableID, arg1, arg2, arg3, arg4, arg5, arg6, hInst); } String(WORD stringTableID, const StringArg& arg1, const StringArg& arg2, const StringArg& arg3, const StringArg& arg4, const StringArg& arg5, const StringArg& arg6, const StringArg& arg7, HINSTANCE hInst = GetModuleHInst()) { Format(stringTableID, ...
[ -0.31178969144821167, -0.04532962292432785, 0.4969368278980255, -0.2570323050022125, 0.06563842296600342, 0.3904750943183899, 0.3749406039714813, -0.39199334383010864, -0.12963397800922394, -0.7586274147033691, -0.47534218430519104, 0.5587869882583618, -0.1793767660856247, 0.25183689594268...
const StringArg& arg1, const StringArg& arg2, const StringArg& arg3, const StringArg& arg4, const StringArg& arg5, const StringArg& arg6, const StringArg& arg7, const StringArg& arg8, const StringArg& arg9, HINSTANCE hInst = GetModuleHInst()) { Format(stringTableID, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9,...
[ -0.5395463109016418, 0.09298299252986908, 0.5892606377601624, -0.4101356267929077, -0.042879100888967514, 0.4631121754646301, 0.4249780476093292, -0.45258793234825134, -0.014370152726769447, -0.7124482989311218, -0.550343930721283, 0.45972129702568054, -0.3347613215446472, 0.05601146072149...
= GetModuleHInst()); CString& Format(WORD stringTableID, const StringArg& arg1, const StringArg& arg2, const StringArg& arg3, const StringArg& arg4, HINSTANCE hInst = GetModuleHInst()); CString& Format(WORD stringTableID, const StringArg& arg1, const StringArg& arg2, const StringArg& arg3, const StringArg& arg4...
[ -0.37686672806739807, 0.013568224385380745, 0.6110795140266418, -0.18538689613342285, -0.0661436915397644, 0.3220948874950409, 0.4508674442768097, -0.4224843382835388, -0.036212626844644547, -0.6825294494628906, -0.6565357446670532, 0.4845619797706604, -0.30601221323013306, -0.052417855709...
arg6, const StringArg& arg7, HINSTANCE hInst = GetModuleHInst()); CString& Format(WORD stringTableID, const StringArg& arg1, const StringArg& arg2, const StringArg& arg3, const StringArg& arg4, const StringArg& arg5, const StringArg& arg6, const StringArg& arg7, const StringArg& arg8, HINSTANCE hInst = GetModuleHIn...
[ -0.08754660189151764, -0.06064840406179428, 0.427336722612381, -0.09621236473321915, 0.1655939519405365, 0.045036476105451584, 0.49801042675971985, 0.02062651701271534, -0.14356452226638794, -0.6703785061836243, -0.5036719441413879, 0.33900773525238037, -0.3779410421848297, 0.1878564059734...
StackOverflow, although the bulk of it is very simple): ``` StringArg::StringArg(LPCWSTR val) { m_strVal = val; } StringArg::StringArg(const CString& val) { m_strVal = (LPCWSTR)val; } StringArg::StringArg(int val, LPCWSTR formatSpec) { if(NULL == formatSpec) formatSpec = L"%d"; //GLOK m_strVa...
[ -0.25964394211769104, -0.1106891930103302, 1.0504865646362305, -0.2776901423931122, -0.09023197740316391, 0.3207349181175232, 0.0396299846470356, -0.4960422217845917, -0.32142025232315063, -0.2855364978313446, -0.4999758005142212, 0.6586262583732605, -0.40322911739349365, 0.150382712483406...
LPCWSTR formatSpec) { if(NULL == formatSpec) formatSpec = L"%u"; //GLOK m_strVal.Format(formatSpec, val); } StringArg::StringArg(__int64 val, LPCWSTR formatSpec) { if(NULL == formatSpec) formatSpec = L"%I64d"; //GLOK m_strVal.Format(formatSpec, val); } StringArg::StringArg(double val, ...
[ -0.16970515251159668, -0.1757075935602188, 0.973241925239563, -0.39009836316108704, -0.09574751555919647, 0.18874430656433105, -0.16165712475776672, -0.3947642147541046, -0.517345130443573, -0.49773654341697693, -0.49663543701171875, 0.5934951901435852, -0.4843291938304901, 0.0744125768542...
_ASSERT(argsCount < 10); //code below assumes a single character position indicator CString tmp; HINSTANCE hOld = AfxGetResourceHandle(); AfxSetResourceHandle(hInst); BOOL b = tmp.LoadString(stringTableID); AfxSetResourceHandle(hOld); if(FALSE == b) { #ifdef _DEBUG //missing string...
[ 0.06670542061328888, -0.003855918301269412, 0.08199408650398254, -0.2785438001155853, 0.017263052985072136, 0.11040058732032776, 0.7800158858299255, -0.36534762382507324, -0.02954266220331192, -0.2812574505805969, -0.24269269406795502, 0.6143086552619934, -0.18279936909675598, 0.2688325941...
L"CommonHInst was NOT passed in"); //GLOK ::MessageBeep(MB_ICONHAND); ::MessageBeep(MB_ICONEXCLAMATION); ::MessageBeep(MB_ICONHAND); _ASSERT(0); ::MessageBox(NULL, s, L"DEBUG Error - Inform Development", MB_ICONSTOP | MB_OK | MB_SERVICE_NOTIFICATION); //GLOK } #endif //_D...
[ -0.3851986229419708, 0.062101468443870544, 0.5108861923217773, -0.593879759311676, 0.12067747861146927, 0.47120174765586853, 0.458942174911499, -0.22695697844028473, -0.22566558420658112, -0.5090587139129639, -0.5300332903862, 0.38951605558395386, -0.4935534596443176, 0.04927436262369156, ...
{ CString::operator=(tmp); return; } GetBuffer(tmp.GetLength() * 3); //pre-allocate space ReleaseBuffer(0); LPCWSTR pStr = tmp; while(L'\0' != *pStr) { bool bSkip = false; if(L'{' == *pStr) { //is this an incoming string position?
[ 0.024090740829706192, -0.2946113348007202, 0.7444134950637817, -0.44609132409095764, 0.2524184286594391, 0.1548527628183365, 0.1775272637605667, -0.18862853944301605, -0.27230584621429443, -0.334780752658844, -0.5740648508071899, 0.2509257197380066, -0.5316033959388733, 0.12435490638017654...
//we only support 10 args, so the next char must be a number if(wcschr(L"0123456789", *(pStr + 1))) //GLOK { if(L'}' == *(pStr + 2)) //and closing brace? {
[ 0.08269340544939041, 0.08859242498874664, 0.5027149319648743, -0.5109522938728333, 0.1617027223110199, 0.49449238181114197, 0.49096977710723877, -0.04325868561863899, -0.08705213665962219, -0.2085040956735611, -0.40933749079704285, 0.4542744755744934, -0.15708041191101074, -0.2257981300354...
bSkip = true; //this is a replacement size_t index = *(pStr + 1) - L'0'; _ASSERT(index < argsCount);
[ 0.19135768711566925, -0.015100374817848206, 0.4049264192581177, -0.3446415960788727, 0.1110161617398262, -0.14632222056388855, 0.6044110059738159, -0.35008373856544495, -0.27824923396110535, -0.37932759523391724, -0.3190758526325226, 0.3249601125717163, -0.49244681000709534, 0.306442946195...
_ASSERT(index >= 0); if((index >= 0) && (index < argsCount)) CString::operator+=(args[index]->ToString()); else { //bad positional index
[ -0.3058418035507202, -0.1747550368309021, 0.3520555794239044, -0.19764895737171173, -0.08490008115768433, -0.0289883092045784, 0.6073869466781616, -0.5117883086204529, -0.12379156053066254, -0.27086761593818665, -0.18491660058498383, 0.6104324460029602, -0.20904012024402618, 0.232627123594...
CString msg; msg.Format(L"(??-%d)", index); //GLOK CString::operator+=(msg); }
[ -0.4679875671863556, -0.1159055233001709, 0.32365089654922485, -0.41824591159820557, 0.13725197315216064, 0.49346888065338135, -0.06320960074663162, 0.06567684561014175, -0.2606998383998871, -0.43994978070259094, -0.7046820521354675, 0.17494580149650574, -0.4820219874382019, -0.11742299050...
pStr += 2; //get past the two extra characters that we skipped ahead and peeked at } } } if(false == bSkip) CString::operator+=(*pStr); pStr++; } } CString& String::Format(WORD stringTableID, HINSTANCE
[ -0.2597716450691223, -0.23662081360816956, 0.5633912086486816, -0.17038820683956146, -0.018685232847929, 0.07621772587299347, 0.45889875292778015, -0.2776607573032379, -0.0694212093949318, -0.628788411617279, -0.4993625581264496, 0.22873879969120026, -0.293133407831192, -0.0470186658203601...
hInst) { std::vector<const StringArg*> args; CentralFormat(stringTableID, args, hInst); return *this; } CString& String::Format(WORD stringTableID, const StringArg& arg1, HINSTANCE hInst) { std::vector<const StringArg*> args; args.push_back(&arg1); CentralFormat(stringTableID, args, hInst); ...
[ -0.16824905574321747, -0.3045230209827423, 0.6721528768539429, -0.4776863753795624, -0.2741711139678955, 0.5024810433387756, 0.4183291792869568, -0.43523329496383667, -0.25071603059768677, -0.8606754541397095, -0.5044224858283997, 0.3184294104576111, -0.413476824760437, 0.18445436656475067...
args.push_back(&arg1); args.push_back(&arg2); args.push_back(&arg3); CentralFormat(stringTableID, args, hInst); return *this; } CString& String::Format(WORD stringTableID, const StringArg& arg1, const StringArg& arg2, const StringArg& arg3, const StringArg& arg4, HINSTANCE hInst) { std::vector<cons...
[ -0.6425255537033081, -0.30414003133773804, 0.7860840559005737, -0.6584613919258118, -0.20359696447849274, 0.4667586088180542, 0.3753909170627594, -0.28958481550216675, -0.36729466915130615, -0.6565068960189819, -0.531920850276947, 0.28511902689933777, -0.4287160634994507, 0.196839213371276...
args.push_back(&arg1); args.push_back(&arg2); args.push_back(&arg3); args.push_back(&arg4); args.push_back(&arg5); CentralFormat(stringTableID, args, hInst); return *this; } CString& String::Format(WORD stringTableID, const StringArg& arg1, const StringArg& arg2, const StringArg& arg3, const St...
[ -0.6370891332626343, -0.3539641499519348, 0.7098273634910583, -0.6829925179481506, -0.045776497572660446, 0.4900231659412384, 0.3330768346786499, -0.3301660418510437, -0.32513725757598877, -0.6580336093902588, -0.6127692461013794, 0.33897826075553894, -0.38540297746658325, 0.17992953956127...
StringArg& arg3, const StringArg& arg4, const StringArg& arg5, const StringArg& arg6, const StringArg& arg7, HINSTANCE hInst) { std::vector<const StringArg*> args; args.push_back(&arg1); args.push_back(&arg2); args.push_back(&arg3); args.push_back(&arg4); args.push_back(&arg5); args.push_bac...
[ -0.6578142046928406, -0.35419002175331116, 0.8174124360084534, -0.7618923187255859, -0.11524421721696854, 0.5761743783950806, 0.408834308385849, -0.39999920129776, -0.1951846480369568, -0.5542525053024292, -0.5915331244468689, 0.3100382685661316, -0.5402942895889282, 0.19859138131141663, ...
args.push_back(&arg2); args.push_back(&arg3); args.push_back(&arg4); args.push_back(&arg5); args.push_back(&arg6); args.push_back(&arg7); args.push_back(&arg8); CentralFormat(stringTableID, args, hInst); return *this; } CString& String::Format(WORD stringTableID, const StringArg& arg1, ...
[ -0.5122929811477661, -0.326407790184021, 0.8176456689834595, -0.6664131879806519, -0.07863708585500717, 0.4585137665271759, 0.41252681612968445, -0.2768690288066864, -0.24223119020462036, -0.6758164167404175, -0.5628947615623474, 0.3066260516643524, -0.4924043118953705, 0.2094687968492508,...
args.push_back(&arg7); args.push_back(&arg8); args.push_back(&arg9); CentralFormat(stringTableID, args, hInst); return *this; } ```
[ -0.53310626745224, -0.269674688577652, 0.5772281885147095, -0.5310055017471313, 0.16109324991703033, 0.021168556064367294, 0.2275465428829193, -0.04442137852311134, -0.4307517409324646, -0.44880443811416626, -0.46783262491226196, 0.22073785960674286, -0.46047747135162354, 0.492609709501266...
I'm trying to display an address right aligned in the footer of my page like this: ``` 1234 south east Main St. Nowhere, ID 45445 (555) 555-5555 ``` in my markup I have this: ``` <address> 1234 south east Main St. Nowhere, Id 45445 (555) 555-5555 </address> ``` How can I get this to layout ...
[ -0.06331852078437805, 0.3091980814933777, 0.5700110793113708, -0.1289299577474594, 0.17464405298233032, 0.10346201807260513, 0.14147454500198364, 0.22129826247692108, -0.2391311079263687, -1.0747191905975342, 0.07265292853116989, 0.04146699607372284, -0.288099080324173, 0.09107138961553574...
In Flex 3, buttons call their click handler when they are clicked on by the mouse, or when they have the focus and the user depresses the space bar. Is there a straightforward way to cause Flex 3 buttons with focus to call their click handler when the user presses the enter key? Sure, you could do something like this:...
[ 0.15486110746860504, -0.3976695239543915, 0.40639758110046387, -0.4117760956287384, -0.10866964608430862, 0.02583283744752407, -0.01593192107975483, -0.29131731390953064, -0.2749239206314087, -0.3991256356239319, -0.09937874972820282, 0.9500598311424255, -0.7132675647735596, -0.52812421321...
Alert.show("Clicked!"); } private function btn_keyDown(event:KeyboardEvent):void { if (event.keyCode == Keyboard.ENTER) btn.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } ]]> </mx:Script> <mx:Button id="btn" label="Click Me" click="btn_click(event)"...
[ -0.014012298546731472, -0.2561916708946228, 0.2842892110347748, -0.40580591559410095, 0.10162411630153656, 0.011828020215034485, 0.46021175384521484, -0.217527374625206, -0.31676599383354187, -0.4704498052597046, -0.32854530215263367, 0.8372980952262878, -0.5907310843467712, -0.13258369266...
Button, add the listeners and handlers inside your subclass, and then dispatch the click event from within that class. But this should help illustrate the point. Good luck!
[ 0.13924404978752136, -0.1915307641029358, 0.21872815489768982, -0.03766583278775215, 0.06884320080280304, -0.18798106908798218, 0.5300572514533997, 0.26397523283958435, -0.20912589132785797, -0.4841609299182892, -0.14757542312145233, 0.7047421932220459, -0.0054064225405454636, -0.003687128...
I continuously find places where I need to use the `<br />` tag because CSS can't do what I need. Isn't the `<br />` considered part of the "design" and not part of document structure? What is the acceptable usage for it? Should the same rules also apply to the `<hr />`? Here is an example of where I feel forced to us...
[ 0.46208491921424866, 0.6180314421653748, 0.3904804587364197, -0.28768661618232727, 0.3836551606655121, -0.11696526408195496, 0.20072895288467407, 0.29728564620018005, -0.41964924335479736, -0.965125322341919, -0.01463529746979475, 0.2137191742658615, -0.22104127705097198, 0.209357544779777...
even in the new HTML 5 draft spec (relevant [spec info](http://dev.w3.org/html5/spec/Overview.html#the-hr-element)). In fact, it's hard to state correct usage of the <br /> tag better than the W3C itself: > *The following example is correct usage of the br element:* > > > <p>P. Sherman<br> > > 42 Wallaby Way<br>...
[ 0.2610129415988922, 0.059968236833810806, 0.4365250766277313, -0.16930609941482544, -0.5716671347618103, -0.06598904728889465, 0.23145097494125366, -0.5289978384971619, -0.3021624684333801, -0.4794217348098755, -0.13964754343032837, 0.2708216607570648, -0.08871378004550934, 0.2019455134868...
name="name"><br> > > Address: <input name="address"></p> > > > *Here are alternatives to the above, which are correct:* > > > <p><a ...>34 comments.</a></p> > > <p><a ...>Add a comment.<a></p> > > > <p>Name: <input name="name"></p> > > <p>Address: <input name="address"></p> <hr /> can very well be pa...
[ 0.23728254437446594, 0.24163217842578888, 0.27124375104904175, 0.16017967462539673, -0.13783325254917145, -0.20362187922000885, -0.10523815453052521, -0.3173579275608063, -0.2718401849269867, -0.5849862694740295, -0.3937826156616211, 0.24758990108966827, 0.17587950825691223, -0.04604387283...
so use them correctly. **Edit 1:** Another thought I had after I first hit "post" - there's been a lot of anti-<table> sentiment among web developers in recent years, and with good reason. People were abusing the <table> tag, using it for site layout and formatting. That's not what it's for, so you shouldn't use it t...
[ 0.9466865062713623, 0.5347915291786194, 0.1309075951576233, -0.04308154433965683, -0.21006368100643158, -0.17423875629901886, 0.21638289093971252, -0.06573536992073059, -0.2174833118915558, -0.6644659638404846, 0.2052798867225647, 0.3383719325065613, -0.2966885566711426, -0.175892651081085...
case, the use of <table> is totally justified, it becomes semantic markup instead of formatting. It's the same situation with <br />. When it's part of your content (ie, text that should break at those points in order to be correct English), use it! When you're just doing it for formatting reasons, it's best to try ano...
[ 0.16331587731838226, 0.13268232345581055, 0.07323610037565231, 0.08851005136966705, -0.2888946831226349, -0.3443430960178375, 0.1367500275373459, 0.2855307161808014, -0.3509477376937866, -0.6280975341796875, -0.3833385407924652, 0.3733891546726227, -0.04510609060525894, -0.29435995221138, ...
I was debugging something and discovered some strangeness in JavaScript: ``` alert(1=='') ==> false alert(0=='') ==> true alert(-1=='') ==> false ``` It would make sense that an implied string comparison that 0 should = '0'. This is true for all non-zero values, but why not for zero? According to the Mozilla documen...
[ 0.19964192807674408, 0.10271303355693817, 0.18023280799388885, -0.261742502450943, -0.26118335127830505, 0.04100247099995613, 0.20487701892852783, -0.6146871447563171, 0.18237227201461792, -0.6471346616744995, 0.011670579202473164, 0.5598464608192444, -0.5443089008331299, 0.256025373935699...
a string What's actually happening is that the strings are being converted to numbers. For example: `1 == '1'` becomes `1 == Number('1')` becomes `1 == 1`: `true` Then try this one: `1 == '1.'` becomes `1 == Number('1.')` becomes `1 == 1`: `true` If they were becoming strings, then you'd get `'1' == '1.'`, which wou...
[ 0.2665388584136963, -0.08354645222425461, -0.0045617688447237015, -0.16498416662216187, -0.15471480786800385, -0.19774627685546875, 0.3721157908439636, -0.06617219001054764, -0.20688441395759583, -0.485275536775589, -0.2787322402000427, 0.4791089594364166, -0.2996717095375061, 0.3505795598...
I am aware of using jconsole to attach to a java process to get memory information. Specifically I'm after getting information on the various memory pools programatically so I can tie it to a monitoring application. Thanks! Thanks mattk - I wound up doing basically this :-) ``` List memBeans = ManagementFactory.getMe...
[ 0.0034324140287935734, -0.11536718904972076, 0.5680779218673706, -0.19946631789207458, 0.41149261593818665, 0.20298755168914795, 0.42333874106407166, -0.39797675609588623, -0.5655844807624817, -0.8194703459739685, -0.1063755601644516, 0.6108048558235168, -0.3233935236930847, 0.164691612124...
float used = usage.getUsed()/1000; float committed = usage.getCommitted()/1000; float max = usage.getMax()/1000; float pctUsed = (used / max)*100; float pctCommitted = (committed / max)*100; } ```
[ 0.36875149607658386, -0.07736863940954208, 0.5615841746330261, 0.07043333351612091, 0.5494475960731506, 0.13942639529705048, -0.04336468130350113, -0.2967008650302887, -0.18505583703517914, -0.4649569094181061, -0.023422984406352043, 0.8945896625518799, -0.13072341680526733, 0.113112755119...
Using Windows 2003, I'm look for a way to create a "logoff script" that will continue with the current logoff then immediately login another user. So, "UserA" logs off. Script fires to login "UserB". This is part of an application upgrade for a computer where we have written the 'shell'; similar to a kiosk applicatio...
[ 0.22485637664794922, 0.07596264034509659, 0.35263434052467346, -0.34792521595954895, -0.13236986100673676, -0.37839028239250183, 0.36239340901374817, -0.06817223131656647, -0.030342545360326767, -0.564281702041626, -0.045415833592414856, 0.8268848657608032, -0.5840482115745544, 0.201675817...
a [script](http://technet.microsoft.com/en-us/library/cc781354.aspx) that will run upon the user logging off (set via Group Policies). As above, the script should log a different user on. Thanks. Don't think it's possible in the stated way (script at logoff). You'd have to set the machine to logon automatically as a ...
[ 0.3188011944293976, -0.06028811261057854, 0.2950265109539032, 0.06354755908250809, 0.2528568506240845, -0.3015921413898468, 0.35554206371307373, 0.2140658050775528, -0.18527238070964813, -0.8962872624397278, -0.3003161549568176, 0.3659308850765228, -0.10304155945777893, 0.12429124116897583...
manual logout but I've had an XP kiosk that would automatically log on instantly, even if you logged out manually - you had to override it using some key like shift+logoff to be able to manually specify the login again, so somehow it can be made). The "easiest" way might be to replace msgina.dll with someone of your o...
[ 0.46162962913513184, -0.17595063149929047, 0.6054701209068298, 0.1859927475452423, -0.10651178658008575, -0.0241289883852005, -0.001596212387084961, 0.2169792801141739, -0.3225191831588745, -0.8281528949737549, -0.0908651351928711, 0.7890270948410034, -0.26165029406547546, -0.0403347425162...
the user credentials are available to your script, which kind of makes it redundant as you compromise the security of that account - defying the purpose of having that second account in the first place, for whatever purpose it exists?*)
[ 0.32119515538215637, 0.22058619558811188, 0.097134068608284, 0.17556074261665344, 0.18145345151424408, -0.057675693184137344, 0.3501332104206085, 0.019264834001660347, 0.01661055162549019, -0.3921371400356293, -0.11575717478990555, 0.5984183549880981, 0.06047309562563896, -0.14503501355648...
Let's say I have some Java code: ``` public class SomeClass { static { private final double PI = 3.14; private final double SOME_CONSTANT = 5.76; private final double SOME_OTHER_CONSTANT = 756.33; } //rest of class } ``` If a thread is initializing SomeClass's `Class` object and is...
[ 0.3217761814594269, -0.09310223162174225, 0.21414947509765625, -0.3555648624897003, -0.11106564849615097, 0.08198525756597519, 0.48064500093460083, -0.10836488008499146, -0.14294494688510895, -0.32826128602027893, 0.07961957156658173, 0.10447638481855392, -0.20765931904315948, 0.2343716621...
second thread ignore it assuming it's already initialized even though the first thread is not done? Or does something else happen? If the first thread hasn't finished initializing SomeClass, the second thread will block. This is detailed in the Java Language Specification in [section 12.4.2](http://docs.oracle.com/jav...
[ 0.05913516879081726, -0.30474403500556946, 0.06315688788890839, -0.24769996106624603, -0.11362791061401367, -0.25693607330322266, 0.23138460516929626, -0.21673282980918884, -0.20950108766555786, -0.3240721523761749, -0.18054616451263428, 0.07069149613380432, -0.4473976194858551, -0.1673189...
I've frequently seen a space preceding the closing slash in XML and HTML tags. The XHTML line break is probably the canonical example: ``` <br /> ``` instead of: ``` <br/> ``` The space seems superfluous. In fact, I think that it is superfluous. **What is the reason for writing this space?** I've read that the ...
[ 0.314396470785141, 0.34495988488197327, 0.22965440154075623, 0.034448131918907166, -0.22271610796451569, -0.29965752363204956, 0.20397552847862244, 0.305562287569046, -0.23098859190940857, -0.7038727402687073, -0.42051777243614197, -0.10116417706012726, -0.15413524210453033, 0.238640815019...
Curly Brace debate? ``` void it_goes_up_here() { int no_you_fool_it_goes_down_there() { ``` I can certainly respect differing stylistic opinions, so I'll be happy to learn that writing the space is simply a matter of taste. The answer is people wish to adhere to [Appendix C of the XHTML1.0 specification](http://www...
[ 0.5359208583831787, 0.3803806006908417, 0.44269946217536926, -0.05769963562488556, -0.3678290545940399, -0.022758958861231804, 0.32354626059532166, -0.08072316646575928, -0.0874834954738617, -0.27123990654945374, -0.03661494702100754, 0.28977641463279724, -0.29248300194740295, -0.041371077...
attribute.
[ -0.3023625314235687, 0.0934760794043541, 0.07084254175424576, 0.3756048381328583, -0.2005467563867569, 0.062467966228723526, -0.09937632828950882, -0.0716840922832489, 0.20521491765975952, -0.6331803202629089, -0.30808112025260925, 0.5117893815040588, 0.06743602454662323, -0.04481972008943...
I was wondering if there is way to open another page using a Modal Popup Extender? and if there is can someone please the tell me how do i go about doing it .. Thanx Owais You could probably put an iframe pointing to the page within the Modal Popup Extender, however that would be a bit of a hack. I would recommend p...
[ 0.46101707220077515, -0.10133641213178635, 0.42343226075172424, 0.1341961920261383, -0.20751097798347473, -0.19590772688388824, 0.2839849293231964, 0.19727711379528046, -0.131941020488739, -0.5192803144454956, -0.11622937768697739, 0.3866026997566223, -0.2855938673019409, 0.184288382530212...
Problem: I can add+use performance counters in w2k8 with normal user privileges. If I try to create or access a Process performance counter, i get a message that the counter does not exist. Same thing can be tried out in a powershell, a message appears that the counter does not exist. If I do the same thing as Admi...
[ 0.16988202929496765, 0.004127731081098318, 0.33748650550842285, 0.25392216444015503, -0.10026226192712784, 0.07298125326633453, 0.2785578966140747, -0.3207555115222931, -0.4056755602359772, -0.6062911152839661, 0.16151684522628784, 0.5891693830490112, -0.2406330406665802, 0.274895012378692...
the Administrator account? tia p.s. no, I won't sign in. Don't like OpenID I've been looking into this a lot lately. Your best is simply Tesseract. If you need layout analysis on top of the OCR than go with Ocropus (which in turn uses Tesseract to do the OCR). Layout analysis refers to being able to detect position o...
[ 0.34090375900268555, -0.18843288719654083, 0.175259530544281, 0.1645086407661438, -0.07019927352666855, 0.009051600471138954, 0.22921904921531677, -0.025593407452106476, -0.050704970955848694, -0.9567678570747375, 0.3677942454814911, 0.8205084204673767, -0.20609843730926514, -0.13677090406...
dpi. 2. Remove color from the image. Grey scale is good. I actually used a dither threshold and made my input black and white. 3. Cut out unnecessary junk from your image. For all three above I used netbpm (a set of image manipulation tools for unix) to get to point where I was getting pretty much 100 percent accuracy ...
[ 0.493156760931015, -0.30986496806144714, 0.18911422789096832, 0.029437478631734848, -0.3184962570667267, 0.023727795109152794, 0.060260627418756485, -0.3719932734966278, 0.15324805676937103, -0.8307044506072998, 0.1287042647600174, 1.015397548675537, -0.054000869393348694, -0.3531400561332...
a new "language" for your font and pass it in with the -l parameter. The other training mechanism I found was with Ocropus using nueral net (bpnet) training. It requires a lot of input data to build a good statistical model. In terms of invoking Tesseract/Ocropus are both C++. It won't be as simple as ReadLines(Imag...
[ 0.28236424922943115, -0.22380699217319489, 0.02299085259437561, 0.17812031507492065, -0.3140856921672821, 0.21508948504924774, 0.03861103951931, -0.09674754738807678, 0.16339220106601715, -0.8488771319389343, 0.2522529363632202, 0.6807769536972046, -0.20291148126125336, -0.4591752588748932...
How do you check in code for the first time in Team Foundation Server? I created a local path, dropped some code in it, now what? Hitting refresh doesn't help. you have to right-click on the solution in your project explorer and select "Add project to source control". Then it will walk you through the process of addin...
[ 0.2790139317512512, -0.23815172910690308, 0.09744277596473694, 0.19736483693122864, -0.21142588555812836, -0.3565983772277832, 0.40378209948539734, -0.0865483433008194, -0.014848537743091583, -0.961373507976532, 0.16299891471862793, 0.5533826351165771, -0.058756567537784576, -0.12462230771...
I intend to develop a small (Java) application for managing my finances. I believe I need to use an embedded database, but I have no experience regarding this issue. I tried to look at [some of the available products](http://java-source.net/open-source/database-engines), but I can't decide which one would be more suita...
[ 0.6290668845176697, -0.000796447042375803, -0.10590529441833496, 0.0958818793296814, -0.297183096408844, -0.15561220049858093, 0.1549159288406372, -0.1794610172510147, 0.2144871950149536, -0.3730366826057434, 0.10694806277751923, 0.5523545145988464, -0.07629433274269104, -0.015289245173335...
API), but I also want to have the ability to edit the database easily using a SQL browsing tool (modifying schema and changing data). Thank you. Either * [HSQLDB](http://hsqldb.org/) - Used by OpenOffice, tested and stable. It's easy to use. If you want to edit your db-data, you can just open the file and edit the in...
[ 0.4376826882362366, 0.14493855834007263, 0.1585121899843216, 0.1428600251674652, -0.2610703110694885, -0.21731165051460266, 0.06146518141031265, -0.2240801453590393, -0.06401868909597397, -0.605252206325531, -0.08462438732385635, 0.5814058780670166, -0.5351418256759644, -0.0935449749231338...
How can I dynamically load a usercontrol in ASP.NET if I dont have access to a Page object (say I'm in a utility class)? Normally you would do : ``` Page.LoadControl("~/controls/MyControl.ascx"); ``` You could add a control from your utility class to the current page, using the following code: ``` Page currentPage ...
[ -0.2265104502439499, -0.48601171374320984, 0.5753956437110901, 0.19116082787513733, 0.03348734974861145, -0.23262615501880646, 0.22590672969818115, 0.0059488676488399506, -0.18894484639167786, -0.722722589969635, -0.16750814020633698, 0.5148299336433411, -0.3887709975242615, 0.146767064929...
Just tried to execute a small Lua script, but unfortunately I'm doing something wrong. I've no more ideas what the fault might be. ``` function checkPrime( n ) for i = 2, n-1, 1 do if n % i == 0 then return false end end return true end ``` The interpreter says: ``` lua: /hom...
[ 0.034964364022016525, 0.31580018997192383, 0.29323601722717285, -0.4782792329788208, 0.19662220776081085, 0.08957961201667786, 0.6895621418952942, -0.151214137673378, 0.06355294585227966, -0.31569284200668335, -0.34392625093460083, 0.5052144527435303, -0.2254713475704193, 0.080058299005031...
wrong. But somehow I cannot see it at the moment. There is probably some version problem, check your version of lua. The usage of '%' as an infix operator for modulo can only be used in Lua 5.1, in 5.0 it is not supported yet. Try using `math.mod` instead: ``` if math.mod(n,i) == 0 then ``` **Edit**: Also note that ...
[ 0.19066199660301208, 0.24264700710773468, 0.4597308933734894, -0.2512233555316925, 0.15898920595645905, 0.061359234154224396, 0.2954781651496887, 0.16740024089813232, -0.3230223059654236, -0.5577593445777893, 0.03004511073231697, 0.5414267182350159, -0.34300515055656433, 0.2897011041641235...
<http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawrectangle.aspx> FillRectangle, DrawRectangle, FillElipse and DrawEllipse all can take 4 Float (or "Single") parameters: x, y, width, height. DrawRectangle is the only one that will not take a RectangleF, though. I was wondering if anyone knew why th...
[ 0.42428261041641235, -0.21313738822937012, 0.5735355019569397, 0.11375155299901962, -0.46488091349601746, 0.5058512687683105, -0.28340134024620056, -0.24058681726455688, -0.490518182516098, -0.503655195236206, 0.2669702470302582, 0.3122791051864624, -0.36757826805114746, 0.0313994288444519...
I have a Windows Forms application that I wrote that does some monitoring of an inbox and database. The customer has informed me that it needs to run every time the server reboots. Shame on me for letting the customer change the requirements. I was thinking ... is there any way to make a Windows Forms application run...
[ 0.5031108260154724, 0.2194948047399521, 0.5437251329421997, 0.01820116490125656, 0.13694076240062714, -0.2309739589691162, 0.4196479618549347, -0.21788975596427917, -0.362154483795166, -0.608192503452301, 0.1434149444103241, 0.22828252613544464, -0.15753695368766785, 0.1336594671010971, ...
to be deleted. So, kindly do not downvote this answer, since I have informed you that it is obsolete.) Alt link: <https://web.archive.org/web/20111221041348/http://www.codeproject.com/kb/system/xyntservice.aspx> C++ source (Or use the Browse Code tab on the article): <https://web.archive.org/web/20111228050501/http:...
[ 0.3367244601249695, 0.09991920739412308, 0.3694898784160614, 0.033316515386104584, 0.2606476843357086, -0.24030950665473938, 0.42840757966041565, 0.0023679439909756184, -0.3014448583126068, -0.7207499146461487, -0.44913724064826965, 0.4127086102962494, -0.259940505027771, 0.139378368854522...