text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
dateMax) { dateMax = rangeMax; } } } return { minDate: dateMin, maxDate: dateMax }; } ```
[ 0.1785784363746643, -0.42228686809539795, 0.4942755401134491, -0.27061086893081665, 0.5288491249084473, -0.05452622473239899, 0.1931041181087494, 0.012904607690870762, 0.19604291021823883, -0.3759176731109619, -0.42123979330062866, 0.690931499004364, -0.23640507459640503, 0.310424953699111...
I wish to display a list of letters from a through z on a form. Each letter needs to be clickable with that value being passed as a click argument. Aside from creating 26 letters and using the click event of each letter does anyone know of a quick way to do this? I know how to load dynamic controls etc and how to do it...
[ 0.2353350818157196, 0.2664070129394531, 0.8830904960632324, -0.22008781135082245, -0.09269418567419052, 0.2561231851577759, 0.21999022364616394, -0.16745828092098236, 0.01724223978817463, -0.636187732219696, 0.07229968160390854, 0.6141868829727173, -0.08437982201576233, -0.0997728481888771...
flowLayoutPanel1.WrapContents = false; //or true, whichever you like flowLayoutPanel1.Controls.Clear(); for (char c = 'A'; c <= 'Z'; c++) { Label letter = new Label(); letter.Text = c.ToString(); letter.AutoSize = true; letter.Click += new EventHandler(letter_Click); flowLayoutPanel1.Controls...
[ -0.19910749793052673, -0.35859301686286926, 0.8998021483421326, -0.19559407234191895, 0.015340552665293217, 0.06757330894470215, 0.23621897399425507, -0.2171431928873062, -0.11270734667778015, -0.4980289340019226, -0.3567848801612854, 0.6739412546157837, -0.34653276205062866, 0.07151446491...
How do I call the correct overloaded function given a reference to an object based on the actual type of the object. For example... ``` class Test { object o1 = new object(); object o2 = new string("ABCD"); MyToString(o1); MyToString(o2);//I want this to call the second overloaded function void My...
[ -0.05467001721262932, -0.02918439917266369, 0.315222829580307, -0.2230074554681778, 0.4171801507472992, 0.19432584941387177, 0.32001128792762756, -0.3367398679256439, 0.18229572474956512, -0.5341547727584839, -0.4362374246120453, 0.675790011882782, -0.5406196713447571, 0.1876075267791748, ...
} } ``` what I mean is there a better option than the following? ``` if(typeof(o) == typeof(string)) { MyToString((string)o); } else { MyToString(o); } ``` May be this can be done using reflection? Ok as soon as I hit post I remembered this can indeed be done using reflection... ``` var methInfo = typeof(...
[ 0.03913932666182518, 0.03895455226302147, 0.4045049548149109, -0.27695831656455994, 0.203363835811615, -0.12330219149589539, 0.6441348791122437, -0.29557594656944275, 0.058001235127449036, -0.5377756357192993, -0.14469356834888458, 0.7502989172935486, -0.2701418697834015, 0.143719181418418...
I'm just learning how to do things, and want to start using some sort of version control for a web app. What's most appropriate for deploying a python or php web app on my own? I'm using linux and have a linux server. Thanks! SVN, ***but*** you need to be able to easily **deploy your webapp with SVN**. Since it is n...
[ 0.58670574426651, 0.23674406111240387, 0.17017695307731628, -0.07162357866764069, -0.13679005205631256, -0.2448563426733017, 0.33407461643218994, 0.18134525418281555, -0.33728891611099243, -0.6863299012184143, 0.06349049508571625, 0.26380404829978943, -0.0803147703409195, -0.09480793774127...
can simply make a checkout of your project and it will automagically be up and running. No need to touch the Apache configuration. You need a **[DNS wildcard entry](http://en.wikipedia.org/wiki/Wildcard_DNS_record)** so that all subdomains of dev.example.org go to your development server. The only problem with using t...
[ 0.45174917578697205, -0.22688491642475128, 0.2710582911968231, 0.25755631923675537, -0.16997745633125305, -0.41056370735168457, 0.5437230467796326, -0.10143812745809555, -0.45430582761764526, -0.8601211309432983, -0.2317132204771042, 0.35756438970565796, -0.10899548977613449, 0.29160583019...
own machine * Use dnsmasq so you can achieve the same effect on your own development machine. That way you can develop your web applications locally and you won't need a central development server. In my examples I will be assuming you use subversion for your version control, but it works virtually the same with other...
[ 0.5033561587333679, 0.1144268661737442, 0.17311647534370422, -0.10749851167201996, 0.02471090853214264, -0.11646176129579544, 0.028300238773226738, 0.02017611265182495, -0.4558399021625519, -0.23730237782001495, 0.015598583035171032, 0.45401713252067566, -0.2823033332824707, 0.102021463215...
How can I put a link in a C# `TextBox`? I have tried to put HTML tags in the box but instead of showing a link it shows the entire HTML tag. Can this be done with a `TextBox`? I would think about this a little bit. If you allow executable code in an editable control, the user, the user can execute **ANY** code. This is...
[ 0.43992477655410767, 0.15125131607055664, 0.08374115079641342, 0.30580440163612366, -0.05840511992573738, -0.4107341170310974, 0.31816717982292175, 0.08296258002519608, -0.21382848918437958, -0.7418667078018188, 0.013866116292774677, 0.4303473234176636, -0.5838971138000488, 0.1844412833452...
creating a list of links next or below the text box) will provide a much safer application.
[ 0.2426798790693283, 0.04313747584819794, 0.5732780694961548, 0.1386217623949051, 0.018871577456593513, -0.25496724247932434, 0.4218319058418274, -0.227219358086586, -0.4376639127731323, -0.7397653460502625, -0.18695802986621857, 0.2985464036464691, -0.14201931655406952, 0.02670150995254516...
If I want to split a list of words separated by a delimiter character, I can use ``` >>> 'abc,foo,bar'.split(',') ['abc', 'foo', 'bar'] ``` But how to easily and quickly do the same thing if I also want to handle quoted-strings which can contain the delimiter character ? ``` In: 'abc,"a string, with a comma","anoth...
[ -0.01572217047214508, 0.27315574884414673, 0.12316960096359253, -0.17764875292778015, -0.20587249100208282, 0.19761885702610016, 0.0816504955291748, -0.4420199394226074, -0.21256427466869354, -0.31608670949935913, -0.4918398857116699, 0.5117537975311279, -0.48943760991096497, -0.2079012244...
and up, print is a function; use: print(i,f) ``` Result: ``` 0 abc 1 a string, with a comma 2 another, one ```
[ 0.07332490384578705, 0.18212077021598816, 0.2567920684814453, -0.3133828639984131, -0.14154617488384247, 0.08741960674524307, -0.18293961882591248, -0.4559406340122223, -0.2648182809352875, -0.3210333585739136, -0.4587973654270172, 0.3361681401729584, -0.6100633144378662, 0.050673533231019...
I have seen [this topic here](https://stackoverflow.com/questions/295579/fastest-way-to-determine-if-an-integers-square-root-is-an-integer) about John Carmack's magical way to calculate square root, which refers to this article: <http://www.codemaestro.com/reviews/9>. This surprised me a lot, I just didn't ever realize...
[ 0.0515863299369812, 0.20721545815467834, 0.0951836034655571, 0.33158043026924133, -0.08740336447954178, 0.01544074434787035, 0.2563043534755707, -0.09268461167812347, -0.30025145411491394, -0.2489698976278305, 0.17037950456142426, 0.2529924511909485, 0.11164981126785278, -0.118562854826450...
Abrash. The implementation of the Game Of Life is mind-boggling.
[ 0.06291228532791138, 0.48871418833732605, -0.007712209597229958, -0.1516844928264618, -0.12695428729057312, 0.11571413278579712, 0.48521003127098083, -0.20416413247585297, 0.2941976487636566, -0.6697719693183899, -0.24001799523830414, 0.412250280380249, -0.19040314853191376, 0.428946048021...
I require a star rating control (which allows partial rating like 4.5) for my application built on asp.net mvc. Any pointers in this direction will be helpful? Rogie, over at [Komodomedia](http://www.komodomedia.com/blog/), has spent far too long on this [topic](http://www.komodomedia.com/blog/2005/08/creating-a-star-...
[ 0.03968581184744835, 0.04934992641210556, 0.5377123355865479, -0.039830032736063004, -0.5649361610412598, -0.4079606235027313, 0.16709014773368835, 0.23433981835842133, -0.22817426919937134, -0.44474539160728455, 0.11407583206892014, 0.41879308223724365, -0.005303426645696163, 0.1708685457...
I need to change the date format from US (mm/dd/YYYY) to UK (dd/mm/YYYY) on a single database on a SQL server machine. How can this be done? I've seen statements that do this for the whole system, and ones that do it for the session, but I can't change the code now as it will have to go through QA again, so I need a ...
[ 0.4511434733867645, 0.2660158574581146, 0.8885722756385803, -0.12301920354366302, -0.01171456091105938, 0.0471179373562336, 0.2147127091884613, 0.20413543283939362, -0.37784722447395325, -0.6030972003936768, -0.2709940969944, 0.1776706725358963, 0.0048375255428254604, 0.519243597984314, ...
chucking raw data from an XML file into a database. The dates in the XML file are in UK date format. You could use **SET DATEFORMAT**, like in this example ``` declare @dates table (orig varchar(50) ,parsed datetime) SET DATEFORMAT ydm; insert into @dates select '2008-09-01','2008-09-01' SET DATEFORMAT ymd; insert ...
[ 0.6354839205741882, -0.11900176107883453, 0.22022977471351624, 0.23268339037895203, -0.09379608929157257, -0.24226482212543488, -0.2999080717563629, 0.08541048318147659, 0.09773780405521393, -0.3062762916088104, -0.04077750816941261, 0.09198430180549622, 0.11653152853250504, 0.193804919719...
This question is related to ["How to make consistent dll binaries across VS versions ?"](https://stackoverflow.com/questions/232926/how-to-make-consistent-dll-binaries-across-vs-versions) * We have applications and DLLs built with VC6 and a new application built with VC9. The VC9-app has to use DLLs compiled with VC6,...
[ 0.2822321355342865, 0.04276823624968529, 0.7269084453582764, 0.12311528623104095, -0.08847562223672867, 0.11089172214269638, 0.24186336994171143, -0.01404338888823986, -0.30742985010147095, -0.6125044822692871, -0.22593611478805542, 0.6795409321784973, -0.5058593153953552, -0.1804862022399...
uses some static functions as well as some non-static. While the static functions can be handled with something like ``` // Header file class DLL_API Foo { int init(); } extern "C" { int DLL_API Foo_init(); } // Implementation file int Foo_init() { return Foo::init(); } ``` it's not that easy with the...
[ 0.33100399374961853, 0.059822928160429, 0.11763298511505127, 0.05912835896015167, -0.11729621142148972, 0.12962523102760315, 0.2441686987876892, -0.326077401638031, -0.23675420880317688, -0.5259748697280884, 0.1435559093952179, 0.5448909997940063, -0.6454285979270935, 0.03449146822094917, ...
the objects or am I missing something? In that case, I guess, I would probably have less effort with directly using the wrapped C-library. Interface member names will *not* be decorated -- they're just offsets in a vtable. You can define an interface (using a C struct, rather than a COM "interface") in a header file, t...
[ 0.08045271784067154, 0.010860507376492023, 0.47353166341781616, 0.12408234924077988, -0.14222459495067596, 0.09538562595844269, 0.13598893582820892, -0.06507296860218048, -0.19018752872943878, -0.6065385937690735, -0.15791869163513184, 0.573627769947052, -0.47200319170951843, 0.26355651021...
using a compiler that generates compatible vtables. Microsoft C++ has generated the same format vtable since (at least, I think) MSVC6.1 for DOS, where the vtable is a simple list of pointers to functions (with thunking in the multiple-inheritance case). GNU C++ (if I recall correctly) generates vtables with function p...
[ 0.005533971823751926, -0.1305733174085617, 0.3885759711265564, -0.016255507245659828, -0.38501444458961487, -0.05317843705415726, -0.060936152935028076, 0.012582747265696526, -0.20635004341602325, -0.42926105856895447, -0.14564892649650574, 0.911773681640625, -0.5832812786102295, 0.1500646...
I have been using anonymous namespaces to store local data and functions and wanted to know when the data is initialized? Is it when the application starts in the same way as static data or is it compiler dependent? For example: ``` // foo.cpp #include "foo.h" namespace { const int SOME_VALUE = 42; } void foo::Som...
[ 0.18620413541793823, 0.20983372628688812, 0.18562640249729156, -0.3051873445510864, 0.12141022086143494, -0.213089719414711, 0.16912949085235596, -0.08113089948892593, -0.20283116400241852, -0.42212262749671936, -0.09013384580612183, 0.4485850930213928, -0.28975674510002136, 0.152778983116...
first time. C++ Standard, **3.6.2/1** : > Zero-initialization and > initialization with a constant > expression are collectively called > static initialization; all other > initialization is dynamic > initialization. Objects of POD types > (3.9) with static storage duration > initialized with constant expressio...
[ -0.23899628221988678, -0.3925151824951172, 0.302566260099411, -0.1576230674982071, 0.16254478693008423, 0.0062042828649282455, -0.03179933875799179, -0.2863260507583618, -0.379646360874176, -0.7915034890174866, -0.3859325051307678, 0.15682001411914825, -0.4508141279220581, 0.09966947883367...
calls your SomeFunc function from outside, your SOME\_VALUE constant will always be correctly initialized, because it's initialized with a *constant expression*. The only way for your function being called early (before main) is while initializing an object with dynamic initialiation. But by that time, according to t...
[ -0.03641046583652496, -0.4341072142124176, 0.3658960461616516, -0.24892576038837433, 0.24090568721294403, -0.06074468046426773, -0.0034820656292140484, 0.11012953519821167, -0.03771080821752548, -0.4952075481414795, -0.2650492191314697, 0.48988965153694153, -0.1307980716228485, 0.135004565...
What we are looking for is: while compiling the same configuration, say Release|Win32, is there a way to only do the postbuild steps sometimes. Like, if I am on a dev machine do all the post-build steps or if I am on a build server then don't do them. Or is the only way to accomplish this is by implementing a new confi...
[ 0.4472114145755768, -0.017126765102148056, -0.1908578723669052, 0.2115667462348938, -0.07112392783164978, -0.36786702275276184, 0.350582093000412, 0.1930653154850006, -0.14404761791229248, -0.7509881854057312, 0.029055237770080566, 0.705036997795105, -0.3141574263572693, 0.0856886431574821...
Thanks for trying though. You could use environment variables in the post build script. Something like this: ``` if NOT %ComputerName% == DEVMACHINENAME GOTO end c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen "$(TargetPath)" :end ```
[ 0.43265920877456665, -0.13635461032390594, 0.30086785554885864, 0.14021827280521393, -0.05476883053779602, -0.32269299030303955, 0.50355064868927, 0.3283688724040985, 0.05228335037827492, -0.8718830943107605, 0.15098625421524048, 0.627010703086853, -0.22328442335128784, -0.0883748829364776...
How do I pass an array I have created on the server side onto the client side for manipulation by Javascript? Any pseudo code will help You'll need to embed it as a javascript array declaration into the page. There are a number of ways to do this, but it generally means turning the array into text that you write to th...
[ 0.49508437514305115, -0.09249994903802872, 0.39201438426971436, -0.08874285966157913, -0.22129276394844055, -0.012898256070911884, 0.16309431195259094, -0.28196215629577637, -0.31052711606025696, -0.7694212198257446, 0.08366783708333969, 0.4136531352996826, -0.2356409877538681, 0.037304479...
the back-flips we need right now.
[ 0.05057168006896973, 0.025936927646398544, 0.24226486682891846, 0.407060444355011, -0.06821484118700027, -0.11255982518196106, -0.15084420144557953, 0.17121778428554535, -0.28384339809417725, -0.4539656639099121, 0.028996529057621956, 0.627097487449646, 0.1093163713812828, -0.0920170471072...
Has anyone tried a solution to host ASP classic pages on something else than IIS/Windows? I'm wondering if it would be a good idea to try one of the solutions for that problem. I know about Sun Java System Active Server Pages (or Chilisoft) but haven't tried it. Is there any big problems with those solutions? Does the ...
[ 0.3391646146774292, 0.05885591730475426, 0.23650506138801575, 0.06602602452039719, -0.3510521948337555, -0.20165884494781494, 0.2984405755996704, 0.24633195996284485, -0.6279026865959167, -0.6785653233528137, -0.16155989468097687, 0.48702508211135864, -0.33788415789604187, 0.04709091037511...
manage classes, so you'll need to recode your classes to just variables and functions. Well, classes in classic ASP aren't so much complicated than just variables and functions...
[ -0.1337219625711441, -0.12117047607898712, -0.2951257824897766, 0.4584699273109436, -0.0787673369050026, -0.2945944666862488, 0.2999122142791748, 0.3192216455936432, -0.23570360243320465, -0.5595797300338745, -0.2165757417678833, 0.29466167092323303, -0.25008103251457214, -0.08262899518013...
I am trying to unit test my WPF databindings using the test suit provided by Microsoft Team System. I would like to be able to test the bindings without showing the window because most of my tests will be for user controls and not actually on a window. Is this possible or is there a better way to do it? The code below ...
[ 0.4825301468372345, 0.03066997230052948, 0.44852304458618164, -0.09845228493213654, -0.0037359092384576797, -0.3644561469554901, 0.383477121591568, -0.46845296025276184, -0.04462369158864021, -0.8914017677307129, 0.007963664829730988, 0.5681068301200867, -0.36625567078590393, 0.12244046479...
UnitTestingWPF.Window1_Accessor.Person p = new UnitTestingWPF.Window1_Accessor.Person() { FirstName = "Shane" }; Window1 window = (target.Target as Window1); window.DataContext = p; //window.Show(); //Only Works when I actually show the window //Is it possible to...
[ -0.23717941343784332, -0.11152130365371704, 0.33211007714271545, -0.08756819367408752, -0.09908148646354675, -0.03641384840011597, 0.565815269947052, -0.3250669538974762, 0.034610241651535034, -0.5935379862785339, -0.41892358660697937, 0.44571352005004883, 0.0033230618573725224, -0.0239717...
better way? Assert.AreEqual("Shane", target.textBoxFirstName.Text); //Fails if I don't Show() the window because the bindings aren't updated ``` Shane, if what you're really worried about is a binding breaking silently, you should look at redirecting the binding traces to somewhere you can examine. I'd st...
[ 0.20193900167942047, 0.1051112711429596, -0.005311117507517338, 0.047396231442689896, -0.2355370670557022, -0.4561140239238739, 0.8211292028427124, -0.6717257499694824, -0.10041293501853943, -0.6456331014633179, -0.10287395864725113, 0.537641167640686, 0.06218427047133446, -0.1007550284266...
traces using the PresentationTraceSources class: <http://msdn.microsoft.com/en-us/library/system.diagnostics.presentationtracesources.aspx> Hope that helps!
[ 0.32901081442832947, -0.14512698352336884, 0.2834356725215912, 0.3392927944660187, 0.42513006925582886, -0.12010373175144196, 0.49106365442276, -0.032807908952236176, -0.14439989626407623, -0.8867022395133972, 0.18712233006954193, -0.06905733793973923, 0.015529777854681015, -0.298039257526...
So my question is if I can somehow send data to my program and then send the same data AND its result to another program without having to create a temporary file (in my case ouputdata.txt). Preferably using linux pipes/bash. I currently do the following: cat inputdata.txt | ./MyProg > outputdata.txt cat inputdata.t...
[ -0.1190745010972023, 0.07231476157903671, 0.328621506690979, -0.12934665381908417, 0.0866587832570076, 0.2487509697675705, -0.12485003471374512, -0.24652010202407837, -0.2562849819660187, -0.9048767685890198, -0.0940779596567154, 0.5318588614463806, -0.40517565608024597, -0.034164264798164...
When I click on a row in my GridView, I want to go to a other page with the ID I get from the database. In my RowCreated event I have the following line: ``` e.Row.Attributes.Add( "onClick", ClientScript.GetPostBackClientHyperlink( this.grdSearchResults, "Select$" + e.Row.RowIndex)); ``` To pre...
[ -0.07248301059007645, 0.12089522927999496, 0.6110543608665466, -0.4071897268295288, -0.04512467607855797, 0.09691960364580154, 0.33612388372421265, -0.18178334832191467, 0.11891994625329971, -0.8335072994232178, 0.02821204997599125, 0.6388732194900513, -0.4793689250946045, 0.31232622265815...
// This must be done in Render, hence the override for (int i = 0; i < grdSearchResults.Rows.Count; i++) { Page.ClientScript.RegisterForEventValidation( new System.Web.UI.PostBackOptions( grdSearchResults, "Select$" + i.ToString())); } // Do the standard rende...
[ -0.14030468463897705, 0.15563973784446716, 0.761133074760437, -0.3424675464630127, 0.13567540049552917, 0.19295617938041687, 0.25470560789108276, -0.5374348759651184, -0.10800334811210632, -0.7101144194602966, -0.05903175473213196, 0.5160751938819885, -0.27024781703948975, 0.24539366364479...
the DB) and when I click the row, another page is opened (like clicking on a href) and that page can read the ID. I have the solution. This is what i have done: ``` if(e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes["onClick"] = "location.href='view.aspx?id=" + DataBinder.Eval(e.Row.DataItem, "id"...
[ 0.0477265939116478, 0.2384331375360489, 0.6256102919578552, -0.2047770768404007, -0.19091814756393433, -0.027659684419631958, 0.37714987993240356, -0.7246288657188416, 0.38466116786003113, -0.7876579761505127, -0.025849277153611183, 0.6731676459312439, -0.17821849882602692, 0.3474516570568...
I have read numerous articles now and it's not clear and there's lots of versions and this that and the other and I have been piecing things together and have got so far, my problem is the 'rar' command doesn't seem to accept my substition variable and instead reads it as a string. But this is what I have ``` @echo o...
[ 0.597661554813385, 0.1317557543516159, 0.1267945021390915, -0.4162430763244629, -0.15911951661109924, 0.38435274362564087, 0.3940547704696655, -0.5132309794425964, -0.1643170714378357, -0.2021079808473587, 0.0979851558804512, 0.6938808560371399, -0.2741988003253937, 0.36175137758255005, ...
some out and chopped it so you only get the essence, I haven't omitted any commands though. I am trying to loop through the directory and locate all `.txt` files and zip them into a `.rar` file. The echo writes out the correct filenames. Any ideas? I think this is your problem: ``` set _rarpath=C:\Program Files (x8...
[ 0.520392119884491, 0.2005649358034134, -0.09404442459344864, -0.35429927706718445, -0.2176056206226349, 0.07047812640666962, 0.2670987844467163, -0.21622855961322784, -0.12278365343809128, 0.0054765488021075726, 0.2479153424501419, 0.46128740906715393, -0.4500080645084381, 0.20694042742252...
I have a request to allow a dynamic table to have 1000 columns(randomly selected by my end users). This seems like a bad idea to me. It's a customizable table so it will have a mixture of `varchar(200)` and `float` columns(float best matches the applications c++ double type). This database is mostly an index for a lega...
[ 0.31012582778930664, 0.024619096890091896, 0.4069775640964508, 0.20378047227859497, 0.0672217532992363, 0.15617148578166962, -0.020685305818915367, -0.1576675921678543, -0.4566303789615631, -0.5082046389579773, 0.34006139636039734, 0.13842469453811646, -0.3851078748703003, 0.32051646709442...
to partition this down too? Since I don't know what fields out of 20k worth of choices the end users will pick normalizing the tables is not feasible. I can separate this data out to several tables That I would have to dynamically manage (fields can be added or drooped. The rows are then deleted and the system of reco...
[ 0.14217445254325867, 0.08185143023729324, 0.1112409383058548, 0.13890984654426575, 0.18611367046833038, -0.105540432035923, 0.19797566533088684, -0.010781116783618927, -0.44501063227653503, -0.5545499920845032, 0.11666225641965866, 0.07032559812068939, -0.4735896587371826, 0.43986836075782...
NULL values? Will many be named Property001, Property002, Property003, etc...? If so, I recommend you rethink your data normalization.
[ 0.2060307115316391, 0.024903735145926476, -0.034334514290094376, 0.3436896502971649, -0.09350991249084473, 0.025301313027739525, 0.16334740817546844, -0.049499791115522385, -0.15946349501609802, -0.5068284273147583, 0.08540166169404984, 0.3768152892589569, -0.12776072323322296, 0.553389072...
Does anyone know of a good, extensible source code analyzer that examines JavaScript files? In the interest of keeping this question up-to-date, there is a fork of JSLint called [JSHint](http://jshint.com/). An explanation of why JSHint was created can be found [here](http://anton.kovalyov.net/2011/02/20/why-i-forked-j...
[ 0.10860256105661392, -0.16478560864925385, 0.1953296661376953, -0.26454243063926697, -0.4991830587387085, -0.04750688746571541, 0.4039279818534851, 0.19221477210521698, -0.007816724479198456, -0.4247737526893616, 0.006180301774293184, 0.14562997221946716, -0.30729418992996216, -0.054470881...
prevent bugs to a tool that makes sure > you write your code like Douglas > Crockford.
[ 0.2596970498561859, 0.4627678096294403, -0.2516264319419861, 0.0647071897983551, 0.3710924983024597, -0.24704711139202118, 0.4432896375656128, -0.02051493339240551, -0.1069469228386879, -0.5668882727622986, -0.13534364104270935, 0.4527415335178375, -0.4989783763885498, -0.12827542424201965...
I am using NHibernate on a new ASP.NET project, and am running into what I believe to be strange behavior. I am attempting to manage my session by using an HttpModule to catch the EndRequest event and close the session. This is working fine, however, after the EndRequest event fires, I am getting an exception in the On...
[ 0.0726526528596878, -0.06065402179956436, 0.19382323324680328, -0.10342546552419662, -0.2619646191596985, -0.6634807586669922, 0.6634376645088196, 0.03420248627662659, -0.20457009971141815, -0.6355816125869751, 0.05869700759649277, 0.38385799527168274, -0.39141523838043213, 0.5406726002693...
for these properties does fix the problem, and is an acceptable solution. But this seems to be going against what I always thought to be true. I would assume that the OnLoad event and all server side processing would be done at the point that EndRequest is fired. This is also the first time that I have used IIS 7 on a...
[ -0.11028202623128891, 0.2081802487373352, 0.20070458948612213, 0.06432578712701797, 0.06397278606891632, -0.35889047384262085, 0.5569097995758057, 0.2125682383775711, -0.30882319808006287, -0.4950324296951294, -0.029227856546640396, 0.579163670539856, -0.14997915923595428, 0.20845854282379...
the VS 2008 Built in Web server (Casini). Casini passes all requests through the ASP.NET pipeline, IIS does not. This was causing a request for an image file or javascript file (or any other static resource) to close my NHibernate session before I was actually thinking it should close. Thanks for the list of resources...
[ -0.061324283480644226, -0.3454631567001343, 0.4818617105484009, 0.20554211735725403, -0.6506956219673157, -0.15188203752040863, 0.36267250776290894, 0.1604079306125641, -0.14269550144672394, -0.7023013830184937, 0.1617508828639984, 0.6241108775138855, -0.15287554264068604, 0.15795490145683...
I have an http module on a sharepoint site and this module instantiates a custom class and add it to the session and does other initial things for my site. However, I'm noticing that the http module is being called for all request types (.aspx, .js, .png, .jpg). Is there any way to have an http module only be called f...
[ 0.48144450783729553, -0.012007723562419415, 0.28305932879447937, 0.14575880765914917, 0.12000762671232224, 0.026770975440740585, 0.2028570920228958, -0.2069108933210373, -0.2390374392271042, -0.6228805184364319, 0.11266641318798065, 0.6394476890563965, -0.2738201320171356, 0.41708549857139...
It's hard to put this into the title, so let me explain. I have an application that uses Direct3D to display some mesh and directshow(vmr9 + allocator) to play some video, and then send the video frame as texture to the Direct3D portion to be applied onto the mesh. The application needs to run 24/7. At least it's allo...
[ 0.3365302085876465, 0.15963566303253174, 0.906731367111206, 0.08664987236261368, -0.06644637882709503, -0.3769877851009369, 0.2606286108493805, 0.03336143493652344, -0.28675493597984314, -0.5132318735122681, -0.10844628512859344, 0.9401450157165527, -0.012580016627907753, 0.451049685478210...
application simply refuse playing anymore video. But the Direct3D portion is still running fine, mesh still displayed. Once the application is restarted, everything back to normal. So, I'm thinking of splitting the 2 parts into 2 different process. So that when ever the video process failed to play video, at least I ...
[ -0.03055131807923317, -0.0549955740571022, 0.7986522316932678, 0.1712450087070465, -0.07749762386083603, -0.13611391186714172, 0.2667185962200165, -0.1418435126543045, -0.2492726445198059, -0.7451450228691101, -0.10900846868753433, 0.6235080361366272, -0.2144945114850998, 0.243726193904876...
due to protected memory addressing. I have TCP communication setup on both process, and let's not worry about communicating the pointer at this point. This might be a crazy idea, but it will work wonder of it's ever possible Yes you can do this with Direct3D 9Ex. This only works with Vista and you must use a Direct3D...
[ 0.1156509667634964, 0.07183567434549332, 0.5586535334587097, 0.3013720214366913, -0.1757137030363083, -0.1666271835565567, 0.19934368133544922, 0.19418124854564667, -0.20601096749305725, -0.8966168165206909, 0.1605185568332672, 0.6728256344795227, -0.21132735908031464, 0.23901315033435822,...
I need a standard, Microsoft delivered, encryption library that works for both .NET 2.0 and C++. What would you suggest? We find that AES is only offered in .NET 3.5 (and available in C++) We find that Rijndael is used in .NET 2.0 but not available in the standard C++ libraries. If I am wrong (very good chance), can...
[ 0.21918708086013794, 0.1452484279870987, -0.01340566761791706, 0.06780506670475006, 0.04683117941021919, -0.21727915108203888, 0.417185515165329, -0.3183448314666748, -0.06416867673397064, -0.42119526863098145, 0.0562208890914917, 0.47147855162620544, -0.04664132371544838, -0.1162236705422...
pure Win32 (c/c++), native to all Microsoft OS's. * Use [Enhanced Cryptographic Provider](http://msdn.microsoft.com/en-us/library/aa386986(VS.85).aspx) (`MS_ENHANCED_PROV`) * Use [Triple DES](http://msdn.microsoft.com/en-us/library/aa382020(VS.85).aspx) (`CALG_3DES`) algorithm ### .NET TripleDes Provider * Use [Tripl...
[ 0.38403257727622986, -0.0526830293238163, 0.0019995588809251785, -0.06810600310564041, -0.02607964351773262, -0.12944918870925903, 0.5318714380264282, -0.23002108931541443, 0.3543020784854889, -0.48235151171684265, -0.08786138147115707, 0.9025557041168213, -0.506672203540802, -0.1332837790...
give more. Happy crypto!
[ 0.48463550209999084, -0.13552255928516388, 0.4751029312610626, 0.4368816614151001, -0.22203442454338074, -0.23540253937244415, 0.08049772679805756, 0.019049419090151787, 0.10648533701896667, -0.04737164080142975, -0.19671790301799774, 0.03337719663977623, -0.11412888020277023, 0.0982655584...
Let say I have a sheet in with columns Customer and CreatedDate with lots of row with data. Anyone who knows how to setup (through VBA or Formula) a second sheet that displays rows from the first sheet based on certain where statements, i.e. all rows with customers "created this month." (similar to a select ... where q...
[ 0.5677581429481506, 0.09963260591030121, 0.367000550031662, 0.028447013348340988, -0.34946170449256897, 0.30027517676353455, -0.03061932511627674, -0.01107864361256361, -0.3686548173427582, -0.6672342419624329, 0.25914841890335083, 0.3233248293399811, 0.13988015055656433, 0.194185942411422...
probably have to use VBA: ``` Dim DataRange as Range Dim RowNum as Integer Dim NewRow as Integer Dim TestMonth as Integer Dim ThisMonth as Integer Set DataRange = Range(Sheet1.Cells(1,1), Sheet1.Cells(100,2)) ThisMonth = Application.WorksheetFunction.Month(Application.WorksheetFunction.Today()) NewRow = 1 For RowN...
[ 0.0966389998793602, -0.07274561375379562, 0.7621479034423828, -0.13219276070594788, 0.002662625629454851, 0.0702466294169426, 0.32288315892219543, -0.4918229877948761, -0.06341728568077087, -0.35861796140670776, -0.10995365679264069, 0.20687903463840485, 0.12166451662778854, 0.436662942171...
I've added a weakly named assembly to my [Visual Studio 2005](http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2005) project (which is strongly named). I'm now getting the error: > "Referenced assembly 'xxxxxxxx' does not have a strong name" Do I need to sign this third-party assembly? To avoid this...
[ -0.006262923590838909, 0.08371766656637192, 0.48292550444602966, -0.41676175594329834, -0.5639139413833618, 0.03189719095826149, 0.3361573815345764, -0.48588573932647705, -0.08088351786136627, -0.3544411361217499, -0.26682689785957336, 0.5628689527511597, -0.3380897641181946, -0.2132898420...
/key=myKey.snk thirdPartyLib.il ``` ### Fixing Additional References The above steps work fine unless your third-party assembly (*A.dll*) references another library (*B.dll*) which also has to be signed. You can disassemble, rebuild and sign both *A.dll* and *B.dll* using the commands above, but at runtime, loading ...
[ 0.34358710050582886, -0.020890899002552032, 0.25186261534690857, -0.16248218715190887, -0.13172052800655365, 0.04935930669307709, 0.4025653004646301, -0.3630986511707306, -0.2620992362499237, -0.9349706172943115, -0.2166292518377304, 0.5580833554267883, -0.40679362416267395, 0.130496844649...
will give you the following output: ``` Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.33440 Copyright (c) Microsoft Corporation. All rights reserved. Public key (hash algorithm: sha1): 002400000480000094000000060200000024000052534131000400000100010093d86f6656eed3 b62780466e6ba30fd15d69a3918e4bb...
[ -0.354725182056427, 0.4644618034362793, 0.4327091574668884, 0.06563234329223633, 0.13150686025619507, -0.017263369634747505, 0.3911530077457428, -0.3066418170928955, -0.068781778216362, -0.39391613006591797, -0.2156754434108734, 0.38980236649513245, -0.3389189541339874, 0.3770109713077545,...
When trying to kill a buffer that contains changes in Emacs, the message: " Buffer [buffer] modified; kill anyway? (yes or no)" is displayed. Instead of this I'd like to have Emacs ask me if I want to: 1. View a diff of what changed, 2. Save the buffer, 3. Kill the buffer. How? The answer lies in using [advice]...
[ 0.6278206706047058, -0.13453762233257294, 0.12842252850532532, -0.1720411777496338, 0.15701904892921448, 0.29454928636550903, 0.3181637227535248, -0.17685453593730927, -0.1664113849401474, -0.32107803225517273, 0.13555137813091278, 0.7776522636413574, -0.44865015149116516, -0.1693997830152...
not modified - but you'll really need to save it. 2. The other buffer in the diff doesn't get deleted ```` (defadvice kill-buffer (around my-kill-buffer-check activate) "Prompt when a buffer is about to be killed." (let* ((buffer-file-name (buffer-file-name)) backup-file) ;; see 'backup-buffer (i...
[ 0.370057076215744, -0.08999225497245789, 0.7911720871925354, -0.1796106994152069, 0.4179779291152954, -0.07707647234201431, 0.2553536593914032, -0.21638251841068268, -0.16373053193092346, -0.473969966173172, -0.3628424108028412, 0.7234205007553101, -0.27358338236808777, -0.0501696616411209...
(find-backup-file-name buffer-file-name)))) (let ((answer (completing-read (format "Buffer modified %s, (d)iff, (s)ave, (k)ill? " (buffer-name)) '("d" "s" "k") nil t))) (cond ((equal answer "d") (set-buffer-modified-p nil)
[ -0.30722174048423767, 0.08670446276664734, 0.6872804760932922, -0.08766965568065643, 0.43264901638031006, 0.09018439799547195, 0.15869292616844177, -0.623661994934082, 0.11562905460596085, -0.3388538956642151, -0.5032891035079956, 0.5498028993606567, -0.039549149572849274, 0.12661051750183...
(let ((orig-buffer (current-buffer)) (file-to-diff (if (file-newer-than-file-p buffer-file-name backup-file) buffer-file-name
[ -0.10984856635332108, -0.08364889025688171, 0.9001468420028687, -0.23531684279441833, 0.7351159453392029, -0.2766534984111786, -0.04537983611226082, -0.5714037418365479, -0.010012312792241573, -0.33332177996635437, -0.5324876308441162, 0.4847830533981323, -0.18694522976875305, 0.2025658637...
backup-file))) (set-buffer (get-buffer-create (format "%s last-revision" (file-name-nondirectory file-to-diff)))) (buffer-disable-undo) (insert-file-contents file-to-diff nil nil nil t)
[ -0.06333839893341064, -0.25157514214515686, 0.542239248752594, 0.04415104538202286, 0.2810676693916321, 0.05068429931998253, -0.03747183084487915, -0.14912204444408417, -0.07735303044319153, -0.3887142241001129, -0.5824638605117798, 0.6040551662445068, -0.23705381155014038, 0.3241832554340...
(set-buffer-modified-p nil) (setq buffer-read-only t) (ediff-buffers (current-buffer) orig-buffer))) ((equal answer "k") (set-buffer-modified-p nil)
[ -0.19803686439990997, -0.2169387936592102, 0.5787174105644226, 0.11674128472805023, 0.15544390678405762, 0.24251022934913635, 0.027375150471925735, -0.3620262145996094, -0.0476979985833168, -0.32561495900154114, -0.36739078164100647, 0.3874286115169525, -0.29081031680107117, -0.03407348319...
ad-do-it) (t (save-buffer) ad-do-it))) ad-do-it))) ````
[ -0.16886469721794128, 0.32389768958091736, 0.5724682807922363, -0.3805457353591919, 0.026287004351615906, 0.007755754515528679, 0.05831533670425415, -0.25419938564300537, 0.31394606828689575, -0.35508692264556885, -0.5654420852661133, 0.5869325399398804, -0.49884313344955444, 0.30242523550...
Is it possible to do a simple count(\*) query in a PHP script while another PHP script is doing insert...select... query? The situation is that I need to create a table with ~1M or more rows from another table, and while inserting, I do not want the user feel the page is freezing, so I am trying to keep update the co...
[ 0.08709799498319626, -0.07770074158906937, 0.2830299139022827, 0.09039349853992462, -0.07176442444324493, 0.056993190199136734, 0.19319292902946472, -0.19580543041229248, -0.20288193225860596, -0.39172816276550293, 0.32685360312461853, 0.12506772577762604, -0.12016485631465912, -0.13919050...
to do a series of insert with data fetched from a previous select query while having about the same performance as insert...select... query? The environment is php4.3 and MySQL4.1. If you're doing a single INSERT...SELECT, then no, you won't be able to get intermediate results. In fact this would be a Bad Thing, as us...
[ -0.06803733110427856, -0.14473412930965424, 0.19380666315555573, 0.05063457414507866, -0.12545594573020935, -0.07538489252328873, 0.026342811062932014, -0.15008729696273804, -0.2307690531015396, -0.5950822830200195, 0.14850008487701416, 0.5390120148658752, -0.3488852083683014, -0.089075565...
but not all of the rows from an INSERT...SELECT when I've aborted it part of the way through. You haven't said which engine your table is using, though.
[ 0.20362265408039093, 0.2005319595336914, 0.1330023854970932, -0.03457379341125488, 0.22596429288387299, 0.36570805311203003, -0.3669680058956146, 0.12220073491334915, -0.29108014702796936, -0.446633517742157, 0.4212847948074341, 0.44197434186935425, 0.20119500160217285, 0.10806439816951752...
Okay I have this RewriteRule which is supposed to redirect any request for the file base.css to {folder of .htacces file}/include/style/base.css, but is just keeps redirecting in an infinite loop, I thought the L parameter would make sure that wouldn't happen. ``` RewriteRule (.*)/base.css$ include/style/base.css [L,N...
[ 0.28741082549095154, 0.12977583706378937, 0.927387535572052, -0.15147070586681366, 0.041435081511735916, -0.2034558653831482, 0.32127776741981506, -0.03734876587986946, -0.11438854783773422, -0.5139462351799011, 0.28952348232269287, 0.4154190123081207, -0.24734118580818176, 0.2461873143911...
of the server!) You have Redirect and Rewrite confused. A redirect is a HTTP status code that tells the browser to go to another URL. You actually just want to Rewrite the location to another file location. Try ``` RewriteRule (.*)/(.*).css$ /include/style/$2.css [L,NC] ``` If this doesn't work try adding the follow...
[ 0.11406315863132477, -0.020567383617162704, 0.7916577458381653, -0.15829551219940186, 0.07129374146461487, -0.3217112123966217, 0.6095104217529297, 0.00882705021649599, -0.17925891280174255, -0.8143818378448486, -0.28758102655410767, 0.3363773822784424, -0.5156320333480835, 0.3035320639610...
There is an executable that is dynamically linked to number of shared objects. How can I determine, to which of them some symbol (imported into executable) belongs ? If there are more than one possibility, could I silmulate ld and see from where it is being taken ? Have a look at [nm(1)](http://unixhelp.ed.ac.uk/CGI/m...
[ -0.029831288382411003, -0.29894885420799255, 0.44119417667388916, 0.10881274938583374, -0.23961815237998962, -0.08356432616710663, -0.06309205293655396, -0.21569040417671204, -0.3795563876628876, -0.5999683141708374, -0.3448753356933594, 0.2573781907558441, -0.651140570640564, -0.141400873...
In a bash script I execute a command on a remote machine through ssh. If user breaks the script by pressing Ctrl+C it only stops the script - not even ssh client. Moreover even if I kill ssh client the remote command is still running... How can make bash to kill local ssh client and remote command invocation on Crtl+c...
[ 0.0990799218416214, 0.13354673981666565, 0.04032643139362335, -0.2136099487543106, -0.4174758791923523, -0.222757950425148, 0.3782029449939728, -0.38796332478523254, -0.21617527306079865, -0.7083516716957092, -0.020800277590751648, 0.7163893580436707, -0.28426146507263184, 0.13699738681316...
We have a very important application, but so far no source code. The application was written in COBOL and a compiled version is in our production system and is running. However, we need to migrate to a new server, and new cobol compiler. We're under the impression that we need to recompile the code to get it to work o...
[ 0.3499666154384613, 0.59326171875, 0.2862919270992279, 0.03622228279709816, 0.15156924724578857, -0.17076002061367035, 0.06986719369888306, -0.03600353002548218, -0.02077031321823597, -0.5721313953399658, 0.11588902026414871, 0.6313053369522095, -0.2372562289237976, -0.10008599609136581, ...
we do? Time is not on our side, since we have to send our old server back to get credit for it. Ideas, suggestions, crazy or otherwise? (source control is obvious and its not up to me to do it, so save the lectures) In the short run it would probably be cheaper to arrange to keep the old server. In the semi-long run, ...
[ 1.043350338935852, 0.1680973768234253, -0.026881136000156403, 0.4262832999229431, 0.3994520902633667, -0.050529927015304565, 0.4077993631362915, -0.13890056312084198, 0.14703360199928284, -0.49628984928131104, -0.04779138043522835, 0.5682280659675598, 0.17404970526695251, 0.153808057308197...
Let's say I checked in a changelist (in Perforce) with lots of files and I'd like to revert the entire changelist. Is there an easy way to "revert" the entire changelist in one fell swoop? Currently I do something like this for each file in the changelist: * p4 sync //path/to/file#n (where "n" is the previous version...
[ 0.09759244322776794, -0.06438140571117401, 0.805867075920105, 0.0361090786755085, 0.13260237872600555, 0.2371966391801834, 0.11685870587825775, -0.27095118165016174, -0.5547601580619812, -0.48345762491226196, 0.08802374452352524, 0.5111820101737976, -0.06904061138629913, 0.1720271557569503...
to do this for you now. It's in the latest 2008.2 Beta, and so should be officially released the the next week or three. This [link](http://www.perforce.com/perforce/downloads/beta/index.html) gives details. It should be a lot simpler to use than the earlier answers, but I've not had the opportunity to try it myself...
[ 0.7112033367156982, -0.12810401618480682, 0.695676326751709, 0.06261106580495834, -0.15398941934108734, -0.15331166982650757, -0.01601002737879753, -0.21421313285827637, 0.07081308960914612, -0.4752214550971985, 0.16969561576843262, 0.32980436086654663, -0.12342870980501175, -0.19920958578...
What are my options for running Java 6 on OS X? I have an MacBook Pro Intel Core Duo running Mac OS X 10.4. Do I have any options for running Java 6 on this hardware and OS? Related questions: Which Macs (either current or forthcoming) support 64-bit computing? Are there any Apple laptops (either current or forthcom...
[ 0.12123294174671173, 0.17328937351703644, 0.11601471900939941, 0.08405370265245438, -0.0040750023908913136, 0.2473628968000412, 0.39403170347213745, 0.27638331055641174, -0.20033104717731476, -0.8025370836257935, -0.16232649981975555, 0.6501539945602417, -0.3679274916648865, -0.07555073499...
your computer is not 64-bit capable (see <http://en.wikipedia.org/wiki/Core_duo>). The first Macbook (Pro) and Mac mini are examples for that. However, as has been aforementioned with SoyLatte (<http://landonf.bikemonkey.org/static/soylatte/>) it is rather simple to get a running Java 6 on your Mac. I've walked throu...
[ 0.09040184319019318, -0.027828648686408997, 0.2230089157819748, -0.04261358454823494, -0.05742231756448746, -0.01908756047487259, 0.5874217748641968, -0.14965486526489258, -0.22209493815898895, -0.7797279953956604, -0.10117001831531525, 0.6812876462936401, -0.5655187964439392, -0.124250449...
If I understand correctly the .net runtime will always clean up after me. So if I create new objects and I stop referencing them in my code, the runtime will clean up those objects and free the memory they occupied. Since this is the case why then do some objects need to have a destructor or dispose method? Won’t the ...
[ -0.07332593202590942, 0.026216745376586914, 0.34071844816207886, 0.16116942465305328, 0.2141568660736084, -0.10724159330129623, 0.477776437997818, -0.1526668816804886, -0.2610970437526703, -0.7071296572685242, -0.43733683228492737, 0.4508548974990845, 0.021756857633590698, 0.63404220342636...
objects life, it’s the designated place to release those handles. The `Dispose` pattern is used to provide deterministic destruction of resources. Since the .net runtime garbage collector is non-deterministic (which means you can never be sure when the runtime will collect old objects and call their finalizer), a meth...
[ 0.12149514257907867, -0.02292574569582939, 0.13097013533115387, 0.27466851472854614, -0.027554767206311226, -0.2534635365009308, 0.25982603430747986, -0.07810826599597931, -0.5208210349082947, -0.45130643248558044, -0.14165373146533966, 0.5395287275314331, -0.3065734803676605, 0.4709221124...
needed might be a quick and dirty log method: ``` public void Log(string line) { var sw = new StreamWriter(File.Open( "LogFile.log", FileMode.OpenOrCreate, FileAccess.Write, FileShare.None)); sw.WriteLine(line); // Since we don't close the stream the FileStream finalizer will do that for // ...
[ -0.004981264006346464, -0.15173065662384033, 0.5720676779747009, -0.1940663754940033, 0.2847531735897064, -0.17044182121753693, 0.33514225482940674, -0.24307115375995636, -0.17799615859985352, -0.6355976462364197, -0.4277671277523041, 0.5764405727386475, -0.12545041739940643, 0.54970705509...
the method might be called again to write a log, but this time it will fail because the file is still locked. The correct way is to dispose the object when are done using it: ``` public void Log(string line) { using (var sw = new StreamWriter(File.Open( "LogFile.log", FileMode.OpenOrCreate, FileAccess.Wri...
[ 0.07378775626420975, -0.1932094842195511, 0.6667155027389526, -0.1605014055967331, 0.37247204780578613, -0.2061246931552887, 0.3708210587501526, -0.34964659810066223, -0.10080702602863312, -0.6709685325622559, -0.30451467633247375, 0.49781838059425354, -0.1394038051366806, 0.48995602130889...
and destructors mean the same thing; I do prefer to call c# destructors 'finalizers' since otherwise they tend to confuse people with C++ destructors, which unlike C#, are deterministic.
[ -0.2322404831647873, 0.32341283559799194, -0.024277640506625175, -0.16029521822929382, -0.45611605048179626, -0.006204197183251381, 0.19561117887496948, 0.011991212144494057, 0.029002241790294647, -0.3305198848247528, -0.5392068028450012, 0.7169985771179199, -0.23435264825820923, 0.2715301...
I added a text file to a testapp's solution and I want to read said file. I don't remember how to do this, I know it has to do with reflections but I need a push in the right direction. If you add the text file to a .ResX file, you can have all the benefits (dynamic updating, for instance) AND not need to worry about i...
[ 0.6221933960914612, -0.13285675644874573, 0.5052652359008789, 0.07576990872621536, 0.04905812814831734, -0.04199018329381943, 0.48187339305877686, -0.21602500975131989, -0.11712049692869186, -0.8507466316223145, 0.08787970244884491, 0.7894426584243774, 0.042092882096767426, 0.2606537342071...
I've recently updated an application to the 3.5 framework (from 2.0). The app links to Reporting Services (2005) remotely via an URL. This all works fine locally but when deployed to the dev server (win 2003) I'm getting a 403 error when attempting to call the report server. "You are not authorized to view this page ....
[ 0.37433892488479614, 0.43045881390571594, 0.41766873002052307, 0.04037073999643326, -0.49064093828201294, -0.37104010581970215, 0.6148671507835388, -0.09337254613637924, -0.30722716450691223, -0.48777809739112854, 0.3632284700870514, 0.5655447244644165, -0.1049075722694397, 0.2845982313156...
myself or just comment but anyway. Found the (or at least a) solution from another post. Apparently the reporting services root directory can get corrupted - how is not clear - but I deleted the ReportServer virtual directory and recreated it with the Reporting Services Configuration tool. It's working again, thanks ...
[ 0.5677435398101807, 0.12917765974998474, 0.39634254574775696, 0.15587732195854187, -0.3413407802581787, 0.11399807035923004, 0.6369161605834961, 0.16883979737758636, -0.09073974937200546, -0.1501530259847641, -0.0011222154134884477, 0.2584627568721771, -0.12149178981781006, 0.0228829067200...
I have an input file that I want to sort based on timestamp which is a substring of each record. I want to store multiple attributes of the The list is currently about 1000 records. But, I want it to be able to scale up a bit just in case. When I did it with a Linked List by searching the entire list for insertion i...
[ 0.33846166729927063, -0.19604501128196716, 0.31042733788490295, 0.11577565968036652, 0.04073915630578995, 0.1192612275481224, 0.06648215651512146, -0.33500388264656067, -0.313319593667984, -0.9469201564788818, 0.3415181338787079, 0.2762720584869385, 0.045329272747039795, 0.1575125604867935...
to be a little easier to me). The trouble that I'm running into is that I don't see many examples of implementing these sorts using objects rather than primitive data types. I could use either a vector or Linked list. The feedback that I've gotten from this site has been most helpful so far. I'm hoping that someone ca...
[ 0.5798161029815674, -0.013709395192563534, 0.1247345581650734, 0.2381933033466339, -0.31859081983566284, -0.05552452802658081, 0.5217574834823608, -0.07051605731248856, -0.18099834024906158, -0.7176112532615662, 0.14996254444122314, 0.482719361782074, -0.021120598539710045, -0.033166680485...
because I'm newbie at C++ :) Here's what my new code looks like (no sorting yet): ``` class CFileInfo { public: std::string m_PackLine; std::string m_FileDateTime; int m_NumDownloads; }; void main() { CFileInfo packInfo; vector<CFileInfo> unsortedFiles; vector<CFileIn...
[ 0.24483925104141235, -0.030841035768389702, 0.7634754776954651, -0.17933109402656555, 0.4096962511539459, -0.09932686388492584, 0.08161509037017822, -0.4435330331325531, -0.06461960822343826, -0.6417083740234375, -0.08764567226171494, 0.42136135697364807, -0.5437308549880981, 0.08569665253...
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 != unsortedFiles.end(); ++Iter ) { cout << " " <<...
[ -0.36200085282325745, -0.3321135640144348, 0.40348610281944275, -0.2409542351961136, 0.1609703004360199, 0.25807732343673706, -0.084360770881176, -0.38584908843040466, -0.41202467679977417, -0.5619555115699768, -0.33334654569625854, 0.07899493724107742, -0.7220210433006287, 0.2396670579910...
storage. So do arrays. Sorting can be O(NlogN). At 1000 elements you will begin to see a difference between O(N^2) and O(NlogN). At 1,000,000 elements you'll definitely notice the difference! It is possible under very special situations to get O(N) sorting. (For example: Sorting a deck of playing cards. We can create...
[ -0.12265333533287048, -0.04439203068614006, 0.14401642978191376, 0.11074133217334747, -0.18236660957336426, 0.08410295844078064, 0.04190678521990776, -0.3139532506465912, -0.5735524892807007, -0.8266823291778564, -0.17209036648273468, -0.0010917229810729623, -0.18716400861740112, 0.0025225...
you are going to sort on a date, either encode it as a long int representing seconds-since-epoch (mktime?), or at the very least use a ***"year/month/day-hour:minute:second.fraction"*** format. (And MAKE SURE everything is 2 (or 4) digits with leading zeros!) Comparing "6/22/2008-4:34" and "12/5/2007-14:54" will requir...
[ 0.018438255414366722, -0.19551675021648407, 0.3464226722717285, -0.18159916996955872, 0.2293153554201126, 0.3057151734828949, 0.002987214829772711, -0.1449812650680542, -0.37989354133605957, -0.4858790338039398, -0.08569128811359406, -0.044213421642780304, -0.029319938272237778, -0.0140457...
{ // Creating and Sorting a stack-based array. int d [10] = { 1, 4, 0, 2, 8, 6, 3, 5, 9, 7 }; PRINT(d,10); sort( d, d+10 ); PRINT(d,10); cout << endl; // Creating a vector. int eData [10] = { 1, 4, 0, 2, 8, 6, 3, 5, 9, 7 }; vector<int> e; for(int i=0; i<10; i++ ) e.push_back( eData[i] ); ...
[ -0.30942195653915405, -0.5378991365432739, 0.4085143208503723, -0.3390475809574127, -0.03969857841730118, 0.6384244561195374, -0.10050485283136368, -0.3920590579509735, -0.30524885654449463, -0.6765853762626648, -0.26101166009902954, 0.2567325830459595, -0.7123222947120667, -0.029239561408...
Data { public: string m_PackLine; string m_FileDateTime; int m_NumberDownloads; /* Lets simplify creating Data elements down below. */ Data( const string & thePackLine = "", const string & theDateTime = "", int theDownloads = 0 ) : m_PackLine ( thePackLi...
[ 0.09145567566156387, -0.23574469983577728, 0.5656034350395203, -0.0822611004114151, 0.5450200438499451, -0.02616194449365139, 0.30385342240333557, -0.6474389433860779, -0.17952825129032135, -0.44380277395248413, -0.43246543407440186, 0.38722509145736694, -0.33628958463668823, -0.1095907837...
m_FileDateTime ( theDateTime ), m_NumberDownloads ( theDownloads ) { } /* Can't use constructor with arrays */ void set( const string & thePackLine, const string & theDateTime, int theDownloads = 0 ) { m_PackLine
[ 0.201268270611763, -0.33190497756004333, 0.6652342081069946, -0.32614263892173767, 0.5066258907318115, -0.0799647644162178, 0.272722452878952, -0.8462775349617004, -0.16379329562187195, -0.3706398904323578, -0.20095743238925934, 0.63050776720047, -0.555516242980957, -0.2251814752817154, ...
= thePackLine; m_FileDateTime = theDateTime; m_NumberDownloads = theDownloads; } /* Lets simplify printing out down below. */ ostream & operator<<( ostream & theOstream ) const { theOstream << "PackLine=\"" << m_PackLine << "\" fileDateTime=\"" << m_FileDateTime
[ 0.30053240060806274, -0.09239727258682251, 0.8542889356613159, -0.41500353813171387, 0.3874558210372925, -0.052829720079898834, 0.2903671860694885, -0.5824227333068848, -0.019518490880727768, -0.9020513296127319, -0.23837241530418396, 0.5918567776679993, -0.42471274733543396, -0.2697944641...
<< "\" downloads=" << m_NumberDownloads; return theOstream; } /* * This is IT! All you need to add to use sort()! * Note: Sort is just on m_FileDateTime. Everything else is superfluous. * Note: Assumes "YEAR/MONTH/DAY HOUR:MINUTE" format. */ bool operator< ( const Data & the...
[ 0.47699806094169617, 0.08903174102306366, 0.5954131484031677, -0.0438011959195137, 0.34288495779037476, -0.28343021869659424, 0.4705374240875244, -0.3199513554573059, -0.2434217929840088, -0.7462722063064575, -0.12582096457481384, 0.23318158090114594, -0.08630960434675217, 0.22553297877311...
Rest of simplifying printing out down below. */ ostream & operator<<( ostream & theOstream, const Data & theData ) { return theData.operator<<( theOstream ); } /* Printing out data set. */ #define PRINT(DATA,N) for(int i=0; i<N; i++) { cout << "[" << i << "] " << DATA[i] << endl; } cout << endl; int main() {...
[ -0.22903713583946228, -0.047054145485162735, 0.8352877497673035, -0.30033135414123535, 0.1497371792793274, 0.3828738033771515, 0.13391755521297455, -0.5084925889968872, -0.26978152990341187, -0.740360677242279, -0.13155494630336761, 0.31167542934417725, -0.5951884984970093, -0.114025644958...