text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
?> ``` --- **Edit** Actually yes sorry that line was to test when I had commented other stuff...I deleted it here still have the error though. According to the [documentation](http://www.php.net/manual/en/domxpath.query.php), the "`$elements != null`" check is unnecessary. `DOMXPath::query()` will always return a `...
[ -0.26055431365966797, 0.044146813452243805, 0.4883396029472351, -0.11767101287841797, 0.15514351427555084, -0.0735008642077446, 0.45249274373054504, -0.3085855543613434, -0.15677571296691895, -0.5263774394989014, -0.23951412737369537, 0.6009437441825867, -0.3776445686817169, 0.159706637263...
echo $e->nodeValue; } ``` The reason for the error you got is that you can't feed anything other than a string to [`parse_str()`](http://www.php.net/manual/en/function.parse-str.php), you tried passing in a `DOMElement`.
[ 0.6480592489242554, -0.08306583762168884, 0.06842895597219467, -0.10330028086900711, 0.2656954228878021, -0.23447901010513306, 0.4308425784111023, -0.0032813171856105328, -0.27769047021865845, -0.43513908982276917, -0.15907226502895355, 0.5015620589256287, -0.698184609413147, 0.15759396553...
I creating a small addin to help with my source control. Does anybody know how I could retrieve the Branch Name and Version Number of a source file in Rational ClearCase. I want to do this using C#. Where is all the information actually stored? You need, from C#, to execute a `cleartool` command More specifically, a...
[ 0.03654312342405319, 0.04950553923845291, 0.6410509943962097, 0.07229380309581757, 0.285582959651947, -0.042574863880872726, 0.34305867552757263, -0.09091506153345108, -0.19605205953121185, -0.542702317237854, -0.345241904258728, 0.8320052623748779, -0.23526255786418915, 0.1823884844779968...
= monProcess.StandardOutput; monProcess.WaitForExit(); if (monProcess.HasExited) { //la sortie du process est recuperee dans un string string output = myOutput.ReadToEnd(); MessageBox.Show(output); } ``` Note: it is recommended to always use double quotes around your file full path, in case that path or t...
[ 0.3691498935222626, 0.07451682537794113, 0.36710402369499207, -0.11435136944055557, 0.016982339322566986, 0.0007939718780107796, 0.3610362112522125, 0.07191327214241028, -0.19086238741874695, -0.4551430940628052, -0.19182933866977692, 0.7849719524383545, -0.23974750936031342, -0.0291407760...
I have a program that needs a lot of memory, and it crashes as soon as the 2GB virtual address space is reached. Sysinternals process explorer displays this as "virtual size" column. How can I determine this "virtual size" with C (or C++) code? Ok, I have to query a performance counter for "Virtual Bytes". Perfmon sho...
[ 0.11043837666511536, 0.33454757928848267, 0.47742727398872375, -0.05087302252650261, 0.18604423105716705, 0.19166500866413116, 0.3171769678592682, -0.26166558265686035, -0.5670428276062012, -0.6955193281173706, -0.13578222692012787, 0.49973294138908386, -0.1082068607211113, 0.2865907251834...
same as VM Size in Task Manager in Windows XP. [GetProcessMemoryInfo](http://msdn.microsoft.com/en-us/library/ms683219(VS.85).aspx) should work: ``` PROCESS_MEMORY_COUNTERS_EX pmcx = {}; pmcx.cb = sizeof(pmcx); GetProcessMemoryInfo(GetCurrentProcess(), reinterpret_cast<PROCESS_MEMORY_COUNTERS*>(&pmcx), pmcx.cb); ...
[ -0.16025100648403168, 0.01335960440337658, 0.7542169690132141, -0.20594273507595062, -0.020934222266077995, 0.15034160017967224, -0.055853091180324554, -0.43567511439323425, -0.7639119625091553, -0.46237751841545105, -0.1675734966993332, 0.3938407599925995, -0.042563583701848984, 0.6503304...
I want to see class, function and variable/property, dependencies visually, like [NDepend](http://www.ndepend.com/Screenshots.aspx), but for ActionScript 2 or AS3 code. Any programs or ideas? Use [doxygen](http://www.doxygen.nl/) in some way? [FlexUnit?](https://stackoverflow.com/questions/219549/automated-testing-n...
[ 0.1596011370420456, -0.2507178783416748, 0.6325007081031799, 0.09096933156251907, -0.08144025504589081, -0.004978231154382229, 0.12486273795366287, -0.09281221777200699, -0.5519979596138, -0.7795631289482117, -0.07994823157787323, 0.3890905976295471, -0.0634283572435379, 0.0106533421203494...
Ted [talks of a "Player Cache"](http://www.onflex.org/ted/2007/06/flex-3-thursday-dramatically-smaller.php) existing within *Flash Player 9.3* that allows the Flex components to be reused *across domains*. It would be an extra-benefit if my components can be reused across my multiple websites. 1. Is this Flex only? *...
[ 0.4560973346233368, -0.017283083871006966, 0.3471550941467285, 0.024895234033465385, -0.31323525309562683, -0.29173439741134644, 0.044052354991436005, -0.5039767622947693, -0.23715701699256897, -0.4390009939670563, -0.12134213000535965, 0.7448502779006958, -0.4058016538619995, -0.188876539...
If you create an RSL that contains a custom library, it will be unsigned. You cannot sign it." My only addition to that would be, "…yet." **Knowing Adobe, if you ask loudly enough, the company finds a way.** by [Tom Ortega II](http://www.adobe.com/newsletters/edge/april2008/articles/article6/)
[ 0.6513001918792725, 0.10822184383869171, 0.10741937160491943, -0.018620163202285767, 0.05388457328081131, -0.47853580117225647, 0.10638845711946487, -0.04979105666279793, 0.1435694396495819, -0.17367233335971832, -0.19390445947647095, 0.4942342936992645, -0.06532102078199387, -0.6643096208...
I'd like to have a ActiveRecord implementation in Java and before crafting my own, I'd like to know if there is an open source implementation of it. I am aware of other successful java OR maping tools like Hibernate, Castor, etc... and that is not what i want, i want a ActiveRecord like in RoR: * [RoR ActiveRecord](h...
[ 0.2685251832008362, -0.14952975511550903, -0.024914948269724846, -0.4048100709915161, -0.3169354200363159, 0.04348669573664665, 0.4325040876865387, 0.08666872978210449, -0.1703360229730606, -0.6207010746002197, 0.2113945186138153, 0.34768471121788025, -0.35740628838539124, 0.18850657343864...
I realise that I can't access Form controls from the DoWork event handler of a BackgroundWorker. (And if I try to, I get an Exception, as expected). However, am I allowed to access other (custom) objects that exist on my Form? For instance, I've created a "Settings" class and instantiated it in my Form and I seem to...
[ 0.4293985962867737, 0.010016095824539661, 0.3017323911190033, 0.019828613847494125, -0.06559831649065018, 0.015279009006917477, 0.3144782483577728, -0.0643395259976387, -0.3254733085632324, -0.6470174789428711, 0.09254839271306992, 0.5050874948501587, -0.13095107674598694, 0.09920043498277...
into the .NET Framework to prevent the "bonehead" type of parallel programming mistakes. It can be overridden, as I'm guessing you've already found out, by setting the "AllowCrossThreadCalls" property on the *class* (and not on an instance of the class, e.g. set Label.AllowCrossThreadCalls and not lblMyLabel.AllowCross...
[ 0.6561611294746399, -0.0996151939034462, 0.18254126608371735, 0.04680247977375984, 0.08100216090679169, -0.5557876229286194, 0.37228235602378845, -0.1883293092250824, -0.40471285581588745, -0.6409262418746948, 0.002158750779926777, 0.5109795928001404, -0.581654965877533, 0.4022281467914581...
under the feet of the first thread. The .NET Framework actually provides several other mechanisms which might be more useful, depending on circumstances, than locking in code. The first is to use a [Monitor](http://msdn.microsoft.com/en-us/library/system.threading.monitor.aspx) class, which has the effect of locking a...
[ 0.35454902052879333, -0.4998358488082886, 0.24897116422653198, 0.24611307680606842, -0.11680158227682114, -0.14594125747680664, 0.04263179749250412, -0.28074464201927185, -0.5829212069511414, -0.5617489218711853, 0.13830994069576263, 0.11472830921411514, -0.6065633296966553, 0.334743231534...
grab it until the first thread drops it. (A Semaphore is just like a Mutex, except that there can be more than one flag in a game.) Obviously, none of these concepts will work in every particular problem - but having a few more tools to help you out might come in handy some day :)
[ 0.45951783657073975, -0.3478662669658661, 0.1572708785533905, 0.5535447001457214, 0.10535935312509537, 0.07787125557661057, 0.0261886864900589, 0.13214817643165588, -0.3250914216041565, -0.4372623860836029, 0.09238399565219879, 0.013205479830503464, -0.19944967329502106, 0.1112580448389053...
I usually get this error and (always) don't know how to solve it. This time I got it also, it seems that I'm not understanding a concept or missing something Here's the code ``` // create a new twitteroo core with provided username/password TwitterooCore core = new TwitterooCore(username, password); ...
[ 0.07340624183416367, 0.07942947745323181, 0.20732031762599945, 0.2695838510990143, 0.08128852397203445, 0.047002214938402176, 0.7012729644775391, 0.2649185061454773, -0.25196897983551025, -0.8397632837295532, 0.09347154200077057, 0.26837435364723206, -0.23235176503658295, 0.202902451157569...
was because of my Firewall seems to be blocking connections to Visual Studio. Now it works with no changes at all :) Thanks for all your support
[ 0.5566859245300293, -0.1366959512233734, 0.4671265482902527, 0.3131733536720276, -0.13586688041687012, 0.04161534458398819, 0.5109283328056335, 0.34009501338005066, -0.21178792417049408, -0.6938653588294983, -0.015158611349761486, 0.35856595635414124, 0.3476044535636902, 0.0702592656016349...
When I try to insert a new record into the database using SQLAlchemy and I don't fill out all values, it tries to insert them as "None" (instead of omitting them). It then complains about "can't be null" errors. Is there a way to have it just omit columns from the sql query if I also omitted them when declaring the ins...
[ 0.3360781669616699, 0.520235002040863, 0.029034143313765526, 0.08071361482143402, 0.1386873722076416, -0.09718041867017746, 0.34262076020240784, 0.05534693971276283, -0.4492936432361603, -0.3336198329925537, 0.1696806102991104, 0.3256770968437195, -0.5069876909255981, 0.5920789837837219, ...
columns. Wikipedia has an article [about NULL](http://en.wikipedia.org/wiki/Null_(SQL)) and an article which describes [non-NULL constraints](http://en.wikipedia.org/wiki/Check_Constraint#NOT_NULL_Constraint)
[ -0.02249128185212612, 0.11316262185573578, 0.1859230399131775, 0.1390679031610489, -0.4334462285041809, 0.2693391442298889, 0.2479310929775238, 0.10772950947284698, -0.5021683573722839, -0.45774132013320923, -0.3730134963989258, 0.010332612320780754, -0.5506755113601685, -0.009837669320404...
If i declare an enum as follows: ``` typedef enum A { a = 0x00000001, b = 0x00000002 } AObj; ``` Now if i declare a variable of AObj as follows what does this mean? ``` AObj myAObj : 2; ``` Use a [MySQL Full Text Search](http://dev.mysql.com/doc/refman/5.1/en/fulltext-boolean.html) in boolean mode. If you...
[ 0.05542708560824394, 0.2673622965812683, 0.5002189874649048, -0.02426115795969963, 0.13714252412319183, -0.27057889103889465, -0.09012505412101746, -0.5886614322662354, -0.10987471044063568, -0.12864623963832855, -0.3445710837841034, 0.39571264386177063, -0.16768276691436768, 0.56992715597...
DESC ```
[ 0.31302139163017273, 0.5112312436103821, 0.10360032320022583, 0.04171447828412056, 0.01816028170287609, -0.18188606202602386, -0.03502469137310982, 0.10838175565004349, -0.441847562789917, -0.7762413024902344, -0.4181128144264221, 0.7781908512115479, 0.2547646760940552, 0.349651038646698, ...
I have an annoying problem in one of my projects where the production environment uses Microsoft Office 2000 and we only have Microsoft Office 2003 in the developement environment. I use automation to do some manipulation of Word documents so to make this work in both the production and the developement environments i...
[ 0.13184703886508942, 0.5031793713569641, -0.0005350950523279607, -0.016861306503415108, 0.1950187385082245, -0.12344907224178314, 0.37669724225997925, -0.11474869400262833, 0.14763393998146057, -0.6585114002227783, -0.3287465572357178, 0.6484838128089905, -0.47325631976127625, 0.0081558367...
get Microsoft Office 2000 onto the developement environment, but that is not easy if you want to do it the legal way. I use Visual Studio 2005, so is there a more elegant way to avoid this conditional compiler statement? Edit: The solution with using the TlbImp.exe tool from the SDK works beautifully, you just have t...
[ -0.10356935113668442, 0.2423381209373474, 0.28007572889328003, -0.05096956342458725, -0.19073230028152466, -0.28961893916130066, 0.3019910752773285, -0.21151363849639893, -0.024943308904767036, -0.7316414713859558, -0.10623891651630402, 0.5781325697898865, -0.4254348576068878, 0.0090053603...
... is the Office installation directory. Copy Word.dll to your dev machines. Add a reference to it in your project, make sure Copy Local is set to Yes (it is by default). You can now use "using Word" for any version of Office. The Word.dll file must be deployed to the target machine in the same directory as your .exe
[ 0.4344572126865387, -0.0021695210598409176, 0.5345773696899414, 0.1824340969324112, 0.09334338456392288, -0.20322874188423157, 0.30037030577659607, 0.28787800669670105, 0.0817941203713417, -1.0239533185958862, -0.38665515184402466, 0.4820551872253418, -0.21795769035816193, 0.37780752778053...
I want to manipulate an audio stream before it gets to the soundcard. So I wanna use the [sAPOs](http://msdn.microsoft.com/en-us/library/bb981490.aspx) from Microsoft to manipulate the audiostream in the audio engine (vista audio architecture). My basic question actually is which format the audio stream is in. I don'...
[ 0.42471441626548767, -0.019328242167830467, 0.43123242259025574, 0.20183441042900085, 0.03981335461139679, -0.28166788816452026, -0.3382594585418701, -0.21860378980636597, 0.08736263960599899, -0.3567889928817749, 0.14507369697093964, 0.8897908926010132, 0.0009413145598955452, 0.2163760215...
into floating point representation, then you will need some code to do this, unless you are particularly fond of performing math on integers. as Larry has already pointed out, many API's will handle the floating point conversion for you and simply pass a buffer of floats, the convention is that they are values between...
[ 0.11676990985870361, 0.41618332266807556, 0.16040296852588654, 0.21167738735675812, -0.0015176342567428946, 0.11532550305128098, 0.007275291718542576, -0.42401811480522156, -0.1848766803741455, -0.24779531359672546, 0.20352424681186676, 0.1481325924396515, -0.07486271113157272, 0.075537592...
I'm building a site were users can upload images and then "use" them. What I would like is some thoughts and ideas about how to manage temporary uploads. For example, a user uploads an image but decides not to do anything with it and just leaves the site. I have then either uploaded the file to the server, or loaded ...
[ 0.8504655361175537, 0.2695198357105255, 0.22477148473262787, -0.08005889505147934, 0.0010617063380777836, -0.09080271422863007, 0.08925388753414154, 0.16020631790161133, -0.2937656044960022, -0.6220994591712952, 0.07041896879673004, 0.016901463270187378, -0.09592663496732712, 0.44475227594...
using cakePHP and MySQL. Although images are stored on the server, only the location is stored in the dbb. Save the information about file to MySQL, and save the last time the image was viewed - can be done via some script that would be altered everytime the image is being used.. and check the database for images not u...
[ 0.2698124051094055, -0.298724889755249, 0.14578942954540253, 0.16102179884910583, -0.017768926918506622, -0.05966714769601822, 0.20192153751850128, 0.02547355554997921, -0.16102206707000732, -1.0019961595535278, -0.2964976131916046, 0.23567496240139008, -0.26504212617874146, -0.01031376142...
**Scenario:** In an e-commerce system, a helpdesk user should be able to "impersonate" or "log on as" a specific customer (from the web-based administration site) so that he can support the customer first-hand - eg. when the Customer is on the phone. Additional clarification: There is no need to keep track of the orig...
[ 0.2311011403799057, -0.18349558115005493, 0.17153996229171753, 0.13063205778598785, 0.1796216070652008, -0.019554300233721733, 0.4390164315700531, 0.13712124526500702, -0.27602097392082214, -0.6628594994544983, -0.3806045651435852, 0.31054234504699707, -0.1881876438856125, -0.1577898263931...
save the last time the image was viewed - can be done via some script that would be altered everytime the image is being used.. and check the database for images not used for 30 days, delete them..
[ 0.4503607749938965, -0.12893423438072205, 0.43628793954849243, 0.4037497937679291, 0.339262992143631, -0.025766925886273384, 0.2440204918384552, 0.2544671595096588, -0.14343707263469696, -0.7440604567527771, -0.06296714395284653, 0.4331965744495392, -0.3074773848056793, 0.18364664912223816...
Data : ``` Empcode Amount 30034 27.25 30034 124 ``` linq code ``` Dim ComputedData = From p In AllOrders _ Order By p.Field(Of String)("EmpCode") _ Group By Key = p.Field(Of String)("EmpCode") Into Group _
[ -0.23938807845115662, -0.010935157537460327, 0.8628376126289368, 0.047045424580574036, 0.2835688292980194, 0.17229893803596497, -0.15799903869628906, -0.8193360567092896, -0.24667726457118988, -0.012429795227944851, -0.3061995506286621, 0.4691719114780426, -0.2143956869840622, -0.042813319...
Select EmpCode = Key, _ Consumption = Group.Sum(Function(p) p("Amount")) ``` Output ``` Empcode Amount 30034 151 ``` The issue is that I must receive 151\*\*.25\*\* but the output is just 151. How to avoid this rounding of? Used Cdbl and the issues is solved ``` Dim ComputedD...
[ 0.0919419601559639, 0.12393161654472351, 1.024177074432373, -0.07832789421081543, 0.1098117008805275, 0.15453478693962097, -0.16507264971733093, -0.6085935235023499, -0.25764572620391846, -0.3457106351852417, -0.2211298644542694, 0.7057327628135681, -0.0024887823965400457, 0.04478092864155...
Order By p.Field(Of String)("EmpCode") _ Group By Key = p.Field(Of String)("EmpCode") Into Group _ Select EmpCode = Key, _ Consumption = Group.Sum(Function(p) CDec(p("Amount"))) ``` EDIT: Cdbl was giving output for some 1.05 as 1.1 as 1.150000000006 so used CD...
[ 0.0011613845126703382, 0.05592529848217964, 0.4531780481338501, -0.24876224994659424, -0.16066701710224152, 0.03438982367515564, -0.32860684394836426, -0.6802929639816284, -0.39236485958099365, -0.2868255376815796, -0.2788556218147278, 0.6425067782402039, -0.2963174283504486, -0.0389606207...
I have a feature where we need to merge user records. The user chooses a user to keep and and a user to discard. We have 59 relations to user records in our database so for each one I need to do: `UPDATE (Table) set UserNo=(userToKeep) WHERE UserNo=(userToDiscard)` and then DELETE the userToDiscard and their user pr...
[ -0.020086541771888733, 0.13034743070602417, 0.47528454661369324, 0.024634825065732002, -0.033150412142276764, -0.25185173749923706, 0.12118970602750778, -0.18360364437103271, -0.42240309715270996, -0.47803738713264465, 0.33143359422683716, 0.5248751640319824, -0.14740915596485138, 0.254777...
that would be the natural thing to do anyway) then even with 59 tables it shouldn't take too long to perform those updates and deletes. If you only actually merge users a couple times a week then a little blip like that shouldn't be an issue. At worst, someone has to wait an extra couple seconds to do something once or...
[ 0.2755533754825592, -0.190012589097023, 0.5075311660766602, 0.17399539053440094, 0.14695139229297638, 0.0018654552986845374, 0.28741753101348877, 0.08563831448554993, -0.5801346898078918, -0.8142758011817932, 0.005109305959194899, 0.1862473338842392, -0.186195969581604, 0.07254835218191147...
the users of your application though that merges do not take effect immediately. You would also need to account for a lot of possible contingencies: what if the same user is set to merge with two different users that night, etc.
[ 0.5390239357948303, -0.22805345058441162, 0.3623921275138855, 0.2172871083021164, 0.027325177565217018, -0.20264476537704468, 0.3003405034542084, 0.09001874923706055, -0.35675597190856934, -0.8355438709259033, 0.010294671170413494, 0.3797294795513153, -0.32702234387397766, 0.25125154852867...
*Background*: Applications that manipulate a collection of data typically present using a grid containing a header. These same applications typically incorporate a filter to allow the user to narrow the data set (Excel is a wonderful example. There are many others). In my MFC application, I'm attempting to do the sa...
[ 0.2541992962360382, -0.2056383341550827, 0.3969920575618744, 0.12154026329517365, -0.18904025852680206, 0.11001060158014297, -0.06536901742219925, 0.24889981746673584, -0.38359585404396057, -0.6134541034698486, -0.14090798795223236, 0.10399386286735535, -0.41886594891548157, -0.16111072897...
include custom drawing to account for the addition of the filter button and display an associated drop menu for user input of filter criteria when clicked. *Question(s)*: 1. Are there examples I missed? 2. If no examples available via the internet, what approach(es) should I consider in customizing CListCtrl and CHe...
[ 0.571132242679596, -0.09415429085493088, 0.08647029846906662, 0.14147725701332092, -0.3021874725818634, 0.050340861082077026, 0.08020488917827606, -0.32557064294815063, -0.142802432179451, -0.4150066077709198, 0.11900122463703156, 0.4627245366573334, -0.49350056052207947, -0.10343049466609...
filter interface to `CListCtrl`, with or without the `CHeaderCtrl`. **Simple approach** In your `HDN_ITEMCLICK` handler, check the `((NMHEADER)lParam).iButton`. For `iButton == 1`, that's the right mouse button. Here's your chance to show a little `CWnd`-dervied filter UI. Problem with this approach is there's no v...
[ -0.15403231978416443, -0.3040626049041748, 0.8250773549079895, 0.06923015415668488, -0.15568850934505463, -0.11340467631816864, 0.0387171171605587, -0.14346958696842194, -0.09837662428617477, -0.8519894480705261, -0.09385590255260468, 0.7098968625068665, -0.5793318152427673, -0.11215113103...
`NM_RCLICK` level so you get coordinate info ([example](http://www.codeproject.com/KB/combobox/wm_rclick.aspx).) Do some geometry to figure out if the click was on your filter icon, if so, show a little `CWnd`-derived filter UI. You can get even fancier and show the current filter in header tooltips, create more images...
[ 0.39033418893814087, -0.33423173427581787, 0.4790979027748108, 0.18335798382759094, -0.03943585231900215, -0.609000563621521, -0.09846768528223038, -0.41635024547576904, -0.15849334001541138, -0.7413440942764282, 0.21818342804908752, 0.25174593925476074, -0.28352153301239014, 0.08274916559...
I know namespace are used to describe, like doctype, but is there a way or a trick to transform inner namespace html with an xsl using xsd ? ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w...
[ 0.6607906222343445, 0.22209252417087555, 0.6436604261398315, 0.02882412075996399, 0.0005522991996258497, -0.38011646270751953, 0.16198524832725525, -0.1268317997455597, 0.18420588970184326, -0.436798095703125, 0.041058216243982315, 0.1055317148566246, -0.11047792434692383, 0.42049604654312...
xhtml page whithout using javascript. Modern browsers support XSLT out of the box. Take a look at [eu.wowarmory.com](http://eu.wowarmy.com) - they use it extensively. If the server detects a user agent that does not support XSLT, it is rendered at the server side, and a quite verbose HTML is rendered there and sent to...
[ 0.6098395586013794, -0.06906183063983917, 0.5512797236442566, 0.013709459453821182, -0.5964521169662476, -0.5022774934768677, 0.44169363379478455, -0.12886051833629608, -0.025661656633019447, -0.38351908326148987, -0.2528478801250458, 0.22054986655712128, -0.583040714263916, -0.11218147724...
Everywhere I look I see that whenever a site implement a tags system, they convert the tags names to lowercase. Even here in StackOverflow. I was thinking about why is it so. Other than preventing duplication I can't think of a reason to use lowercase. I believe it hurts the practical aspect of the tags. People are us...
[ 0.6156331896781921, 0.20485694706439972, 0.37428349256515503, 0.05074555054306984, -0.05053561180830002, -0.1415308564901352, -0.0842289999127388, 0.21067795157432556, -0.494692325592041, -0.6866136193275452, 0.14957942068576813, 0.19247734546661377, -0.4601207375526428, 0.1683595776557922...
and I got it all wrong. I want to hear your opinion. Ask an engineer the reason why something is a certain way, and they'll go to great lengths to figure it out. ;) In this case, I'd be inclined to explain the prevalence of lowercase by a combination of laziness (programmers not willing to consider the points you bri...
[ 0.7534175515174866, 0.322822630405426, -0.09064693003892899, 0.2009120136499405, -0.13886390626430511, -0.062084637582302094, 0.20679514110088348, 0.3671528100967407, -0.2579861581325531, -0.47224360704421997, -0.28024980425834656, 0.212656632065773, -0.2623535096645355, 0.0094657875597476...
querying and so on) but *display* the tags with the capitalization originally intended.
[ -0.07639949768781662, -0.021934345364570618, 0.3244648873806, 0.12181143462657928, -0.23923616111278534, -0.0687292292714119, 0.5047568678855896, -0.07573174685239792, -0.1525256335735321, -0.5486685633659363, -0.4513826370239258, 0.4632585644721985, -0.6085596680641174, 0.0175300166010856...
I use SWIG to wrap a Ruby script around a C++ library. In Ruby, I can inherit from a C++ class, but I cannot pass the resulting pointer to a C++ function in a polymorphic way. Here is a concrete example. The SWIG interface file defines base class Animal with virtual function sound(): ``` [animals.i] %module(director...
[ 0.3357614278793335, -0.06020676717162132, 0.33223265409469604, -0.5101107358932495, 0.2310047149658203, -0.07975202053785324, 0.26590967178344727, -0.46384602785110474, 0.11648859828710556, -0.34757000207901, -0.22037442028522491, 0.7075955867767334, -0.45234179496765137, 0.219211757183074...
virtual ~Dog(); virtual void sound(); }; // This function takes an Animal* and calls its virtual function sound(). void kick(Animal*, int); ``` Note that I use SWIG directors for cross-language polymorphism, but this does not seem to work. The Ruby script looks like this: ``` [tst.rb] require 'animals' inclu...
[ 0.23813413083553314, -0.1657252013683319, 0.30468952655792236, -0.3850206136703491, -0.20234334468841553, 0.11039929836988449, 0.6216914653778076, -0.4461846947669983, -0.1842939406633377, -0.44657114148139954, -0.016353465616703033, 0.791160523891449, -0.5535950064659119, -0.0365734435617...
def initialize puts "Creating new cat" end def sound puts "Meow" end end cat= Cat.new # Instantiate Ruby class kick(cat, 9) # This does not fly. ``` The final line in the script produces this error: ``` Expected argument 0 of type Animal *, but got Cat #<Cat:0xb7d621c8> ``` So somehow S...
[ 0.38000524044036865, 0.21778079867362976, 0.33201608061790466, -0.21873430907726288, -0.299386590719223, -0.0012344609713181853, 0.8054195046424866, -0.4806518852710724, 0.1391839236021042, -0.525528609752655, -0.028258072212338448, 0.4601026475429535, -0.6536454558372498, 0.00353372725658...
error message. The message seems to suggest that I pass the wrong type of pointer to my C++ function, but this is not the case. If you check the class of the exception in Ruby, it's ObjectPreviouslyDeleted, meaning that the underlying C struct pointer of my Cat class is NULL. So the real problem is that the pointer is ...
[ 0.09234453737735748, 0.20027588307857513, -0.11357074230909348, -0.25377926230430603, -0.14325222373008728, 0.06261315941810608, 0.6459610462188721, 0.12836427986621857, -0.1621948629617691, -0.3631347715854645, 0.10730576515197754, 0.5041348338127136, -0.6075127124786377, 0.30906838178634...
common Ruby-beginner's mistake, especially for people like me who come from C++, who are used to automatic constructor chaining. So all I had to do was add a call to 'super': ``` class Cat < Animal # Inherit from a C++ class def initialize puts "Creating new cat" super() end def sound put...
[ 0.36725327372550964, 0.026722323149442673, 0.028332332149147987, -0.09312655031681061, -0.19140955805778503, -0.1801372617483139, 0.41240450739860535, -0.32710734009742737, -0.17096562683582306, -0.1659466028213501, 0.020051471889019012, 0.6893761157989502, -0.4065617322921753, 0.068409897...
I just started making a PHP/AJAX site and I was wondering where I should add the functionality to **"only include the content"**. Should I have if statements in my header and footer scripts that check for a **"ContentOnly"** get parameter? And then append that parameter to the query strings in my AJAX calls? Or shoul...
[ 0.09614653140306473, -0.09319916367530823, 0.3752870261669159, 0.14317812025547028, -0.40587905049324036, -0.33949965238571167, 0.004205915145576, 0.2291618287563324, -0.23826640844345093, -0.5628659129142761, 0.08138454705476761, 0.6041039228439331, -0.29603350162506104, -0.07630997151136...
I want to keep my PHP scripts intact, so that if oyu go to them directly, the header and footer are there. Thanks in advance! Please don't use AJAX for the sake of using AJAX. That said, most AJAX libraries pass a `X-Requested-With` HTTP header indicating that it's an AJAX request. You can use that header to decide wh...
[ 0.46521392464637756, 0.19111976027488708, -0.06829991191625595, 0.21005894243717194, -0.38943973183631897, -0.3689098060131073, 0.24861328303813934, 0.4654262959957123, -0.07093320786952972, -0.6601273417472839, 0.1799263060092926, 0.2958844304084778, 0.14559446275234222, -0.00911651551723...
I am fairly new to using separate layers for the business logic (Domain) and database access logic, but in the course of working things out I've come across a problem to which I still feel I haven't found a great solution. **Clarification** My existing solution uses Data Mappers to deal with the database interactions...
[ 0.21772588789463043, 0.2667003571987152, 0.35519903898239136, 0.23016469180583954, 0.05924712494015694, -0.22080589830875397, 0.10000236332416534, -0.006991193164139986, -0.31597962975502014, -0.4928032159805298, -0.005678649991750717, 0.5212917327880859, -0.0903640016913414, 0.30950772762...
Data Mappers but this doesn't feel quite natural or correct. So the real question is what layer naturally exists to handle communication between the Domain and the Data Mappers? Any examples of how to structure it would be appreciated. For example: * How do I properly handle retrieving a collection of domain objects ...
[ 0.34888923168182373, -0.19170352816581726, 0.3893059492111206, 0.4283306300640106, -0.38967210054397583, -0.40856292843818665, 0.03691268339753151, -0.23665544390678406, -0.26649209856987, -0.6142512559890747, 0.029113290831446648, 0.44992494583129883, -0.1763067990541458, -0.0027021116111...
insert all of the Events that need to be executed for that Person for that Campaign. Gabriel, this is called the "[impedance matching problem](http://visualwikipedia.com/en/Object-relational_impedance_mismatch)." There are many solutions around, from heavyweight ones like J2EE entity beans to Ruby ActiveRecord to simpl...
[ 0.5350992679595947, -0.21032975614070892, 0.12005802989006042, 0.3020928204059601, -0.23789674043655396, -0.21687154471874237, 0.4315006732940674, 0.02610955201089382, 0.015195995569229126, -0.6455902457237244, -0.049582161009311676, 0.8881422281265259, -0.46843573451042175, -0.29903528094...
So, you're going to need to think about the *workload*, which is to say the pattern of usage in real-world application. With that in mind, you basically have a couple of issues: first, the base data types in your application may not map correctly to the data base (eg, what's a VARCHAR property represented as in your co...
[ 0.1736062616109848, 0.05935763940215111, 0.19415618479251862, 0.2677064836025238, -0.01649746298789978, -0.05441144481301308, 0.060110922902822495, -0.09479653835296631, -0.3024018704891205, -0.7904927134513855, 0.07152225077152252, 0.5163307785987854, -0.36799490451812744, 0.2855788767337...
in your database model; in large-scale applications you can rarely do this because of either performance constraints or constraints imposed by a pre-existing database model. Now, if you completely control your database model, it simplifies things somewhat, because then you can make your database model more closely res...
[ -0.08880068361759186, -0.2887735068798065, 0.2556459307670593, 0.4913973808288574, 0.09705617278814316, -0.2698323130607605, 0.2202114313840866, 0.25852251052856445, -0.36648625135421753, -0.45110979676246643, -0.04769420623779297, 0.5761154890060425, -0.3776329755783081, 0.246049404144287...
control your database model, then you need a layer of objects that make the mapping. You've got a bunch of options to choose from in implementing that: you can build views or denormalized tables in the database, you can build intermediate objects, or you can do some of both, or even have several steps of both (ie, an i...
[ 0.2102040946483612, -0.28212839365005493, 0.14815843105316162, 0.7054728269577026, 0.1618158519268036, -0.292279988527298, 0.12398973107337952, 0.06303924322128296, -0.06864167004823685, -0.7397414445877075, 0.08125124126672745, 0.6851707696914673, -0.36441856622695923, 0.16584771871566772...
strong domain model, that's less likely --- the business changes relatively rarely. The exact representation of data in the database? A little more common. Or, most commonly, the exact patterns of use (like discovering a need to handle concurrent updates.) So, when you think about that, what do you need to do to make i...
[ 0.13097822666168213, 0.05666035786271095, 0.30672502517700195, 0.38099992275238037, 0.14789043366909027, -0.36364343762397766, 0.09925894439220428, 0.09825170040130615, -0.3848941922187805, -0.5200826525688171, 0.2111593633890152, 0.722964882850647, -0.24103781580924988, 0.1012101098895073...
you're wondering about what the "right" way of handling this would be, while you are already working with something that more or less does the job. So, I'd end up by asking "what are you unhappy with now?" and "How would you like to solve that?"
[ 0.32823818922042847, 0.14800529181957245, -0.23394647240638733, -0.04400353506207466, 0.19891054928302765, 0.0688275396823883, -0.22576481103897095, 0.10203778743743896, -0.5441706776618958, -0.3087889850139618, 0.09424250572919846, 0.3511854410171509, -0.14855876564979553, 0.1232563853263...
Addressing all the browsers back to IE6 is quite challenging. Every browser supports different features of the specifications. Is there a guide on a safe subset of CSS which can be used across browsers (IE6,IE7,FF1,FF2,Safari,Opera)? That way I wouldn't have to test my style sheets in 6 different browsers after every s...
[ 0.09032547473907471, 0.11552522331476212, 0.34603533148765564, 0.05439580976963043, -0.3177486062049866, -0.09223240613937378, 0.21257123351097107, -0.05523594468832016, -0.2529016435146332, -0.6225789785385132, -0.02932107448577881, 0.5318204760551453, -0.2343931347131729, 0.0904638245701...
The GCC toolchain uses AT&T assembler syntax by default, but support for Intel syntax is available via the `.intel_syntax` directive. Additionally, both AT&T and Intel syntax are available in a `prefix` and a `noprefix` version, which differ in whether or not they require to prefix register names with a `%` sigil. De...
[ 0.10906421393156052, 0.24384868144989014, 0.424446702003479, -0.0896935760974884, -0.20960573852062225, -0.11836054176092148, -0.07533657550811768, 0.0774238109588623, 0.003941274713724852, -0.38992196321487427, -0.45894676446914673, 0.7612670063972473, -0.46704280376434326, -0.03932123631...
embedded in C code, they look like this ``` __asm__(".att_syntax prefix"); __asm__("movl $0x1234,0xdeadbeef"); __asm__(".att_syntax noprefix"); __asm__("movl $0x1234,0xdeadbeef"); ``` You can optionally surround the address constant with parentheses, ie. ``` __asm__("movl $0x1234,(0xdeadbeef)"); ``` will work as...
[ 0.04974665865302086, 0.45591771602630615, 0.30002325773239136, -0.1587650179862976, 0.06374171376228333, 0.11819509416818619, 0.35109686851501465, -0.20415867865085602, 0.13532815873622894, -0.5715194344520569, -0.10301186889410019, 0.8353919386863708, -0.21743860840797424, 0.0092827891930...
(an Intel dual core laptop with Windows XP and current MinGW and Cygwin GCC versions), the register `ds` is used by default. Square brackets around the constant are optional. The address constant is also correctly recognized if the segment register is omitted, but the brackets are present. Omitting the register emits ...
[ -0.14215172827243805, 0.06798294186592102, 0.5216256976127625, -0.0019940780475735664, 0.016161464154720306, 0.1472124457359314, 0.6571171879768372, -0.23889467120170593, 0.08214287459850311, -0.5279752016067505, -0.4763222336769104, 0.6766154766082764, -0.03731184080243111, 0.106237955391...
PTR %ds:0xdeadbeef,0x1234"); __asm__("mov DWORD PTR %ds:[0xdeadbeef],0x1234"); __asm__("mov DWORD PTR [0xdeadbeef],0x1234"); // works, but warns! ``` Omitting both segment register and brackets will fail to compile ``` __asm__("mov DWORD PTR 0xdeadbeef,0x1234"); // won't compile ``` I'll mark this question as *com...
[ 0.3111664354801178, 0.24246998131275177, 0.3304128050804138, -0.026499012485146523, -0.023396749049425125, -0.11422453075647354, 0.5772715210914612, -0.22729140520095825, -0.02924533560872078, -0.4816000163555145, -0.3585515320301056, 0.5712547302246094, -0.18164752423763275, -0.1961624026...
syntax inline assembly within C code compiled with GCC and assembled with GAS, do not forget to also add the following after it, so that the assembler can grok the rest of the (AT&T syntax) assembly generated by GCC: ``` __asm__(".att_syntax prefix"); ``` The reasoning I see for the prefix/noprefix distinction is, t...
[ 0.10040900856256485, 0.3082425594329834, 0.36371085047721863, -0.06376859545707703, -0.3504771292209625, 0.058831606060266495, 0.12529245018959045, 0.009339896962046623, 0.07958453893661499, -0.33388009667396545, -0.24270640313625336, 0.6190833449363708, -0.4392849802970886, -0.11410152912...
address or register was meant.
[ 0.08715859800577164, 0.10908742249011993, 0.05092550441622734, 0.15498201549053192, -0.05719712749123573, 0.07195060700178146, -0.08249562233686447, 0.2722311317920685, -0.13925901055335999, -0.38545122742652893, -0.13826531171798706, 0.15641744434833527, 0.021608401089906693, 0.0806730389...
I'm starting to get to the point where I want to consider building a lite version of my iPhone app. I've found a few things on the web that talk about the process a bit, namely: <http://developer.apple.com/tools/XCode/XCodeprojects.html> <http://www.pacificspirit.com/blog/2009/01/27/building_for_multiple_iphone_targe...
[ 0.8373460173606873, 0.08544697612524033, 0.23291899263858795, 0.18365074694156647, 0.10301538556814194, 0.45498034358024597, 0.022132668644189835, -0.014126786962151527, -0.44038981199264526, -0.43065470457077026, 0.13078948855400085, 0.30896416306495667, -0.12177218496799469, -0.077937461...
your conversion rate will probably be better. However, if you still want to versions of your app: Xcode has good support for multiple targets. From the project menu select "New Target...". Add another iPhone executable (Cocoa Touch Application) you can then specify on a resouce by resource basis which items are in...
[ 0.7065947651863098, 0.03847932070493698, 0.33809134364128113, 0.177196204662323, -0.006506001576781273, 0.17384977638721466, 0.20055623352527618, -0.1000857949256897, -0.31683048605918884, -0.7650601267814636, -0.031847596168518066, 0.37041518092155457, -0.18945413827896118, -0.20514245331...
different targets in the same way as you switch between building for Simulator or iPhone. To specify at build time how a specific class behaves you can do two things - include two versions of the class which are each built for their respective target or, you can set a build time flag for the pre-processor. Select the ...
[ 0.47233712673187256, -0.26556941866874695, 0.17771877348423004, 0.14987972378730774, -0.030117826536297798, 0.40474486351013184, 0.032902058213949203, -0.33054062724113464, -0.15474939346313477, -0.8691354393959045, 0.21127766370773315, 0.6228327751159668, -0.3342411518096924, -0.004447709...
`PAID` to your paid target. Thein in your source files you can determine at compile time which version you are compiling for using `#ifdef LITE` etc. Going even further, you could set a global flag or AppDelegate member variable based on #ifdef LITE and change behaviour at runtime for the Lite and paid apps. I'm not ...
[ 0.4279235303401947, -0.02331392653286457, 0.46239256858825684, 0.07638837397098541, -0.1396123468875885, 0.010292095132172108, 0.04330219700932503, 0.2138110101222992, -0.32414209842681885, -0.5318955183029175, -0.19379328191280365, 0.6759376525878906, -0.4704459309577942, -0.0375577472150...
Is there a FREE library which will allow me to open a pdf and show it on a winform project. I know I could open it in adobe reader or something but it always seems so bloated to me and I would be relying on it being installed. Is there a nice lightweight alternative where I could just include a dll in my project or sim...
[ 0.12043964117765427, -0.22902603447437286, 0.1261199414730072, 0.6094607710838318, -0.17507338523864746, -0.2624474763870239, -0.2878921627998352, 0.11412506550550461, -0.12140657752752304, -0.5503726005554199, 0.14772111177444458, 0.717607319355011, -0.3919820487499237, -0.113780021667480...
should work, either drop it in via the designer or use something like [this](http://www.codeproject.com/KB/dotnet/AxForms.aspx). This will require the relevant version of the reader is installed on the client but since you indicate that you could just launch that anyway this should not be a problem. reader
[ 0.3794095516204834, -0.24527476727962494, 0.5318822264671326, 0.31955236196517944, 0.03228633478283882, -0.36776840686798096, 0.11454375833272934, -0.1421007364988327, 0.1422141194343567, -0.9571722149848938, -0.21601562201976776, 0.47670385241508484, -0.4382725954055786, -0.22352589666843...
I would like to create application with ribbon interface that looks and behaves like this: * application have one main form with ribbon * ribbon has multiple tabs * when user switches tab on ribbon, panel below ribbon changes and displays content related to ribbon panel. That way, ribbon tab acts as if it is tab over ...
[ -0.0725855678319931, -0.295028418302536, 0.6820135116577148, 0.15054631233215332, -0.07242267578840256, 0.3113447427749634, -0.15126197040081024, -0.20387861132621765, -0.5181962847709656, -0.9342575669288635, 0.05346560850739479, 0.3535670340061188, -0.07502639293670654, 0.246655553579330...
ribbon. Question is can ribbon be used in this scenario? I read "OFFICE FLUENT™ USER INTERFACE DESIGN GUIDELINES" that describe what you can and cannot do with ribbon, but I could not find anything about this. I found [Southridge Hands-on-Lab on Codeplex](http://wpf.codeplex.com/wikipage?title=Southridge%20Lab&refer...
[ -0.11777837574481964, -0.08505109697580338, 0.396126925945282, -0.0032815791200846434, 0.16488617658615112, 0.0750199630856514, -0.018207568675279617, -0.07757022231817245, -0.02704680524766445, -0.5892730355262756, -0.08571375906467438, 0.08594667166471481, -0.022173475474119186, 0.395963...
I find that I am cutting and pasting a LOT when I program. For example, method, variable and class names are things I regularly cut/paste. I do use "ctrl+space" after typing part of a word to autocomplete them or popup intellisense when there's duplicates found. But just for straight copy/pasting do you guys have any...
[ 0.43395423889160156, 0.13898979127407074, -0.03701365739107132, 0.2846260964870453, -0.3235570192337036, 0.4028051495552063, -0.01878386177122593, -0.028111396357417107, -0.32744312286376953, -0.6119200587272644, 0.12847469747066498, 0.3867377042770386, -0.059174783527851105, -0.2115485519...
quite a bit faster. Install and learn [ViEmu](http://www.viemu.com/).
[ 0.23327822983264923, -0.30509352684020996, 0.36291101574897766, 0.10902002453804016, -0.0282222181558609, -0.3074045479297638, 0.4099748730659485, 0.1012514978647232, 0.17266352474689484, -0.855383574962616, -0.3291621208190918, 0.8583737015724182, 0.21149992942810059, -0.04416483268141746...
When writing my first asp.net MVC application using C#, I see that there are some variables whose name start with an underscore character(\_). What does this mean? Is there any specific meaning for this? There's no language-defined meaning - it's just a convention some people use to distinguish instance variables from...
[ 0.352961927652359, 0.07736211270093918, 0.3708649277687073, -0.08983313292264938, -0.2606491148471832, 0.2103017419576645, 0.10577958822250366, 0.1252579391002655, -0.5229036808013916, -0.22766245901584625, -0.11706986278295517, 0.34390735626220703, -0.7004374861717224, 0.00293377810157835...
is consistent, it's usually not much of an issue. I've seen some *horribly* inconsistent code though...
[ 0.5805334448814392, 0.3888649046421051, -0.08589161932468414, 0.41246503591537476, -0.059373702853918076, -0.29703184962272644, 0.7715173959732056, 0.38085561990737915, -0.17373095452785492, -0.6111141443252563, -0.052278753370046616, 0.2880089282989502, -0.2038758248090744, -0.05617393925...
I have defined a custom error but if I test if custom error gets raised, it fails. My models.py: ``` class CustomError(Exception): """ This exception is my custom error """ class Company(models.Model): name = models.CharField(max_length=200) def test_error(self): raise CustomError('hello') ...
[ -0.25218698382377625, 0.2449604868888855, 0.6465641856193542, -0.16354836523532867, 0.2466670125722885, 0.4572593867778778, 0.1750001162290573, -0.2870160937309265, -0.14502625167369843, -0.5683436989784241, 0.03617805242538452, 0.5849414467811584, -0.041402481496334076, 0.3320449888706207...
File "/Users/......./tests.py", line 27, in test2 self.assertRaises(CustomError, self.company.test_error) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/unittest.py", line 320, in failUnlessRaises callableObj(*args, **kwargs) File " /Users/....../models.py", line 17, in tes...
[ -0.06940203160047531, 0.270770400762558, 0.7453616261482239, -0.030134811997413635, 0.1877894103527069, 0.4618433713912964, 0.31717368960380554, -0.534783124923706, -0.2215573638677597, -0.48314356803894043, 0.16465885937213898, 0.6164082884788513, 0.04550774022936821, -0.24958084523677826...
I'm not sure why I need to use ul-li vs simply using divs when listing items. I can make both look exactly the same so where is the functional advantage to creating an unordered list vs lining up divs? For semantic correctness. HTML has the ability to express lists of things, and it helps the Google robot, screen reade...
[ 0.3979353606700897, -0.04830735921859741, 0.23917023837566376, 0.3051401972770691, -0.741682231426239, -0.1548396646976471, 0.0788159966468811, 0.17964433133602142, -0.4411255419254303, -0.7759076952934265, 0.09626296907663345, 0.317695677280426, -0.233573317527771, -0.21225649118423462, ...
This jQuery will return the source URL of a frame: ``` $('#frame-name').attr('src') ``` But if a link inside the frame is clicked, the original source is still returned. Is it possible to detect the new source URL? Or get the source of the new document loaded in the frame? If either of those is a yes, are there sec...
[ 0.038437265902757645, 0.1501462459564209, 0.5746797323226929, 0.16131630539894104, -0.16404256224632263, -0.4315144717693329, 0.07924418151378632, 0.016150711104273796, -0.236921027302742, -0.48562878370285034, -0.20711766183376312, 0.24407869577407837, -0.33898434042930603, 0.292396634817...
I have an MS-Access application that formats the data in two large spreadsheets (20,000+ rows), imports this data into tables, runs a few queries comparing the data and outputs the results as excel files. The problem is that as the application (and VBA code) grows it's becoming more of a pain using Access and I'm won...
[ 0.4178999066352844, 0.4638451933860779, 0.25718435645103455, 0.3481091856956482, -0.02438163384795189, 0.08818899095058441, -0.010734089650213718, -0.15717871487140656, -0.35021108388900757, -0.5099663734436035, 0.122378408908844, 0.5285483002662659, 0.1697281002998352, 0.34915345907211304...
alone, I need to be able to package up the app and and send it to the end user to install on their computer. This only has (of note) MS-Office and .Net Framework installed, so I'm not sure how feasible MySQL etc. would be with no where to host it. Moving to .Net would allow you to have better tools at your disposal to ...
[ 0.2742043435573578, 0.3857804536819458, 0.4936099052429199, 0.22601324319839478, 0.23462559282779694, -0.18746516108512878, 0.11787110567092896, -0.029652319848537445, -0.15730313956737518, -0.8756820559501648, -0.24793729186058044, 0.6318146586418152, -0.12819895148277283, 0.0351379066705...
Excel, then chances are you'll still have to do those in whatever language or framework you chose. If you have a lot of code invested into pulling the Excel Data into Access then you could still keep Access for that part and use .Net to help you in doing the comparisons and creation of the resulting Excel report. It'...
[ 0.31384408473968506, 0.15403902530670166, 0.05436425283551216, 0.3023916780948639, -0.2323460727930069, -0.10770779103040695, -0.034345634281635284, -0.03031385876238346, -0.09572859853506088, -0.5561630129814148, 0.1033177524805069, 0.6296859383583069, 0.015565445646643639, -0.20769618451...
exact same things you've already done in Access. Instead, you may consider using commercial Excel component that use different paradigm to open/create Excel spreadsheet in a nicer way. There are a few component vendors that have these. One solution is also to use reporting tools to directly pull the data from Exce...
[ 0.3811977505683899, 0.07462164014577866, 0.1283690333366394, 0.4530673325061798, 0.24578054249286652, -0.21072278916835785, -0.19255192577838898, 0.12598493695259094, -0.3673834502696991, -0.7161049246788025, 0.1554722785949707, 0.7217712998390198, 0.03405880555510521, 0.04674023017287254,...
if the outcome is worth the investment. * If you feel too constrained by the capabilities of Access, then spend some time experimenting with various solutions and components that allow you to manipulate Excel, for instance using a LINQ Excel provider ([1](http://solidcoding.blogspot.com/2008/01/linq-to-excel-provider-2...
[ 0.19870717823505402, -0.09779100865125656, 0.43912988901138306, 0.42580029368400574, 0.2450581192970276, -0.057084959000349045, -0.07431274652481079, -0.3543076515197754, -0.2770496904850006, -0.5345922112464905, -0.013114591129124165, 0.38761937618255615, -0.2235567569732666, -0.127653673...
databases. It's already installed on most machines and well supported by MS tools. Other good options are SQL Server Compact and SQLite as none of these require complex setup, just a DLL to ship with your project.
[ 0.07821529358625412, -0.03660489618778229, 0.42474403977394104, 0.623053789138794, 0.18961766362190247, -0.2500578463077545, -0.11720165610313416, 0.20869234204292297, -0.32641083002090454, -0.6942935585975647, -0.06053224951028824, 0.5038207173347473, -0.21238619089126587, 0.2701668739318...
How do you tell `Ctrl` + `R` reverse-i-search to "reset itself" and start searching from the bottom of your history every time? **Background:** When using reverse-i-search in Bash, I always get stuck once it is finished searching up through the history and it cannot find any more matches. Sometimes I hit `Esc` and re-...
[ 0.44808778166770935, 0.22498317062854767, 0.12962926924228668, -0.2621708810329437, 0.05306905135512352, -0.038392324000597, 0.507893443107605, -0.14255771040916443, -0.26233920454978943, -0.5238504409790039, 0.15458208322525024, 0.5504371523857117, 0.031177157536149025, 0.2459653317928314...
I hit `Esc`, and then re-invoke `Ctrl` + `R`, I would like that to indicate it should restart from the bottom again and work its way back up. I am using Cygwin on Windows, as none of the so-far mentioned solutions work. --- This question was marked as a [potential duplicate question](https://stackoverflow.com/questi...
[ -0.15111558139324188, 0.12759535014629364, 0.43823686242103577, 0.18598805367946625, 0.24916356801986694, 0.03264878690242767, 0.36747297644615173, 0.0830061063170433, -0.456739217042923, -0.5479740500450134, -0.0950305312871933, 0.46761655807495117, -0.1466480940580368, 0.1079408004879951...
the default when hitting `Esc`, but Bash uses `readline` for input, which accepts Emacs-style keybindings by default, so you can go to the bottom using `M->` (usually either by combining Meta/`Alt` and `>` or by following the `Esc` key with `>`). If `M->` does not work because your terminal does not let you enter that...
[ -0.5008102059364319, -0.22582733631134033, 0.642163097858429, -0.048202887177467346, 0.019030489027500153, 0.045218415558338165, 0.22379492223262787, 0.09122991561889648, -0.21307581663131714, -0.7006113529205322, -0.46079105138778687, 0.959141194820404, -0.283239483833313, -0.207834318280...
I'm using VS 2005 in a VB.Net WinForms application. I have a custom User Control that requires a variable to render its data correctly. **My question is, what's the best way to require the calling sub to populate the variable?** I've thought of a couple of options: * Have a WriteOnly property and check to see if it is...
[ 0.33428406715393066, -0.017914019525051117, 0.3805343508720398, -0.19024333357810974, -0.11960145831108093, -0.11656630039215088, 0.4513249099254608, -0.09862587600946426, -0.024316197261214256, -0.7906689047813416, 0.050395552068948746, 0.5748836398124695, -0.370980829000473, 0.1488205194...
passing parameters to a sub/function). * Have a global variable to hold the variable that I want the User Control to use. I could also use the exception with this technique too, but, like the option I stated above, the error would be thrown at runtime. **What are your suggestions for populating the required variable t...
[ 0.22133895754814148, -0.11688189208507538, 0.251104474067688, 0.31959283351898193, -0.07011793553829193, -0.009555814787745476, 0.12953965365886688, 0.2298915982246399, -0.0898735523223877, -0.5787785649299622, 0.1033540889620781, 0.6146830320358276, -0.34769371151924133, -0.05019932985305...
For some reason the login to my site has to be done two times in order to work. If anyone has any idea why I appreciate it. Here is the code I have for the authorization: ``` <?php session_start(); require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); require_once(SITE_ROOT.'includes/exceptions.php'); require_once(S...
[ 0.2448744922876358, 0.09668470919132233, 0.8538963198661804, -0.265962690114975, 0.15031106770038605, -0.2440754473209381, 0.5071842074394226, -0.3527309000492096, -0.1461912840604782, -0.8025069832801819, -0.055474989116191864, 0.6305896043777466, -0.31114035844802856, 0.1887010931968689,...
$_SESSION * and see if it's the database. Return * true or false * */ if(isset($_SESSION['user'])) { return true; } else {
[ 0.12947174906730652, 0.21923041343688965, 0.07480906695127487, -0.026293857023119926, 0.21734535694122314, -0.10710564255714417, 0.5645304322242737, -0.028611110523343086, -0.05882145091891289, -0.35334593057632446, -0.13758054375648499, 0.703435480594635, -0.360450804233551, 0.16139107942...
return false; } } static function redirectToLogin() { header("location: http://". DOMAIN .APP_DIR . "index.php?action=login"); } static function redirectToMain() { header("location: http://". DOMAIN . APP_DIR . "index.php?action=main"); } static function login...
[ -0.14150309562683105, -0.2842423617839813, 0.5860199332237244, -0.17854519188404083, 0.28534817695617676, 0.040753237903118134, 0.3165872097015381, -0.12042876332998276, -0.3827359080314636, -0.2880726158618927, -0.572373628616333, 0.6249555349349976, -0.6402323842048645, 0.308564841747283...
* Authenticate the user passing to the function * a instance of the User object */ try { $db = parent::getConnection(); $pass = $user->getPassword(); $query = "select username, password from users
[ 0.08986593037843704, -0.16716249287128448, 0.22169139981269836, -0.04236605390906334, 0.13286525011062622, -0.10529884696006775, 0.6952850818634033, -0.304913729429245, 0.3579965829849243, -0.621942937374115, -0.3706563711166382, 0.14685378968715668, -0.30647823214530945, 0.198550775647163...
where username = '".$user->getUsername()."' and password = '".$user->getPassword()."'"; $results = $db->query($query); if(empty($results)) { throw new Exception('There was a problem logging you in', EX_LOGIN_ERROR); }
[ -0.35039302706718445, -0.1424052119255066, 0.2598472237586975, -0.08501166850328445, 0.21379491686820984, -0.07834183424711227, 0.5654290318489075, -0.09814532101154327, -0.24797430634498596, -0.4338708221912384, -0.43601512908935547, 0.414796382188797, -0.36835789680480957, 0.232945039868...
$row = $results->fetch_assoc(); $user = $row['username']; $_SESSION['user'] = $user; } catch(Exception $e){ throw $e; } } static function logout()
[ -0.08164961636066437, -0.2794676721096039, 0.401089072227478, -0.2772786021232605, 0.13675077259540558, 0.19769564270973206, 0.023863032460212708, -0.20126080513000488, -0.3031989336013794, -0.5160297155380249, -0.2742016911506653, 0.5756204128265381, -0.5379255414009094, 0.169015049934387...
{ $old_user = $_SESSION['user']; unset($_SESSION['user']); session_destroy(); } } ?> ``` Thx I'd listen to @strager as your code, from my limited PHP exerience, doesn't seem to show anything that would cause the error. Although I can't help but offer some simple refactorings unrelated to ...
[ 0.21616177260875702, 0.36339712142944336, 0.6486545205116272, -0.34573429822921753, 0.047992121428251266, -0.36205118894577026, 0.6774660348892212, -0.5131804347038269, -0.23184862732887268, -0.7654450535774231, -0.35234278440475464, 0.6975799202919006, -0.1418941766023636, 0.3023431897163...