text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
solutions for t (two of which you are interested in), plug that back into [1] to get your max and min x. Repeat for [2]: ``` 0 = dy/dt = b*cos(t)*cos(phi) - a*sin(t)*sin(phi) ``` => ``` tan(t) = b*cot(phi)/a [4] ``` **Lets try an example:** Consider an ellipse at (0,0) with a=2, b=1, rotated by PI/4: [1] => ...
[ -0.3193173408508301, 0.1735881119966507, 0.5083075165748596, -0.1420942097902298, 0.10188144445419312, 0.5501688718795776, 0.10165427625179291, -0.6692721247673035, -0.20022490620613098, -0.6658612489700317, -0.2855331301689148, 0.43139946460723877, -0.32945263385772705, -0.222258806228637...
I have several old 3.5in floppy disks that I would like to backup. My attempts to create an image of the disks have failed. I tried using the UNIX utility dd\_rescue, but when the kernel tries to open (`/dev/fd0`) I get a kernel error, ``` floppy0: probe failed... ``` I would like an image because some of the floppi...
[ 0.7106823921203613, 0.24890296161174774, 0.08014502376317978, 0.22740764915943146, 0.38957154750823975, -0.12510137259960175, 0.07455945760011673, -0.004659096710383892, -0.48792627453804016, -0.8088783025741577, -0.07647755742073059, 0.7147733569145203, -0.19964385032653809, 0.33852547407...
to the local disk but not without possibly losing some data in the process. In other words, converting from LIF to some other format back to LIF will lose some information. I just want to backup the raw bytes on the disk and not be concerned with the type of file system. I think you'll find the best resource [here](ht...
[ 0.4080318510532379, 0.11692027747631073, 0.4965485632419586, 0.11914769560098648, -0.12433404475450516, 0.04462854936718941, -0.2647079825401306, -0.2907494306564331, -0.36185142397880554, -0.7180287837982178, -0.2467842549085617, 0.8254880309104919, -0.23013412952423096, 0.291586428880691...
I use the Boost Test framework for my C++ code but there are two problems with it that are probably common to all C++ test frameworks: * There is no way to create automatic test stubs (by extracting public functions from selected classes for example). * You cannot run a single test - you have to run the entire 'suite'...
[ 0.3927340805530548, 0.47309398651123047, -0.12850728631019592, -0.12569400668144226, -0.43515658378601074, -0.2600913643836975, 0.5050209164619446, 0.025572724640369415, -0.03558465838432312, -0.34661591053009033, 0.07048482447862625, 0.6915198564529419, -0.0531463548541069, -0.10549999028...
ended up using Noel Llopis' UnitTest++. I liked it more than boost::test because it didn't insist on implementing the main program of the test harness with a macro - it can plug into whatever executable you create. It does suffer from the same encumbrance of boost::test in that it requires a library to be linked in. I'...
[ 0.3713380992412567, -0.11307141184806824, -0.06672722101211548, 0.20836429297924042, -0.2920045852661133, 0.003920283168554306, 0.010726076550781727, -0.1343185007572174, 0.21086515486240387, -0.3432370126247406, 0.06384909152984619, 0.7075457572937012, -0.30914705991744995, -0.40698379278...
Java do. The MsTest tools in Visual Studio Team System - Developer's Edition will auto-generate test stubs of unmanaged C++, but the methods have to be exported from a DLL to do this, so it does not work with static libraries. Other test frameworks in the .NET world may have this ability too, but I'm not familiar with ...
[ 0.1599987894296646, -0.08326531946659088, -0.21860019862651825, -0.03636537492275238, -0.32793867588043213, -0.23376087844371796, 0.2792050838470459, -0.2356710284948349, -0.062477562576532364, -0.5390434265136719, 0.15340307354927063, 0.6416439414024353, -0.5353381037712097, -0.2725025117...
I am trying to build a dependency graph of tables based on the foreign keys between them. This graph needs to start with an arbitrary table name as its root. I could, given a table name look up the tables that reference it using the all\_constraints view, then look up the tables that reference them, and so on, but this...
[ -0.061054687947034836, 0.43057841062545776, 0.2978518307209015, -0.03660912439227104, 0.17946863174438477, 0.3066236078739166, 0.057394564151763916, 0.010806100443005562, -0.08632250875234604, -0.8359163403511047, 0.06559739261865616, 0.20529451966285706, -0.4481128454208374, 0.58131521940...
user_tables parent_table, user_constraints parent_constraint, user_constraints child_constraint, user_tables child_table where parent_table.table_name = parent_constraint.table_name and parent_constraint.constraint_type IN( 'P', 'U' ) and child_constraint.r_constraint_name = parent_const...
[ -0.38145989179611206, 0.39059749245643616, 0.2619416117668152, -0.09254613518714905, 0.3943507671356201, 0.5508651733398438, -0.024444827809929848, -0.22939200699329376, -0.46260493993759155, -1.040121078491211, -0.2611750364303589, 0.07797602564096451, -0.3079470992088318, 0.4443492293357...
for the OWNER and R\_OWNER columns if you need to handle cross-schema dependencies. On further reflection, this does not account for self-referential constraints (i.e. a constraint on the EMP table that the MGR column references the EMPNO column) either, so you'd have to modify the code to handle that case if you need ...
[ 0.20418515801429749, 0.14611656963825226, 0.39255252480506897, 0.0008539763512089849, 0.3274635970592499, 0.3413042724132538, 0.21636788547039032, -0.49464288353919983, -0.4457414150238037, -0.5267884731292725, 0.044828176498413086, 0.4115438461303711, -0.3511788547039032, 0.16196249425411...
dept_child3 ( 2 dept_child3_no number primary key, 3 deptno number references dept( deptno ) 4 ); Table created. SQL> create table dept_grandchild ( 2 dept_child3_no number references dept_child3( dept_child3_no ) 3 ); Table created. ``` and verified that the query returned the expected output...
[ -0.23332500457763672, 0.02817053720355034, 0.649917721748352, 0.12921401858329773, 0.530361533164978, 0.824630081653595, -0.02486606128513813, -0.43323656916618347, -0.20820340514183044, -0.5867879986763, -0.14606019854545593, 0.5418316125869751, -0.1662878543138504, 0.11977704614400864, ...
user_constraints child_constraint, 6 user_tables child_table 7 where parent_table.table_name = parent_constraint.table_name 8 and parent_constraint.constraint_type IN( 'P', 'U' ) 9 and child_constraint.r_constraint_name = parent_constraint.constraint_name 10 and child_constraint.constrain...
[ -0.42503878474235535, 0.33038368821144104, 0.43547362089157104, -0.07698404788970947, 0.393370121717453, 0.8179813027381897, -0.1012570858001709, -0.3193204700946808, -0.468806654214859, -0.894331157207489, -0.16325993835926056, 0.25145381689071655, -0.2575298547744751, 0.41391393542289734...
CHILD LEVEL ------------------------------ ------------------------------ ---------- DEPT DEPT_CHILD3
[ -0.6093347668647766, -0.05051031708717346, 0.434923380613327, 0.42098313570022583, 0.25295692682266235, 0.432416170835495, 0.30287376046180725, 0.41331297159194946, -0.3694833517074585, -0.4752391278743744, -0.5070684552192688, 0.05376347154378891, 0.3751314580440521, 0.33965134620666504, ...
1 DEPT_CHILD3 DEPT_GRANDCHILD 2 DEPT DEPT_CHILD2
[ -0.3477803170681, 0.27046653628349304, -0.0386858768761158, -0.24740882217884064, 0.3514694571495056, 0.30256834626197815, 0.27940860390663147, -0.03539581596851349, -0.4287090301513672, -0.2970541715621948, -0.27874240279197693, 0.5419862866401672, -0.0857427567243576, 0.35997146368026733...
1 DEPT EMP 1 ```
[ -0.02539956383407116, 0.3324015438556671, 0.40959861874580383, -0.27436721324920654, 0.02432269975543022, -0.2616811692714691, 0.16972076892852783, -0.17497330904006958, -0.09319856017827988, -0.2223818004131317, -0.4724404811859131, 0.6933603286743164, -0.39377954602241516, -0.03730492666...
I am trying to build out a useful 3d game engine out of the Ogre3d rendering engine for mocking up some of the ideas i have come up with and have come to a bit of a crossroads. There are a number of scripting languages that are available and i was wondering if there were one or two that were vetted and had a proper fol...
[ 0.638487696647644, 0.21496495604515076, -0.10397708415985107, 0.17450863122940063, -0.21355701982975006, 0.17364560067653656, 0.05179399251937866, 0.4637796878814697, -0.09084012359380722, -0.544420599937439, 0.16877800226211548, 0.534509003162384, -0.1633930802345276, 0.057143084704875946...
of loading. The syntax is a matter of taste, Lua is like Javascript but with curly braces replaced with Pascal-like keywords. It has the nice syntactic feature that semicolons are never required but whitespace is still not significant, so you can even remove all line breaks and have it still work. As someone who starte...
[ -0.057195309549570084, -0.31524941325187683, 0.26780611276626587, -0.019266601651906967, -0.49744686484336853, 0.18676525354385376, 0.48353973031044006, 0.30367544293403625, -0.1188221126794815, -0.3983248174190521, 0.18333256244659424, 0.34077149629592896, -0.1663864254951477, -0.40389025...
through and understand). You can let the user script your game without having to embed a massive language. On the other hand if you rip the parser part out of Lua it becomes even smaller.
[ 0.0483531691133976, 0.0720025971531868, -0.027665983885526657, 0.12169776111841202, -0.27784737944602966, -0.21328236162662506, 0.6129599809646606, -0.010898187756538391, 0.009859723038971424, -0.7795997858047485, -0.3432181775569916, 0.4088284969329834, -0.1904943287372589, 0.149051532149...
There are pages scattered around the web that describe POSIX AIO facilities in varying amounts of detail. None of them are terribly recent. It's not clear what, exactly, they're describing. For example, the "official" (?) [web site for Linux kernel asynchronous I/O support here](http://lse.sourceforge.net/io/aio.html) ...
[ 0.4541971981525421, 0.426477313041687, -0.26054856181144714, -0.10833234339952469, -0.0013879408361390233, 0.02917826920747757, -0.07512638717889786, 0.36258500814437866, -0.3835693597793579, -0.4585708677768707, -0.42873847484588623, 0.4689529836177826, -0.44290462136268616, 0.10465606302...
obvious example of an implementation I can find says it doesn't support sockets, the whole thing seems weird to me. Is it just for async disk I/O? If so, why the hyper-general API? If not, why is disk I/O the first thing that got attacked? * Where are there example *complete* POSIX AIO programs that I can look at? * Do...
[ 0.34757280349731445, -0.002652036491781473, -0.2418004870414734, 0.27964410185813904, -0.35142576694488525, -0.14638862013816833, 0.055116020143032074, 0.31636521220207214, -0.34810003638267517, -0.5190129280090332, 0.014115044847130775, 0.7353202700614929, -0.5225189328193665, -0.12875729...
perfectly good, but the random fragments of information floating around out there have made me curious. Network I/O is not a priority for AIO because everyone writing POSIX network servers uses an event based, non-blocking approach. The old-style Java "billions of blocking threads" approach sucks horribly. Disk write ...
[ 0.008683213964104652, 0.059882137924432755, 0.09688006341457367, 0.029790598899126053, 0.24290615320205688, -0.17903368175029755, 0.14688371121883392, 0.05469518154859543, -0.22451746463775635, -0.5549696087837219, 0.03846809267997742, 0.4697701930999756, -0.4794575273990631, -0.1945468187...
I/O. So, at the end that leaves POSIX AIO in the position of not serving **any** useful purpose. Don't use it.
[ 0.43187886476516724, 0.24800409376621246, 0.23740226030349731, 0.005564852152019739, 0.14076223969459534, 0.07835638523101807, -0.08374709635972977, 0.4217223525047302, 0.3152264952659607, -0.4798482358455658, -0.03767140582203865, 0.4574947953224182, -0.108183853328228, 0.0680768415331840...
I am trying to validate user id's matching the example: ``` smith.jack or smith.jack.s ``` In other words, any number of non-whitespace characters (except dot), followed by exactly one dot, followed by any number of non-whitespace characters (except dot), optionally followed by exactly one dot followed by any number...
[ 0.24100139737129211, 0.13981665670871735, 0.490464448928833, -0.20060434937477112, 0.05337074398994446, -0.0300725270062685, 0.1998843401670456, -0.2111406773328781, -0.14996249973773956, -0.8238221406936646, -0.017121251672506332, 0.42495089769363403, -0.41977033019065857, -0.142576232552...
but it isn't. I am using .NET, btw. Frustrating. ^([^.\s]+)\.([^.\s]+)(?:\.([^.\s]+))?$
[ 0.01797926239669323, 0.17399325966835022, 0.3545820116996765, 0.017787965014576912, 0.2852460443973541, -0.005382232833653688, 0.6451148986816406, 0.3331168293952942, 0.029237467795610428, -0.5580700039863586, 0.015162419527769089, 0.48964014649391174, -0.1375713050365448, 0.33132731914520...
I wand to construct an MSI which, in its installation process, will deploy itself along with its contained Files/Components, to the TargetDir. So MyApp.msi contains MyApp.exe and MyAppBootstrapperEmpty.exe (with no resources) in its File Table. The user launches a MyAppBootstrapperPackaged.exe (containing MyApp.msi a...
[ 0.33948662877082825, -0.08032270520925522, 0.9833073019981384, -0.14494609832763672, -0.16226808726787567, 0.09581635147333145, 0.5997273325920105, -0.5226846933364868, 0.11302923411130905, -0.9900359511375427, -0.21058891713619232, 0.3940645754337311, -0.4760891795158386, 0.25021442770957...
%ProgramFiles%\MyApp folder, but would need elevation to do so, and would not allow for its removal via Windows Installer uninstall process (from Add/Remove Programs or otherwise), which should be preserved. Obviously (I think it's obvious - am I wrong?) I can't include the MSI as a file in my Media/CAB (chicken and e...
[ 0.17832644283771515, 0.1464245617389679, 0.5637316703796387, -0.17536140978336334, 0.13643740117549896, 0.07092346251010895, 0.33654141426086426, -0.06402959674596786, 0.11418283730745316, -0.7461176514625549, -0.08695929497480392, 0.4433531165122986, -0.36425450444221497, 0.14506155252456...
content distribution model where content files are only ever to be distributed together with the App. Content is produced by the end user via the App at run time, and packaged into a distributable EXE which includes both the App and the content. MyApp's installer must remain an MSI, but may be executed by a Bootstrapp...
[ 0.3965946435928345, -0.13562752306461334, 0.8607486486434937, 0.17315071821212769, 0.1217459961771965, -0.052321527153253555, 0.07823457568883896, -0.038520678877830505, -0.29440367221832275, -0.6533729434013367, -0.7668552994728088, 0.3270038962364197, -0.41089046001434326, 0.213364899158...
be the same as that used to install the App which is doing the runtime packaging. WIX is not to be installed with MyApp. There can be no network dependencies at run-/packaging- time (i.e. can't do the packaging via a Webservice - must be done locally). I am familiar with (and using) Custom Actions (managed and unman...
[ 0.2449178248643875, 0.05580246448516846, 0.6736547350883484, -0.002077557612210512, -0.032087747007608414, -0.19552290439605713, 0.049529146403074265, -0.07468648999929428, -0.2558264434337616, -1.1608567237854004, -0.16280585527420044, 0.7810796499252319, -0.4057130217552185, 0.1288283467...
the msi that is being installed. The source path above should point to a dummy file, it is only there to appease wix. **Edit**: The following sample test.wxs demonstrates that it works. It produces a test.msi file which installs itself to c:\program files\test. Note that you need to put a dummy test.msi file in the sa...
[ 0.4420660138130188, 0.0885407105088234, 0.5162500739097595, -0.04674266278743744, 0.06923041492700577, -0.017089232802391052, 0.31886962056159973, -0.2485116869211197, 0.06490705907344818, -0.7007749676704407, -0.39985391497612, 0.1469661146402359, -0.4451848268508911, -0.1016918197274208,...
Version='0.0.1' Manufacturer='ManufacturerName' > <Package Keywords='Installer' Description='Installer which installs itself' Manufacturer='ManufactererName' InstallerVersion='100' Languages='1033' Compressed='yes'
[ -0.03474389389157295, -0.05224250629544258, 0.3683644235134125, -0.2918385863304138, 0.2586038112640381, -0.14200592041015625, 0.3252963721752167, -0.0075830272398889065, 0.0787065178155899, -0.6721228361129761, -0.8309581279754639, 0.6021916270256042, -0.2676600217819214, -0.0055026528425...
SummaryCodepage='1252'/> <Media Id='1' Cabinet='test.cab' EmbedCab='yes'/> <Media Id='2' /> <Directory Id='TARGETDIR' Name="SourceDir"> <Directory Id='ProgramFilesFolder'> <Directory Id='TestFolder' Name='Test' > <Component Id="InstallMyself"> ...
[ 0.18468308448791504, -0.16072803735733032, 0.16887564957141876, -0.020096777006983757, -0.10897315293550491, 0.21235357224941254, 0.08550535142421722, -0.2983560264110565, 0.004543493967503309, -0.6336804628372192, -0.056109678000211716, 0.3367141783237457, -0.09018885344266891, -0.0910957...
</Component> </Directory> </Directory> </Directory> <Feature Id='Complete' Display='expand' Level='1' Title='Copy msi file to program files folder'
[ 0.21535518765449524, -0.12324650585651398, 0.5230752229690552, 0.025455716997385025, 0.2877107560634613, -0.02473629266023636, -0.12547725439071655, -0.16905567049980164, -0.3630075752735138, -0.6521135568618774, -0.5389479398727417, 0.37425851821899414, -0.24695003032684326, 0.29640474915...
Description='Test'> <ComponentRef Id="InstallMyself" /> </Feature> </Product> </Wix> ```
[ 0.5052681565284729, -0.15149055421352386, -0.003042438765987754, -0.11973428726196289, 0.12855516374111176, -0.11126483976840973, 0.44453686475753784, -0.4194170832633972, 0.2992410659790039, -0.7562406659126282, -0.4116191267967224, 0.5651746392250061, -0.11431872844696045, -0.01164606679...
I just started using the WPF WebBrowser that is included in Net 3.5 SP1. I built my setup project (which I have been using prior to moving to 3.5 SP1) and installed it on a test machine but the WebBrowser was not available. What must I do to be sure that the setup.exe/msi combination checks for and installs SP1? Open ...
[ 0.9184290170669556, 0.003794050542637706, 0.5463888049125671, -0.0904834121465683, -0.12036042660474777, -0.4471838176250458, 0.4128396511077881, -0.5309186577796936, -0.08817245811223984, -0.868377685546875, -0.025634801015257835, 0.6856030821800232, -0.233180433511734, -0.227713853120803...
Experience > The best way to get a user with reasonable Internet connectivity up on the 3.5 SP1 .NET Framework is with the 2.7 Meg "bootstrapper." This will detect what they need and only download what they need. The worst-case scenario for a x86 machine is around 60 megs, as seen in the table above. > > > What's t...
[ -0.12633179128170013, -0.2865518033504486, 0.5957558751106262, 0.23915624618530273, -0.1312384009361267, -0.25997060537338257, 0.42018795013427734, -0.08463138341903687, -0.2511916160583496, -0.8159165978431702, 0.09515209496021271, 0.7628404498100281, 0.083809994161129, -0.417883515357971...
28 meg payload and give you a client-specific subset of .NET 3.5. If the Client Profile bootstrapper is run on a machine with any version of .NET on it, it'll act the same as the 3.5 SP1 web installer and detect what it needs to download, then go get it. There's more details in the Client Profile Deployment Guide. <ht...
[ 0.07521546632051468, -0.14254051446914673, 0.4921064078807831, 0.04679449275135994, -0.29556965827941895, -0.036193981766700745, 0.42144566774368286, -0.13920742273330688, -0.03946057707071304, -0.6420217156410217, -0.17119990289211273, 0.6560506820678711, -0.3429657816886902, -0.326426118...
The title should say it all, then I can solidify 2 more ticks on the Joel test. I've implemented build automation using a makefile and a python script already and I understand the basics and the options. But how can I, the new guy who reads the blogs, convince my cohort of its inherent efficacy? Ask for forgiveness...
[ 0.4298364222049713, 0.19692933559417725, 0.5104051828384399, 0.28460514545440674, 0.16970406472682953, -0.3242802917957306, 0.1846829503774643, 0.00011591544171096757, -0.14372891187667847, -0.11062541604042053, 0.10208447277545929, 0.8501057624816895, 0.40575742721557617, -0.0766979381442...
succeeded. (this is assuming you're in a Windows environment, that CruiseControl will work with your existing systems, etc.) NOTE: If asking for forgiveness instead of permission will result in instant termination, you might not want to do the above. You might also want to look for work somewhere else. Your mileage ma...
[ 0.1647711992263794, -0.27744847536087036, 0.7031410932540894, 0.2812747061252594, 0.3699667751789093, -0.1400182545185089, 0.8610596656799316, -0.11199074238538742, -0.31129616498947144, -0.4096112549304962, -0.03259570896625519, 0.44432204961776733, 0.0693630650639534, -0.1231035888195037...
After reading Practical Common Lisp I finally understood what the big deal about macros was, and I have been looking for a language for the .NET platform that supports this. There are a few lisp dialects for .NET but from what I have been able to gather all are either very beta or abandoned. Recently my interest has be...
[ 0.061808690428733826, 0.10824641585350037, 0.12872318923473358, -0.03560653701424599, -0.15468816459178925, 0.14116856455802917, -0.01542909350246191, 0.39606016874313354, -0.18340499699115753, -0.5851602554321289, 0.35464730858802795, 0.5303804874420166, -0.7449445128440857, -0.2208660989...
at the documentation if I could find anything about macro support, but haven't found it. So does anyone know? Thanks :) Well, F# is based on OCaml and OCaml has a rather [extensive macro system](http://www.ocaml-tutorial.org/camlp4_3.10). Given the syntactic and semantic similarities of F# and OCaml you may be able to...
[ 0.3138050138950348, 0.24281494319438934, 0.08370333164930344, 0.0958840548992157, -0.04686814546585083, -0.13703209161758423, 0.19849756360054016, 0.665006160736084, -0.3095654547214508, -0.5357972383499146, 0.041903767734766006, 0.8500235080718994, -0.34247201681137085, -0.226495310664176...
I'm making a small web application in Seaside. I have a login component, and after the user logs in I want to send along a cookie when the next component renders itself. Is there a way to get at the object handling the response so I can add something to the headers it will output? I'm trying to avoid using WASession>>...
[ 0.3909597098827362, -0.19370348751544952, 0.5501179695129395, -0.0038512623868882656, -0.011235261335968971, 0.22676721215248108, 0.07646124064922333, 0.17599277198314667, -0.2569643259048462, -0.7112571001052856, 0.34975871443748474, 0.33269786834716797, 0.07692184299230576, 0.15486462414...
cookies during the action/callback phase of request processing. This is most likely a defect and is noted in this issue: <http://code.google.com/p/seaside/issues/detail?id=48> This is currently slated to be fixed for Seaside 2.9 but I don't know if it will even be backported to 2.8 or not. Keep in mind that there is ...
[ -0.19119755923748016, -0.46956831216812134, 0.7390835881233215, -0.16096583008766174, -0.03430657833814621, -0.302778959274292, 0.5869169235229492, -0.13607627153396606, -0.272229939699173, -0.455085426568985, -0.0869729220867157, 0.5931335091590881, 0.01612856425344944, -0.300117462873458...
triggered and the redirect or rendering phase begun. **Edited to add:** The issue has now been fixed and (in the latest development code) you can now properly add cookies to the current response at any time. Simply access the response object in the current request context and add the cookie. For example, you might do...
[ 0.02856617420911789, -0.4989606440067291, 0.795406699180603, -0.1692950427532196, -0.08112868666648865, -0.19235870242118835, 0.3050895035266876, -0.04471322149038315, -0.25557440519332886, -0.4758901596069336, -0.2814997434616089, 0.6725538372993469, -0.07061798125505447, -0.1161699965596...
When I try to compile code on VS 2005 and it fails, the line which causes the error gets underlined blue, and mouse-hovering over it displays the error message. Fine, but you can't see object types or whatever, because Intellisense will show the error message, and not object info. In this image, I wanted to see what t...
[ 0.20277930796146393, 0.005438562482595444, 0.3435637652873993, -0.044799014925956726, 0.14972519874572754, -0.11529230326414108, 0.7116242051124573, -0.011164823547005653, -0.15821433067321777, -0.8573377728462219, -0.025219684466719627, 0.4137171804904938, -0.09036702662706375, 0.21452607...
it also clears the list of error messages, restoring normal behaviour of Intellisense.
[ -0.5129135251045227, -0.14600633084774017, 0.277969628572464, 0.010283722542226315, 0.2682107090950012, -0.17245802283287048, 0.46320322155952454, 0.08519010990858078, 0.23781603574752808, -0.43108105659484863, -0.4008331894874573, 0.48707664012908936, -0.13862290978431702, -0.027299992740...
I'm trying to use libvirt with virsh to manage my kvm/qemu vms. The problem I have is with getting it to work with public IPs. The server is running ubuntu 8.04. libvirt keeps trying to run it as: ``` /usr/bin/kvm -M pc -m 256 -smp 3 -monitor pty -no-acpi \ -drive file=/opt/virtual-machines/calculon/root.qcow2,if=...
[ 0.11352548748254776, -0.06209946796298027, 0.7667769193649292, -0.1381111741065979, 0.0887845829129219, -0.15129859745502472, 0.36978060007095337, -0.17133192718029022, -0.2714882791042328, -0.6367770433425903, -0.09702860563993454, 0.671208918094635, -0.4181978106498718, 0.179883450269699...
seen focus on setting up masquerading, while I just want a simple bridge and unfiltered access to the net (both the guests and host must use public IPs). Running ifconfig on the host gives this, the bridge is manually setup in my /etc/network/interfaces file. : ``` br0 Link encap:Ethernet HWaddr 00:1e:c9:3c:59:b8...
[ -0.05450737476348877, -0.10240492224693298, 0.9345576167106628, -0.05352011322975159, -0.18676112592220306, -0.2357647567987442, 0.6707763075828552, -0.30712562799453735, -0.45262840390205383, -0.5842525362968445, -0.22809186577796936, 0.6350339651107788, -0.2290458232164383, -0.3400169909...
TX packets:3025 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:180646 (176.4 KB) TX bytes:230908 (225.4 KB) eth0 Link encap:Ethernet HWaddr 00:1e:c9:3c:59:b8 inet6 addr: fe80::21e:c9ff:fe3c:59b8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ...
[ -0.19568297266960144, 0.020885230973362923, 0.4229851961135864, 0.030748426914215088, -0.27553099393844604, 0.42722100019454956, 0.6464853286743164, -0.4666495621204376, -0.4118921160697937, -0.5640300512313843, -0.4764018654823303, 0.6352249383926392, -0.24282929301261902, -0.297595888376...
Interrupt:33 ``` Any help would be greatly appreciated. I followed the bridged networking guide at <https://help.ubuntu.com/community/KVM> and have the following in /etc/network/interfaces: ``` auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.0.10 network 192.168.0.0 ...
[ -0.19589108228683472, 0.14521871507167816, 0.5227971076965332, -0.2427407056093216, -0.18133550882339478, 0.25973403453826904, 0.27881452441215515, 0.1060294508934021, -0.4224575459957123, -0.6845069527626038, 0.09551259130239487, 0.7847304940223694, -0.4796299338340759, -0.005545687861740...
bridge_hello 2 bridge_maxage 12 bridge_stp off ``` I have not changed any libvirt network settings and my kvm images are booted like: ``` /usr/bin/kvm -M pc -no-kqemu -m 256 -smp 1 -monitor pty -boot c -hda \ /libvirt/apt.img -net nic,macaddr=00:16:3e:77:32:1d,vlan=0 -net \ tap,fd=11,script=,...
[ -0.3425924479961395, 0.17999985814094543, 1.0246144533157349, -0.2915962040424347, -0.13583999872207642, 0.0864994078874588, 0.32116401195526123, -0.27506810426712036, -0.24432724714279175, -0.9065636396408081, 0.10750239342451096, 0.564237654209137, -0.1553989052772522, -0.139117971062660...
<mac address='00:16:3e:77:32:1d'/> <source bridge='br0'/> </interface> ```
[ -0.5207903981208801, 0.4062153995037079, 0.564635694026947, -0.1526581346988678, -0.0153446514159441, 0.15486454963684082, 0.1148265153169632, 0.049516670405864716, -0.017823288217186928, -1.0033605098724365, -0.07099715620279312, 0.5644187331199646, -0.25932368636131287, 0.168286100029945...
I'm a little hesitant to post this, as I'm not completely sure what I'm doing. Any help would be wonderful. I'm on a computer with a firewall/filter on it. I can download files without any difficulty. When I try to clone files from Github, though, the computer just hangs. Nothing happens. It creates a git file in the ...
[ 0.8331931829452515, 0.23703120648860931, 0.17522664368152618, 0.15832576155662537, 0.16915491223335266, -0.17188163101673126, 0.06679067760705948, 0.2312372326850891, 0.011877021752297878, -0.9308670163154602, 0.049914032220840454, 0.2774619162082672, 0.11824633181095123, 0.277572810649871...
option, but if I can do something without going through that process, I'd appreciate it. Github supports cloning using both the git protocol over port 9418 and HTTP over port 80. Using the later is very slow ([Reference](http://github.com/blog/92-http-cloning)). You should open port 9418 on your firewall or use HTTP cl...
[ 0.20446936786174774, 0.1501753032207489, 0.5007840394973755, 0.1766422539949417, 0.01115051843225956, -0.20924094319343567, -0.011300299316644669, 0.30615726113319397, -0.04977451637387276, -0.8535385727882385, -0.2704159617424011, 0.4800528883934021, -0.3042019307613373, 0.250145345926284...
This is a follow up question to [This Question](https://stackoverflow.com/questions/85815/how-to-tell-if-a-javascript-function-is-defined). I like (and understand) the solution there. However, in the code I am working in, another way to solve the same problem is used: ``` function exist(sFN) { if(self[sFN]) retu...
[ 0.335062712430954, 0.12342344224452972, 0.2285252809524536, -0.07831558585166931, -0.0619782954454422, -0.23533478379249573, 0.3406127095222473, -0.31114283204078674, 0.10320226848125458, -0.3843854069709778, -0.03979015722870827, 0.7170860171318054, -0.2410387545824051, 0.0715595334768295...
others have said, you can use typeof, or instanceof to see if it's actually a function. Looking at your linked example, you should read up on the difference between ==/!= and ===/!== in javascript. Short answer: ("" == null) is true, ("" === null) is false.
[ 0.2760111391544342, 0.024877890944480896, -0.05668185278773308, -0.028284594416618347, -0.20064754784107208, -0.2126285284757614, 0.31248337030410767, -0.18630507588386536, -0.016703030094504356, -0.4614570736885071, -0.19442631304264069, 0.5319862961769104, -0.30681684613227844, -0.142873...
Is there a way to get a `DrawingContext` (or something similar) for a `WriteableBitmap`? I.e. something to allow you to call simple `DrawLine`/`DrawRectangle`/etc kinds of methods, rather than manipulate the raw pixels directly. It appears [the word is no](http://social.msdn.microsoft.com/forums/en-US/wpf/thread/84299f...
[ 0.32341161370277405, -0.4563995897769928, 0.6083343029022217, 0.107847198843956, -0.14561745524406433, -0.15080136060714722, -0.1390097439289093, 0.150494784116745, -0.31447720527648926, -0.6483429670333862, -0.08054611086845398, 0.30636096000671387, -0.08276958763599396, -0.01173181831836...
I wanting to show prices for my products in my online store. I'm currently doing: ``` <span class="ourprice"> <%=GetPrice().ToString("C")%> </span> ``` Where GetPrice() returns a decimal. So this currently returns a value e.g. "£12.00" I think the correct HTML for an output of "£12.00" is "`&pound;12.00`", so ...
[ 0.5828558206558228, 0.351745069026947, 1.0563488006591797, -0.3333839476108551, -0.05538995563983917, 0.32625097036361694, 0.013225880451500416, -0.22106584906578064, -0.28902295231819153, -0.3815353810787201, -0.1692594438791275, 0.2901047170162201, -0.036654990166425705, 0.12628318369388...
should all render the same in a browser. If the browser doesn't recognise £, it probably won't recognise the entity versions. It's in ISO 8859-1 (Latin-1), so I'd be surprised if a Mozilla browser can't render it (my FF certainly can). If you see a $ sign, it's likely you have two things: 1. The browser default lang...
[ 0.45800960063934326, -0.052649904042482376, 0.6504005789756775, -0.08903983235359192, -0.10201819241046906, 0.09781879186630249, 0.19314849376678467, 0.43993714451789856, -0.1476055532693863, -0.8665103912353516, -0.4356594681739807, 0.4338727295398712, -0.2529667317867279, 0.3163621723651...
<%@Page Culture="en-gb" UICulture="en-gb" ..etc... %> ``` Thereafter the string formats such as String.Format("{0:C}",GetPrice()) and GetPrice().ToString("C") will use the en-GB locale as asp.net will have set the currentCulture for you (although you can specify the en-gb culture in the overloads if you're paranoid)...
[ 0.477093905210495, -0.20884570479393005, 0.8220580220222473, 0.030657703056931496, 0.10357318073511124, -0.21069855988025665, 0.03730173408985138, 0.42076706886291504, -0.2663636803627014, -0.7271223068237305, -0.3970893323421478, 0.177279993891716, -0.24464556574821472, 0.3084971606731415...
In a custom module for drupal 4.7 I hacked together a node object and passed it to node\_save($node) to create nodes. This hack appears to no longer work in drupal 6. While I'm sure this hack could be fixed I'm curious if there is a standard solution to create nodes without a form. In this case the data is pulled in fr...
[ 0.2345297783613205, -0.11416386812925339, 0.265743613243103, 0.019986078143119812, -0.10324053466320038, -0.0952879786491394, 0.3754592835903168, 0.25068530440330505, -0.27661827206611633, -0.6825042366981506, 0.1277892142534256, 0.31071698665618896, -0.6288980841636658, 0.2618253827095032...
fields are set: uid, name, type, language, title, body, filter (see `node_add()` and `node_form()`) 2. Pass the node through `node_object_prepare()` so other modules can add to the $node object.
[ -0.03663567453622818, -0.18310332298278809, 0.46985286474227905, -0.13121473789215088, 0.23470601439476013, -0.10667192935943604, -0.13955441117286682, -0.2850031554698944, 0.030510736629366875, -0.6701980829238892, -0.37224093079566956, 0.3362251818180084, -0.25860291719436646, 0.23873358...
Does anyone know if it's possible to use regex capture within Apache's DirectoryMatch directive? I'd like to do something like the following: ``` <DirectoryMatch ^/home/www/(.*)> AuthType Basic AuthName $1 AuthUserFile /etc/apache2/svn.passwd Require group $1 admin </DirectoryMatch> ``` but so far I'...
[ 0.21700191497802734, 0.26804009079933167, 0.5361870527267456, -0.13203997910022736, -0.2814134657382965, -0.01741877570748329, 0.17834362387657166, -0.3158949911594391, 0.010181346908211708, -0.6866037845611572, 0.012155376374721527, 0.5290113091468811, -0.31118252873420715, 0.080551214516...
and group b, etc. I'd like to keep everything based on the directory name so I can easily script adding htpasswd users to the correct groups and automate this as much as possible, but other suggestions for solving the problem are certainly welcome. You could tackle the problem from a completely different angle: enable ...
[ 0.4039528965950012, -0.09126909077167511, 0.4569943845272064, -0.09893950819969177, -0.38516557216644287, -0.10101168602705002, 0.0219541285187006, -0.23571038246154785, -0.31491658091545105, -0.37416383624076843, -0.0359472930431366, 0.41428589820861816, -0.5310854911804199, 0.09105002880...
read your groups and other information from a database or by simply globbing /home/www or whatever else tickles your fancy.
[ 0.9522462487220764, 0.09723320603370667, -0.0041428301483392715, 0.22412420809268951, -0.042005475610494614, -0.4101518392562866, 0.13438454270362854, 0.5854954123497009, -0.34841275215148926, -0.5718414783477783, -0.0660989060997963, 0.12376967072486877, 0.20808377861976624, 0.02998340874...
I have been asked to lend a hand on a hobby project that a couple friends are working on, they are using SharpDevelop 3.0 (Beta 2 I think, but it might be Beta 1) is there any hassle for me to install and use this IDE given that I have Visual Studio 2008 installed? I've had no problems at all, in fact some of the tools...
[ 0.270210325717926, -0.1864400953054428, 0.270293265581131, 0.2237953245639801, -0.41181376576423645, -0.24923944473266602, 0.03401821106672287, 0.019438112154603004, 0.021875649690628052, -0.5525910258293152, 0.3824490010738373, 0.7583147287368774, -0.0414818674325943, 0.09878417104482651,...
SharpDevelop and VisualStudio 6 installed at the moment, and there's more compat problems with MS's tools than with #develop.
[ -0.07618625462055206, -0.26881152391433716, 0.7626475691795349, 0.41159293055534363, -0.3606983423233032, 0.0365755558013916, 0.18562892079353333, -0.06366823613643646, 0.15972517430782318, -0.9860982298851013, -0.045366689562797546, 0.7150941491127014, 0.08172813057899475, 0.2236638665199...
For a small project I have to parse pdf files and take a specific part of them (a simple chain of characters). I'd like to use python to do this and I've found several libraries that are capable of doing what I want in some ways. But now after a few researches, I'm wondering what is the real structure of a pdf file, d...
[ 0.4630996882915497, 0.13217873871326447, 0.1668214648962021, 0.3070288300514221, -0.21616995334625244, -0.27044224739074707, 0.02534959837794304, 0.06549470126628876, -0.24655167758464813, -0.6195289492607117, 0.04919940605759621, 0.3916611671447754, -0.05304785445332527, 0.149369075894355...
that PDF is only about presentation, not structure. Parsing will not come easy.
[ -0.1371353715658188, 0.16304244101047516, 0.36312028765678406, 0.4414253830909729, -0.1788850575685501, -0.30307871103286743, -0.20872148871421814, 0.04314273223280907, -0.07328341901302338, -0.7066090703010559, -0.19474536180496216, 0.32699766755104065, -0.2748555541038513, 0.182478755712...
We have a medium sized .js file that we include in our web framework that I am porting over to SharePoint. However, I'm not sure how to go about this or what the best practice is. This is for a framework solution that will be used by other client projects, so it's best for it to be self contained and deploy-able, rathe...
[ 0.3896617889404297, 0.29313576221466064, 0.1040721908211708, -0.05539959296584129, 0.12234936654567719, -0.38764140009880066, 0.17146846652030945, 0.04882270097732544, 0.04461110755801201, -0.7021827697753906, -0.04197871685028076, 0.48860812187194824, -0.11240669339895248, -0.109228968620...
other recommendations? Embeded resource is the best way and you don't need to use the ScriptManager to render it out (as AJAX is not configured OoB on SharePoint), you can just render it as any other client script resource (through the ClientScriptManager). Best idea is the have an if ContainsScriptManager else UsClie...
[ 0.330723375082016, -0.3111419677734375, 0.43506643176078796, 0.42191293835639954, -0.28008508682250977, -0.3237246870994568, 0.13087844848632812, -0.03489021211862564, -0.1886262744665146, -0.8350390195846558, 0.447439968585968, 0.7192630171775818, -0.016872180625796318, -0.127860113978385...
I've been looking at ways people test their apps in order decide where to do caching or apply some extra engineering effort, and so far httperf and a simple sesslog have been quite helpful. What tools and tricks did you apply on your projects? I use httperf for a high level view of performance. Rails has a performanc...
[ 0.4503054916858673, -0.000807532633189112, 0.07045286148786545, 0.3514331579208374, -0.4925273060798645, -0.31941714882850647, 0.2907489538192749, -0.011174237355589867, -0.2434314489364624, -0.6473997235298157, 0.08416277170181274, 0.6288987994194031, 0.1400476098060608, -0.17584808170795...
for free.
[ 0.3597615957260132, 0.03896642103791237, -0.06425528973340988, 0.3611389994621277, 0.03728939965367317, -0.01719805598258972, 0.09020482748746872, 0.24072174727916718, -0.29728367924690247, 0.08647654205560684, -0.2644018828868866, 0.2563638389110565, -0.3174940347671509, -0.01112168468534...
What's the best way to serialize a HashTable (or a data best navigated through a string indexer) with SOAP/XML? Let's say I have a `Foo` that has an property `Bar[] Bars`. A `Bar` object has a key and a value. By default, this serializes to the following XML: ``` <Foo> <Bars> <Bar key="key0" value="value0"/> ...
[ 0.10578401386737823, 0.18163934350013733, 0.3086511790752411, -0.07898999750614166, -0.15478871762752533, -0.2260301411151886, -0.005138657055795193, -0.2230484038591385, -0.03587893024086952, -0.5895144939422607, -0.034176673740148544, 0.3459550142288208, -0.31234633922576904, 0.086013354...
... </Bars> </Foo> ``` I realize there are some challenges with serializing to SOAP in this way, but what's the best approach to providing a schema that better reflects this? I've tried creating a BarsCollection object and defining custom serialization on that, but it doesn't seem to actually invoke the serializa...
[ 0.5908833742141724, 0.1908261477947235, 0.3888353109359741, -0.10879171639680862, -0.0014266007347032428, -0.07704133540391922, 0.2113456428050995, -0.20517048239707947, -0.09717272222042084, -0.8902120590209961, 0.0664730817079544, 0.4051007330417633, -0.5679743885993958, 0.25176882743835...
want reflects the structure better. To define a schema (think XSD) for this you would have to know all of the potential keys in advance since you indicate that you want each one to be a separate custom type. Conceptually Bars would be an array of objects holding objects of type Key0, Key1, with each of the KeyN class c...
[ 0.14225013554096222, 0.026637641713023186, 0.34314534068107605, -0.026790451258420944, -0.06244957819581032, 0.07580284774303436, 0.012397680431604385, -0.3930319547653198, -0.08247710019350052, -0.7125447988510132, 0.048314034938812256, 0.524246335029602, -0.26116132736206055, -0.25371721...
If you don't care about the types why not just use JSON?
[ 0.7916730642318726, 0.2628815770149231, -0.3158525228500366, 0.27315664291381836, -0.10724104940891266, -0.22680671513080597, 0.029044214636087418, 0.3660998046398163, -0.19217421114444733, -0.3297629654407501, 0.2026979774236679, 0.49113866686820984, -0.1922674924135208, -0.21700085699558...
I need to create a repeatable process for deploying SQL Server Reporting Services reports. I am not in favor of using Visual Studio and or Business Development Studio to do this. The rs.exe method of scripting deployments also seems rather clunky. Does anyone have a very elegant way that they have been able to deploy r...
[ 0.5699798464775085, 0.35691872239112854, 0.11079409718513489, 0.07641918212175369, -0.09696383774280548, -0.5911381244659424, -0.027591867372393608, 0.014937691390514374, -0.06608244776725769, -0.6010422706604004, 0.20537343621253967, 0.6131719350814819, -0.3170378804206848, -0.20955809950...
without a chance to test it, hope I did not brake anything), it deploys reports and associated images from subdirectories for various languages. Also datasource is created. ``` '===================================================================== ' File: PublishReports.rss ' ' Summary: Script that can be used ...
[ 0.06732488423585892, -0.03988159820437431, 0.966718852519989, 0.11481303721666336, -0.09183364361524582, -0.41434183716773987, 0.02226117253303528, -0.20905272662639618, -0.26235729455947876, -0.4658752679824829, -0.20273533463478088, 0.4380672574043274, -0.4917152225971222, 0.018557159230...
'Create parent folder Try rs.CreateFolder(parentFolder, "/", Nothing) Console.WriteLine("Parent folder created: {0}", parentFolder) Catch e As Exception Console.WriteLine(e.Message) End Try PublishLanguagesFromFolder(filePath) End Sub Public Sub PublishLanguagesFromFolder(ByVa...
[ 0.15918917953968048, -0.12829144299030304, 0.8001370429992676, -0.17706316709518433, 0.07353847473859787, -0.15876223146915436, 0.4084734618663788, -0.22273622453212738, -0.13840283453464508, -0.46012362837791443, -0.44621726870536804, 0.2666712999343872, -0.49191030859947205, 0.2752616107...
the lang folder Try rs.CreateFolder(langPath, "/" + parentFolder, Nothing) Console.WriteLine("Parent lang folder created: {0}", parentFolder + "/" + langPath) Catch e As Exception Console.WriteLine(e.Message) End Try 'Create the shared data source ...
[ 0.016649562865495682, -0.15887509286403656, 0.5082421898841858, -0.1410970389842987, 0.16876086592674255, -0.08903966099023819, 0.40603339672088623, -0.06075730174779892, 0.018571220338344574, -0.5909944176673889, -0.4318982660770416, 0.18956626951694489, -0.596176266670227, 0.207269102334...
+ parentFolder + "/" + langPath) 'Publish reports and images PublishFolderContents(folder + "\" + langPath, "/" + parentFolder + "/" + langPath) Next 'Lang End Sub Public Sub CreateDataSource(ByVal targetFolder As String) Dim name As String = "data source" 'Data source definition. Dim...
[ -0.11162927001714706, -0.2809576988220215, 1.0657597780227661, -0.03129497170448303, 0.0020028692670166492, -0.25851234793663025, 0.2059575766324997, -0.48805364966392517, 0.040028560906648636, -0.5562177896499634, -0.5605089664459229, 0.30261868238449097, -0.23105990886688232, 0.279757827...
definition.EnabledSpecified = True definition.Extension = "SQL" definition.ImpersonateUser = False definition.ImpersonateUserSpecified = True 'Use the default prompt string. definition.Prompt = Nothing definition.WindowsCredentials = False 'Login information definition.UserName = "user" ...
[ 0.1233191266655922, -0.22481554746627808, 0.6385993957519531, -0.09187623113393784, 0.13120608031749725, 0.03819018602371216, 0.4967041313648224, -0.0771745890378952, -0.06847886741161346, -0.5975151658058167, -0.38845232129096985, 0.2712910771369934, -0.5166492462158203, 0.214888453483581...
End Try End Sub Public Sub PublishFolderContents(ByVal sourceFolder As String, ByVal targetFolder As String) Dim di As New DirectoryInfo(sourceFolder) Dim fis As FileInfo() = di.GetFiles() Dim fi As FileInfo Dim fileName As String For Each fi In fis fileName = fi.Name Select Case...
[ -0.09283625334501266, -0.28671562671661377, 0.8983455896377563, -0.06702209264039993, -0.08182688802480698, -0.21488234400749207, 0.6040863990783691, -0.4990798830986023, 0.22031161189079285, -0.2619795799255371, -0.48496466875076294, 0.4473426938056946, -0.3507075011730194, 0.296459585428...
PublishReport(sourceFolder, fileName, targetFolder) Case ".JPG", ".JPEG" PublishResource(sourceFolder, fileName, "image/jpeg", targetFolder) Case ".GIF", ".PNG", ".BMP" PublishResource(sourceFolder, fileName, "image/" + fileName.Substring(fileName.Length - 3).ToLo...
[ -0.23748797178268433, -0.2574169337749481, 1.1084200143814087, 0.24677763879299164, 0.05938856303691864, -0.22049006819725037, -0.34301742911338806, -0.49880513548851013, 0.14406296610832214, -0.5690004825592041, -0.5679458975791931, 0.4792890250682831, -0.3293607532978058, 0.1109983399510...
ByVal targetFolder As String) Dim definition As [Byte]() = Nothing Dim warnings As Warning() = Nothing Try Dim stream As FileStream = File.OpenRead(sourceFolder + "\" + reportName) definition = New [Byte](stream.Length) {} stream.Read(definition, 0, CInt(stream.Length)) stre...
[ 0.47519436478614807, -0.36005282402038574, 0.7570334076881409, -0.2785402238368988, 0.032781556248664856, 0.06320104748010635, 0.4391123056411743, -0.40434592962265015, 0.11402924358844757, -0.5649177432060242, -0.09631013870239258, 0.48292797803878784, -0.35862478613853455, 0.231637582182...
folder, overwrite, definition, properties warnings = rs.CreateReport(reportName.Substring(0, reportName.Length - 4), targetFolder, True, definition, Nothing) If Not (warnings Is Nothing) Then Dim warning As Warning For Each warning In warnings Console.WriteLine(...
[ 0.1944865584373474, -0.019710196182131767, 0.7382858991622925, -0.26356908679008484, 0.17258036136627197, -0.17070509493350983, 0.4546675980091095, -0.05895621329545975, -0.30172160267829895, -0.5310582518577576, -0.12474936246871948, 0.5437375903129578, -0.3068075478076935, 0.114739075303...
Else Console.WriteLine("Report: {0} published successfully with no warnings", targetFolder + "/" + reportName) End If Catch e As Exception Console.WriteLine(e.Message) End Try End Sub Public Sub PublishResource(ByVal sourceFolder As String, ByVal resourceName As String, ByVal resour...
[ -0.07192250341176987, -0.20055830478668213, 0.707669734954834, -0.14337970316410065, 0.20560429990291595, -0.1532943695783615, 0.498884379863739, -0.2195701003074646, 0.08767804503440857, -0.4652162492275238, -0.3057803213596344, 0.5719610452651978, -0.2151852399110794, 0.14813101291656494...
Dim stream As FileStream = File.OpenRead(sourceFolder + "\" + resourceName) definition = New [Byte](stream.Length) {} stream.Read(definition, 0, CInt(stream.Length)) stream.Close() Catch e As IOException Console.WriteLine(e.Message) End Try Try 'name, folder, overwrite, ...
[ 0.3826083838939667, -0.47598206996917725, 0.9084726572036743, -0.21192634105682373, -0.020391056314110756, 0.15576134622097015, 0.3480716645717621, -0.2727707326412201, 0.011312204413115978, -0.4894835352897644, -0.13129621744155884, 0.6010369062423706, -0.4013398587703705, 0.2610483765602...
{1} created successfully", targetFolder + "/" + resourceName, resourceMIME) Catch e As Exception Console.WriteLine(e.Message) End Try End Sub ``` Here is the batch to call the rs.exe: ``` SET ReportServer=%1 SET DBServer=%2 SET DBName=%3 SET ReportFolder=%4 rs -i PublishReports.rss -s %ReportServer%...
[ 0.0033575394190847874, 0.17555305361747742, 0.8301197290420532, -0.2786039412021637, -0.1564791202545166, -0.1235274001955986, 0.5609777569770813, -0.5764943361282349, -0.05691909417510033, -0.39378830790519714, -0.4888235330581665, 0.3540005683898926, -0.42167600989341736, 0.3232783973217...
Is there any centralized repository of useful Objective-C / Cocoa libraries as there is for Perl, Ruby, Python, etc.? In building my first iPhone app, I'm finding myself implementing some very basic functions that would be just a quick "gem install" away in Ruby. Unfortunately not :( There are some very useful sites h...
[ 0.41261154413223267, 0.36687931418418884, -0.3039654493331909, 0.28107842803001404, -0.10579514503479004, -0.07401241362094879, 0.389189213514328, 0.5828056931495667, -0.4668342173099518, -0.3038363456726074, 0.15906544029712677, 0.5611910820007324, -0.16767042875289917, -0.252199321985244...
this site [cocoadevcentral.com](http://www.cocoadevcentral.com/) which is also very good for starting out with cocoa.
[ 0.30861222743988037, -0.08974464982748032, 0.09643996506929398, 0.334779292345047, -0.4366086423397064, -0.45409315824508667, 0.2756823003292084, 0.5845041275024414, -0.43288201093673706, -0.46161890029907227, 0.04624709486961365, 0.09825202077627182, 0.5765300989151001, 0.1238458901643753...
I'm working now on a page that has a column of boxes styled with sexy shadows and corners and whatnot using the example [here](http://www.schillmania.com/content/projects/even-more-rounded-corners/). I have to admit, I don't fully understand how that CSS works, but it *looks* great. Inside the topmost box is a text-ty...
[ 0.14536835253238678, 0.21047036349773407, 0.44049641489982605, -0.019876867532730103, -0.1210138350725174, -0.028129786252975464, 0.15515582263469696, 0.03541264683008194, -0.06452173739671707, -0.829502284526825, -0.20222918689250946, 0.5961117148399353, -0.2109672576189041, -0.2647076547...
between boxes that I'm comfortable IE7 really is getting more than one suggestion). Where could I start looking to correct the problem? Here's what success looks like in FF2 on WinXP: ![alt text](https://farm4.static.flickr.com/3042/2866012663_f5db805775_o.jpg) And here's what failure looks like in IE7: ![alt text...
[ -0.10642948001623154, 0.06820739060640335, 0.3180396854877472, -0.07382092624902725, 0.18169932067394257, 0.23545010387897491, 0.32923513650894165, -0.24188676476478577, 0.09326035529375076, -0.6064183115959167, -0.2490336149930954, 0.3723495900630951, -0.2097640335559845, 0.23781508207321...
this issue, because IE was essentially rendering the entire contents of the search box *below* the entire contents of the "Vital Stats" box, because both had default z-index, and Vital Stats was *later* in the HTML. The trick was to give each of these sibling DIVs (the blue rounded corner containers) descending z-inde...
[ 0.03879323974251747, -0.40412309765815735, 0.4722731411457062, 0.22993138432502747, -0.006758380215615034, -0.14225411415100098, 0.04424082115292549, -0.06790268421173096, -0.04867321625351906, -0.7437447905540466, -0.055375561118125916, 0.17261365056037903, -0.3953489363193512, 0.19825750...
overlapping. On the immediate children of the common ancestor, apply z-indexes in the order you want content to show up.
[ 0.13248193264007568, 0.1267928034067154, 0.05753333494067192, 0.2988338768482208, 0.060290079563856125, -0.04923803359270096, -0.18422120809555054, 0.037903860211372375, -0.19620977342128754, -0.796132504940033, -0.30700212717056274, 0.18061545491218567, -0.3344747722148895, 0.405794382095...
Is there a command that would allow me to check if the string `"xyz"` was ever in file `foo.c` in the repository and print which revisions they were found in? This will print any commits where the diff contains xyz ``` git log -Sxyz foo.c ```
[ 0.46451836824417114, 0.20228223502635956, 0.3741671144962311, 0.13810868561267853, 0.30868351459503174, -0.2616773247718811, 0.05212504044175148, 0.10311991721391678, -0.06944261491298676, -0.4311468303203583, -0.09837539494037628, 0.6010348796844482, -0.16156812012195587, 0.22448864579200...
What are the steps and techniques to debug an apparent hang due to a deadlock in a Win32 production process. I heard that WinDbg can be used for this purpose but could you please provide clear hints on how this can be accomplished? This [post](http://blogs.msdn.com/carloc/archive/2007/10/08/ok-now-how-do-i-capture-my-d...
[ 0.26959651708602905, 0.0017010002629831433, -0.0010973362950608134, 0.13429388403892517, 0.10870066285133362, -0.37657785415649414, 0.3186175227165222, -0.19984866678714752, -0.30135518312454224, -0.22054719924926758, -0.1539214849472046, 0.3044874370098114, -0.2373666614294052, 0.05336524...
``` boolean a = false, b = true; if ( a && b ) { ... }; ``` In most languages, `b` will not get evaluated because `a` is false so `a && b` cannot be true. My question is, wouldn't short circuiting be slower in terms of architecture? In a pipeline, do you just stall while waiting to get the result of a to determine if...
[ 0.2235533446073532, 0.08378975838422775, -0.3626192808151245, 0.058214303106069565, -0.1686943769454956, -0.042219605296850204, 0.3433536887168884, -0.026386123150587082, -0.08144661039113998, -0.4760800898075104, -0.09320840984582901, 0.39041686058044434, -0.4525630474090576, 0.0448000393...
programming friend had never heard of short-circuit evaluation and stated that it is not common, nor found in many languages, and is inefficient in pipeline. I am not certain about the last one, so asking you folks! Okay, I think a different example to perhaps explain where my friend might be coming from. He believes ...
[ 0.07917972654104233, 0.23921653628349304, 0.001065241638571024, 0.04631730541586876, -0.06591767817735672, -0.2591300308704376, 0.5382359027862549, 0.07434283941984177, 0.002605452900752425, -0.25373968482017517, 0.04968858137726784, 0.8047404289245605, -0.43296554684638977, 0.064484074711...
processing statements like these: ``` (b) if ( ( a == 4 ) && ( b == 5 ) ) ``` since if it couldn't do (a) in parallel, it can't do (b) in parallel. In this case, a language that allows short-circuiting is slower than one that does not. I don't know if that's true or not. Thanks Short-circuiting boolean expressions...
[ -0.15439900755882263, -0.0882803201675415, -0.01458693202584982, 0.14585600793361664, -0.45428362488746643, 0.14169345796108246, 0.32503071427345276, -0.13524475693702698, -0.1830473095178604, -0.2053421139717102, -0.013520289212465286, 0.23013991117477417, -0.45742106437683105, -0.3134229...
architecture can't cancel when branch prediction fails then yes, this might require delays which wouldn't be there if both sides were always evaluated. So it's something to look at if you do ever find that short-circuiting operators are creating a performance bottleneck in your code, but not worth worrying about otherw...
[ 0.10480432212352753, -0.014412610791623592, 0.06801947206258774, -0.09347579628229141, 0.0919981300830841, -0.036651961505413055, 0.1694074124097824, -0.13470852375030518, -0.19276097416877747, -0.7035192251205444, -0.27031004428863525, 0.535010814666748, -0.5249595642089844, 0.12247683852...