text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have been using Visual Studio Express versions. I used to use the full Pro VS 2005. I can't figure out what I am missing with the Express version. What benefits will I get if I buy the full version of VS? [Here you go.](http://msdn.microsoft.com/en-us/library/zcbsd3cz(VS.80).aspx) This link is vs2005 specific rather ...
[ -0.0024219632614403963, 0.023092275485396385, 0.2770596146583557, -0.09464316815137863, -0.4019184410572052, -0.19844910502433777, 0.39402541518211365, 0.1026020273566246, -0.16814292967319489, -0.7001553177833557, -0.05216924846172333, 0.6673950552940369, -0.30476146936416626, -0.07607831...
No SQL Server debugging integration * Limited deployment options This list is actually quite lengthy, but with the notable exception of source control they are mostly things you *might* be able to do without as a single developer, if you really have to. Even the source control can be handled by a file-system-only tool...
[ 0.3553428053855896, 0.15582308173179626, 0.0011218116851523519, 0.301690012216568, 0.02616969868540764, -0.44613251090049744, 0.37978237867355347, 0.16908816993236542, -0.2422609180212021, -0.46553266048431396, -0.14425672590732574, 0.7288286089897156, -0.1420406997203827, 0.09864398837089...
I have a 100 classes that have some similar elements and some unique. I've created an interface that names those similar items eg: interface IAnimal. What i would normally do is: ``` class dog : IAnimal ``` But there are 100 classes and i don't feel like going though them all and looking for the ones that i can appl...
[ 0.029819132760167122, -0.04177675396203995, 0.08530855178833008, -0.2673051953315735, -0.25219225883483887, 0.4596821665763855, 0.35312405228614807, -0.5379732251167297, -0.15837813913822174, -0.6804853081703186, -0.08823224157094955, -0.008303850889205933, -0.7064359188079834, 0.273091316...
animal.eat(); } ``` Is there a way to make c# let me treat ruffles and scruffy as an IAnimal without having to write : IAnimal when writing the class. Thanks! EDIT (not lazy): The classes are generated off of sql stored proc metadata, which means every time it gets generated i would have to go back and add them in,...
[ 0.5502942800521851, -0.0652625560760498, 0.020096993073821068, -0.025864457711577415, -0.20253804326057434, 0.01987994834780693, 0.10206591337919235, 0.01671672984957695, -0.16326095163822174, -0.5089641809463501, 0.3779798746109009, 0.40189942717552185, -0.6373746395111084, 0.075773239135...
one source file of each class, and the hand-coded part (defining the subclassing from IAnimal) in another.
[ -0.08557481318712234, -0.24208079278469086, -0.3540310561656952, -0.06529437750577927, -0.08683182299137115, 0.1521553099155426, -0.03234831988811493, -0.106813445687294, 0.19031108915805817, -0.5206500291824341, -0.27851566672325134, 0.12118907272815704, -0.4024680554866791, 0.00664749043...
I've inherited some aspx (including the web.config file) and am getting the following error. I've created a virtual directory for it but I'm not sure how would I "configure it as an application"? ``` Configuration Error Description: An error occurred during the processing of a configuration file required to service t...
[ 0.15668229758739471, 0.32364755868911743, 0.3723028302192688, 0.012281151488423347, 0.5706691741943359, -0.16097302734851837, 0.5833821892738342, -0.11142890155315399, -0.1506640613079071, -0.9538954496383667, -0.1915753185749054, 0.6688185930252075, -0.3364010155200958, 0.2466133981943130...
ASP.NET to identify an incoming user. Line 50: --> Line 51: <authentication mode="Windows"/> Line 52: Line 53: <customErrors mode="Off"/> Source File: C:\<MYPATH>\web.config Line: 51 ``` Go into the properties of the virtual directory, click the 'Virtual Directory' tab and click 'Create' butt...
[ 0.03015357069671154, -0.10281029343605042, 0.8040218353271484, -0.02806561253964901, 0.1641743928194046, 0.1256403923034668, 0.3336152732372284, -0.19347898662090302, -0.2908875346183777, -0.5942395925521851, -0.45760515332221985, 0.3032526969909668, -0.19683118164539337, -0.21149201691150...
sure the application pool being used for the virtual directory is only used by other sites and virtual directories using the same version of ASP.NET.
[ 0.35443538427352905, -0.04198924079537392, 0.37783288955688477, 0.246876060962677, 0.6376525163650513, -0.6374544501304626, 0.15507082641124725, 0.15110497176647186, -0.2562589645385742, -0.47941339015960693, -0.1707894206047058, 0.41733863949775696, -0.08815566450357437, -0.21909476816654...
How does Python evaluate the expression `1+++2`? How many ever `+` I put in between, it is printing `3` as the answer. Please can anyone explain this behavior And for `1--2` it is printing `3` and for `1---2` it is printing `-1` Your expression is the same as: ``` 1+(+(+2)) ``` Any numeric expression can be preced...
[ 0.09745198488235474, 0.21392904222011566, 0.1945434957742691, -0.27843815088272095, -0.30414730310440063, 0.061970800161361694, 0.3739330470561981, -0.23461467027664185, -0.4206525385379791, -0.04397210106253624, -0.19189612567424774, 0.5844615697860718, -0.40380582213401794, -0.3273110687...
= -1 ``` I see you clarified your question to say that you come from a C background. In Python, there are no increment operators like `++` and `--` in C, which was probably the source of your confusion. To increment or decrement a variable `i` or `j` in Python use this style: ``` i += 1 j -= 1 ```
[ 0.2906026840209961, 0.3834756314754486, 0.13136890530586243, -0.11000973731279373, -0.21109114587306976, -0.1014137789607048, -0.010829143226146698, -0.22319793701171875, -0.1357491910457611, 0.11341321468353271, -0.23545131087303162, 0.3889394998550415, -0.35181573033332825, 0.01467860955...
My application runs on a pSOS operating system. The code is compiled with Diab C compiler. The application defines a number of counters which have been declared as ``` unsigned int call_count; ``` As there are chances of some of these overflowing in a small time frame, I have decided to declare the counters as `...
[ 0.27204301953315735, 0.35915517807006836, 0.1362161487340927, -0.22421173751354218, -0.18422558903694153, 0.2017245888710022, 0.5047496557235718, -0.44344356656074524, 0.12559759616851807, -0.6866301894187927, -0.07143798470497131, 0.7981560230255127, -0.09594997763633728, -0.0200160443782...
SNMP manager would be querying these counters every 15 seconds as well. Is your code assuming that incrementing a 32-bit variable is an atomic operation? Incrementing a 64-bit variable on a 32-bit CPU probably won't be atomic unless you go out of your way to make it so. Example: 1. `call_count` equals `0x00000005FFF...
[ 0.08069701492786407, -0.6065171360969543, 0.6205129623413086, -0.23222805559635162, -0.08538828790187836, -0.09148060530424118, 0.35607630014419556, -0.4489074647426605, -0.4447096288204193, -0.3279966711997986, -0.05881316959857941, 0.5402053594589233, -0.5105589032173157, -0.123216755688...
the value of `call_count` between steps 2 and 3, it will get the wrong result (`0x000000500000000` instead of `0x000000600000000`). The solution is to synchronize access to `call_count`. A few possibilities: * Disable interrupts (if appropriate) * Serialize access using a lock * Read and write using atomic/interlocked...
[ 0.03950987011194229, -0.1624888926744461, 0.5399978756904602, 0.0284724198281765, 0.39943233132362366, -0.02366814576089382, 0.2833035886287689, -0.3515617847442627, -0.14710068702697754, -0.43654802441596985, -0.11651315540075302, 0.7086628079414368, -0.4981613755226135, 0.269548982381820...
I have a web service setup for on a small part of a website and while the site overall gets a good amount of traffic this particular service does not. Once a day when I go to send a request through the web service it will fail on the first attempt, but retrying the request a second time works just fine. It's as if it w...
[ 0.9032275080680847, 0.28097081184387207, 0.3729556202888489, 0.18567967414855957, -0.0021575114224106073, -0.13467925786972046, 0.5176954865455627, 0.11621485650539398, -0.3346932828426361, -0.5730649828910828, 0.2802518308162689, 0.44972941279411316, -0.00828500371426344, 0.14462149143218...
app (separate division of our company)? It's a bit hard to troubleshoot because it only happens once after a long period. And I don't want to setup a separate process just to keep pinging this service. You can try to use following method on a webservice client side. CF7+ got built-in coldfusion.server.ServiceFactory J...
[ 0.19442476332187653, 0.3779853582382202, 0.5761293768882751, -0.32344648241996765, -0.20969286561012268, 0.1680111289024353, 0.45352479815483093, -0.31647762656211853, -0.5159071683883667, -0.6933205127716064, -0.01872515305876732, 0.361135333776474, -0.6628959774971008, -0.074487917125225...
but almost zero documentation over the internet. Good idea would be to dump it and explore a bit.
[ 0.45795851945877075, 0.22498789429664612, -0.21128638088703156, 0.34039774537086487, 0.2936450242996216, -0.5014413595199585, 0.14719785749912262, 0.23755283653736115, -0.12592607736587524, -0.23305949568748474, 0.14773039519786835, 0.2859439551830292, 0.2210789918899536, 0.026075651869177...
What's the explanation for the following: ``` public class GenericsTest { //statement 1 public ArrayList<Integer>[] lists; public GenericsTest() { //statement 2 lists = new ArrayList<Integer>[4]; } } ``` The compiler accepts statement 1. Statement 2 is flagged by the compiler...
[ 0.157960444688797, 0.08928387612104416, 0.25777336955070496, -0.10736862570047379, -0.39980196952819824, -0.2592822313308716, 0.20939597487449646, -0.35190507769584656, -0.4125838875770569, -0.09378582239151001, -0.29997581243515015, 0.47496497631073, -0.6446395516395569, 0.150254800915718...
if you allowed generic arrays. Leaving aside the argument over whether the language should go to the extreme lengths of creating this kind of complicated inconsistency in the treatment of generics to keep you from shooting yourself no matter how hard you try (and if anyone knows of any good discussions on the relativ...
[ 0.39485031366348267, -0.30772191286087036, -0.23095197975635529, 0.04139331728219986, -0.5257164835929871, -0.26555266976356506, 0.5283395648002625, -0.14328977465629578, -0.39398765563964844, -0.2610504925251007, -0.06670783460140228, 0.44352298974990845, -0.527861475944519, 0.05822666734...
be found here <http://courses.csail.mit.edu/6.170/old-www/2006-Spring/forum/index.php%3Ftopic=324.msg1131.html>
[ -0.11840745061635971, 0.14587947726249695, 0.13315920531749725, 0.10896642506122589, -0.041168615221977234, 0.014834796078503132, 0.1754973828792572, 0.09661733359098434, -0.6462820172309875, -0.35438546538352966, -0.5787767171859741, 0.09179416298866272, 0.3590511381626129, 0.292648196220...
EDIT: It is not a listbox. My mistake. It is a list view. I have a list view control that's driving me nuts. It is a multi-select list box, so if the user selects 5000 rows, then de-selects them by selecting a single row, the SelectedIndexChanged fires 5001 times. This causes my app to hang. I'm trying to use threads...
[ 0.48644620180130005, 0.09610652178525925, 0.2834778130054474, -0.03302059322595596, -0.09382649511098862, 0.07357988506555557, 0.2380768358707428, -0.17237025499343872, -0.5640177130699158, -0.5111380219459534, 0.3994017243385315, 0.5021255016326904, -0.450919508934021, 0.02175203897058963...
thread as the calling events due to items out of my control. EDIT: I *know* that this code doesn't work. The Join() blocks the current thread which negates the entire purpose of creating the thread. My question is : How do I do something LIKE this. My biggest problem isn't creating the thread. It's that my "do fancy"...
[ 0.6522912383079529, -0.08123965561389923, 0.41004717350006104, -0.32292330265045166, 0.3032611012458801, 0.05236350744962692, 0.517659068107605, -0.22173289954662323, -0.013905760832130909, -0.6731847524642944, 0.010370144620537758, 0.4344220459461212, -0.28615960478782654, 0.3432072401046...
private void SegmentList_SelectedIndexChanged(object sender, EventArgs e) { // We need to know how many threads this may possibly spawn. int MyQueue = PaintQueue; // Start a thread to increment the counter. Thread Th = new Thread(IncrPaintQueue); Th.IsBackground = true; ...
[ 0.2868664264678955, -0.3869202136993408, 0.4736199676990509, -0.25446420907974243, 0.23288466036319733, 0.16176573932170868, 0.49394190311431885, -0.08921869844198227, -0.27867820858955383, -0.38212791085243225, -0.08728345483541489, 0.5447275638580322, -0.2727288603782654, 0.6010353565216...
// if I'm not the last thread, then just exit. // The last thread will do the right calculations. if (MyQueue != PaintQueue - 1) return; // Reset the PaintQueue counter. PaintQueue = 0; // ... do fancy calculations here... } ``` I remember solving this issue [...
[ 0.14557862281799316, 0.09770496934652328, 0.4672856628894806, -0.2835639417171478, 0.2713299095630646, -0.05567929521203041, 0.42832645773887634, 0.12638790905475616, -0.30703720450401306, -0.6801563501358032, 0.028555501252412796, 0.556532084941864, 0.032928891479969025, 0.283231258392334...
way perhaps for you would be > to put a minimal delay in your > ItemSelectionChange Handler. Say -- > 50ms. Use a timer, Once the selection > changes, restart the timer. If the > selection changed more than once > within the delay period, then the > original is ignored, but after the > delay has expired, the lo...
[ 0.10112730413675308, -0.6488669514656067, 0.44769105315208435, -0.11374396830797195, 0.2723778486251831, 0.09278217703104019, 0.1440684050321579, -0.5179430246353149, -0.6209115982055664, -0.638985812664032, -0.2654666304588318, 0.5735370516777039, -0.2251286655664444, 0.38836386799812317,...
base.OnSelectedIndexChanged(e); // restart delay timer m_timer.Stop(); m_timer.Start(); } private void m_timer_Tick(object sender, EventArgs e) { m_timer.Stop(); // Perform selection end logic. Console.WriteLine("Selection Has Ended"); } } ```
[ 0.10219968855381012, -0.19524888694286346, 0.20211529731750488, -0.2362445592880249, 0.43020060658454895, -0.037360820919275284, 0.2213190793991089, -0.33188730478286743, -0.3182004690170288, -0.29575076699256897, -0.2758100628852844, 0.5327271223068237, -0.35640791058540344, 0.45640328526...
I want to wait for a process to finish, but `Process.WaitForExit()` hangs my GUI. Is there an event-based way, or do I need to spawn a thread to block until exit, then delegate the event myself? [process.EnableRaisingEvents](https://msdn.microsoft.com/en-us/library/system.diagnostics.process.enableraisingevents.aspx) =...
[ 0.19840918481349945, -0.13393113017082214, 0.46310481429100037, -0.18453708291053772, 0.3234185576438904, -0.08589093387126923, 0.43911391496658325, -0.1527501791715622, -0.2901558578014374, -0.6436035633087158, -0.13152548670768738, 0.40625080466270447, -0.18276965618133545, 0.27571982145...
I have `ControlA` which accepts an `IInterfaceB` which has a property of type `List<unknownType>` In an event of `ControlA` i need to add a new instance of `unknownType` to the List in `IInterfaceB`... `unknownType` needs specific properties so i immediately thought it could be an interface, but quickly realised int...
[ -0.03168265148997307, 0.016609571874141693, 0.004102445673197508, 0.032358717173337936, -0.03516722470521927, -0.21570663154125214, 0.06505373865365982, -0.3872324228286743, 0.09601939469575882, -0.6031301021575928, 0.21406032145023346, 0.4159526824951172, -0.5907489657402039, 0.4862407147...
could add a constraint on unknownType to be of some interface that contains the properties you need: ``` class ControlA { void Frob<T>(IInterfaceB<T> something) where T : IHasSomeProperties, new() { something.ListOfT.Add(new T() { SomeProperty = 5 }); something.ListOfT.Add(new T() { SomePropert...
[ -0.07578723132610321, -0.421330064535141, 0.21821624040603638, 0.0960768461227417, 0.22256147861480713, 0.11773532629013062, 0.16353996098041534, -0.46040773391723633, -0.1958446502685547, -0.6498385667800903, -0.15201036632061005, 0.5915871858596802, -0.36207661032676697, 0.05748821422457...
In native programming the IXMLDOMDocument2 object had a [`tranformNode()`](http://msdn.microsoft.com/en-us/library/ms896487.aspx) method: ``` public BSTR transformNode(IXMLDOMNode stylesheet); ``` So in the end I could transform an XML document using: ``` public string TransformDocument(IXMLDOMDocument2 doc, IXMLDO...
[ -0.071074940264225, -0.25465521216392517, 0.5558134317398071, 0.11117441207170486, -0.2071014642715454, -0.09911122918128967, 0.46816927194595337, -0.2539525032043457, 0.14151151478290558, -0.7227191925048828, -0.39796364307403564, 0.7452110052108765, -0.16540412604808807, 0.29929605126380...
takes xml in an input parameter. So what's the accepted method to transform xml in C# .NET 2.0? Put it another way: complete the following helper method: ``` public string TransformDocument(XmlDocument doc, XmlDocument stylesheet) { //todo: figure out how to transform xml in C# } ``` --- Answer ------ [Waqas]...
[ 0.12419969588518143, -0.4485042989253998, 0.6203927397727966, -0.004727846011519432, -0.2571105360984802, 0.11943940073251724, 0.05364751070737839, -0.866442084312439, 0.12001333385705948, -0.5818584561347961, -0.3353344202041626, 0.6502759456634521, -0.17193396389484406, -0.10096468031406...
transform.Transform(doc, XmlWriter.Create(writer)); return writer.ToString(); } ``` **Note:** If you're a performance weenie, you might want to create an overload to pass the pre-compiled transform, if you're going to transforming more than once. ``` public static string Transform(XmlDocument doc, XslCompile...
[ 0.02127075381577015, -0.65562903881073, 0.5370655655860901, -0.14641226828098297, -0.06474241614341736, 0.10566862672567368, 0.35882070660591125, -0.6121829152107239, 0.3647446930408478, -0.8938233852386475, -0.1532249003648758, 1.0091298818588257, -0.3961791694164276, 0.09441803395748138,...
compiled stylesheet if you use it more than once. * Load the XSL directly into the XslCompiledTransform instead of building an XmlDocument first. * Use XmlNode instead of XmlDocument to make the function more generic.
[ 0.4129072427749634, -0.13700851798057556, 0.41728273034095764, 0.023974359035491943, -0.3244125247001648, -0.4145902395248413, 0.0395723320543766, -0.011672701686620712, -0.10555212944746017, -0.6251947283744812, -0.22430093586444855, 0.4960205852985382, -0.4294983744621277, -0.11353316158...
I got a class let's call it Blah. I use ObjectDataSource to get the data from the database and the value is bind it to Blah's property for example, Column Foo is Blah.Foo in my class. I can bind ObjectDataSource with a list of Blah to a gridview but i can't make it sortable since the datasource is not datatable. Does a...
[ 0.293667733669281, -0.26873892545700073, 0.29022663831710815, 0.15842990577220917, -0.38855844736099243, -0.2111639529466629, 0.05712909623980522, -0.13260716199874878, -0.3467164635658264, -0.7086923122406006, 0.4120360016822815, 0.4169464707374573, -0.014004739001393318, 0.14102943241596...
generic list of Blah and then call .Sort() ``` List<Blah> test = new List<Blah>; test.AddRange(ObjectDataSource); test.Sort(); ``` [msdn information](http://msdn.microsoft.com/en-us/library/b0zbh7b6.aspx) Third you could sort the gridview directly from an expression like ``` CustomersGridView.Sort(expression, dir...
[ 0.25697338581085205, -0.2441253662109375, 0.7099481821060181, -0.00846297200769186, -0.3265039026737213, -0.0664740800857544, -0.00491041736677289, -0.46689361333847046, -0.29874202609062195, -0.6404547095298767, -0.06686361879110336, 0.3158116042613983, -0.37760430574417114, 0.23246686160...
I recently got a new printer (specifically a HP Photosmart C6380 if that helps) that allows me to send text to port 9100 to print. Telnetting into it and typing text to print works fine, but I'm wondering if I could make a webpage using HTML and Javascript that can send text directly to it. I'm currently using the cod...
[ 0.580217719078064, 0.1402004063129425, 0.4146434962749481, 0.019404590129852295, -0.19720253348350525, 0.24321246147155762, 0.05994216352701187, -0.0746791884303093, -0.5827751159667969, -0.8578624725341797, 0.5910208225250244, 0.17360708117485046, -0.1197713315486908, 0.2178245633840561, ...
the POST request or strip the unneeded characters using only HTML and Javascript? Note: The reason why it's limited to HTML and Javascript is because I'm hoping that I can use this on an iPhone or iPod Touch. **Edit**: It appears that there's no way to get rid of the HTTP headers, so now my question is can I craft a ...
[ 0.6241518259048462, -0.11131852865219116, 0.5212299823760986, 0.12149761617183685, -0.36701807379722595, 0.16743095219135284, 0.15071214735507965, -0.022315924987196922, -0.2063836306333542, -0.7642952799797058, -0.11256318539381027, 0.237313911318779, -0.32728448510169983, 0.1269190609455...
headers in client-side JavaScript. For that, you need to set up a server-side script which will then make the actual connection to the printer port. **Edit:** The server-side script won't send a HTTP request to your printer: It should open a new socket and thus can fully controle what gets sent!
[ 0.5475156903266907, -0.14299845695495605, 0.3728500306606293, 0.19920837879180908, -0.30651557445526123, -0.31943169236183167, 0.18662436306476593, -0.06331106275320053, -0.4686602056026459, -0.6396360397338867, -0.11025253683328629, 0.27097728848457336, -0.4170830547809601, -0.01293439883...
I have a page that is pulling in via an iframe a page of html content from a pre-existing content management system, whose content I can not directly change. I want to use jquery to alter some of the links and button locations dynamically. For links within the page I was able to change the href attr values of ``` <a...
[ -0.1386091709136963, -0.23085223138332367, 0.8868426084518433, -0.26713573932647705, -0.229018896818161, 0.20871686935424805, 0.1562289446592331, -0.20595631003379822, -0.2561572194099426, -0.6771431565284729, -0.34263134002685547, 0.30873656272888184, -0.4589885175228119, 0.16062605381011...
javascript onclick functions e.g. ``` <INPUT type="button" value="Add to basket" onClick="document.location='/shopping-basket.asp?mode=add&id_Product=1076';"> ``` I basically want to use jquery to select any such buttons and change the shopping-basket.asp to shopping-basket2.asp How can I select these buttons/oncl...
[ -0.18720144033432007, -0.29444438219070435, 0.4999203085899353, -0.2226048707962036, 0.12586307525634766, 0.271388441324234, -0.005587112158536911, -0.41499361395835876, -0.0839153304696083, -0.701624870300293, -0.2614177465438843, 0.5589414834976196, -0.6159144043922424, -0.32261288166046...
}; } }); ```
[ -0.15656347572803497, 0.2621026933193207, 0.3934440016746521, -0.5690320134162903, 0.4142422080039978, -0.23636701703071594, 0.170113667845726, 0.16145680844783783, 0.2230142503976822, -0.4224814772605896, -0.4042681157588959, 0.9130395650863647, -0.4103809595108032, 0.26121681928634644, ...
I have a Linq to SQL DataContext with SQL functions into it. While the retrieve object is good, I would like to add a property to the object and same time shortens the object name. So I made an object Reminder that inherits from the Linq to SQL object fnRTHU\_ReminderByTaskResult with the property I wanted. ``` public...
[ 0.0745060071349144, 0.11847180128097534, 0.8567091822624207, -0.07897363603115082, 0.23637188971042633, 0.2925972640514374, 0.12007511407136917, -0.3952707350254059, -0.2604101896286011, -0.4953020215034485, -0.07797817140817642, 0.6353020071983337, -0.14583095908164978, 0.2594146132469177...
object type fnRTHU\_ReminderByTaskResult to type Reminder. I don't understand since I inherit from the type I'm casting from. Since the Linq to Sql function returns that base class, your object was never that of your derived class. Therefore, when trying to cast down, it can't do it. You can however provide implicit an...
[ 0.13412953913211823, 0.09833008050918579, 0.2894688844680786, -0.14672121405601501, -0.07766281068325043, 0.293186217546463, 0.18323741853237152, -0.15935799479484558, -0.14455744624137878, -0.4312599301338196, 0.10089120268821716, 0.4601685404777527, -0.3030579388141632, 0.322394847869873...
Is there a way to perform a top (Take) linq query using percentage? The T-SQL would have been: ``` SELECT TOP 20 PERCENT ... ``` But LINQ seems to only want an int. It seems that I would have to do a count and then a take. Any suggestions? You would have to perform the query twice, in essence. You would have to per...
[ 0.03640732169151306, -0.05552681162953377, 0.26475682854652405, -0.04760384187102318, -0.3163171708583832, 0.3394624888896942, -0.17473384737968445, -0.5390059947967529, 0.24365921318531036, -0.13671691715717316, 0.3168981075286865, 0.6212996244430542, 0.00992994848638773, -0.2405721694231...
I was just wondering what is the best way to handle multiple languages on a web page? Should I create an event in the load where I change the labels of all my controls to the approrpiate language text, or is there a better way? I am using .NET framework, thanks. For ASP.NET, use Resource files. This will let you provid...
[ 0.4168756902217865, 0.1180122047662735, 0.3937077522277832, -0.11649605631828308, -0.19216586649417877, 0.06470576673746109, 0.38205140829086304, 0.5407189726829529, -0.5214926600456238, -0.6090743541717529, 0.010011207312345505, 0.48887237906455994, -0.1491168737411499, -0.210052996873855...
In IIS7 you now have an integrated mode and an classic mode. Is it possible to force a site to run in integrated mode using web.config and without access to IIS7. Reason I ask is that I have recently signed up with Mosso and need to run my site in integrated mode and not classic. I know I can call them and maybe get ...
[ -0.052613504230976105, -0.35824286937713623, 0.7473931908607483, -0.2180366963148117, 0.4281778335571289, -0.23726500570774078, 0.45870915055274963, -0.11055109649896622, -0.2918720245361328, -0.7915616631507874, -0.26641058921813965, 1.0154366493225098, -0.5561217665672302, -0.02846867404...
I need to encrypt some PHP source that I've released to the public. Is this possible? Can PHP be "compiled" ? You can buy [Zend Guard](http://www.zend.com/en/products/guard/) to encode your PHP sources, and then use the [Zend Optimizer](http://www.zend.com/en/products/guard/optimizer/) to run it. There is an opensourc...
[ 0.6766567230224609, 0.19519543647766113, -0.21110530197620392, 0.08868245035409927, -0.287700891494751, -0.17799457907676697, 0.19564762711524963, -0.3792110085487366, -0.07266446948051453, -0.4478811025619507, 0.10445453971624374, 0.33145493268966675, -0.21885834634304047, -0.162799715995...
I am trying to turn the the flash page flip (source: <http://76design.com/shiftcontrol/index.php/2005/07/03/dynamic-page-flip/>) into a single page that can be lifted up, dragged around, and set back down. All looking very realistic. Does anyone think they can accomplish this? Or have you seen this modification anywhe...
[ 0.4056704044342041, -0.03705731779336929, -0.033623356372117996, -0.10627173632383347, -0.31473204493522644, 0.056805577129125595, 0.08225855976343155, -0.22064916789531708, -0.3888610601425171, -0.5081108212471008, 0.13469476997852325, 0.4190419316291809, -0.3085681200027466, -0.212517693...
I have a table, 'lasttraces', with the following fields. ``` Id, AccountId, Version, DownloadNo, Date ``` The data looks like this: ``` 28092|15240000|1.0.7.1782|2009040004731|2009-01-20 13:10:22.000 28094|61615000|1.0.7.1782|2009040007696|2009-01-20 13:11:38.000 28095|95317000|1.0.7.1782|2009040007695|2009-01-20 1...
[ -0.3576180040836334, 0.2722112238407135, 0.6975659728050232, -0.03531536087393761, 0.10748646408319473, 0.1552753895521164, 0.23980668187141418, -0.09701743721961975, -0.46174150705337524, -0.3506564199924469, 0.02069534920156002, 0.4337756335735321, 0.0871288850903511, 0.1551750898361206,...
group n by n.AccountId into g select g.OrderByDescending(t=>t.Date).FirstOrDefault(); ```
[ -0.563917875289917, -0.12495388835668564, 0.32717421650886536, -0.31026896834373474, 0.1672562062740326, 0.08709564059972763, 0.20821183919906616, -0.422362744808197, -0.29885461926460266, -0.4984223544597626, -0.428055077791214, 0.5524370074272156, -0.6749573349952698, 0.09368262439966202...
I already managed to split the CSV file using this regex: "/,(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))/" But I ended up with an array of strings that contain the opening and ending double quotes. Now I need a regex that would strip those strings of the delimiter double quotes. As far as I know the CSV format can encapsul...
[ 0.11744431406259537, 0.07788392156362534, 0.3296472132205963, -0.07042471319437027, -0.10439226031303406, 0.08963511884212494, 0.094920314848423, -0.10397542268037796, -0.33318373560905457, -0.286848247051239, -0.2811000943183899, 0.3713923394680023, -0.44547557830810547, 0.267607092857360...
is there a better way ? Thanks in advance. There is function for reading csv files: [fgetcsv](http://www.php.net/fgetcsv)
[ 0.2880050539970398, -0.277804434299469, 0.29058268666267395, 0.4270738661289215, 0.05049843341112137, -0.2054951936006546, 0.2831847071647644, 0.4638703465461731, -0.31712841987609863, -0.5988041758537292, -0.04351777955889702, 0.32848796248435974, -0.1424299031496048, -0.26670947670936584...
I'm working on an internal tool, and I recall there being some way to make your script prompt for elevated permissions, and if accepted, allowing cross site requests etc...As this is an internal tool, this may accomplish something I need. Does anyone know how to do this? To elaborate, I'm actually trying to read (in ...
[ 0.5272263884544373, 0.160875141620636, 0.1597776710987091, 0.21888364851474762, 0.3267814517021179, -0.2749190628528595, 0.3215675354003906, 0.282214492559433, -0.21047700941562653, -0.7136123180389404, 0.24003788828849792, 0.3423002362251282, -0.023921392858028412, -0.18463069200515747, ...
names right :) See [`System.Comparison<T>`](http://msdn.microsoft.com/en-us/library/tfakywbh.aspx)
[ 0.04912744089961052, 0.011881609447300434, 0.3046218752861023, 0.05934666469693184, 0.12276434153318405, 0.29758599400520325, 0.19217632710933685, -0.06621626764535904, -0.47258779406547546, -0.437971830368042, -0.2923734188079834, 0.20843973755836487, -0.030147608369588852, 0.202355295419...
Is there a way to make an `Oracle` query behave like it contains a MySQL `limit` clause? In MySQL, I can do this: ``` select * from sometable order by name limit 20,10 ``` to get the 21st to the 30th rows (skip the first 20, give the next 10). The rows are selected after the `order by`, so it really starts on the ...
[ -0.14781801402568817, 0.1397266983985901, 0.027558378875255585, 0.045538075268268585, -0.09208884835243225, 0.12410235404968262, -0.20094676315784454, -0.15352553129196167, -0.0013352331006899476, -0.3407842516899109, 0.024205680936574936, 0.5292754173278809, -0.1793794333934784, -0.104748...
not usually what I want. It also doesn't allow for specifying an offset. You can use a subquery for this like ``` select * from ( select * from emp order by sal desc ) where ROWNUM <= 5; ``` Have also a look at the topic [On ROWNUM and limiting results](https://blogs.oracle.com/oraclemagazine/post/on-rownum...
[ 0.1068820059299469, -0.09804437309503555, 0.4313328266143799, 0.0016105305403470993, -0.001044405740685761, -0.2074970304965973, -0.24179627001285553, -0.2503877878189087, -0.17985475063323975, -0.550659716129303, 0.05954369157552719, 0.62671959400177, -0.09817281365394592, 0.1217119619250...
from specified AskTom-article) **Update 2**: Starting with Oracle 12c (12.1) there is a syntax available to limit rows or start at offsets. ``` SELECT * FROM sometable ORDER BY name OFFSET 20 ROWS FETCH NEXT 10 ROWS ONLY; ``` See [this answer](https://stackoverflow.com/a/26051830/57601) for more examples. Thanks...
[ -0.008255088701844215, -0.04161057248711586, 0.3692588210105896, -0.1314012110233307, -0.1135849878191948, -0.020561423152685165, 0.05960751324892044, -0.2785041332244873, -0.1521119922399521, -0.45703187584877014, -0.15974275767803192, 0.4751560688018799, -0.25148653984069824, -0.26741382...
The question says it all really. I'm hoping that I don't have to write the code in a c++ .dll and then call it from managed code. With a quick googling, I found this [called Accelerator.](http://blog.lab49.com/archives/356) Its a Microsoft Research project [found here](http://research.microsoft.com/en-us/projects/Accel...
[ 0.3218107521533966, 0.1343359351158142, -0.1195572018623352, 0.1961226463317871, 0.04003065451979637, -0.05039111524820328, 0.05231480672955513, 0.08556212484836578, -0.23511767387390137, -0.3162403702735901, 0.162639319896698, -0.0012811166234314442, 0.05922965705394745, 0.137245878577232...
Doing some work on controlling printing via the System.Printing framework (main classes are PrintQueue, PrintTicket and PrinterCapabilities). Like with most stuff I've been working on lately, there's damn little information about it. I'm hoping to compile some good information in this question to help flesh out this su...
[ 0.6842318773269653, -0.08928285539150238, 0.34630438685417175, 0.2791478633880615, -0.25191590189933777, -0.13894334435462952, -0.2999424636363983, 0.10473695397377014, -0.3277931809425354, -0.8842430114746094, 0.37059396505355835, 0.6853021383285522, -0.19084836542606354, -0.0813028365373...
don't fall within the nice properties and enumerations created for PrintTickets. If you have to configure a printer whose settings lay beyond this interface, you have to serialize your PrintTicket to xml and modify it there. When you are working with PrintTicket xml, your life is ruled by three or more schemas: Two by...
[ 0.6198880076408386, 0.07849766314029694, 0.6728904843330383, -0.18049407005310059, -0.06732717156410217, 0.012026861310005188, -0.030051102861762047, -0.3881438076496124, -0.4467156231403351, -0.5715808868408203, 0.29876166582107544, 0.5465949773788452, -0.5250508189201355, -0.103197298943...
for these schemas?** The second big issue I've encountered was mapping user input to the PrintTicket xml. Optimally, I would want to take a user's input, say "Tray 3", and map that through the PrintCapabilities to determine the value of the option to set for that feature. The documentation for the print capabilities i...
[ 0.3398762345314026, 0.15167638659477234, 0.29834696650505066, -0.05014054477214813, -0.3035937547683716, -0.06562215834856033, -0.08164104074239731, -0.1616089940071106, -0.2622460424900055, -0.71269690990448, 0.29976367950439453, 0.5907889604568481, -0.11085550487041473, -0.29587864875793...
an address I got from a WinHEC PPT dated back in 2005, and got an actual response from Justin Hutchings, the program manager for Windows Experience - Documents and Printing (cool, no?): Will, There are no XSDs for the Print Schema namespaces. You should review the Print Schema Specification 1.0 and validate your conf...
[ 0.4596596360206604, 0.3081631064414978, 0.616918683052063, 0.21741600334644318, -0.1362752914428711, -0.1355917900800705, 0.02205614373087883, -0.2814900577068329, -0.36124080419540405, -0.48895201086997986, 0.030926410108804703, 0.3250739872455597, -0.1895381361246109, 0.03570707887411117...
to input bins. After that, they load up the XML from the DefaultPrintTicket into an XMLDocument to insert nodes to specify the bin, write the XMLDocument into stream, and then build a new PrintTicket from that stream. (Probably more straight forward approach as compared to the process of concatenating and then removing...
[ 0.33420148491859436, -0.38886335492134094, 0.21947695314884186, 0.2657211720943451, 0.13699252903461456, -0.14942017197608948, -0.0005928609753027558, -0.48845311999320984, -0.03960881382226944, -0.7063705325126648, -0.16345657408237457, 0.6399754285812378, -0.12482092529535294, -0.0888799...
This is a followup to [this question](https://stackoverflow.com/questions/262448/replace-non-numeric-with-empty-string#262466) The first two answers are both correct and complete and at the end of the day, produce exactly the same result. However, one uses a Regex object and calls the aRegex.Replace(...) method (Joel'...
[ -0.07348226010799408, -0.16039110720157623, 0.5696448683738708, 0.3121483623981476, -0.08894351869821548, 0.10041011869907379, 0.10396797209978104, -0.3319002389907837, -0.0076303863897919655, -0.4357377290725708, -0.20705711841583252, 0.48702844977378845, -0.21397149562835693, 0.063493050...
return new Regex(pattern, RegexOptions.None, true).Replace(input, replacement); } ``` Plus if you instantiate your own instance you will be able to compile it as well and improve performance for multiple uses. You *can* send `RegexOptions.Compiled` to one of the static `Replace` overloads but this is pointless as t...
[ 0.3148401975631714, -0.1186545267701149, 0.255042165517807, -0.09420423209667206, -0.11280475556850433, -0.06555734574794769, 0.5478182435035706, -0.1600949615240097, -0.2069149911403656, -0.7443317770957947, -0.09612185508012772, 0.5394381284713745, -0.5582624077796936, 0.1811936050653457...
When is it the right time and when is it the wrong time to take the quick and dirty approach versus the proper elegant solution? This started from the comments on my question: [Decode Base64 data in Java](https://stackoverflow.com/questions/469695/decode-base64-data-in-java). I wanted a way to do something using onl...
[ 0.16613207757472992, 0.07172036170959473, 0.061357513070106506, -0.12033160775899887, 0.03842621296644211, -0.07229458540678024, -0.0021636069286614656, -0.3179151117801666, -0.2542751431465149, -0.534433126449585, 0.3675794303417206, 0.33081546425819397, -0.13002407550811768, -0.158855512...
and then the time that will be spent in maintaining that solution. If the lifetime of whatever you do is expected to be lengthy, then the extra time spent up front to do things the right way will, presumably, be easier to maintain and will save you in the long run. However, if there are time constraints, the penalties...
[ 0.5689471364021301, 0.09683863818645477, 0.16331084072589874, 0.290701299905777, 0.5522336959838867, -0.09259135276079178, 0.34436413645744324, -0.14178171753883362, -0.21555693447589874, -0.798289954662323, -0.16066505014896393, 0.5947666168212891, 0.08671566843986511, 0.15181295573711395...
version. That will require you to re-do the work, but like I said, it is all a balancing act, and often driven by cost at it's root.
[ 0.502561628818512, -0.1729576289653778, 0.09483519941568375, 0.3300831615924835, 0.10072069615125656, 0.2014516294002533, 0.12641949951648712, -0.1467883288860321, -0.12982642650604248, -0.6485637426376343, -0.04640183225274086, 0.37657395005226135, -0.29037943482398987, 0.1046542227268219...
So I have a TMenuItem attached to a TAction on a TPopupMenu for a TDBGrid (actually 3rd party, but you get the idea). Based on the selected row in the grid, the TAction is enabled or disabled. What I want is to be able to display a hint to the user explaining why the item is disabled. As far as why I want a hint on a...
[ -0.03364504873752594, -0.18398037552833557, 0.25568705797195435, 0.32867178320884705, -0.15328030288219452, -0.18309392035007477, 0.3629716634750366, 0.08493117243051529, -0.05375320836901665, -0.6708724498748779, -0.14829111099243164, 0.3442334830760956, -0.1612299680709839, -0.0863565728...
stick the hint in a TStatusBar or some other special processing. I [found an article](http://delphi.about.com/od/vclusing/a/menuitemhints.htm) on how to create your own even window for a TMainMenu's TMenuItems, but it doesn't work on a TPopupMenu's TMenuItem. It works by handling the WM\_MENUSELECT message, which as fa...
[ -0.04222390800714493, -0.23372647166252136, 0.6166388392448425, 0.014319950714707375, -0.2057589888572693, 0.12299724668264389, 0.24378427863121033, 0.22358636558055878, -0.13344889879226685, -0.6495074033737183, 0.1909998506307602, 0.42084571719169617, -0.12931808829307556, 0.000071664508...
Menus.PopupList.Window. Now you can use the old-fashioned way to subclass a window, as described for example in this [CodeGear article](http://dn.codegear.com/article/27295), to handle WM\_MENUSELECT also for popup menus. The HWND will be valid from after the first TPopupMenu is created to before the last TPopupMenu o...
[ 0.14614245295524597, -0.13962744176387787, 0.5999491214752197, 0.09279720485210419, 0.08951243758201599, -0.023373711854219437, 0.3377184569835663, -0.2485354244709015, -0.11103704571723938, -0.6738553047180176, -0.32009950280189514, 0.6413658261299133, -0.20721225440502167, -0.01835938915...
and a method for the new window proc to the form: ``` TForm1 = class(TForm) ... procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); procedure ApplicationEvents1Hint(Sender: TObject); private miHint : TMenuItemHint; fOldWndProc: TFarProc; procedure WMMenuSelect(var Msg: TWMMenuS...
[ -0.15474426746368408, -0.11187244206666946, 0.8890169858932495, -0.4896501302719116, 0.2243146002292633, 0.2568109333515167, 0.5225436687469482, -0.5467596650123596, 0.03457975387573242, -0.5605431795120239, -0.820485532283783, 0.6971356868743896, -0.4615855813026428, 0.0934632197022438, ...
:= TFarProc(SetWindowLong(Menus.PopupList.Window, GWL_WNDPROC, integer(fOldWndProc))); FreeObjectInstance(NewWndProc); end; ``` Implement the subclassed window proc: ``` procedure TForm1.PopupListWndProc(var AMsg: TMessage); function FindItemForCommand(APopupMenu: TPopupMenu; const AMenuMsg: TWMMenuSele...
[ -0.3682135045528412, -0.17555202543735504, 0.7148565053939819, -0.28268447518348694, -0.1397816389799118, 0.20903000235557556, 0.6501986980438232, -0.6735800504684448, -0.030575070530176163, -0.4662284851074219, -0.8305322527885437, 0.5612464547157288, -0.21077056229114532, 0.0014177962439...
end; end; var Msg: TWMMenuSelect; menuItem: TMenuItem; MenuIndex: integer; begin AMsg.Result := CallWindowProc(fOldWndProc, Menus.PopupList.Window, AMsg.Msg, AMsg.WParam, AMsg.LParam); if AMsg.Msg = WM_MENUSELECT then begin menuItem := nil; Msg := TWMMenuSelect(AMsg); if (Msg.MenuFlag <> $F...
[ -0.5331189036369324, -0.13184666633605957, 0.7960696220397949, -0.5070875287055969, 0.14154589176177979, 0.37879279255867004, 0.46142199635505676, -0.4249420762062073, -0.14910615980625153, -0.5971127152442932, -0.8040491938591003, 0.5302833318710327, -0.27699825167655945, 0.08128367364406...
break; end; end; miHint.DoActivateHint(menuItem); end; end; ``` This is done for all popup menus in a loop, until the first matching item or submenu is found.
[ -0.20596881210803986, -0.13464242219924927, 0.3068596422672272, -0.08447179943323135, 0.04916054755449295, -0.03459055721759796, 0.3864689767360687, 0.04972555488348007, -0.05850638076663017, -0.3386855721473694, -1.1209789514541626, 0.05677491053938866, -0.274300217628479, 0.1263642609119...
Is there any way with CSS to target all inputs based on their type? I have a disabled class I use on various disabled form elements, and I'm setting the background color for text boxes, but I don't want my checkboxes to get that color. I know I can do this with seperate classes but I'd rather use CSS if possible. I'm...
[ 0.3456164300441742, 0.16911551356315613, -0.1340482234954834, -0.17198128998279572, -0.4261710047721863, 0.04112433269619942, 0.3092678189277649, 0.05746588483452797, -0.15582089126110077, -0.8701311945915222, -0.002947702072560787, 0.49494558572769165, -0.5221798419952393, 0.0362238809466...
of my class altogether... **Edit** Ok thanks for the help! So here's a selector which modifies all textboxes and areas which have been disabled without requiring setting any classes, when I started this question I never thought this was possible... ```css INPUT[disabled][type='text'], TEXTAREA[disabled] { bac...
[ -0.187732994556427, 0.14391130208969116, 0.37464475631713867, -0.20934255421161652, -0.07487557828426361, -0.05164359137415886, 0.4049053490161896, -0.47008103132247925, 0.020446766167879105, -0.6502305269241333, -0.3657199442386627, 0.7367592453956604, -0.2263719141483307, 0.0174625664949...
{ color: blue; }` Which for `<p><span/><span/></p>` would effectively give you: ``` <p> <span style="font-weight: bold;"> <span style="font-weight: bold; color: blue;"> </p> ``` Further reading: [Browser CSS compatibility on quirksmode.com](http://www.quirksmode.org/css/contents.html) I'm surprised that ev...
[ 0.12572799623012543, 0.03331243619322777, 0.15043680369853973, -0.0417904257774353, 0.10816866904497147, -0.302483469247818, 0.33762454986572266, 0.19645796716213226, -0.40531104803085327, -0.8027502298355103, -0.0665803998708725, 0.38813239336013794, -0.06758799403905869, 0.08621274679899...
How do I go about testing a function or module that is machine or platform dependent? For example, something that looks at/depends on `$^O` or a module like [Net::Ifconfig::Wrapper](http://search.cpan.org/dist/Net-Ifconfig-Wrapper)? I don't need to test that Net::Ifconfig::Wrapper is returning the correct values, but I...
[ 0.34190765023231506, 0.11036712676286697, 0.06889085471630096, 0.12532158195972443, -0.008768619038164616, -0.2112094759941101, 0.2701692581176758, -0.21054866909980774, 0.013924023136496544, -0.4897820055484772, -0.05206359922885895, 0.8894249200820923, -0.08139495551586151, -0.2445231080...
$OS_LINUX, 'OS Check - linux'); } ``` For some reason I thought it was a read-only variable. To follow up on Jason's [mock objects](http://en.wikipedia.org/wiki/Mock_object) suggestion, you should take a look at the article ["Interfacing with hard-to-test third party controls" by Misko Hevery](http://misko.hevery.com...
[ 0.03816407546401024, 0.3136616349220276, -0.07239673286676407, 0.14931106567382812, 0.053829625248909, -0.22087295353412628, 0.21863284707069397, 0.12850885093212128, -0.04969111457467079, -0.37425482273101807, -0.06400318443775177, 0.7294034361839294, -0.5373990535736084, 0.08497000485658...
Is there a way in Java to programmatically import a class given its full name as a String (i.e. like `"com.mydummypackage.MyClass"`)? If by "import" you mean "load a `Class` object so you can run reflection methods," then use: ``` Class<?> clazz = Class.forName( "com.mypackage.MyClass" ); ``` (The reason we readers ...
[ 0.09055999666452408, -0.24228079617023468, 0.06843287497758865, -0.24148187041282654, -0.20773573219776154, -0.12497405707836151, -0.03141235560178757, 0.09687679260969162, -0.4116770029067993, -0.34260231256484985, -0.23709502816200256, 0.5023150444030762, -0.3180093467235565, -0.10577677...
I'm designing a new application and I'm undecided if I should fill my object properties on the constructor ``` Public Sub New(UserId as integer) ' get database values dr = DataReader Me.FirstName = dr.fields(0) Me.LastName = dr.fields(1) End Sub ``` Or create a factory with a method for each object t...
[ -0.12156201899051666, 0.1140936017036438, 0.7140265703201294, -0.23973862826824188, 0.01317975576967001, 0.24609629809856415, 0.2155374139547348, -0.2915068566799164, -0.2746313810348511, -0.5754909515380859, -0.07989177107810974, 0.4314165711402893, -0.45108261704444885, 0.469446003437042...
return myUser End Function ``` I realize that the code is rough, but I'm hoping it's enough to get my point across. I've see both implemented and not sure what the long term pros and cons are. Specifically, I'm using VB.NET, if it matters. My opinion: A constructor *creates* an object. The constructor of a `User` c...
[ -0.012693984434008598, 0.13088306784629822, 0.3396986126899719, -0.2501860558986664, -0.13630057871341705, -0.09936825186014175, 0.25836580991744995, 0.20418383181095123, 0.029834283515810966, -0.5513998866081238, -0.12724252045154572, 0.45125052332878113, -0.24208702147006989, 0.298981428...
I am trying to split a PDF into 2 smaller PDF's using gs (Ghostscript version 8.62 on Debian Lenny). I only have Debian Linux on hand, so please don't offer Windows or Mac solutions. When specifying `-dLastPage=740`, I receive the error: ``` GPL Ghostscript 8.62: ERROR: A pdfmark destination page 1203 points beyond t...
[ 0.090082086622715, 0.24902305006980896, 0.7169514298439026, -0.06818286329507828, -0.1325085461139679, -0.3247888684272766, 0.5049561262130737, -0.18172217905521393, -0.21869874000549316, -0.8041269779205322, -0.13886600732803345, 0.71680748462677, -0.3504955470561981, 0.13551314175128937,...
-DNOPAUSE -sPAPERSIZE=halfletter - dFIXEDMEDIA -dEmbedAllFonts=true -sOutputFile=library.1of2.pdf - dLastPage=740 -dPDFFitPage library.pdf ``` As it turns out, the error is not fatal. The pdf is generated anyhow, and since I do not care about pdf links or bookmarks functioning, this problem is solved for me. In gener...
[ 0.3210415244102478, 0.28213804960250854, 0.6204188466072083, 0.19494394958019257, -0.16268040239810944, -0.30104079842567444, 0.4280058741569519, -0.09992595762014389, -0.1320129781961441, -0.6428906321525574, -0.10188498347997665, 0.47886738181114197, -0.00034339132253080606, 0.4278034865...
Say I have a phone-number validator in flex and I have two TextInput controls for phone numbers. I don't want to have two separate validator controls defined that have essentially the same attributes... but each validator has only one "source" attribute. How can I use the same validator on multiple control? (or any equ...
[ 0.47158360481262207, 0.19120724499225616, 0.2839561998844147, 0.21711944043636322, -0.14107228815555573, -0.0028076102025806904, -0.04751547798514366, -0.46417543292045593, 0.02185479737818241, -0.5938901305198669, 0.24922946095466614, 0.6350178122520447, -0.06745080649852753, 0.0343218781...
<![CDATA[ private function validatePhoneNumber(txt:TextInput):void { v.listener = txt; v.validate(txt.text); } private function btn_click():void { validatePhoneNumber(p1); validatePhoneNumber(p2);
[ 0.36319512128829956, -0.04195393994450569, 0.5473057627677917, -0.35328778624534607, 0.07215100526809692, 0.22535748779773712, 0.2995395064353943, -0.5003436207771301, 0.0032988162711262703, -0.3578498959541321, -0.40700197219848633, 0.7734467387199402, -0.5664432048797607, 0.0403007939457...
} ]]> </mx:Script> <mx:PhoneNumberValidator id="v" allowedFormatChars="()- .+" property="text" requiredFieldError="Required." wrongLengthError="Invalid length." invalidCharError="Invalid character." /> <mx:Form> <mx:FormItem label="Phone Number 1"> <mx:TextInput id="p1" /> </mx:FormItem> ...
[ 0.12244054675102234, 0.171732559800148, 0.7057918906211853, -0.06201133131980896, 0.33294591307640076, 0.197580024600029, 0.4347340762615204, -0.634742259979248, -0.06629403680562973, -0.7661561369895935, -0.158823162317276, 0.6843437552452087, -0.08999750018119812, -0.38298845291137695, ...
Consider the code below: ``` this.usedIds = 0; this.SendData = function(data) { var id = this.usedIds; this.usedIds++; this.xmlHttpThing.open("POST", "/Upload.aspx", true); this.xmlHttpThing.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); var currentObject = this; this...
[ 0.005294670816510916, -0.31422826647758484, 1.034706711769104, -0.225056454539299, 0.1346680074930191, 0.041108179837465286, 0.34409886598587036, -0.797134518623352, -0.052551865577697754, -0.5315394401550293, -0.3491012454032898, 0.5060499310493469, -0.4830159544944763, 0.2212684750556945...
<<<--------- Why?? //Third time id is 1 //Fourth time id is 2 //Fifth time id is 3 .... this.SendData("blabla"); } }; ``` Why does the id I pass to the anonymous function get delayed by one call after the first call? Only seems to be this way in Firefox, in IE the `Uploa...
[ 0.0923740565776825, -0.12591378390789032, 0.4579145908355713, -0.35398009419441223, 0.18774797022342682, -0.2526938319206238, 0.20172595977783203, -0.25089266896247864, -0.06243656948208809, -0.4498654901981354, -0.4960643947124481, 0.5614969730377197, -0.5331715941429138, -0.0044053047895...
second loop I can stop the debugger at the send(data)-line and confirm that the id is actually 1 but when I get to the `UploadComplete` it turns out to be 0 in that argument :( **EDIT: Found solution:** Disable Console-logging in FireBug. Here's one: * [Pinch Media](http://www.pinchmedia.com/) I'm making this Com...
[ -0.05927031487226486, -0.23731067776679993, 0.3357533812522888, 0.12340494245290756, -0.2249176949262619, -0.19714286923408508, 0.40038853883743286, 0.3089789152145386, -0.07527941465377808, -0.727658748626709, 0.057527899742126465, 0.6327337622642517, -0.380357027053833, 0.025512943044304...
How can you use ModRewrite to check if a cache file exists, and if it does, rewrite to the cache file and otherwise rewrite to a dynamic file. For example I have the following folder structure: ``` pages.php cache/ pages/ 1.html 2.html textToo.html etc. ``` How would you setup the RewriteRules for t...
[ 0.24766308069229126, -0.10772638767957687, 0.7744434475898743, 0.15465494990348816, -0.2759597897529602, -0.38284218311309814, 0.6245591044425964, -0.5008286237716675, -0.14379984140396118, -0.6650556325912476, 0.2141132354736328, 0.8100293874740601, -0.44148021936416626, 0.046207096427679...
have asked this) ``` RewriteRule ^pages/([^/\.]+) cache/pages/$1.html [NC,QSA] RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule cache/pages/([^/\.]+).html pages.php?p=$1 [NC,QSA,L] ``` I can off coarse do this using PHP but I thought it had to be possible using mod\_r...
[ 0.1394491046667099, 0.08434122800827026, 0.9487487077713013, 0.0627402812242508, 0.10594635456800461, 0.06678568571805954, 0.2458794265985489, -0.4916854798793793, -0.27214711904525757, -0.6487295627593994, -0.15497972071170807, 0.6501112580299377, -0.36600521206855774, 0.29036855697631836...
converted to /pages.php before mod\_rewrite kicks in. You can also just rename pages.php to something else (and update the last rewrite rule as well) to avoid the MultiViews conflict. Edit: I initially included `RewriteCond ... !-d` but it is extraneous.
[ 0.20774415135383606, -0.12811826169490814, 0.5717556476593018, -0.024790683761239052, -0.39709341526031494, -0.07224692404270172, 0.4076652228832245, 0.16178210079669952, -0.03480910509824753, -0.9801813960075378, -0.0080623934045434, 0.294643759727478, -0.22059011459350586, 0.217647165060...
What's the accepted procedure and paths to configure jdk and global library source code for Intellij IDEA on OS X? As of the latest releases: * Java for Mac OS X 10.6 Update 3 * Java for Mac OS X 10.5 Update 8 Apple has moved things around a bit. To quote the Apple Java guy on the java-dev mailing list: > 1. System...
[ 0.08418454974889755, 0.05601723864674568, 0.5347979664802551, 0.023285359144210815, 0.02855636551976204, -0.22934803366661072, 0.3396781086921692, 0.0673665851354599, -0.47954243421554565, -0.8677451610565186, -0.2809726297855377, 0.5624209046363831, -0.17076842486858368, -0.05754902958869...
always be GM version, that developers can revert back to, despite > any developer previews or 3rd party > JVMs they have installed. > * Like everything else in /System, it's owned by root r-x, so don't mess > with it! > 2. Developer JVMs live under /Library/Java/JavaVirtualMachines > > > * Apple Java Develope...
[ 0.42681413888931274, -0.08007121831178665, 0.30975377559661865, -0.14659596979618073, 0.09237749129533768, -0.15728981792926788, -0.046939533203840256, -0.013349792920053005, -0.4492228627204895, -0.7716379761695862, -0.2964664399623871, 0.6466583013534546, -0.19157744944095612, -0.0868310...
itself can use > ~/Library/Java/JavaVirtualMachines > > > * It's handy to symlink to your current build product from this > directory, and not impact other users > 4. Java IDEs should probably bias to using /Library or ~/Library detected > JVMs, but should be able to fallback > to using /System/Library JVMs if ...
[ 0.09047222137451172, -0.07424622774124146, 0.4810282289981842, -0.05554616451263428, -0.1390991508960724, -0.2791458070278168, 0.11622127145528793, -0.40716752409935, -0.10807836800813675, -0.5906667709350586, -0.04745638743042946, 0.5860509872436523, -0.3461783826351166, -0.31205576658248...
that all > Mac customers have one safe, slim, > secure version of the JVM, and that we > don't endlessly eat their disk space > every time we Software Update them a > JVM. So, instead of pointing Intellij at /System/Library/Frameworks/JavaVM.framework, you should point to a JDK in either /Library/Java/JavaVirtual...
[ 0.1497756689786911, 0.25738757848739624, 0.36599650979042053, 0.0932978093624115, 0.13825839757919312, -0.11915599554777145, 0.07205495238304138, 0.17793230712413788, -0.23221081495285034, -0.652549684047699, -0.3930661678314209, 0.6903932690620422, -0.21084024012088776, -0.191775724291801...
What is the simplest way to distribute an asp.net web application? I tried to look at some of the open source asp.net projects out there to see how they distribute their apps and how they do updates and they seem rather complicated to me (not for myself to perform but for non-technical users). A lot of them entail back...
[ 0.45672956109046936, -0.05112302303314209, -0.02246645838022232, 0.28300410509109497, -0.037500157952308655, 0.01466379128396511, 0.07778739929199219, -0.06821835786104202, -0.26469624042510986, -0.4011414349079132, 0.2020719051361084, 0.47147172689437866, -0.26250576972961426, -0.20838899...
now. We decided to use [WiX](http://wix.sourceforge.net/) to create an installer that can be run on the server or machine where the site is installed. WiX is incredibly powerful, but takes a bit to get the hang of. There are plenty of other open source, and paid installer technologies as well. [Here is a post](https:/...
[ 0.7784740924835205, 0.020713675767183304, 0.1417490690946579, -0.006946377921849489, 0.18590576946735382, -0.518932044506073, 0.13643673062324524, 0.40150219202041626, -0.19375766813755035, -0.6716837882995605, -0.14152966439723969, 0.3843800723552704, -0.032095931470394135, 0.086146041750...
I've found the following code for parsing through RSS but it does not seem to allow for nested elements: ``` - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{ NSLog(@"ended element: %@", elementName); if ([elem...
[ -0.1414581835269928, -0.11142845451831818, 0.4431415796279907, -0.147351935505867, -0.0018715020269155502, 0.0564727820456028, 0.24033237993717194, -0.48109644651412964, -0.04164708033204079, -0.3389841318130493, 0.031745944172143936, 0.1608845740556717, -0.36042872071266174, 0.12880575656...