text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Is there a common way to get the current time in or with milliseconds? There is `os.time()`, but it only provides full seconds. In standard C lua, no. You will have to settle for seconds, unless you are willing to modify the lua interpreter yourself to have os.time use the resolution you want. That may be unacceptable...
[ 0.33859559893608093, -0.1941579133272171, 0.26576024293899536, -0.012676465325057507, 0.05749804154038429, 0.12223441898822784, -0.04888271540403366, -0.06894257664680481, -0.25301215052604675, -0.5658844709396362, -0.09935956448316574, 0.40123552083969116, -0.19190338253974915, -0.1708291...
new function that would give you the values you want, and require that dll be distributed with your code to whomever is going to be using it.
[ 0.30078741908073425, -0.4583505392074585, 0.31721872091293335, 0.3012734353542328, 0.03940816596150398, -0.1422257423400879, -0.1910945326089859, -0.2953733801841736, -0.25529059767723083, -0.511324942111969, -0.11620369553565979, 0.5542654395103455, -0.4151531755924225, 0.1153405159711837...
From what I've already read this appears to be impossible, but I wanted to see if anyone out there has a secret trick up their sleeve or at least a definitive "no". Supposedly a master page is really just a control for a content page to use, not actually the "master" of a content page. If I wanted to go from one cont...
[ 0.37150999903678894, -0.0991201102733612, 0.18184611201286316, 0.22091220319271088, -0.33613553643226624, -0.39430421590805054, 0.36568889021873474, 0.31998690962791443, -0.37571924924850464, -0.6260117292404175, 0.07889297604560852, 0.2630709707736969, -0.3279922604560852, 0.2338566035032...
to see if I could figure out how to change the current content page of a ContentPlaceHolder in the master page asynchronously, when a button is clicked on the master page. Is this possible, if so how? I don't know if you can between pages (.aspx) but it can definitely be done using UserControls. ASP.Net pages each ha...
[ 0.48461201786994934, -0.09081494063138962, 0.46294182538986206, 0.23630063235759735, -0.10486771166324615, -0.10406947880983353, 0.15044793486595154, 0.12159179896116257, -0.32793116569519043, -0.9001473188400269, -0.04593733325600624, 0.5128551721572876, -0.04049641266465187, 0.0758910179...
...> <ContentTemplate> <asp:PlaceHolder ...> </ContentTemplate> </ajax:UpdatePanel> ``` Search for UpdatePanel and tweak its settings to do what you want, then learn how to swap user controls in a placeholder.
[ 0.1957417130470276, -0.08898403495550156, 0.4274451732635498, 0.2667541801929474, 0.2724776566028595, -0.13563033938407898, -0.3123696446418762, 0.03495479375123978, 0.16119930148124695, -1.0093183517456055, -0.34263062477111816, 0.2729445695877075, -0.09761673957109451, -0.362023025751113...
I am comparing two almost identical folders which include hidden .svn folders which should be ignored and I want to continually quickly compare the folders as some files are patched to compared the difference without checking the unchanged matching files again. edit: Because there are so many options I'm interested in...
[ 0.6451138854026794, -0.2861044704914093, 0.061495039612054825, 0.3435104191303253, -0.18112319707870483, -0.18085457384586334, 0.39790627360343933, 0.06493884325027466, -0.038540344685316086, -0.5785324573516846, 0.49978139996528625, 0.6264609098434448, 0.07785704731941223, 0.2218638360500...
I have a hierarchy that I'd like to query with LinqToSql: Country -> Region -> City -> ZipCode Each entity holds both a reference to it's parent (eg. Region.Country) and a collection of it's children (eg. Region.Cities). I'd like to eager load each entity's parent along with Countries and Regions but lazy load citie...
[ -0.08832364529371262, -0.08925577253103256, 0.8235785365104675, 0.413896381855011, 0.07604090869426727, 0.027424326166510582, -0.1622215211391449, -0.05503375455737114, -0.36516401171684265, -0.5993384718894958, -0.07943183928728104, -0.1557769477367401, -0.05731482431292534, 0.46162182092...
join localized in dataContext.GetTable<ec_CountryLocalization>() on country.CountryID equals localized.CountryID let regions = GetRegions(country.CountryID) where localized.StatusID == 4 && localized.WebSiteID == this.webSiteID select new Country(country.CountryID) { CreatedDate = country.CreatedDate, IsD...
[ -0.49313193559646606, -0.24285012483596802, 1.221529245376587, 0.02765946090221405, 0.3304879367351532, -0.05560358613729477, 0.32976746559143066, -0.06429998576641083, -0.4099223017692566, -0.7313141822814941, -0.4816094934940338, -0.14104372262954712, -0.4066918194293976, 0.7825036644935...
select r; return ProjectRegion(query); } private IQueryable<Region> ProjectRegion(IQueryable<ec_Region> query) { var result = from region in query join localized in dataContext.GetTable<ec_RegionLocalization>() on region.RegionID equals localized.RegionID join country in ListCountries() on region.CountryID eq...
[ -0.3286806344985962, -0.5054801106452942, 0.8915764093399048, 0.10675329715013504, 0.17305700480937958, 0.1606759876012802, -0.005225402768701315, -0.14779901504516602, -0.29294469952583313, -0.7852785587310791, -0.5701386332511902, 0.0008960960549302399, -0.08320911973714828, 0.5114958286...
UrlKey = region.UrlKey }; return result; } ``` ... etc. ``` [TestMethod] public void DataProvider_Correctly_Projects_Country_Spike() { // Act Country country = dataProvider.GetCountry(1); // Assert Assert.IsNotNull(country); Assert.IsFalse(String.IsNullOrEmpty(country.Description)); Assert.IsTrue(c...
[ 0.03148948401212692, -0.11122617870569229, 0.7918602824211121, 0.16062618792057037, 0.1773977279663086, -0.14891104400157928, 0.4656326472759247, -0.4451853632926941, -0.09294614940881729, -0.5243639945983887, -0.06679052114486694, 0.25964754819869995, -0.014474598690867424, 0.163344189524...
creating properties. * between a Country and its Regions * between a Region and its Cities * between a Country and its Localizations * between a Region and its Localizations You're going to want to use [ToList](http://msdn.microsoft.com/en-us/library/bb342261.aspx) to seperate those operations you intend to be transl...
[ 0.23383381962776184, 0.11715078353881836, 0.507315993309021, 0.31929248571395874, 0.21136829257011414, -0.17315030097961426, 0.20204319059848785, -0.1812308430671692, -0.4943157732486725, -1.0003300905227661, -0.2738207280635834, 0.15170879662036896, -0.0517878383398056, 0.3298801481723785...
=> c.Regions); //bring in the localizations dlo.AssociateWith<ec_Country>(c => c.Localizations .Where(loc => loc.StatusID == 4 && loc.WebSiteID == this.webSiteID) ); dlo.AssociateWith<ec_Region>(r => r.Localizations); //set up the dataloadoptions to eagerly load the above. dataContext.DataLoadOptions = dlo; //Pull ...
[ -0.3783578872680664, -0.3260982632637024, 1.0434951782226562, 0.23560908436775208, 0.340724378824234, 0.038302186876535416, -0.15640905499458313, -0.33061808347702026, -0.5649614930152893, -0.4506918489933014, -0.5893504023551941, 0.22190798819065094, -0.10882047563791275, 0.36621472239494...
= r.Name, Text = r.Localizations.Single().Text, Cities = r.Cities.Select(city => ToCity(city)).ToLazyList(); } } ```
[ 0.2793859839439392, 0.005190664436668158, 0.2618185877799988, -0.17437131702899933, 0.09344743192195892, 0.1026856079697609, 0.10595908015966415, -0.04633098468184471, -0.27448803186416626, -0.5639361143112183, -0.6698165535926819, 0.2855749726295471, -0.5624425411224365, 0.520784974098205...
Following the directions at [this question](https://stackoverflow.com/questions/462270/get-file-icon-used-by-shell), I have some code running to extract icons from files and display them in a ListView set to details mode. I want to icons to display at 16 x 16, but when I have the ImageList size set to that the icons th...
[ 0.26514241099357605, 0.046323012560606, 0.6378400325775146, 0.027499644085764885, -0.13878922164440155, 0.09215701371431351, 0.2564721405506134, -0.1970089077949524, -0.4875089228153229, -0.8166188597679138, 0.1267566978931427, 0.7416051626205444, -0.14970022439956665, 0.10480035841464996,...
for smallimages and one for largeimages to get the best result I think. (The listview has two properties, LargeImageList and SmallImageList) Edit (found new information that worked when I tried): This version are using interpolation to get the smaller thumb, should be better. ```vb Dim BigIcon As Icon = Nothing ...
[ 0.32757648825645447, -0.4353000521659851, 0.8083420991897583, -0.11907303333282471, -0.18498291075229645, -0.05815429240465164, 0.19382663071155548, -0.5068559050559998, -0.542133092880249, -0.28602850437164307, -0.08731935918331146, 0.9399700164794922, -0.5176377296447754, -0.140748098492...
New Bitmap(16, 16) Dim g As Graphics = Graphics.FromImage(thumb) g.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic g.DrawImage(bm, New Rectangle(0, 0, 16, 16), New Rectangle(0, 0, bm.Width, bm.Height), GraphicsUnit.Pixel) g.Dispose() bm.Dispose() smallimages.Images.Add("1", th...
[ 0.10391761362552643, -0.3686593770980835, 0.8287776112556458, -0.10632964968681335, -0.3247124254703522, 0.2955518066883087, -0.11937744915485382, -0.6996806263923645, -0.6172275543212891, -0.707672655582428, -0.34937289357185364, 0.4391508400440216, -0.45563262701034546, 0.062665060162544...
I'm using bzr to access a Subversion repository. Which is great, but the repository uses quite a few svn:externals properties to bring in code from related projects. [Bzr-svn doesn't support svn:externals](http://bazaar-vcs.org/BzrForeignBranches/Subversion#limitations) yet. Is there a good way to work around this l...
[ 0.48802682757377625, 0.06326493620872498, 0.006132441107183695, 0.03130238503217697, -0.09158670157194138, -0.36384063959121704, 0.3869546949863434, 0.144506573677063, -0.2654319405555725, -0.30044883489608765, 0.0008688531233929098, 0.5408355593681335, -0.19285812973976135, 0.106608100235...
I challenge you :) ------------------ I have a process that someone already implemented. I will try to describe the requirements, and I was hoping I could get some input to the "best way" to do this. --- It's for a financial institution. I have a routing framework that will allow me to recieve files and send reques...
[ 0.7384426593780518, 0.12290588021278381, 0.3480214774608612, 0.40687716007232666, 0.03224954009056091, 0.11418615281581879, -0.11593426018953323, -0.1413370966911316, -0.040650516748428345, -0.4783593416213989, 0.1898009479045868, 0.46897318959236145, 0.013053604401648045, 0.06375025957822...
identification of a person and an amount (+ lots of other stuff). * This file is 99% of the time im below 100MB ( around 800bytes per line, ie 2,2mb = 2600lines) * Once a year we have 1-3 gb of data instead. * Running on an "appserver" * I can fork subprocesses as I like. (within reason) * I can not ensure consistency ...
[ 0.23669691383838654, 0.06852024048566818, 0.5439239144325256, 0.030265677720308304, 0.01930197887122631, 0.17815758287906647, 0.597144603729248, -0.2202237844467163, -0.2821695804595947, -0.929159939289093, -0.08442100137472153, 0.21789582073688507, -0.13094308972358704, 0.0898139253258705...
that sending these getPerson request will crash my "process" when sending LOTS. * We're using java. **Requirements** * I must return a file with all the data + I must add some more info for somelines. (about 25-50% of the lines : 25.000 at least) * This info I can only get by doing a getPerson request via the framewo...
[ 0.4073003828525543, -0.07624054700136185, 0.6178772449493408, 0.29072991013526917, -0.33081722259521484, -0.009293092414736748, 0.7309359312057495, -0.07406609505414963, -0.2149582803249359, -0.8154802322387695, 0.12079344689846039, 0.533697247505188, -0.03428918495774269, -0.2414188534021...
starting from the top. ... How would you design this? *I will later add the current "hack" and my brief idea* **========== Current solution ================** It's running on BEA/Oracle Weblogic Integration, not by choice but by definition When the file is received each line is read into a database with ``` id, l...
[ 0.2824474275112152, -0.21524769067764282, 0.6313589215278625, 0.08947606384754181, 0.31910091638565063, -0.033623967319726944, 0.007711214479058981, -0.22614581882953644, -0.13442200422286987, -0.5084488391876221, -0.118169866502285, 0.35440632700920105, -0.17532280087471008, 0.13808131217...
quaters of the rows has been Processed a writer process startes by select 100 rows from that database, writing them to file and updating their status to 'Written'. When all is done the new file is handed back to the routing framework, and a "im done" email is sent to the operations crew. The 4 processing processes can...
[ 0.1109565868973732, -0.038298554718494415, 0.8022482395172119, -0.03456162288784981, 0.10409308969974518, 0.569373369216919, -0.04565448686480522, -0.2320212721824646, -0.20371828973293304, -0.6742151975631714, -0.30920425057411194, -0.00796918012201786, -0.2718765139579773, 0.395056873559...
the rows are atomic, not the batches. Feed all the lines as separate atomic transactions through an asynchronous FIFO message queue, with a good mechanism for detecting (and appropriately logging and routing failures). Then you can deal with the problems strictly on an exception basis. (A queue table in your database ...
[ 0.16522830724716187, -0.23019610345363617, 0.636324942111969, 0.22550925612449646, 0.14246806502342224, 0.26882046461105347, -0.12873463332653046, 0.16675232350826263, -0.3621664047241211, -0.35166049003601074, 0.13475702702999115, 0.24312849342823029, -0.4811224043369293, 0.07511524111032...
I've written a DLL that may be used in a number of ways (referenced by ASP.NET web sites, WinForms, etc.). It needs to load its data from several delimited files that will be automatically updated on a semi-regular basis. For performance reasons, I'm loading the data into a static object (a generic List), and only want...
[ 0.5799760222434998, 0.00037054604035802186, 0.24303387105464935, 0.15694110095500946, 0.09032217413187027, -0.20810119807720184, 0.07839188724756241, -0.04822797328233719, -0.22351235151290894, -0.6793158054351807, -0.0026909001171588898, 0.43000727891921997, -0.18524181842803955, 0.115861...
unreliable - it periodically misses file updates. Since I can't count on the DLL running inside a web site, the ASP.NET CacheDependency option doesn't seem appropriate. Has anyone found a good solution to this sort of thing? Have you looked at the [Enterprise Library Caching application block](http://msdn.microsoft.com...
[ -0.26927876472473145, 0.292624294757843, 0.11606909334659576, 0.2576071321964264, 0.13653798401355743, -0.27861881256103516, 0.6515331268310547, 0.22164884209632874, -0.15798093378543854, -0.29233357310295105, 0.07169165462255478, 0.45274263620376587, -0.3638146221637726, -0.05614407360553...
I have any number of anchor links on a page that need to execute the same block of JavaScript code on click, and that code needs to be associated with one value. There are several of these on each page. I usually use a hidden input to store the value in a one-to-one relationship, but what is the best way to associate s...
[ 0.675258219242096, 0.2320612668991089, 0.3217034339904785, 0.05563591048121452, 0.08440051972866058, 0.07566061615943909, -0.10810023546218872, -0.19570036232471466, -0.3293640613555908, -0.5589156150817871, 0.09675063192844391, 0.2611370384693146, -0.2929953932762146, 0.32277581095695496,...
groups of links for a bunch of products. How do I draw those associations? I'm using Mootools and bind events by class, so I don't want a bunch of inline event function calls that pass arguments. If your already using Mootools, a good way to do this is using the element's [data storage](http://mootools.net/docs/Element...
[ -0.15578213334083557, -0.1728561371564865, 0.4669596552848816, -0.10293442755937576, 0.03242446854710579, -0.07952014356851578, 0.11511337012052536, -0.40382370352745056, -0.11567147821187973, -0.6123480796813965, -0.15310780704021454, 0.4135162830352783, -0.616192638874054, 0.273095726966...
formatting): ``` <a href='ViewProduct.php?ProductID=7#pid:7'>link</a> //in your js (above) var pid = el.get('href').split('#')[1].split(':')[1]; el.store('productID', pid); ```
[ 0.0879986360669136, -0.05768788233399391, 0.8643471002578735, -0.3093481659889221, 0.10579974949359894, 0.13048474490642548, 0.09856085479259491, -0.3610181510448456, -0.16545313596725464, -0.6377588510513306, -0.5823807716369629, 0.6459915637969971, -0.36346906423568726, 0.103054784238338...
What are the underlying transformations that are necessary to convert data in a little-endian system into network byte order? For 2 byte and 4 byte data there are well-known functions (such as htons, ntohl, etc.) to encapsulate the changes, what happens for strings of 1 byte data (if anything)? Also, Wikipedia implies...
[ 0.034843847155570984, 0.12344177067279816, 0.22689808905124664, -0.030810516327619553, -0.46719831228256226, 0.0005547871696762741, 0.23995132744312286, 0.04193451255559921, -0.36183568835258484, -0.5833891034126282, -0.2964368164539337, 0.41724684834480286, -0.23052482306957245, 0.2771199...
old essay -- does that still apply? Are byte order markers like the ones found at the beginning of Java class files still necessary? And finally, is 4-byte alignment necessary for network-byte order? Let's say you have the ASCII text "BigE" in an array `b` of bytes. ``` b[0] == 'B' b[1] == 'i' b[2] == 'g' b[3] == '...
[ -0.21116232872009277, 0.11738647520542145, 0.6187819242477417, 0.16970515251159668, -0.22591428458690643, -0.16072948276996613, -0.1186850294470787, -0.2864651381969452, -0.12850631773471832, -0.5134885907173157, -0.07804665714502335, 0.5143314003944397, -0.04246322065591812, 0.04842114821...
<< 16) + ('B' << 24) ``` on a big endian platform. If you convert each 16-bit work separately, you'd get neither of these ``` 'i' + ('B' << 8) + ('E' << 16) + ('g' << 24) ``` which is why `ntohl` and `ntohs` are both required. In other words, `ntohs` swaps bytes within a 16-bit short, and `ntohl` reverses the ...
[ 0.10870615392923355, 0.23672273755073547, 0.2628447413444519, -0.1992836445569992, -0.2517658770084381, 0.27524635195732117, 0.19891862571239471, -0.3735789358615875, -0.037473589181900024, -0.2765982151031494, -0.3496869206428528, 0.42017659544944763, -0.4370855391025543, 0.22267520427703...
Is it possible to delete a single message from a MSMQ message queue ? I have a Queue object, a message (object) that I have got to by peeking and the ID of the message, I can see a way of deleting (or purging) the entire queue, but I can't see a way to delete the message on it's own, I've tried receiving the message on...
[ 0.0339018888771534, -0.10991767048835754, 0.34269195795059204, 0.21848630905151367, -0.11523078382015228, 0.19604822993278503, 0.5162660479545593, 0.16530169546604156, -0.4490498900413513, -0.5389328002929688, -0.07826954126358032, 0.3754761815071106, -0.2013382911682129, 0.292902469635009...
I've a table [File] that has the following schema ``` CREATE TABLE [dbo].[File] ( [FileID] [int] IDENTITY(1,1) NOT NULL, [Name] [varchar](256) NOT NULL, CONSTRAINT [PK_File] PRIMARY KEY CLUSTERED ( [FileID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ...
[ 0.2218126803636551, 0.31306496262550354, 0.8299238085746765, -0.17607176303863525, 0.022847600281238556, -0.07061362266540527, -0.0942060723900795, -0.4348442852497101, -0.28372371196746826, -0.6647530794143677, -0.12921492755413055, 0.16233082115650177, -0.32693585753440857, 0.38319095969...
if the Name is already in use if so then use that record else create a new record. But when I stress test the code with many threads executing the stored procedure at once I get different errors. This version of the code will create a deadlock and throw a deadlock exception on the client. ``` CREATE PROCEDURE [dbo]....
[ 0.17831699550151825, 0.17290478944778442, 0.4004549980163574, -0.0938032865524292, 0.14259523153305054, -0.15695270895957947, 0.31331345438957214, -0.5115734934806824, -0.3409598767757416, -0.5231436491012573, -0.07136601954698563, 0.41569122672080994, -0.48147454857826233, 0.6046826839447...
FROM [dbo].[File] WHERE [Name] = @Name IF @@ROWCOUNT=0 BEGIN INSERT INTO [dbo].[File]([Name]) VALUES (@Name) SELECT @FileID = [FileID] FROM [dbo].[File] WHERE [Name] = @Name END SELECT * FROM [dbo].[File] WHERE [FileID] = @FileID COMMIT TRANSACTION xact_File_Create GO ...
[ 0.18424220383167267, 0.13506732881069183, 0.272537499666214, -0.35311251878738403, -0.31325429677963257, 0.13647596538066864, 0.12649443745613098, -0.8920198082923889, 0.0701816976070404, -0.4172321557998657, -0.29349812865257263, 0.3200450539588928, -0.5877230167388916, 0.3847353160381317...
BEGIN TRANSACTION xact_File_Create SET NOCOUNT ON DECLARE @FileID int SELECT @FileID = [FileID] FROM [dbo].[File] WHERE [Name] = @Name IF @@ROWCOUNT=0 BEGIN INSERT INTO [dbo].[File]([Name]) VALUES (@Name) SELECT @FileID = [FileID] FROM [dbo].[File] WHERE [Name] = @Name ...
[ 0.21798260509967804, 0.19123575091362, 0.24372197687625885, -0.35170602798461914, -0.23818540573120117, -0.0013694532681256533, 0.07745195925235748, -0.6544593572616577, -0.0016066055977717042, -0.4871034622192383, -0.36223211884498596, 0.40658608078956604, -0.4971860647201538, 0.277667135...
wondering what the right way to do this type of action is? In general this is a pattern I'd like to use where the column data is unique in either a single column or multiple columns and another column is used as the key. Thanks If you are searching heavily on the Name field, you will probably want it indexed (as uniq...
[ 0.44668179750442505, -0.16386693716049194, 0.22900812327861786, 0.03177064657211304, -0.11170299351215363, 0.05732709541916847, -0.0046609570272266865, -0.18589621782302856, -0.44120994210243225, -0.5833478569984436, 0.2617395520210266, 0.4288095235824585, -0.3694429099559784, 0.1867585778...
zero (this will prevent SQL from retaining any locks on the table from the search phase, as no columns are selected). You are on the right course with the SERIALIZABLE level, as your action will impact subsequent queries success or failure with the Name being present. The reason the version without that set causes du...
[ 0.22866502404212952, 0.15947143733501434, 0.12014786154031754, 0.0651918426156044, 0.20622293651103973, -0.19423942267894745, 0.13609232008457184, -0.04089923948049545, -0.3359355330467224, -0.1494705229997635, 0.22694696485996246, 0.33779096603393555, -0.4705699682235718, 0.56768405437469...
time. When you load the server down in a SERIALIZABLE transaction, everything else will have to wait for the operation to complete. The index *should* make the operation fast, but only testing will indicate if it is fast enough. Note that you can respond to the failed transaction by resubmitting: in real world situatio...
[ -0.07701485604047775, -0.1429094821214676, 0.5504338145256042, 0.12231262028217316, 0.15813162922859192, -0.07006765902042389, 0.09571316838264465, -0.08170498162508011, -0.6858353614807129, -1.013631820678711, -0.13453476130962372, 0.4246569573879242, -0.40819886326789856, 0.2803303599357...
another exact match was posted within milliseconds of the first. *Very Rare* I would expect this last case to be truly exceptional, so using an exception to capture this very rare case would be preferable to engaging SERIALIZABLE, which has serious performance consequences. If you do really have an expectation that ...
[ 0.22809642553329468, -0.03168720752000809, 0.28513625264167786, 0.42524564266204834, -0.24701295793056488, -0.12197421491146088, 0.14261260628700256, 0.07193901389837265, -0.12706556916236877, -0.850560188293457, 0.20802101492881775, 0.38932058215141296, -0.17733728885650635, 0.04583912715...
Given a string with replacement keys in it, how can I most efficiently replace these keys with runtime values, using **Java**? I need to do this often, fast, and on reasonably long strings (say, on average, 1-2kb). The form of the keys is my choice, since I'm providing the templates here too. Here's an example (please...
[ 0.3505834937095642, 0.055609311908483505, 0.20202688872814178, 0.12162581086158752, 0.02450585551559925, -0.2680845558643341, 0.0440855547785759, -0.12305662781000137, -0.2933543920516968, -0.7987611293792725, -0.22292160987854004, 0.6400380730628967, -0.1299189329147339, -0.01276776846498...
key here is *fast*. Any ideas? ``` <?xml version="1.0" encoding="utf-8"?> <envelope version="2.3"> <delivery_instructions> <delivery_channel> <channel_type>@CHANNEL_TYPE@</channel_type> </delivery_channel> <delivery_envelope> <chan_delivery_envelope> <queue_name>@ADDRESS@</queue_name>...
[ -0.14393357932567596, -0.17151767015457153, 0.4597070813179016, -0.0688108503818512, -0.0679171085357666, 0.07391189783811569, -0.012705591507256031, -0.2853914499282837, -0.013306348584592342, -0.6668950319290161, -0.18916055560112, 0.5844794511795044, -0.12002089619636536, 0.069243602454...
in [Matcher](http://java.sun.com/javase/6/docs/api/java/util/regex/Matcher.html) looks like it might be useful, although I can't vouch for its speed. Here's the sample code from the Javadoc: ``` Pattern p = Pattern.compile("cat"); Matcher m = p.matcher("one cat two cats in the yard"); StringBuffer sb = new StringBuff...
[ 0.16228421032428741, -0.2273482233285904, 0.24726344645023346, -0.32618194818496704, -0.14359614253044128, 0.028830040246248245, 0.22107946872711182, -0.940735399723053, -0.19433750212192535, -0.8541469573974609, 0.009547021239995956, 0.16517779231071472, -0.7559815049171448, -0.0147682530...
I am reading the book 'Practical Common Lisp' by Peter Seibel. In Chapter 6, "Variables" sections "Lexical Variables and Closures" and "Dynamic, a.k.a. Special, Variables". <http://www.gigamonkeys.com/book/variables.html> My problem is that the examples in both sections show how (let ...) can shadow global variables ...
[ -0.16739115118980408, 0.012035146355628967, 0.14592745900154114, -0.17154648900032043, -0.046887971460819244, -0.02338193729519844, 0.4807015061378479, -0.16623033583164215, -0.274558961391449, -0.43898752331733704, -0.23265323042869568, 0.4766903817653656, -0.5919050574302673, -0.18937407...
(foo)) (foo)) CL-USER> (foo) Before assignment X: 10 After assignment X: 11 NIL CL-USER> (bar) Before assignment X: 11 After assignment X: 12 Before assignment X: 20 After assignment X: 21 Before assignment X: 12 After assignment X: 13 NIL ``` I feel like there is nothing special is going on here. The outer *...
[ 0.18876256048679352, 0.3747166395187378, 0.7340256571769714, -0.13834872841835022, -0.08489909023046494, -0.28417664766311646, 0.057267386466264725, -0.05359632149338722, -0.22200290858745575, -0.08227048814296722, -0.09619622677564621, 0.6560488939285278, -0.44866427779197693, 0.188864603...
it binds *x* it's > supposed to create a dynamic binding > rather than a normal lexical binding? > It knows because the name has been > declared special.12 The name of every > variable defined with DEFVAR and > DEFPARAMETER is automatically declared > globally special. What would happen if *let* would bind *x* using *...
[ 0.17999324202537537, -0.15555323660373688, 0.5343722105026245, 0.09943737834692001, -0.3149845600128174, -0.2577764391899109, 0.257373571395874, -0.27174481749534607, -0.38624536991119385, -0.4664721190929413, -0.1412224918603897, 0.4115385413169861, -0.3610338568687439, 0.1295642256736755...
the system looks to where the function is **called** to find the value for the free variable. Variables in Common Lisp are all lexical by default; however, dynamically scoped variables can be defined at the top level using **defvar** or **defparameter**. **A simpler example** *lexical scoping (with setq):* ``` (setq...
[ -0.3654475808143616, -0.21621856093406677, 0.6281742453575134, -0.0940382108092308, -0.019719157367944717, -0.05496373400092125, 0.344955176115036, -0.2267163246870041, 0.07413811981678009, -0.5053654313087463, -0.37599220871925354, 0.6871006488800049, -0.6279515624046326, -0.2900172173976...
find the lexical value defined at the top level. It then checks to see if the variable is supposed to be dynamic. If it is, then foo looks to the calling environment, which, in this case, uses let to overshadow the value of X to be 4. *(note: this is an oversimplification, but it will help to visualize the difference ...
[ 0.12169300019741058, -0.15509670972824097, 0.31614068150520325, -0.3528048098087311, 0.153849259018898, -0.08530140668153763, 0.4245969355106354, -0.06919022649526596, -0.11248663812875748, -0.22090134024620056, -0.27378928661346436, 0.6814417243003845, -0.46752044558525085, -0.20348292589...
I know that I can `Map(x => x.GroupName).WithUniqueConstraint()` for a single property. But how do create a composite unique constraint in fluent nHibernate (where the unique constraint operates on the combination of two columns)? In the latest version that I have used, it is`UniqueKey("KeyName")`that does this. ``` ...
[ -0.2915269434452057, 0.24990813434123993, 0.13340692222118378, -0.27525439858436584, -0.25195029377937317, 0.11461951583623886, 0.21687622368335724, -0.0921909287571907, -0.17964930832386017, -0.7045167684555054, -0.14619363844394684, 0.41851991415023804, -0.1490199863910675, 0.03437448665...
I have a web application that was originally written on .Net 1.1 Framework. I have since tried you upgrade it to .Net 3.5 Framework. I am now getting this javascript error throw on my page and for the life of me can't figure out exactly why. I have target the application for the .Net 3.5 framework, and even deleted an...
[ 0.48502692580223083, 0.4422508180141449, 0.19920654594898224, -0.11672474443912506, -0.14763066172599792, -0.286546915769577, 0.5428513884544373, 0.06827940791845322, -0.0884515717625618, -0.8820475339889526, 0.1521453857421875, 0.5294647812843323, -0.1366254687309265, 0.2537679970264435, ...
same error. **Resolution** It was an old component art javascript library that was throwing the error. I tend to use FireBug in Firefox - it allows you to see the contents of each dynamic .js file - you'll probably find that one of them is producing either a 404 or a 500 Internal Server Error. Without knowing which ...
[ 0.23811091482639313, 0.15829288959503174, 0.071866974234581, 0.009758587926626205, -0.24825727939605713, -0.2568100094795227, 0.40799790620803833, 0.20515331625938416, -0.4281030297279358, -0.9208155870437622, 0.21246200799942017, 0.5855529308319092, -0.11850605905056, -0.01523751299828291...
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.We...
[ -0.12096502631902695, 0.33068689703941345, 0.28600385785102844, 0.043067216873168945, -0.16693054139614105, 0.20581823587417603, 0.545045793056488, -0.4656625986099243, -0.26081910729408264, -0.4457142949104309, -0.25828152894973755, 0.35077089071273804, -0.20423106849193573, -0.0890516638...
section with the same section from the original 1.1 web.config - that should get you on the right track.
[ 0.28382569551467896, -0.34725967049598694, 0.028965644538402557, 0.4954964816570282, 0.10183098167181015, -0.548211932182312, 0.16506248712539673, 0.283792108297348, -0.03873097896575928, -0.5581830739974976, -0.04344523698091507, 0.49355193972587585, 0.1949676126241684, -0.134749695658683...
Does an auto-formatting tool exist for vi that'll allow me to define per language preferences? **edit:** I'm not looking for syntax highlighting. I'm looking for something that will apply formatting rules to my code. (Like brace positioning, spaces around oeprators, etc) Well, there's Vim which comes with a lot of lan...
[ 0.5917267203330994, 0.08570176362991333, 0.41934797167778015, 0.11770758777856827, -0.46890565752983093, 0.05296843498945236, 0.3056612014770508, 0.11930253356695175, -0.18353842198848724, -0.8247528672218323, 0.261481374502182, 0.6122140884399414, -0.43662822246551514, -0.0165247581899166...
I've been mucking around with GlassFish v3 prelude this evening. A couple of things I'm not sure about is how the security works. It installed like a dream, so the first thing I did was remove the anonymous account and setup an "admin" account with "mysecretpassword" and specified the asadmin group for this user in th...
[ 0.23310843110084534, 0.14047904312610626, 0.7218666672706604, -0.0012642224319279194, -0.15502984821796417, 0.03081679157912731, 0.15784603357315063, 0.14212429523468018, 0.034992288798093796, -0.43039757013320923, 0.14129377901554108, 0.5191825032234192, 0.045551929622888565, 0.1755710095...
**asaadmin login -p 4848** which created a password file in my documents and then stop-domain started working! So the questions: 1) Is it possible to get stop-domain to prompt for a user/password? 2) This whole business of having a file with a (hashed) password doesn't sound great to me - why did they do it this way...
[ 0.31694042682647705, 0.11902917921543121, 0.544396162033081, 0.2642800509929657, -0.18844322860240936, -0.229895681142807, 0.40095099806785583, -0.07480932772159576, -0.13851486146450043, -0.526725709438324, -0.11048956215381622, 0.5065549612045288, -0.22297154366970062, 0.1507215052843094...
upon a "master-password" file which is used to control access to the core admin commands (notably asadmin). This master password is used to encrypt assorted bits within the GF system and configuration. By default, it's store in the file $domain-dir/master-password. If that file exists, then asadmin will not prompt fo...
[ 0.1890091747045517, 0.1670745611190796, 0.5473417043685913, -0.07473976910114288, -0.001265511498786509, -0.13476920127868652, 0.13937699794769287, -0.22745710611343384, 0.06290356069803238, -0.6121607422828674, -0.40081101655960083, 0.6128271222114563, -0.1455925852060318, 0.4530450701713...
create a domain, it asks you for an admin name and password. This information is stored in ~/.asadminpass file. So, in the simple case of a local install, you can use asadmin without passwords or user information. If you delete that file, then you will be prompted for a user and password. The admin passwords are ma...
[ 0.42322900891304016, 0.11639142036437988, 0.8494716286659241, 0.1430227905511856, -0.008755506947636604, -0.042084209620952606, 0.15074442327022552, -0.28852227330207825, 0.014305204153060913, -0.7086347341537476, -0.2186218500137329, 0.07307928055524826, -0.26038628816604614, 0.4043224751...
for users of the admin console. There is also an empty "file" realm for use by applications. Out of the box, Glassfish also supports and LDAP realm and a JDBC realm where credentials are stored in an LDAP and RDBMS respectively. The Glassfish website and forums are currently the best resources available for this. It's...
[ 0.0919187068939209, 0.11059195548295975, 0.6008443236351013, 0.19129110872745514, -0.12127704173326492, -0.22219248116016388, 0.24836166203022003, -0.029262982308864594, -0.04736790433526039, -0.6470025181770325, 0.12926436960697174, 0.4160187840461731, -0.22514979541301727, 0.128673657774...
For some reason when I check on Google Webmaster Tool's "Analyze robots.txt" to see which urls are blocked by our robots.txt file, it's not what I'm expecting. Here is a snippet from the beginning of our file: ``` Sitemap: http://[omitted]/sitemap_index.xml User-agent: Mediapartners-Google Disallow: /scripts User-ag...
[ 0.3678200840950012, 0.2427704781293869, 0.4470347762107849, 0.25086337327957153, -0.23011144995689392, -0.4028721749782562, 0.5240811109542847, -0.10206661373376846, -0.0038513634353876114, -0.4816616475582123, -0.22096049785614014, 0.6064283847808838, -0.223880797624588, -0.13635177910327...
other url I put in from the disallowed urls under the second user-agent directive are NOT blocked! I'm wondering if my comment or using absolute urls are screwing things up... Any insight is appreciated. Thanks. The reason why they are ignored is that you have the fully qualified URL in the `robots.txt` file for `Dis...
[ 0.34483540058135986, 0.2524701952934265, 0.28957656025886536, 0.3374520242214203, -0.1729101836681366, -0.30563879013061523, 0.54537433385849, 0.01402482483536005, -0.09347759932279587, -0.7065532207489014, -0.09719131886959076, 0.7351590991020203, -0.18551015853881836, -0.2233794629573822...
file every 24 hours in average.
[ 0.5342296361923218, 0.4047543704509735, 0.20426641404628754, -0.27494120597839355, 0.0035593800712376833, 0.09474177658557892, 0.4741237759590149, 0.03889547660946846, -0.30940330028533936, -0.5375123620033264, -0.4070047438144684, 0.34789374470710754, 0.05901620164513588, -0.4230546653270...
Can anyone recommend some best-practices on how to tackle the problem of starting to UnitTest a large existing CodeBase? The problems that I'm currently facing include: * HUGE code base * ZERO existing UnitTests * High coupling between classes * Complex OM (not much I can do here - it's a complex business domain) * La...
[ 0.4914919435977936, 0.3867036700248718, -0.10554571449756622, 0.1821618378162384, -0.12202165275812149, -0.19345122575759888, 0.3751203119754791, -0.0418471060693264, -0.2788648307323456, -0.846337616443634, 0.2987448573112488, 0.47035089135169983, 0.19990529119968414, 0.3757376968860626, ...
you recommend starting the refactoring and writing test on the Domain classes, or on tier classes (logging, utilities, etc)? First, I second the "Working Effectively with Legacy Code" recommendation Jeffrey Frederick gave. As you stated in the question, you cannot change your code because you currently have no unit t...
[ 0.23492160439491272, -0.22084851562976837, -0.47657665610313416, 0.2358320653438568, 0.19897118210792542, -0.04717938229441643, 0.18751484155654907, -0.2857922315597534, 0.15539191663265228, -0.7061797380447388, 0.07269325852394104, 0.7498785257339478, 0.0667264461517334, 0.173608794808387...
modify the code. However, putting your HUGE code base under test is an enormous effort, highly risked, and you'll probably burn out the team doing this as they will have to produce strong efforts with low reward in terms of test coverage. Putting the entire code base under test is an endless effort. Instead, **deve...
[ 0.7072338461875916, 0.23541633784770966, -0.1487063616514206, 0.3572666347026825, 0.12481647729873657, -0.16715171933174133, 0.6853432655334473, -0.20956137776374817, -0.27964696288108826, -0.7032400965690613, -0.08212481439113617, 0.6360874176025391, -0.023915046826004982, 0.1217916607856...
hard the first times, but it will get easier once you'll have some unit testing environment ready to be setup.
[ 0.27672478556632996, 0.17058956623077393, -0.15503543615341187, 0.08134311437606812, 0.04414539411664009, -0.004566543735563755, 0.47544729709625244, 0.07911258190870285, -0.06520893424749374, -0.5345174670219421, -0.15236692130565643, 0.8771706819534302, 0.51360023021698, -0.3167480826377...
I have a Python function that takes a numeric argument that **must** be an integer in order for it behave correctly. What is the preferred way of verifying this in Python? My first reaction is to do something like this: ``` def isInteger(n): return int(n) == n ``` But I can't help thinking that this is 1) expen...
[ 0.3380761444568634, 0.32651516795158386, -0.2096806764602661, -0.3086155951023102, -0.4708728790283203, 0.034265805035829544, 0.3780764639377594, -0.23051443696022034, -0.022229904308915138, -0.42061272263526917, 0.23024490475654602, 0.7828879356384277, -0.40074583888053894, 0.202794626355...
the application in question works with IPv4 prefixes, sourcing data from flat text files. If any input is parsed into a float, that record should be viewed as malformed and ignored. ``` isinstance(n, int) ``` If you need to know whether it's definitely an actual int and not a subclass of int (generally you shouldn't ...
[ 0.023104898631572723, 0.2116793990135193, 0.2591255307197571, 0.01735127530992031, -0.04352637752890587, -0.1708141565322876, 0.1898186206817627, -0.31409719586372375, -0.0718645453453064, -0.4710957705974579, -0.198613703250885, 0.41922006011009216, -0.4061864912509918, -0.017458921298384...
How can I convert seconds into (Hour:Minutes:Seconds:Milliseconds) time? Let's say I have 80 seconds; are there any specialized classes/techniques in .NET that would allow me to convert those 80 seconds into (00h:00m:00s:00ms) format like `Convert.ToDateTime` or something? For **.Net <= 4.0** Use the TimeSpan class. ...
[ 0.32128190994262695, -0.38899293541908264, 0.5112576484680176, 0.03167150914669037, 0.17920434474945068, 0.14235526323318481, 0.3679831326007843, -0.2118435800075531, -0.20079849660396576, -0.6971044540405273, 0.1465333253145218, 0.2761214077472687, 0.3204524517059326, 0.21450291574001312,...
t.Seconds, t.Milliseconds); ``` (As noted by Inder Kumar Rathore) For **.NET > 4.0** you can use ``` TimeSpan time = TimeSpan.FromSeconds(seconds); //here backslash is must to tell that colon is //not the part of format, it just a character that we want in output string str = time .ToString(@"hh\:m...
[ 0.3590283691883087, -0.23965896666049957, 0.3711377680301666, 0.12455665320158005, 0.07115478068590164, 0.3710895776748657, 0.2569800913333893, -0.37439534068107605, -0.30378979444503784, -0.5787866115570068, -0.3066082000732422, 0.09060939401388168, -0.1309187412261963, 0.2882879972457886...
I've done a bit of functional programming, and I have a couple online references, so I'm finding basic Erlang programming pretty easy. But since I've done far more procedural/object-oriented programming than functional programming, I expect my Erlang code isn't very well styled or efficient. Can anybody recommend any...
[ 0.20702384412288666, 0.18963554501533508, 0.238297700881958, 0.21744443476200104, -0.04430069029331207, -0.24117854237556458, 0.23902177810668945, 0.09588344395160675, -0.07546326518058777, -0.4960068166255951, 0.06916284561157227, 0.5119072794914246, -0.00398432370275259, -0.3532640039920...
to learn tips and tricks about the language/OTP then I would recommend "Erlang in practice" screencasts: <http://www.pragprog.com/screencasts/v-kserl/erlang-in-practice> Although they are $40, they are high quality screencasts and I believe well worth the money.
[ 0.6522275805473328, 0.2542479932308197, 0.41541218757629395, -0.015164978802204132, 0.1287425309419632, -0.2766954004764557, 0.3182753026485443, 0.03287128359079361, -0.16815103590488434, -0.4118478000164032, 0.042392708361148834, 0.6987450122833252, 0.034017354249954224, -0.60324108600616...
I haven't play enough with this and usually use mocks, but I wonder what are the differences between this two and when to use one or the other on Rhino Mocks. Update: I also found the answer to my question in [Ayende's words](https://web.archive.org/web/20180820000356/http://ayende.com/Wiki/Rhino+Mocks+3.5.ashx?AspxA...
[ 0.5596393942832947, 0.40792059898376465, 0.16631822288036346, 0.07238031178712845, -0.5963879227638245, 0.3296765387058258, 0.7186316847801208, -0.4683568477630615, -0.12753675878047943, -0.346830815076828, 0.4696074426174164, 0.694548487663269, 0.01597241684794426, 0.14665532112121582, ...
occurred. A stub is an object that you use in order to pass to the code under test. You can setup expectations on it, so it would act in certain ways, but those expectations will never be verified. A stub's properties will automatically behave like normal properties, and you can't set expectations on them. If you want...
[ 0.4715828001499176, 0.28109997510910034, 0.1494389772415161, 0.2150094360113144, -0.029792973771691322, -0.1401318609714508, 0.47108253836631775, -0.2849265933036804, 0.11160936206579208, -0.48326411843299866, 0.014785487204790115, 0.1525762975215912, -0.04218596965074539, 0.21632917225360...
test, you will use a stub. IMPORTANT: A stub will never cause a test to fail. As per [this](http://web.archive.org/web/20101221112808/http://nermins.net/post/2008/08/22/RhinoMocks-35-AAA-Model.aspx) > ... Put simply there is a difference between Mock and Stub objects > and RhinoMocks recognizes that allowing us to ...
[ 0.5717206001281738, 0.1172657236456871, -0.28873416781425476, 0.25672847032546997, -0.2759583592414856, 0.19999843835830688, 0.6403418183326721, -0.5344153642654419, 0.10845947265625, -0.5940524935722351, 0.16053804755210876, 0.5480135083198547, -0.04648596793413162, -0.06448893249034882, ...
but rather allow us to “replace” the behavior, > state of the “fake”object in order to utilize a test scenario ...
[ 0.28059861063957214, 0.16439566016197205, -0.05088131129741669, 0.3996502757072449, 0.009970842860639095, -0.22220852971076965, 0.5238763093948364, 0.08909973502159119, 0.09868264943361282, -0.47302842140197754, -0.057689689099788666, 0.47390201687812805, -0.06816325336694717, 0.0210703238...
I have a medium sized Django project, (running on AppEngine if it makes any difference), and have all the strings living in .po files like they should. I'm seeing strange behavior where certain strings just don't translate. They show up in the .po file when I run make\_messages, with the correct file locations marked ...
[ 0.37298616766929626, 0.3587702512741089, 0.07188685983419418, -0.25625622272491455, 0.06928008794784546, -0.02547692507505417, 0.28729674220085144, 0.15386243164539337, -0.1959736943244934, -0.6473999619483948, -0.07628341019153595, 0.2844824194908142, -0.2940908670425415, -0.0923377126455...
don't see either the msgid or the msgstr present. Has anybody seen anything similar to this? Any idea what might be happening? * trans tags look correct * .po files look correct * no errors during compile\_messages As per [this](http://web.archive.org/web/20101221112808/http://nermins.net/post/2008/08/22/RhinoMocks...
[ 0.18609829246997833, 0.03130010887980461, 0.16064228117465973, 0.14711935818195343, -0.1623578667640686, 0.25205662846565247, 0.43646901845932007, -0.3334544897079468, -0.2264639288187027, -0.5408120155334473, 0.14275863766670227, 0.6393812894821167, -0.24148651957511902, -0.02680613473057...
> > > Stubs, on the other hand have a different purpose: they do not record > or verify expectations, but rather allow us to “replace” the behavior, > state of the “fake”object in order to utilize a test scenario ...
[ 0.562694787979126, 0.2939664423465729, -0.15297599136829376, 0.4063979983329773, -0.10963042825460434, -0.1279429793357849, 0.5669345855712891, 0.19637201726436615, 0.11731788516044617, -0.48387840390205383, 0.017129605636000633, 0.4019258916378021, -0.11023679375648499, 0.0881405025720596...
This is what I understand about IDisposable and finalizers from "CLR via C#", "Effective C#" and other resources: * IDisposable is for cleaning up managed and unmanaged resources deterministically. * Classes that are responsible for unmanaged resources (e.g. file handles) should implement IDisposable and provide a fin...
[ -0.06978363543748856, -0.07823904603719711, -0.05976400896906853, 0.14231479167938232, 0.01588197983801365, -0.30921605229377747, 0.28723984956741333, -0.21302424371242523, -0.17747002840042114, -0.6654205322265625, -0.2657580077648163, 0.708300769329071, -0.4267040193080902, 0.05661050602...
the finalizer prevents leaking resources if they forget). While I understand the reasoning for and agree with all of the above, there is one scenario where I think it makes sense to break these rules: a singleton class that is responsible for unmanaged resources (such as providing a single point of access to particula...
[ -0.050352584570646286, 0.023581087589263916, -0.12018883973360062, 0.2291167825460434, 0.3806307911872864, -0.27670469880104065, 0.2379537671804428, -0.1781478077173233, -0.3658975660800934, -0.6029046773910522, -0.3617981970310211, 0.5952153205871582, -0.012431245297193527, 0.421589136123...
is unloaded the finalizer can clean up the unmanaged resources. So having a singleton class with a finalizer that does not implement IDisposable seems to me to be a reasonable thing to do, yet this type of design is counter to what I understand are best practices. Is this a reasonable approach? If not, why not and wh...
[ -0.08780188858509064, 0.024675682187080383, 0.18262237310409546, 0.23766669631004333, 0.001089910394512117, 0.024822792038321495, 0.14899472892284393, -0.27732351422309875, -0.2907010614871979, -0.5791586637496948, -0.35267430543899536, 0.604428768157959, -0.414659321308136, 0.098974265158...
an app domain unload that's one possible issue but possibly one you don't need to care about. I second those saying that this design is possibly not the right thing to do (and will make it harder to fix is subsequently you find that you do actually need two instances) Create the object (or a lazy loading wrapper objec...
[ 0.32411274313926697, 0.162220299243927, 0.1909426748752594, 0.17152263224124908, -0.1006195917725563, 0.09943439066410065, 0.2986714243888855, -0.12968945503234863, -0.28674644231796265, -0.7629916667938232, -0.24893178045749664, 0.5432809591293335, -0.625714123249054, 0.2069230079650879, ...
rest of the code (which uses what it gets given)
[ 0.30233001708984375, 0.2976774573326111, 0.07337290048599243, 0.06329214572906494, 0.03578612580895424, -0.2550610303878784, 0.24146364629268646, -0.18917563557624817, 0.08094581961631775, -0.41013601422309875, -0.4121031165122986, 0.5230563879013062, -0.11667303740978241, -0.3027113676071...
I am a junior developer, doing my last year at college. I'm mostly asp.net oriented and even have a part time job coding in that language. I am interested on converting to linux and since visual studio is unsupported write my code in Mono. Are there any notable limitations in Mono that I should be aware of (regarding ...
[ 0.566199779510498, 0.13210773468017578, -0.17859716713428497, -0.23664961755275726, -0.46129506826400757, -0.3377626836299896, 0.3063064515590668, 0.373627632856369, -0.08670202642679214, -0.9355002641677856, 0.1177675798535347, 0.7157277464866638, -0.04456237703561783, 0.14140643179416656...
directly respond to a request in kernel mode if the page is in cache. This means that the socket open is responded to immediately and can allow for orders of magnitude more hits to your webserver.
[ 0.10100412368774414, 0.032523900270462036, 0.2421167939901352, -0.021407537162303925, -0.36438241600990295, 0.08843450993299484, 0.4552336037158966, -0.12166061997413635, -0.11212186515331268, -0.6994093656539917, -0.5915133953094482, 0.6903718709945679, -0.16525773704051971, 0.08428214490...
In the past I've used RailsForum.com as a resource, but lately I've come across far too much spam and not enough useful posting. Certainly just my perspective. So, what do you Rails developers use as a forum resource for the platform? The official [Ruby On Rails Talk](http://groups.google.com/group/rubyonrails-talk) m...
[ 0.5484803915023804, 0.08908951282501221, -0.17553280293941498, 0.13738082349300385, -0.34548527002334595, -0.06768406182527542, 0.6153566837310791, 0.5272811055183411, -0.5355790853500366, -0.22598832845687866, 0.20216351747512817, 0.4658467769622803, 0.14908578991889954, 0.220158874988555...
Is it possible to store passwords on the local system (Windows XP) that can only be accessed by the application itself? My instinctive answer would be "no". Even if some kind of hashing or encyption is used I would think that as long as the source code is available then the determined seeker could always use this to r...
[ 0.2699919044971466, 0.3363409638404846, 0.13113537430763245, 0.20482982695102692, 0.35358646512031555, -0.36372870206832886, 0.2602024972438812, 0.36079615354537964, -0.24258936941623688, -0.3843774199485779, -0.07014231383800507, 0.668248176574707, 0.025061389431357384, 0.0631273612380027...
a password that could be stored would be the one used to authenticate on their network's proxy server. There are a few related questions here on Stack Overflow and the most appropriate solution sounds like using an operating system service like DPAPI. Is the basic premise correct that as long as the password is retri...
[ 0.09581839293241501, -0.008488338440656662, 0.14647813141345978, 0.37253403663635254, 0.375796377658844, -0.3012198209762573, 0.42686280608177185, -0.26243698596954346, -0.09360534697771072, -0.39804381132125854, -0.20157545804977417, 0.5858889222145081, 0.009148087352514267, -0.0379074886...
generates a master key based off of your login credentials and uses that for the encryption.
[ 0.2606688439846039, 0.17975600063800812, 0.01094004511833191, 0.2061920315027237, 0.3108791410923004, -0.2958018183708191, 0.1440889537334442, -0.47394469380378723, -0.0898679792881012, -0.2783866226673126, -0.48030388355255127, 0.5688175559043884, -0.020928388461470604, 0.1718297749757766...
In the past my development team we have mostly done waterfall development against an existing application and deployments were only really done towards the end of a release which would normally result in TEST, UAT, PROD releases normally only consisting of three to five releases in a two month cycle. A release was an ...
[ 0.6107802987098694, -0.18135781586170197, 0.27573686838150024, -0.07407441735267639, -0.08796193450689316, 0.17663989961147308, 0.0644754022359848, -0.15324187278747559, -0.21905377507209778, -0.34421804547309875, -0.3458598256111145, 0.3731898069381714, -0.07715585082769394, 0.01015505567...
have elevated privileges on their machines. **Does anyone have any better solutions for rapid deployment?** We have considered batch/scripted installs of the MSI, or doing COM registrations per file, both using [CPAU](http://www.joeware.net/freetools/tools/cpau/) for elevated privileges, and ClickOnce. Neither of the...
[ 0.2674068212509155, 0.03492623195052147, 0.32375919818878174, 0.15136507153511047, 0.31880220770835876, -0.13356971740722656, 0.20791488885879517, 0.056540053337812424, -0.4463241696357727, -0.9311456084251404, 0.0948791578412056, 0.555817186832428, -0.004106287378817797, -0.13109990954399...
around with ClickOnce, using a dot net wrapper which starts up the application and has all the OCX/DLL vb6 assemblies as isolated dependencies, but this is having issues finding all the assemblies when it starts up, or messages to that effect. CruiseControl and Nant are probably your best bet for builds with flexible o...
[ 0.4762175977230072, -0.11666595935821533, 0.49762511253356934, -0.013116376474499702, 0.03022758662700653, -0.384319931268692, 0.15090516209602356, 0.157635897397995, -0.6287437081336975, -0.6079224944114685, -0.03249562159180641, 0.757314920425415, -0.1970686912536621, -0.0817991420626640...
EVen then, the devs shouldn't be out of sync ;). The customer team should only recieve builds at the end of a iteration. That is where you show them what you have done and they provide feedback and you move forward from there. Giving them daily builds could cause a vicious thrashing that would kill your velocity. Al...
[ 0.40400993824005127, -0.13907665014266968, 0.03743501752614975, 0.06316070258617401, -0.13540951907634735, 0.21640658378601074, 0.5284550189971924, -0.14817556738853455, 0.10228047519922256, -0.42677614092826843, 0.2286665290594101, 0.7461244463920593, 0.31903529167175293, -0.2383341342210...
last iteration. From that point of view, they should be testing with the last "stable" release as well.
[ 0.09270481765270233, -0.05586890131235123, 0.5103188157081604, 0.27432647347450256, 0.24150390923023224, -0.09066201001405716, 0.2962760329246521, -0.020238691940903664, 0.08671160042285919, -0.574907660484314, 0.09767188131809235, 0.5909669995307922, 0.04104980453848839, -0.13344243168830...
I am not that familiar with Javascript, and am looking for the function that returns the UNICODE value of a character, and given the UNICODE value, returns the string equivalent. I'm sure there is something simple, but I don't see it. Example: * ASC("A") = 65 * CHR(65) = "A" * ASC("ਔ") = 2580 * CHR(2580) = "ਔ" Have ...
[ -0.07482827454805374, 0.4044345021247864, 0.2099435180425644, -0.37249717116355896, -0.03190043941140175, 0.19324488937854767, 0.18359649181365967, -0.2921254634857178, -0.057739563286304474, -0.47872260212898254, -0.06174372881650925, 0.46603500843048096, -0.29267215728759766, -0.11359564...
string, you can get the codes for other characters in the string by changing that to another number). The script snippet: ``` document.write("Unicode for character ਔ is: " + "ਔ".charCodeAt(0) + "<br />"); document.write("Character 2580 is " + String.fromCharCode(2580) + "<br />"); ``` gives: ``` Unicode for chara...
[ -0.17060039937496185, 0.26396799087524414, 0.5736875534057617, -0.3312114179134369, -0.09905476868152618, 0.1700475513935089, 0.09239260852336884, -0.1857374608516693, -0.23919090628623962, -0.2061385214328766, -0.06801435351371765, 0.32283422350883484, -0.2634703814983368, -0.151838436722...
NetBeans 6.5 with Python support provides the docstring documentation for a function/method in a popup when auto-completing, but is there another way to view docstrings? Perhaps achieved by mousing over a function/method name, or clicking somewhere? The best I can seem to do is "Go to source" in the right-click menu....
[ 0.062447238713502884, -0.10898761451244354, 0.48134803771972656, -0.10531172901391983, 0.15580905973911285, -0.03634006530046463, 0.15263262391090393, -0.11527356505393982, 0.0752609372138977, -0.5487852096557617, -0.24416738748550415, 0.7470502257347107, -0.28187552094459534, -0.128493309...
and left hand side type if it can resolve it, to compute one specific match rather than many).
[ -0.45865461230278015, -0.11852357536554337, 0.5716655850410461, -0.1681307703256607, -0.028479568660259247, 0.12784621119499207, -0.07466882467269897, -0.36992180347442627, 0.17442113161087036, -0.5319183468818665, -0.09489040821790695, 0.15597163140773773, -0.16947147250175476, -0.0385228...
I did a lot of VRML+Java work in college and loved it, but I feel like it's not really a marketable skill. Has anyone worked with a high level graphics API like open inventor, coin..etc that is actually in use to a degree that makes investing a lot of time in the API worthwhile for something more than a hobby? See **Li...
[ 0.26559603214263916, 0.2290237843990326, 0.5976250171661377, -0.168496772646904, -0.31095385551452637, -0.01584242470562458, -0.10258055478334427, -0.009432933293282986, -0.3264451026916504, -0.5645737648010254, -0.01783199980854988, 0.780049741268158, -0.29393303394317627, -0.145377546548...