text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
<soap:detail>...</soap:detail> </soap:Fault> </soap:Body> </soap:Envelope> ``` I believe according to the soap schema the child elements shouldn't be qualified and ned to look like: ``` <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header>...</soap:Header> ...
[ 0.2218853384256363, 0.4106427729129791, 0.051451317965984344, 0.0901375561952591, 0.16437417268753052, 0.23934400081634521, 0.2924409508705139, -0.7132067084312439, 0.17129716277122498, -0.48682737350463867, 0.09497477114200592, 0.3308130204677582, 0.13974831998348236, 0.20095214247703552,...
<detail>...</detail> </soap:Fault> </soap:Body> </soap:Envelope> ``` Is there something that I can configure or override so that I can consume messages which arrive in the latter format so that I can consume the fault messages instead of xml exceptions? I'm cannot recall how I found stumbled across M...
[ -0.03943373262882233, -0.08479117602109909, 0.2825559973716736, 0.2116788923740387, -0.4644862115383148, 0.03541508689522743, 0.23914475739002228, -0.503246009349823, 0.002848090138286352, -0.358119398355484, 0.3394199311733246, 0.39836084842681885, -0.4631476104259491, 0.075148805975914, ...
if (!reply.IsFault) return; var document = new XmlDocument(); document.Load(reply.GetReaderAtBodyContents()); var navigator = document.CreateNavigator(); var manager = new XmlNamespaceManager(navigator.NameTable); manager.AddNamespace("soap", "http://schemas.xmlsoap.org/soap/envelope/");...
[ -0.16775818169116974, -0.2504875957965851, 0.791765570640564, -0.42501747608184814, 0.18328462541103363, 0.07367288321256638, 0.20364034175872803, -0.7405087947845459, -0.024568915367126465, -0.6898635625839233, -0.5669543147087097, 0.5585477948188782, -0.09105392545461655, 0.2429535537958...
if (string.IsNullOrEmpty(c.Prefix)) continue; c.ReplaceSelf("<" + c.LocalName + ">" + c.InnerXml + "</" + c.LocalName + ">"); /// we may want to record the detail included inside the detail element, /// it is not reported in the FaultException that is raised.
[ 0.06593389064073563, -0.18455587327480316, 0.46800729632377625, -0.03539883717894554, 0.5878661870956421, -0.06420417129993439, 0.42314276099205017, -0.28156614303588867, -0.13826416432857513, -0.4757566452026367, -0.17965491116046906, 0.6021446585655212, -0.03885940834879875, -0.018288541...
} while (it.Current.MoveToNext()); } var reader = XmlDictionaryReader.CreateDictionaryReader(new XmlNodeReader(document)); reader.MoveToStartElement(); var fixedReply = Message.CreateMessage(reply.Version, null, reader); fixedReply.Headers.CopyHeadersFrom(reply.Headers); fixedReply.Propertie...
[ -0.1563045233488083, -0.137062668800354, 0.7479285597801208, -0.09333683550357819, 0.12486297637224197, 0.19447621703147888, 0.11750070005655289, -0.3618469536304474, -0.3875793218612671, -0.6488341093063354, -0.648636519908905, 0.4391983151435852, -0.41745418310165405, 0.37167736887931824...
I know that in SQL Server, the maximum number of "objects" in a database is a little over 2 billion. Objects contains tables, views, stored procedures, indexes, among other things . I'm not at all worried about going beyond 2 billion objects. However, what I would like to know, is, does SQL Server suffer a performance ...
[ 0.34653398394584656, 0.3082957863807678, 0.18859897553920746, 0.2989787757396698, -0.10769182443618774, -0.2127196490764618, 0.0960712879896164, 0.24451129138469696, -0.8044247627258301, -0.5076101422309875, 0.28185078501701355, 0.32423362135887146, 0.0510769858956337, 0.3557416498661041, ...
same about MySQL. No difference, assuming constant amount of data. Probably a gain in practical terms because of things like reduced maintenance windows (smaller index rebuilds), ability to have read-only file groups etc. Performance is determined by queries and indexes (at the most basic level): not number of object...
[ -0.3133084774017334, -0.2047218680381775, 0.2870829105377197, 0.38523006439208984, -0.21247906982898712, -0.1996796578168869, 0.4096154570579529, -0.059733159840106964, -0.21268205344676971, -0.9596821069717407, -0.2381904572248459, 0.5757434964179993, -0.002925752429291606, -0.28275755047...
In java swing I can insert panels into panels and so on, and not have to build a brand new window for every view of my applicaiton, or mess around removing and adding controls. Theres a panel clas sin C# however I cant see any way of creating a 'panel form' or basically just a form in form designer thats a panel and i...
[ 0.31648799777030945, 0.02766302600502968, 0.4022943079471588, -0.1348039209842682, -0.5129831433296204, -0.3074394464492798, -0.11317995190620422, -0.3997595012187958, -0.18859583139419556, -0.6637157201766968, 0.15645167231559753, 0.6380869746208191, -0.1571827530860901, -0.38411647081375...
i dock using the following function: ``` static class FormUtil { static public void showForm(Form sender, Control reciever) { sender.ControlBox = false; sender.FormBorderStyle = FormBorderStyle.None; sender.ShowInTaskbar = false; sender.TopLevel = false; sender.Visible =...
[ 0.18994972109794617, -0.2742992341518402, 0.8308654427528381, -0.4733949601650238, 0.024520574137568474, 0.33428362011909485, 0.31845948100090027, -0.35541942715644836, -0.3052075505256653, -0.6200578212738037, -0.39477118849754333, 0.5919181704521179, -0.38023245334625244, 0.0878018140792...
reciever.Controls.Add(sender); } } ``` then whenever i need to dock a form inside a panel on the parents form i just do: ``` FormUtil.showForm(new SomeForm(), this.splitContainer1.Panel1); ``` This allows me to delegate some of the form creation to different designers. Works like a charm for me, love to hear ...
[ 0.44881150126457214, -0.22063226997852325, 0.6864470839500427, -0.043758053332567215, 0.062065668404102325, -0.23993074893951416, 0.03791549801826477, -0.23381361365318298, 0.02675599418580532, -0.8843122720718384, -0.21174530684947968, 0.5724430680274963, -0.0354061983525753, 0.0179018508...
### Short: From below sql select I get the cart\_id and the value of the maximum valued item in that cart. ``` SELECT CartItems.cart_id, MAX(ItemValues.value) FROM CartItems INNER JOIN ItemValues ON CartItems.item_id=ItemValues.item_id GROUP BY CartItems.cart_id ``` but I also need item\_id for that item (ItemVal...
[ -0.4442908763885498, -0.041412170976400375, 0.6075653433799744, 0.31466132402420044, -0.16725672781467438, 0.4373832941055298, -0.44745737314224243, -0.42455026507377625, -0.19908426702022552, -0.5341389775276184, -0.2020660638809204, 0.5405735969543457, -0.17015381157398224, -0.0772628486...
it's corresponding item-id? For instance cart-id A contains item-id X with value 10 and item-id Y with value 90. With above sql select I get, ``` A, 90 ``` What I need is ``` A, Y, 90 ``` platform: MS SQL In `MS SQL` and `Oracle`: ``` SELECT * FROM ( SELECT ci.*, iv.*, ROW_NUMBER() OVER (PARTI...
[ -0.386118620634079, -0.18150898814201355, 0.6532790064811707, 0.21846185624599457, -0.14515672624111176, 0.38652345538139343, -0.43805569410324097, -0.13497799634933472, 0.017986848950386047, -0.7194503545761108, -0.020610712468624115, 0.365985244512558, -0.09962260723114014, 0.21402662992...
( SELECT id FROM ItemValues iv WHERE iv.item_id = ci.item_id ORDER BY value DESC LIMIT 1 ) AS maxitem FROM CartItems ci ) iv, ItemValues ivo WHERE ivo.id = iv.maxitem ```
[ -0.10479912161827087, 0.013524004258215427, 0.6002764701843262, 0.3881024122238159, 0.10045072436332703, 0.3750790059566498, -0.04924653843045235, -0.0675978884100914, -0.14801627397537231, -0.722214937210083, -0.22247089445590973, 0.6210293173789978, -0.04493056982755661, 0.28929072618484...
Environment.SpecialFolder.CommonApplicationData \*returns "C:\Documents and Settings\All Users\Application Data" under XP that is writeable for all users \*returns "C:\ProgramData[MyApp]\" under Vista and this is not writeable for regular users Now why i want CommonFolder ? Because, an admin will install my softwar...
[ 0.1399599313735962, 0.45274075865745544, 0.6923164129257202, -0.2184118777513504, 0.09654552489519119, -0.2807241380214691, 0.27133843302726746, -0.17666257917881012, -0.27683764696121216, -0.7460584044456482, -0.01609187386929989, 0.5807916522026062, -0.33332687616348267, 0.28961676359176...
it works under Vista and XP ????? thanks Jonathan Are you using an installer to have the admin run? If so, you should be able to use the installer settings, plus a proper assembly/executable manifest to allow the application (regardless of who is running it) the proper permissions to update/modify files in the ProgramD...
[ 0.4041459262371063, 0.01384053099900484, 0.3171217441558838, 0.07788653671741486, 0.20584696531295776, -0.4657991826534271, 0.35623568296432495, 0.0271573755890131, 0.043808553367853165, -0.7244544625282288, -0.08296545594930649, 0.7932649254798889, -0.2049589902162552, -0.1485581994056701...
I've got a Windows SBS 2008 64 bit Box with SQL 2005 64bit on it. SQL itself runs amazingly well - nice and fast. SSRS though is giving me headaches. I ran the install as normal, configured the windows service to run under its own account and the web service to run as NT Authority\Network Service. When I try to run t...
[ 0.09965849667787552, 0.32417577505111694, 0.37894296646118164, -0.10377293080091476, -0.15142618119716644, -0.09171938896179199, 0.4223279654979706, -0.08431203663349152, -0.14378462731838226, -0.5682207345962524, 0.09455464780330658, 0.6820585131645203, -0.15274807810783386, 0.06138758361...
database permissions but am running out of ideas of what else to try now. I've been googling for two days but nothing concrete has come up. I know its not strictly programming related please dont downvote for that! Unfortunately none of these were the correct answers. I had to create an SPN for the machine so that it ...
[ 0.09592632949352264, 0.02139926701784134, 0.46558618545532227, 0.30072522163391113, 0.28781214356422424, -0.3424730896949768, 0.4046159088611603, -0.09579924494028091, -0.31410500407218933, -0.11854618042707443, 0.1370227038860321, 0.5283499360084534, -0.36616063117980957, 0.32975712418556...
Using C#, I need to build a connection string from a few AppSettings. If I do this: ``` Connection = string.Format("Data Source={0};Initial Catalog={1);User Id={2};Password={3};", ConfigurationManager.AppSettings.Get("CartServer"), ConfigurationManager.AppSettings.Get("CartDatabase"), ConfigurationManager.AppSet...
[ -0.028200464323163033, 0.2223956286907196, 0.430042564868927, 0.14960835874080658, 0.13170598447322845, -0.10660705715417862, 0.36817172169685364, -0.061961300671100616, -0.2534932494163513, -0.6775572299957275, -0.2898229956626892, 0.8996787071228027, -0.6139159202575684, -0.0210024844855...
is the {1) in the format string; it should be {1} (you have closed the brace with a parenthesis) This is causing your FormatException because your format string is now invalid. Why your second entry works is beyond me though. **Edit:** I agree with the other Richard that you should consider using a connection string ...
[ 0.18794699013233185, 0.003876676084473729, 0.12380006909370422, -0.044077809900045395, -0.17913590371608734, -0.3000808656215668, 0.33752337098121643, -0.030553258955478668, 0.02434038184583187, -0.6825689673423767, 0.06638990342617035, 0.5905148386955261, -0.22881032526493073, 0.272687554...
I have two tables say A and B. A cols are GUID, someintVar, someMoreIntvar B col are GUID, someItemNO, SomeItemDesc Now for one GUID I will have only one row in Table A. But I can have multiple rows for the same GUID. Now I want to query the database based on GUID and select values in a class. This class will have a l...
[ -0.06003833934664726, -0.00777315953746438, 0.6349277496337891, -0.19036823511123657, -0.2402791827917099, 0.339057981967926, -0.035041529685258865, -0.031815849244594574, -0.36586153507232666, -0.7953514456748962, 0.39533883333206177, 0.5853362083435059, -0.11789596080780029, 0.3408451080...
from p in db.A join item in db.B on p.CardID equals item.CardID where p.CardID == "some GUID" select new { p.CardID,
[ -0.28971749544143677, -0.26302117109298706, 0.36241769790649414, -0.012185974977910519, -0.3137281835079193, 0.20951664447784424, 0.02728663943707943, -0.5079375505447388, 0.10722918808460236, -0.5507329106330872, -0.19469097256660461, 0.25339412689208984, -0.42274320125579834, 0.040668625...
p.secondCol, p.ThirdCol, item.ItemNo // How to add them in a collection or list. }; ``` Unested, but how about re-writing it a bit: ``` var itemColl = from p in db.A
[ -0.08271221071481705, -0.0628310889005661, 0.3810775876045227, -0.13125379383563995, -0.08398481458425522, 0.2736321985721588, -0.0013772363308817148, -0.41975754499435425, -0.27449315786361694, -0.330904483795166, -0.3599145710468292, 0.32001322507858276, -0.2560957372188568, -0.071405500...
where p.CardID == "some GUID" select new { p.CardID, p.secondCol, p.ThirdCol,
[ -0.45960506796836853, -0.23585651814937592, 0.6355798244476318, 0.08230556547641754, 0.2251371145248413, 0.09288410097360611, -0.4513638913631439, -0.3268718421459198, -0.2514098286628723, -0.520717978477478, -0.16954132914543152, 0.40062400698661804, -0.2879597246646881, -0.21820825338363...
Items = db.B.Where(b=>b.CardID==p.CardID) //.Select(b=>b.ItemNo) [see comments] } ``` Alternatively, you could perhaps group...
[ -0.06943560391664505, -0.09222318977117538, 0.06791634112596512, 0.05102572590112686, -0.35341882705688477, 0.0804096981883049, 0.03182227909564972, -0.4715970754623413, -0.35141071677207947, -0.5770068168640137, -0.2556193768978119, 0.07893355935811996, -0.38429999351501465, 0.22858241200...
How do you login to a webpage and retrieve its content in C#? ``` string postData = "userid=ducon"; postData += "&username=camarche" ; byte[] data = Encoding.ASCII.GetBytes(postData); WebRequest req = WebRequest.Create( URL); req.Method = "POST";
[ 0.263875275850296, 0.14247629046440125, 0.35026800632476807, 0.18423053622245789, 0.08541664481163025, -0.16960389912128448, 0.399349570274353, 0.03073996491730213, -0.0746467262506485, -0.5967046022415161, -0.48484912514686584, 0.2602396011352539, -0.33977678418159485, 0.1566547453403473,...
req.ContentType = "application/x-www-form-urlencoded"; req.ContentLength = data.Length; Stream newStream = req.GetRequestStream(); newStream.Write(data, 0, data.Length); newStream.Close(); StreamReader reader = new StreamReader(req.GetResponse().GetResponseStr...
[ 0.03167514130473137, -0.19839955866336823, 0.7906079292297363, 0.01693548448383808, 0.0652342215180397, 0.07402865588665009, 0.21930314600467682, -0.043152716010808945, -0.37646186351776123, -0.6972149014472961, -0.7656255960464478, 0.36360135674476624, -0.4786807596683502, 0.4545366466045...
I'm working on understanding and drawing my own DLL for PDF417 (2d barcodes). Anyhow, the actual drawing of the file is perfect, and in correct boundaries of 32 bits (as monochrome result). At the time of writing the data, the following is a memory dump as copied from C++ Visual Studio memory dump of the pointer to the...
[ 0.405763179063797, 0.14584597945213318, 0.474080353975296, 0.1755705028772354, -0.04520964249968529, 0.22144675254821777, 0.01686904951930046, -0.23032309114933014, -0.10771673172712326, -0.7041304111480713, -0.06529127806425095, 0.2962510883808136, -0.1806376576423645, -0.1794114261865615...
the distortion. The current drawing is 273 pixels wide by 12 pixels high, monochrome... ``` 00 ab a8 61 d7 18 ed 18 f7 a3 89 1c dd 70 86 f5 f7 1a 20 91 3b c9 27 e7 67 12 1c 68 ae 3c b7 3e 02 eb 00 00 00 ab a8 61 d7 18 ed 18 f7 a3 89 1c dd 70 86 f5 f7 1a 20 91 3b c9 27 e7 67 12 1c 68 ae 3c b7 3e 02 eb 00 00 00 ab a8 6...
[ -0.25118082761764526, 0.151619553565979, 0.7521637082099915, -0.13689003884792328, -0.21125780045986176, 0.5703650712966919, 0.1532924622297287, -0.2788265347480774, -0.09396237134933472, -0.8709824681282043, 0.20792604982852936, 0.3109334111213684, -0.22406606376171112, 0.2067941576242447...
20 91 3b c9 27 e7 67 12 1c 68 ae 3c b7 3e 02 eb 00 00 00 ab 81 4b ca 07 6b 9c 11 40 9a e6 0c 76 0a fc a3 33 70 bb 30 55 87 e9 c4 10 58 d9 ea 0d 48 3e 02 eb 00 00 00 ab 81 4b ca 07 6b 9c 11 40 9a e6 0c 76 0a fc a3 33 70 bb 30 55 87 e9 c4 10 58 d9 ea 0d 48 3e 02 eb 00 00 00 ab 81 4b ca 07 6b 9c 11 40 9a e6 0c
[ -0.11381968855857849, 0.4487289488315582, 0.30649250745773315, -0.25221574306488037, -0.32654234766960144, 0.5133326053619385, 0.30247762799263, -0.8711735010147095, -0.08860217034816742, -0.3359639644622803, -0.02598561905324459, 0.3333700895309448, -0.1430530697107315, 0.2385664433240890...
76 0a fc a3 33 70 bb 30 55 87 e9 c4 10 58 d9 ea 0d 48 3e 02 eb 00 00 00 ab 85 7e d0 29 e8 14 f4 0a 7a 05 3c 37 ba 86 87 04 db b6 09 dc a0 62 fc d1 31 79 bc 5c 0a 8e 02 eb 00 00 00 ab 85 7e d0 29 e8 14 f4 0a 7a 05 3c 37 ba 86 87 04 db b6 09 dc a0 62 fc d1 31 79 bc 5c 0a 8e 02 eb 00 00 00 ab 85 7e d0 29 e8 14
[ 0.4066799581050873, 0.5333383679389954, 0.1415795236825943, -0.18442586064338684, -0.4140419065952301, 0.1046762689948082, 0.8273592591285706, -0.5587989091873169, 0.22961661219596863, -0.07423859089612961, -0.2682599425315857, 0.5664879679679871, -0.30387887358665466, 0.10302849858999252,...
f4 0a 7a 05 3c 37 ba 86 87 04 db b6 09 dc a0 62 fc d1 31 79 bc 5c 0a 8e 02 eb 00 00 00 ab 85 43 c5 30 e2 26 70 4a 1a f3 e4 4d ce 2a 3f 79 cd bc e6 de 73 6f 39 b7 9c db ce 6d 5f be 02 eb 00 00 00 ab 85 43 c5 30 e2 26 70 4a 1a f3 e4 4d ce 2a 3f 79 cd bc e6 de 73 6f 39 b7 9c db ce 6d 5f be 02 eb 00 00 00 ab 85
[ -0.175725057721138, 0.5239601135253906, 0.08356583118438721, -0.043655283749103546, -0.570982813835144, 0.4808916747570038, 0.7862130999565125, -0.6166031956672668, 0.05036795511841774, -0.1875726282596588, -0.44038277864456177, 0.4377458989620209, -0.04892180114984512, 0.3058333694934845,...
43 c5 30 e2 26 70 4a 1a f3 e4 4d ce 2a 3f 79 cd bc e6 de 73 6f 39 b7 9c db ce 6d 5f be 02 eb 00 00 ``` Here is the code to WRITE the file out -- verbatim immediately at the time of the memory dump from above ``` FILE *stream; if( fopen_s( &stream, cSaveToFile, "w+" ) == 0 ) { fwrite( &bmfh, 1, (UINT)sizeof(BIT...
[ -0.16558168828487396, 0.35957688093185425, 0.5912043452262878, -0.4243592321872711, 0.09217273443937302, 0.22057509422302246, 0.5058462023735046, -0.5009831190109253, 0.01007083524018526, -0.3928147256374359, -0.5992167592048645, 0.37518519163131714, -0.3900721073150635, 0.0330974981188774...
fclose( stream ); } ``` Here's what ACTUALLY Gets written to the file. ``` 00 ab a8 61 d7 18 ed 18 f7 a3 89 1c dd 70 86 f5 f7 1a 20 91 3b c9 27 e7 67 12 1c 68 ae 3c b7 3e 02 eb 00 00 00 ab a8 61 d7 18 ed 18 f7 a3 89 1c dd 70 86 f5 f7 1a 20 91 3b c9 27 e7 67 12 1c 68 ae 3c b7 3e 02 eb 00 00 00 ab a8 61 d7 18 ed 18 f...
[ -0.19745969772338867, 0.16868585348129272, 0.6726740598678589, 0.1179395318031311, 0.04407486692070961, 0.12709949910640717, 0.3758380115032196, -0.45707520842552185, 0.032781217247247696, -0.3622852861881256, -0.07884474843740463, 0.2912622094154358, -0.46533823013305664, -0.1088624149560...
20 91 3b c9 27 e7 67 12 1c 68 ae 3c b7 3e 02 eb 00 00 00 ab 81 4b ca 07 6b 9c 11 40 9a e6 0c 76 0d 0a fc a3 33 70 bb 30 55 87 e9 c4 10 58 d9 ea 0d 48 3e 02 eb 00 00 00 ab 81 4b ca 07 6b 9c 11 40 9a e6 0c 76 0d 0a fc a3 33 70 bb 30 55 87 e9 c4 10 58 d9 ea 0d 48 3e 02 eb 00 00 00 ab 81 4b ca 07 6b 9c 11 40 9a
[ -0.05939507484436035, 0.4588542878627777, 0.28596052527427673, -0.2605232298374176, -0.33618637919425964, 0.5140014886856079, 0.315069317817688, -0.8478693962097168, -0.1015077754855156, -0.34818634390830994, -0.004717452917248011, 0.37614235281944275, -0.18852867186069489, 0.1787841618061...
e6 0c 76 0d 0a fc a3 33 70 bb 30 55 87 e9 c4 10 58 d9 ea 0d 48 3e 02 eb 00 00 00 ab 85 7e d0 29 e8 14 f4 0d 0a 7a 05 3c 37 ba 86 87 04 db b6 09 dc a0 62 fc d1 31 79 bc 5c 0d 0a 8e 02 eb 00 00 00 ab 85 7e d0 29 e8 14 f4 0d 0a 7a 05 3c 37 ba 86 87 04 db b6 09 dc a0 62 fc d1 31 79 bc 5c 0d 0a 8e 02 eb 00 00 00
[ -0.07447396218776703, 0.6883922219276428, 0.23772314190864563, -0.02817513234913349, -0.5163494348526001, 0.3473926782608032, 0.7563435435295105, -0.4819187819957733, 0.03478657454252243, -0.18726746737957, -0.15260595083236694, 0.31835341453552246, -0.13952067494392395, 0.3453116714954376...
ab 85 7e d0 29 e8 14 f4 0d 0a 7a 05 3c 37 ba 86 87 04 db b6 09 dc a0 62 fc d1 31 79 bc 5c 0d 0a 8e 02 eb 00 00 00 ab 85 43 c5 30 e2 26 70 4a 1a f3 e4 4d ce 2a 3f 79 cd bc e6 de 73 6f 39 b7 9c db ce 6d 5f be 02 eb 00 00 00 ab 85 43 c5 30 e2 26 70 4a 1a f3 e4 4d ce 2a 3f 79 cd bc e6 de 73 6f 39 b7 9c db ce 6d
[ -0.0030561224557459354, 0.7125793099403381, 0.020859943702816963, -0.029517004266381264, -0.4933249354362488, 0.6063628792762756, 0.8680357336997986, -0.6666625142097473, 0.07330463081598282, -0.25819334387779236, -0.20948955416679382, 0.36550480127334595, -0.005653063766658306, 0.30053666...
5f be 02 eb 00 00 00 ab 85 43 c5 30 e2 26 70 4a 1a f3 e4 4d ce 2a 3f 79 cd bc e6 de 73 6f 39 b7 9c db ce 6d 5f be 02 eb 00 00 ``` Notice the start of the distortion with the "0d" in the result from reading the file back in the 4th line, about the 15th byte over... Then, there are a few more staggered around which in ...
[ 0.1253100037574768, 0.33159565925598145, 0.5205212831497192, 0.12866520881652832, -0.14456719160079956, 0.430967777967453, 0.2679869830608368, -0.519732654094696, -0.1160791665315628, -0.5337817668914795, -0.14682631194591522, 0.24700506031513214, 0.18888980150222778, 0.16026531159877777, ...
12 lines. Shouldn't you open the file in a compound mode i.e. writable & binary as in `wb+`? > Notice the start of the distortion with the "0d" That's ASCII code for Carriage Return (CR) -- added on some OSes with newline (where a newline is actually a sequence of CR/LF). This should go away once you start writing th...
[ 0.3887272775173187, -0.08612194657325745, 0.5000794529914856, 0.13208666443824768, -0.09198685735464096, 0.14417792856693268, 0.4119834899902344, -0.03053959831595421, -0.481415718793869, -0.4608815908432007, -0.05567200481891632, 0.3926730751991272, -0.30483707785606384, 0.132645189762115...
I'm currently trying to set up CruiseControl.net, and so I wonder how to split up my Tasks. Generally, I want to run Unit Tests (xUnit.net), Help File Generation (Sandcastle) and FxCop. Now I just wonder if I should specify a new Target in the msbuild config ("Documentation") and use that to run SandCastle, or if tha...
[ 0.3010563850402832, -0.13527119159698486, 0.6428351402282715, 0.02911936677992344, 0.15266917645931244, -0.1480783224105835, -0.10201112180948257, 0.17174768447875977, -0.2501375377178192, -0.6927311420440674, 0.3365761339664459, 0.7863043546676636, -0.04714321345090866, 0.0507994554936885...
can run the same steps locally via the command line. Otherwise, when something goes wrong with the build, you have to debug it on the CC server. Not a nice debugging experience. Also, you want to run the build locally **before** committing to make sure it works. The few things that I wouldn'T put into MSBuild scripts ...
[ 0.6050763130187988, 0.21740777790546417, 0.13994602859020233, 0.08778367936611176, 0.034959275275468826, -0.39896073937416077, 0.6462844014167786, 0.18177494406700134, -0.3158420920372009, -0.6039120554924011, -0.011641154997050762, 0.7489399313926697, -0.13575997948646545, 0.1551293730735...
a script.) * Creation and publishing of build reports; again this is CC's domain, and not useful locally As for structuring your MSBuild files, you will want a "master" build script that you can use to build everything **or** just some targets, e.g. * `MSBuild /t:Build` to just build the code incrementally * `MSBuild...
[ 0.597469687461853, 0.12123601138591766, 0.08320410549640656, 0.11064710468053818, -0.19959013164043427, -0.17587065696716309, 0.37205687165260315, -0.2639593482017517, -0.06476129591464996, -0.924312949180603, -0.2275935858488083, 0.5132293701171875, -0.15421049296855927, 0.192608684301376...
file doesn't mean that everything is defined in this single file; you can include other msbuild files, and/or call msbuild recursively to organize your build. For example: * The master .proj file should be relatively simple; mainly, it should define project-specific stuff like the list of solutions to build, and proje...
[ 0.5990807414054871, -0.041242536157369614, 0.039786260575056076, 0.18681645393371582, -0.07009613513946533, -0.12911993265151978, 0.07059863954782486, -0.3323158919811249, -0.3712212145328522, -1.0373178720474243, -0.2299450933933258, 0.3682154417037964, -0.3571038544178009, -0.11089290678...
Let your main .targets file include those sub-files, so that your .proj file still needs only include one file * Likewise you can split up the master .proj file if needed, e.g. by subsystem.
[ 0.5367082357406616, -0.2938140332698822, 0.12416195869445801, 0.036196764558553696, 0.07717553526163101, -0.13598373532295227, -0.07812777906656265, 0.026919009163975716, -0.2726069688796997, -0.7630337476730347, -0.17988109588623047, 0.2987578809261322, -0.46630552411079407, 0.04485026001...
I have implemented NSXMLParser in my app and I am reviewing alternatives. My complaints about NSXMLParser are that it's convoluted to implement for simple files, and it's not the zippiest thing around either. So far I've identified: * [TouchXML](http://code.google.com/p/touchcode/wiki/TouchXML) * [Objective-XML](http...
[ -0.31533634662628174, 0.07730993628501892, 0.6767731308937073, -0.15583643317222595, -0.10491175949573517, 0.007585091050714254, 0.15454135835170746, -0.142681285738945, -0.16168533265590668, -0.6659864187240601, 0.014851451851427555, 0.669634222984314, -0.3885466158390045, -0.228111341595...
I have a windows form with two child controls. I need to highlight both the controls at the same time using c#. Please tell me how to solve this problem. Would it be possible for you to put placeholders in the Master Page in place of the areas that designers should be allowed to edit? Since Master Pages are only editab...
[ 0.33690980076789856, 0.11532667279243469, 0.13307596743106842, 0.4192870557308197, 0.24360975623130798, -0.03775453194975853, -0.04864244535565376, -0.23082074522972107, -0.16655205190181732, -0.801192045211792, 0.08411385118961334, 0.38648128509521484, -0.035862844437360764, 0.03241320326...
open in one placeholder and closed in another. ``` <html> <head> <title></title> <asp:PlaceHolder ID="headerContent" runat="server"></asp:PlaceHolder> </head> <body> <asp:PlaceHolder ID="beforeContent" runat="server"></asp:PlaceHolder> <asp:PlaceHolder ID="centralContent" runat="server"></asp:PlaceHolder> <asp:Plac...
[ 0.010972469113767147, 0.23344331979751587, 0.7054266333580017, -0.01933370716869831, 0.22371900081634521, -0.17233848571777344, 0.15750625729560852, -0.13032564520835876, -0.05222645029425621, -0.6176982522010803, -0.4729897081851959, 0.05985309183597565, -0.3566801846027374, 0.22393426299...
I would like to run db:migrate VERSION=0 and then db:migrate inside of my own rake task. I am confused about how to do this. Do I need a special require statement? My rake task will reside in the lib/tasks directory of a Rails app. Thanks. Is your task just dependent on having a clean db? If that's the case then you ca...
[ 0.2672043442726135, -0.06340950727462769, 0.12668994069099426, 0.05248532071709633, -0.1550913006067276, 0.07046030461788177, 0.4268396198749542, -0.08453917503356934, 0.18323931097984314, -1.2012953758239746, 0.24728935956954956, 0.5260617733001709, -0.19950993359088898, 0.077117770910263...
I'm developing PHP on a mac. As per other suggestions, I've set the workspace to be in the HTDOCS folder of MAMP. Unfortunately, this means I cannot use links to '/' as I would in production. Any suggestions? Relatedly, the workspace seems to prevent references to build paths outside the workspace, yet I would Like t...
[ 0.10299742221832275, 0.2584725618362427, 0.36925220489501953, -0.015648173168301582, 0.09800908714532852, -0.06535640358924866, 0.2943170368671417, 0.1978151947259903, -0.0757908970117569, -0.9234890937805176, 0.21332508325576782, 0.34330853819847107, -0.12960687279701233, 0.07678427547216...
in the filesystem" and browse for the folder under htdocs This should help
[ 0.1926833689212799, 0.18321269750595093, 0.47609156370162964, 0.3603549301624298, 0.3108081519603729, -0.7785703539848328, -0.06521577388048172, 0.2809339165687561, -0.2515294849872589, -0.6872860193252563, -0.2716372311115265, 0.4598917067050934, 0.15181829035282135, -0.05869278311729431,...
And then have display correctly? An example would be having a round ball in a rectangle while being able to see another texture in the background. edit: At the moment, when I load the texture the transparent pixels from the source image are displayed as black. For iPhone and N95 this works: If you are loading texture...
[ -0.09387648850679398, 0.027947427704930305, 0.5373857021331787, -0.27732646465301514, -0.23012569546699524, 0.28043869137763977, 0.2736937403678894, -0.1038912683725357, -0.2718249559402466, -1.0370060205459595, -0.17755752801895142, 0.8148007392883301, -0.19487528502941132, -0.10565698146...
alpha blend: ``` glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); ```
[ -0.01821378991007805, -0.03234407305717468, 0.5051781535148621, -0.5519312024116516, -0.38511955738067627, -0.015163905918598175, 0.21237649023532867, -0.1667570322751999, 0.21201789379119873, -0.42724502086639404, -0.5753828287124634, 0.6335100531578064, -0.5238588452339172, 0.10856302827...
I heard a few people expressing worries about "+" operator in std::string and various workarounds to speed up concatenation. Are any of these really necessary? If so, what is the best way to concatenate strings in C++? **The extra work is probably not worth it, unless you really really need efficiency.** You probably w...
[ 0.29900243878364563, 0.011037272401154041, 0.2249685823917389, 0.05125044658780098, -0.20767740905284882, 0.08192520588636398, 0.09338657557964325, -0.11977782845497131, 0.08980545401573181, -0.549039363861084, 0.056790970265865326, 0.6424193978309631, -0.1267026960849762, -0.2051941156387...
c built-in functions. **Why operator+ is not efficient:** Take a look at this interface: ``` template <class charT, class traits, class Alloc> basic_string<charT, traits, Alloc> operator+(const basic_string<charT, traits, Alloc>& s1, const basic_string<charT, traits, Alloc>& s2) ``` You can see that a ne...
[ -0.05423921346664429, -0.01637205481529236, 0.22751769423484802, -0.02115674316883087, -0.0956525206565857, -0.14351888000965118, 0.20361386239528656, -0.2549936771392822, -0.16426098346710205, -0.43078044056892395, 0.09502767771482468, 0.6942954063415527, -0.5573130249977112, -0.219757288...
the max size of your string, nor how often you will be concatenating to it. You may have this knowledge and can do things based on having this information. This will lead to less re-allocations. * You will be controlling the buffers manually so you can be sure that you won't copy the whole string into new buffers when ...
[ 0.1491626650094986, -0.4013515114784241, 0.2275601327419281, -0.044196587055921555, -0.014942501671612263, -0.057601504027843475, 0.2159377783536911, -0.19476543366909027, -0.38584521412849426, -0.6423065662384033, -0.00203289114870131, 0.5821796655654907, -0.2436227947473526, -0.139508634...
Keep track of the string length. * Keep a pointer to the end of the string and the start, or just the start and use the start + the length as an offset to find the end of the string. * Make sure the buffer you are storing your string in, is big enough so you don't need to re-allocate data * Use strcpy instead of strcat...
[ 0.4914465546607971, -0.3432801365852356, 0.23633089661598206, -0.1318356841802597, -0.0945843979716301, -0.2425369769334793, 0.27471810579299927, -0.3412632644176483, -0.37046393752098083, -0.5361688137054443, -0.03923286497592926, 0.2511461675167084, -0.23036140203475952, -0.1878962218761...
If you set `ResizeMode="CanResizeWithGrip"` on a WPF `Window` then a resize grip is shown in the lower right corner, as below: ![](https://i.stack.imgur.com/kwmCH.png) If you set `WindowStyle="None"` as well the title bar disappears but the grey bevelled edge remains until you set `ResizeMode="NoResize"`. Unfortunate...
[ -0.2010519951581955, 0.01446524914354086, 0.8967832326889038, -0.1830582171678543, 0.19411645829677582, -0.19974519312381744, 0.3009759187698364, -0.2670268714427948, -0.02378414198756218, -0.762377142906189, -0.13607169687747955, 0.7510756254196167, 0.009493621997535229, 0.189117014408111...
meet all of these criteria? 1. **Do not** have a border on the `Window` apart from the one I specify myself in a `ControlTemplate`. 2. **Do** have a working resize grip in the lower right corner. 3. **Do not** have a title bar. If you set the `AllowsTransparency` property on the `Window` (even without setting any tran...
[ -0.04217086732387543, 0.20380881428718567, 0.9620832204818726, -0.07123219221830368, 0.1471666395664215, -0.24194350838661194, 0.20483335852622986, -0.5095947980880737, -0.199794739484787, -0.5297672748565674, -0.17970901727676392, 0.5844074487686157, -0.046953991055488586, 0.1642940491437...
If GZip is enabled in IIS is it only going to improve performance for ASP pages or can it be setup to compress PHP pages as well? PHP also has built in support for gzip compression. You can initialize it by calling ``` ob_start("ob_gzhandler"); ``` or by activating the zlib.output\_compression directive in php.ini...
[ -0.15044952929019928, -0.05069046840071678, 0.49538272619247437, -0.10384664684534073, -0.06644580513238907, -0.1287001222372055, 0.03325990214943886, 0.09318041801452637, -0.059636566787958145, -0.7049151062965393, -0.32835879921913147, 0.46694648265838623, -0.6355150938034058, -0.0863607...
Can you call C++ functions from Ada? I'm wondering if there is a way to do this directly, without doing the implementation in C and writing a C++ wrapper & and Ada wrapper, e.g. I would like to go c++ -> Ada rather than c++ -> c -> Ada. The problem with Ada to C++ is that C++ does NOT have a defined ABI. Each comp...
[ 0.08430734276771545, -0.1226942166686058, -0.2426135241985321, -0.024943076074123383, -0.4733031690120697, -0.15049074590206146, 0.14368762075901031, -0.2441267967224121, -0.0913844183087349, -0.34091097116470337, 0.05144357308745384, 0.9340558648109436, -0.72856605052948, -0.2659492790699...
before it could generate the correct code to call any C++ method/function. On the other hand the C ABI is well defined a standard across all compilers and as such provides a nice convenient interface for any language to connect with.
[ 0.22559714317321777, 0.049552492797374725, 0.0020648690406233072, -0.13148899376392365, -0.3911627233028412, -0.06305836886167526, 0.10565504431724548, -0.09351544082164764, 0.010624782182276249, -0.2481018602848053, 0.15298953652381897, 0.3600299656391144, -0.42488107085227966, 0.07038980...
How can I make MySQL auto increment in 4 digit format? So instead of '1' make '0001'? Try adding ZEROFILL attribute to the field.
[ 0.2254084050655365, 0.17991752922534943, 0.25136038661003113, 0.07166055589914322, -0.08563894033432007, 0.06908749043941498, 0.1442762017250061, -0.09640360623598099, 0.01915932446718216, -0.26281309127807617, 0.19938232004642487, 0.4064721167087555, -0.19563442468643188, -0.0818504169583...
We are using an Informix database, and are connecting to it from .NET sucessfully using ODBC. The connection string we are using is; ``` DRIVER={IBM INFORMIX ODBC RIVER}; UID=username; PWD=password; DATABASE=our_database; HOST=devsrv01; SERVER=devsrv01_tcp; SERVICE=ids9tcp2; PROTOCOL=onsoctcp; CLIENT_LOCALE=en_US.CP12...
[ 0.10607460886240005, -0.010633371770381927, 0.8102021813392639, 0.15480901300907135, 0.4826410412788391, -0.06042329594492912, 0.0632113441824913, -0.07184604555368423, -0.042394064366817474, -0.9497513175010681, -0.054163187742233276, 0.3409634232521057, -0.3792975842952728, 0.29003283381...
conn.Open() throws the exception; ERROR [08001] [IBM] SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication API being used: "SOCKETS". Location where the error was detected: "172.22.0.0". Communication function detecting the error: "recv". Protocol specific error...
[ -0.10275577008724213, 0.28224217891693115, 0.4892517924308777, -0.15398402512073517, 0.1389799416065216, -0.3418169915676117, 0.11468926817178726, 0.03752267733216286, -0.26605579257011414, -0.5473524928092957, -0.12542778253555298, 0.6773667335510254, -0.41136395931243896, 0.2719016075134...
for devsrv01 and does not end 0.0. I eventaully found out that the answer was to include; ``` Persist Security Info=True;Authentication=Server; ``` Don't ask me why. I just makes it work. +1 for everyone - thanks for your help.
[ 0.08997735381126404, 0.14326293766498566, 0.46095848083496094, -0.20816093683242798, -0.16041326522827148, -0.37600177526474, 0.8375343680381775, 0.04177885130047798, -0.05741565674543381, -0.3474006950855255, -0.09841778129339218, 0.6755600571632385, -0.34649455547332764, 0.13573394715785...
I have a beginners question in T-SQL. We imported Excel Sheets into a SQL Server 2008. Too bad these Excel files were not formatted the way they should be. We want a phone number to look like this: '012345678', no leading and trailing whitespace and no whitespace within. Even worse sometimes the number is encoded with...
[ 0.3125497102737427, 0.23649780452251434, 0.15609605610370636, 0.17732080817222595, -0.33509621024131775, -0.11599370837211609, 0.25163570046424866, -0.018039796501398087, -0.04700593277812004, -0.5351279377937317, 0.22615370154380798, 0.3540247976779938, -0.04510797932744026, 0.11980760097...
ideas? Something like ``` replace(replace(rtrim(ltrim('0123-2349823')), '-', ''), '/', '') ``` should work. Doesn't look pretty. ;)
[ 0.3438585102558136, 0.11939848959445953, 0.3286829888820648, 0.42992672324180603, 0.43187668919563293, 0.17159108817577362, 0.015350437723100185, -0.14668074250221252, -0.28637537360191345, -0.47761356830596924, -0.19826316833496094, 0.2960173487663269, -0.19774436950683594, 0.067821562290...
While looking at the [jslint code conventions](http://javascript.crockford.com/code.html) I saw this line: ``` total = subtotal + (+myInput.value); ``` What is the purpose of the second '+'? The unary plus is there for completeness, compared with the familiar unary minus (-x). However it has the side effect, relied ...
[ 0.2834773659706116, -0.17398543655872345, 0.39269018173217773, -0.2503416836261749, -0.39345782995224, 0.019294943660497665, 0.1274571567773819, -0.30850160121917725, -0.26801979541778564, -0.3281819224357605, -0.3684179484844208, 0.4817526936531067, -0.4533845782279968, -0.069610841572284...
I do all my PHP coding in Dreamweaver (currently version CS3) I am used to it and like it. There is one thing I would like though, is to be able to check for errors. Currently I don't see them until I upload the page to a server. Is there anyway to setup PHP error checking in Dreamweaver? Thanks. Do you mean as you ty...
[ 0.4317466616630554, 0.10437624156475067, 0.10328824073076248, 0.2656638026237488, -0.18976150453090668, -0.2901937961578369, 0.23965910077095032, 0.5869289040565491, -0.21342620253562927, -0.8686649799346924, 0.3152395188808441, 0.560058057308197, -0.10618675500154495, -0.07066605240106583...
to get it to work under Windows. I know that this isn't what you asked for, but Dreamweaver is not a very good editor for PHP. It lacks many features and isn't really meant to be used mainly for PHP. Try these editors, which have on-the-go error checking: * [Eclipse PDT](http://www.eclipse.org/pdt/) * [Zend Studio](h...
[ 0.3884209394454956, -0.18811754882335663, 0.08891507238149643, 0.25482454895973206, -0.1310988813638687, -0.3854677677154541, 0.22162552177906036, -0.2095293551683426, -0.025783561170101166, -0.8089900016784668, 0.09455198049545288, 0.6867486834526062, -0.13158896565437317, -0.186093926429...
your computer and has a spiffy control panel.
[ -0.009663487784564495, 0.21338552236557007, 0.09612448513507843, 0.40759971737861633, 0.3132249116897583, -0.06486926972866058, -0.1254843920469284, 0.3827601671218872, -0.23649263381958008, -0.44287747144699097, 0.0098104914650321, 0.8882989883422852, -0.21306873857975006, -0.066097468137...
I'm working on some Java <-> Perl interaction. I would like to know what the best way is to pass information from Perl to Java. (Great answers about Perl and Java [here](https://stackoverflow.com/questions/603554/how-should-i-call-a-perl-script-in-java) and [here](https://stackoverflow.com/questions/603163/is-perl-a-go...
[ 0.19380611181259155, -0.004845909774303436, 0.2945769727230072, -0.010838842950761318, -0.13153882324695587, -0.005328853614628315, 0.17559002339839935, -0.018067503347992897, -0.4215294122695923, -0.3603600561618805, 0.10478281229734421, 0.4054027199745178, -0.07008090615272522, -0.172873...
compatible data structure from Perl to Java? I guess writing to a text file and reading it from Java would make all the optimization gained by using Perl meaningless. Perlformance is an important issue here. **EDIT:** From what I've seen [here](https://stackoverflow.com/questions/274840/how-can-i-call-perl-from-java...
[ 0.18040145933628082, -0.13401629030704498, 0.5791197419166565, 0.013337266631424427, -0.24387624859809875, -0.1051366850733757, 0.15587368607521057, 0.028589753434062004, -0.20669329166412354, -0.6120340824127197, -0.052499379962682724, 0.7709819078445435, -0.552553653717041, -0.0616429559...
to send data to from your Perl process back to your Java one will depend on what you're sending and how generic and re-usable you want your code to be. Sending back XML strings will be nice and generic but sending back byte arrays created with [pack](http://perldoc.perl.org/functions/pack.html) in Perl and then read a ...
[ 0.45515018701553345, -0.31892499327659607, 0.29587212204933167, -0.06920313835144043, -0.49538713693618774, 0.04432598501443863, -0.04795762896537781, -0.37195104360580444, -0.1454506367444992, -0.5198089480400085, -0.1526435762643814, 0.22274544835090637, -0.583328902721405, -0.1760209500...
Sqlite3 by default sorts only by ascii letters. I tried to look in google, but the only thing I found were informations about collations. Sqlite3 has only `NOCASE`, `RTRIM` and `BIARY` collations. How to add support for a specific locale? (I'm using it in Rails application) SQLite [supports](http://www.sqlite.org/src/d...
[ -0.24217014014720917, 0.44007837772369385, 0.6881565451622009, -0.4195326268672943, -0.2927449345588684, 0.05122049152851105, 0.4681048095226288, -0.2928968071937561, -0.08011077344417572, -0.5661494731903076, -0.10097160935401917, 0.21143889427185059, -0.4989791810512543, -0.0623213611543...
ICU Collation Sequences 1.4 SQL REGEXP Operator ```
[ -0.3302508294582367, 0.3158411383628845, 0.3403410315513611, 0.18940910696983337, 0.1581040769815445, -0.1273195594549179, -0.14023977518081665, -0.1714356243610382, -0.01370631530880928, -0.48312512040138245, -0.1939580738544464, 0.3742947280406952, -0.3560035824775696, 0.3844088315963745...
In sybase is there any built in functions to convert a seconds value into hours, minutes, and seconds? I don't know if there is such a function, but if there isn't, the simple formulae are: ``` HH = floor(seconds / 3600) MM = floor(seconds / 60) % 60 SS = seconds % 60 ```
[ 0.5241032242774963, 0.046094898134469986, 0.3165164887905121, 0.03891003504395485, 0.2098545879125595, -0.11592026799917221, -0.12125851213932037, -0.06504425406455994, -0.14602383971214294, -0.5165542960166931, -0.12159186601638794, 0.1652871072292328, 0.008687889203429222, 0.142842382192...
I have a textarea in an ASP.NET MVC Application where the user can type some text. When I show the text to the user, I use `Html.Encode` to prevent malicious input. The problem is that the user can type in Spanish and maybe he types `año` and the `Encode` transforms this into `a&#241o`. How Can I prevent this? EDIT: I...
[ 0.18158148229122162, 0.4382250905036926, 0.6145172715187073, -0.17866146564483643, -0.05168895423412323, 0.16354720294475555, 0.24448198080062866, -0.16269640624523163, -0.08801388740539551, -0.6540767550468445, -0.05108887329697609, 0.5394999384880066, -0.25920483469963074, -0.18677435815...
that the problem is with the `Html.RouteLink`. > So my guess is that the problem is with the Html.RouteLink Yep. You're not supposed to HTML-encode the parameter going into RouteLink, it generates the HTML itself and so will take care of escaping for you.
[ -0.115007683634758, 0.24577046930789948, 0.664351761341095, 0.13134902715682983, 0.14411130547523499, -0.3076547384262085, 0.1314898133277893, 0.2347417175769806, -0.4014289081096649, -0.3536480963230133, -0.014092843979597092, 0.30736076831817627, -0.4878174066543579, -0.00840062741190195...
I recently used jquery and the form validation plugin on a form we're testing at our community college: * [www.mchenry.edu/parentorientation](http://www.mchenry.edu/parentorientation) Right off the bat, (if viewed with FF, Opera, Safari, etc.) when you click submit w/o entering any values, you get some nice error mes...
[ 0.5178765654563904, 0.18010953068733215, 0.3071240484714508, -0.04571527615189552, -0.24284663796424866, -0.20317791402339935, 0.38219231367111206, -0.07250528782606125, -0.057468824088573456, -0.5118218064308167, 0.02940583974123001, 0.5255215764045715, -0.04889142885804176, 0.00323133007...
Thanks for whatever insight you can offer. Line 51 > }, //end messages Remove comma. And use [IE Debug Bar](http://www.my-debugbar.com/wiki/CompanionJS/HomePage). Try it with a higher version of the jQuery Validation Plugin 1.9.0, it is working with IE7 and 8.
[ 0.17190541326999664, -0.16939383745193481, 0.17732365429401398, 0.07016141712665558, -0.29208725690841675, -0.19204726815223694, 0.4525953233242035, 0.1404327154159546, 0.08194395154714584, -0.5661426782608032, -0.19189578294754028, 0.6089443564414978, -0.0946303978562355, -0.2489374876022...
I have written a message board as my first ASP.NET project. It seems to work well so far. However, one of the features I have is that each message has a spam rating. It is simply the number of times that viewers have marked the message as spam divided by the total number of times the message has been viewed. The idea i...
[ 0.6061219573020935, 0.015603081323206425, 0.3734649121761322, -0.2767263352870941, -0.485749214887619, -0.2156672328710556, 0.36074361205101013, 0.27573198080062866, -0.2597770392894745, -0.48920392990112305, 0.25944140553474426, 0.27602484822273254, -0.17378199100494385, 0.152075737714767...
which will increase the number of times the message has been viewed. It can also be foiled by someone who marks the message as spam a bunch of times in a row. I need a way to determine whether a particular visitor has already viewed a particular message, and a way to determine whether a particular user has already mark...
[ 0.608655571937561, 0.13269367814064026, 0.33350270986557007, -0.14362113177776337, -0.0333082377910614, -0.45764824748039246, 0.40114304423332214, 0.1513029932975769, -0.5426167249679565, -0.2855953276157379, 0.055241018533706665, 0.29931890964508057, -0.23560279607772827, 0.22958911955356...
can track them, or creating a new data table that logs IP addresses of users when they view a message or mark it as spam. Can anyone else think of a better way? Does .NET have any built in features that might help me determine whether the visitor is viewing a page for the first time? The most reliable measure is IP add...
[ 0.549164891242981, -0.16539005935192108, 0.30380046367645264, 0.2594195604324341, -0.16414687037467957, -0.5376742482185364, 0.5520883798599243, 0.11995812505483627, -0.5586621165275574, -0.406220018863678, 0.04187246039509773, 0.6276451349258423, -0.12322007864713669, 0.009948142804205418...
In C#. I have a double (which I've extracted from a database) that has 20 digit precision. In Visual Studio (using QuickWatch) I can see the value of the double to be = 0.00034101243963859839. I want to display this value in a textbox and then have it be the same value when I take it out and convert it back into a dou...
[ 0.15806174278259277, 0.027920430526137352, 0.3391081392765045, -0.44092583656311035, -0.11898980289697647, 0.028909582644701004, 0.42704567313194275, -0.48073819279670715, -0.166978120803833, -0.46038350462913513, -0.28728747367858887, 0.6682336926460266, -0.4950792193412781, -0.4742965102...
= 0.0341012439638598 ``` I want to be able to do the following: ``` double d = 0.00034101243963859839; string s = d.ToString(); //... double d2 = double.Parse(s); if(d == d2) { //-- Success } ``` Is there any way to keep those last two digits of precision?? Use the "R" [numeric format string](https://learn.micros...
[ -0.049353424459695816, 0.24889029562473297, 0.6350336074829102, -0.2859047055244446, 0.2808539867401123, 0.09301142394542694, 0.37185853719711304, -0.697458028793335, -0.4214441478252411, -0.09618174284696579, -0.34000107645988464, 0.9790326356887817, -0.11274406313896179, -0.0888577327132...
no way to keep those last two digits. There's only so much precision available, and I doubt they ever make it into `d` in the first place. But you can make sure your string at least reads back what you do have correctly. If you really need the additional precision, you might try using a `decimal` instead.
[ 0.40475907921791077, 0.09528245776891708, 0.057385608553886414, 0.2243879735469818, 0.06600211560726166, 0.017448624595999718, 0.2403213381767273, 0.08656305819749832, -0.202467143535614, -0.2836162745952606, 0.14185264706611633, 0.2811453938484192, 0.3477516174316406, 0.09753645211458206,...
Is there a Railsy way to convert \n to `<br>`? Currently, I'm doing it like this: ``` mystring.gsub(/\n/, '<br>') ``` Yes, rails has `simple_format` which does exactly what you are looking for, and slightly better since it also adds paragraph tags. See <http://api.rubyonrails.org/classes/ActionView/Helpers/TextHel...
[ 0.26808902621269226, -0.2446666657924652, 0.34419506788253784, -0.09892065823078156, -0.27976104617118835, -0.14164353907108307, 0.29837656021118164, -0.324006587266922, -0.2928027808666229, -0.3843759596347809, 0.01851668581366539, 0.5503119826316833, -0.511372983455658, -0.26921370625495...
We have an ASP.NET website in production that generates a report and sends it to the user's browser as a PDF file. Our error reporting is showing that we are getting a lot of this exception: System.Web.HttpException: The remote host closed the connection. The error code is 0x80072746. These appear to be caused by th...
[ 0.2400221824645996, 0.15106301009655, 0.3583247661590576, 0.14544302225112915, -0.002873619319871068, -0.20111554861068726, 0.3428875505924225, 0.08063319325447083, -0.36654162406921387, -0.650269627571106, 0.06029117479920387, 0.30309128761291504, -0.1978204995393753, 0.18271785974502563,...
go to another machine and try it. And closing the browser when running the website on my machine doesn't produce the exception (presumably because I'm not a "remote host"). So, I guess my question is, how do I test my new error handling code (without pushing it to a live server)? Yes, rails has `simple_format` which ...
[ 0.47564196586608887, -0.10240599513053894, 0.18256902694702148, -0.010945568792521954, -0.08415234833955765, -0.09627095609903336, 0.5915889143943787, -0.47512975335121155, -0.2562914490699768, -0.5453055500984192, 0.054369550198316574, 0.7165434956550598, -0.4498661458492279, -0.277846753...
How can I get a list of assemblies in a given location? I'm trying to reflect over the appdomain, and that's giving me everything that's loaded. I just want what's in the executing assembly's directory. The solution provided by [BtBh](https://stackoverflow.com/users/6088/btbh) works to find all files with extension .dl...
[ 0.4325074851512909, 0.08718898892402649, 0.2713243067264557, -0.1172899603843689, 0.15201179683208466, -0.11892790347337723, 0.4940047264099121, -0.3694608807563782, -0.5294438600540161, -0.3489742577075958, -0.27703583240509033, 0.2171643227338791, -0.20596012473106384, 0.1311403214931488...
[Assembly.ReflectionOnlyLoadFrom](http://msdn.microsoft.com/en-us/library/system.reflection.assembly.reflectiononlyloadfrom.aspx) that allows you to load assemblies for inspection via reflection.
[ 0.5228555202484131, 0.03237437829375267, 0.18955166637897491, 0.13791397213935852, -0.2593439519405365, -0.21230469644069672, 0.4037286341190338, -0.26591187715530396, -0.38861021399497986, -0.41378745436668396, 0.03638208284974098, 0.27302995324134827, -0.10465532541275024, -0.10444628447...
Is there a way to enable the “[My Reports](http://msdn.microsoft.com/en-us/library/ms155893.aspx)” feature in SQL Server Reporting Services 2008 when I am using [SQL Server 2008 Express edition with Advanced Services](http://www.microsoft.com/downloads/details.aspx?familyid=B5D1B8C3-FDA5-4508-B0D0-1311D670E336&displayl...
[ -0.29321810603141785, 0.07277566194534302, 0.3668224513530731, 0.15147830545902252, -0.12794843316078186, -0.005594473332166672, 0.3233952522277832, -0.17475731670856476, -0.42762061953544617, -0.49354204535484314, 0.09563559293746948, 0.3559768795967102, -0.02922857739031315, 0.0891975164...
a guess as I don't have SQL 2008 Express to test this on - but it definitely works on SQL 2005 standard.* I think you can configure the property using `rs.exe` Create a text file (I'm assuming you'll call it myReportsEnable.rss) and add the following text to it: ``` Public Overridable Sub Main() SetSystemPropert...
[ 0.07213828712701797, 0.2503800392150879, 0.42678871750831604, 0.02631467580795288, -0.11959413439035416, -0.2089255154132843, 0.2549353837966919, -0.43811866641044617, -0.1075829491019249, -0.41128551959991455, 0.1608538031578064, 0.5135478377342224, -0.08993567526340485, 0.234807759523391...
to use - apologies if it's not) Save the file, then execute it from a command line using `rs.exe`: ``` rs -i myReportsEnable.rss -s http://~YourServerName~/reportserver ```
[ -0.05909937247633934, 0.26837754249572754, 0.4326777458190918, -0.09517409652471542, -0.07744807004928589, -0.23391030728816986, 0.4985992908477783, -0.31057897210121155, -0.009566307067871094, -0.6309188008308411, -0.4133138656616211, 0.42090073227882385, -0.08861970901489258, 0.104211568...
I have a 32 bit in-proc STA VB6 dll. I sadly cannot do anything about this. My C# component greatly benefits from being 64 bit. Is there anyway to call/interface with this 32-bit dll from my 64 bit process? Any sort of wrapper or anything? There's no direct way you can do this. Since you can't port the VB6 inproc dll ...
[ 0.5020318031311035, 0.30796271562576294, 0.27740123867988586, 0.1766686737537384, 0.03460640087723732, 0.09476504474878311, 0.1608545035123825, 0.23313693702220917, -0.22264042496681213, -0.7814602851867676, 0.0678345188498497, 0.7267464995384216, -0.2589973509311676, 0.5219807028770447, ...
marshaling the types between the processes. It ain't pretty, bit it will work!
[ 0.6371715664863586, 0.1723332405090332, -0.022255875170230865, 0.18692776560783386, 0.018699465319514275, 0.08228743821382523, 0.2678024470806122, -0.17703965306282043, 0.135829895734787, -0.3847891092300415, 0.3844747245311737, 0.5694929361343384, -0.078900545835495, -0.12968720495700836,...
I just tried to do a correlated subquery in the `FROM` clause of a `SELECT` statement in Oracle, but I was given an error indicating that I couldn't do the correlation (something to the effect that `Obs.pID` was not recognized). Should this work? ``` FROM ml.Person Person JOIN ml.Obs ON Person.pID = Obs.pId ...
[ 0.17538057267665863, -0.35419368743896484, 0.34614571928977966, 0.030903302133083344, -0.1000254675745964, 0.3105248212814331, 0.1066097766160965, -0.05661732330918312, 0.0031230722088366747, -0.7707245349884033, -0.2483699917793274, 0.29403701424598694, -0.3022339642047882, 0.087269350886...
FROM ml.Obs ObsMax2 WHERE ObsMax2.pId = Obs.pId AND ObsMax2.obsDate < {?EndDate} GROUP BY ObsMax2.pId, ObsMax2.hdId) ObsMax ON Obs.pId = ObsMax.pId AND Obs.hdId = ObsMax.hdId
[ -0.6803640723228455, -0.06029152870178223, 0.8514842987060547, -0.21846546232700348, -0.11040893197059631, 0.4351128339767456, 0.280329167842865, 0.0871853232383728, 0.1024676114320755, -0.8171559572219849, -0.5412530899047852, 0.08766938000917435, -0.19742712378501892, 0.39299437403678894...
AND Obs.obsDate = ObsMax.maxDate ``` My workaround would appear to be to make it a non-correlated subquery, and add criteria to the subquery that keeps it from running completely amuck, amuck, amu--*oof* Sorry. I'd rather figure out how to properly correlate it, though, if possible - the view that works like that s...
[ 0.06585850566625595, -0.07274238020181656, 0.5298280119895935, 0.24314682185649872, -0.1262049376964569, 0.15742002427577972, 0.0811024084687233, 0.1617867648601532, 0.08701460063457489, -0.5175118446350098, 0.08126381784677505, 0.26096364855766296, -0.41227662563323975, 0.1094414442777633...
( SELECT pId, hdId, obsDate MAX(obsDate) over (partition by pId, hdId) maxDate FROM ml.Obs WHERE obsDate < {?EndDate} ) where obsDate = maxDate / ```
[ -0.2227340042591095, -0.2739991247653961, 0.6573187708854675, -0.25846439599990845, 0.19553300738334656, 0.3253866732120514, -0.009857112541794777, -0.1494816243648529, 0.0414908342063427, -0.7686892151832581, -0.19021646678447723, 0.13059672713279724, -0.15357474982738495, 0.2883520722389...