text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Since I've started to use jQuery, I have been doing a lot more JavaScript development. I have the need to parse different date formats and then to display them into another format. Do you know of any good tool to do this? Which one would you recommend? 2014 update: [Moment.js](http://momentjs.com/) is an excellent d...
[ -0.05554112046957016, -0.41137564182281494, 0.2647289037704468, 0.12219004333019257, -0.16719579696655273, -0.18072520196437836, -0.22726185619831085, 0.14845386147499084, -0.5092034339904785, -0.5520783066749573, 0.12729397416114807, -0.007819157093763351, 0.0014086260925978422, 0.1888854...
I'm trying to use `tasklist` to find out which process is consuming more than X percent of my CPU (to later kill it with `taskkill`.) How do I know what percent a time format represents? The documentations says: ``` TASKLIST options /FI filter ``` And one filter may be: ``` CPUTIME eq, ...
[ 0.15591949224472046, -0.11554326862096786, 0.6807657480239868, 0.05207661911845207, 0.18937286734580994, 0.1851939857006073, 0.051366664469242096, -0.14494340121746063, -0.28349992632865906, -0.9435030221939087, 0.06398272514343262, 0.6072580218315125, 0.031240209937095642, -0.026842752471...
hh - number of hours, mm - minutes, ss - seconds ``` If I try ``` tasklist /FI "CPUTIME gt 00:00:10" ``` it works. But if I ``` tasklist /FI
[ -0.026004428043961525, 0.2890743017196655, 0.7993777394294739, -0.07005557417869568, 0.10118312388658524, -0.08230128884315491, 0.32023659348487854, -0.20948810875415802, -0.38471102714538574, -0.6028357148170471, -0.27215296030044556, 1.0660382509231567, -0.003086897311732173, -0.00310710...
"CPUTIME gt 90" ``` it doesn't. How can I know that time format represent 90%? Or 80%? What's the relationship between CPU usage time and the CPU usage percent? Tasklist's CPUTime is a measure of how much CPU time (cycles) have been used since the start of the process, so to convert that to a percent, it would be ...
[ 0.12364289164543152, 0.07488199323415756, 0.4174218773841858, -0.09991318732500076, -0.07552323490381241, 0.18945588171482086, 0.11436481773853302, -0.14262695610523224, -0.17267009615898132, -0.5052632093429565, 0.12863750755786896, 0.6727526783943176, 0.07056504487991333, 0.0988587290048...
I am interested in getting some Python code talking to some Ruby code on Windows, Linux and possibly other platforms. Specificlly I would like to access classes in Ruby from Python and call their methods, access their data, create new instances and so on. An obvious way to do this is via something like XML-RPC or mayb...
[ 0.8598316311836243, 0.11626468598842621, -0.31381353735923767, 0.32192564010620117, -0.3656235337257385, 0.028422681614756584, 0.2582366466522217, 0.29464277625083923, -0.12692148983478546, -0.6974356174468994, 0.12053342163562775, 0.5125536918640137, -0.20956893265247345, 0.11956814676523...
something similar but I really think that XML-RPC would be the most headache-free way.
[ 0.3893146514892578, 0.19315828382968903, 0.19887980818748474, 0.38414064049720764, -0.15880879759788513, -0.4491264224052429, 0.06176241487264633, 0.33735787868499756, -0.05074187368154526, -0.27601203322410583, 0.052722807973623276, 0.5279627442359924, -0.06747931987047195, -0.02880356460...
I've done some research and I can't really find a preferred way to do updating of form controls from a worker thread in C#. I know about the BackgroundWorker component, but what is the best way to do it without using the BackgroundWorker component? There's a general rule of thumb that says don't update the UI from any ...
[ 0.6550468802452087, -0.24923020601272583, 0.2420375645160675, 0.22851423919200897, 0.15078946948051453, -0.4042738080024719, 0.25527361035346985, -0.047764502465724945, -0.07643935084342957, -0.7782944440841675, 0.06346768885850906, 0.8024070262908936, -0.4712379574775696, 0.09471113234758...
the method on the UI thread. Edit: Jon B made this good point in the comments: > Keep in mind that Invoke() is > synchronous and BeginInvoke() is > asynchronous. If you use Invoke(), you > have to be careful not to cause a > deadlock. I would recommend > BeginInvoke() unless you really need > the call to be syn...
[ -0.061219606548547745, -0.10352248698472977, 0.5988788604736328, 0.011297051794826984, -0.014921201393008232, -0.33129069209098816, 0.2503058612346649, -0.2430129200220108, 0.03365664556622505, -0.7774390578269958, -0.25902682542800903, 0.543229341506958, -0.6697694659233093, 0.23039835691...
thread."}); ``` The code above is from a FAQ about it [here](http://blogs.msdn.com/csharpfaq/archive/2004/03/17/91685.aspx) and a longer more involved one [here](http://weblogs.asp.net/justin_rogers/articles/126345.aspx).
[ 0.1731473058462143, -0.027253659442067146, 0.4665016829967499, 0.1253063678741455, -0.0016292384825646877, -0.24986909329891205, 0.21232305467128754, 0.4609566628932953, -0.6598842740058899, -0.2686006724834442, -0.06515275686979294, -0.01708093471825123, -0.2612663209438324, 0.46030786633...
I am trying to pass some Subsonic collections to a client via a web service. When I reference the web service the IDE complains with: Cannot serialize member 'EndDate' of type System.Nullable`1[System.DateTime]. XmlAttribute/XmlText cannot be used to encode complex types. Is there any way of serializing nullable comp...
[ 0.24583327770233154, 0.09883096814155579, 0.16803650557994843, -0.03605126962065697, -0.3620668351650238, -0.2748740613460541, 0.4991573989391327, -0.14097154140472412, -0.2537747025489807, -0.4945356249809265, -0.038332127034664154, 0.1720135360956192, -0.42787042260169983, 0.445129632949...
I have a web-based application that notifies users of activity on the site via email. Users can choose which kinds of notifcations they want to receive. So far there are about 10 different options (each one is a true/false). I'm currently storing this in one varchar field as a 0 or 1 separated by commas. For example: ...
[ 0.4411865770816803, 0.3094082474708557, 0.48225709795951843, -0.2596997618675232, -0.1802590787410736, 0.2890784740447998, 0.4231269955635071, -0.11866021156311035, -0.2085023671388626, -0.40717563033103943, 0.24204261600971222, 0.27430325746536255, -0.2543306350708008, 0.19122280180454254...
add new columns if I need, but I'm not sure how efficient this is. Thanks in advance! I would use two tables. One table would store the user data and the other the notifications that they subscribe to. The second table would look something like this: ``` create table notifications ( user_id int, notification_ty...
[ 0.2612246572971344, 0.2750478684902191, 0.5947369337081909, -0.0758042261004448, -0.22019962966442108, 0.3468294143676758, 0.05226458981633186, -0.1254820078611374, -0.228457972407341, -0.45170119404792786, 0.4110753834247589, 0.1898500770330429, -0.44437265396118164, 0.1523856520652771, ...
tables and select rows where the notification\_type matches the one in question. If the result set is non-empty the user wants the notification. Adding new notifications becomes trivial (as does deleting). Simply add (delete) a new type value and let users choose to accept it or not. If you wanted to keep the notifica...
[ -0.0432703010737896, -0.027451155707240105, 0.3251788914203644, -0.08325313031673431, -0.0713423416018486, 0.0427544005215168, 0.10035508126020432, -0.0853452980518341, -0.2935556471347809, -0.6932758688926697, -0.291139155626297, 0.4030904769897461, -0.49521470069885254, 0.092580549418926...
How do I put a gridview row in edit mode programmatically? Set the EditIndex property to the appropriate row and then ReBind the GridVIew again to it's DataSource. Hope this helps.
[ 0.26909658312797546, -0.05246809124946594, 0.5169163346290588, 0.0778210386633873, -0.04232223704457283, -0.10487864911556244, 0.05193547159433365, -0.051108431071043015, 0.0067092194221913815, -0.8740255832672119, 0.21035517752170563, 0.6156229376792908, -0.1586962342262268, -0.0363318398...
I want to enforce CHECK constraint on a date range such that all dates in column BIRTH\_DATE are less than tomorrow and greater than or equal to 100 years ago. I tried this expression in a CHECK constraint: ``` BIRTH_DATE >= (sysdate - numtoyminterval(100, 'YEAR')) AND BIRTH_DATE < sysdate + 1 ``` But I received the...
[ 0.09652388095855713, 0.18760958313941956, 0.49886271357536316, -0.08312389999628067, 0.48092198371887207, 0.31308165192604065, 0.12513265013694763, 0.07221143692731857, -0.1872071623802185, -0.4288886487483978, 0.022047968581318855, 0.21265581250190735, -0.052100665867328644, 0.60157018899...
[SQL Reference](http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/clauses002.htm#SQLRF01111) > Conditions of check constraints cannot > contain the following constructs: > > > > ``` > * Subqueries and scalar subquery expressions > * Calls to the functions that are not deterministic (CURRENT_DATE, > >...
[ -0.06318551301956177, -0.0056070974096655846, 0.4426235258579254, -0.07869040966033936, 0.33081281185150146, -0.017329707741737366, -0.0007513121818192303, -0.4341268837451935, -0.036055151373147964, -0.415622740983963, -0.2501464784145355, 0.2855840027332306, -0.3577955663204193, 0.397168...
Can an ArrayList of Node contain a non-Node type? Is there a very dirty method of doing this with type casting? Yes, but you will get class cast exceptions if you try to access a non-node element as if it were a node. Generics are discarded at (for) runtime. For example: ``` import java.util.*; import java.awt.Rect...
[ 0.32392504811286926, -0.19346557557582855, -0.000975386705249548, -0.14783146977424622, -0.1937274932861328, -0.11274617165327072, 0.5003295540809631, -0.365604043006897, -0.06011781841516495, -0.4716154932975769, 0.03454694524407387, 0.27391287684440613, -0.6626846194267273, 0.31505584716...
/* Works */ lst.add("Test"); /* Works, and prints "Test" */ for(Object o: lst) { System.err.println(o); } /* Dies horribly due to implicitly casting "Test" to a Rectangle */ for(Rectangle r: list) {
[ 0.45899325609207153, 0.24346700310707092, 0.3249339163303375, -0.008224036544561386, 0.2722355127334595, 0.4148503243923187, 0.5327087044715881, -0.36750784516334534, -0.3427387475967407, -0.7715722322463989, -0.14224520325660706, 0.1175626739859581, -0.1344194859266281, 0.2770384252071380...
System.err.println(r); } } } ```
[ -0.3227808475494385, -0.12470701336860657, 0.35540199279785156, -0.3497295677661896, 0.3327283561229706, -0.0386316180229187, 0.3016932010650635, 0.007950549013912678, -0.26292791962623596, -0.5076650381088257, -0.39510807394981384, 0.8234113454818726, -0.47703301906585693, 0.2668073475360...
**Problem solved:** Thanks guys, see my answer below. I have a website running in Tomcat 5.5 hooked up to a MySQL5 database using Hibernate3. One record simply refuses to keep any changes performed on it. If I change the record programmatically, the values revert back to what they were previously. If I manually mod...
[ 0.28995755314826965, 0.34343239665031433, 0.5044512152671814, 0.042438432574272156, 0.019928550347685814, -0.08631306141614914, 0.6678206324577332, 0.2839626967906952, -0.4317954182624817, -0.5578861236572266, -0.09010445326566696, 0.5403828620910645, -0.09364921599626541, 0.29386690258979...
load the site. I have also tried deleting the Tomcat work folder for the webapp and the .ser cache file. I have also checked the code for the values that are being reverted to and cannot find them. I have only noticed it on this one particular record. **Edit:** I've just had a look at the SQL output from Hibernate...
[ 0.5187320709228516, 0.18722817301750183, 0.38748154044151306, 0.10190087556838989, -0.17477348446846008, -0.2609235346317291, 0.5640419721603394, 0.32390621304512024, -0.3339306116104126, -0.8599587082862854, 0.06551317125558853, 0.7233154773712158, -0.3060029447078705, 0.2572147250175476,...
the value. Since you say it changes immediately after the server starts you should be able to figure out the statement pretty quickly. <http://dev.mysql.com/doc/refman/5.0/en/query-log.html>
[ 0.37867313623428345, -0.08419661223888397, 0.658064603805542, -0.02050025388598442, -0.0012405653251335025, -0.08737451583147049, 0.04965236037969589, -0.2173759639263153, -0.2134605348110199, -0.25106826424598694, 0.03120802342891693, 0.5055521130561829, -0.14772693812847137, 0.2085081934...
I have a view using a master page that contains some javascript that needs to be executed using the OnLoad of the Body. What is the best way to set the OnLoad on my MasterPage only for certain views? On idea I tried was to pass the name of the javascript function as ViewData. But I dont really want my Controllers to h...
[ 0.5764833688735962, -0.014751126058399677, 0.5649271011352539, -0.007147257681936026, -0.4100739359855652, -0.20930524170398712, 0.00611508684232831, -0.11408793181180954, -0.2318437695503235, -0.695319652557373, 0.13093224167823792, 0.5050926804542542, -0.18845351040363312, 0.030316593125...
following pattern with my current MVC project and it seems to be working pretty good for my .js work thus far... Within my Master Page I load up my standard script files that I want to be used in all of my content pages (things like jquery.js, global.js, jquery-plugins, .css files, etc.). I then define whatever events...
[ 0.16585305333137512, -0.004759233444929123, 0.3596275746822357, -0.1549728661775589, -0.1970185786485672, -0.16656355559825897, 0.27692359685897827, 0.06010673940181732, -0.34204915165901184, -0.9043448567390442, -0.30086010694503784, 0.4629810154438019, -0.2734133303165436, 0.087982572615...
differently between content pages are handled within the individual content .js file. So basically my Master Page has a set of .js functions that my content page scripts will implement. Right now I just store those template .js function signatures in a file and copy and paste them into every new content.js file that I ...
[ 0.6651217937469482, 0.1109609380364418, 0.41385459899902344, -0.03248394653201103, -0.22400102019309998, -0.0540781132876873, 0.34035611152648926, -0.09243448078632355, -0.19466906785964966, -0.9345781803131104, 0.10194522887468338, 0.42474350333213806, -0.12198714911937714, 0.185682371258...
recap: MasterPage.Master Loads: jquery.js, global.js, plugins.js ContentPage Loads: ContentPage.js Global.js contains functions that the master page invokes that do not change between content pages along with any other global routine functions. Each ContentPage.js implements it's own functions for the content page ...
[ -0.00018487227498553693, -0.3371593654155731, 0.48995694518089294, 0.25527623295783997, -0.28264120221138, 0.040519535541534424, 0.04387829825282097, -0.06146522983908653, -0.6723601818084717, -0.6270348429679871, -0.6308455467224121, 0.26018017530441284, -0.2907544672489166, -0.0007947559...
I have this XML in a column in my table: ``` <keywords> <keyword name="First Name" value="|FIRSTNAME|" display="Jack" /> <keyword name="Last Name" value="|LASTNAME|" display="Jones" /> <keyword name="City" value="|CITY|" display="Anytown" /> <keyword name="State" value="|STATE|" display="MD" /> </keywords> ``...
[ 0.3654055595397949, 0.08799165487289429, 0.5290853381156921, 0.0524272695183754, -0.1890295147895813, -0.251946359872818, -0.0023748313542455435, -0.1304934322834015, -0.34632959961891174, -0.7956821918487549, 0.011236420832574368, 0.2632051408290863, -0.11441022902727127, 0.21048679947853...
select k; foreach (var keyword in keywords) { //what goes here? } ``` I'm not 100% sure that I'm getting that data correctly. I need help with the proper syntax to get the value and display out of my XML field. Here is a sample code: To read keywords we
[ 0.040085889399051666, 0.3742049038410187, 0.2509733736515045, -0.2888372242450714, 0.09652809798717499, -0.052963241934776306, 0.23784658312797546, -0.3118974566459656, 0.16872477531433105, -0.4900917112827301, -0.3348064422607422, 0.3295885920524597, -0.25895044207572937, 0.19605369865894...
need to call *Elements("**keyword**")* not *Elements("**keywords**")* since *keywords* is a root node. ``` // IEnumerable sequence with keywords data var keywords = from kw in ga.ArticleKeywords.Elements("keyword") select new { Name = (string)kw.Attribute("name"), ...
[ -0.21276217699050903, -0.1013035774230957, 0.21843260526657104, -0.047612614929676056, 0.1900823712348938, -0.030082108452916145, 0.23787374794483185, -0.6571632027626038, -0.0026573080103844404, -0.6638043522834778, -0.29611936211586, 0.6359255909919739, -0.1206069141626358, 0.19013765454...
Display = (string)kw.Attribute("display") }; foreach (var keyword in keywords) { var kw = "Name: " + keyword.Name + " Value: " + keyword.Value + " Display: " + keyword.Display; Console.WriteLine(kw); } ``` You can get attribute value using *foo.Attribute("bar").Valu...
[ -0.22382931411266327, 0.1659345179796219, 0.6769845485687256, -0.31210747361183167, -0.18509040772914886, 0.015782227739691734, 0.23824432492256165, -0.3779962658882141, -0.0069892085157334805, -0.7924164533615112, -0.2988276481628418, 0.5469703674316406, -0.09734208136796951, 0.2689258754...
it will give you *null* if attribute is missing
[ 0.09174409508705139, 0.06357812136411667, 0.014723902568221092, 0.26234903931617737, -0.06809338182210922, -0.22798855602741241, 0.29421886801719666, 0.37920814752578735, 0.03571883961558342, -0.44415751099586487, 0.11170180141925812, 0.07442371547222137, -0.11455553770065308, 0.2263829559...
Any advice on how to migrate an existing Delphi 7 business application to .NET 2.0 in Visual Studio 2005? Visual Studio 2005 has already been purchased, the company wants to move away from the Borland/Codegear tools. The application is a single client server executable, utilizing a number of 3rd party UI controls an...
[ -0.05021987855434418, -0.0628708004951477, 0.3676736056804657, -0.1321745663881302, -0.24119748175144196, 0.10962094366550446, 0.04169483482837677, -0.21014919877052307, -0.2628977596759796, -0.49999332427978516, -0.16011400520801544, 0.4096742868423462, -0.2677074670791626, -0.16353522241...
rather than a complete re-write/conversion would be preferred, if possible. Thanks in advance. [Update] Has anyone had any experience, good, bad or ugly, using Managed VCL for this type of scenario? I worked at a company that was migrating from Delphi to WPF/.Net circa 2007. We tried a piece by piece approach. It was ...
[ 0.1989140659570694, -0.08861745148897171, 0.19767636060714722, 0.03843802586197853, -0.1898888796567917, -0.35707908868789673, 0.10714091360569, 0.2546379864215851, -0.3370233476161957, -0.89946448802948, -0.1354394257068634, 0.7725949287414551, -0.38349777460098267, 0.36299461126327515, ...
afford to do the whole conversion at once I would go for it. If not, split out the parts of your app that are stand-alone or have the minimum of interactions with the rest of the app. I would also suggest jumping into .Net 2008. Why are you picking a technology that is almost 4 years old (VS 2005)? I think it is a ver...
[ 0.3803552985191345, 0.20413923263549805, 0.19214127957820892, 0.19649989902973175, 0.11518649011850357, -0.2072640359401703, 0.017488565295934677, -0.15094268321990967, -0.14621415734291077, -0.7406538128852844, 0.10535622388124466, 0.7823084592819214, -0.03362734988331795, 0.1018672510981...
Do you still have customers on Win2k? Will you still have customers on Win2k by the time your conversion is complete? Do you have customers you cannot get to move to XP or Vista? .Net 3.0 and 3.5 are not supported in Win2k. That is the only downside I can think of. .Net 3.5 and C# 2008 offer significant advantages for...
[ 0.43139803409576416, 0.15769757330417633, 0.3738040328025818, 0.009441336616873741, -0.025337206199765205, -0.02129710651934147, 0.20839448273181915, 0.09975355118513107, -0.16046743094921112, -0.6129409670829773, -0.050495367497205734, 0.8175958395004272, 0.023151375353336334, -0.00234107...
get in Winforms with WPF, develop them faster, and when you want some eye-candy you will be using a technology that can easily provide it. If you are learning a new windowing platform for this conversion, why not invest in learning the new stuff? Also, please tell me you didn't actually buy VS 2005. You can buy an [M...
[ 0.5747109055519104, -0.14530281722545624, 0.22013582289218903, 0.3707214891910553, -0.19601216912269592, -0.22898833453655243, 0.31011706590652466, 0.14158689975738525, -0.1216672733426094, -0.7560296654701233, 0.17057065665721893, 0.7783081531524658, 0.005805338732898235, 0.09230824559926...
have flashbacks when I think of having to give up all the goodies in .Net 3.5.
[ 0.5514456033706665, 0.15477512776851654, -0.07976335287094116, -0.1531989872455597, -0.16691066324710846, -0.2604566514492035, 0.45474764704704285, 0.3233799934387207, -0.24376554787158966, -0.6966597437858582, -0.04427257180213928, 0.027320023626089096, 0.20274712145328522, 0.403300493955...
Can two domain objects show on the same page, when the list method is called, for example? <http://APP_NAME/foo/list> --- ``` def list = { if(!params.max) params.max = 10 [ fooList: Foo.list( params ) ] [ barList: Bar.list( params ) ] // Only the last one is returned. } ``` --- On the view page, bot...
[ 0.0739545002579689, -0.07217574119567871, 0.7581920623779297, 0.11103764176368713, -0.19435714185237885, 0.09991386532783508, 0.26162660121917725, -0.5358763337135315, -0.4281323552131653, -0.4786085784435272, -0.08209443092346191, 0.311702162027359, -0.5357658863067627, 0.0988693982362747...
I want to convert a string like this: ``` '10/15/2008 10:06:32 PM' ``` into the equivalent DATETIME value in Sql Server. In Oracle, I would say this: ``` TO_DATE('10/15/2008 10:06:32 PM','MM/DD/YYYY HH:MI:SS AM') ``` [This question](https://stackoverflow.com/questions/202243/custom-datetime-formatting-in-sql-ser...
[ 0.19294606149196625, 0.15405835211277008, 0.6189632415771484, -0.09306982904672623, -0.08570031821727753, 0.01495399046689272, 0.10649393498897552, -0.22399669885635376, -0.23467481136322021, -0.45215895771980286, 0.020496802404522896, 0.6046406030654907, -0.17675895988941193, 0.2608411908...
I'm writing an application in Delphi which uses an SQLite3 database. I'd like to be able to start the application while holding some modifier keys, such as CTRL + SHIFT, to signal reinitialization of the database. How can I capture that the application was started while these keys were held? Tim has the right answer, ...
[ 0.02456554025411606, -0.17374706268310547, 0.7062761187553406, -0.24406743049621582, 0.11388144642114639, 0.13372167944908142, 0.48981571197509766, -0.4775686264038086, -0.00811542384326458, -0.4454021155834198, -0.3477402329444885, 0.3973265588283539, -0.3632236123085022, 0.02721798419952...
been set. You can also set KeyPreview on your main form if you have trouble getting it to catch the key stroke. I just tested the above code and it works, but if you have a splash screen, etc. then it might change things.
[ 0.646770179271698, -0.42544567584991455, 0.8259481191635132, 0.046986449509859085, 0.1266942322254181, -0.1730160415172577, 0.37021392583847046, -0.03364485874772072, -0.2230890542268753, -0.5271677374839783, 0.1263098567724228, 0.7282764315605164, -0.06536984443664551, -0.0651938617229461...
I've got a script that dynamically calls and displays images from a directory, what would be the best way to paginate this? I'd like to be able to control the number of images that are displayed per page through a variable within the script. I'm thinking of using URL varriables (ie - <http://domain.com/page.php?page=1>...
[ 0.2579999566078186, -0.17559947073459625, 0.604586124420166, 0.2526170313358307, -0.23915180563926697, 0.0775737538933754, 0.048486415296792984, 0.14052964746952057, -0.29878684878349304, -0.7824411392211914, 0.1597856879234314, 0.42785266041755676, -0.3006124198436737, 0.2627753019332886,...
ceil($totalItems / $itemsPerPage); function getTotalItems() { // since they're images, perhaps we'll scan a directory of images to determine // how many images we have in total } function getItemsFromPage($page, $itemsPerPage) { // function to grab $itemsPerPage based on which $page we're on } function getPager($tot...
[ 0.13483041524887085, 0.18300998210906982, 0.8005068898200989, 0.041002821177244186, 0.2206740826368332, 0.0196253452450037, 0.08387024700641632, -0.0380149744451046, -0.1778491735458374, -1.0276679992675781, -0.1888563185930252, 0.3670670986175537, -0.09875675290822983, 0.19318825006484985...
OS: Vista enterprise When i switch between my home and office network, i always face issues with getting connected to the network. Almost always I have to use the diagnostic service in 'Network and sharing center' and the problem gets solved when i use the reset network adapter option. This takes a lot of time (3-4 m...
[ 0.05280616134405136, 0.11193205416202545, 0.2262178510427475, 0.09291445463895798, 0.2240251749753952, -0.00778804998844862, 0.24672509729862213, 0.08898507058620453, -0.28233376145362854, -1.0568044185638428, -0.13214600086212158, 0.8721832633018494, -0.2597135305404663, -0.18649092316627...
within PowerShell to accomplish this. Assuming there is a network adapter who's device name has *Wireless* in it, the series of commands might look something like the following: ``` $adaptor = Get-WmiObject -Class Win32_NetworkAdapter | Where-Object {$_.Name -like "*Wireless*"} $adaptor.Disable() $adaptor.Enable() ``...
[ -0.022711308673024178, -0.38736075162887573, 0.3705277144908905, 0.07863707095384598, 0.34883347153663635, -0.5884081721305847, 0.2759842574596405, -0.2770368456840515, -0.14245665073394775, -1.0571768283843994, -0.4951147437095642, 0.8459915518760681, -0.5522881150245667, 0.00924831163138...
I've been wondering about how hard it would be to write some Python code to search a string for the index of a substring of the form `${`*expr*`}`, for example, where *expr* is meant to be a Python expression or something resembling one. Given such a thing, one could easily imagine going on to check the expression's sy...
[ 0.3952450156211853, 0.1942300647497177, -0.26177000999450684, 0.019590122625231743, 0.11648482829332352, 0.10437546670436859, 0.2443363517522812, -0.06231630593538284, -0.17776073515415192, -0.30720457434654236, -0.035818975418806076, 0.5539311170578003, -0.35051682591438293, 0.00823679473...
by hand-coding some sort of state machine [eek], or perhaps by convincing Python's own parser to do the heavy lifting somehow [hmm]. Maybe there's a third-party templating library somewhere that can be made to do exactly this. Maybe restricting the syntax of *expr* is likely to be a worthwhile compromise in terms of si...
[ 0.626950204372406, -0.023697813972830772, -0.2753845155239105, 0.08788217604160309, -0.29354327917099, 0.12755215167999268, 0.5981136560440063, -0.047268565744161606, -0.3904067277908325, -0.39622047543525696, 0.14706330001354218, 0.6997301578521729, -0.45168426632881165, -0.62384825944900...
sure I was sufficiently clear about what I'm asking. Template substitution is indeed an interesting problem, and probably much more useful to many more people than the expression extraction subproblem I'm wondering about, but I brought it up only as a simple example of how the answer to my question might be useful in r...
[ 0.3712480962276459, -0.0718967542052269, -0.2454296052455902, 0.11814098805189133, -0.08090365678071976, -0.003974366933107376, 0.29133960604667664, -0.0671459212899208, -0.21590182185173035, -0.1303960531949997, -0.09301034361124039, 0.5900520086288452, -0.5296576023101807, -0.40628185868...
program, perhaps in conjunction with some information taken from the surrounding text. The `${`*expr*`}` syntax I mentioned is also intended as an example, and in fact I wonder if I shouldn't have used `$(`*expr*`)` as my example instead, because it makes the potential drawbacks of the obvious approach, along the line...
[ 0.10624393820762634, -0.12566211819648743, -0.07589617371559143, 0.03179248794913292, 0.20438864827156067, -0.06256642192602158, 0.4023653566837311, 0.1550319939851761, -0.1320963203907013, -0.48467081785202026, -0.3508656919002533, 0.7643054127693176, -0.4151853621006012, -0.2934187948703...
make this case! Prior to posting this question, I spent quite a bit of time looking at Python template engines hoping that one might expose the sort of low-level functionality I'm asking about -- namely, something that can find expressions in a variety of contexts and tell me where they are rather than being limited t...
[ 0.6206510663032532, 0.2981715500354767, -0.23150154948234558, 0.14080125093460083, 0.07662497460842133, 0.11089050024747849, 0.2719126045703888, -0.07777207344770432, -0.06974340230226517, -0.28797611594200134, -0.01791289821267128, 0.39822912216186523, -0.15727898478507996, -0.19961780309...
more to look at (can't believe I missed that wonderful list on the wiki!). The API documentation for these things tends to be pretty high-level, and I'm not too familiar with the internals of any of them, so I'm sure I could use help looking at those and figuring out how to get them to do this sort of thing. Thanks fo...
[ 0.7388243079185486, -0.048188310116529465, -0.20809438824653625, 0.2694350481033325, -0.2048146277666092, 0.08717650175094604, 0.36387667059898376, 0.11011373996734619, -0.5111923217773438, -0.22860868275165558, 0.15957584977149963, 0.6565567851066589, 0.01566900871694088, -0.0742743983864...
Is it possible to access the crash log over the application? The last.fm client showed me today a "we found a crash log" altert with the option to send it, so I think it must be possible. Here the description of the solution I found: [Crash Reporter for iPhone Applications](http://www.restoroot.com/Blog/2008/10/18/cras...
[ -0.09368385374546051, -0.07419096678495407, 0.3942236006259918, 0.3143394887447357, 0.4024905860424042, -0.2268228381872177, 0.37450599670410156, 0.16280871629714966, -0.4661593437194824, -0.49910956621170044, 0.055036623030900955, 0.7931475639343262, 0.02237558923661709, -0.31611239910125...
I would like to programatically shutdown a Windows Mobile device using Compact framework 2.0, Windows mobile 5.0 SDK. Regards, It probably not a great idea to do it from your app - the device has a power button for a reason and shutting down the app can cause user confusion and frustration. If you must do it, and you...
[ -0.05275832489132881, 0.01959178037941456, 0.5337573289871216, -0.01526621263474226, 0.2929166853427887, -0.23290257155895233, 0.5325641632080078, -0.10636355727910995, 0.0543646365404129, -0.4898112118244171, -0.5962945818901062, 0.6137823462486267, -0.5441414713859558, 0.2695250511169433...
I'm working on an intranet with several subdomains. I have control over each subdomain, so security of cross-site requests is not a concern. I have PHP scripts with JSON responses I'd like to call from multiple subdomains without duplication. For GET requests, I can do this with AJAX and JSONP, but that doesn't work wi...
[ 0.21612568199634552, 0.1406947374343872, 0.13575376570224762, 0.10622129589319229, -0.21243686974048615, 0.007428700570017099, 0.4957652688026428, 0.06809791177511215, -0.16277465224266052, -1.0068751573562622, 0.06048822030425072, 0.37938031554222107, -0.0999230146408081, 0.08445096015930...
to use local URLs with a central script on back end with JSON * Use symlinks to use local URLs with a central script on back end with JSON Am I missing something simpler? What would you do here? just look at this <https://developer.mozilla.org/En/HTTP_access_control> page. All what you need - add header to all you scr...
[ 0.7042821049690247, -0.2529694139957428, -0.15819048881530762, 0.3045613765716553, -0.2149665355682373, -0.33929452300071716, 0.30665984749794006, 0.06835043430328369, -0.3832756578922272, -0.5927721858024597, -0.01897156797349453, 0.5149322748184204, -0.5307216048240662, 0.172259613871574...
Does some article or proof exist that .NET applications are immune to low level errors? I'm talking about the classic pointer errors we can see in a C++ application, memory overflow, problems from the Intel [DEP](http://en.wikipedia.org/wiki/NX_bit) and so on. I'm talking about .NET applications that do not use "uns...
[ 0.2843189239501953, 0.4152362048625946, -0.35534346103668213, 0.14711305499076843, -0.2504526972770691, -0.3590385615825653, 0.43137291073799133, 0.20504343509674072, -0.13043032586574554, -0.3070635199546814, 0.028095511719584465, 0.5628318190574646, -0.3994380831718445, 0.198063820600509...
That's only by design 2. That application is also immune to performing any useful work - to do that it will have to interoperate with some unmanaged code - a great deal of effort goes into ensuring the BCL is immune to exploits, but... a. you can still write code to very effectively trash your hard drive and spam the ...
[ 0.658431887626648, 0.2373112440109253, 0.27428901195526123, 0.10168316215276718, -0.38659247756004333, -0.5931865572929382, 0.3290747106075287, -0.05236002057790756, -0.0811120942234993, -0.35247281193733215, -0.1133820191025734, 0.43912559747695923, -0.44381996989250183, 0.224706754088401...
to stack or memory overflow - there are a couple of points of memory leakage (infinite resurrection and large object heap). Perhaps this is what you are looking for: "Type Safety of C# and .NET CLR" [ftp://ftp.inf.ethz.ch/pub/publications/diss/th17003.pdf](http://ftp://ftp.inf.ethz.ch/pub/publications/diss/th17003.pd...
[ -0.12298119068145752, 0.10197292268276215, 0.06954625248908997, 0.16120392084121704, -0.038897834718227386, -0.213751882314682, 0.16590401530265808, -0.08125108480453491, -0.5887206792831421, -0.2572469413280487, -0.21867112815380096, 0.5021155476570129, -0.20534072816371918, 0.00088056066...
I have a Java method which starts up a Process with ProcessBuilder, and pipes its output into a byte array, and then returns its byte array when the process is finished. Pseudo-code: ``` ProcessBuilder b = new ProcessBuilder("my.exe") Process p = b.start(); ... // get output from process, close process ``` What wou...
[ 0.15209195017814636, 0.47328096628189087, 0.24633443355560303, -0.1885666698217392, 0.0007320743170566857, 0.08580664545297623, 0.31969162821769714, -0.3597175180912018, -0.11904461681842804, -0.6726620197296143, 0.05381470546126366, 0.35252514481544495, -0.10686103254556656, 0.23421989381...
ended up refactoring those lines to an interface ``` Process start(String param) throws IOException; ``` I now pass an instance of this interface into the class I wanted to test (in its constructor), normally using a default implementation with the original lines. When I want to test I simply use a mock implementati...
[ 0.2959001362323761, 0.34948450326919556, 0.16713319718837738, 0.005945463664829731, -0.14121167361736298, 0.18420995771884918, 0.1997532844543457, 0.012231827713549137, -0.18734049797058105, -0.6606974601745605, 0.089146688580513, 0.2869298756122589, -0.2864319384098053, 0.1016281992197036...
want to test, that ProcessBuilder and Process work, only that you can work with their output. When you create an interface one trivial implementation (that can be inspected easily) delegates to ProcessBuilder and Process, another implementation mocks this behaviour. Later on you might even have another implementation t...
[ 0.5514291524887085, 0.18200087547302246, -0.09277033805847168, 0.23916897177696228, -0.15555384755134583, -0.006656588055193424, 0.19097650051116943, -0.03683537244796753, -0.15155787765979767, -0.7517809271812439, 0.23926109075546265, 0.4830344319343567, -0.3647404909133911, 0.00662886863...
Any good logging libraries that support .NET compact framework? log4net is a good choice, I use it for all projects.
[ 0.6460018754005432, -0.009415652602910995, 0.010283542796969414, 0.13686233758926392, -0.09279154986143112, -0.3834846317768097, 0.07515893131494522, 0.45074161887168884, -0.4463966190814972, -0.6614835262298584, 0.20426253974437714, 0.5483145713806152, -0.07157301157712936, -0.01398507785...
I have a touch screen kiosk that displays a webpage and a pdf document. Can I remove the menu bar? Users must not have "save", "print" and other such features. Update [random screenshot on flickr](http://flickr.com/photos/23021917@N05/2209106577/) - I am refering to the print, back/forward, zoom bar that controls the...
[ 0.10457030683755875, 0.11546167731285095, 0.5709142684936523, 0.1818387508392334, -0.04207697883248329, -0.20906950533390045, 0.09075570106506348, -0.07219943404197693, -0.09322274476289749, -0.621758759021759, -0.08041121065616608, 0.7377588152885437, -0.23913894593715668, -0.037577703595...
window controls This has been around in acrobat for a while, so most version should do it. It is alo possible to set these programmatically if you have the right libraries, but easiest to download a demo of acrobat.
[ -0.014930126257240772, -0.17331764101982117, 0.4907691478729248, 0.46403712034225464, -0.2044437974691391, -0.33798742294311523, -0.10805149376392365, -0.1390724629163742, -0.28570178151130676, -0.5859850645065308, 0.008131830021739006, 0.7676187753677368, -0.43902215361595154, -0.41084876...
I have authentication mode set to forms in my asp.net web.config but am still getting a windows login prompt when i browse to the website. Could authentication mode be set elsewhere, in IIS for example? My site runs on IIS 6. Thanks. As it happens a colleague updated my machine to .NET Framework 3.5 SP1 whilst I was ...
[ 0.24849042296409607, 0.31935229897499084, 0.45435068011283875, -0.19193850457668304, -0.2185545414686203, -0.27320781350135803, 0.6772257089614868, -0.1915098875761032, -0.21500150859355927, -0.7081613540649414, -0.019365966320037842, 0.4000663459300995, -0.19342836737632751, -0.1127926707...
was unable to load a file due to the problem described in the following: [Link](https://web.archive.org/web/20110829064442/http://geekswithblogs.net:80/LessonsLeared/archive/2008/08/21/hidden-surprises-in-.net-3.5-service-pack-1.aspx)
[ -0.20936724543571472, -0.3598147928714752, -0.23142315447330475, 0.2934515178203583, 0.25728803873062134, -0.505470871925354, 0.44808998703956604, 0.017403487116098404, -0.13992837071418762, 0.08206447958946228, -0.3185735046863556, 0.4042871296405792, 0.02485221065580845, -0.2024225741624...
I develop using MAMP pro on my Mac. When I start MAMP it prompts me for a password if I use port 80. If I use a higher port it doesn't prompt me, but I have to append the port number in the URL ( eg dev.local:8888 ). Does anyone know how to make it not prompt for password when using standard ports? Thank you. According...
[ 0.08068621903657913, 0.21049584448337555, 0.46417152881622314, -0.3553076386451721, 0.02833009883761406, 0.18456338346004486, 0.6796895265579224, 0.026437731459736824, -0.12441051751375198, -0.897861897945404, -0.15998515486717224, 0.7179367542266846, -0.4087945520877838, 0.276896774768829...
is here: <http://qa.living-e.de/tracker/view.php?id=3648> (requires registration) if you want to follow it. Another update: Still following this issue. Looks like living-e moved their bug tracker, the new link to this issue is: <http://bugs.mamp.info/view.php?id=3652> It's in German but the Google translation is: >...
[ 0.1550651490688324, 0.35012081265449524, 0.3617922067642212, -0.0036975278053432703, 0.17174690961837769, -0.16845040023326874, 0.9165066480636597, 0.2781716287136078, -0.25091713666915894, -0.5723997950553894, -0.3557778000831604, 0.2460046261548996, -0.4003543257713318, 0.184860914945602...
the password from OS X Keychain / Keyring, the annoying popup could be avoided.
[ -0.23508118093013763, 0.19230793416500092, 0.20707698166370392, 0.3192296624183655, 0.018027983605861664, -0.20425307750701904, 0.41583317518234253, 0.4452762007713318, -0.15353889763355255, -0.3057778477668762, -0.37843599915504456, 0.49678027629852295, -0.19494004547595978, 0.22183896601...
I am new to C and i have this question. why does the following code crash: ``` int *a = 10; *a = 100; ``` Because you are trying to write 100 to the memory location 0x0000000A which is probably not allocated to your program. That is, ``` int *a = 10; ``` does not mean that the pointer 'a' will point to a location ...
[ 0.27236056327819824, 0.4727550745010376, 0.09975530207157135, -0.16209334135055542, 0.014572525396943092, -0.19196897745132446, 0.2698792815208435, -0.20425735414028168, -0.08745966106653214, -0.5222947001457214, 0.16768136620521545, 0.42521992325782776, -0.23391185700893402, 0.13757231831...
the following: ``` int *a = malloc(sizeof(int)); *a = 100; ``` This would work, although horribly inefficient. If you only need a single int, you should just put it into the [stack, not the heap](https://stackoverflow.com/questions/24891/c-memory-management). On a 32-bit architecure, a pointer is 32 bits long, and a...
[ -0.14624056220054626, 0.263529896736145, 0.28988149762153625, -0.1935228407382965, 0.03659500181674957, 0.16007927060127258, 0.04410894215106964, -0.4295773208141327, -0.42352917790412903, -0.3798641860485077, -0.12517915666103363, 0.4598524272441864, -0.24845468997955322, -0.1126325652003...
[Javascript Developer Tools](http://wiki.eclipse.org/index.php/ATF/JSDT) (JSDT) for Eclipse provides a nice outline view of Javascript classes, with a little symbol next to them to indicate visibility. Looking at *Preferences->Javascript->Appearance->Members Sort Order*, it seems able to indicate whether a method is ...
[ 0.23824942111968994, -0.07372212409973145, 0.006991240661591291, 0.058330804109573364, -0.5413328409194946, 0.04144394025206566, 0.08582260459661484, 0.01962946727871895, -0.23717141151428223, -0.6935569047927856, 0.11434286087751389, -0.008537961170077324, -0.1324642151594162, -0.21166677...
standard Java-based settings tree (used in many plugins) but without real implementation of JS [private members](http://javascript.crockford.com/private.html) stuff. Oh, we can hope that it is reserved for future use :)
[ 0.36341550946235657, 0.058504559099674225, 0.014445217326283455, 0.1571175903081894, 0.03323642909526825, -0.4845876097679138, 0.5038447380065918, -0.06594549119472504, -0.264784038066864, -0.5320471525192261, -0.20111609995365143, 0.493224173784256, -0.29640260338783264, -0.15082356333732...
I am using Eclipse 3.3 ("Europa"). Periodically, Eclipse takes an inordinately long time (perhaps forever) to start up. The only thing I can see in the Eclipse log is: ``` !ENTRY org.eclipse.core.resources 2 10035 2008-10-16 09:47:34.801 !MESSAGE The workspace exited with unsaved changes in the previous sessi...
[ 0.13771957159042358, 0.3254789710044861, 0.20032334327697754, -0.25281670689582825, -0.1360383778810501, -0.23489868640899658, 0.12759077548980713, 0.009894237853586674, -0.42993733286857605, -0.4908807575702667, -0.10662711411714554, 0.26363492012023926, 0.056371498852968216, 0.1917721182...
a way to make Eclipse start up properly? This may not be an exact solution for your issue, but in my case, I tracked the files that Eclipse was polling against with [SysInternals Procmon](http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx), and found that Eclipse was constantly polling a fairly large snapsho...
[ 0.616015613079071, -0.13951976597309113, 0.1251271814107895, 0.1774040013551712, -0.28318846225738525, -0.23160620033740997, 0.02391643449664116, -0.41552799940109253, -0.3532785177230835, -0.4665789008140564, 0.21207007765769958, 0.4935215711593628, -0.1676076352596283, -0.202047497034072...
Is it less efficient to use TEXT than varchar in an SQL database? If so why? If not why would you not just always use TEXT? I'm not targetting a specific database here but oracle is probably the most relevant, although I'm testing on MySQL for the time being as part of a proof of concept. From Microsoft [here](http:...
[ 0.12180958688259125, 0.14507116377353668, 0.2528736889362335, 0.17209453880786896, -0.1821344941854477, -0.03442724794149399, 0.18236203491687775, -0.030432961881160736, -0.21756698191165924, -0.6117125153541565, -0.09172983467578888, 0.8434715270996094, -0.3832961618900299, -0.04340588301...
varbinary(max) instead. When you use `varchar(max)` over text you can use it in the `WHERE` clause, because they work the same as their smaller counterparts, `varchar,nvarchar and varbinary`. Below is a small list of what should be used as opposed what was to be used: * Use varchar(max) instead of text * Use nvarchar...
[ 0.34306469559669495, -0.5549315214157104, 0.2555065453052521, -0.08316542208194733, -0.3224371671676636, -0.17348308861255646, 0.07734990864992142, -0.025325367227196693, -0.24865084886550903, -0.45935386419296265, 0.08286653459072113, 0.8627436757087708, -0.48641470074653625, 0.2730700373...
I have a C#/.NET program that can run both as a console application and as a service. Currently I give it a command-line option to start as a console application, but I would like to avoid that. Is it possible to programmatically detect whether my program is being started as a service? If it was pure Win32, I could ...
[ 0.22992749512195587, 0.12702587246894836, 0.1980905681848526, -0.23020559549331665, 0.18201914429664612, -0.16173909604549408, 0.49845215678215027, 0.04270532354712486, -0.30705130100250244, -0.5559782981872559, -0.10909193754196167, 0.5915457606315613, -0.15898606181144714, 0.277265608310...
the answers it seems the most popular way is to use a simple command line option, or try accessing the Console object in a try catch block (in a Service the Console is not attached to the process and trying to access it throws an exception). Or if you're having trouble testing/debugging the service, move code into a ...
[ 0.1339704990386963, -0.3669508099555969, 0.1340365707874298, 0.7568148374557495, -0.04814206063747406, 0.23489734530448914, 0.20241232216358185, -0.18360354006290436, 0.22820036113262177, -0.5190657377243042, -0.28540539741516113, 0.2920556962490082, 0.013434858992695808, -0.09531447291374...
I'm not sure what the best api for simple 2d graphics with Java is. I know `java.awt.Graphics2D` was the standard but has it been replaced? Swing is the new API for Java GUI apps but it seems a bit heavy for what I want. What I really want is something like the C [SDL library](http://libsdl.org/). [Java 2D](http://docs...
[ 0.44678202271461487, 0.12090824544429779, 0.26630645990371704, -0.040083788335323334, -0.5453629493713379, -0.16508276760578156, -0.23923781514167786, 0.08428604155778885, -0.23439662158489227, -0.8035497665405273, 0.08452171087265015, 0.8136231899261475, -0.23349067568778992, -0.075119122...
I came across a class instance function that needed to temporarily change a class instance variable, and then restore it when the function completed. The function had return statements all over the place, and before each return there was a restoring statement. That seemed messy to me, not to mention scary when a except...
[ 0.18955184519290924, -0.16758161783218384, 0.15181498229503632, -0.31879332661628723, 0.04069318622350693, 0.12262444943189621, 0.260409414768219, -0.14581473171710968, -0.14622236788272858, -0.3747132122516632, -0.16447749733924866, 0.8397673964500427, -0.44048354029655457, 0.371970325708...
T* ref_; T save_; public: restorer(T* perm) : ref_(perm), save_(*ref_) {}; ~restorer() { *ref_ = save_; } }; public: Unwind() : b_active_(false) {}; void a() { out("a in"); b(); out("a end"); } void b() { out("b in"); { restorer<bool> trust_in_the_stack(&b_active_); // "restorer" cre...
[ 0.09492473304271698, -0.01682213321328163, 0.5692164301872253, -0.6321595907211304, 0.2065976858139038, 0.16340111196041107, 0.6980021595954895, -0.5786207914352417, -0.00038440190837718546, -0.404740571975708, -0.5336533188819885, 0.7790915369987488, -0.45209434628486633, 0.36731538176536...
} out("b end"); } void c() { out("c in"); d(); out("c end"); } void d() { out("d in"); cout << "deepest" << endl; out("d end"); } void out(const std::string& msg) { std::cout << msg << ": " << b_active_ << std::endl; } }; int main() { Unwind u; u.a(); return 0; } ``` The output using g++ 4.2.3 (-Wa...
[ -0.16834649443626404, -0.13384297490119934, 0.49495065212249756, -0.5102521777153015, 0.2150101661682129, 0.23726220428943634, 0.247175395488739, -0.4485780894756317, -0.18820220232009888, -0.3482677638530731, -0.25344493985176086, 0.29140591621398926, -0.4536000192165375, 0.36215120553970...
restorer inside the class Unwind helps to discourage misuse. My question is, is there a general and safer way to do this? I am worried about lifetime issues. Edit: Please assume that there are no threads, but "downstream" methods on the stack that change behavior based on this b\_active\_ flag. I revised the sample a...
[ 0.09179594367742538, 0.08580097556114197, 0.3296777009963989, -0.17117100954055786, 0.050816453993320465, -0.131530299782753, 0.41841933131217957, -0.16143816709518433, -0.17800834774971008, -0.5484614968299866, -0.08693470805883408, 0.7976144552230835, -0.41896575689315796, 0.220476791262...
scope. /// /// Restorer is designed to be an auto variable, not allocated on any /// other memory resource like a heap or in-place. template<typename T> class restorer { T& ref_; T save_; public: restorer(T& perm) : ref_(perm), save_(perm) {} ~restorer() { ref_ = save_; } }; }//NAMESPACE #endif//UTIL_RESTORE...
[ 0.2764437198638916, -0.11805670708417892, 0.6109517216682434, -0.18652406334877014, 0.006640683393925428, 0.18800534307956696, 0.16668663918972015, -0.35124677419662476, -0.06873460859060287, -0.5559523701667786, -0.27315154671669006, 0.7324090600013733, -0.5504050254821777, 0.269142538309...
I need to export multiple data tables to Excel on the clients machine, each to their own sheet. If it was just one sheet, I'd use the Excel/csv content type, but I've heard something about an XML format that can represent an entire workbook. I don't want to go down the Packaging and .xlsx route, so I need standard .xls...
[ 0.7486329674720764, 0.34703049063682556, 0.1760844588279724, 0.2643358111381531, -0.029309459030628204, -0.03441774472594261, 0.07867329567670822, -0.04300055280327797, -0.4353468418121338, -0.5837841033935547, 0.22251944243907928, 0.43669119477272034, -0.21284659206867218, -0.002724320394...
can use for example [this library](http://www.carlosag.net/Tools/ExcelXmlWriter/), if you don't want to create your own Excel XML writer library.
[ 0.3853004276752472, 0.1509067416191101, 0.5687715411186218, 0.23696541786193848, 0.2858341336250305, -0.2730279564857483, -0.3246881067752838, -0.07375597953796387, -0.32443034648895264, -0.26597732305526733, 0.1838090568780899, 0.7354022264480591, 0.29833394289016724, -0.1628589630126953,...
I'm pretty new to regular expressions. I have a requirement to replace spaces in a piece of multi-line text. The replacement rules are these: * Replace all spaces at start-of-line with a non-breaking space (`&nbsp;`). * Replace any instance of repeated spaces (more than one space together) with the same number of non-...
[ -0.09966674447059631, 0.2259775847196579, 0.36510199308395386, 0.039413224905729294, -0.21449103951454163, 0.15733321011066437, 0.4175771474838257, -0.21341998875141144, -0.13376912474632263, -0.6726305484771729, -0.18948449194431305, 0.24818061292171478, -0.32737696170806885, -0.183332890...
I want to get this output: ``` asdasd asdasd&amp;nbsp;&amp;nbsp;asdas1 &amp;nbsp;asda234 4545&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;54 &amp;nbsp;&amp;nbsp;34545 345&amp;nbsp;&amp;nbsp;34534 34 345 ``` I'm happy doing simple text substitutions using regular expressions, but I'm having trouble working out how to repl...
[ 0.12846115231513977, 0.2486448734998703, 0.25512444972991943, -0.24685785174369812, 0.08246718347072601, 0.21763621270656586, 0.3248511254787445, -0.5106285810470581, 0.08340544253587723, -0.6136783957481384, -0.2752213776111603, 0.3880356252193451, -0.6718187928199768, -0.1534463018178939...
$str); ``` (I opted for #160 since markdown parses nbsp.) Results in: ``` asdasd asdasd&#160;&#160;asdas1 &#160;asda234 4545&#160;&#160;&#160;&#160;54 &#160;&#160;34545 345&#160;&#160;34534 34 345 ``` For more info, check out [PCRE](http://us2.php.net/pcre) and [perlre](http://perldoc.perl.org/perlre.html). --- ...
[ -0.04266369715332985, 0.04954252392053604, 0.5902511477470398, -0.10823404788970947, -0.12211057543754578, 0.2727627456188202, 0.08980496227741241, -0.1699775606393814, -0.37339499592781067, -0.4146958291530609, -0.23007901012897491, 0.20114660263061523, -0.23621012270450592, 0.20725858211...
I'm struggling to find examples/explanations of coding a MS Certificate Authority exit module. If anybody has any help or resources they can point me at I'd be grateful. Perhaps this article will help you? [Writing Custom Exit Modules](http://msdn.microsoft.com/en-us/library/aa388214.aspx)
[ 0.2377249002456665, 0.010961885564029217, -0.13843092322349548, 0.47369253635406494, 0.26932257413864136, -0.31363433599472046, 0.43600788712501526, 0.18956400454044342, -0.46886950731277466, -0.5628020763397217, -0.1693500280380249, 0.027300678193569183, -0.021249381825327873, -0.08082482...
Are there official MIME types for the .cs (C# source), .resx, .aspx, etc. files in a .NET project? If no official types are defined, any recommendations on good MIME types? This will be exposed via Apache and the `mod_dav_svn` module when viewing a Subversion repository from a web browser, so anything that'll help Fi...
[ 0.602652907371521, 0.205442413687706, 0.3486936092376709, 0.01184707973152399, -0.0461234524846077, -0.2359626740217209, 0.45126983523368835, -0.1673050969839096, -0.17846442759037018, -0.37329819798469543, -0.21939533948898315, 0.5401474833488464, -0.24395720660686493, -0.2061080485582351...
I want to develop a website in ASP classic that uses HTTP Authentication against a database or password list that is under the control of the script. Ideally, the solution should involve no components or IIS settings as the script should be runnable in a hosted environment. Any clues/code deeply appreciated. It is pos...
[ 0.3454321622848511, 0.012420554645359516, 0.26896756887435913, 0.02802095003426075, 0.19552943110466003, -0.3613430857658386, 0.30382436513900757, -0.1731056123971939, 0.002913340926170349, -0.5396407842636108, -0.18610334396362305, 0.7419157028198242, -0.21262073516845703, -0.243826001882...
interfere with what you get back in the HTTP\_AUTHORIZATION header. Here is a sample implementation that just echoes back the user name and password. ``` <%@LANGUAGE="VBSCRIPT"%> <!--#include file="decbase64.asp" --> <% Sub Unauth() Call Response.AddHeader("WWW-Authenticate", "Basic realm=""SomethingGoesHere""...
[ 0.2195359468460083, -0.1635100096464157, 0.7542926073074341, -0.04269475117325783, 0.17191481590270996, -0.1932496428489685, 0.6307595372200012, -0.4330591559410095, 0.03820459172129631, -0.564627468585968, -0.121810682117939, 0.863614559173584, -0.5431984066963196, 0.0888773500919342, 0...
aParts = Split(strAuth, " ") If aParts(0) <> "Basic" Then Call Unauth End If strPlain = Base64Decode(aParts(1)) aCredentials = Split(strPlain, ":") %> <%= Server.HTMLEncode(aCredentials(0) & " - " & aCredentials(1)) %> </body> </html> <% End If %> ``` Ho...
[ 0.18419483304023743, 0.029331523925065994, 0.16270239651203156, -0.015136011876165867, 0.004590676631778479, 0.127650186419487, 0.1810322403907776, -0.48756587505340576, -0.04503709822893143, -0.5340343117713928, -0.6222702264785767, 0.2619951367378235, -0.22745506465435028, 0.037567298859...
meaningful is left as an exercise for the reader.
[ -0.08323200047016144, 0.26841676235198975, -0.09926816076040268, 0.15414322912693024, -0.11813389509916306, -0.15091478824615479, 0.39768072962760925, 0.3470475375652313, 0.19335514307022095, -0.6504940986633301, -0.4518851041793823, 0.2645224630832672, 0.15110072493553162, -0.018466547131...
In Visual Studio 2008 (and others) when creating a .NET or silverlight application if you look at your project properties, it seems like you can only have one assembly name - across all configurations. I would like to compile my application as: MyAppDebug - in debug mode and just MyApp - in release mode Does anyone k...
[ 0.41511353850364685, 0.2956695258617401, 0.06897348165512085, -0.30920740962028503, -0.5235329270362854, -0.2842571437358856, 0.3395110070705414, -0.07751446217298508, -0.27667519450187683, -0.5054722428321838, 0.1073479875922203, 0.4385836124420166, -0.43427184224128723, 0.090327359735965...
testing the online version, whilst I work on a new one. So, I want to have a url like .\MyApp.html for the regular version that the QA team will test and then .\MyApp.html?version=debug for the current version that I'm working on. I've managed to achieve what I was after by using a post-build script: ``` if "$(Configu...
[ 0.35694196820259094, 0.0712013766169548, 0.48218008875846863, -0.20312580466270447, -0.12281765788793564, -0.194136843085289, 0.3792687654495239, -0.06666456162929535, 0.04005428031086922, -0.7723158001899719, -0.23083573579788208, 0.6475272178649902, -0.24927052855491638, -0.1124070957303...
of the filename. Now I can choose in my webpage which version to show.
[ 0.22111088037490845, 0.1256600171327591, 0.1716786026954651, -0.014752029441297054, -0.03832463547587395, -0.25383490324020386, -0.1160295233130455, 0.30643391609191895, -0.3473389446735382, -0.32723134756088257, -0.10001908242702484, 0.248845174908638, -0.16424649953842163, 0.453341543674...
I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app. Some of these classes are compatible with WPF and I would quite like to be able to have Silverlight / WPF code all i...
[ 0.7112614512443542, 0.16751441359519958, 0.013857075944542885, 0.1316450834274292, -0.08579964935779572, -0.26323598623275757, -0.010147685185074806, -0.39942705631256104, -0.23326388001441956, -0.727787435054779, 0.18904811143875122, 0.28390297293663025, -0.4553067684173584, 0.04618994146...