text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
of the context menu are referring to the previously selected item. You don't say which version of Qt you are using, but we found the same problem in Qt4.4.0, it worked in 4.3. We reported this to Trolltech as a bug [225615](http://trolltech.com/developer/task-tracker/index_html?method=entry&id=225615) This is still ma...
[ 0.13923706114292145, -0.08447514474391937, 0.36719343066215515, 0.11606486886739731, -0.1216619685292244, -0.0001000876582111232, 0.3637581467628479, -0.07953464239835739, -0.08455399423837662, -0.2477927953004837, 0.03739345818758011, 0.5946285128593445, -0.30389076471328735, 0.0521931760...
I know there are HTML entities for 1/2, 1/4, and 3/4, but are there others? Like 1/3 or 1/8? Is there a good way to encode arbitrary fractions? how about 15⁄16? (<sup>15</sup>&frasl;<sub>16</sub>)
[ 0.11118903011083603, 0.14548403024673462, 0.4106951355934143, 0.1127849668264389, -0.2617722153663635, 0.30378222465515137, 0.044714074581861496, -0.3205040395259857, -0.4905411899089813, -0.33203989267349243, -0.05277171730995178, 0.007738009095191956, 0.08185920119285583, -0.073632590472...
V8's documentation explains [how to create a Javascript object that wraps a C++ object](http://code.google.com/apis/v8/embed.html#dynamic). The Javascript object holds on to a pointer to a C++ object instance. My question is, let's say you create the C++ object on the heap, how can you get a notification when the Javas...
[ 0.21051646769046783, 0.19921568036079407, 0.08835916966199875, -0.10526762157678604, -0.5412613153457642, 0.1656026691198349, 0.025122618302702904, -0.41502973437309265, -0.4825266897678375, -0.2741338908672333, 0.30376240611076355, 0.5283775329589844, -0.3806237280368805, 0.11501668393611...
handle when you need to keep a reference to an object for more than one function call, or when handle lifetimes do not correspond to C++ scopes."), and call `MakeWeak()` on it, passing a callback function that will do the necessary cleanup ("A persistent handle can be made weak, using `Persistent::MakeWeak`, to trigger...
[ -0.0384531244635582, -0.11666934937238693, 0.4122817814350128, -0.18485550582408905, -0.016195889562368393, -0.07405304908752441, 0.40466955304145813, -0.19637414813041687, -0.2057877480983734, -0.22013598680496216, -0.34086093306541443, 0.4204554557800293, -0.35066601634025574, 0.35016876...
WeakReferenceCallback callback); ``` Where `WeakReferenceCallback` is defined as a pointer-to-function taking two parameters: ``` typedef void (*WeakReferenceCallback)(Persistent<Object> object, void* parameter); ``` These are found in the v8.h header file distributed with V8 ...
[ -0.31375211477279663, -0.22755229473114014, 0.4325423538684845, -0.21701256930828094, -0.18666227161884308, 0.2465479075908661, 0.2974873483181, -0.18864716589450836, -0.0027009383775293827, -0.29075339436531067, -0.20082665979862213, 0.6148957014083862, -0.4320414364337921, 0.340884178876...
ignored (or the `void* parameter` can point to a C++ structure that holds the objects that need cleaning up): ``` void CleanupV8Point(Persistent<Object> object, void*) { // do whatever cleanup on object that you're looking for object.destroyCppObjects(); } Parameter<ObjectTemplate> my_obj(ObjectTemplate::New(...
[ 0.3021658957004547, 0.311196506023407, 0.18149612843990326, -0.29231762886047363, 0.14355671405792236, -0.02402740903198719, 0.5361613035202026, -0.18477042019367218, -0.4284554123878479, -0.4958006739616394, -0.23237396776676178, 0.48417526483535767, -0.701431393623352, 0.2161765247583389...
I'm building an app that authors would (hopefully) use to help them, uh.. *author* things. Think of it like a wiki but just for one person, but cooler. I wish to make it as accessible as possible to my (potential) adoring masses, and so I'm thinking about making it a web-app. It certainly doesn't have to be, there is...
[ 0.8669222593307495, 0.15783149003982544, 0.4382743835449219, 0.30096662044525146, 0.21530042588710785, -0.17871569097042084, 0.13888388872146606, 0.40911298990249634, -0.1573948860168457, -0.7073066234588623, 0.18970608711242676, 0.3118796944618225, 0.12611237168312073, -0.0340504683554172...
that people who use this may not want their data stored elsewhere. This is private information about what they are writing and I wouldn't expect them to trust me with it, and so I'm thinking about making it a thick-client app. And therein lies the problem, how to make a application that focuses mainly on form data ent...
[ 0.2731950581073761, 0.24298550188541412, 0.33375176787376404, 0.14682668447494507, 0.06549215316772461, -0.1996651142835617, 0.06293133646249771, 0.04765262082219124, -0.244426891207695, -0.25124454498291016, -0.04579189792275429, 0.643361508846283, -0.366810142993927, -0.03516595065593719...
net as an applet that people can play with before downloading the full thing. 2. Build it as a Flex app for online and an Air app for offline (same source different build scripts basically). 3. Build it as a standard web-app (HTML, JS etc) but have a downloadable version that somehow runs the site **totally** on their ...
[ 0.8462693691253662, -0.26898738741874695, 0.20495188236236572, 0.11873047798871994, -0.5748830437660217, -0.21484990417957306, 0.48228001594543457, -0.2833196520805359, -0.07374116033315659, -0.8978800177574158, -0.01602276973426342, 0.32648664712905884, -0.3229507803916931, -0.22120904922...
like mySQL to something like SQLite. * Creating some kind of convience app that ran the server and opened your browser to the right location, possibly using something like [Prism](https://wiki.mozilla.org/Prism) to hide the whole broswer thing. So, **have you ever done something like this before?** If so, **what prob...
[ 0.45626556873321533, -0.10919958353042603, 0.12903913855552673, 0.35271719098091125, -0.3078550100326538, -0.23018844425678253, 0.4045552611351013, 0.06499083340167999, -0.4721366763114929, -0.6163032650947571, 0.2848529517650604, 0.550909698009491, -0.2645532786846161, -0.1089577972888946...
HTML5 offline application features, namely the Application Cache, Client-Side Databases, and Local Storage APIs. Currently I believe that Safari is the only shipping browser to support any of these, and i believe it only supports the client side databases and local storage parts. The [webkit nightlies](http://nightly....
[ 0.045237984508275986, 0.12952293455600739, 0.47567927837371826, -0.2888071835041046, -0.18864233791828156, -0.3855356276035309, 0.45633751153945923, 0.15069293975830078, -0.5476144552230835, -0.4866798520088196, -0.47544750571250916, 0.24415379762649536, -0.3089192509651184, 0.027382701635...
Depends on your experience could you recommend something? I've use [izpack](http://izpack.org/), and it's very nice tool, is there any other, better tool? In MS Windows [NSIS](http://nsis.sourceforge.net/Main_Page) is great and it's free & OSS Ref: [Java Launcher with automatic JRE installation](http://nsis.sourceforg...
[ 0.3043343722820282, -0.21734821796417236, -0.10524781793355942, 0.3323412537574768, -0.0780504122376442, -0.012971213087439537, 0.19315418601036072, 0.11034810543060303, -0.25359582901000977, -0.7034820318222046, 0.06045354902744293, 0.4782412350177765, 0.02489708922803402, -0.284460276365...
I'm trying to use the `Microsoft.Sdc.Tasks.ServiceProcess.Exists` to check whether or not a service exists. There is no example of using it in the documentation though. Anyone have one? I've not actually used this in production myself, and I'm not sure which version you have (I have a copy of Release 2.1.3155.0) and ac...
[ 0.16613821685314178, 0.06762231141328812, 0.08861242979764938, -0.13190515339374542, 0.27475494146347046, 0.0449654720723629, 0.40096738934516907, 0.07126535475254059, -0.24715788662433624, -0.803638756275177, -0.12470986694097519, 0.5304804444313049, -0.10213463008403778, 0.14496345818042...
that identifies the service to the system, e.g. 'W3SVC'". You might want to give it a try with a well known service (e.g. mssqlserver) and check the result of the other two properties (DoesExist/IsDisabled). Update: Here's a sample (works): Import the tasks, then call (e.g.) < Microsoft.Sdc.Tasks.ServiceProcess.Ex...
[ 0.09467192739248276, -0.01532899308949709, 0.3622988164424896, -0.1089310348033905, 0.21207164227962494, 0.028459087014198303, 0.11753039062023163, -0.4107995629310608, -0.191328763961792, -0.8237437009811401, -0.18678012490272522, 0.1766539365053177, -0.13485921919345856, 0.11973470449447...
I have to develop an application using C#.net that has to be run once a day. It only runs for at most one minute, so developing a Windows service is overkill and a scheduled task is the appropriate way. However, I have a few questions about how the application can communicate its results: * How do I indicate to the t...
[ 0.3118287920951843, 0.023337094113230705, 0.286627858877182, 0.03229602798819542, 0.11358444392681122, -0.21846848726272583, 0.5059836506843567, -0.17549161612987518, -0.05769902095198631, -0.7017221450805664, -0.15218831598758698, 0.5582581758499146, -0.15443426370620728, -0.0523076839745...
a task fails because it threw an unchecked exception you'll see that in the Sheduled Task viewer, there will be a 'Last Result' with a value something like `0xe0434f4d`. Alternatively if you return an exit code that will be also be shown in the Last Result column of the Scheduled Task viewer. 2. Writing to the console ...
[ -0.09719432890415192, -0.05650043860077858, 0.3976569175720215, -0.11308877170085907, 0.17239199578762054, -0.24821606278419495, 0.7735722661018372, -0.10669208317995071, -0.3440150320529938, -0.862678050994873, -0.372770220041275, 0.528785765171051, -0.1475607007741928, 0.0576642379164695...
I have built a .dll under WinXP that claims it can't find DWMAPI.DLL when it's loaded. The problem is that this DLL is a Vista DLL, and this a known issue for XP users that have IE7 installed. The recommendation is to uninstall IE7 or repair the .NET Framework via Add/Remove programs. I did the repair, and nothing chan...
[ 0.3788972496986389, 0.2319171279668808, 0.31886014342308044, -0.2788234055042267, -0.1362883448600769, -0.32235825061798096, 0.6580060720443726, 0.004565740469843149, -0.03650182485580444, -0.694111168384552, -0.3602100908756256, 0.9166849255561829, -0.3083968758583069, 0.31308749318122864...
Visual Studio 2003 (7.1). I don't see an option where I may have forced delay loading at application launch. I just used default settings when I created the DLL project. I did just now find an interesting option, Linker->Input->Delay Loaded DLLs, so I put DWMAPI.DLL in there to force it to be delay-loaded. However, I g...
[ -0.2423044890165329, -0.18905921280384064, 0.2769221067428589, -0.021243587136268616, -0.6884397864341736, -0.2616250813007355, 0.3232407867908478, -0.07009037584066391, -0.5301697850227356, -0.20725934207439423, -0.18930242955684662, 0.9280118346214294, -0.843636691570282, -0.089520461857...
I get the same message. (For the record, it's foundation.dll->shell32.dll->shdocvw.dll->mshtml.dll->ieframe.dll->dwmapi.dll .) To be more specific about what I'm doing, I am writing a Maya plugin and get the always-helpful text in the script editor: ``` // Error: Unable to dynamically load : D:/blahblahblah/mydll.mll...
[ 0.12057195603847504, 0.06604792922735214, 0.3924441337585449, -0.2390560358762741, -0.11057543754577637, 0.12804946303367615, 0.5329477787017822, -0.0677969828248024, -0.36092689633369446, -0.8108546733856201, -0.07586343586444855, 0.38315925002098083, -0.2237008661031723, 0.12916179001331...
one delay-load dependency module was not found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. ``` Gerald is right. Maya is, in fact, using a different PATH than the Dependency Walker. My plug-in loads another DLL (for image processing) that li...
[ 0.1294277161359787, -0.013914953917264938, 0.07743027061223984, -0.04108007997274399, -0.18258823454380035, 0.013084894977509975, 0.2709577977657318, -0.02253984473645687, -0.625734269618988, -0.6510558128356934, 0.010314324870705605, 0.7057355642318726, -0.5590570569038391, 0.038262318819...
issue on Novell's website [here](http://www.novell.com/communities/node/4372/handling-dwmapidll-dependency). Basically, most programs will have this warning in depends.exe, but if there is a delay-load icon next to it, and you are sure that the program won't directly or indirectly call DWMAPI, then it's fine. The probl...
[ 0.14096908271312714, -0.07630965858697891, 0.44910794496536255, -0.015966059640049934, -0.018136635422706604, -0.24067461490631104, 0.14008468389511108, -0.026245927438139915, -0.5586382746696472, -0.5098079442977905, -0.12724877893924713, 0.6987836956977844, -0.49318861961364746, 0.035587...
walker will always give you that error whenever you are linking to mshtml as it always checks delay loaded DLLs. At this point my best guess is that you have your project set to dynamically load the runtime libraries and the search path for DLLs is being changed by Maya. So it may be unable to find the MSVC runtime DL...
[ 0.017334679141640663, -0.12796980142593384, 0.12317521125078201, -0.1251528561115265, -0.1680767834186554, 0.2013775110244751, 0.3982860743999481, -0.027929842472076416, -0.5278555750846863, -0.7778105735778809, 0.29318296909332275, 0.5507075786590576, -0.5532565712928772, 0.05029954761266...
try fiddling with Dependency Walker to make it use the same search paths as Maya and see if you can come up with another dependency problem. As a last resort you can launch Maya in a debugger and set a breakpoint on LoadLibrary and find out which library is not being loaded that way.
[ 0.31704244017601013, -0.259252667427063, -0.2613917589187622, 0.32940781116485596, -0.1656065285205841, -0.23573534190654755, 0.38649648427963257, 0.03201238065958023, -0.20517632365226746, -0.6037452220916748, 0.17341862618923187, 0.7366697788238525, -0.4797397255897522, 0.295478522777557...
I am in the position of having to make a technology choice early in a project which is targetted at mobile phones. I saw that there is a python derivative for S60 and wondered whether anyone could share experiences, good and bad, and suggest appropriate IDE's and emulators. Please don't tell me that I should be develo...
[ 0.29623091220855713, -0.039979901164770126, 0.2904863655567169, 0.20141151547431946, 0.00967773050069809, -0.01978278160095215, -0.05231985077261925, 0.42298805713653564, 0.05482524633407593, -0.5493258237838745, -0.07234480232000351, 0.5950750708580017, -0.11429860442876816, -0.0481715761...
too. I did my Major project in PyS60, which was a [GSM locator](http://sourceforge.net/projects/gsmlocator)(its not the latest version) app for Symbian phones. There is also a very neat py2sis utility which converts your py apps to portabble sis apps that can be installed on any Sumbian phones. The ease of use of Pyt...
[ 0.42229992151260376, -0.10153067111968994, 0.19911447167396545, 0.14163453876972198, 0.08595680445432663, -0.1054314523935318, -0.004168134182691574, 0.10102852433919907, -0.32697999477386475, -0.5535101890563965, -0.06660844385623932, 0.37596967816352844, -0.38779816031455994, -0.44106870...
with 1. [Forum Nokia](http://www.forum.nokia.com/Resources_and_Information/Tools/Runtimes/Python_for_S60/) 2. [Nokia OpenSource Resource center](http://opensource.nokia.com/projects/pythonfors60/) 3. [A very good tutorial (for beginners)](http://www.mobilenin.com/pys60/menu.htm) Just access these, download the Emulat...
[ 0.43466514348983765, -0.11597218364477158, 0.7079464793205261, 0.3998710811138153, -0.0709674134850502, 0.039620961993932724, 0.23622311651706696, -0.23959551751613617, 0.007294659502804279, -0.25345417857170105, -0.0693223774433136, 0.7314360737800598, -0.18086987733840942, -0.11204085499...
1st phase ========= I have a problem shutting down my running JBoss instance under Eclipse since I changed the JNDI port of JBoss. Of course I can shut it down from the console view but not with the stop button (it still searches JNDI port at the default 1099 port). I'm looking forward to any solutions. Thank you! ...
[ -0.5819855332374573, -0.3522607088088989, 0.7178272008895874, -0.23041647672653198, -0.1414269655942917, -0.2871232330799103, 0.15588270127773285, -0.24991510808467865, -0.40297573804855347, -0.5137669444084167, -0.23048394918441772, 0.4958241283893585, -0.5426239967346191, -0.317500114440...
--> <!-- ==================================================================== --> <mbean code="org.jboss.naming.NamingService" name="jboss:service=Naming" xmbean-dd="resource:xmdesc/NamingService-xmbean.xml"> <!-- The call by value mode. true if all lookups are unmarshalled using the call...
[ -0.016392352059483528, -0.01614866964519024, 0.3644889295101166, -0.2346779704093933, 0.03129930421710014, -0.09042258560657501, 0.3614072799682617, -0.31929370760917664, -0.0822686105966568, -0.4850189685821533, -0.2804827094078064, 0.20773304998874664, -0.6502208113670349, 0.385254442691...
TCL, false if in VM lookups return the value by reference. --> <attribute name="CallByValue">false</attribute> <!-- The listening port for the bootstrap JNP service. Set this to -1 to run the NamingService without the JNP invoker listening port. --> <attribute name="Port">11099</at...
[ 0.38165006041526794, -0.242104634642601, 0.6654406785964966, -0.01737433485686779, -0.07580941170454025, -0.2643781304359436, 0.5668337345123291, -0.5160378217697144, -0.09818369895219803, -0.019682876765727997, 0.03601837530732155, 0.7124480605125427, -0.4338921904563904, 0.41379174590110...
all addresses --> <attribute name="BindAddress">${jboss.bind.address}</attribute> <!-- The port of the RMI naming service, 0 == anonymous --> <attribute name="RmiPort">11098</attribute> <!-- The RMI service bind address. Empty == all addresses --> <attribute name="RmiBindAddr...
[ -0.007768855430185795, 0.15239480137825012, 0.43544089794158936, -0.01181523222476244, -0.0945693850517273, 0.1112113744020462, 0.32573285698890686, -0.406392365694046, -0.3367641270160675, -0.5570688843727112, -0.10444340854883194, 0.4871971905231476, -0.5441848635673523, 0.22834013402462...
proxy-type="attribute">jboss.system:service=ThreadPool</depends> </mbean> <mbean code="org.jboss.naming.JNDIView" name="jboss:service=JNDIView" xmbean-dd="resource:xmdesc/JNDIView-xmbean.xml"> </mbean> ``` Eclipse setup: -------------- ![](https://i.stack.imgur.com/nOlhy.png "jndi port to 1...
[ -0.2592681348323822, 0.048943329602479935, 0.3971708118915558, -0.12002601474523544, -0.05831914395093918, 0.01585908606648445, 0.8338622450828552, -0.08340337127447128, -0.18434923887252808, -0.7002343535423279, 0.13303226232528687, 0.46497079730033875, -0.43826693296432495, 0.24511066079...
to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385) at org.jnp.interfaces.NamingContext....
[ -0.4177188575267792, 0.18458251655101776, 0.37249746918678284, -0.04973810538649559, -0.139143705368042, 0.3155493438243866, 0.9265270233154297, 0.25163087248802185, -0.6060170531272888, -0.6714227795600891, -0.3959853947162628, 0.15727734565734863, -0.31727221608161926, 0.7829074263572693...
connect] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228) ... 5 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocket...
[ -0.3173510730266571, -0.15257278084754944, 0.47432100772857666, 0.21802634000778198, 0.03730982169508934, 0.20644329488277435, 0.4938744902610779, 0.016604388132691383, -0.33109116554260254, -0.751013457775116, -0.04802800714969635, -0.001941869268193841, -0.48949703574180603, 0.4953175783...
button is working (the server receives the shutdown messages without any additional modification of the jndi port -- there is no opportunity for it now) but it still throws an error message, though different, it's without exception stack trace: "Server JBoss 4.0 Server failed to stop." OK, what you have to do is File->...
[ -0.31403452157974243, -0.40667322278022766, 0.7208327054977417, -0.03023991920053959, 0.11427035927772522, -0.2136283963918686, 0.4588508605957031, -0.0737861916422844, -0.4856347143650055, -0.5165283679962158, -0.0316571444272995, 0.4935770332813263, -0.250662237405777, -0.088966004550457...
I'd like to write some (java) code that takes a PDF document, and creates named destinations from all of the bookmarks. I think the iText API is the easiest way of doing this, but I have never used the API before. How would you go about writing this sort of code with the iText API? Can iText do the parsing needed to m...
[ 0.32111606001853943, -0.08639176934957504, 0.2768978476524353, 0.44459936022758484, 0.02434719167649746, -0.39808523654937744, -0.18543002009391785, 0.27974820137023926, -0.071928471326828, -0.731482207775116, 0.09973923861980438, 0.4654753804206848, -0.13862940669059753, 0.049898806959390...
be disappointed with this. iText isn't really intended to be used as a parser. It's really more for creating *entirely new* PDF documents, but you can take a whack at it. To start, using iText, you won't be able to modify the existing PDF document. What you *can* do, though, is to make a copy with the additional featu...
[ 0.16785041987895966, -0.15254171192646027, 0.33003780245780945, 0.4841514527797699, -0.14774195849895477, -0.5475451350212097, 0.10858611762523651, 0.4153892695903778, -0.1245599314570427, -0.8000388741493225, -0.15156494081020355, 0.6977697610855103, -0.16073741018772125, 0.16041286289691...
an extended PdfWriter that makes getting data from an existing source more convenient) for your destination. As far as I can tell, the bookmarks cannot be obtained from iText at all. Another library may be needed. I think [jpedal](http://www.jpedal.org/javadoc/index.html) may have the ability to extract them (it can g...
[ 0.12092975527048111, -0.089761883020401, 0.700678288936615, 0.1476978063583374, -0.06173144280910492, -0.3498836159706116, -0.0058794328942894936, -0.19393596053123474, -0.13846437633037567, -0.7452117204666138, -0.07443475723266602, 0.5231598615646362, -0.009238368831574917, 0.05340317264...
sure what all of the values are, but they include "Title", "Action" (which seems to be where you'd specify that this is a named destination, though I don't know what that value would be), and "URI" (which is used if this is an external link -- I suspect that this would specify the name of the named destination that you...
[ 0.1399541050195694, 0.08401618897914886, 0.5468647480010986, 0.33645352721214294, -0.03597773611545563, -0.3845919668674469, 0.12516789138317108, 0.27329832315444946, -0.2574426829814911, -0.6349135041236877, -0.15670347213745117, 0.4255739450454712, 0.15990422666072845, 0.0591372735798358...
a better tool that's either (L)GPL or BSD licensed, I'd love to hear about it.
[ 0.41648101806640625, 0.033413082361221313, 0.05508335679769516, 0.28614312410354614, 0.15151511132717133, -0.4518977999687195, -0.21914707124233246, 0.35988008975982666, -0.0536748431622982, -0.6075847744941711, 0.07549064606428146, 0.6649025082588196, 0.388719379901886, 0.0568022094666957...
Am looking for C# open source NMEA parser. Well, I'm not familiar with it myself, but some quick searches show one on [CodeProject](http://www.codeproject.com/KB/cs/NMEAtoOSG.aspx), which links to 2 other such, [here](http://www.codeproject.com/KB/mobile/WritingGPSApplications1.aspx) and [here](http://www.codeproject.c...
[ -0.06496601551771164, 0.41666266322135925, 0.10843043774366379, -0.14502519369125366, -0.22222304344177246, -0.04364573955535889, 0.31283390522003174, 0.0539577379822731, -0.05588053911924362, -0.6857359409332275, 0.06781989336013794, 0.5595199465751648, -0.3348919749259949, -0.31119886040...
I am trying to take a rather large CSV file and insert it into a MySQL database for referencing in a project. I would like to use the first line of the file to create the table using proper data types and not varchar for each column. The ultimate goal is to automate this process as I have several similar files but the ...
[ 0.32268646359443665, 0.37585532665252686, 0.23724325001239777, -0.01577325351536274, -0.23592843115329742, 0.1954379677772522, 0.1685759425163269, -0.1895863264799118, 0.02544787898659706, -0.7621052861213684, 0.2410510778427124, 0.30923813581466675, -0.49410638213157654, 0.197208344936370...
it to. Platform is PHP 5, OS is ubuntu 8.04 here is my code so far: ``` <?php // GENERATE TABLE FROM FIRST LINE OF CSV FILE $inputFile = 'file.csv'; $tableName = 'file_csv'; $fh = fopen($inputFile, 'r'); $contents = fread($fh, 5120); // 5KB fclose($fh); $fileLines = explode("\n", $contents); // explode to ma...
[ 0.032235484570264816, -0.11519929021596909, 0.7916470170021057, -0.18168438971042633, 0.3584064245223999, -0.15168389678001404, 0.12620840966701508, -0.4459817409515381, -0.22784742712974548, -0.47258204221725464, -0.2380531281232834, 0.42278221249580383, -0.1922028809785843, 0.00446756277...
$typeInfo = 'int(11)'; break; case 'float': $typeInfo = 'float'; break; case 'string': $typeInfo = 'varchar(80)'; break; default:
[ 0.023234760388731956, -0.1254109889268875, 0.244123637676239, -0.458543598651886, 0.34623563289642334, 0.03421267494559288, 0.30893731117248535, -0.21603837609291077, -0.07973631471395493, -0.02617841213941574, -0.43945997953414917, 0.9131051301956177, -0.6023792028427124, -0.1428782045841...
$typeInfo = 'varchar(80)'; break; } if(gettype($fieldList[$i]) != NULL) echo "\t".'`'.$i.'` '.$typeInfo.' NOT NULL, --'.gettype($fieldList[$i]).' '.$fieldList[$i]."<br/>\n"; } echo ' PRIMARY KEY (`0`)'."<br/>\n"; echo ') ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;'; ...
[ -0.0932018905878067, -0.1329926699399948, 0.4400487244129181, -0.4221436679363251, -0.06039353460073471, 0.003830179339274764, 0.3640637993812561, -0.7165154814720154, -0.06789082288742065, -0.19566252827644348, -0.34865787625312805, 0.32272574305534363, -0.6488563418388367, -0.07258149981...
}else{ $fieldList[$i] = (float)$fieldList[$i]; } } switch(gettype($fieldList[$i])) { case 'integer': $typeInfo = 'int(11)'; break; case 'float': case 'double':
[ 0.3572554588317871, -0.26964515447616577, 0.06377194076776505, -0.38185206055641174, 0.4100528657436371, 0.06714771687984467, 0.22865895926952362, -0.5244159698486328, -0.07071404159069061, -0.1661301553249359, -0.2689042091369629, 0.7494282126426697, -0.4144537150859833, -0.14516137540340...
$typeInfo = 'float'; break; case 'string': $typeInfo = 'varchar(80)'; break; default: $typeInfo = 'varchar(80)'; break; } if(gettype($fieldList[$i]) != NULL) echo "\t".'`'.$i.'` '.$typeInfo.' NOT NULL, --'.gettype($fieldList[$i]).' '.$fiel...
[ 0.05336135998368263, -0.05208936706185341, 0.36769524216651917, -0.6146162152290344, 0.25481554865837097, -0.01826663874089718, 0.5285420417785645, -0.5175839066505432, -0.14030757546424866, -0.06537944078445435, -0.517704963684082, 0.7782028317451477, -0.6711779236793518, -0.0550127588212...
note the addition of "case 'double':" in the switch, but there may be a better way to do the int/float check as they would only work with standard uk/us numbers.
[ 0.2847628891468048, -0.06374367326498032, 0.04164649546146393, -0.26776745915412903, 0.012971928343176842, 0.057345785200595856, 0.2752600312232971, -0.24671293795108795, -0.09522425383329391, -0.15241877734661102, -0.2858539819717407, 0.1977139562368393, 0.047549352049827576, -0.154764533...
I have some old rrdtool databases, for which the exact creation recipe has long been since lost. I need to create a new database with the same characteristics as the current ones. I've dumped a couple of old databases and pored over the contents but I'm not sure how to interpret the metadata. I think it appears in the ...
[ 0.05148320272564888, -0.14152145385742188, 0.5842500329017639, 0.28196924924850464, -0.3377395570278168, 0.3021600544452667, 0.4309316873550415, -0.17274817824363708, -0.34695425629615784, -0.7029467225074768, 0.05214286223053932, 0.20707079768180847, -0.12825889885425568, 0.30727115273475...
how to clone a new empty rrd database from an existing one? Or show me where I missed this in the documentation. rrdtools' [rrdinfo](http://oss.oetiker.ch/rrdtool/doc/rrdinfo.en.html) is your friend! It will tell you how the rrd file's data source(s) and archive(s) were created. Example ``` $ rrdtool info random.rrd ...
[ -0.13498762249946594, -0.20612017810344696, 0.4317823052406311, -0.03976926580071449, 0.3665654957294464, 0.16487830877304077, 0.26854217052459717, -0.21773861348628998, -0.21832211315631866, -0.6804903149604797, 0.022914128378033638, 0.7151011228561401, 0.021716054528951645, 0.10923370718...
When the policy for a disk in Windows XP and Vista is set to enable write caching on the hard disk, is there a way to flush a file that has just been written, and ensure that it has been committed to disk? I want to do this programmatically in C++. Closing the file does perform a flush at the application level, but n...
[ 0.18757200241088867, 0.18061670660972595, 0.3666161894798279, -0.008769563399255276, 0.29592540860176086, -0.40805843472480774, 0.04010783135890961, -0.048760008066892624, -0.10650927573442459, -0.3377003073692322, -0.32585981488227844, 0.940629780292511, -0.05965546891093254, 0.0172938089...
specified the development environment, so: .Net ==== IO streams have a `.Flush` method that does what you want. Win32 API ========= There is the `FlushFileBuffers` call, which takes a file handle as argument. EDIT (based on a comment from the OA): FlushFileBuffers does not need administrative privileges; it does o...
[ 0.21777959167957306, -0.27001720666885376, 0.35782483220100403, 0.08996891975402832, 0.1722404658794403, -0.3137394189834595, -0.2366504967212677, 0.12267836183309555, -0.10461083054542542, -0.6367650628089905, -0.09109802544116974, 0.43885546922683716, -0.3336304724216461, 0.1264290511608...
I am writing a very specialized app in C# that floats as a mostly transparent window over the entire desktop. I want to be able to create and pass mouse events to applications behind mine, and have them appear to operate "normally", responding to those events. It would also be preferable if the window manager could res...
[ 0.2859838604927063, -0.030016299337148666, 0.4936106204986572, -0.0904754176735878, -0.014674250036478043, -0.048068467527627945, 0.2473781853914261, 0.28606218099594116, -0.26044222712516785, -0.7413180470466614, -0.061452798545360565, 0.6031264662742615, -0.2146969437599182, -0.071385748...
the other apps underneath. It seems the alternative is SendMessage, but that requires a fair amount of manual manipulation of windows, and the mouse events generated aren't "authentic." Any thoughts on the best way to approach this? After looking at System hooks and other low level solutions I found a much simpler me...
[ 0.353602796792984, -0.11026465147733688, 0.586114764213562, 0.047480884939432144, -0.08408382534980774, -0.30029866099357605, 0.36114323139190674, -0.26406392455101013, -0.01055088173598051, -0.9070871472358704, 0.2607966661453247, 0.5903502702713013, -0.29549455642700195, -0.0780918374657...
get { CreateParams createParams = base.CreateParams; createParams.ExStyle |= 0x00000020; // WS_EX_TRANSPARENT return createParams; } } ``` Lastly, set TopMost to be true. Your form will now float on top of everything visually, but will give up focus to all other apps.
[ 0.3809763193130493, -0.0018604898359626532, 0.9047372937202454, -0.019192451611161232, 0.018086399883031845, -0.13976342976093292, 0.3680078685283661, -0.17398205399513245, 0.03337646275758743, -0.7006016373634338, -0.27675724029541016, 0.6367039084434509, -0.19680169224739075, -0.39274182...
I am interested in seeing if I can improve the way we use NUnit in a Visual Studio solution containing 30+ projects. First, would you have one assembly of tests for every assembly in the solution, or would you try to keep the number of test assemblies down? I started off creating many test assemblies, but I think this...
[ 0.6680589914321899, -0.1360456347465515, -0.2059018909931183, 0.2114182710647583, -0.07817288488149643, 0.035406965762376785, 0.20708835124969482, -0.14942848682403564, 0.008820007555186749, -0.6419773697853088, 0.20543085038661957, 0.4839363098144531, -0.11277908086776733, 0.0206543151289...
tests, but it needs to skip over the tests that would take too long or would not work on the build machine. To answer your first question: You can use [categories](http://www.nunit.org/index.php?p=category&r=2.4.8) to keep everything organised in a single assembly if that's how you want to go. As to whether it would c...
[ 0.6042760014533997, -0.16732363402843475, -0.18094107508659363, 0.20426426827907562, -0.5453034043312073, -0.02690109983086586, 0.5949315428733826, -0.7190984487533569, -0.24775893986225128, -0.31067025661468506, -0.07621030509471893, 0.43758267164230347, -0.08947878330945969, -0.126453846...
before it will. You might also want to look at `[Platform]` or some of the other attributes, depending on what exactly your requirements on 'environment' are. For instance, you could add an Explicit tag to all your long running tests. Then you would have to run these tests explicitly, NUnit won't run them automaticall...
[ 0.6457809805870056, -0.21964076161384583, -0.05591731518507004, 0.34040752053260803, -0.10140673071146011, -0.3649439215660095, 0.22012968361377716, -0.24250134825706482, -0.03129391372203827, -0.43594256043434143, 0.06950411200523376, 0.5863576531410217, -0.187302827835083, -0.15648557245...
In MSVC, [DebugBreak()](http://msdn.microsoft.com/en-us/library/ms679297.aspx) or [\_\_debugbreak](http://msdn.microsoft.com/fr-fr/library/f408b4et.aspx) cause a debugger to break. On x86 it is equivalent to writing "\_asm int 3", on x64 it is something different. When compiling with gcc (or any other standard compiler...
[ -0.1669187843799591, 0.012635249644517899, -0.0007284346502274275, -0.36372262239456177, -0.16948343813419342, -0.35632309317588806, 0.4174112379550934, -0.17760233581066132, -0.164682537317276, -0.24646379053592682, -0.4042110741138458, 0.8092666864395142, -0.41506227850914, -0.0062863980...
on #ifdef that expands to different constructs based on the current architecture or platform. Something like: ``` #ifdef _MSC_VER #define DEBUG_BREAK __debugbreak() #else ... #endif ``` This would be expanded by the preprocessor the correct debugger break instruction based on the platform where the code is compiled...
[ 0.038880955427885056, -0.09270718693733215, 0.3510732650756836, -0.08170344680547714, 0.09612458199262619, -0.5082146525382996, 0.11049621552228928, 0.07593531906604767, -0.4801250696182251, -0.5393159985542297, -0.5356927514076233, 0.5301176905632019, -0.4094204902648926, -0.1524861007928...
Our svn repository has lots of branches that are branches off of sub-trees. This works OK with svn because I can check out that sub-tree in the correct spot in my working copy. However, if I check out the same branch using git, I get a working copy with only the branch sub-tree. Is it possible to make git relocate the ...
[ 0.36481600999832153, -0.08465760201215744, 0.3172056972980499, 0.3595256805419922, 0.11419002711772919, -0.08315902948379517, 0.3133578598499298, -0.051255665719509125, -0.44054093956947327, -0.43337327241897583, 0.07045884430408478, 0.39891108870506287, 0.17836597561836243, 0.303106576204...
possible, fix it on the server side: Subversion doesn't copy data when branching (`svn copy`), it just hardlinks, so there's really no obvious reason to branch out only a subtree. If that's not feasible, you should have a look at <http://help.github.com/subtree-merge/> -- it may do the trick, but I haven't tried it my...
[ 0.2528187036514282, -0.32956621050834656, 0.08193226158618927, 0.25716012716293335, -0.08219871670007706, -0.1607404202222824, 0.08042693883180618, 0.3681369721889496, -0.5824074149131775, -0.35397782921791077, -0.10892601311206818, 0.2683919668197632, -0.4875410795211792, 0.26044937968254...
I have seen the official demos on lwjgl.org but I would like to see some more tutorial level examples. Google "import org.lwjgl" to find lots of examples, as all code that uses LWJGL must contain that string to import parts of the package.
[ 0.5989286303520203, 0.11585298925638199, 0.12032260000705719, -0.09393439441919327, -0.2482154369354248, -0.5317607522010803, 0.07821648567914963, 0.5127629637718201, -0.13535815477371216, -0.5216017961502075, 0.014264028519392014, 0.5779827833175659, -0.04636281356215477, -0.0115435365587...
I only want a list of files that have been added (not ones that have been modified) since a certain date. Is there an easy way to do this? **Answer**: Here's what ended up working for me, thanks guys! > svn log -v -r{2008-10-1}:HEAD svn://path.to.repo/ | grep "^   A" | grep ".java" | sort -u ``` svn log -v -r{2008-10...
[ 0.0949147567152977, 0.031279563903808594, 0.5629927515983582, 0.0018189369002357125, 0.03151150792837143, -0.06452976167201996, 0.15877632796764374, -0.2768405079841614, -0.4245154559612274, -0.6206551194190979, -0.09718722850084305, 0.6366169452667236, -0.23797401785850525, -0.17207674682...
Are the string literals we use inside functions automatic variables? Or are they allocated in heap which we have to free manually? I've a situation like the code shown below wherein I'm assigning a string literal to a private field of the class (marked as ONE in the code) and retrieving it much later in my program and...
[ -0.042113158851861954, -0.23626665771007538, -0.3176167607307434, 0.17266371846199036, -0.23597955703735352, 0.10698520392179489, 0.1297917366027832, -0.09705698490142822, -0.15897050499916077, -0.3427528142929077, -0.061859238892793655, 0.45929375290870667, -0.3548916280269623, -0.0568569...
worked fine but I'm having a strange crash in my actual program where I'm assigning string literals to fields of the class like this and I suspect the case I mentioned above. ``` #include <iostream> using namespace std; class MemoryLeak { private: char *s; public: MemoryLeak() {} void store() { ...
[ 0.2057611495256424, 0.08154097199440002, 0.3143712282180786, -0.35267722606658936, 0.27702903747558594, 0.2106686681509018, 0.44165340065956116, -0.02055549807846546, -0.42515212297439575, -0.515330970287323, -0.12838204205036163, 0.5672435164451599, -0.4923858940601349, 0.0247470550239086...
*obj = new MemoryLeak(); obj->store(); cout << obj->retrieve() << endl; // TWO delete obj; return 0; } ``` Should I be declaring the variable "s" as a char array instead of a pointer? I'm planning to use std::string, but I'm just curious about this. Any pointers or help is, as always, much appreciate...
[ -0.03599395602941513, 0.20913119614124298, 0.4138113856315613, -0.372339129447937, -0.009353607892990112, 0.28537365794181824, 0.31507977843284607, 0.03218533471226692, -0.2766425311565399, -0.6179112195968628, -0.2667995095252991, 0.40477535128593445, -0.3934350907802582, 0.16309870779514...
going to be referencing the string literal that the compiler has already produced for you. Note that modifying this (which would require changing memory protection typically) will change all uses of this literal.
[ 0.4124392569065094, 0.063771553337574, 0.047102782875299454, -0.015859389677643776, 0.04259484261274338, -0.45650193095207214, 0.3923330008983612, 0.31590864062309265, 0.0928298756480217, -0.43203607201576233, -0.19595322012901306, 0.6937815546989441, -0.3927919268608093, 0.008362707681953...
We run a medium-size site that gets a few hundred thousand pageviews a day. Up until last weekend we ran with a load usually below 0.2 on a virtual machine. The OS is Ubuntu. When deploying the latest version of our application, we also did an apt-get dist-upgrade before deploying. After we had deployed we noticed tha...
[ 0.36437490582466125, 0.2339266687631607, 0.5131664276123047, 0.11969265341758728, -0.19485829770565033, -0.11201535165309906, 0.1022866740822792, 0.7181936502456665, -0.03669579699635506, -0.5962840914726257, 0.10861115157604218, 0.09713930636644363, -0.15426883101463318, 0.214236199855804...
explain the huge jump. We are now pretty sure that nothing in the new version of our website is triggering the problem, but we have no way to be sure. We have rolled back a lot of the changes, but the problem still persists. When look at processes, we see that single Apache processes use quite a bit of CPU over a lon...
[ 0.3325156569480896, 0.12845328450202942, 0.15335941314697266, 0.2716507017612457, -0.013566840440034866, -0.41682344675064087, 0.5824272036552429, 0.1472887098789215, -0.4365096986293793, -0.1477537751197815, 0.020509937778115273, 0.16691423952579498, -0.2849119007587433, 0.217414036393165...
stack is PHP 5, Apache 2 (prefork), MySQL 5.1. Most things run through Memcached. We've tried APC and eAccelerator. So, what should be our next step? Are there any profiling methods we overlooked/don't know about? The answer ended up being not-Apache related. As mentioned, we were on a virtual machine. Our user sessio...
[ 0.23583298921585083, 0.2273631989955902, 0.34636518359184265, 0.216139554977417, -0.04131283611059189, -0.2858477830886841, -0.08007323741912842, -0.17937785387039185, -0.4392765164375305, -0.1520737111568451, 0.36074063181877136, 0.2409498691558838, -0.0036055154632776976, -0.011667464859...
set up properly for VMWare). This completely killed performance, and Apache and MySQL would occasionally use 100% CPU (for a very short time), and the system would be so slow to update the CPU usage meters that it seemed to be stuck there. We ended up setting up a new VM (which also gave us the opportunity to thorough...
[ 0.2045934945344925, -0.05227240175008774, 0.5170887112617493, 0.22598367929458618, -0.03603441268205643, -0.20758166909217834, 0.44679009914398193, -0.36445358395576477, -0.3128345012664795, -0.3634370267391205, 0.06922601908445358, 0.6549174785614014, -0.18245498836040497, -0.048419278115...
sessions into memcached took a lot of disk IO away (we were constantly using about 2MB/s of disk IO, which is very bad). Conclusion; sometimes you just have to start over... :)
[ 0.2311924695968628, -0.0072396486066281796, 0.14491038024425507, 0.301621675491333, 0.2661813795566559, -0.27348464727401733, 0.30639946460723877, -0.28252193331718445, 0.0629008486866951, -0.35097941756248474, 0.1898161619901657, 0.49307364225387573, 0.20417824387550354, -0.11761973798274...
I'm already using SVN 1.5, both sever(VisualSVN 1.5.1) and client-side(TortoiseSVN 1.5.1) but we are using a fairly lengthy SVN Branch-Merge dance. How ready is the Merge-Tracking facility of SVN 1.5.x and is it yet possible to use it from TortoiseSVN? Subversion releases are generally pretty solid, version 1.5 has be...
[ 0.2889816164970398, -0.3001791536808014, 0.6536946296691895, -0.21567220985889435, -0.18845590949058533, -0.4210290014743805, 0.5390059947967529, 0.10568872839212418, -0.27823299169540405, -0.6543377637863159, 0.0013317257398739457, 0.6076822876930237, -0.20948588848114014, -0.065422758460...
I have a UIScrollView that shows vertical data, but where the horizontal component is no wider than the screen of the iPhone. The problem is that the user is still able to drag horizontally, and basically expose blank sections of the UI. I have tried setting: ``` scrollView.alwaysBounceHorizontal = NO; scrollView.dire...
[ 0.3188779354095459, 0.03581135347485542, 0.7957592606544495, -0.09633833914995193, -0.13782264292240143, 0.039116308093070984, -0.02728338912129402, -0.11503813415765762, -0.18335799872875214, -0.8094015121459961, 0.19341635704040527, 0.5873990654945374, -0.05308106169104576, 0.25268867611...
not scroll (or bounce) in that direction. ``` // Should scroll vertically but not horizontally UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; scrollView.contentSize = CGSizeMake(320, 1000); ``` Are you sure the frame fits completely within the screen and contentSize's wid...
[ 0.40218400955200195, 0.0037482876796275377, 1.017608880996704, -0.173184335231781, 0.09134822338819504, -0.19210797548294067, 0.24961577355861664, -0.48427677154541016, -0.16969305276870728, -0.6709957718849182, 0.015974408015608788, 0.494492769241333, 0.003010953776538372, -0.239741146564...
A `TextBox` is set to `AutoPostback` as changing the value should cause a number of (display-only) fields to be recalculated and displayed. That works fine. However, when the field is tabbed out of, the focus briefly moves on to the next field, then disappears when the page is redrawn so there is no focus anywhere....
[ 0.1489901840686798, -0.04885471239686012, 0.4498986005783081, -0.07781147211790085, -0.1339724361896515, -0.030713822692632675, 0.2124556452035904, 0.16436222195625305, -0.19370537996292114, -0.4416235089302063, -0.41729772090911865, 0.6058424711227417, -0.4018095135688782, -0.082490481436...
using ASP.NET 2.0+ you can try calling the Focus method of your TextBox once the postback occurs (preferably in the TextChanged event of the TextBox). I am not sure if there is any built-in way to track focus but I found [this](http://www.codeproject.com/KB/aspnet/MainatinFocusASPNET.aspx) article in CodeProject which...
[ 0.2484491914510727, -0.5390425324440002, 0.46254709362983704, -0.028730694204568863, -0.338882714509964, -0.3346339166164398, 0.2470107525587082, 0.1625158041715622, -0.3457687199115753, -0.6984381675720215, -0.27059653401374817, 0.7668692469596863, -0.2930651605129242, -0.4009404480457306...
How can ALTER be used to drop a column in a MySQL table if that column exists? I know I can use `ALTER TABLE my_table DROP COLUMN my_column`, but that will throw an error if `my_column` does not exist. Is there alternative syntax for dropping the column conditionally? I'm using MySQL version 4.0.18. **For MySQL, the...
[ 0.4481016993522644, 0.10310351103544235, 0.26014605164527893, -0.03384895995259285, -0.02789466455578804, -0.12279867380857468, 0.3127540349960327, -0.17075702548027039, -0.33304426074028015, -0.2737981379032135, 0.22556519508361816, 0.7187097668647766, -0.6361310482025146, -0.059990152716...
to run such a statement against production data (in a migration etc.), you're playing with fire. But if you insist, it's not difficult to simply check for existence first in the client, or to catch the error. MariaDB also supports the following starting with 10.0.2: ```sql DROP [COLUMN] [IF EXISTS] col_name ``` i...
[ -0.047347355633974075, 0.024871136993169785, 0.5925310254096985, -0.20566482841968536, -0.07204096019268036, -0.0007632471388205886, 0.3453162610530853, -0.12973682582378387, -0.19866637885570526, -0.13812297582626343, 0.07177863270044327, 0.6428914666175842, -0.48724478483200073, 0.031064...
I have a PHP script that needs to determine if it's been executed via the command-line or via HTTP, primarily for output-formatting purposes. What's the canonical way of doing this? I had thought it was to inspect `SERVER['argc']`, but it turns out this is populated, even when using the 'Apache 2.0 Handler' server API....
[ 0.40535420179367065, 0.28997498750686646, 0.26080676913261414, -0.010502254590392113, -0.1657654047012329, -0.36003363132476807, 0.2839496433734894, -0.14560578763484955, -0.04753522202372551, -0.5829029083251953, 0.030474074184894562, 0.4429159462451935, -0.1944800168275833, -0.1126210913...
the possible return values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP 5.3), cgi-fcgi, cli, cli-server, continuity, embed, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux, and webjames. In PHP >= 4.2.0, there is also a predefined constant, `PHP_SAPI`, that has ...
[ -0.17472681403160095, -0.16924723982810974, 0.5967152714729309, 0.09128491580486298, -0.25579673051834106, 0.32484838366508484, 0.21889737248420715, 0.07860615849494934, -0.01929575949907303, 0.10929890722036362, -0.01232736837118864, 0.12802943587303162, -0.3411262333393097, 0.21848891675...
I knew I should never have started using c++ io, the whole "type safety" argument is a red herring (does anyone *really* find that it's one of their most pressing problems?). Anyhow, I did, and discovered a strange difference between ifstreams and FILE\*s and plain old file descriptors: ifstreams cannot read from a dev...
[ 0.25521206855773926, 0.3017045855522156, 0.3793477416038513, -0.12219151109457016, 0.3244350552558899, -0.2719257175922394, 0.6455716490745544, -0.22966687381267548, -0.1976793259382248, -0.4929973781108856, -0.07368863373994827, 0.7258812189102173, -0.2945849299430847, -0.0928924977779388...
ios::binary); cf.read(&b, 1); bool good = cf.good(); // returns false, failure. ``` The device is unbuffered and must be read from in 512 byte multiples. ifstream does it's own buffering and strangely decided to read *1023* bytes ahead, which fails with "Invalid argument". Interestingly, this ifstream is impl...
[ -0.2541217803955078, 0.401681125164032, 0.5550214052200317, -0.22242669761180878, 0.32724568247795105, 0.043147746473550797, 0.3935370147228241, -0.08885971456766129, -0.18995128571987152, -0.562105655670166, -0.09608105570077896, 0.7225669622421265, -0.35619378089904785, -0.41224640607833...
right.
[ 0.17404834926128387, 0.24380820989608765, 0.22554375231266022, 0.0915488600730896, 0.15074050426483154, -0.2096640020608902, -0.05555680766701698, 0.19852866232395172, 0.040290046483278275, -0.022553088143467903, 0.09500640630722046, 0.09177442640066147, 0.14284834265708923, 0.266201853752...
I wish to implement my software on a shareware basis, so that the user is given a maximum trial period of (say) 30 days with which to try out the software. On purchase I intend the user to be given a randomly-generated key, which when entered enables the software again. I've never been down this route before, so any a...
[ 0.5838012099266052, 0.17461074888706207, 0.2540011703968048, -0.13885484635829926, 0.3280164897441864, -0.2193181961774826, 0.2758508622646332, -0.1225271001458168, 0.03024875372648239, -0.344901442527771, -0.18740656971931458, 0.3149348795413971, 0.16221481561660767, 0.08007960021495819, ...
regards to a random-generated key, how will you verify a key is legit or if a key is bogus if it is actually random? Have a look at the article "[Implementing a Partial Serial Number Verification System](http://www.brandonstaggs.com/2007/07/26/implementing-a-partial-serial-number-verification-system-in-delphi/)" as it ...
[ 0.2935635447502136, -0.11633692681789398, 0.5041179656982422, 0.16305191814899445, 0.09533041715621948, -0.501185953617096, 0.3537689447402954, -0.2614176869392395, -0.4652749001979828, 0.09491036832332611, -0.0048963287845253944, 0.5277091264724731, -0.06049731746315956, 0.039564371109008...
:)
[ -0.11804179102182388, 0.13728010654449463, 0.17982403934001923, 0.07065879553556442, 0.008272250182926655, 0.4008978307247162, 0.19919633865356445, -0.4948277771472931, -0.11189078539609909, 0.012069443240761757, -0.22117410600185394, 0.509800136089325, -0.22204074263572693, 0.175080463290...
In my existing (Pre-SVN 1.5) merge strategy, we create a copy of the Trunk (called BasePoint) at the moment of branch-creation for referencing later during the merge. When we need to merge a branch back into the trunk, we perform 2 operations. 1. Merge from BasePoint to LatestTrunk (Trunk has likely moved on since th...
[ 0.0008983100415207446, -0.313455194234848, 0.4264775216579437, 0.15485671162605286, 0.374891072511673, -0.048186495900154114, 0.24953706562519073, -0.11314783990383148, -0.14435827732086182, -0.7395484447479248, -0.12192980945110321, 0.3707272708415985, -0.04706132039427757, -0.03968785330...
on the Trunk and Merge from the Branch. **Do I need to merge from the trunk into the dev branch first or is this included in the new reintegrate option?** To put it another way, does the new `merge --reintegrate` functionality represent 'each of my previous merges' or 'the whole operation' ? (FWIW I am using Tortois...
[ 0.13635383546352386, -0.2918669879436493, 0.4719350337982178, -0.08635908365249634, 0.16782009601593018, -0.1341722309589386, 0.5695216655731201, -0.16345097124576569, -0.4712316393852234, -0.5532921552658081, -0.17273402214050293, 0.6115410327911377, -0.05093035101890564, 0.04527225345373...
feel like a huge win. The new coolness is the ability to re-run the merge as you are coding in your branch, allowing you to keep the branch up to date with changes in trunk (without recording revision numbers by hand!). SVN keeps track of what needs to be merged in from trunk and what changes are unique to the branch. ...
[ 0.16154822707176208, -0.6106024384498596, 0.5829917788505554, 0.45628005266189575, 0.3945927321910858, -0.5408496856689453, 0.2603791654109955, -0.10772596299648285, -0.3574886620044708, -0.6293156743049622, 0.035420943051576614, 0.41939911246299744, 0.2728501558303833, 0.00354271102696657...
There are numerous times you have an interface that accepts similar type arguments that have a separate domain logic meaning: ``` public static class Database { public static bool HasAccess(string userId, string documentId) { return true; } } ``` Now it's quite easy to have someone key documentId instead of userI...
[ -0.05698569118976593, 0.021339990198612213, 0.24554793536663055, 0.02548489160835743, -0.2344522327184677, 0.052599433809518814, 0.11942791193723679, -0.2490353137254715, -0.0581057146191597, -0.5854361057281494, -0.03667541220784187, 0.5857234597206116, -0.46960851550102234, 0.21343135833...
public static implicit operator string(DocumentId id) { return id.Value; } } public static class Database { public static bool HasAccess(UserId userId, DocumentId documentId) { return true; } } ``` This way you get a nice compiler warning if you type in arguments out of order: ``` UserId e = new UserId() { Valu...
[ -0.17544589936733246, -0.14203524589538574, 0.36899974942207336, -0.05994522571563721, -0.11716260761022568, -0.05141285061836243, 0.20525389909744263, -0.07906453311443329, -0.07705774903297424, -0.41473618149757385, -0.21469098329544067, 0.5179648995399475, -0.6208480596542358, 0.0941732...
short descriptions in other languages is welcome. EDIT: Removed the implicit cast from string and pointing finger at the C# tag. Interesting, but I suspect that in many cases (particularly seialization / RPC APIs) this will only add confustion/overhead. Also - a minor implementation detail, but given this approach I'd...
[ 0.28703561425209045, 0.19485417008399963, -0.04333784058690071, 0.0412013903260231, -0.12288486957550049, -0.14221011102199554, 0.5618894100189209, -0.06798866391181946, 0.06186901777982712, -0.5559197068214417, -0.19664287567138672, 0.7729498744010925, -0.3818124532699585, -0.089039705693...
undoes all your good work...
[ -0.19152984023094177, 0.41550931334495544, -0.2977359890937805, 0.0432904027402401, 0.06542913615703583, 0.17428354918956757, 0.4478701949119568, -0.06793048232793808, -0.24929988384246826, -0.37258824706077576, -0.3096015155315399, 0.39142346382141113, -0.4154985249042511, 0.2682611346244...
I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number). Can anyone tell me how I take that datafield and format it - add a currency symbol, put in thousand separators etc. Thanks. S. As stated above an easy way to do this would be to add a labelFun...
[ 0.5233150124549866, -0.09013800323009491, 0.4057561159133911, 0.25379130244255066, -0.17744994163513184, -0.07526090741157532, -0.4494425654411316, -0.2713800072669983, -0.14767415821552277, -0.7047586441040039, 0.3929482400417328, 0.6266087293624878, -0.05099647864699364, -0.0370528437197...
parser for that XML and you can format the data inside the parser also if you like. Another way to handle this would be inside an itemRenderer. Example: ``` <mx:DataGridColumn id="dgc" headerText="Money" editable="false"> <mx:itemRenderer> <mx:Component> <mx:HBox horizontalAlign="right"> <m...
[ -0.04741331562399864, -0.005300501827150583, 0.7149724960327148, 0.1295769363641739, -0.10877563059329987, 0.1870662271976471, -0.36226269602775574, -0.4126974940299988, -0.43974071741104126, -0.6158021688461304, -0.001984383910894394, 0.4858492612838745, -0.07623615860939026, -0.160232976...
How do you trigger a javascript function using actionscript in flash? The goal is to trigger jQuery functionality from a flash movie Take a look at the [ExternalInterface](http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html)-Class. From the AS3-Language Reference: > The...
[ 0.2001795768737793, 0.05292380601167679, 0.5188210010528564, -0.3037683665752411, -0.03386792540550232, -0.07507238537073135, 0.1384870857000351, -0.43605610728263855, -0.1630689948797226, -0.243460550904274, 0.019226735457777977, 0.7690762281417847, -0.3870389759540558, -0.286508828401565...
How can I, in Java or using some other programming language, add a new program group in the applications menu in both KDE and Gnome? I am testing with Ubuntu and Kubuntu 8. Putting a simple .menu file in ~/.config/menus/applications-merged worked in Kubuntu, but the same procedure does nothing in Ubuntu. The content...
[ -0.00595091562718153, 0.15845975279808044, 0.3401676118373871, -0.27983009815216064, -0.23422771692276, 0.05447015166282654, 0.23887693881988525, -0.5583232045173645, -0.002795944921672344, -0.8413070440292358, -0.04924507439136505, 0.4664081037044525, -0.28422579169273376, -0.001083831186...
that? See `man xdg-desktop-menu` or <http://manpages.ubuntu.com/manpages/hardy/en/man1/xdg-desktop-menu.html> .
[ 0.003846681909635663, 0.3016565442085266, -0.026937810704112053, 0.03252780809998512, -0.21107476949691772, 0.09947960823774338, 0.16754235327243805, 0.34169819951057434, -0.496879905462265, -0.52683424949646, -0.3936386704444885, 0.3807910680770874, -0.11674172431230545, 0.053185395896434...
Are JKS (Java Key Store) files encrypted? Do they provide full protection for encryption keys, or do I need to rely solely on access control? Is there a way to ensure that the keys are protected? I'm interested in the gritty details, including algorithm, key management, etc. Is any of this configurable? They are en...
[ 0.28564009070396423, 0.12293305993080139, 0.041095830500125885, 0.13653622567653656, 0.04714202135801315, -0.3149849772453308, 0.2127811163663864, 0.06304267793893814, -0.1876305341720581, -0.4994857609272003, -0.3147568702697754, 0.5885959267616272, 0.0015288611175492406, 0.03890343382954...