text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
skipping if you can avoid it. Other than that, they are roughly equivalent. I use both, but lately I've used `script/runner` executing a script separately more.
[ 0.43621689081192017, -0.28346893191337585, -0.6724838018417358, 0.1252344697713852, -0.3196966350078583, -0.22656944394111633, -0.03592913970351219, 0.06960414350032806, -0.6434949040412903, -0.43966159224510193, 0.14390163123607635, 0.278281033039093, -0.3359822928905487, -0.3763397336006...
Since I am completely useless at regex and this has been bugging me for the past half an hour, I think I'll post this up here as it's probably quite simple. ``` <a href="/folder/files/hey/">hey.exe</a> <a href="/folder/files/hey2/">hey2.dll</a> <a href="/folder/files/pomp/">pomp.jpg</a> ``` In PHP I need to extract ...
[ 0.2526199519634247, 0.21228377521038055, 0.5870517492294312, -0.14231708645820618, -0.29818132519721985, -0.21853919327259064, 0.13053211569786072, -0.2376933991909027, 0.03411642462015152, -0.6652182936668396, 0.020266635343432426, 0.6036934852600098, -0.314314067363739, -0.22676801681518...
array // matches in between the <a></a> tags will be in $matches[1] print_r($matches); ```
[ 0.17859846353530884, 0.17111891508102417, 0.3263448476791382, -0.2930190861225128, 0.050204478204250336, -0.14993613958358765, -0.1647658348083496, -0.3692907989025116, 0.0051642111502587795, -0.3479103446006775, -0.08116196095943451, 0.439315527677536, -0.5186468958854675, -0.075351998209...
I'm playing WoW for about 2 years and I was quite curious about Lua which is used to write addons. Since what I've read so far about Lua was "fast", "light" and "this is great", I was wondering how and when to use it. What is the typical situation where you will need to embed a script language like Lua in a system ? W...
[ 0.5141298770904541, 0.16085250675678253, 0.09824522584676743, -0.20115511119365692, -0.45577362179756165, -0.24945683777332306, -0.01858639530837536, 0.2551434338092804, -0.23534782230854034, -0.2552916407585144, 0.4114902913570404, 0.18173567950725555, 0.14188680052757263, 0.0117194373160...
to be changed.
[ 0.2359330803155899, -0.3682745397090912, -0.22191520035266876, 0.13959041237831116, 0.005602899473160505, 0.18695306777954102, 0.19079427421092987, -0.2699677348136902, -0.11479052156209946, -0.7913429141044617, 0.09305669367313385, 0.35651519894599915, -0.5337973237037659, 0.2478912621736...
I've gotten used to using `<table>s` for aligning my form fields perfectly. This is how I commonly write my forms: ``` <table border="0"> <tr> <td><label for="f_name">First name:</label></td> <td><input type='text' id='f_name' name='f_name' /></td> <td class='error'><?=form_error('f_name');?></td> ...
[ 0.49288564920425415, 0.17346543073654175, 0.6184332966804504, -0.19755229353904724, -0.03769823908805847, -0.0043652174063026905, 0.09533616900444031, -0.5692386627197266, -0.026613397523760796, -0.8414288759231567, 0.10589438676834106, 0.552844226360321, -0.047538742423057556, -0.38171488...
for a form, but I ended up reverting back to tables just because they looked so much better. How can I get this kind of aligned table layout without using `<table>`s? This might not get a lot of support but here's my two cents: In some situations tables are **easier** for layout; such as three columns or forms (albei...
[ 0.4850814938545227, 0.40012073516845703, 0.27257034182548523, -0.09777355939149857, -0.1846897155046463, 0.0017847155686467886, 0.3220634460449219, -0.5410133600234985, -0.10317987948656082, -1.0395245552062988, -0.14394402503967285, 0.3572959899902344, -0.2438732236623764, -0.290615200996...
"The Art of Software Security Assessment" ``` I believe that this quote very strongly applies to this situation. If your table layout is working for you, not causing accessibility issues and isn't broken - then don't fix it. Phrases like: "you should", "must", "always" - make me scared, because one-size-doesn't-fit-...
[ 0.6692135334014893, 0.3640468716621399, -0.1906212866306305, 0.07810850441455841, 0.035311806946992874, -0.3347209393978119, 0.5368918180465698, 0.07581610977649689, 0.20557516813278198, -0.7044784426689148, 0.02261742204427719, 0.734941303730011, -0.2694993019104004, 0.15280404686927795, ...
I have a C# application that has a webbrowser and need to be able to completely disable it at times. What is the best method of doing this? I was thinking about creating a transparent panel to put over the webbrowser when needed, but am not sure if this is the best approach. I also noticed that C# doesn't easily allow...
[ 0.5027520656585693, -0.014463045634329319, -0.07982954382896423, 0.19342797994613647, -0.16877682507038116, -0.25405851006507874, 0.41925403475761414, 0.3001742362976074, -0.07233981043100357, -0.7075181603431702, -0.1020227000117302, 0.7524145841598511, -0.6412038803100586, 0.146256893873...
it to. You can set the AllowNavigation property to false which will stop the user clicking on links. Turns out it does have an Enabled property, inherited from Control. But you have to explicitly cast it to Control to access it: ``` ((Control)webBrowser1).Enabled = false; ``` You should be aware though that setting...
[ 0.0762641429901123, -0.2054172307252884, 0.830978512763977, 0.019770165905356407, 0.17996647953987122, -0.3276040256023407, 0.6134297251701355, -0.08893827348947525, 0.21243594586849213, -0.5275254845619202, -0.03936569020152092, 0.7944025993347168, -0.37564489245414734, 0.1927104294300079...
links but still allow them to scroll the page. You'd need to check though that it also stops Javascript onclick events from firing. If you wanted to stop any events from firing in the page you could probably achieve that will some DOM work from the WebForms code into the WebBrowser control. You also probably need to s...
[ 0.054060231894254684, -0.26724499464035034, 0.5786535739898682, 0.3224916160106659, -0.2116331160068512, -0.47712039947509766, 0.5750648975372314, -0.059795163571834564, -0.40147119760513306, -0.6272810697555542, 0.07666120678186417, 0.6867266297340393, -0.4597291648387909, 0.1900455057621...
Is there a simple way to sort rows in a JTable with Java 1.5 (`setAutoCreateRowSorter` and `TableRowSorter` appear to be Java 1.6 features)? Sorting in Java 1.5 is only possible via libraries. E.g. use the JXTable mentioned from Kaarel or VLTable from [here](http://www.vlsolutions.com/en/documentation/articles/jtable/...
[ 0.011246523819863796, -0.16185246407985687, 0.06444615125656128, 0.051198169589042664, -0.23461923003196716, 0.10212086141109467, -0.23329976201057434, -0.17429642379283905, -0.48970699310302734, -0.6753476858139038, -0.02164427377283573, 0.17480142414569855, -0.43960654735565186, -0.17022...
I am doing some long simulations that can take from several hours to several days and I am logging the information into files. The files can reach sizes of hundreds of Mb and inside there is just a list of numbers. I am really concern about the overhead that this is originating. I would like to ask if the overhead of u...
[ 0.4259209930896759, 0.11762247234582901, 0.0657329261302948, 0.18812358379364014, 0.29166311025619507, -0.34503573179244995, -0.05048767849802971, 0.280467689037323, -0.2718292772769928, -0.7892518639564514, 0.2589072585105896, 0.43364861607551575, 0.021014753729104996, 0.4724330008029938,...
To explain the overhead if you can give a practical example similar to, using files it takes this time without using them this time, that will be ideally. I did some test but I have no idea if the overhead grows lineally with the size of the files. What I am saying is that maybe is not the same add a line to a file of...
[ 0.5710892081260681, -0.06438479572534561, 0.3266500234603882, 0.2625565826892853, 0.09191647171974182, 0.07516704499721527, -0.09647855907678604, -0.07324587553739548, -0.6095530986785889, -0.5873305201530457, 0.4271818697452545, 0.5224623084068298, -0.0994994267821312, 0.2500351667404175,...
400MB. Let "several hours to several days" be 48 hours. (400 \* 1024 \* 1024 bytes) / (3600 \* 48 seconds) = 2427 bytes/sec Obviously, you can just watch your system or use real numbers for the calculation, but using the rough estimate above you're logging about 2KB/sec, which is pretty trivial compared to the ave...
[ 0.4259392023086548, -0.06035732477903366, 0.34484726190567017, 0.3007684350013733, 0.1788400411605835, -0.2144079953432083, 0.17567427456378937, 0.015252577140927315, -0.4421015977859497, -0.22011780738830566, 0.011383124627172947, 0.6444098353385925, 0.16057130694389343, 0.010047746822237...
what you stated.
[ 0.5712963938713074, 0.16923436522483826, -0.03695714473724365, 0.08458847552537918, -0.061370979994535446, -0.22259673476219177, 0.34357258677482605, -0.3337140381336212, -0.033586274832487106, -0.39219072461128235, 0.2857995927333832, 0.4970954954624176, -0.5174139142036438, 0.36484414339...
How can I have another Terminal open when I am at my server by ssh? I do not want to type my password twice to get another terminal for my server. Perhaps, Bash has buffers similarly as Vim. Check out [GNU screen](http://www.gnu.org/software/screen/). It's kind of arcane and awkward to use, but does what you're looki...
[ 0.32202279567718506, 0.25170600414276123, 0.27495628595352173, 0.07766097038984299, -0.006685861852020025, -0.31168997287750244, 0.40408244729042053, 0.12382812052965164, -0.3722517192363739, -1.0543488264083862, 0.21280249953269958, 0.46102896332740784, -0.16501560807228088, 0.11970670521...
every time and then just use multiple connections in Terminal tabs.
[ 0.31817302107810974, -0.019018445163965225, 0.4080086648464203, 0.19549795985221863, 0.18955960869789124, -0.15292499959468842, 0.05313883349299431, 0.41373181343078613, -0.196358785033226, -1.022027850151062, 0.10075218230485916, 0.2901194095611572, -0.11421850323677063, 0.209215164184570...
Another beginner question for ASP.NET: I'm starting an ASP.NET project in Visual Studio 2008, and would like to link it to a folder on a remote server (as in it builds/publishes to this folder). It may be my phrasing, but I cannot seem to figure out how to do this (even with Google at my side!). I naively tried to ju...
[ 0.23919998109340668, 0.05598608776926994, 0.13907428085803986, 0.1870003193616867, -0.34700557589530945, -0.2582237422466278, 0.2229001373052597, 0.19215629994869232, -0.37066879868507385, -0.47294479608535767, 0.18109074234962463, 0.10736678540706635, 0.07719089835882187, -0.1656385511159...
more about this basic asp.net/vs08 stuff I keep running into). On your web server the folder you copied your files into needs to be set up as an application or a virtual directory. This is done through the Internet Information Service panel found in the "Administrative Tools" off the Control Panel. Depending what flav...
[ 0.3200331926345825, -0.13697445392608643, 0.26047271490097046, -0.016239216551184654, -0.08349579572677612, -0.42053595185279846, 0.19442449510097504, 0.016285613179206848, -0.31409952044487, -0.585642397403717, -0.015584008768200874, 0.6898428201675415, -0.1800905168056488, -0.03200392052...
I'm writing a ksh script and I have to run a executable at a separate Command Prompt window. I believe you mean something like `xterm -e your.sh &` Don't forget the final `&`
[ 0.4386312663555145, 0.4221112132072449, 0.3174208700656891, 0.005971542093902826, 0.08195830136537552, -0.2295018434524536, 0.5548183917999268, 0.5652763843536377, 0.12456347048282623, -0.5251710414886475, -0.2994115352630615, 0.42828091979026794, -0.060410432517528534, 0.24475982785224915...
Is it possible to prevent a user from typing in a file input text box in IE? The reason I ask is that if a user enters text that does not look like a file system path (eg. doesn't start with something like c:...) then when the user clicks the submit button nothing will happen. I would either like to not allow the user...
[ 0.6314060688018799, -0.03775223344564438, 0.1428615003824234, 0.09977956116199493, -0.061980608850717545, -0.46821215748786926, 0.42140281200408936, -0.09599872678518295, 0.06944992393255234, -0.5329232215881348, 0.16283060610294342, 0.4992172122001648, -0.3217694163322449, 0.2203457802534...
is no other suitable answer: <http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom> EDIT: To clarify - if the user types "not a file path" in the text box next to the "Browse" button and clicks submit, in IE nothing will happen. The form will not submit - IE does not allow a form to be...
[ 0.06440753489732742, 0.018713459372520447, 0.792556643486023, -0.2102096974849701, -0.058606091886758804, -0.024225274100899696, 0.3829410970211029, -0.6620907187461853, -0.1179218739271164, -0.665348470211029, -0.020250849425792694, 0.49486202001571655, -0.3147278428077698, -0.11886515468...
= document.forms[0].inputFile; if (inputFile.value != "" && /^(\w:)|(\\)/.test(inputFile.value)) { alert("File is not a valid file. Please use the Browse button to select a file."); inputFile.select(); inputFile.focus(); return false; } } return true; } function submitForm() { d...
[ 0.42596447467803955, -0.1807902753353119, 0.5610944628715515, -0.2742055058479309, 0.05423597991466522, -0.3580330014228821, 0.4794800877571106, -0.38472238183021545, 0.07472863048315048, -0.5830376148223877, -0.39316684007644653, 0.5603867173194885, -0.2173493355512619, -0.080727264285087...
Windows OS.
[ -0.6260057091712952, 0.01610420271754265, 0.4663960337638855, 0.045933399349451065, -0.12249954044818878, -0.19019103050231934, 0.1698048859834671, 0.5982218980789185, 0.027859320864081383, -0.9145588278770447, -0.5252255201339722, 0.5040870308876038, -0.3096090853214264, 0.132156237959861...
I've overridden my controller's OnActionExecuting method to set some internal state based on the executing filterContext. How do I test this? The method itself is protected so I assume I'll have to go higher up in the call stack. What code do I need to test this? I'm using mvc RC 1. Edit: I'm also using nunit. Th...
[ 0.35196107625961304, -0.14466319978237152, 0.14458931982517242, 0.24404557049274445, 0.011467545293271542, -0.24384258687496185, 0.40647247433662415, 0.09155373275279999, -0.1721448451280594, -0.7440468072891235, -0.050620853900909424, 0.5905495285987854, -0.4044409394264221, 0.37137153744...
method should be available on the accessor. Here's a sample test from my own code: ``` /// <summary> ///A test for OnActionExecuting ///</summary> [TestMethod()] [ExpectedException( typeof( InvalidOperationException ) )] public void OnActionExecutingWindowsIdentityTest() { var identity = WindowsIdentity.GetCurrent...
[ -0.023097628727555275, -0.2773909866809845, 0.5589630007743835, 0.22028100490570068, 0.05635751038789749, 0.1338183879852295, 0.41924798488616943, -0.8492441773414612, -0.07237943261861801, -0.4298984408378601, 0.1946231871843338, 0.3624250590801239, -0.246202290058136, 0.26598456501960754...
controller ); ActionExecutingContext filterContext = new ActionExecutingContext( controllerContext, actionDescriptor, new Dictionary<string, object>() ); accessor.OnActionExecuting( filterContext ); } ``` **EDIT**: If you aren't using MSTest for your unit tests, you may have to generate the accessors by ha...
[ -0.02407035417854786, -0.5104688405990601, 0.3857223391532898, 0.07920165359973907, -0.005200287792831659, -0.05323721840977669, 0.19749943912029266, -0.4448424279689789, -0.2131047397851944, -0.6192061901092529, -0.2476286143064499, 0.7058971524238586, -0.5503994822502136, -0.008038158528...
protected void DoSomething( int num ) { } } public class MyClass_accessor { private MyClass privateObj; public MyClass_accessor( MyClass obj ) { this.privateObj = obj; } public void DoSomething( int num ) {
[ 0.08276969939470291, -0.10943543910980225, 0.16992276906967163, -0.2163977324962616, 0.3187417685985565, 0.11827608942985535, 0.4118019640445709, -0.1649772673845291, -0.08650669455528259, -0.6496976017951965, -0.171346515417099, 0.8741937279701233, -0.28726229071617126, 0.1838134527206421...
MethodInfo info = privateObj.GetType() .GetMethod("DoSomething",
[ 0.2068609595298767, -0.1363232135772705, 0.3919425904750824, 0.21201765537261963, 0.10454058647155762, -0.024278325960040092, 0.4845527410507202, -0.6083762645721436, -0.1036672368645668, -0.34753239154815674, 0.23283889889717102, 0.4637289047241211, -0.4540206491947174, 0.1444400250911712...
BindingFlags.NonPublic | BindingFlags.Instance ); info.Invoke(obj,new object[] { num }); } } ```
[ -0.13308173418045044, 0.1121472492814064, 0.6418965458869934, -0.10273641347885132, -0.07823345810174942, -0.143106147646904, 0.41999658942222595, -0.08081569522619247, -0.3374996483325958, -0.6676696538925171, -0.39687857031822205, 0.11786239594221115, -0.7244505286216736, 0.6021903157234...
I can't think of an easy one or two liner that would get the previous months first day and last day. I am LINQ-ifying a survey web app, and they squeezed a new requirement in. The survey must include all of the service requests for the previous month. So if it is April 15th, I need all of Marches request ids. ``` va...
[ 0.36321794986724854, 0.2123648077249527, 1.2667464017868042, -0.2598365545272827, -0.0002663586928974837, 0.12574982643127441, -0.08463966846466064, -0.5289859175682068, -0.542487621307373, -0.6778369545936584, 0.23883163928985596, 0.356188029050827, 0.1462409347295761, -0.0029626721516251...
r.dteCreated <= LastMonthsLastDate select r.intRequestId); ``` I just can't think of the dates easily without a switch. Unless I'm blind and overlooking an internal method of doing it. ``` var today = DateTime.Today; var month = new DateTime(today.Year, today.Month, 1); var first = month.Add...
[ 0.03016131930053234, -0.03927059844136238, 0.6665909886360168, -0.265658974647522, 0.06326035410165787, 0.2962177097797394, 0.3296825587749481, -0.09837297350168228, -0.1988518387079239, -0.7159901857376099, -0.3394440710544586, 0.37509089708328247, 0.0018655492458492517, 0.337660312652587...
Bluehost only recommends PuTTy. However, is it possible to use ssh keys without any extra, visible programs in Mac? I would like to have a connection to my server to be a breeze, so that I can control my server in Terminal. Of course! On Unix and OS X, the `ssh-keygen` command will generate public and private keys for...
[ 0.004699749406427145, -0.04226778447628021, 0.3246113657951355, -0.10371389240026474, 0.36659300327301025, -0.23546649515628815, -0.05846346542239189, 0.37433263659477234, -0.2543594539165497, -0.7420401573181152, -0.14420823752880096, 0.5243001580238342, -0.2813480794429779, 0.14958573877...
same name with a `.pub` extension added (for example: `~/.ssh/id_rsa.pub`). The command also asks you to create a password ("passphrase") for the private key; you can leave it blank for no password as I do, but I don't recommend this practice. Once you have your public and private keys on the client computer, you nee...
[ 0.32726824283599854, 0.02053610049188137, 0.5901944637298584, -0.15991705656051636, 0.035256706178188324, -0.1844530999660492, 0.21169422566890717, -0.08290299773216248, -0.2706337571144104, -0.5977383255958557, -0.251935213804245, 0.4005846679210663, -0.27306240797042847, 0.37618196010589...
you shell access (though Bluehost does), or this procedure doesn't work, it will likely give you a web interface to the same functionality. Once your server is set up to recognize your public key, it will allow you access without a password when `ssh` on the client tries to use your private key for authentication. You...
[ -0.019531771540641785, -0.005010742228478193, 0.09815764427185059, 0.21268147230148315, 0.18745103478431702, -0.3953368067741394, 0.49244165420532227, 0.02554243430495262, -0.15076152980327606, -0.6623326539993286, -0.1746845543384552, 0.6097924113273621, -0.08880884945392609, 0.3029788136...
I'm merging two projects one uses delegates for logging and the other uses events. Is one faster then the other and why? Or is there an advantage to using one over the other? I believe backgroundr, backgroundg, and backgroundb are local variables to your ColourCheck() function. If you're determined to use global varia...
[ 0.3589027523994446, -0.5541182160377502, 0.4253736436367035, -0.2605533003807068, 0.13357679545879364, 0.22070401906967163, -0.11885975301265717, -0.16016420722007751, -0.560761570930481, -0.7300086617469788, -0.1032203808426857, 0.4722549319267273, -0.5614095330238342, -0.0499878711998462...
50: backgroundr = int(random.random()*255)+1 backgroundg = int(random.random()*255)+1 backgroundb = int(random.random()*255)+1 ```
[ 0.08379227668046951, -0.017749981954693794, -0.017320800572633743, -0.10290274024009705, 0.04518740251660347, 0.30477675795555115, -0.0039908187463879585, -0.7999401092529297, -0.08173254132270813, -0.5052129626274109, -0.2370915412902832, 0.2737879157066345, -0.3402731120586395, -0.083352...
Generally I would go about this by placing something(s) unique and random in the ROM image and use that as a seed to encrypt the EEPROM content to stop extraction and reprogram after image mod. An obvious flaw seems to be that this doesn't stop tampering in the form of replacing the EEPROM external chip with a blank o...
[ 0.6053897142410278, 0.23952750861644745, 0.13322670757770538, 0.12560734152793884, 0.26563289761543274, 0.07831092923879623, 0.05299076810479164, -0.21271385252475739, -0.024521948769688606, -0.5196166634559631, 0.04885552451014519, 0.723471999168396, -0.23402370512485504, 0.25131437182426...
change so disconnecting the erase line is also a no-go. I was seeking opinion on possible solutions to prevent the faking of a virgin (first run) state since this would allow functionality to save the sensitive data and unlock the device. I am confident a block cipher (ECB mode) is sufficient to secure the sensitive ...
[ 0.3157958984375, -0.10497016459703445, 0.45788100361824036, 0.09614746272563934, 0.45868659019470215, -0.25831088423728943, 0.4058774709701538, -0.004260411020368338, -0.2920018434524536, -0.12599094212055206, -0.09408355504274368, 0.39812925457954407, -0.2833511233329773, 0.29594090580940...
can 1. generate a checksum over the whole eeprom, only start your app if the checksum is ok 2. use an additional chip which provides a unique number, use that number to encrypt the content of the eeprom 3. store all your info in several places in the eeprom (two times if you only want to detect a change, three times i...
[ 0.6367491483688354, 0.10442598909139633, 0.5935986042022705, 0.2391711175441742, 0.4230022430419922, 0.17756809294223785, 0.20983414351940155, -0.5135738253593445, -0.16063086688518524, -0.47815239429473877, -0.35076484084129333, 0.5634499192237854, -0.3443307876586914, -0.2756035327911377...
of your pcb, ...
[ 0.3209909200668335, 0.3088111877441406, 0.029515448957681656, 0.05496440455317497, 0.40190693736076355, -0.24420687556266785, -0.24735994637012482, 0.186387300491333, -0.134241983294487, -0.5439015626907349, -0.009258808568120003, 0.5651741623878479, -0.08429112285375595, 0.093255840241909...
I have an application that is built as a Windows Service and a c# library assembly (.dll.) In order to manage and maintain this service, I'd like to add the ability to run a command-line application that tells the last time the service archived files, the next time it's scheduled to do so, the status of the last run, a...
[ 0.5547041893005371, 0.1601891666650772, 0.288399875164032, -0.0654740184545517, -0.02944556437432766, -0.2694157063961029, 0.02066139504313469, 0.05436050891876221, -0.30145397782325745, -0.7619085907936096, 0.031931906938552856, 0.5451180934906006, -0.15221719443798065, 0.2123758643865585...
if both processes are on the same machine). Other responses have suggested alternatives to inter-process communication which would not require remoting.
[ -0.020653044804930687, -0.42080724239349365, 0.23164677619934082, 0.25803902745246887, 0.055875103920698166, 0.3269984722137451, 0.2852175831794739, -0.23942451179027557, -0.4639946222305298, -0.6996243596076965, -0.4311504662036896, 0.5249243378639221, -0.2561233639717102, -0.007939255796...
The current expression validates a web address (HTTP), how do I change it so that an empty string also matches? ``` (http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])? ``` Use expression markers `^$` around your expression and add `|^$` to the end. This way you're using the `|` `...
[ -0.28929781913757324, 0.038499318063259125, 0.8879107236862183, -0.12549109756946564, 0.1320101022720337, -0.1918211132287979, 0.1348952203989029, -0.30627453327178955, 0.24568912386894226, -0.8182700276374817, -0.42925208806991577, 0.5494213104248047, -0.30669966340065, -0.166484475135803...
Hi I am trying out the membership features for .NET and I am using the ASP.NET Web application Administration Tool. My question is where is the user data being stored? I checked my databases and I cannot find it anywhere. I also tried to look for any information within Providers in the admin tool but I still could not ...
[ 0.39699652791023254, 0.0809057354927063, 0.44814619421958923, 0.25152522325515747, -0.3087459206581116, -0.17297504842281342, 0.41046223044395447, -0.0005372530431486666, -0.39644888043403625, -0.46946775913238525, 0.14730677008628845, 0.29477858543395996, -0.07314349710941315, 0.163212954...
called ASPNETDB.MDF in the App\_Data folder of your web application project. That's a SQL Express database file. Edit: Try looking in the App\_Data folder in Windows Explorer. It may be on the disk but not showing up in the project inside of Visual Studio. <https://web.archive.org/web/20210513220018/http://aspnet.4gu...
[ 0.2842753231525421, -0.20805324614048004, 0.2409590780735016, 0.0058876206167042255, -0.04666038975119591, -0.06351958960294724, 0.2044326812028885, 0.10339541733264923, -0.6418745517730713, -0.6664063334465027, -0.08923687785863876, 0.3091084659099579, -0.3762361705303192, -0.118368662893...
I have some exposure to CakePHP and think it is a great framework. Then, I run into this thing called Qcodo. It is another PHP Framework. I've been hearing Zend alot. They all seem very neat, but I'm wondering what are differences between all these frameworks. Before I waste too much time learning another framework, ...
[ 0.39684852957725525, 0.008268536999821663, -0.04831577464938164, -0.005279717035591602, -0.5535776019096375, -0.030303044244647026, -0.08789338171482086, 0.1678866744041443, -0.3236118257045746, -0.7103687524795532, 0.30208057165145874, 0.2568618953227997, -0.10276015102863312, -0.06792159...
of automagic, but unfortunately it is one of the [slowest frameworks out there](http://www.avnetlabs.com/php/php-framework-comparison-benchmarks). It also doesn't have official forums, and there really isn't that busy of a community. It tries to be a Ruby on Rails clone, but that just doesn't work so well with PHP. Ze...
[ 0.511262834072113, -0.07390718907117844, -0.15614710748195648, 0.35971522331237793, -0.010971371084451675, 0.07097189128398895, 0.31858593225479126, 0.054925136268138885, 0.014128278940916061, -0.38281911611557007, 0.322502464056015, 0.6778774261474609, -0.47705280780792236, -0.13201971352...
frameworks! I use [CodeIgniter](http://codeigniter.com/) at work and I love it. It is by far the most newbie friendly framework, and with your CakePHP experience it should be a breeze. It has [very good documentation](http://codeigniter.com/user_guide/toc.html) that is thorough, clear, and well written. There are a fe...
[ 0.8127841353416443, 0.18970483541488647, 0.21878936886787415, 0.07671383023262024, -0.2188289612531662, -0.6781544089317322, 0.09399545937776566, 0.10707753896713257, -0.4153965413570404, -0.9967602491378784, -0.21230408549308777, 0.2860974073410034, -0.18668116629123688, 0.047826007008552...
want an ORM for CI, I recommend [DataMapper](http://codeigniter.com/forums/viewthread/90181/). You may also want to check out [Kohana](http://kohanaphp.com/). It's a spin off of CodeIgniter. It's strictly PHP5 and has an ORM and some more features. Haven't used it myself though, but I have heard good things.
[ 0.6554412841796875, -0.09363902360200882, 0.15568514168262482, 0.16127991676330566, -0.04233640432357788, -0.3287148177623749, -0.2206568866968155, 0.15930113196372986, -0.5038381814956665, -0.5587185025215149, 0.1560363620519638, 0.14483584463596344, -0.13067039847373962, 0.22121195495128...
I want to have a secure control but also want to extend the existing button or textbox the asp.net framework provides. So my class dec would look something like: ``` public class MyTextBox : System.Web.UI.WebControls.TextBox ``` I was thinking something like a strategy pattern for doing it, but not sure how I could ...
[ 0.06872700899839401, -0.134822815656662, 0.17657598853111267, 0.24415180087089539, -0.16138651967048645, -0.2483876347541809, 0.25084254145622253, 0.13136185705661774, 0.07719189673662186, -0.8209322690963745, -0.07555337250232697, 0.3386073112487793, -0.28805452585220337, 0.08622831106185...
it in somehow at creation? ``` override OnInit() { secureControl = new MySecureControl(); } override OnRender() { if(secureControl.CanRender) base.OnRender(); } ``` Is there a better way? or am I solving my own problem here... yes, that's pretty much it. For that specific situation, I would move on. If MyS...
[ 0.16675837337970734, -0.00628759665414691, 0.27422699332237244, 0.021767500787973404, 0.28368908166885376, -0.11684508621692657, 0.40037158131599426, -0.12361367046833038, 0.004986328538507223, -0.7835069298744202, -0.08968981355428696, 0.41057077050209045, -0.1998443305492401, 0.337811440...
I'm writing a CMS for various forms and such, and I find I'm creating a lot of drop-downs. I don't really feel like mucking up my database with tons of random key/string value tables for simple drop-downs with 2-4 options that change very infrequently. What do you do to manage this in a responsible way? This is langua...
[ 0.25875324010849, 0.2378043532371521, 0.008010066114366055, 0.23294538259506226, 0.18293523788452148, -0.08633669465780258, 0.1491217017173767, 0.08205916732549667, -0.26235857605934143, -0.4676997661590576, -0.04580053687095642, 0.24347983300685883, -0.08167007565498352, -0.12743984162807...
flexibility of an "Other, please specify" option in lookup dropdowns. We made a control that encapsulated this, with a property to turn this behaviour on or off on a case-by-case basis. If the end user picked "Other, please specify", a textbox would appear for them to enter their own value. This would be added to the ...
[ -0.06410934776067734, -0.44298452138900757, 0.35595643520355225, -0.12995240092277527, 0.14360085129737854, 0.03764696791768074, -0.005875891540199518, -0.1619691103696823, -0.37245693802833557, -0.22353358566761017, -0.2923603653907776, 0.46967053413391113, -0.4348258376121521, -0.1414487...
the frequency of usage of the AdHoc values, allowing the administrators of the site to promote common popular values into general usage (i.e. changing their Status flag to Active). This may well be overkill for your app, but it worked really well for ours: the app was basically almost entirely CRUD operations on very ...
[ 0.4670946002006531, 0.13713449239730835, 0.2871491312980652, 0.4928964376449585, -0.22499337792396545, -0.1665893942117691, 0.11743827909231186, 0.1513500064611435, -0.07566618919372559, -0.1459701955318451, 0.30506959557533264, 0.6594688296318054, -0.2851407527923584, -0.20676110684871674...
What would be the best (or fastest) way to find all the possible values of "foo" in the following example array. ``` var table = [ {foo: 0, bar:"htns", stuff:123}, {foo: 2, bar:"snhn", stuff:156}, {foo: 5, bar:"trltw", stuff:45}, {foo: 5, bar:"lrctm", stuff:564}, //few thousand lines later {foo...
[ -0.14275045692920685, 0.10811109840869904, 0.6701861619949341, -0.18774369359016418, 0.057379353791475296, 0.3868078589439392, 0.1251213401556015, -0.52071613073349, -0.09734691679477692, -0.4302525222301483, -0.19554220139980316, 0.3274040222167969, -0.28008851408958435, 0.057035561650991...
result[(typeof value) + ' ' + value] = value; } for(id in result) { if(result.hasOwnProperty(id)) { console.log(result[id]); } } ``` It will still break for objects, though: as long as the `toString()` method hasn't been overwritten, they all share the string representation `'[object Object]'`.
[ -0.17689763009548187, 0.07266658544540405, 0.6107249855995178, -0.11572152376174927, 0.27789148688316345, -0.3924822211265564, 0.07948045432567596, -0.39694705605506897, -0.3823988437652588, -0.18512442708015442, -0.34357964992523193, 0.39242473244667053, -0.011789393611252308, 0.191548436...
Example: 1. If I read a file and copy it to another file through .NET Streams will the total size of the file occupy the memory at any moment? Or will the bytes be discarded as soon as they are used? 2. If the naive approach doesn't saves memory would buffered Streams do it? If you stream your copying, i.e. read a bu...
[ 0.22680208086967468, -0.2530723810195923, 0.056301672011613846, 0.13682204484939575, 0.016334515064954758, -0.07422608882188797, 0.09969601780176163, -0.21728675067424774, -0.32151979207992554, -0.612731397151947, 0.1831987202167511, 0.5292236804962158, -0.37731093168258667, 0.228329539299...
you want to do it yourself, use something like this: ``` public void CopyData(Stream input, Stream output) { byte[] buffer = new byte[32 * 1024]; int read; while ((read = input.Read(buffer, 0, buffer.Length)) > 0) { output.Write(buffer, 0, read); } } ``` This will only take 32K however bi...
[ 0.29089605808258057, -0.1954842209815979, 0.15880514681339264, 0.042487479746341705, 0.21507981419563293, -0.1143096536397934, 0.31572362780570984, -0.2922201156616211, -0.3136669099330902, -0.4747820198535919, -0.03896075859665871, 0.4499274492263794, -0.4618452787399292, 0.05377617105841...
memory.
[ -0.09653578698635101, 0.2924289405345917, -0.09403499215841293, 0.20091412961483002, -0.020947637036442757, -0.007025957573205233, -0.09472332149744034, 0.1295163333415985, -0.21200330555438995, -1.059785008430481, 0.006612830329686403, 0.1790286898612976, 0.2886207103729248, 0.03659739345...
I'm using some Images in my WPF applcation. XAML: ``` <Image Name="ImageOrderedList" Source="images/OrderedList.png" ToolTip="Ordered List" Margin="0,0,5,5" Width="20" Height="20" SnapsToDevicePixels="True" MouseUp="Image_MouseUp" MouseEnter="Image_MouseEnter" ...
[ 0.12678225338459015, -0.2281847894191742, 0.7628763318061829, -0.01070982962846756, -0.1216360554099083, 0.009571431204676628, 0.31675708293914795, -0.4018155634403229, -0.3000819683074951, -0.7622464299201965, -0.005693298764526844, 0.8929769396781921, -0.031898338347673416, -0.3357333838...
*HighQuality* or just don't declare it. *NearestNeighbor* worked for me except it led to jaggy bitmaps when zooming in on the application. It also didn't seem to fix any glitches where icons were sizing in weird ways. On your root element (i.e. your main window) add this property: `UseLayoutRounding="True"`. A prope...
[ 0.1166902706027031, -0.06085086613893509, 0.5898492932319641, 0.16559451818466187, -0.2579592168331146, -0.22902140021324158, 0.6193330883979797, 0.07732770591974258, -0.012102104723453522, -0.4050107002258301, 0.19593432545661926, 0.4509243667125702, 0.024366609752178192, -0.0230053905397...
My code is... ``` public static void AssertNotNull<T>(string name, T val) { if (val == null) throw new ArgumentNullException(String.Format("{0} must not be null", name)); } ``` Resharper is recommending... ``` public static void AssertNotNull<T>(string name, T val) { if (Equals(val, default(T))) ...
[ 0.21830564737319946, 0.16026988625526428, 0.5556197762489319, -0.15854628384113312, 0.06354887783527374, -0.13653084635734558, 0.4268704056739807, -0.10595664381980896, 0.39047595858573914, -0.7650743126869202, -0.14188769459724426, 0.7592172026634216, 0.007876747287809849, 0.3743352591991...
I would like to achieve something similar to the following in Guice: ``` public MyClass { private final InjectedObject[] injectedObjects; @Inject public MyClass(InjectedObject[] injectedObjects) { this.injectedObjects=injectedObjects; } } ``` ie I would like to be able to create a certain n...
[ 0.1886349320411682, -0.07789765298366547, 0.048305947333574295, -0.22630469501018524, -0.22561565041542053, 0.11635137349367142, 0.2971251904964447, -0.2590802311897278, -0.07024504989385605, -0.6491536498069763, 0.2150217592716217, 0.6448813080787659, -0.7439792156219482, -0.1169832646846...
this.injectedObjects=injectedObjectProvider.getArrayOfInjectedObjects(5); } } ``` ...but I was wondering if there was another route that was more elegant? I'm curious why you want several objects created eagerly. You might have success injecting a `Provider<InjectedObject>`, and calling `Provider.get()` each time...
[ 0.34744349122047424, -0.15493085980415344, 0.18331438302993774, -0.2882774770259857, -0.1197270080447197, 0.18074603378772736, 0.3929969370365143, -0.5119873881340027, -0.19321855902671814, -0.7197484374046326, 0.1437927782535553, 0.5361698269844055, -0.7205855250358582, 0.0919149518013000...
} } ```
[ 0.17493881285190582, 0.41805654764175415, 0.05209751054644585, -0.04864929988980293, 0.437467485666275, -0.15825650095939636, 0.13202530145645142, 0.5446501970291138, 0.35430577397346497, -0.4846813380718231, -0.2295716553926468, 0.546978771686554, -0.3188462555408478, 0.2798506021499634, ...
In my previous question, someone has commented that write a .NET Stream to two another Streams simultaneously is possible. I only could find one way but using a temporary variable (buffer) that would store the contents (fully or partialy at once) of the input Stream. 1. There is any way to do that without using buffer...
[ 0.39333197474479675, -0.20306695997714996, 0.05137615278363228, 0.2563924193382263, -0.09095165133476257, -0.040738850831985474, 0.343716561794281, 0.06999959796667099, -0.563427746295929, -0.45063501596450806, 0.09541095048189163, 0.30268022418022156, -0.44773194193840027, 0.3091537356376...
writing the first buffer a long time before the other has done so. As far as I'm aware there's no way to copy from one (general) stream to another without using a buffer of at least one byte. (And using just a single byte will be painfully inefficient, of course.)
[ 0.35977891087532043, 0.1557348370552063, 0.10059097409248352, 0.17574451863765717, -0.048895034939050674, 0.15894369781017303, 0.1392982453107834, 0.06887958198785782, -0.125667542219162, -0.6260640621185303, 0.11442814767360687, 0.2352742850780487, -0.10467645525932312, 0.1284042745828628...
I must be losing my mind. ``` <cfif cgi.request_method eq "POST"> <cfoutput> Form.fieldnames = #form.fieldnames#<br> structKeyList(form) = #structKeyList(form)# </cfoutput> </cfif> <form method="post" accept-charset="utf-8"> <input type="text" name="graduation_date" value="x"><br> <i...
[ 0.12394054979085922, 0.4356323480606079, 0.7161874175071716, -0.2823132872581482, 0.266245037317276, -0.23864275217056274, 0.017318012192845345, -0.12112468481063843, 0.04032403603196144, -0.47760170698165894, -0.3301853835582733, 0.3314928412437439, 0.12283217161893845, 0.3868381679058075...
from `form.fieldnames`. I was going to ask what's wrong with my code, but now I'm pretty convinced it's a bug in ColdFusion. (I'm on ColdFusion 8.0.1 / OS X 10.5.6.) It's a bug in ColdFusion, right? Maybe it's the [custom validation feature](http://livedocs.adobe.com/coldfusion/8/htmldocs/validateData_10.html#115469...
[ 0.6069642305374146, 0.1713651865720749, 0.5131790637969971, -0.08818048983812332, 0.015441284514963627, -0.4638665020465851, 0.1309644877910614, -0.2900770306587219, -0.038152750581502914, -0.23186847567558289, 0.1858358234167099, 0.27245232462882996, -0.16255636513233185, -0.0837517678737...
this now, but it's still in there for backwards compatibility.
[ 0.026279564946889877, 0.009003357030451298, 0.3070085346698761, 0.44934728741645813, 0.40949705243110657, -0.3751041889190674, 0.02371964603662491, 0.04779600724577904, 0.05049974471330643, -0.19009076058864594, 0.22248731553554535, 0.27026796340942383, -0.11107862740755081, 0.389544963836...
I am using `GridView` control in [asp.net](/questions/tagged/asp.net "show questions tagged 'asp.net'") 2005 [c#](/questions/tagged/c%23 "show questions tagged 'c#'") using . How can I delete a particular row from `GridView`. I have written the following code. But it's not working... ``` DataRow dr = dtPrf_Mstr.NewR...
[ -0.0839129164814949, -0.11946658045053482, 0.6022356748580933, -0.10242777317762375, -0.09130138158798218, 0.10477468371391296, 0.40833979845046997, -0.3294968903064728, -0.23545967042446136, -0.6898519992828369, -0.18815359473228455, 0.48848026990890503, -0.3841348886489868, 0.29667353630...
it from the gridview without redatabinding.
[ 0.04423901066184044, -0.27706947922706604, 0.5901404619216919, -0.04404809698462486, -0.1421445608139038, 0.1403319239616394, 0.11290490627288818, -0.22942794859409332, -0.06532645970582962, -0.6317229270935059, -0.17691670358181, 0.24055266380310059, -0.11489511281251907, 0.20726788043975...
I've never used spreadsheets for anything more than a quick graph. I'd like to learn how to use spreadsheet formulas to their full extent and have been playing around on Google Spreadsheets. There do not seem to be any thorough tutorials on Google Spreadsheets and even Google's documentation often makes references to ...
[ 0.4388904571533203, 0.01994980312883854, 0.08571971952915192, 0.2842361032962799, -0.16737698018550873, 0.020949022844433784, 0.03801742568612099, 0.05060458555817604, -0.2215069979429245, -0.5700480341911316, 0.16492854058742523, 0.6689890027046204, 0.006975413300096989, -0.29990348219871...
information across sheets and reorganizing and filtering it using formulas (not macros). -- EDITED to clarify my wish to use formulas, not macros Excel spreadsheets have a programming language (Excel VBA, see Joel Spolsky) which is not in Google spreadsheets, so starting with Excel is probably not the path of joy. Y...
[ 0.0701928585767746, -0.02366890013217926, 0.3197333514690399, 0.5288218259811401, -0.16798806190490723, -0.1926427036523819, -0.25611168146133423, -0.006411112844944, -0.30682173371315, -0.7556141018867493, 0.16662171483039856, 0.2669883370399475, -0.11904548108577728, -0.1650896966457367,...
for one of the problem domains for which Google spreadsheets are the right size and the right place: available-anywhere collaborative recording and summary.
[ 0.060003358870744705, -0.05547038093209267, 0.15216030180454254, 0.44414588809013367, 0.3439898192882538, -0.1210840567946434, 0.19935615360736847, -0.05889536067843437, -0.3949757218360901, -0.5438429117202759, -0.32659798860549927, 0.31084445118904114, 0.05042688921093941, -0.21803581714...
First of all, I love vim. I have been using vim for a few years now and it has changed my perceptions of what an editor is capable of. I also love modes. However I am thinking of switching and here is why: I really like Xcode and it has emacs bindings. I use Mac OS X and it has emacs functionality in all text input f...
[ 0.32660752534866333, 0.1922936886548996, 0.3118968904018402, 0.1749310940504074, -0.3825147747993469, -0.3475847542285919, -0.025524819269776344, 0.12203742563724518, -0.09644979983568192, -1.038666844367981, 0.2068525105714798, 0.731661856174469, -0.3023262917995453, 0.1805611252784729, ...
a great rat-free editor (emacs). Having said all this, I find emacs Meta keys approach a little uncomfortable, and a little daunting, plus I have spent a lot of time learning to do things in vim. Should I switch? And if so has anyone else made this switch or used both vim and emacs and have an opinion about which th...
[ 0.24671436846256256, -0.046021461486816406, -0.08335999399423599, 0.4353324770927429, -0.08683446794748306, -0.32390400767326355, 0.15185916423797607, -0.09500949829816818, -0.23200778663158417, -0.642595112323761, 0.22770695388317108, 0.823657751083374, -0.39082008600234985, 0.04150976613...
and using both: * Sometimes one editor is better than the other for some particular language. Better syntax highlighting, better indentation rules, better macros, better integration with external tools, or whatever. You will always be using the best editor for the job if you're able to choose between Vim and Emacs. * ...
[ 0.35717469453811646, -0.15811830759048462, -0.030107684433460236, 0.4988945424556732, -0.08275189995765686, -0.20668908953666687, 0.14338284730911255, 0.1228071078658104, -0.31264469027519226, -0.8095568418502808, -0.08457573503255844, 0.7086895704269409, -0.027561327442526817, -0.29584863...
If some computer only has one or the other set up, you can still use it effectively. * Learning is fun. * Geek cred. Disadvantages: * Learning takes time and effort. * Fragmentation and duplication of effort (all of your favorite tricks and keymappings have to be written twice, in Vim script and elisp). I see the ad...
[ 0.3058534562587738, 0.330174058675766, 0.20368358492851257, 0.18033373355865479, -0.25976675748825073, -0.15729953348636627, 0.4126635789871216, -0.033371586352586746, -0.16173841059207916, -0.8587846755981445, 0.022648045793175697, 0.7232921123504639, -0.08124043047428131, -0.387208878993...
mostly both have strengths. The only way to know if you like Vim or Emacs better is to invest time in both, so you can make an informed decision. Maybe you'll find that Emacs fits the way you think and work better, or maybe not. It's such a subjective thing that the only way to know is by trying. Text editors aren't ...
[ 0.44539573788642883, 0.018882539123296738, -0.07328055799007416, 0.5946621298789978, 0.0344395749270916, 0.019112620502710342, -0.1983671337366104, 0.7824819087982178, -0.1581559181213379, -0.5084162950515747, -0.02131769247353077, 0.8921384811401367, 0.18938982486724854, -0.26542434096336...
Python provides several methods to create threads. Which provides the best API and the most control? Thanks. When necessary, the [threading](http://docs.python.org/library/threading.html) module and its high-level interface is preferred. Of course, many people suggest that it's rarely/never necessary, and threads aren...
[ 0.46666258573532104, 0.04086107388138771, -0.08901875466108322, 0.021315688267350197, -0.35409873723983765, -0.24875018000602722, 0.01672743819653988, 0.3174148201942444, -0.6892992258071899, -0.47044581174850464, -0.14890654385089874, 0.5284372568130493, -0.5012103319168091, -0.1007649153...
good things about it, but haven't wanted anything like either of them for quite a while.
[ 0.48086032271385193, 0.2996724247932434, 0.04422473907470703, -0.14750315248966217, 0.30227962136268616, 0.16628029942512512, 0.0872541069984436, 0.7245997786521912, -0.12616676092147827, -0.3043087124824524, 0.37869328260421753, 0.3487909734249115, 0.28119584918022156, 0.4289300739765167,...
Is there any way to install SQL Express 2005 silently while configuring to allow remote access, or must the configuration be done with the SQL Server Management Studio UI? After the SQL Service is installed log into the database and run the following and then restart the SQL Service. ``` exec sp_configure 'remote acce...
[ -0.05750848352909088, 0.13229374587535858, 0.3983829617500305, -0.044634491205215454, -0.05280141904950142, -0.45670637488365173, 0.6228935718536377, -0.005174817517399788, -0.11028561741113663, -0.472862184047699, -0.10780162364244461, 0.7314985990524292, -0.27035707235336304, 0.043923683...
What is the difference between a static member function and an extern "C" linkage function ? For instance, when using "makecontext" in C++, I need to pass a pointer to function. Google recommends using extern "C" linkage for it, because "makecontext" is C. But I found out that using static works as well. Am I just luck...
[ 0.11759297549724579, -0.02134857513010502, 0.38353824615478516, -0.1679493933916092, 0.10183708369731903, -0.13092611730098724, 0.2043219804763794, -0.038073137402534485, 0.04570740833878517, -0.4197300672531128, -0.1771301031112671, 0.38606590032577515, -0.5419358015060425, 0.388586670160...
not a bug in the compiler) ? Yes, you are just lucky :) The extern "C" is one language linkage for the C language that every C++ compiler has to support, beside extern "C++" which is the default. Compilers may supports other language linkages. GCC for example supports extern "Java" which allows interfacing with java co...
[ 0.2522452771663666, -0.03052402101457119, 0.20477522909641266, -0.014293991960585117, -0.13751235604286194, -0.293592244386673, 0.18350078165531158, 0.24655656516551971, -0.26361584663391113, -0.3843546509742737, -0.46221596002578735, 0.6495221257209778, -0.6041145920753479, -0.06995337456...
you have a static member function, the calling convention for it is the one of your C++ compiler. Often they are the same as for the C compiler of that platform - so i said you are just lucky. If you have a C API and you pass a function pointer, better always put one to a function declared with extern "C" like ``` ext...
[ 0.16650952398777008, 0.13230879604816437, 0.2652917206287384, -0.08464451879262924, -0.05183994397521019, -0.20332935452461243, 0.04125787317752838, 0.1077202558517456, -0.21738068759441376, -0.3705904483795166, -0.08080316334962845, 0.40027695894241333, -0.41973623633384705, 0.22909349203...
a typedef: ``` extern "C" typedef void(*extern_c_funptr_t)(); ``` The Comeau C++ compiler, in strict mode, will emit an error for example if you try to assign the address of the extern "C" function of above to a `(void(*)())`, beause this is a pointer to a function with C++ linkage.
[ 0.009753404185175896, 0.07493196427822113, 0.1416795551776886, -0.2576436698436737, 0.03015245497226715, -0.09790092706680298, 0.4174391031265259, 0.043300796300172806, 0.06436169892549515, -0.32786816358566284, -0.4891708493232727, 0.6559340357780457, -0.6536156535148621, 0.19060721993446...
So I would like it when a user creates a new folder in my sharepoint document library that 4 template documents also get added inside the new folder. I get that the user could just click on the document template for each template individual but I want them added all the time. There doesn't seem to be an option to add...
[ 0.7719098925590515, 0.29197338223457336, 0.09339895099401474, 0.14993153512477875, -0.03683865815401077, -0.3786894977092743, 0.13893435895442963, -0.05134381726384163, -0.32364270091056824, -0.8032105565071106, 0.1053462028503418, 0.4552517235279083, -0.20223771035671234, 0.38693067431449...
folder of my custom content type is created.. ) This seems like a simple workflow to create but I want to make sure that I even need to create one since I haven't actually created a custom sharepoint workflow yet... Thanks, Chris You're right; there's no built-in functionality for this. It should be reasonable simpl...
[ 0.7009217143058777, 0.16842705011367798, -0.04669588804244995, 0.4728107750415802, 0.023341748863458633, -0.31681281328201294, 0.12175881117582321, 0.06498435139656067, -0.5025721192359924, -0.7328226566314697, 0.33501937985420227, 0.45353779196739197, -0.13734862208366394, 0.0631226152181...
luck!
[ -0.10010179132223129, 0.29505473375320435, 0.1133265420794487, 0.12858165800571442, 0.03212675079703331, -0.2657812535762787, 0.22824953496456146, 0.5914942026138306, -0.08978446573019028, -0.4274490177631378, -0.1402377337217331, 0.062099259346723557, 0.3263606131076813, -0.04082640632987...
I have a service that user can configure to run during "off-peak" hours. They have the ability to set the time frame that the service can run. For Example: User A works 8am-5pm, so they want to schedule the app to run between 5:30pm and 7:30am. User B works 9pm-6am, so they schedule the app to run between 6:30am an...
[ 0.6568933129310608, 0.022670621052384377, 0.8513689637184143, -0.1609463095664978, 0.2808014154434204, 0.21056059002876282, 0.31429457664489746, 0.09433192014694214, -0.1430717557668686, -0.7636210918426514, -0.03889894485473633, 0.42913544178009033, -0.13596895337104797, 0.095288999378681...
and stop. The tricky part for me is that the time can cross the midnight boundary. If `startTime` and `endTime` represent a single time interval (it will only happen once, and `startTime` and `endTime` represent the date and the time to start/stop), then it's as easy as saying ``` bool isTimeBetween = someTime >= sta...
[ 0.22158242762088776, -0.350052148103714, 0.5033354163169861, -0.0520993135869503, 0.31958892941474915, -0.0793805718421936, 0.22658924758434296, 0.13598310947418213, -0.4023033678531647, -0.562534749507904, -0.17508602142333984, 0.4228309690952301, -0.11296579986810684, 0.5805889368057251,...
TimeSpan startTime, TimeSpan endTime) { if (endTime == startTime) { return true; } else if (endTime < startTime) { return time.TimeOfDay <= endTime || time.TimeOfDay >= startTime;
[ 0.13877587020397186, -0.13379600644111633, 0.520473301410675, -0.4114663004875183, 0.5910909175872803, 0.24354614317417145, 0.23140035569667816, -0.23667867481708527, -0.059172119945287704, -0.8272138237953186, -0.3688548505306244, 0.2784060835838318, -0.11913818120956421, 0.25589305162429...
} else { return time.TimeOfDay >= startTime && time.TimeOfDay <= endTime; } } ``` (Note: This code assumes that if `start == end`, then it covers all times. You made a comment to this effect on another post) For example, to check if it's between 5 AM and 9:30 PM ``` IsTimeOfDayBetwe...
[ 0.269440233707428, -0.13621479272842407, 0.6523823142051697, -0.21903486549854279, 0.6759914755821228, -0.32291775941848755, 0.23125867545604706, 0.1111588403582573, -0.2086675465106964, -0.7143906950950623, -0.24675290286540985, 0.5772984027862549, 0.03254934772849083, 0.24330343306064606...
I'm using two SQL Server, one is SQL Server 2000 and the other one is SQL Server 2005. When the table1 in SQL Server 2000 gets updated/inserted/deleted, I have to update another table in SQL Server 2005. Is it possible to achieve that in a trigger? If not, what would be the possible options? Thank you, have a nice d...
[ 0.20756621658802032, 0.10358736664056778, 0.4292321801185608, 0.09648691862821579, -0.29027286171913147, -0.232270285487175, -0.12953217327594757, -0.08995671570301056, -0.5423902273178101, -0.4852907657623291, 0.5084018707275391, 0.4589095115661621, -0.1989012211561203, 0.2985379099845886...
it's simpler or you need the whole operation wrapped as a single transaction, I'd put the logic in a procedure for cleanliness. You can create a linked server from 2000 to 2005 and refer to the table from there as SERVER.DATABASE.SCHEMA.TABLE. Alternatively you could execute a stored procedure on the remote server to d...
[ 0.3665955662727356, -0.09635951370000839, 0.3907559812068939, 0.03992109373211861, -0.05600861832499504, -0.2977481186389923, -0.15499068796634674, -0.292061448097229, -0.6082726120948792, -0.4448155462741852, 0.1738799661397934, 0.34141457080841064, -0.300190269947052, 0.374360054731369, ...
mean you could batch up the changes, mean updates to the original table would be done quicker, would deal better with lost connectivity between the two servers. However, you have less guarantee that the updates would actually be applied to the 2005 server, and you have the added complexity of a sql job that must be run...
[ 0.2810494303703308, -0.08464479446411133, 0.1483997106552124, 0.2754502594470978, 0.03515174239873886, -0.1439722329378128, 0.22185513377189636, 0.010327554307878017, -0.4414679706096649, -0.23490332067012787, 0.2189120501279831, 0.6101691722869873, -0.11348903179168701, 0.0748853534460067...
I've finally finished my killer app and now I've got a bit of an issue. I've created my cab file (builds fine and installs perfectly/runs perfectly on the PDA device) and now I'm trying to create my windows installer. I've followed an MSDN article of how to create the installer (see [here](http://msdn.microsoft.com/en...
[ 0.1548081785440445, 0.3487577438354492, 0.6157463192939758, -0.09556902945041656, -0.24193435907363892, 0.14057999849319458, 0.5433112382888794, -0.21106216311454773, -0.13292460143566132, -0.8031038045883179, 0.15055499970912933, 0.5519442558288574, -0.40089043974876404, 0.066847153007984...