text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
they *fight* each other in an autonomous battle in an arena...like such: [alt text http://articles.techrepublic.com.com/i/tr/cms/contentPics/robocode.gif](http://articles.techrepublic.com.com/i/tr/cms/contentPics/robocode.gif) --- So basically, as I said, I want to recreate this sort of scenario using the .Net Frame...
[ 0.38396942615509033, 0.056420475244522095, 0.1476694494485855, 0.24545295536518097, 0.09808432310819626, 0.07361511886119843, 0.013626103289425373, 0.07084976881742477, -0.14203095436096191, -0.4941989481449127, 0.2128341943025589, 0.5479497909545898, -0.06227127090096474, -0.0118274744600...
register new robots, view past tournament scores etc... * And obviously the Class Interfaces that players will need to use to create their robots. --- Animation and Graphics (for the actual battles) ----------------------------------------------- Now, of course there will be some sort of animation and movement when ...
[ 0.12383612990379333, 0.09377014636993408, 0.5625923275947571, 0.4959540367126465, 0.013346205465495586, 0.01616467908024788, -0.04965052008628845, -0.16540087759494781, -0.19741784036159515, -0.7680221796035767, 0.08895569294691086, 0.4959940016269684, 0.18456508219242096, -0.1057170033454...
will handle the animations (thus, changing the scenario from an offline applcation to now an online one * Or, maybe the least feasable of them, create the battle animations using JavaScript, with something like the [Canvas](https://web.archive.org/web/20120803112420/https://developer.mozilla.org/en/Canvas_tutorial) **...
[ 0.1354835480451584, -0.3878031075000763, 0.613793134689331, 0.11671747267246246, 0.08831512928009033, 0.08454982191324234, 0.11251804977655411, -0.21432818472385406, -0.16822122037410736, -1.0047869682312012, -0.2109273225069046, 0.6706231236457825, -0.09833836555480957, -0.212408304214477...
an angular turn */); //etc... ``` Here is a snippet from code in Robocode (Java) : ``` public class MyFirstRobot extends Robot { public void run() { while (true) { ahead(100); turnGunRight(360); back(100); turnGunRight(360); } } } ``` For
[ -0.22983314096927643, -0.2070903480052948, 0.8616592288017273, -0.3001478612422943, 0.22478312253952026, 0.44784268736839294, 0.08318626135587692, -0.2149769812822342, 0.1443231701850891, -0.4831477105617523, 0.05596380680799484, 0.8634483814239502, -0.005439288914203644, 0.009314724244177...
then to actually make the battles happen, I am thinking of using Reflection to actually read what methods the user is actually making use of and implementing them to run and be invoked at particular moments of the battle and such. --- Now, what I kindly and humbly ask of you experienced developers, is to guide me a b...
[ 0.4827998876571655, 0.3070376515388489, 0.027638766914606094, 0.3297385275363922, 0.03020801953971386, 0.1645837426185608, 0.058678966015577316, 0.14936865866184235, 0.1789994239807129, -0.8089642524719238, 0.06571083515882492, 0.7919491529464722, 0.5790348052978516, -0.2479598969221115, ...
intend to be using are : * .NET Framework 3.5, with C# 3.0 * LINQ (Language Integrated Query) * SQL Server 2008 * Microsoft Visual Studio 2008 * jQuery Framework * Possibly Silverlight --- I thank you all, even for managing to read up to this point in my question and I will need and appreciate greatly all the help I...
[ 0.3334331810474396, 0.019630450755357742, 0.21131157875061035, 0.16826219856739044, -0.10872504115104675, -0.2848004996776581, 0.10435917228460312, 0.23139643669128418, -0.27718955278396606, -0.7066231369972229, 0.17960584163665771, 0.5273615121841431, 0.2369006723165512, 0.014368177391588...
as Silverlight) I ended up spending a lot of time figuring out how to do things. It is a very different way of making a GUI than what else I've tried and there seems to be a billion different ways to do things. My point is, that if you have no experience with WPF/Silverlight I suspect it is going to take a lot of time ...
[ 0.673342764377594, 0.07185031473636627, 0.36023321747779846, 0.03220416605472565, -0.5199512839317322, -0.14985929429531097, 0.40552714467048645, -0.08390212059020996, -0.21905896067619324, -0.6567683219909668, 0.24625395238399506, 0.4175800085067749, 0.057189956307411194, 0.04474435374140...
approach the design of the game. Start out with a very simple API for the bots, say two functions with no events, input or knowledge of the world. Just start by getting the bots to move. The point is to get a fully functioning program with the simple functionality, including all parts from loading the client code to sh...
[ 0.17842823266983032, -0.3016812205314636, 0.20790672302246094, 0.21409490704536438, -0.11869634687900543, 0.1305105984210968, 0.042306624352931976, -0.35148221254348755, -0.06877341121435165, -0.8419103026390076, -0.02161465771496296, 0.5611081719398499, -0.08788391947746277, -0.1853177547...
start a battle with a loop until 1 minute has passed (or whatever, just to see that something is going on): ``` while (time is not up) generate random sequence for bots call run() on each bot draw(world) ``` When the time is up, the battle is over. Now you have a skeleton application which you can begin to ...
[ 0.4888094365596771, -0.10860060900449753, 0.0690809041261673, 0.1282525509595871, -0.06313206255435944, -0.11242804676294327, 0.3144870102405548, -0.22931146621704102, -0.45887652039527893, -0.4812374711036682, -0.12412306666374207, 0.29208192229270935, -0.3138076364994049, -0.109704285860...
have defined in the API. Calling these will change the state of the world - probably just a grid of tiles, and the location of each bot. The next step could be to add a view of the world to the bots' run method, changing the loop to this: ``` while (time is not up) generate random sequence for bots call run(Wor...
[ 0.6134849190711975, -0.2857963740825653, 0.5412283539772034, 0.0031034655403345823, -0.004490061197429895, 0.09417245537042618, 0.31332090497016907, -0.23215095698833466, -0.37643739581108093, -0.7539962530136108, 0.14328503608703613, 0.3901699185371399, -0.3104899823665619, 0.160960674285...
part of it) which allows them to move towards or away from enemies and avoid walls. In the next iteration you could then create a single API function to shoot you cannon (or whatever is appropriate your game). Implement how this changes the world state, how the bullets are tracked and how the animation is represented,...
[ 0.3425932824611664, -0.42288294434547424, 0.5203774571418762, 0.3955259919166565, -0.26097679138183594, 0.17309582233428955, 0.10924220085144043, -0.46381327509880066, -0.13701213896274567, -0.5137033462524414, 0.14026658236980438, 0.4449174106121063, -0.20402935147285461, -0.1686101704835...
draw(world) ``` I hope this gives you an idea of how you can iteratively flesh out the program, all the while having a working program that reflects all the areas of the game. I don't have much experience with implementing games, so you should look at my advice with a critical eye but this is how I would attack the p...
[ 0.45073744654655457, 0.11926393210887909, 0.24423353374004364, -0.1971939355134964, -0.16040238738059998, 0.016763560473918915, -0.09321048855781555, -0.051929593086242676, 0.08788155764341354, -0.8742814064025879, 0.40652552247047424, 0.648710310459137, -0.12413372844457626, -0.0309233311...
I've recently migrated my CI server from an old version of CruiseControl to Hudson. The only feature I miss from CruiseControl is the ability to receive email build notices of EVERY build, not just those that cause the status of the project to change. I'm ESPECIALLY interested in build notifications for all successful...
[ 0.39378276467323303, -0.21553575992584229, 0.624435544013977, -0.34317439794540405, 0.23498138785362244, -0.058023013174533844, -0.01215751189738512, 0.20614561438560486, -0.290615975856781, -0.8262660503387451, 0.3515620827674866, 0.49600520730018616, -0.08689578622579575, 0.2491707354784...
to the committers, or a fixed list of recipients.
[ 0.555834949016571, -0.19494692981243134, 0.32621878385543823, 0.19821017980575562, 0.2245764583349228, 0.6111243367195129, -0.18215185403823853, 0.29122236371040344, -0.3406095802783966, -0.2090563029050827, -0.5314347743988037, 0.43867942690849304, -0.06608420610427856, -0.078923322260379...
I would like suggestions on how to inject a record into my DropdownList to give an "All" option. Here is my code, data coming from the Northwind database. ``` <asp:DropDownList ID="ddlRegion" runat="server" DataSourceID="SqlDataSource1" DataTextField="RegionDescription" DataValueField="RegionID" AutoPost...
[ -0.11725305765867233, -0.018576905131340027, 0.6095187664031982, -0.03390413150191307, 0.17867374420166016, 0.004840323235839605, 0.05563654005527496, -0.1169893890619278, -0.39712780714035034, -0.75457364320755, -0.1436803787946701, 0.2854927182197571, -0.13466767966747284, 0.205156952142...
to go but am not sure how to go about it. Thanks Just add the All item in the ASPX, and then set AppendDataBoundItems=true and it will keep the statically defined items with the data bound items.
[ 0.18935412168502808, -0.17084863781929016, 0.8152279853820801, 0.36067017912864685, -0.07990887761116028, -0.23366497457027435, 0.3347107172012329, -0.01869678497314453, -0.09296193718910217, -0.6056588888168335, 0.04432739317417145, 0.5751875042915344, -0.24921247363090515, -0.16680949926...
Unit tests are often deployed with software releases to validate the install - i.e. do the install, run the tests and if they pass then the install is good. I'm about to embark on a project that will involve delivering prototype software library releases to customers. The unit tests will be delivered as part of each r...
[ 1.0225560665130615, 0.11331353336572647, 0.2735011875629425, 0.06115139648318291, 0.06664860993623734, -0.1336369663476944, -0.08195970952510834, -0.3467046320438385, 0.3160126507282257, -0.539034903049469, -0.23262949287891388, 0.7946667671203613, 0.3815416097640991, -0.1547541320323944, ...
it is used by the unit tests then great. If they use it some other way then all bets are off. Has anybody tried this before? Any thoughts on whether this is a good/bad idea? Edit: To highlight a good point raised by ChrisA and Dan in replies below, the "unit tests that test the API" are better called the integration ...
[ 0.8694354295730591, 0.19044838845729828, -0.21071992814540863, -0.023740291595458984, 0.05377095192670822, 0.01757117547094822, 0.25863543152809143, -0.18992459774017334, 0.07901114225387573, -0.3322880268096924, 0.18002356588840485, 0.8492827415466309, 0.2870141565799713, -0.2496202439069...
In using my unit tests to validate that I haven't broken anything I'm also implicitly verifying that my API contract hasn't changed. It seems like a natural usage of unit tests to deploy them in the fashion you're talking about.
[ 0.6863056421279907, 0.319820374250412, 0.1959044635295868, -0.04114222526550293, 0.2087845802307129, -0.2160262167453766, 0.336635559797287, -0.18448583781719208, -0.09796178340911865, -0.22594353556632996, 0.40254151821136475, 0.5000365972518921, -0.03448072075843811, -0.15393361449241638...
I've got a UINavigationController and i've changed it to white using the Tint property of the navigation bar in Interface Builder. But the text in buttons and the title is still the default color, white, and so gets lost against the white background. Anyone know how to work around this? As of iOS 5 this it much easier,...
[ 0.02733488939702511, -0.15001238882541656, 0.5134468674659729, -0.24340735375881195, -0.043759506195783615, 0.30155181884765625, 0.3912771940231323, 0.21102021634578705, -0.11549554020166397, -0.9409788846969604, 0.13865037262439728, 0.4430144727230072, -0.14709123969078064, 0.246592313051...
UITextAttributeTextColor, [UIColor clearColor], UITextAttributeTextShadowColor, nil]; [[UIBarButtonItem appearance] setTitleTextAttributes: attributes
[ 0.02172192558646202, -0.13350938260555267, 0.4944208562374115, 0.24939066171646118, -0.24436916410923004, 0.04970622807741165, -0.19513671100139618, -0.06872802972793579, 0.002637373050674796, -0.695146381855011, -0.3499765694141388, 0.41614022850990295, -0.23925384879112244, -0.3398719131...
forState: UIControlStateNormal]; ``` Set this in application:didFinishLaunchingWithOptions:
[ 0.011355877853929996, 0.1503017544746399, 0.5484426021575928, -0.27198222279548645, -0.007261475082486868, -0.27282458543777466, 0.15080700814723969, -0.19360573589801788, 0.10597366094589233, -0.28706786036491394, -0.18367981910705566, 0.7629039287567139, 0.06277982890605927, -0.192943304...
I'm trying to generate a vector graphic from an area in a bitmap image, and while my current algorithm works for most cases it has some problems and it is quite slow. So I was wondering if you people know of any simple algorithms or code examples of how to do this efficiently. My situation is simple. I have a bitma...
[ 0.2510826587677002, -0.042085278779268265, 0.5244935154914856, 0.12765879929065704, -0.08410406857728958, 0.3281981945037842, -0.3706180453300476, 0.09201550483703613, -0.39377719163894653, -1.040465235710144, 0.17991095781326294, 0.27286893129348755, -0.21075738966464996, 0.11537771672010...
they are always of one color (the same RGB value for all pixels) so it is quite easy to determine the outline, but doing efficiently is harder. EDIT: I pressed the submit button too soon... Ideally I would like a solution working in .NET, but pseudo code should also work well. Maybe you folks know of some good resour...
[ 0.4546069800853729, -0.01312666479498148, 0.4164717495441437, 0.2395055741071701, -0.18802510201931, 0.07885980606079102, -0.22621464729309082, -0.1046566590666771, -0.26415979862213135, -0.8894447684288025, 0.05577106028795242, 0.2095768004655838, -0.30217185616493225, 0.06746736913919449...
run an algorithm for connected component labeling. The [wikipedia article](http://en.wikipedia.org/wiki/Connected_Component_Labeling) is just OK as a start, though I won't know why they concentrate on multi-pass algorithms, one pass works easily enough. While you discover the connected components, you'll have to mainta...
[ 0.4166688919067383, -0.0688759982585907, 0.31837254762649536, 0.31168442964553833, -0.23936159908771515, -0.06235821917653084, -0.009253265336155891, -0.25470754504203796, -0.3025171160697937, -0.600295901298523, 0.13292331993579865, 0.2881793975830078, -0.2915424406528473, -0.094842903316...
From MSDN: *[DeflateStream Class](http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream.aspx)* DeflateStream cannot be used to compress files larger than 4 GB. Are there any other implementations for .NET without the 4 GB limit? NOTE: I really need to decompress a file in GZ format with content...
[ 0.05424881726503372, -0.26705843210220337, 0.5256861448287964, 0.11095515638589859, -0.2016378492116928, -0.12276598066091537, 0.2764562666416168, -0.19190488755702972, -0.3655845820903778, -0.34709617495536804, -0.016479380428791046, 0.675961434841156, -0.09178697317838669, 0.029381658881...
There are quite a few Sqlite GUI applications listed here: <http://www.sqlite.org/cvstrac/wiki?p=ManagementTools> some appear to be incomplete, buggy, not maintained, etc. Do you have any recommendations? I use the [SQLite manager plugin for Firefox](https://addons.mozilla.org/en-US/firefox/addon/5817). It seems pre...
[ 0.1771591752767563, 0.2439383715391159, 0.2887210249900818, -0.07966218143701553, -0.006591740995645523, -0.20210398733615875, 0.18174588680267334, 0.3105570077896118, -0.23489969968795776, -0.6156994700431824, 0.19449806213378906, 0.7924816608428955, -0.3017408847808838, -0.11402928829193...
Is it possible to run some code when an assembly is loaded, without doing anything specific in the loading code? What I am looking for is like a static constructor on a type. Eg: Assembly A does not know about Assembly B, but B does know about A. Assembly A needs to know certain things about B if B is loaded. When As...
[ 0.3734574317932129, 0.08446899801492691, -0.17203845083713531, 0.09299877285957336, -0.052668116986751556, -0.289367139339447, 0.2031358778476715, 0.003691972466185689, -0.1705787628889084, -0.3483686149120331, -0.059505823999643326, 0.4924599528312683, -0.46057912707328796, 0.214314952492...
when serializing a type in A that contains types from B not known at compile time as interfaces are used. The CLR supports [module initializers](http://blogs.msdn.com/junfeng/archive/2005/11/19/494914.aspx). You'd have to hack C++/CLI code or ilasm.exe to use them. UPDATE: directly supported in C# as well since .NET 5...
[ 0.009659862145781517, -0.09990508109331131, 0.7992554306983948, -0.014655332081019878, 0.06324601173400879, -0.2677418887615204, 0.08166027814149857, -0.208211287856102, -0.5063586235046387, -0.2092505693435669, -0.41377946734428406, 0.7551944851875305, -0.5100933313369751, 0.0339206010103...
it seems common issue so I am surprised I didn't find solution already, maybe someone can help me out. I have a gridview that displays list of users of the app, this list is very big, and takes forever to load the data. Otherwise, data is paged through and once loaded everything goes fine. To help admins, I made search...
[ 0.3216342628002167, -0.14357887208461761, 0.40350258350372314, 0.28544923663139343, -0.031488265842199326, -0.11120443791151047, 0.19420424103736877, 0.18074437975883484, -0.4733430743217468, -0.9025309085845947, 0.2718137800693512, 0.5069593191146851, -0.05429547652602196, 0.1273366659879...
missing or I am doing something else wrong. Thank you in advance for suggestions. Zeljko you're going to have to do your own custom paging. Depending on your datasource you have to pass the PageIndex and size, to only get the pages results to be returned. Ive used this run through before: <https://web.archive.org/we...
[ 0.5369150042533875, 0.18826976418495178, 0.16965216398239136, 0.1936970353126526, 0.20053741335868835, -0.0843452513217926, 0.39619800448417664, 0.0010392845142632723, -0.5721466541290283, -0.17275403439998627, 0.041442349553108215, 0.26573777198791504, -0.4969276189804077, 0.4395199418067...
Question says it all No. The global assembly cache is a repository for assemblies installed on the given machine, that is, its machine based, not user based.
[ 0.3189924657344818, 0.07975710928440094, -0.1886734664440155, 0.2774079740047455, 0.1752655804157257, 0.2754444479942322, 0.014936110936105251, -0.16243115067481995, -0.21180160343647003, -0.30850112438201904, 0.05245441570878029, 0.06122221052646637, -0.03470595180988312, 0.32058775424957...
I received the following error while trying to login to a secured directory. As far as I know there are no large hashtables in use. The user login information is in the web.config file. Notice this is happening in .NET 2.0. I've searched and found references to this occurring in .net 1.0 or 1.1 environments but I haven...
[ 0.17504733800888062, 0.19330745935440063, 0.04293745011091232, 0.003692450001835823, 0.011794657446444035, -0.12732036411762238, 0.8341267108917236, 0.4953280985355377, -0.34302079677581787, -0.7458738088607788, 0.2361992746591568, 0.40148618817329407, -0.4611239731311798, 0.36444193124771...
happened. Here is the entire error page as shown: > Server Error in '/' Application. > > > Hashtable insert failed. Load factor > too high. > > > Description: An unhandled exception > occurred during the execution of the > current web request. Please review the > stack trace for more information about > the ...
[ -0.1280825138092041, 0.29337412118911743, 0.2911894917488098, -0.03142768517136574, 0.011125468648970127, -0.06487955898046494, 0.6987844705581665, -0.22326703369617462, -0.20235773921012878, -0.6513668894767761, 0.0598231665790081, 0.28380724787712097, -0.31029799580574036, 0.320280671119...
regarding the > origin and location of the exception > can be identified using the exception > stack trace below. > > > Stack Trace: > > > [InvalidOperationException: Hashtable > insert failed. Load factor too high.] > System.Collections.Hashtable.Insert(Object > key, Object nvalue, Boolean add) > +2903977...
[ -0.2431768923997879, 0.009734105318784714, 0.4391385316848755, 0.07144224643707275, -0.2012571394443512, 0.21242618560791016, 0.2527720630168915, -0.5685539841651917, -0.3045584559440613, -0.316096693277359, -0.23694096505641937, 0.2467217892408371, -0.2715356647968292, 0.2564350962638855,...
> > System.Web.UI.Control.InitRecursive(Control > namingContainer) +198 > > System.Web.UI.Control.InitRecursive(Control > namingContainer) +198 > > System.Web.UI.Control.InitRecursive(Control > namingContainer) +198 > > System.Web.UI.Page.ProcessRequestMain(Boolean > includeStagesBeforeAsyncPoint, Boo...
[ -0.2858804166316986, 0.1676347404718399, 0.3228794038295746, -0.18373557925224304, 0.1745784729719162, -0.005555836483836174, 0.1053631380200386, -0.32785576581954956, -0.11667423695325851, -0.5741851925849915, -0.261016845703125, 0.3619172275066376, -0.29236656427383423, 0.398236423730850...
I have a LabVIEW application that I inherited that has a bunch of sub-VIs. In the course of cleaning it up I've discovered some of the included VIs are not used. I know I can use the VI Hierarchy to see every VI included as icons but this isn't that useful for comparing against a directory listing. Is there a(n easy) w...
[ 0.6499871611595154, -0.04698626697063446, 0.2616986632347107, 0.10169795900583267, 0.1813155561685562, -0.063997283577919, 0.18673615157604218, -0.06103549152612686, -0.36810052394866943, -0.6578897833824158, 0.12786993384361267, 0.343471497297287, -0.23959489166736603, 0.6965970396995544,...
just want to see the list (and have the application builder or the professional development system), choose Tools>Build Application and click the VI Settings tab. Neither of these methods will tell you about dynamically loaded VIs, but you can check whether any of these are being used with Edit>Find>Objects and search...
[ 0.4452771246433258, -0.28545743227005005, 0.3779985308647156, 0.40506693720817566, -0.12868519127368927, -0.2104007452726364, 0.3033103048801422, -0.027332501485943794, -0.042279522866010666, -0.916251540184021, 0.059508953243494034, 0.8693493604660034, -0.08674652129411697, 0.138696268200...
How does URL rewriting affect the `$_GET` parameter for PHP? Say I have a URL like `http://example.com/index.php?p=contact` and I use `$_GET['p']` to tell `index.php` to serve the contact page. If I use a rewrite rule that converts the URL to `http://example.com/contact`, will `$_GET['p']` still work as expected? If ...
[ 0.31749510765075684, 0.2455688863992691, 0.54901123046875, -0.021595565602183342, 0.007017006631940603, 0.10294058918952942, 0.13959915935993195, -0.06439504027366638, -0.11328191310167313, -0.4244266748428345, 0.06813925504684448, 0.636164128780365, -0.19273848831653595, -0.02274818532168...
> Write a program that sums the sequence > of integers as well as the smallest in > the sequence. Assume that the first > integer read with scanf specifies the > number of values remaining to be > entered. For example the sequence > entered: > > > Input: 5 100 350 400 550 678 > > > Output: The sum of the sequ...
[ -0.24080632627010345, 0.18583308160305023, 0.570035994052887, -0.15349425375461578, -0.009144061245024204, 0.1933659315109253, 0.23670965433120728, -0.44474494457244873, -0.14944909512996674, -0.7064653038978577, 0.052906520664691925, 0.35837769508361816, -0.18051524460315704, -0.017557300...
at this, Isnt 5 the smallest integer? I have no idea how to write this program. Appreciate any help First thing, the 5 is not considered part of the list, it's the count for the list. Hence it shouldn't be included in the calculations. Since this is homework, here's the pseudo-code. Your job is to understand the pseud...
[ 0.3043997287750244, 0.3223288953304291, 0.1675681620836258, -0.05931083858013153, -0.18152791261672974, 0.1703648567199707, 0.14447563886642456, -0.4719752073287964, -0.2528339922428131, -0.4190160036087036, 0.05580602213740349, 0.6144706010818481, 0.0017774061998352408, -0.049291394650936...
3) as a good start point since it's small and the sum will be 10, smallest 3. If you've tried to do that for more than a day, then post your code into this question as an edit and we'll see what we can do to help you out. ``` get a number into quantity set sum to zero loop varying index from 1 to quantity get a n...
[ 0.28030136227607727, 0.03451438620686531, 0.4904828369617462, -0.08958756923675537, -0.222317174077034, 0.005376135930418968, 0.25289735198020935, -0.7731139063835144, -0.2005012333393097, -0.5210219025611877, 0.10250569134950638, 0.4988235831260681, -0.39258596301078796, 0.079745247960090...
if value is less than smallest set smallest to value endif endif endloop output "The sum of the sequence of integers is: ", sum output "The smallest of the integers entered is: ", smallest ``` Stack Overflow seems to be divided into three camps, those that will just give you the code, those th...
[ -0.1074134111404419, 0.3391266167163849, 0.3032709062099457, -0.25400176644325256, -0.005516300909221172, 0.015195897780358791, 0.20805704593658447, -0.5221548676490784, -0.1857113391160965, -0.2373114675283432, -0.2002233862876892, 0.24713337421417236, -0.09770972281694412, 0.066827468574...
you hit the workforce, I hope to be retired so you won't be competing with *me* :-). And before anyone picks holes in my algorithm, this is for *education*. I've left at least one gotcha in it to help train the guy - there may be others and I *will* claim I put them there intentionally to test him :-). --- *Update:*...
[ 0.39175835251808167, 0.19254478812217712, -0.0021722966339439154, 0.17717428505420685, 0.17207646369934082, -0.16066882014274597, 0.3690798878669739, 0.1683397889137268, -0.2244604080915451, -0.7739248275756836, 0.08399160206317902, 0.5648654699325562, 0.3007909655570984, -0.41817191243171...
solution: ``` #include <stdio.h> int main (int argCount, char *argVal[]) { int i; // General purpose counter. int smallNum; // Holds the smallest number. int numSum; // Holds the sum of all numbers. int currentNum; // Holds the current number. int numCount; // H...
[ -0.1263669729232788, -0.042294882237911224, 0.47620368003845215, -0.24707789719104767, 0.25702422857284546, 0.3157922625541687, 0.3115370571613312, -0.43064558506011963, -0.23644456267356873, -0.2669602334499359, -0.3922865390777588, 0.40959200263023376, -0.27155864238739014, 0.19106115400...
// Get count of numbers and make sure it's in range 1 through 50. printf ("How many numbers will be entered (max 50)? "); scanf ("%d", &numCount); if ((numCount < 1) || (numCount > 50)) { printf ("Invalid count of %d.\n", numCount); return 1; } printf("\nEnter %d numbers then press ...
[ -0.16405676305294037, -0.1374368816614151, 0.16547228395938873, -0.35054975748062134, 0.3070322275161743, 0.38055264949798584, 0.19115443527698517, -0.5061352849006653, -0.0735313668847084, -0.5282338857650757, -0.35865670442581177, 0.5154938697814941, -0.13849495351314545, -0.041000965982...
numbers will be added to this. numSum = 0; // Loop, getting and processing all numbers. for (i = 0; i < numCount; i++) { // Get the number. printf("%2d> ", i+1); scanf("%d", &currentNum); // Add the number to sum. numSum += currentNum; // First number ...
[ 0.01642734557390213, -0.20191021263599396, 0.5080229640007019, -0.3130817413330078, 0.05059995874762535, 0.19335263967514038, 0.10480596125125885, -0.550621747970581, -0.14883825182914734, -0.45931828022003174, -0.2235518991947174, 0.15093278884887695, -0.36972498893737793, 0.1954105049371...
lowest. if (i == 0) { smallNum = currentNum; } else { // Replace if current is smaller. if (currentNum < smallNum) { smallNum = currentNum; }
[ -0.6012392044067383, -0.37916383147239685, 0.5782886743545532, -0.19934311509132385, 0.46140989661216736, -0.13276053965091705, -0.07911310344934464, -0.1390010267496109, -0.3001384735107422, -0.5069451332092285, 0.0452997051179409, 0.24345482885837555, -0.1273064762353897, 0.2922337949275...
} } // Output results. printf ("The sum of the numbers is: %d\n", numSum); printf ("The smallest number is: %d\n", smallNum); return 0; } ``` And here is the output from your sample data: ``` pax> ./qq How many numbers will be entered (max 50)? 5 Enter 5 numbers then press enter after each...
[ -0.11402072012424469, 0.06872161477804184, 0.4206012785434723, -0.30186694860458374, 0.357111394405365, 0.5725893378257751, 0.18453244864940643, -0.5259940028190613, -0.2508118152618408, -0.39021193981170654, -0.08037244528532028, 0.4314684569835663, -0.16447249054908752, -0.01480362191796...
be entered (max 50)? 5 Enter 5 numbers then press enter after each entry: 1> 40 2> 67 3> 9 4> 13 5> 98 The sum of the numbers is: 227 The smallest number is: 9 pax> ./qq How many numbers will be entered (max 50)? 0 Invalid count of 0. [fury]$ ./qq How many numbers will be entered (max 50)? 51 Invalid count o...
[ 0.17011389136314392, 0.32780754566192627, 0.5595958828926086, -0.05375818535685539, 0.11306527256965637, 0.33864298462867737, 0.4644593298435211, -0.4758976101875305, -0.15677472949028015, -0.6586123108863831, 0.043160706758499146, 0.2795102000236511, 0.09988272935152054, 0.069112807512283...
I am storing a JSON string in the database that represents a set of properties. In the code behind, I export it and use it for some custom logic. Essentially, I am using it only as a storage mechanism. I understand XML is better suited for this, but I read that JSON is faster and preferred. Is it a good practice to us...
[ 0.38377419114112854, 0.2509681284427643, -0.0425446555018425, 0.12495546787977219, -0.06941941380500793, -0.3639895021915436, -0.09017264097929001, 0.15753355622291565, -0.16649730503559113, -0.5689189434051514, -0.14879539608955383, 0.6182785034179688, -0.22241437435150146, -0.03242914006...
to use it for the same reason someone would use XML as long as you understand and are OK with its limitations.
[ 0.402332067489624, 0.0029883102979511023, -0.05137288197875023, 0.3312109708786011, -0.1410122662782669, -0.5562810301780701, -0.004771415609866381, 0.22054164111614227, -0.08477974683046341, -0.5722643733024597, -0.08442912250757217, 0.2382018268108368, -0.06008528918027878, -0.1403193324...
I have an unusual idea to use git as a backup system. So let's say I have a directory ./backup/myfiles and I want to back that up using git. To keep things clean I don't want to have a .git directory in the myfiles folder, so I thought I could create ./backup/git\_repos/myfiles. From looking at the git docs, I've tried...
[ 0.21016883850097656, 0.3252847492694855, 0.21238791942596436, -0.1587243378162384, 0.08186952024698257, -0.14167101681232452, 0.4523451328277588, -0.03831961750984192, -0.37243664264678955, -0.5394585728645325, 0.02252572402358055, 0.8175987601280212, -0.27977702021598816, 0.14369122684001...
add foo ``` This will do what you want but will obviously suck when you have to specify it with every git command you ever use. You can export `GIT_WORK_TREE=.` and `GIT_DIR=../backup` and Git will pick them up on each command. That will only comfortably allow you to work in a single repository per shell, though. I...
[ 0.42535391449928284, 0.32290560007095337, 0.24114631116390228, -0.2420097291469574, -0.02358916774392128, 0.01645667850971222, -0.08836984634399414, 0.0891197919845581, -0.086363784968853, -0.4432676136493683, -0.00792089942842722, 0.8884945511817932, -0.5394114255905151, -0.02867333963513...
I am using this code where I am invoking the `run` method of a List of classes that I loaded dynamically from dlls: ``` for (int i = 0; i < robotList.Count; i++) { Type t = robotList[i]; //robotList is a List<Type> object o = Activator.CreateInstance(t); t.InvokeMember("run", BindingFlags.Default | Binding...
[ 0.1884278506040573, -0.22188891470432281, 0.6285324096679688, -0.13222701847553253, 0.026248913258314133, -0.028048984706401825, 0.4875026047229767, -0.4127907454967499, -0.22851048409938812, -0.629973828792572, -0.20329390466213226, 0.6780472993850708, -0.5566913485527039, 0.2571577727794...
know that all your dynamically loaded types implement Run, could you just require they all implement IRunable and get rid of the reflection part? ``` Type t = robotList[i]; IRunable o = Activator.CreateInstance(t) as IRunable; if (o != null) { o.Run(); //do this in another thread of course, see below } ``` If no...
[ 0.23963122069835663, -0.4708852469921112, 0.567997932434082, -0.17105399072170258, -0.11762744933366776, -0.034709103405475616, 0.597327470779419, -0.4104606509208679, -0.2773241400718689, -0.39203912019729614, -0.08136667311191559, 0.6591850519180298, -0.7431920766830444, 0.23495344817638...
}); thread.Start(); } ```
[ -0.0713450238108635, -0.06777766346931458, 0.3545648455619812, -0.5571792721748352, 0.4018533229827881, -0.30481648445129395, 0.4000021815299988, 0.08934377878904343, -0.08213648945093155, -0.4900469481945038, -0.38176146149635315, 0.6406055688858032, -0.47200173139572144, 0.59315884113311...
It looks like there is a bug in jQuery UI Dialog where there closeOnEscape doesn't work properly, such that escape will still close the dialog. One possible solution is to unbind the keydown on the overlay, but this doesn't seem to work. Is there another solution that works? Here is the link for bug and fix for 1.6, ...
[ -0.1803911030292511, -0.23625163733959198, 0.5264857411384583, 0.3410159647464752, 0.04317082092165947, -0.17279884219169617, 0.40420427918434143, -0.2203461229801178, -0.29235899448394775, -0.8209282755851746, -0.039002660661935806, 0.5600201487541199, -0.4740257263183594, -0.004166178405...
How did you get ASP.NET to output UTF-16 encoded text? I serialize an object in .NET which by default is UTF-16 format. Now I want to send the string as an output response to an .ashx request. I get the error: Switch from current encoding to specified encoding not supported. Error processing resource How do I tell m...
[ 0.3209678828716278, -0.07072363048791885, 0.22767862677574158, 0.16958366334438324, -0.4352257549762726, 0.1379294991493225, 0.504243791103363, -0.09636455774307251, -0.36105939745903015, -0.7120426893234253, -0.35206177830696106, 0.3752053380012512, -0.4809538722038269, -0.039892353117465...
stick to an encoding that is a superset of ASCII - the obvious choice being UTF-8. The error you quote is generally what you get when you try to read an XML file whose <?xml encoding="..."?> prolog clashes with the real encoding of the file. None of the superset-of-ASCII encodings ever clash because 'xml encoding' is ...
[ 0.5444582104682922, 0.13828259706497192, 0.12977606058120728, 0.07837782055139542, 0.1519322693347931, -0.16918537020683289, 0.38228511810302734, 0.013863458298146725, -0.349239319562912, -0.7035384774208069, -0.37659382820129395, 0.44896477460861206, -0.45666614174842834, -0.1660124063491...
Because ZF depends on mod rewrite for all it's URLs, it's not immediately apparent to me where I should store local scripts for use with a cron job. Does anyone have any recommendations, or is there an "officially accepted" way? I use the [Modular Directory Structure](http://framework.zend.com/manual/en/zend.controll...
[ 0.34639668464660645, 0.3489628732204437, 0.3266279399394989, -0.24284778535366058, -0.19868846237659454, -0.11842832714319229, 0.06756895780563354, -0.1651599109172821, -0.18139299750328064, -0.6912240386009216, -0.052213333547115326, 0.6778557300567627, -0.1020430251955986, -0.00820932071...
to access resources from Zend Framework as well as from the actual web application.
[ 0.29387784004211426, 0.02337891235947609, -0.08775315433740616, 0.2868254482746124, -0.00004150243694311939, -0.3264195919036865, 0.2756577432155609, -0.10300691425800323, 0.03135107085108757, -0.6768859624862671, -0.30632632970809937, 0.4144131541252136, 0.3986976742744446, -0.04748577252...
I have a script which combines a number of files into one, and it breaks when one of the files has UTF8 encoding. I figure that I should be using the `utf8_decode()` function when reading the files, but I don't know how to tell which need decoding. My code is basically: ``` $output = ''; foreach ($files as $filename)...
[ 0.2836083173751831, 0.14288657903671265, 0.3161296844482422, -0.4028216600418091, -0.13474135100841522, 0.14328129589557648, 0.31998538970947266, -0.04413221403956413, -0.0636119470000267, -0.8851439952850342, -0.1540796458721161, 0.3681272566318512, -0.319356769323349, 0.12413989752531052...
then convert it as desired. As [brulak suggested](https://stackoverflow.com/questions/505562/detect-file-encoding-in-php#answer-505582), however, you're probably better off converting *to* UTF-8 rather than *from*, to preserve the data you're transmitting.
[ 0.18656252324581146, -0.1524081826210022, 0.0817083865404129, -0.09723877161741257, -0.18573087453842163, -0.14923059940338135, 0.17323076725006104, 0.010334432125091553, -0.08125224709510803, -0.6842723488807678, -0.48730599880218506, 0.40023699402809143, -0.1533280611038208, 0.0511842593...
How do I get `System.Windows.ShowDialog()` to return 'true'? I am a little new to this. `System.Windows.ShowDialog`'s return type is `bool`? It is supposed to return `true` when you hit `Submit`, and `false` when you hit `Cancel`. But I am not sure how to designate which `Button` is the official submit button. EDIT:...
[ 0.4345150887966156, -0.1024709939956665, 0.730053722858429, -0.06228793412446976, -0.01068619079887867, -0.370818167924881, 0.273911714553833, -0.18834708631038666, -0.03998904675245285, -0.3892699182033539, -0.2117190659046173, 0.5507236123085022, -0.2173909693956375, 0.054674260318279266...
value of the DialogResult, not by hitting a particular button -- you decide what the button does.
[ 0.10032492876052856, -0.019611680880188942, 0.6662368774414062, 0.35317543148994446, 0.06712274998426437, 0.15726028382778168, -0.26258745789527893, -0.3840978145599365, -0.022930435836315155, -0.2252483367919922, 0.2058190256357193, 0.6544464826583862, -0.02200648933649063, -0.09264943748...
In a visual studio 2008 project, how can one structure his controllers to accessible in the following directive? <http://localhost/MyWebsite/api/users/get/1> Both /api/ and /users/ are controllers "get" being a method of "users" with 1 as the parameter Essentially I am talking about achieving REST i would assume. A...
[ -0.09150806069374084, -0.3654545247554779, 0.3686170279979706, 0.25457483530044556, -0.05889813229441643, -0.3183705508708954, -0.19543048739433289, -0.5882534384727478, -0.42304694652557373, -0.5142421722412109, -0.3475348949432373, 0.11541508883237839, -0.52193284034729, 0.05749125406146...
value of the DialogResult, not by hitting a particular button -- you decide what the button does.
[ 0.10032492876052856, -0.019611680880188942, 0.6662368774414062, 0.35317543148994446, 0.06712274998426437, 0.15726028382778168, -0.26258745789527893, -0.3840978145599365, -0.022930435836315155, -0.2252483367919922, 0.2058190256357193, 0.6544464826583862, -0.02200648933649063, -0.09264943748...
Sorry for the poor title here :) I have my WSS configured for Forms Authentication. I'd like my users to land on the WSS login page, log in, and then provide them links to other ASP.NET apps which also are configured for forms authentication. I'd like to achieve a single-signon-ish solution (the reason I say "ish" is ...
[ 0.34029853343963623, 0.043443746864795685, 0.592739999294281, -0.007530407514423132, 0.051437586545944214, -0.45239824056625366, 0.2644346356391907, -0.06296682357788086, -0.2815021872520447, -0.5578486919403076, -0.19422504305839539, 0.10715394467115402, -0.24555259943008423, -0.100600451...
auth apps I want to provide the links to. Does this require code on the WSS side, or can I make this happen non-programmatically on the ASP.NET/IIS configuration side? Thanks Hi Ric thanks for the response. I think I found my answer. Forms authentication is all about the cookie, so if I configure both the ASP.NET web...
[ 0.5897865295410156, 0.05913834273815155, 0.42162325978279114, 0.17964163422584534, -0.29843080043792725, -0.22606712579727173, 0.27743443846702576, -0.030787767842411995, -0.15735161304473877, -0.7422454357147217, -0.030821923166513443, 0.660355806350708, 0.1332179754972458, -0.21520958840...
Preferably from Ubuntu repositories. Others have mentioned [OProfile](http://oprofile.sourceforge.net/); for full-system statistical profiling on modern Linux installations, it does indeed rock. The more venerable tool (which doesn't require kernel support and thus will work under older versions of Linux or even non-L...
[ -0.04874121770262718, 0.28869685530662537, 0.2335008829832077, 0.022686686366796494, 0.05636945366859436, -0.4368862211704254, -0.16636283695697784, -0.13169242441654205, -0.407610148191452, -0.38006097078323364, -0.19229617714881897, 0.4379178583621979, -0.25633639097213745, 0.00053093826...
How to change the background color of UL 'li' on click? EDIT i can change li "a" but what about the entire **li** this works: ``` $(".clickableUL").click(function() { $(this).find("li a").addClass("active"); }); ``` but find("li") does nothing. I want the LI highlighted not just the text of the...
[ -0.08681772649288177, -0.13897080719470978, 0.6740579009056091, -0.44278430938720703, -0.0997207835316658, 0.33135154843330383, 0.17094430327415466, -0.16224652528762817, -0.13476626574993134, -0.8732843399047852, -0.14524173736572266, 0.6393200159072876, -0.734902024269104, 0.101079270243...
the click event directly to the `<li>` itself eg. ``` $("li").click(function(){ $(this).toggleClass("clicked"); }); ```
[ -0.29153355956077576, -0.11869797855615616, 0.6737358570098877, -0.38770589232444763, 0.27187007665634155, -0.10912114381790161, 0.1776954084634781, -0.06439660489559174, 0.13771994411945343, -0.4578705430030823, -0.42451363801956177, 0.726884663105011, -0.5419844388961792, 0.2501583397388...
[Scala Mixins](http://www.scala-lang.org/node/117) No, but it can be faked to varying degrees with templates: ``` template<typename AbsIterator> class RichIterator : public AbsIterator { public: template<typename FuncType> void foreach(FuncType f) { while( hasNext() ) f( next() ); } }; class StringIterator { ...
[ 0.3011838495731354, -0.379599928855896, 0.5907949209213257, -0.3053723871707916, 0.21573953330516815, 0.24166570603847504, 0.4699532091617584, -0.4945394694805145, -0.40093374252319336, -0.335449755191803, -0.27439191937446594, 0.565186619758606, -0.5854659676551819, 0.02284497395157814, ...
// gets way more complicated StringIterator(const std::string &s) : m_s(s), i(0) {} void swap(StringIterator& other) { m_s.swap(other.m_s); std::swap(i, other.i); } void reset_str(const std::string& s) { StringIterator(s).swap(*this); } bool hasNext() { return i < m_s.length(); } char next(...
[ 0.07319965958595276, -0.1579703688621521, 0.47064000368118286, -0.38850000500679016, 0.2934660017490387, 0.19922764599323273, 0.3701855540275574, -0.5502092242240906, -0.437899112701416, -0.5230024456977844, -0.4804263412952423, 0.505456805229187, -0.25883978605270386, 0.0705694705247879, ...
std::cout << o << std::endl; } int main(int argc, char **argv) { typedef RichIterator<StringIterator> Iter; Iter iter; iter.reset_str(argv[1]); iter.foreach(&println<Iter::T>); } ``` To be totally honest, I've haven't tested this by compiling it, but you should get the idea.
[ -0.12714962661266327, 0.07207777351140976, 0.2596738934516907, -0.36991894245147705, 0.07984679937362671, 0.02311050333082676, 0.2931751608848572, 0.07515912503004074, -0.21490950882434845, -0.5018712282180786, -0.2672813832759857, 0.5460854172706604, -0.5205278396606445, 0.127411574125289...
Most websites use `-` (like Stack Overflow) but most PHP frameworks generate `+` encoded URLs. So, what is the best for SEO? Use `+` or `-` as separators? A plus is the simplified encoding for a space (used if %20 is not used, though both are equally valid). The '-' has no special meaning in URL encoding and will be d...
[ 0.05225687846541405, 0.2148008942604065, 0.4676162898540497, 0.07866060733795166, -0.29923757910728455, -0.3991052806377411, 0.22683055698871613, 0.04189489036798477, -0.037457481026649475, -0.6401678323745728, -0.5238381028175354, 0.2501292824745178, -0.1601017713546753, -0.16992411017417...
directly answer the question, neither is better or worse for SEO.
[ 0.036779049783945084, 0.14864088594913483, 0.09277724474668503, 0.04962117224931717, -0.6596545577049255, -0.32044824957847595, 0.38236138224601746, 0.05535079538822174, 0.16654781997203827, -0.2929641604423523, -0.34832850098609924, 0.3022937476634979, 0.01677212119102478, -0.765602827072...
I'm trying to make a crossplatform C# application using C#, mono/GTK# on Linux and .NET/GTK# on Windows, however the startup sequence seems to need to be slightly different under the two platforms: Under Linux: ``` public static void Main (string[] args) { Gdk.Threads.Init (); // etc... ``` Under Windows: ...
[ 0.39700087904930115, 0.140127032995224, 0.5377100706100464, -0.41025102138519287, 0.11797793954610825, -0.13519392907619476, 0.30777493119239807, -0.02176293358206749, -0.04092741012573242, -0.8655262589454651, -0.12183425575494766, 0.5272325277328491, -0.6402050852775574, 0.32682991027832...
than this, it all works wonderfully. My first attempt at a "solution" looked like: ``` public static void Main (string[] args) { try { Gdk.Threads.Init (); } catch (Exception) { GLib.Thread.Init (); Gdk.Threads.Init (); } // etc... ``` But even this messy solution doesn't wor...
[ 0.0039618853479623795, -0.026527371257543564, 0.2264295220375061, 0.1532115787267685, 0.20382116734981537, -0.26026636362075806, 0.45132389664649963, 0.0028868033550679684, -0.3443811535835266, -0.582071840763092, -0.17647765576839447, 0.37892571091651917, -0.6864258646965027, 0.3623790144...
fix it? Or, failing that, have bright ideas on how to detect which one should be called at runtime? Gtk+ on Win32 does not properly support threading. You need to do all your GUI calls from the same thread as you did called Gtk.Main(). It's not actually as bad as it sounds. There's a trick you can use to dispatch fun...
[ 0.01670803688466549, -0.09159315377473831, 0.05277382209897041, 0.17518003284931183, -0.06978587806224823, 0.013031111098825932, 0.3793840706348419, 0.23239925503730774, -0.11686847358942032, -0.5699394941329956, -0.10458139330148697, 0.9792699217796326, -0.8439682126045227, -0.12818142771...
will go on running forever. If you follow and use the above techniques you don't even need to call Gdk.Threads.Init() at all.
[ 0.5244550108909607, -0.32389014959335327, 0.3613518178462982, 0.4618549644947052, 0.13387681543827057, -0.3547576069831848, 0.5403838753700256, 0.2532254755496979, -0.26721706986427307, -0.3773491382598877, 0.07937924563884735, 0.3104945719242096, -0.14227142930030823, 0.1460416316986084, ...
When using ADO.Net Data Services client to refresh an entity by calling the `LoadProperty`: ``` ctx.BeginLoadProperty(this, "Owner", (IAsyncResult ar) => ... ``` It throws an error on the server if the property is `null` > Error: Exception Thrown: System.Data.Services.DataServiceException: > Resource not found for...
[ -0.13787180185317993, 0.06434350460767746, 0.36881545186042786, -0.15962478518486023, -0.07702255249023438, 0.08756238967180252, 0.31024158000946045, -0.6058432459831238, -0.20993652939796448, -0.6078407168388367, -0.12731581926345825, 0.42758089303970337, -0.4159311056137085, 0.5983846783...
`Vehicle` to a `Customer`. Any ideas what's wrong? Thanks Querying on primary keys generate an exception when the key does not exist. The workaround is to add a dummy true expression in the condition (eg : 1==1 && item.Id == XXX). Without the dummy expression the ADO.NET request is: > http: //localhost//test.svc/Ro...
[ 0.1335633099079132, -0.07360579818487167, 0.5384595990180969, -0.013503803871572018, 0.06464073807001114, 0.35801637172698975, 0.3872448801994324, -0.305481880903244, 0.19396868348121643, -0.29302048683166504, -0.06311751902103424, 0.7032665014266968, -0.042177148163318634, -0.026181822642...
There are lots of IDEs for PHP development, but I'm curious about all the OTHER brilliant little tools and apps and websites that people use every day to make PHP development a little easier. I have a whole list of tools that I can't live without: * **Eclipse with PHP Development Tools (or Zend Studio for Eclipse)** -...
[ 0.5598993897438049, 0.13685102760791779, 0.06451977789402008, 0.21378353238105774, -0.4533812701702118, -0.10290446877479553, 0.1158609539270401, -0.046701107174158096, -0.31013619899749756, -0.7722830176353455, 0.25526148080825806, 0.7162044048309326, 0.07186748087406158, -0.0407522842288...
with syntax highlighting and tabs. I use this for quick edits and editing huge text files that slow down eclipse. * **Filezilla** - If you're on Windows, then I suggest Filezilla as the FTP application of choice. It works great, is relatively fast, and is free. * **PuTTY** - You'll need to SSH into remote servers some ...
[ 0.42300650477409363, -0.10066056996583939, 0.4271654188632965, 0.18724216520786285, -0.30169183015823364, -0.088040791451931, 0.14353984594345093, 0.47636088728904724, -0.37948665022850037, -1.0271635055541992, -0.2549336552619934, 0.5812829732894897, -0.16567277908325195, -0.0803771540522...
front end debugging tool. I cannot count the number of times Firebug has helped me decipher problems with my code or a legacy system that I'm working on. * **FirePHP** - Another great tool. This one hooks into Firebug and allows you to utiliize a server side PHP library to generate custom headers that will be output as...
[ 0.35309872031211853, 0.04349038377404213, 0.14847074449062347, 0.24985378980636597, -0.38928356766700745, -0.23601026833057404, 0.1069171130657196, 0.010806345380842686, -0.16595864295959473, -0.6517444849014282, 0.18515987694263458, 0.7158571481704712, -0.02000593952834606, -0.00868428777...
then I use the built-in SVN support. * **Redmine** - Awesome project management tool (in RoR) that makes my life infinitely easier. It is very customizable and will help you have a good workflow throughout a project. * **Harvest** - Hosted time tracking with widgets for most major operating systems. If you're developin...
[ 0.6514291763305664, 0.19038835167884827, 0.26991134881973267, 0.19611497223377228, -0.09671590477228165, 0.09420245885848999, 0.07471641898155212, 0.3712821304798126, -0.2833801209926605, -0.9728021025657654, -0.06422394514083862, 0.645709216594696, 0.4630906581878662, -0.1720522940158844,...
going to be at a serious disadvantage. * **jQuery** - I hate writing JavaScript without a library anymore. jQuery is awesome and it makes you feel like you can do anything at any time. Its collection of plugins is similarly amazing and I recommend this JS framework over any other. That's pretty much all I can think of...
[ 0.6081425547599792, -0.015004189684987068, 0.09913322329521179, 0.23779065907001495, -0.3340795338153839, -0.5953018665313721, 0.33314746618270874, 0.6838907599449158, -0.16703416407108307, -0.7872333526611328, 0.09044228494167328, 0.7437855005264282, 0.20219053328037262, -0.03591735288500...
I have a set of records in my MS SQL table. With Date as the primary key. But the Dates are only for working days and not the continues days. Eg: 1/3/2000 12:00:00 AM 5209.540000000 5384.660000000 5209.540000000 5375.110000000 1/4/2000 12:00:00 AM 5533.980000000 5533.980000000 5376.430000000 5491.010000000 1/5/2000 12...
[ -0.20464128255844116, 0.47166934609413147, 0.49884307384490967, 0.0016638698289170861, -0.01089627668261528, 0.31013521552085876, 0.2738706171512604, -0.11997633427381516, -0.4407620131969452, -0.46303874254226685, 0.38086098432540894, -0.010486745275557041, -0.08390090614557266, 0.2930989...
of the 3rd cloumn minus the value of 3rd column of the previous working day. Please help me in writing such a query. I am finding it difficult as the dates are not present for the week ends. There are a few ways of doing this. Here is one. ``` CREATE TABLE MyTable ( MyDate datetime NOT NULL PRIMARY KEY, Col2 d...
[ -0.22597172856330872, 0.211998850107193, 0.9287791848182678, 0.12133139371871948, -0.001479940372519195, 0.2221868485212326, -0.08115476369857788, -0.07357650250196457, -0.5034658908843994, -0.6407216191291809, -0.01903464086353779, 0.01874159835278988, -0.08480678498744965, 0.340554267168...
'1/4/2000 12:00:00 AM', 5533.980000000, 5533.980000000, 5376.430000000, 5491.010000000 UNION ALL SELECT '1/5/2000 12:00:00 AM', 5265.090000000, 5464.350000000, 5184.480000000, 5357.000000000 UNION ALL SELECT '1/6/2000 12:00:00 AM', 5424.210000000, 5489.860000000, 5391.330000000, 5421.530000000 UNION ALL SELECT '...
[ 0.2319396585226059, 0.09333748370409012, 0.6655539870262146, -0.003700086148455739, 0.26779279112815857, 0.3310551941394806, 0.1746368408203125, -0.3733203113079071, 0.10504027456045151, -0.899819016456604, -0.045433491468429565, 0.4963831305503845, 0.038156908005476, 0.5321065187454224, ...
Q2.MyDate = (SELECT MAX(Q1.MyDate) FROM MyTable Q1 WHERE Q1.MyDate < T1.MyDate) ) FROM MyTable T1 GO SELECT * FROM MyView GO ``` **Results** ``` MyDate Col2 Col3
[ -0.057627566158771515, -0.16404715180397034, 0.6746914386749268, -0.17139218747615814, 0.049562592059373856, 0.022191761061549187, 0.1288997381925583, -0.06680551171302795, -0.07696496695280075, -0.6246770024299622, -0.08953924477100372, 0.0863514095544815, -0.21966634690761566, 0.06700527...
Col4 Col5 CalculatedColumn ----------------------- --------- --------- --------- --------- ---------------- 2000-01-03 00:00:00.000 5209.5400 5384.6600 5209.5400 5375.1100 NULL 2000-01-04 00:00:00.000 5533.9800 5533.9800 5376.4300 5491.0100 149.3200 2000-01-05 00:00:00.000 5265.0900 5464.3500 5184.4800 5357.0...
[ -0.7911887168884277, 0.17758934199810028, 0.6717671751976013, 0.21257562935352325, -0.1953689604997635, 0.42681995034217834, 0.0007161461398936808, -0.13437147438526154, -0.5861971378326416, -0.20998160541057587, 0.04676709324121475, 0.49504193663597107, -0.07841671258211136, 0.13433212041...
I have a borderless and transparent window in WPF, with some fancy decoration at the bottom. There's a custom footer with some non conventional curves and what not showing the company logo. This window needs to be resizable with a grip in the bottom right corner like conventional windows. Anyways, I have put my own Re...
[ 0.12490349262952805, -0.16226524114608765, 0.7675795555114746, 0.17197372019290924, 0.11994156241416931, 0.048129960894584656, 0.06291721761226654, -0.006656906567513943, -0.17103736102581024, -0.6853986382484436, 0.05671244114637375, 0.5810931324958801, 0.0633484348654747, 0.3401706218719...
on the Window. If this is set to CanResizeWithGrip: ```xml <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="50" Width="150" WindowStyle="None" Allo...
[ -0.12999504804611206, -0.029792573302984238, 0.9178648591041565, -0.043461672961711884, 0.0020727545488625765, 0.33521005511283875, -0.045925773680210114, -0.18778780102729797, -0.4615750014781952, -0.5813044309616089, -0.4943317472934723, 0.4418115019798279, 0.023141805082559586, -0.13807...
WindowStyle="None" AllowsTransparency="True" Background="#19FFFFFF" ResizeMode="CanResize"> <Grid></Grid> </Window> ``` The Window will look as follows: [![Can Resize](https://i.stack.imgur.com/FMgAY.png)](https://i.stack.imgur.com/FMgAY.png)
[ 0.0076443166472017765, -0.04762087017297745, 0.7809502482414246, -0.24770531058311462, 0.34483519196510315, -0.18165495991706848, 0.6364842653274536, -0.1902024894952774, -0.2656072974205017, -0.5682356357574463, -0.6137480735778809, 0.7305222749710083, -0.20225216448307037, -0.08859603106...
This is basic stuff, but I'm somewhat unfamiliar with VBA and the Word/Access object models. I have a two column database of about 117000 records. The columns are 'surname' and 'count'. I want a user to be able to type SMITH in a textbox and hit submit. I then want to run something like `SELECT table.count FROM table...
[ 0.4355497360229492, 0.3288869261741638, 0.22528046369552612, -0.014057823456823826, -0.10090122371912003, 0.14185385406017303, 0.24862436950206757, -0.2441103160381317, 0.03389866277575493, -0.7189363241195679, 0.2504918575286865, 0.2364397943019867, -0.12369803339242935, 0.093704938888549...
is a keyword in SQL and might cause problems. Similarly, don't call the table 'table'. Here is some sample code which shows one way of doing it: ``` ' This example uses Microsoft ActiveX Data Objects 2.8, ' which you have to check in Tools | References ' Create the connection. This connection may be reused for other...
[ 0.172845259308815, 0.05822017788887024, 0.7372907400131226, -0.03552524745464325, 0.0000990540356724523, -0.047592468559741974, -0.0022079553455114365, -0.12872174382209778, -0.27312853932380676, -0.699698805809021, -0.28413090109825134, 0.27876248955726624, -0.6211479902267456, 0.57129794...
one parameter for every ? Dim param As ADODB.Parameter Set param = cmd.CreateParameter("surname", adBSTR, adParamInput, , TextBox1.Text) cmd.Parameters.Append param Dim rs As ADODB.Recordset Set rs = cmd.Execute MsgBox rs("ct") rs.Close conn.Close ```
[ -0.02819095551967621, -0.11878137290477753, 0.6456283926963806, -0.06480013579130173, -0.433241605758667, 0.5088344812393188, 0.2168266475200653, -0.6651566624641418, -0.3272659480571747, -0.2597496211528778, -0.09372392296791077, 0.2857073247432709, -0.7589179277420044, 0.0428192093968391...