text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I think I've declared a Vector with an object correctly. But, I don't know how to access it's members when looping with Iterator. In my code, the line --->> cout << " " << \*Iter; How do I print the contents of the members? Like \*Iter.m\_PackLine ??? Not sure if I used the correct terminology, but appreciate the he...
[ 0.19725671410560608, -0.08596589416265488, 0.426805704832077, -0.10467418283224106, 0.19746188819408417, 0.045660361647605896, 0.23334410786628723, -0.5036180019378662, -0.24137359857559204, -0.6278385519981384, 0.10188469290733337, 0.44010108709335327, -0.7508916854858398, -0.142201110720...
packInfo.m_FileDateTime = "06/22/2008 04:34"; packInfo.m_NumDownloads = 0; unsortedFiles.push_back(packInfo); packInfo.m_PackLine = "Sample Line 2"; packInfo.m_FileDateTime = "12/05/2007 14:54"; packInfo.m_NumDownloads = 1; unsortedFiles.push_back(packInfo); for (Iter = unsortedFiles.begin(); Iter != uns...
[ -0.12518687546253204, -0.17903241515159607, 0.5596432685852051, -0.3749435245990753, 0.0042006587609648705, -0.2713519334793091, 0.31217876076698303, -0.6495783925056458, -0.2003478705883026, -0.23870718479156494, -0.29220274090766907, 0.374302476644516, -0.741535484790802, 0.0009730131714...
like this: ``` cout << " " << Iter->m_PackLine; ``` Alternatively, the following is equivalent to that: ``` cout << " " << (*Iter).m_PackLine; ``` You have to put parentheses around \*Iter, since the member-access operator binds thighter otherwise. On a side-node, make your main function return int instead of vo...
[ -0.027700088918209076, -0.34419187903404236, 0.16775937378406525, -0.2085864096879959, -0.1545388251543045, -0.07058731466531754, -0.07899788022041321, -0.16700910031795502, -0.21951164305210114, -0.47109201550483704, 0.0018719874788075686, 0.5719831585884094, -0.6514391899108887, -0.22407...
always prefer `++Iter`, which is called `prefix increment`.
[ -0.09832916408777237, -0.08192510902881622, 0.39975011348724365, -0.1219405084848404, -0.582076907157898, 0.05650017410516739, 0.12497235089540482, 0.09485611319541931, -0.02798166312277317, -0.7195237874984741, -0.4479799270629883, 0.3750837445259094, 0.04244443401694298, -0.2065250128507...
I have recently started exploring Maven, but I feel a bit overwhelmed of all xml configuration in all the pom files. Are there any good tools i can use? [m2eclipse](http://m2eclipse.codehaus.org/), it provides a very nice form-based editor. But I only use the XML view most of the time.
[ 0.19418500363826752, 0.09371301531791687, 0.10401079803705215, -0.09586066007614136, 0.13256822526454926, -0.06530069559812546, 0.05997733771800995, 0.17535558342933655, -0.3366362154483795, -0.6959279179573059, -0.04933014512062073, 0.39790940284729004, -0.0355510488152504, -0.22366575896...
Here's another problem with qt: I extend a QAbstractTableModel, but I get a compiling error ( I'm using cmake) ``` // file.h #ifndef TABLEMODEL_H #define TABLEMODEL_H #include <QAbstractTableModel> class TableModel : public QAbstractTableModel { Q_OBJECT public: TableModel(QObject *parent = 0); int rowCount(const Q...
[ -0.43855470418930054, 0.04881180077791214, 0.6071774959564209, -0.03594271093606949, 0.0024978523142635822, 0.3270781934261322, 0.4395919144153595, -0.2766878604888916, -0.4424097239971161, -0.5200579166412354, -0.3074359595775604, 0.3924722373485565, -0.22244609892368317, 0.14161422848701...
cmake, the moc\* will be automatically created
[ 0.023334726691246033, 0.32342323660850525, 0.5126621723175049, 0.20574697852134705, 0.3710431158542633, -0.15354527533054352, -0.050456590950489044, -0.04764344170689583, -0.31800374388694763, -0.5525690317153931, -0.3401760160923004, 0.46179118752479553, -0.17654366791248322, -0.204726874...
The top of my `web.xml` file looks like this: ``` <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd" version="2.5">...
[ 0.11552689224481583, 0.3464709520339966, 0.33045700192451477, -0.01100904680788517, -0.2331341952085495, -0.25235918164253235, 0.08873681724071503, -0.13614478707313538, -0.40480098128318787, -0.3926304280757904, -0.07227728515863419, 0.5800308585166931, -0.25481078028678894, -0.1653769910...
the `<!DOCTYPE ...>` is missing: ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xml> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2...
[ -0.3392873704433441, 0.3676143288612366, 0.40550029277801514, -0.21100158989429474, -0.05376577377319336, 0.17460735142230988, 0.16596117615699768, -0.2939011752605438, -0.3949858248233795, -0.6105585098266602, -0.5287314057350159, 0.4661307632923126, -0.39865532517433167, -0.0282086879014...
At a recent discussion on Silverlight the advantage of speed was brought up. The argument for Silverlight was that it performed better in the browser than Javascript because it is compiled (and managed) code. It was then stated that this advantage only applies to IE because IE interprets Javascript which is inefficien...
[ 0.2032516449689865, 0.05955379828810692, 0.19032633304595947, 0.13933615386486053, -0.2871100604534149, -0.2875019609928131, 0.1836780458688736, -0.06364145874977112, -0.08388037979602814, -0.8951831459999084, -0.06567661464214325, 0.48338842391967773, -0.05586782842874527, -0.353515654802...
is fun. Or we could actually try a test or two... That [Silverlight vs. Javascript chess sample](http://silverlight.net/samples/sl2/silverlightchess/run/Default.html) has been updated for Silverlight 2. When I run it, C# averages 420,000 nodes per second vs. Javascript at 23,000 nodes per second. I'm running the dev b...
[ 0.14389416575431824, -0.019192807376384735, 0.5721501708030701, -0.16846472024917603, -0.18669500946998596, -0.0660618394613266, 0.24080708622932434, -0.4117957353591919, -0.09133429080247879, -0.7001590132713318, 0.20194870233535767, 0.5781486630439758, -0.3368619680404663, -0.34978863596...
to stay that way. Both sides will continue to optimize, but there are some limits to what you can optimize in a dynamic language. Silverlight doesn't (yet) have an advantage when it comes to animation. For instance, the [Bubblemark](http://www.bubblemark.com/) test shows Javascript running at 170 fps, and Silverlight ...
[ 0.11936189234256744, -0.06480057537555695, 0.515715479850769, -0.0034106075763702393, -0.23327474296092987, -0.18688490986824036, 0.3458701968193054, -0.042099591344594955, -0.25829875469207764, -0.6461023092269897, -0.1544666886329651, 0.4919181764125824, -0.2485467493534088, -0.396933525...
I'm starting my adventure with Ruby on Rails and as IDE I choose Netbeans. It has bundled server Webrick and it had worked good. But after some changes in my first application it gives me internal error 500 - but nothing shows in console. And older actions give the same result. How can I find where the problem is? I w...
[ 0.3173701763153076, 0.24055331945419312, 0.29859957098960876, -0.223629429936409, -0.2892283797264099, -0.2682322859764099, 0.4965401589870453, -0.14055724442005157, -0.09285571426153183, -0.6724783778190613, 0.25279825925827026, 0.8105390071868896, -0.48499488830566406, 0.3417939245700836...
I have a structured XML file format that needs to be mapped to a flatter XML format. Ordinarily I would create a custom XSLT file for this and have the BizTalk map use it. However, I do like the idea of using the graphical maps where possible - it's all too easy to dive straight into XSLT but not so easy for those foll...
[ 0.18366211652755737, 0.20282240211963654, 0.3201734125614166, 0.1600288450717926, -0.0964987725019455, -0.16850370168685913, 0.14301162958145142, 0.02274194359779358, -0.27013567090034485, -0.6779090166091919, 0.12501871585845947, 0.5917910933494568, -0.11106960475444794, 0.005906397011131...
have no control over the source XSD - this comes from a third party. Here it is: ``` <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="VehicleTrips"> <xs:annotation> <xs:documen...
[ 0.30441057682037354, 0.1600373536348343, 0.39335328340530396, 0.14707309007644653, -0.1415751725435257, -0.1548299342393875, -0.11006040871143341, -0.2878824770450592, 0.08355855941772461, -0.4900640547275543, -0.09825046360492706, 0.5083229541778564, -0.31454405188560486, 0.23740218579769...
<xs:sequence> <xs:element name="VehicleID"/> <xs:element name="VehicleRegistration"/> </xs:sequence> </xs:complexType>
[ -0.055073775351047516, 0.117515929043293, 0.395359069108963, -0.10292421281337738, -0.06474955379962921, 0.2854002118110657, -0.2568870484828949, -0.35295242071151733, 0.16113750636577606, -0.31954360008239746, -0.00829735491424799, 0.7141399383544922, 0.055172283202409744, -0.012173069640...
</xs:element> <xs:element name="Trips"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element name="VehicleId"/>
[ -0.13613887131214142, -0.2019404172897339, 0.07901567220687866, 0.47037971019744873, 0.06120314076542854, 0.30076995491981506, -0.0672571137547493, -0.22661560773849487, 0.010737727396190166, -0.4121725857257843, 0.02653893455862999, 0.3703756630420685, 0.28390607237815857, -0.038183908909...
<xs:element name="Distance"/> <xs:element name="Duration"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> ``` ...and here's the target XSD: ``` <?xml version="1.0" encoding="UTF-8"?> <x...
[ -0.16968707740306854, -0.18896588683128357, 0.5548304915428162, 0.23326674103736877, -0.3500062823295593, -0.20079641044139862, -0.10526619106531143, -0.3296162486076355, -0.3081096410751343, -0.6801558136940002, -0.2432679980993271, 0.09088288247585297, -0.06011277064681053, 0.10590478777...
<xs:annotation> <xs:documentation>Comment describing your root element</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element name="VehicleRegistration"/> <xs:element name="Distance"/> <xs:element name="Duration"/>...
[ 0.1425316333770752, 0.14122968912124634, 0.31914716958999634, 0.3587881624698639, -0.06219496577978134, 0.028961269184947014, -0.03896607086062431, -0.47261300683021545, -0.06266332417726517, -0.32705381512641907, 0.05372243747115135, 0.41810983419418335, 0.27545756101608276, -0.0352519676...
the data across to the target schema. Does anyone know whether / how this could be achieved using only functoids (or perhaps a little script in a scripting functoid)? Many thanks, Rob. I finally found the answer to my problem. It's origin are within the application code (like 99% of a programmer's 3rd party tools 'bu...
[ 0.2988177537918091, 0.02008984610438347, 0.31243056058883667, 0.2716350853443146, 0.04814526438713074, -0.19326578080654144, 0.31112393736839294, 0.25334426760673523, -0.2579090893268585, -0.5105292797088623, 0.016993070021271706, 0.11216782033443451, -0.052287086844444275, 0.3030521571636...
saved in session after. At which value was this member initialize was depending on a setting on the local machine. The important part is the following: WebServiceRequester class contains a WebService objects. WebService objects can't be saved in session, they are not serializable in asp. The property had the [NonSeria...
[ -0.1272808313369751, -0.163816899061203, 0.08249370008707047, 0.3192136585712433, -0.2494947463274002, -0.15998435020446777, 0.2402542233467102, 0.1191854402422905, -0.5826148986816406, -0.6461634039878845, -0.13791562616825104, 0.3444663882255554, -0.23614473640918732, 0.383697509765625, ...
setting on each machine. so here's what happened: box 29 was set to access Web Service at localhost box 30 was set to access Web Service as 192.168.253.29. Technically, they are both set on the same machine. But here's a scenario: login on box 29. m\_webServiceURL is set to localhost in session. [some request on b...
[ -0.07920792698860168, -0.233934223651886, 0.7437960505485535, 0.046258896589279175, -0.0449402891099453, -0.020850935950875282, 0.469170480966568, -0.12190611660480499, -0.33193469047546387, -0.9838392734527588, -0.160877525806427, 0.49028974771499634, -0.3704566955566406, 0.24009412527084...
were not recorded with the network monitor. What lead me on the trace, was that we never had an exception logged on the box 29 log trace, as it should have. Thanks for you suggestions everyone, it was really appreciated. Have a good day. JF
[ 0.5886721611022949, -0.006491309031844139, 0.14021249115467072, 0.35141071677207947, 0.15686912834644318, -0.4297095537185669, 0.7037112712860107, 0.1909913569688797, -0.3505134582519531, -0.5083940625190735, 0.03105943091213703, 0.4000321924686432, 0.031010765582323074, -0.270617842674255...
What is the command-line equivalent of "Switch Port Client User" as found in the p4win gui client? I am already logged under one port but now I am attempting to connect to a different port on the same server in order to access a separate source control file depot. I assume it would involve using: ``` p4 login ``` ...
[ 0.14975541830062866, -0.026005994528532028, 0.5611178874969482, -0.1894935816526413, -0.029407307505607605, 0.10229655355215073, -0.05553179234266281, -0.01570843905210495, -0.011521746404469013, -0.7013969421386719, 0.08237401396036148, 1.0168007612228394, -0.23709551990032196, 0.33272194...
to connect to. You can set this value as an environment variable or, if you're using Windows, in the registry using 'p4 set': ``` p4 set P4PORT=perforce:1669 ``` To see what the current value of P4PORT is: ``` > p4 set P4PORT P4PORT=perforce:1669 ```
[ -0.00815278198570013, -0.04048973694443703, 0.7165353894233704, 0.09181972593069077, 0.15472595393657684, 0.35053351521492004, -0.03482847288250923, -0.3861914873123169, -0.2378946989774704, -0.8398173451423645, -0.03335012122988701, 0.5266674160957336, -0.5577583312988281, 0.0516783818602...
I've been testing out [the performance and memory profiler AQTime](http://www.automatedqa.com/products/aqtime/) to see if it's worthwhile spending those big $$$ for it for my Delphi application. What amazes me is how it can give you source line level performance tracing (which includes the number of times each line w...
[ 0.5180708765983582, -0.1393129825592041, 0.04166360944509506, 0.07300995290279388, -0.15078423917293549, -0.18260715901851654, 0.13337819278240204, -0.01716427505016327, -0.04285323992371559, -0.4934689700603485, 0.4925464987754822, 0.5582244992256165, -0.006638871971517801, -0.02426910027...
useful to know about. Do you know what kind of methods they use to capture the execution line-by-line without code changes? Are there other profiling tools that also do non-invasive line-by-line checking and if so, do they use the same techniques? This is just speculation, but perhaps AQtime is based on a technology...
[ 0.012285959906876087, -0.3231952488422394, 0.21147194504737854, 0.49745985865592957, -0.16120128333568573, -0.19396017491817474, 0.22604328393936157, -0.15786032378673553, -0.2540907859802246, -0.4442475140094757, 0.030622590333223343, 0.39301109313964844, -0.24493011832237244, -0.05811803...
I've got an NSColor, and I really want the 32-bit RGBA value that it represents. Is there any easy way to get this, besides extracting the float components, then multiplying and ORing and generally doing gross, endian-dependent things? Edit: Thanks for the help. Really, what I was hoping for was a Cocoa function that ...
[ 0.1418420821428299, -0.11817044764757156, 0.48730695247650146, -0.1279214322566986, -0.021647077053785324, 0.15587741136550903, 0.160805806517601, -0.04310160130262375, -0.3182547986507416, -0.6758083701133728, 0.015634609386324883, 0.4958347678184509, -0.4081604778766632, 0.10495100915431...
blueComponent], [someColor alphaComponent]); CGContextFillRect(ctx, CGRectMake(0,0,1,1)); CGContextRelease(ctx); ``` FWIW, there are no endian issues with an 8 bit per component color value. Endianness is only with 16 bit or greater integers. You can lay out the memory any way you want, but the 8 bit integer values...
[ -0.05288981273770332, -0.06440941244363785, 0.5400824546813965, -0.01674879714846611, 0.10939733684062958, 0.3885918855667114, 0.024903587996959686, -0.20488591492176056, -0.20471565425395966, -0.5835847854614258, -0.25370439887046814, 0.526472270488739, -0.2964431047439575, 0.029227206483...
alphaComponent])) * 255.0f); uint32_t value = (r << 24) | (g << 16) | (b << 8) | a; ``` Then you know exactly how it is laid out in memory. Or this, if its more clear to you: ``` uint8_t r = (uint8_t)(MIN(1.0f, MAX(0.0f, [someColor redComponent])) * 255.0f); uint8_t g = (uint8_t)(MIN(1.0f, MAX(0.0f, [someColor gree...
[ -0.20455306768417358, -0.09455239772796631, 0.21975094079971313, -0.33515599370002747, 0.28559410572052, 0.2932283580303192, 0.07116132974624634, -0.42937448620796204, -0.1436864584684372, -0.46024754643440247, -0.4628083109855652, 0.31680938601493835, -0.4685199558734894, -0.1029477342963...
I have a .NET 3.5 C# library that uses OleDb to pull data from an Excel file and return it in a DataRowCollection which is used by a CLR Table-Valued Function in SQL Server 2005. I deployed the `ASSEMBLY` in SQL Server as sa and used `PERMISSION_SET = EXTERNAL_ACCESS`. The sa login has `EXTERNAL ACCESS ASSEMBLY` and t...
[ -0.10278788954019547, 0.15709194540977478, 0.44848090410232544, -0.2893485128879547, -0.1860048621892929, -0.09331325441598892, 0.2758197486400604, -0.423604279756546, 0.03245745971798897, -0.515472948551178, -0.06245551258325577, 0.439676433801651, -0.28525441884994507, 0.1712597459554672...
Server service is running as Local System (but while trying to get this to work I also tried running it as the AD user that I was logged in as which is also a local administrator). I created a command line application to test run the library and everything runs fine and data is returned as expected. But when I run th...
[ -0.012408333830535412, -0.015543104149401188, 0.6258761882781982, -0.18789765238761902, -0.16704979538917542, 0.08613160997629166, 0.6203877329826355, 0.21228830516338348, -0.25761935114860535, -0.8904813528060913, -0.1430104523897171, 0.21848352253437042, -0.3999544382095337, 0.4062464535...
failed. > > System.Security.SecurityException: > > at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) > > at System.Security.PermissionSet.Demand() > > at System.Data.Common.DbConnectionOptions.DemandPermission() > > at System.Data.OleDb.Ol...
[ -0.21070393919944763, -0.0005180701264180243, 0.4193318486213684, 0.016502229496836662, 0.43968161940574646, 0.24287909269332886, 0.886417806148529, -0.47345414757728577, -0.18807993829250336, -0.39263251423835754, -0.5437602996826172, 0.5971290469169617, -0.3650287389755249, 0.43090116977...
> > at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) > > at GetExcelFunction.GetFile() > > at GetExcelFunction.InitMethod(String logname) I've deployed this on my personal dev machine (XP PRO) and our dev sandbox (Server 2003) and got the same error. Most code access security issues revolve aro...
[ -0.06336373090744019, 0.12638527154922485, 0.16046291589736938, -0.06445007771253586, -0.19570554792881012, -0.15647204220294952, 0.8539556264877319, -0.17722226679325104, -0.1545722484588623, -0.7765792608261108, 0.07735036313533783, 0.6711395382881165, -0.37382984161376953, 0.14529810845...
I'm looking for a good plugin for doing web front end work in Eclipse. I don't want something that completely takes over eclipse, or something that has masses of dependencies that need to be updated all the time, or something that is geared towards a particular server-side platform, or something that costs a heap. Is ...
[ 0.7353976368904114, 0.05674680322408676, 0.1045687273144722, 0.16259178519248962, -0.4485596716403961, -0.17209328711032867, -0.11023175716400146, 0.2539370357990265, 0.0012187164975330234, -0.49044230580329895, 0.24550583958625793, 0.4225011467933655, -0.12684907019138336, 0.1663744002580...
with the result. Here's what I have in my plugins directory: > com.aptana.ide.core\_1.2.0.018852.jar > com.aptana.ide.snippets\_1.2.0.018852.jar > com.aptana.ide.core.ui\_1.2.0.018852.jar > com.aptana.ide.debug.core\_1.2.0.018852.jar > com.aptana.ide.editor.css\_1.2.0.018852.jar > com.aptana.ide.editor.html\_1.2...
[ -0.17008280754089355, 0.1397022157907486, 0.4082243740558624, 0.001947200857102871, -0.06405377388000488, 0.3098318576812744, 0.06349531561136246, -0.7603982090950012, -0.14551712572574615, -0.8403630256652832, -0.1017446517944336, 0.5390713214874268, -0.397443026304245, 0.0605518855154514...
New link to get this plugin: <http://aptana.org/products/studio3/download>
[ 0.7059230804443359, -0.19729508459568024, -0.22184862196445465, 0.09908764809370041, 0.003207150613889098, -0.02607395499944687, 0.11094401031732559, -0.035493265837430954, -0.31034499406814575, -0.5759493708610535, -0.248361274600029, 0.4691227674484253, 0.04584705829620361, -0.0078268274...
### Background: I have a module which declares a number of instance methods ``` module UsefulThings def get_file; ... def delete_file; ... def format_text(x); ... end ``` And I want to call some of these methods from within a class. How you normally do this in ruby is like this: ``` class UsefulWorker inc...
[ 0.3719155192375183, 0.33464425802230835, 0.3144912123680115, -0.130349263548851, -0.0440487302839756, -0.14488910138607025, 0.22565245628356934, -0.5999746918678284, -0.21580617129802704, -0.4014791250228882, -0.009853082709014416, 0.7130175828933716, -0.5897727608680725, -0.12353605031967...
method directly on the module without including it anywhere * I don't know how/if this can be done. (Hence this question) 2. Somehow include `Usefulthings` and only bring in some of it's methods * I also don't know how/if this can be done 3. Create a proxy class, include `UsefulThings` in that, then delegate `format_...
[ 0.36556920409202576, -0.26383283734321594, 0.19995668530464172, 0.31514033675193787, -0.010522696189582348, -0.33757343888282776, 0.3164578378200531, -0.4057762026786804, -0.06294303387403488, -0.5432312488555908, 0.10871647298336029, 0.36544913053512573, -0.3538110554218292, 0.04118191078...
with a proliferation of dozens and dozens of modules - managing this would be burdensome Why are there lots of unrelated functions in a single module? It's `ApplicationHelper` from a rails app, which our team has de-facto decided on as the dumping ground for anything not specific enough to belong anywhere else. Mostly...
[ 0.44421714544296265, 0.09048428386449814, 0.007254841271787882, 0.10875441879034042, 0.13380250334739685, -0.08295407146215439, 0.218936026096344, -0.4087602496147156, -0.37400075793266296, -0.26465532183647156, -0.19176994264125824, 0.4220089018344879, -0.39954039454460144, 0.100486576557...
as if it had been declared as ``` module Mods def self.foo puts "Mods.foo(self)" end end ``` The module\_function approach below will avoid breaking any classes which include all of Mods. ``` module Mods def foo puts "Mods.foo" end end class Includer include Mods end Includer.new.foo Mods.modu...
[ 0.37477532029151917, 0.1049121767282486, 0.3696170449256897, -0.39623191952705383, -0.1278533935546875, -0.39421918988227844, 0.573777973651886, -0.9383808970451355, -0.39018768072128296, -0.24864597618579865, -0.5029370188713074, 0.7775537371635437, -0.6503649950027466, 0.0551816523075103...
`public :foo` is called after `module_function :foo`
[ -0.13843828439712524, 0.45516008138656616, 0.2905716001987457, -0.4232105016708374, -0.1884174793958664, -0.262073814868927, 0.07304174453020096, 0.24681931734085083, -0.30840519070625305, 0.10559935122728348, -0.8131576776504517, 0.460091233253479, -0.5187203288078308, 0.02876180224120617...
When editing an XML file in IntelliJ IDEA, if the document references a schema, IDEA will fetch the schema and use the information for auto-complete. It knows which tags are valid in which contexts, so when you hit CTRL-space, it suggests only those tags. It also highlights any tags that are invalid according to the sc...
[ 0.3483309745788574, -0.03382974490523338, 0.529517412185669, 0.06487643718719482, -0.11789649724960327, -0.30168089270591736, 0.05522403493523598, -0.36984777450561523, -0.3095036745071411, -0.6288979053497314, -0.03162514790892601, 0.36673930287361145, -0.09954588115215302, 0.171261057257...
1.1, XInclude 1.0 and OpenOffice 1.0 XML format.
[ 0.11249811202287674, -0.12639756500720978, 0.18667760491371155, 0.0340576171875, -0.3656700551509857, -0.26514390110969543, -0.4017215371131897, 0.4391193687915802, 0.12127391993999481, -0.744265079498291, -0.6322470307350159, 0.3067130744457245, -0.5846339464187622, 0.15558449923992157, ...
I am looking for a bells and whistles CSS framework. I have found a number online that deal with "grids", and some that deal with "typography" and others that deal with "resetting". What I have not found is something that will give my web applications a consistent reusable style or theme. I guess it would have to hav...
[ 0.8109012246131897, 0.026444513350725174, -0.11660917848348618, 0.06770651042461395, -0.4482618570327759, 0.04819503426551819, 0.25041159987449646, 0.1276647299528122, -0.09645688533782959, -0.6560800671577454, 0.05119845271110535, 0.3222430646419525, -0.19147498905658722, -0.0150141594931...
that I want, but independent of any Javascript library. (Open source would be best, but we don't mind paying) **Edit:** 5 good answers, but I have seen all those frameworks, and they are not enough of what I am looking for. Perhaps what I am looking for doesn't exist. Or I haven't explained properly. I will give them...
[ 0.19339950382709503, 0.13047648966312408, 0.08601498603820801, -0.19764328002929688, -0.05535488948225975, 0.05571702495217323, 0.4288245439529419, -0.18110404908657074, -0.19808925688266754, -0.6236240267753601, 0.0594145841896534, 0.29720214009284973, 0.009225110523402691, 0.240110993385...
realize are painful pain-free. Definitely worth looking over.
[ 0.45000311732292175, 0.5096637606620789, -0.06368785351514816, 0.46353015303611755, -0.3382886052131653, 0.047269586473703384, 0.2485850602388382, 0.13059990108013153, -0.18104557693004608, -0.3756634294986725, -0.12283435463905334, 0.2248631715774536, 0.35762345790863037, 0.27051308751106...
I have been working on a script with PHP4 that relies on NuSOAP. Now, I'm trying to move this to PHP5, and use the buildin support for SOAP there. ``` $wsdlPath = ""; // I have obviously set these variables to something meaningful, just hidden for the sake of security $apiPath = ""; $username = ""; $password = ""; ...
[ 0.3044157922267914, -0.03953943029046059, 0.6036192178726196, -0.32358551025390625, 0.03498883545398712, -0.05330308526754379, 0.403253972530365, -0.2568643093109131, -0.09813482314348221, -0.7845910787582397, -0.04509954899549484, 0.618739902973175, -0.47609513998031616, 0.065122053027153...
$client->setCredentials($username, $password); $client ->loadWSD); ``` The PHP5-version throws the following exception stacktrace: ``` EXCEPTION=SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://external-nbb.napi.norwegian.no.stage.osl.basefarm.net/api/napi1300?wsdl' in /home/eisebfog/...
[ 0.039332710206508636, 0.3351426124572754, 0.45372867584228516, -0.3516177237033844, 0.06989926844835281, -0.028950991109013557, 0.700891375541687, -0.3655101954936981, -0.06768086552619934, -0.7365952730178833, -0.18013276159763336, 0.5982491374015808, -0.18069851398468018, -0.032480921596...
not very good with web services and soap - but if anyone has any ideas, i'd appreciate any input on what I'm doing wrong and how I can move to the native soap in PHP5. Btw, the reson I want this move in the first place is the assumed resource savings in native soap. I'd appreciate any links to benchmarks between these ...
[ 0.3071557283401489, -0.012221935205161572, 0.04684679955244064, 0.2969164252281189, -0.30809974670410156, -0.17036551237106323, 0.21917136013507843, 0.07712019979953766, -0.18186220526695251, -0.8263880014419556, 0.3218824863433838, 0.6127678751945496, 0.13014806807041168, 0.06345198303461...
also verify that the SOAP-library are loaded: ``` if(!extension_loaded('soap')){ dl('soap.so'); // Actually a deprecated method. See "notes" at http://no.php.net/dl } ``` I guess the version-field you refer to is defined as "SOAP 1.1" or similiar? Best wishes :) Btw: what are you working on? Exchange of delays f...
[ 0.4547884464263916, -0.0460653118789196, 0.5360838174819946, 0.22539909183979034, 0.36639249324798584, -0.38631707429885864, 0.36146214604377747, -0.3132486641407013, -0.07539623975753784, -0.5917906761169434, -0.30189844965934753, 0.5402779579162598, -0.23598018288612366, -0.2049337774515...
If I click on a package and do control-shift-F10 it only looks for and runs JUnit tests in that package - but I really want it to recurse down into subpackages and run them. UPDATE: looks like its something else wrong. When I run it on a package that has tests, it still complains there are none (yet if I open a JUnit...
[ -0.007344223093241453, -0.14976966381072998, 0.2082640677690506, -0.11258372664451599, -0.06466755270957947, -0.11127447336912155, 0.2464648336172104, -0.07684435695409775, 0.004464925266802311, -0.4567711055278778, -0.07407574355602264, 0.7408842444419861, -0.3713672459125519, -0.20371150...
It is to my understanding that one should use a forward-class declaration in the event ClassA needs to include a ClassB header, and ClassB needs to include a ClassA header to avoid any circular inclusions. I also understand that an `#import` is a simple `ifndef` so that an include only happens once. My inquiry is this...
[ 0.27893415093421936, -0.0018871892243623734, -0.19247356057167053, -0.2937611937522888, -0.3127373158931732, -0.35990601778030396, 0.39254048466682434, -0.02259877696633339, -0.17567698657512665, -0.38549670577049255, -0.2545016407966614, 0.5413033962249756, -0.4323751926422119, 0.17433057...
this, versus just removing the `@class` forward-declaration and throwing an `#import` in to silence the warnings the compiler is giving me. If you see this warning: > warning: receiver 'MyCoolClass' is a forward class and corresponding @interface may not exist you need to `#import` the file, but you can do that in yo...
[ 0.3422742784023285, -0.10187242180109024, 0.20241816341876984, -0.0812496766448021, -0.1901979297399521, -0.4789621829986572, 0.3656981289386749, -0.09455659240484238, -0.17664963006973267, -0.4671267569065094, -0.14227062463760376, 0.6367632150650024, -0.2694172263145447, 0.14255367219448...
*myObject; ``` It doesn't have to worry about anything other than `MyCoolClass` is a valid class, and it should reserve room for a pointer to it (really, just a pointer). Thus, in your header, `@class` suffices 90% of the time. However, if you ever need to create or access `myObject`'s members, you'll need to let th...
[ 0.1762363612651825, 0.15060222148895264, 0.13503852486610413, 0.07771431654691696, 0.006014453712850809, -0.24954722821712494, 0.327210932970047, 0.357964426279068, 0.004974571522325277, -0.6347902417182922, -0.28427204489707947, 0.34925931692123413, -0.08384772390127182, -0.03329914435744...
This seems to me to be the kind of issue that would crop up all the time with SQL/database development, but then I'm new to all this, so forgive my ignorance. I have 2 tables: ``` CREATE TABLE [dbo].[Tracks]( [TrackStringId] [bigint] NOT NULL, [Id] [bigint] IDENTITY(1,1) NOT NULL, [Time] [datetime] NOT NU...
[ -0.1408778429031372, 0.055114202201366425, 0.5136198401451111, 0.10493241995573044, 0.19739416241645813, 0.0005765024106949568, -0.05952484905719757, -0.5289521217346191, -0.5571452379226685, -0.47511354088783264, -0.0567740835249424, 0.20196892321109772, -0.23638466000556946, -0.051631130...
= ON) ON [PRIMARY] ) ON [PRIMARY] GO ALTER TABLE [dbo].[Tracks] CHECK CONSTRAINT [FK_Tracks_AudioStreams] GO ALTER TABLE [dbo].[Tracks] WITH CHECK ADD CONSTRAINT [FK_Tracks_TrackStrings] FOREIGN KEY([TrackStringId]) REFERENCES [dbo].[TrackStrings] ([Id]) GO ALTER TABLE [dbo].[Tracks] CHECK CONSTRAINT [FK_Trac...
[ -0.09316908568143845, 0.24679066240787506, 0.44420942664146423, 0.051144883036613464, -0.13309246301651, 0.22180867195129395, 0.11116766184568405, -0.7941118478775024, -0.3116583526134491, -0.2584242820739746, -0.51038658618927, 0.5039960741996765, -0.5190991163253784, 0.2773432731628418, ...
to insert a new entry into the tracks table. This will also involve inserting a new entry in the trackstrings table, and ensuring that the foreign key column trackstringid in tracks points to the new entry in trackstrings. What is the most efficient means of achieving this? First, insert into `TrackStrings`, omitting t...
[ 0.14317820966243744, 0.09795952588319778, 0.28284701704978943, 0.12843498587608337, 0.3964639902114868, -0.1429002583026886, 0.03767584264278412, -0.5759296417236328, -0.09658097475767136, -0.4395585060119629, -0.4041321873664856, 0.5034992694854736, -0.3278288245201111, -0.053242951631546...
your current scope*. ``` INSERT INTO [dbo].[Tracks] ([TrackStringId], [Time]) VALUES (SCOPE_IDENTITY(), CURRENT_TIMESTAMP()); ```
[ 0.49280011653900146, -0.04293501377105713, 0.5858834981918335, -0.019737599417567253, 0.642066240310669, -0.25448256731033325, 0.185543492436409, -0.1677018105983734, -0.22734525799751282, -0.6989442706108093, -0.20914089679718018, 0.5598505735397339, -0.31284165382385254, 0.03632619604468...
In jQuery, how do you select the `<a>` which href is pointing to the current URL For example: URL = <http://server/dir/script.aspx?id=1> I want to select this `<a>` `<a href="/dir/script.aspx">...</a>` I tried this but it doesn't work: ``` var url = window.location.href; $('#ulTopMenu a["'+url+'"*=href]').add...
[ -0.3064417839050293, -0.2593006193637848, 0.8805999755859375, 0.049286261200904846, 0.03627846762537956, -0.1305444836616516, 0.25288650393486023, -0.07856856286525726, 0.01655913144350052, -0.6156792640686035, -0.3610460162162781, 0.6176961660385132, -0.17669323086738586, -0.0412693433463...
sorry but I do not have the actual code with me, but I will try to explain: I have a servlet mapped to the following: ``` /admin/* ``` So, this goes to a servlet: ``` public class AdminController extends MainController { public void doPost(HttpServletRequest request, HttpServletResponse response) { ...
[ -0.04290825501084328, -0.024556515738368034, 0.5990116596221924, -0.2443322241306305, -0.27430620789527893, 0.12755320966243744, 0.5701179504394531, -0.6721840500831604, -0.13271677494049072, -0.7685412764549255, -0.45693978667259216, 0.2737763524055481, -0.4280019700527191, 0.144699424505...
doPost((HttpServletRequest)request, (HttpServletResponse)response); } ``` So, the request is passed to AdminController, no problem, but then I reallized something: **The servlet is being called twice!**. And this is causing me many errors.. Does anybody have a clue on this? It is because I used some kind of herit...
[ 0.21431481838226318, 0.08262773603200912, 0.5208595991134644, -0.31540828943252563, -0.3204188644886017, -0.10490689426660538, 0.41557133197784424, -0.665984034538269, -0.007186937145888805, -0.624973475933075, -0.1700366586446762, 0.2906845808029175, -0.465232789516449, 0.1231090128421783...
the one you don't have an implementation for.
[ 0.17072945833206177, -0.20267757773399353, -0.05610170215368271, 0.30615589022636414, -0.12523074448108673, -0.01695985719561577, 0.01181892678141594, -0.07004714757204056, -0.25223153829574585, -0.30064043402671814, -0.04171265289187431, 0.29774463176727295, -0.2914919853210449, -0.251043...
Right now I'm developing a small canvas oriented 2D graphics engine for a game, and have been looking into several sources for hints to apply to my system's design. But obviously the most battle proven solution out there is flash, so I was wondering how is Flash architectured. I found some sources about Flash's working...
[ 0.4331105947494507, 0.07292739301919937, -0.16431504487991333, 0.2623061537742615, -0.09006206691265106, -0.015171544626355171, -0.17597675323486328, 0.05428696051239967, -0.034940727055072784, -0.8499407172203064, 0.11276818811893463, 0.7423478960990906, -0.07587359845638275, -0.350772947...
to make the best of my time in the code base. Any suggestions of good online resources and articles? Thanks! **Edit:** To make it more clear, I'm looking for the inner workings of Flash because my goal here is to make something similar to Flash, but not as powerful of course, that works in a browser without plugins. ...
[ 0.5256537199020386, 0.3680325150489807, -0.11807902157306671, 0.1142066940665245, -0.30479148030281067, -0.23341253399848938, 0.37487661838531494, 0.36744824051856995, -0.039729416370391846, -0.6021833419799805, 0.07431536167860031, 0.5898450016975403, -0.14098232984542847, -0.120248563587...
and I already know how to use Flash :) Well, at the root of your Flash content is a stage object (an instance of the [Stage](http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html) class). That stage is the root node of a tree of display objects, any of which can contain graphical assets (lines, text fi...
[ 0.13971786201000214, 0.2585678994655609, 0.5843808054924011, -0.07499483227729797, 0.05609157681465149, -0.1269187033176422, -0.09952821582555771, 0.09158346056938171, -0.08868550509214401, -0.6163695454597473, -0.19236969947814941, 0.36925214529037476, -0.0928444117307663, 0.0569657161831...
then, is to populate this Stage with children (of type [DisplayObject](http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/DisplayObject.html) or any subclass), which the Flash engine will draw onto the screen for you. You can populate it with low-level children like Sprite and MovieClip and TextField, which ar...
[ -0.054874807596206665, -0.03758067637681961, 0.6917330622673035, 0.3502596914768219, -0.0986311137676239, -0.24840931594371796, -0.18502694368362427, -0.049027495086193085, -0.15564270317554474, -0.6832941174507141, -0.2911466062068939, 0.5484936833381653, 0.053941451013088226, 0.000438850...
in other flash content, or make HTTP connections, etc. etc. That's all assuming you mean AS3. Does that help? If not you're going to have to make your question more specific. ;)
[ 0.4270835518836975, -0.013902714475989342, 0.0062767560593783855, 0.32503828406333923, -0.08820384740829468, -0.20854777097702026, 0.08757089078426361, 0.29753047227859497, -0.40856602787971497, -0.42460474371910095, -0.26101288199424744, 0.23391366004943848, -0.3418915271759033, -0.077730...
I've been working on a program to read a dbf file, mess around with the data, and save it back to dbf. The problem that I am having is specifically to do with the writing portion. ``` private const string constring = "Driver={Microsoft dBASE Driver (*.dbf)};" + "SourceType=DBF;"
[ 0.12916237115859985, 0.43090754747390747, 0.07343503087759018, -0.3428448736667633, -0.13955208659172058, -0.015418699011206627, 0.42572593688964844, -0.09233713895082474, 0.3883650004863739, -0.5625267028808594, -0.02991868183016777, 0.7289239168167114, -0.4810720682144165, 0.350440919399...
+ "DriverID=277;" + "Data Source=¿;" + "Extended Properties=dBASE IV;"; private const
[ -0.41293323040008545, -0.0242167878895998, 0.28322309255599976, -0.18794158101081848, -0.1308516561985016, 0.4021671712398529, 0.04257848486304283, -0.4282822012901306, 0.38132530450820923, -0.03607349097728729, -0.3026268780231476, 0.7523319125175476, -0.2811130881309509, -0.1292598545551...
string qrystring = "SELECT * FROM [¿]"; public static DataTable loadDBF(string location) { string filename = ConvertLongPathToShort(Path.GetFileName(location)); DataTable table = new DataTable(); using(OdbcConnection conn = new OdbcConnection(RTN(constring, filename))) { ...
[ -0.26618489623069763, -0.2647872269153595, 0.7865074276924133, -0.38517969846725464, 0.31380489468574524, 0.20288622379302979, 0.18000458180904388, -0.2848461866378784, 0.02931910566985607, -0.35858529806137085, -0.5843174457550049, 0.7896659970283508, -0.41854944825172424, 0.3349272906780...
conn.Close(); } return table; } private static string RTN(string stmt, string tablename) { return stmt.Replace("¿", tablename); } [DllImport("Kernel32", CharSet = CharSet.Auto)] static extern Int32 GetShortPathName( String path, // input string StringBuilder ...
[ -0.08080832660198212, -0.48295459151268005, 0.7017630338668823, -0.1796797811985016, 0.17299741506576538, 0.21290293335914612, 0.27343788743019104, -0.3354923129081726, -0.14173555374145508, -0.41548117995262146, -0.21175307035446167, 1.0777919292449951, -0.36453622579574585, 0.06682126224...
public static string ConvertLongPathToShort(string longPathName) { StringBuilder shortNameBuffer; int size; shortNameBuffer = new StringBuilder(); size = GetShortPathName(longPathName, shortNameBuffer, shortNameBuffer.Capacity); if (size >= shortNameBuffer.Capacity) ...
[ 0.21537892520427704, -0.5085581541061401, 0.750222384929657, -0.5087946653366089, 0.006717056501656771, 0.35590946674346924, 0.4485653042793274, -0.5325069427490234, -0.07273752987384796, -0.37526386976242065, -0.24348361790180206, 0.6539642214775085, -0.39567330479621887, 0.00537804747000...
shortNameBuffer, shortNameBuffer.Capacity); } return shortNameBuffer.ToString(); } ``` This is what I'm working with. I've tried a number of methods to write a new file, none of them productive. To be honest, while normally I would be an advocate of form and function, I just want the damn thing t...
[ 0.6240237951278687, -0.17090892791748047, 0.39889806509017944, -0.2832917273044586, 0.14746354520320892, -0.12175998091697693, 0.7881738543510437, 0.10858432203531265, -0.11477694660425186, -0.6801602244377136, 0.02186504751443863, 0.3694393038749695, -0.603600800037384, 0.1411835998296737...
particular format of dbf I was working with had no primary key information. This of course meant that I had to essentially read the data out to DataTable, mess with it, then wipe all the records in the dbf and insert everything from scratch. Screw that for a lark. For people coming here in the future: I wrote this toda...
[ 0.5407978892326355, 0.07418227940797806, 0.2087300568819046, 0.053591396659612656, -0.20742535591125488, -0.2010391801595688, 0.1668897122144699, 0.1365155279636383, -0.12937386333942413, -0.6307861804962158, -0.08585255593061447, 0.42554882168769836, -0.3958248794078827, 0.430507242679595...
data types and may not be compatible with all DBF files. Hope this helps. ``` public static void DataSetIntoDBF(string fileName, DataSet dataSet) { ArrayList list = new ArrayList(); if (File.Exists(Path + fileName + ".dbf")) { File.Delete(Path + fileName + ".dbf"); ...
[ 0.13516657054424286, -0.09248208999633789, 0.47430261969566345, -0.14189189672470093, -0.055501680821180344, -0.17786628007888794, 0.23661983013153076, -0.4587267339229584, -0.09177965670824051, -0.8543843030929565, -0.30502647161483765, 0.35075944662094116, -0.4958289861679077, 0.28663620...
+ " ("; foreach (DataColumn dc in dataSet.Tables[0].Columns) { string fieldName = dc.ColumnName; string type = dc.DataType.ToString(); switch (type) { case "System.String":
[ 0.042661525309085846, -0.4320908188819885, 0.5697484612464905, -0.06819206476211548, 0.26817673444747925, 0.2229052186012268, -0.03966684639453888, -0.39498695731163025, -0.25105664134025574, -0.31605449318885803, -0.35123950242996216, 0.5098130106925964, -0.3078330159187317, 0.33416143059...
type = "varchar(100)"; break; case "System.Boolean": type = "varchar(10)"; break;
[ -0.28582659363746643, -0.10112909227609634, 0.153786301612854, -0.30675220489501953, 0.34490305185317993, 0.10807958245277405, 0.4386332333087921, -0.26555368304252625, -0.1434638351202011, -0.11858069151639938, -0.5045539140701294, 0.47537103295326233, -0.3412719964981079, 0.0460438467562...
case "System.Int32": type = "int"; break; case "System.Double": type = "Double";
[ -0.37968194484710693, -0.2616574764251709, -0.24914085865020752, -0.13469021022319794, 0.3478204905986786, 0.10120727121829987, 0.31682339310646057, -0.17447564005851746, -0.20611673593521118, -0.2654859721660614, -0.5814825296401978, 0.356015145778656, -0.415012925863266, 0.02599272690713...
break; case "System.DateTime": type = "TimeStamp"; break; } createSql = createSql +
[ 0.07714878022670746, -0.386769562959671, 0.27439233660697937, -0.2540093660354614, 0.5564255118370056, -0.10428500175476074, 0.28596732020378113, -0.058086760342121124, -0.42344599962234497, -0.38399091362953186, -0.4240959584712982, 0.07475735992193222, -0.22788600623607635, 0.35552185773...
"[" + fieldName + "]" + " " + type + ","; list.Add(fieldName); } createSql = createSql.Substring(0, createSql.Length - 1) + ")"; OleDbConnection con = new OleDbConnection(GetConnection(Path)); OleDbCommand cmd = new OleDbCommand(); cmd.Connection = con; ...
[ -0.35206934809684753, -0.2935386300086975, 1.1016312837600708, -0.29996928572654724, 0.1406753659248352, 0.12541021406650543, 0.2878521978855133, -0.20944523811340332, -0.2348649799823761, -0.7788423895835876, -0.5005844831466675, 0.4266645014286041, -0.4622836410999298, 0.3846408128738403...
cmd.ExecuteNonQuery(); foreach (DataRow row in dataSet.Tables[0].Rows) { string insertSql = "insert into " + fileName + " values("; for (int i = 0; i < list.Count; i++) { insertSql = insertSql +
[ -0.13951261341571808, 0.006545838434249163, 0.43996137380599976, -0.2882269024848938, 0.22965583205223083, 0.33062636852264404, 0.010122526437044144, -0.4254150390625, -0.2402104139328003, -0.383052796125412, -0.19622908532619476, 0.474319726228714, -0.4054843783378601, 0.04845087602734566...
"'" + ReplaceEscape(row[list[i].ToString()].ToString()) + "',"; } insertSql = insertSql.Substring(0, insertSql.Length - 1) + ")"; cmd.CommandText = insertSql; cmd.ExecuteNonQuery(); } con.Close(); } private static string GetConnection(string p...
[ -0.14861035346984863, -0.32099807262420654, 0.635917067527771, -0.31424909830093384, 0.3390868604183197, 0.11560547351837158, 0.37173745036125183, -0.3346114754676819, 0.08897589147090912, -0.26897186040878296, -0.5207132697105408, 0.7527369856834412, -0.5402993559837341, 0.048498045653104...
return "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties=dBASE IV;"; } public static string ReplaceEscape(string str) { str = str.Replace("'", "''"); return str; } ```
[ 0.2750955820083618, -0.21528324484825134, 0.7409135699272156, -0.34281888604164124, 0.19254443049430847, 0.10267811268568039, 0.3103581368923187, -0.4812973439693451, 0.17538227140903473, -0.5444511771202087, -0.5727263689041138, 0.6391804218292236, -0.5473104119300842, 0.1867220103740692,...
OK, this is an odd request, and it might not even be fully true... but I'm upgrading someone's system ... and they are using OSCommerce (from a long time ago). It appears their variables are referrenced without a dollar sign in front of them (which is new to me). I haven't done PHP in about 7 years, and I've always us...
[ 0.38217630982398987, 0.3127749562263489, 0.35473203659057617, -0.04702029749751091, -0.07212350517511368, -0.20456528663635254, 0.462088406085968, 0.12603281438350677, -0.2828028202056885, -0.7226841449737549, 0.20525242388248444, 0.41552942991256714, -0.20477034151554108, 0.37424322962760...
dollar signs in front of everything. HELP! Thanks, I believe OSCommerce actually DEFINES these values, so the usage is correct (without the $). Look for ``` define("DB_SERVER", "localhost"); ``` or something similar. In other words, do *not* go through and update these with a $ before if they're actually defined ...
[ 0.7051599621772766, 0.26072221994400024, 0.19098463654518127, 0.17351976037025452, 0.06493891775608063, -0.00810410175472498, 0.353063702583313, 0.21280495822429657, -0.18943077325820923, -0.5176603198051453, 0.38010933995246887, 0.6916823983192444, -0.13095493614673615, 0.0799854770302772...
One of the core fields present on several of my app's major database tables needs to be changed from varchar(5) to varchar(8). The list of stored procedures that depend on these tables is extremely long, not to mention the changes that would have to be made in my Data Access Layer (ASP.NET 2.0 DataSet with TableAdapter...
[ 0.08814650028944016, 0.12700383365154266, 0.4715437591075897, -0.08482292294502258, 0.05099260061979294, -0.06917516142129898, 0.2700667083263397, -0.12857110798358917, -0.3643246293067932, -0.6388313174247742, 0.06616608053445816, 0.6943302750587463, -0.33150991797447205, -0.0194980781525...
this [essay](http://www.agiledata.org/essays/databaseRefactoring.html) by Scott Ambler on Database Refactoring. I think he also has a book on it. The basic idea, I believe, will be to introduce a new column with the proper width, copy existing data to the new column, implement a trigger to synchronize any new inserts/u...
[ 0.25991466641426086, 0.17839348316192627, 0.12490648776292801, 0.07295961678028107, 0.06339636445045471, -0.017992716282606125, -0.2613396644592285, -0.20536625385284424, -0.07817269116640091, -0.4656336307525635, 0.10002383589744568, 0.17018219828605652, -0.3448309004306793, -0.3306648731...
How do I remove the urls of repositories that no longer exist in the dropdown in the TortoiseSvn repo-browser? Just move the mouse over the item you want to remove and press `Shift`+`Del`.
[ 0.12931495904922485, -0.26018771529197693, 0.7217029929161072, -0.1495632529258728, 0.290088415145874, -0.03943413123488426, 0.08960306644439697, 0.11043032258749008, -0.39804375171661377, -0.3094303607940674, -0.23294967412948608, 0.731539785861969, 0.108375683426857, 0.22147096693515778,...
I would like to pass an x amount of geo-locations to the Google Maps API and have it centered around these locations and set the appropriate zoom level so all locations are visible on the map. I.e. show all the markers that are currently on the map. Is this possible with what the Google Maps API offers by default or d...
[ 0.11452774703502655, 0.07426436990499496, 0.3327621817588806, 0.2109154462814331, -0.048379041254520416, -0.09635745733976364, 0.1144731342792511, -0.031387217342853546, -0.1925666332244873, -0.5421751141548157, 0.18065334856510162, 0.33667460083961487, -0.03840327635407448, 0.026612740010...
Running ipconfig /all shows a Teredo Tunneling Pseudo-Interface. What is that? Does this have something to do with IPv4 vs IPv6? Should I get rid of it? If so how? Is to do with IPv6 All the gory details here: <http://www.microsoft.com/technet/network/ipv6/teredo.mspx> Some people have had issues with it, and disab...
[ 0.3171907365322113, -0.06041894853115082, 0.05381030961871147, 0.34481510519981384, -0.13557793200016022, -0.5249963402748108, 0.46800559759140015, 0.08322545886039734, -0.22604776918888092, -0.42245742678642273, 0.12498388439416885, 0.4468393325805664, -0.3286662697792053, 0.1766200512647...
Using jQuery, **how do you match elements that are prior to the current element in the DOM tree?** Using `prevAll()` only matches previous siblings. eg: ``` <table> <tr> <td class="findme">find this one</td> </tr> <tr> <td><a href="#" class="myLinks">find the previous .findme</a></td> ...
[ -0.29052403569221497, -0.4031532406806946, 0.43409228324890137, -0.09974609315395355, -0.24042992293834686, -0.04905076324939728, 0.12046618014574051, -0.4781443774700165, -0.03507846221327782, -0.8646842837333679, 0.05783648416399956, 0.5041091442108154, -0.08844859898090363, 0.1657243669...
here's what I've come up with - hopefully it'll be useful in many different situations. It's 2 extensions to jQuery that I call `prevALL` and `nextALL`. While the standard `prevAll()` matches previous siblings, `prevALL()` matches ALL previous elements all the way up the DOM tree, similarly for `nextAll()` and `nextALL...
[ -0.16257457435131073, -0.3448329269886017, 0.786176323890686, -0.4076046645641327, 0.06242510676383972, 0.230716273188591, 0.1821056604385376, -0.3876038193702698, -0.027187306433916092, -0.5239444375038147, 0.08192304521799088, 0.8071898818016052, -0.12472433596849442, 0.10940616577863693...
'next'], function(unusedIndex, name) { $.fn[ name + 'ALL' ] = function(matchExpr) { // get all the elements in the body, including the body. var $all = $('body').find('*').andSelf(); // slice the $all object according to which way we're looking $all = (name == 'prev') ?...
[ 0.16345074772834778, -0.19966737926006317, 0.4879729747772217, -0.17998088896274567, 0.3498062491416931, 0.3523027002811432, -0.11159703880548477, -0.5516822338104248, 0.029525231570005417, -0.6751432418823242, -0.25951382517814636, 0.3351660668849945, -0.3124541938304901, -0.1287871450185...
: $all.slice($all.index(this) + 1) ; // filter the matches if specified if (matchExpr) $all = $all.filter(matchExpr); return $all; }; }); ``` usage: ``` $('.myLinks').click(function() { $(this) .prevALL('.findme:first') .html("You found me!") ; // set ...
[ -0.04413837194442749, -0.47222235798835754, 0.5705544948577881, -0.19389411807060242, 0.2991648018360138, 0.001414197962731123, 0.19876497983932495, -0.053799793124198914, -0.22774621844291687, -0.8427562713623047, -0.34918665885925293, 0.18454936146736145, -0.5941382646560669, 0.085251815...
red $(this).nextALL().css('backgroundColor', 'red'); }); ``` --- *edit* - function rewritten from scratch. I just thought of a much quicker and simpler way to do it. Take a look at the edit history to see my first iteration. *edit again* - found an easier way to do it!
[ 0.16248418390750885, -0.07841172069311142, 0.3703520596027374, -0.278380423784256, 0.1782304346561432, 0.048362649977207184, 0.3999710977077484, -0.00406657624989748, -0.27928784489631653, -0.7891638278961182, -0.10662124305963516, 0.63783860206604, -0.3318130075931549, 0.03037644550204277...
I have a website with members who message each other. There are getting to be a few members and they like to send messages - I'm sure you can see where this is going. Currently I have said messages stored in a nicely relational table cunningly titled "messages" with different status ids to denote, er, status (unread, ...
[ 0.5697989463806152, 0.1589956134557724, 0.3045126497745514, -0.160736545920372, -0.09957000613212585, -0.13947919011116028, 0.21504175662994385, 0.29710519313812256, -0.6554531455039978, -0.4072861969470978, 0.20811249315738678, 0.13413605093955994, 0.16101868450641632, 0.2866998314857483,...
about it. I have a couple of ideas, none of which are rocket science, but I'm curious if this has a 'standard solution'. Google suggests not, but then these kinds of issues aren't that common outside of places like stackoverflow, I imagine. Anyone *been-there-done-that* already? I would definately split the 'message...
[ 0.8578917980194092, 0.04885609447956085, 0.27226173877716064, 0.07097537070512772, 0.04215894639492035, -0.2972068786621094, 0.34053513407707214, 0.16296054422855377, -0.467647522687912, -0.5326398611068726, 0.25225138664245605, 0.5237545371055603, 0.03739263117313385, 0.0556945838034153, ...
'Message Status' is just a lookup table to join with a tinyint FK'd to the 'Message' table. You'll have much more performance over 1 table with probably a mediumtext column.
[ -0.24184466898441315, -0.18355906009674072, 0.5942942500114441, 0.3437001705169678, -0.24284842610359192, -0.03658442944288254, 0.18787778913974762, 0.2599877417087555, -0.3779822289943695, -0.8886246681213379, 0.15246199071407318, 0.14787711203098297, -0.0008463506819680333, -0.1975234299...
I'm at step 8 of the authentication overview found here: <http://wiki.developers.facebook.com/index.php/How_Connect_Authentication_Works> In particular, the user has logged into facebook via Facebook Connect and their web session has been created. How do I use the facebook developer toolkit v2.0 (from clarity) to retr...
[ 0.6077651977539062, 0.17795902490615845, 0.4539054036140442, -0.09430261701345444, -0.044304218143224716, -0.4958992898464203, 0.40946388244628906, 0.020555613562464714, -0.23711279034614563, -0.7978399395942688, 0.15406347811222076, 0.3104088604450226, 0.10145536810159683, -0.057945400476...