text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have a simple file selector on my web application which uses Directory.GetFiles and Directory.GetDirectories to produce the UI. This works perfectly on my localhost, but when I upload it to my Windows Server 2003 hosting I can only see files - on the same directory, GetFiles works but GetDirectories doesn't. The cod...
[ -0.061747122555971146, -0.022247295826673508, 0.5156568288803101, -0.14211052656173706, -0.07466500252485275, -0.20530878007411957, 0.1762109249830246, -0.16510772705078125, -0.17813429236412048, -0.9652281403541565, 0.03519374877214432, 0.752053439617157, -0.4535524845123291, 0.0370102860...
makes no difference. So if the issue is not with security, I would be very grateful of some suggestions for more things to try! **Update:** I'm pretty dumb - the code that spat out the HTML contained some very old testing code that hadn't made any difference on local so hadn't been noticed and removed, but that cause...
[ 0.45900416374206543, 0.25420472025871277, 0.18540558218955994, 0.0304176714271307, 0.04442722722887993, -0.5680281519889832, 0.5139610171318054, 0.33314579725265503, -0.3994348645210266, -0.5162317752838135, -0.18051233887672424, 0.17798210680484772, -0.21785670518875122, 0.345447957515716...
a DateTime is stored as the number of ticks since 12:00:00 midnight, January 1, 0001, but it doesn't say in which TimeZone the midnight actually is - I would have to assume that if it was always stored internally in UTC, they would say so. You can easily get around this though: Just do: ``` var difference = Dt1.ToUni...
[ 0.5610165596008301, -0.45671093463897705, 0.5973489880561829, -0.051972951740026474, 0.24718113243579865, 0.0007879738113842905, 0.1755697876214981, 0.1532803624868393, -0.36546790599823, -0.41858750581741333, 0.03470449894666672, 0.049660176038742065, -0.12074624747037888, 0.4274298846721...
This is the well know select algorithm. see <http://en.wikipedia.org/wiki/Selection_algorithm>. I need it to find the median value of a set of 3x3x3 voxel values. Since the volume is made of a billion voxels and the algorithm is recursive, it better be a little bit fast. In general it can be expected that values are ...
[ -0.16135042905807495, -0.16872942447662354, 0.4168311059474945, 0.012739863246679306, -0.044814810156822205, 0.05068028345704079, -0.34589070081710815, -0.13845117390155792, -0.02268637716770172, -0.7968683242797852, 0.15897811949253082, 0.4266567826271057, -0.03806013986468315, 0.40417513...
implementing this, I'd like to know if a blitz fast solution already exist out there. The fact that I'm using floats shouldn't matter since they can be considered as unsigned integer after inverting the sign bit. The order will be preserved. EDIT: benchmark and source code moved into a separate answer as suggested b...
[ -0.005549327470362186, -0.30700403451919556, 0.2900228202342987, 0.010194618254899979, -0.13276506960391998, 0.01803535595536232, -0.1446930468082428, -0.3489861488342285, -0.2784166932106018, -0.6700860261917114, 0.01747238077223301, 0.4293018877506256, -0.38361606001853943, -0.2052910774...
to use radix sort, the second is to combine median search of adjacent pixels who share a lot of pixels. Since it sounds like you're performing a median filter on a large array of volume data, you might want to take a look at the [Fast Median and Bilateral Filtering](http://www.shellandslate.com/fastmedian.html) paper f...
[ -0.06294287741184235, -0.5520648956298828, 0.18387587368488312, 0.07426819950342178, -0.2595489025115967, 0.06392651051282883, -0.44869497418403625, -0.4482177197933197, -0.2758941948413849, -0.747959554195404, 0.2833154499530792, 0.398234486579895, -0.10828374326229095, 0.0981038361787796...
I'm trying to send out mail using Google's SMTP in combination with PHPMailer, but I can't get it to work. This is my code: ``` $mail->IsSMTP(); $mail->Host = "smtp.gmail.com"; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Username = "myemail@gmail.com"; $mail->Password = "**********"; $mail->Port = "465";...
[ -0.010802661068737507, 0.3106538653373718, 0.6441786885261536, -0.2759656012058258, -0.13308292627334595, -0.05870775878429413, 0.9642977118492126, -0.008393718861043453, -0.1385161131620407, -0.8815015554428101, -0.18291635811328888, 0.393006294965744, -0.45474255084991455, 0.264504343271...
means SSL failed, but don't know why... Ok, the problem was the version of PHPMailer. I updated to PHPMailer version 5 and everything worked great. I was using phpMailer version 1.02.
[ 0.3634014427661896, -0.008076265454292297, 0.3430333733558655, -0.016245465725660324, -0.28890278935432434, -0.26204732060432434, 0.8776289820671082, -0.009549560956656933, -0.05795000493526459, -0.5460484623908997, 0.18359030783176422, 0.7387174367904663, -0.15213635563850403, 0.051199536...
I have a stored procedure in SQL Server 2000 that performs a search based on parameter values. For one of the parameters passed in, I need a different `WHERE` clause depending on its value - the problem is that the 3 values would be where `MyColumn` 1. `IS NULL` 2. `IS NOT NULL` 3. `ANY VALUE (NULL AND NOT NULL)` (es...
[ -0.2172594666481018, 0.22499990463256836, 0.16165663301944733, -0.049118030816316605, -0.12025664001703262, -0.2621717154979706, 0.2562541961669922, 0.007551929447799921, -0.06569886207580566, -0.5665549635887146, 0.278126060962677, 0.3617863953113556, -0.23572979867458344, 0.1945097148418...
`WHERE` clause: ``` WHERE (@myParm = value1 AND MyColumn IS NULL) OR (@myParm = value2 AND MyColumn IS NOT NULL) OR (@myParm = value3) ``` A naïve usage of the CASE statement **does not work**, by this I mean the following: ``` SELECT Field1, Field2 FROM MyTable WHERE CASE @myParam WHEN value1 THEN MyColumn I...
[ -0.12019011378288269, 0.13679052889347076, 0.17611253261566162, -0.1044740378856659, 0.0894739106297493, -0.04209267348051071, 0.1361546516418457, -0.2157464176416397, -0.00912590604275465, -0.4277012348175049, -0.2925981283187866, 0.4910183250904083, -0.391204297542572, -0.039928562939167...
I need to display a grid on a webpage. The data will come from SQL Server 2008 through a stored procedure. As the sproc returns thousands of records, I decided to go for a paging option which works fine. In the stored procedure, I do something like this: ``` declare @RowIdMin int=10 declare @RowIdMax int=25 sele...
[ 0.007615641225129366, -0.0655364841222763, 0.47476744651794434, -0.21225324273109436, -0.023606551811099052, 0.16965612769126892, 0.023749148473143578, -0.1654582917690277, -0.2664053738117218, -1.0173810720443726, 0.3155929148197174, 0.4471561908721924, -0.374317467212677, 0.2383099794387...
happy to get the data sorted by Col1. How could I rewrite this if I don't know in advance which column the recordset has to be sorted by? This doesn't work: ``` declare @RowIdMin int=10 declare @RowIdMax int=25 ``` **declare @ColSort varchar(100)='MyColumn'** ``` select * from (select Col1, Col2, ROW_NUMBER(...
[ -0.19898773729801178, 0.0028798908460885286, 0.9102845191955566, -0.1031470075249672, 0.2424132525920868, -0.037451501935720444, 0.10989228636026382, -0.17088821530342102, -0.253349632024765, -0.625697672367096, -0.10085272789001465, 0.6782277226448059, -0.5977948307991028, -0.052535239607...
Is it possible using the iPhone SDK to grab a frame from a video in iPhone and save it or use it in any way in the application? Does the SDK give any control over the video other than play/stop or maybe access to the binary data of the video? Also is it possible to know the time at which the user stopped watching the ...
[ 0.24066145718097687, -0.016792114824056625, 0.3668400049209595, 0.46629980206489563, 0.0618022195994854, -0.21284203231334686, 0.3398439288139343, -0.06477267295122147, -0.5298991799354553, -0.33357223868370056, -0.12560369074344635, 0.3815615475177765, -0.17765283584594727, -0.15120382606...
won't ban the application from the AppStore? Here's a blog post about extracting frames from movies using ffmpeg: <http://www.codza.com/extracting-frames-from-movies-on-iphone> The corresponding project on github: [iFrameExtractor](http://github.com/lajos/iFrameExtractor)
[ 0.3193856179714203, 0.146658793091774, 0.3581557273864746, 0.25427812337875366, -0.04288243502378464, -0.33180510997772217, 0.25842225551605225, -0.2367924153804779, -0.3453342318534851, -0.27264469861984253, -0.13730357587337494, 0.5592333674430847, -0.29140153527259827, -0.17911857366561...
Is it possible to capture the graphics object created by the Google Earth browser plugin from a .NET WebBrowser control? With this graphics object I could create an image to use as the background image for a panel that I can then draw on top of. You cannot just use a WebBrowser control under a Panel control as the Go...
[ 0.14347757399082184, -0.17383986711502075, 0.25681212544441223, 0.4248770773410797, -0.022707117721438408, 0.014499301090836525, -0.08259788155555725, 0.08785802125930786, 0.07258893549442291, -0.6209672093391418, 0.2227928340435028, 0.7033085823059082, -0.21082520484924316, 0.077153176069...
on this one, it seems imposible to show google earth on a panel when the webbrowser control hosing it is offscreen. The solution is either to live with the limitation: * Set the form you wish to draw on background to transparent * Create a new form to be the parent of the drawing form * Display google earth on the ne...
[ 0.5475643873214722, -0.21319741010665894, 0.35314881801605225, 0.2254333645105362, -0.012816808186471462, 0.0027326582930982113, 0.007767743896692991, 0.14006392657756805, 0.28376346826553345, -0.5788891315460205, 0.10542291402816772, 0.26541393995285034, -0.06974492967128754, 0.1109962537...
I need to implement operations with matrices and size of matrix has to be variable. The only solution I came up with is to use linked list: ``` [pointer to this row, pointer to another row] -> [element 1,1; link to another element] -> [element 1,2, link to another element] -> .... -> [nil] | v [pointer to t...
[ 0.14657430350780487, 0.21373017132282257, 0.07597379386425018, 0.19500812888145447, -0.04027842357754707, 0.14040033519268036, 0.09332647174596786, -0.2859943211078644, -0.2547404170036316, -0.6572142243385315, 0.14047150313854218, 0.5421006679534912, -0.31617823243141174, 0.05892373993992...
following: * File -> Source Control * Tools -> Options -> Source Control
[ -0.044247470796108246, -0.04966818541288376, 0.07272902131080627, 0.12275207787752151, 0.21512599289417267, 0.1389095038175583, -0.3019084930419922, -0.09143131971359253, -0.04195084795355797, -0.5947170853614807, -0.33416110277175903, 0.8720791935920715, -0.12409345805644989, 0.2346289306...
I'm currently working on an admin section for a website. The admin can use the infragistics WebHtmlEditor tool to create markup for pages which will then be loaded into the pages on load. What is the best way to store this markup in the database? Should we just save the HTML generated by the WebHtmlEditor into a varch...
[ 0.6390731930732727, 0.29759860038757324, 0.2854074239730835, 0.19530688226222992, -0.24147309362888336, -0.21357515454292297, 0.06316875666379929, 0.010457129217684269, -0.025847053155303, -0.60127192735672, 0.19998787343502045, 0.3575385510921478, -0.16165243089199066, 0.15976384282112122...
markup should be lost assuming you're not doing nay transformations between collecting the value from the control and passing to the DB.
[ 0.038976918905973434, -0.08181922882795334, 0.02359059639275074, 0.06377243250608444, -0.23502683639526367, 0.08041733503341675, 0.2116682380437851, -0.4319876432418823, 0.10069214552640915, -0.31201407313346863, -0.15025535225868225, 0.3148799240589142, 0.10958042740821838, 0.125667944550...
How many concurrent connections do the express editions allow? My front end uses standard ADO.Net code where I open the connection to the server, get my data, and then close the connection. Am I right in saying that as soon as the connection is closed, it then allows this connection to be opened by another user? The ...
[ -0.1240590289235115, 0.16831886768341064, 0.36902379989624023, 0.24349066615104675, -0.19742345809936523, -0.2255801409482956, 0.1727171093225479, 0.025102684274315834, -0.38964301347732544, -0.46382778882980347, 0.14742672443389893, 0.14384309947490692, -0.3963906466960907, 0.130981475114...
when a connection is closed, its resources are released immediately. The only caveat on this is connection pooling in .NET.
[ 0.12436389178037643, -0.3233253061771393, -0.1079329401254654, 0.3295859694480896, 0.22329993546009064, -0.6773563623428345, 0.04779084026813507, 0.2535182237625122, -0.40480929613113403, -0.5474457144737244, -0.3982655704021454, 0.15144996345043182, -0.22977663576602936, 0.485796868801116...
I'll try to make this as simple a posible. I just started working with jquery and don't know what's the best aproach to do what i want to do or if i'm completely wrong. I'm trying to make a simple "recommend" button to recomend articles but i want that once the user has recommended one article he can't recomend it aga...
[ 0.35950344800949097, 0.17988711595535278, 0.5385422110557556, -0.005559033714234829, -0.36421293020248413, -0.22066828608512878, 0.2549530565738678, 0.24147164821624756, -0.24485883116722107, -0.637454092502594, 0.2326463758945465, 0.5996133685112, -0.2760063707828522, 0.1122448593378067, ...
page the button is enabled again (i'm controlling this serverside, but i want to disable the button client side also). What would be the best aproach to detect from jquery if the user has recommended one article within the .ready function in order to do not bind the button event? I can think of two viable solutions b...
[ 0.08042200654745102, -0.2379561811685562, 0.7568248510360718, 0.14364640414714813, -0.11113858968019485, -0.19315177202224731, 0.32501980662345886, -0.023646239191293716, -0.26167330145835876, -0.8225683569908142, -0.008795552887022495, 0.6094178557395935, -0.42573854327201843, 0.112683884...
ajax call in the document.ready to check if the article was already recomended. A lot of sites have this kind of behavior (youtube for ex.) so there must be a better way to do this. Some code: this is my "button" in the view: ``` <% // Display the button %> <%= Html.Image("/ECA/Content/Images/notchecked.png", new {...
[ -0.19544723629951477, -0.04096708819270134, 0.6027834415435791, -0.10051019489765167, -0.2590877115726471, -0.4745948016643524, 0.08951824903488159, -0.008427305147051811, -0.08171593397855759, -0.7537296414375305, 0.181566059589386, 0.7863041162490845, -0.0630798265337944, -0.215620711445...
UpdateVote( 2); } ); ``` My callback function: ``` var UpdateVoteCallBack=function(data) { $("#recommend") .attr('src','/ECA/Content/Images/checked.png'); $("#recommend").unbind('click'); } ``` I would check server side to see if the article has been recommended and send the appropria...
[ -0.031814515590667725, -0.13572783768177032, 0.8588641881942749, -0.3432413637638092, -0.1316080391407013, 0.013790514320135117, 0.0611535869538784, -0.39083367586135864, -0.024408478289842606, -0.3526594042778015, 0.0630483478307724, 0.798164427280426, -0.39136046171188354, -0.07231345027...
I have an If Statement block similar to the below which is failing with the error - PLS-00103: Encountered the symbol "SELECT" when expecting one of the following.... ``` Begin If (select count(*) from Table1) > 0 then dbms_output.put_line('Test'); end if; end; ``` I have similar Case statement which...
[ 0.2705746293067932, -0.09955691546201706, -0.036777060478925705, -0.14672794938087463, -0.10312499850988388, -0.1593540757894516, 0.37653374671936035, -0.5428959131240845, 0.3109421133995056, -0.7001374363899231, 0.04614141955971718, 0.5321241617202759, -0.20858223736286163, 0.231891959905...
if and when support a Boolean Expression, any ideas whether Subqueries are supported in If Conditions. **Note:** The Statements have been simplified, i am not really going to get the count of the entire table, so no optimization suggestions please No, you can't use a SELECT in the way you want. In your example using ...
[ 0.11932159960269928, -0.25874534249305725, 0.07094890624284744, 0.151334747672081, -0.016943439841270447, -0.0160757414996624, 0.08420376479625702, 0.01658940128982067, -0.2616581916809082, -0.6657497882843018, -0.19078709185123444, 0.503987193107605, -0.19758397340774536, -0.1206143498420...
able to use a subquery like this in a procedural CASE statement.
[ -0.021007008850574493, -0.03367557004094124, 0.1598040908575058, 0.24930045008659363, -0.022315101698040962, -0.3077748119831085, -0.15363101661205292, 0.005774898454546928, -0.06806689500808716, -0.45732003450393677, -0.26090145111083984, 0.49230360984802246, 0.1186414286494255, -0.218299...
I am using hibernate, spring, struts framework for my application. In my application, each of the table has one field called as Version for tracking updation of any records. Whenever i am updating existing record of my Country table which has version 0, it works fine & update the record update the version field to 1....
[ 0.10414062440395355, 0.28016456961631775, 0.5584725141525269, -0.34704965353012085, -0.006292794365435839, 0.15138763189315796, 0.26072102785110474, -0.2563317120075226, -0.4053741991519928, -0.4559760093688965, 0.17962409555912018, 0.29277902841567993, -0.33510515093803406, 0.285434216260...
way to resolve it ? The version column of Hibernate allows you to implement [optimistic concurrency control](http://en.wikipedia.org/wiki/Optimistic_concurrency_control). Every time an object should be updated Hibernate checks if the version value stored in the database is the same as the version value in the object....
[ -0.01125295553356409, 0.06447912007570267, 0.5403591394424438, 0.020875323563814163, 0.14760643243789673, -0.24121809005737305, 0.45775294303894043, -0.1742105782032013, -0.28665217757225037, -0.4759327173233032, 0.14875437319278717, 0.544583261013031, -0.3274555206298828, 0.05635393410921...
column is not set correct (eg in web applications when values are retrieved from forms)
[ -0.25111129879951477, 0.152718648314476, 0.6185615062713623, 0.15499962866306305, -0.06693805754184723, -0.09597770869731903, 0.1826593577861786, 0.05471022427082062, -0.17605896294116974, -0.17173229157924652, -0.21514543890953064, -0.13933122158050537, -0.38315021991729736, 0.02297853864...
How can I determine if String contains only alphabets and I want to have little more than [a-zA-Z]+, so is there any way to determine alphabets by Locale? The [`Character`](http://java.sun.com/javase/6/docs/api/java/lang/Character.html) class has methods such as [`isLetter`](http://java.sun.com/javase/6/docs/api/java/l...
[ -0.07944419234991074, -0.03354251757264137, 0.28490063548088074, -0.14545314013957977, -0.21408243477344513, 0.414249986410141, 0.2881838381290436, -0.4915929436683655, -0.15975390374660492, -0.45798563957214355, -0.20830392837524414, 0.20901158452033997, 0.10327741503715515, -0.2002001553...
so, I had to use the [`Character.UnicodeBlock.of`](http://java.sun.com/javase/6/docs/api/java/lang/Character.UnicodeBlock.html#of(char)) method: ``` boolean isKatakana = Character.UnicodeBlock.of(c) == Character.UnicodeBlock.KATAKANA; ``` Also to add, the character at a certain index of a `String` can be retrie...
[ -0.21921822428703308, 0.25380998849868774, 0.07577059417963028, -0.14291304349899292, -0.09053264558315277, 0.43945783376693726, 0.08362478762865067, -0.32785946130752563, 0.003034793073311448, -0.4847581684589386, -0.2479296624660492, 0.16399039328098297, 0.08615382760763168, 0.1583986729...
How i can create a generic datacontext on linq means If database change i don't have to change anything on linq datacontext. Please specify the code or link If you need this level of dynamic querying, LINQ is probably the wrong technology. One of LINQ's major benefits is static typing - which is usually a plus. Misspe...
[ 0.029761826619505882, 0.13620451092720032, 0.5920063257217407, 0.27430954575538635, -0.25323063135147095, -0.290656715631485, 0.3070845603942871, -0.05227523297071457, -0.18764102458953857, -0.5315194725990295, 0.12084957212209702, 0.4806229770183563, -0.5639437437057495, 0.017347522079944...
DataAdapters, etc).
[ -0.11116394400596619, -0.4345221519470215, 0.3241191804409027, 0.3591243624687195, 0.0634920597076416, -0.23875027894973755, 0.07278085500001907, 0.022900018841028214, -0.22246558964252472, -0.5700159668922424, -0.2945452928543091, 0.16109775006771088, -0.22210873663425446, 0.3090295493602...
I'm looking for the coolest thing you can do in a few lines of simple code. I'm sure you can write a [Mandelbrot set in Haskell in 15 lines](http://mcfunley.com/cs/blogs/dan/archive/2007/12/25/1532.aspx) but it's difficult to follow. **My goal is to inspire students that programming is cool**. We *know* that progra...
[ 0.3697044253349304, 0.38196703791618347, 0.07337190955877304, 0.26730334758758545, -0.009813397191464901, 0.14342448115348816, 0.3325047791004181, 0.39425966143608093, -0.029600316658616066, -0.7268784046173096, -0.2885717451572418, 0.30417031049728394, 0.2594437003135681, -0.0943997204303...
all freshmen. They are the students who came from underprivileged High schools. From my past experience, the group is generally split as follows: a few [rock-stars](http://www.google.com/#hl=en&safe=off&q=Rockstar+Programmers&fp=WnpED7D_IvM), some who try very hard and *kind of* get it, the few who try very hard and *b...
[ -0.0368928536772728, 0.16238199174404144, 0.24215687811374664, 0.21252648532390594, -0.048706576228141785, 0.07517463713884354, 0.43856844305992126, 0.41304436326026917, -0.7587929368019104, -0.41395798325538635, -0.4020079970359802, 0.3303523063659668, 0.3633348047733307, -0.0158389713615...
> > > ``` > CreateObject("sapi.spvoice").Speak InputBox("Enter your text","Talk it") > > ``` > > I could use this to demonstrate order > of operations. I'd show the code, let > them play with it, then explain that > There's a lot going on in that line, > but the computer can make sense of it, > because it know...
[ 0.02742748335003853, 0.10166867822408676, 0.48345983028411865, -0.10807091742753983, -0.16502045094966888, -0.1351892501115799, 0.37260740995407104, -0.4054655432701111, -0.04621276259422302, -0.7786644697189331, -0.27224427461624146, 0.5183136463165283, -0.4293990731239319, -0.41315847635...
4. And now I've created the Object. Dividing by 10 is the same as calling > Speak - I can't Speak before I have an > object, and I can't divide before I > have 100. Then on the other side I > first create an InputBox with some > instructions for how to display it. > When I hit enter on the input box it > evalua...
[ 0.06843432039022446, 0.3273814022541046, 0.44033199548721313, -0.20289000868797302, -0.168084055185318, 0.4705255627632141, 0.29803791642189026, -0.32305121421813965, 0.07808107137680054, -0.6398974657058716, -0.10075566172599792, 0.4918152391910553, -0.09860967844724655, 0.037766870111227...
from the InputBox. > > > So when you do several things on a > line, like: > > > > ``` > x = 14 + y; > > ``` > > You need to be aware of the order of > things. First we add 14 and y. Then > we put the result (what it evaluates > to, or returns) into x. That's my goal, to have a bunch of these cool examples t...
[ 0.4058035612106323, 0.04322570934891701, -0.03130750358104706, 0.08395196497440338, -0.35417112708091736, 0.13255064189434052, 0.07543343305587769, -0.0214723851531744, -0.3054409921169281, -0.6436615586280823, 0.015205170027911663, 0.058855533599853516, -0.15978063642978668, -0.1080372706...
it and learned something. Some cool [mathematica programs that make beautiful graphs or shapes](http://reference.wolfram.com/legacy/v5/Tour/WritingProgramsInMathematica.html) that are easy to understand would be good ideas and I'm going to look into those. Here are some [complicated actionscript examples](http://www.2...
[ 0.34763264656066895, -0.439135879278183, 0.3853512704372406, 0.3878658711910248, 0.08386316150426865, -0.014544726349413395, 0.0861176922917366, 0.05547161400318146, -0.10978354513645172, -0.5382717251777649, 0.2588067650794983, 0.28926190733909607, 0.009855623356997967, -0.251095205545425...
at the [Microsoft Agent](http://www.microsoft.com/downloads/details.aspx?familyid=E11BF712-7862-45BA-826D-44AE3A11836F&displaylang=en) download page. The folllowing few lines will make the Merlin character appear on screen, fly around, knock on the screen to get your attention, and say hello. ``` agentName = "Merlin"...
[ -0.34188777208328247, -0.23494109511375427, 0.7436513304710388, -0.008461127057671547, -0.053060516715049744, -0.001598159084096551, 0.6187735795974731, 0.0059170592576265335, -0.04223986715078354, -0.9083230495452881, -0.41418585181236267, 0.3844767212867737, -0.022023553028702736, 0.0671...
verify whether it operates.
[ 0.7034003734588623, 0.546100914478302, -0.030573589727282524, 0.28925731778144836, 0.43487483263015747, -0.49391093850135803, 0.21829615533351898, 0.17102918028831482, 0.22738325595855713, -0.35952475666999817, -0.3903571665287018, 0.4536248743534088, 0.31020814180374146, -0.30650922656059...
I work for a web agency and we have just been commissioned to produce an IPhone App for a client. We would want to sell the App on the AppStore under the clients company name, not our own. When signing up our company to the IPhone Developer program, I see it says apps in the AppStore will appear under our company name...
[ 1.0823026895523071, 0.3387988209724426, 0.05576154589653015, -0.21785391867160797, 0.3146047592163086, 0.16547703742980957, 0.09881426393985748, 0.11480322480201721, -0.258794367313385, -0.12439711391925812, 0.1944417506456375, 0.6750157475471497, 0.01063927635550499, -0.16609090566635132,...
Developers handle this? **Edit**: I am specifically interested in how dev shops which produce IPhone apps to sell on behalf of their clients handle this. Each client needs to sign up for the developer program. If you don't have many clients, it's easiest to do Ad-Hoc builds from your own account and only do the final...
[ 0.8305428624153137, 0.3442467451095581, 0.008284613490104675, 0.27506908774375916, -0.10778530687093735, 0.03638826683163643, 0.20648321509361267, -0.1722623109817505, -0.13081340491771698, -0.4069133400917053, -0.04964831471443176, 0.7420253753662109, 0.06162940338253975, -0.0869219750165...
the person who created the company account can create and use Ad-Hoc certificates.
[ 0.7506018280982971, 0.6439800262451172, 0.08270806074142456, 0.10878589004278183, 0.2836584448814392, -0.06067657470703125, -0.10886644572019577, 0.28749674558639526, -0.03917200490832329, 0.0539432018995285, -0.18185767531394958, 0.12842832505702972, 0.27964046597480774, -0.01872314885258...
I am writing a survey application, and I have a form that can have potentially hundreds of input fields. How would I write the controller to process this form? I can't specify each input as a parameter for the controller, that would be unrealistic. I found out about the MVCToolkit, and the UpdateFrom() method, but is...
[ 0.5407681465148926, -0.11760519444942474, 0.7701539397239685, -0.00806365441530943, -0.08858975768089294, -0.12510666251182556, 0.09129101783037186, -0.41580215096473694, -0.05795181170105934, -0.5090552568435669, 0.24917958676815033, 0.7485070824623108, -0.415596604347229, 0.0090230209752...
form updates } ```
[ -0.026433324441313744, 0.18931454420089722, 0.6052453517913818, 0.08096622675657272, 0.25238922238349915, -0.3077363073825836, 0.2550734877586365, 0.15687499940395355, -0.11903399974107742, -0.7537415623664856, -0.5807564854621887, 0.560859739780426, -0.5311158895492554, -0.005527257919311...
With Regex::Replace we can use $1, $2, ... to match corresponding groups. But how can I use $1 followed by number. E.g. to replace 6 with 678? ``` Regex::Replace(text, "(6)", '$178'); ``` You need to use the alternate syntax: ``` Regex::Replace(text, "(6)", "${1}78"); ```
[ 0.06096835061907768, 0.2517417073249817, 0.4535037875175476, -0.27697107195854187, 0.05595378577709198, 0.19813117384910583, 0.18020468950271606, -0.14566956460475922, -0.23699799180030823, -0.41083329916000366, -0.3659924268722534, 0.7350403666496277, -0.5228474140167236, -0.0927416831254...
how can i reduce the file size of my flex application. its around 900kb . you can do that by implementing rsl on your flex project and splitting it into modules, for details to implement file size optimization. Check this article: [Optimize Flex SWF filesize performance loading](https://web.archive.org/web/20140723200...
[ 0.28897538781166077, -0.3550855815410614, 0.28496578335762024, -0.05840345844626427, -0.1970023363828659, -0.11431954801082611, -0.06168372556567192, -0.4742840826511383, -0.6575107574462891, -0.8034487962722778, -0.0178830623626709, 0.6030414700508118, -0.27001601457595825, -0.22364865243...
I have two tables: SupportTicket ------------- SupportTicketID SupportTicketDate SupportTicketNote ----------------- SupportTicketNoteID SupportTicketNoteDate SupportTicketID With a foreign key constraint so I don't have any unassociated Notes...in sql that constraint is working properly. On my Support...
[ 0.11723428964614868, -0.036855775862932205, 0.8623936176300049, 0.18127498030662537, -0.05181635543704033, 0.03187067434191704, 0.0005571607034653425, -0.20119982957839966, 0.12850426137447357, -0.6001119017601013, 0.4214351773262024, 0.5654041171073914, -0.3003421723842621, -0.21292838454...
which blows up of course because of the FK constraint. If I delete the constraint it will insert with the SupportTicketID of zero and then go back and do an update on the SupportTicketNote with the proper ID value...but that seems....wrong. Is there anything I might be doing in the mapping that is causing that? **UPD...
[ -0.05656008794903755, 0.18245816230773926, 0.7870638370513916, 0.28928613662719727, 0.20088355243206024, 0.3485534191131592, 0.011499053798615932, -0.42269763350486755, -0.0978262647986412, -0.6288226842880249, 0.17037446796894073, 0.14473633468151093, -0.20571842789649963, 0.1572844535112...
SupportTicketID and SupportTicket object properties): ``` <many-to-one name="SupportTicket" class="NhibernateSample.DomainModel.SupportTicket, NhibernateSample.DomainModel" column="SupportTicketId" cascade="all"/> ``` How have you mapped the parent SupportTicket property on SupportTicketNote? Are you setting t...
[ 0.3257630467414856, 0.023742197081446648, 0.9696885347366333, -0.026912862434983253, -0.027996936812996864, 0.10632038116455078, 0.08981706947088242, -0.4547962248325348, -0.17430943250656128, -0.4464426040649414, -0.1619025468826294, 0.4642154574394226, -0.18549111485481262, -0.1797628700...
note.SupportTicket = this; _notes.Add(note) } public void RemoveNote(SupportTicketNote note) { note.SupportTicket = null; _notes.Remove(note) } } ``` Edited to add: Your mapping for SupportTicketNote looks wrong. It should be many-to-one to SupportTicket and you shouldn't be m...
[ 0.09262140840291977, 0.16621580719947815, 0.9913952946662903, -0.20317994058132172, -0.2447330802679062, 0.12778113782405853, 0.2810094654560089, -0.37424251437187195, -0.1441008746623993, -0.5626352429389954, 0.00872877612709999, 0.4825255572795868, -0.34894052147865295, -0.05697105452418...
If I have the class name of the user defined object as a string how do I use it in a generic function as Type of the object ? SomeGenericFunction(objectID); If you have a string, then the first thing to do is to use `Type.GetType(string)`, or (preferably) `Assembly.GetType(string)` to get the `Type` instance. From the...
[ 0.2911449074745178, 0.03234294801950455, 0.11816933006048203, -0.1957128793001175, 0.04730440676212311, -0.1659044772386551, 0.19936297833919525, -0.2919260859489441, 0.05799787491559982, -0.42884311079978943, -0.011351564899086952, 0.5474212765693665, -0.27095669507980347, 0.2494022846221...
static void Main() { string typeName = "SomeNamespace.Foo"; int id = 123; Type type = typeof(Program).Assembly.GetType(typeName); object obj = typeof(Program).GetMethod("SomeGenericFunction") .MakeGenericMethod(type).Invoke( null, new object[] { id }); ...
[ 0.10545210540294647, -0.169691801071167, 0.17023716866970062, -0.32991456985473633, 0.34832248091697693, 0.21653085947036743, 0.5269339680671692, -0.010245062410831451, 0.0056781284511089325, -0.1686871349811554, -0.3407726287841797, 0.4831507205963135, -0.610997200012207, 0.32876145839691...
static T SomeGenericFunction<T>(int id) where T : new() { Console.WriteLine("Find {0} id = {1}", typeof(T).Name, id); return new T(); } } ```
[ 0.14222003519535065, -0.6021100878715515, 0.31359797716140747, -0.1397964060306549, 0.10949340462684631, -0.22789815068244934, 0.14274755120277405, -0.07168955355882645, 0.28638115525245667, -0.28138482570648193, -0.45919501781463623, 0.5863603949546814, -0.575341522693634, 0.1974080651998...
Is it possible to connect a socket between two mobile devices (iPhones) over the internet? I am trying to discover the IP of each device and connect directly. I know it can be done with Bonjour but that only works on local networks. I need a high speed connection between two devices over the internet. Thanks. If yo...
[ 0.42635154724121094, 0.37158358097076416, 0.0713236927986145, 0.3716203272342682, 0.23507030308246613, 0.3773628771305084, 0.2005661278963089, 0.16844357550144196, -0.4087508022785187, -0.5700035691261292, 0.180919349193573, 0.4970133900642395, -0.1946830004453659, -0.17526379227638245, ...
you have a routable IP though, it should be possible. The trick is just discovering the IP of the other device. The best way to do that would probably be to have each device register its IP with a web service when your app starts up, then query that service to find the IPs of other devices. It might get a bit tricky ...
[ 0.07741036266088486, -0.08161644637584686, 0.11987979710102081, 0.6687349677085876, 0.20438964664936066, -0.06414083391427994, -0.09400442987680435, 0.04649975523352623, -0.19587406516075134, -0.4356643855571747, 0.026346083730459213, 0.6413058638572693, -0.2966233193874359, -0.41049841046...
server (i.e. without the phones actually directly connecting to each other). This would avoid the issue of having routable IPs for the phones. As for how to bridge the sockets together - your server program would basicly work like an old-school phone switchboard operator. You'd have some kind of registration & discove...
[ 0.24116301536560059, 0.06270790845155716, 0.37357547879219055, 0.2655380964279175, -0.0872538760304451, -0.04971212148666382, 0.15918582677841187, 0.0019792981911450624, -0.35115480422973633, -0.6018365621566772, 0.2648810148239136, 0.33825236558914185, -0.27166762948036194, 0.190175592899...
to whom, your server software would connect the two together by reading from one phone's socket and writing that data to the other phone's socket.
[ 0.41963252425193787, -0.04374346137046814, 0.09886537492275238, 0.32974740862846375, 0.23911915719509125, 0.43222177028656006, -0.05450127646327019, -0.029266493394970894, -0.2859818637371063, -0.306789368391037, 0.20818568766117096, 0.4468967318534851, -0.09505127370357513, -0.09606434404...
Let's say I have a controller action defined as: ``` public ActionResult(MyModel model, string someParameter) { // do stuff } ``` I have a custom model binder for the MyModel type, and there is a form field called "SomeParameter" in the view that is not bound to the model. How does ASP.NET MVC know to pass the ...
[ 0.02588861621916294, -0.5403611660003662, 0.5496140122413635, 0.17264853417873383, -0.021795881912112236, -0.13546545803546906, 0.09312170743942261, 0.08308708667755127, -0.3162592649459839, -0.43317344784736633, -0.15027491748332977, 0.5790702104568481, -0.4044831395149231, 0.139855176210...
In my **routes.rb** file I have a number of routes. I would like to know which one got matched for any request a user may have made. For example, in routes.rb you have the following routes : ``` map.connect ":controller/:action" map.connect ":controler/:action/:id" ``` and if I have a controller named **a** and a...
[ 0.20252583920955658, -0.12334619462490082, 0.3431328237056732, -0.11537355929613113, -0.14656923711299896, 0.009662036783993244, -0.2224528193473816, -0.260698527097702, -0.38578298687934875, -0.8688715100288391, 0.3088741600513458, 0.11083074659109116, -0.4733174443244934, 0.1006673797965...
:set_where_am_i def set_where_am_i @where_am_i = "#{controller_name}/#{action_name}" end # in views/layouts/application.erb, somewhere in your html # (here I choose the <title>) <head><title>Here: <%= @where_am_i %></title> ```
[ 0.1317187249660492, 0.05645819008350372, 0.8875608444213867, -0.08405586332082748, 0.3369971215724945, -0.40751221776008606, 0.020322483032941818, -0.19769248366355896, -0.3712203800678253, -0.6177228093147278, -0.2440682202577591, 0.2236621081829071, -0.24113157391548157, 0.07565333694219...
It seems that ComboBoxes loose their selected item after their dataProvider updates, even if the same selected item is still in the dataProvider. They convert back to the first item being selected. Is there anyway to prevent this? So that if the same object is in the dataProvider it keeps the same object selected and o...
[ 0.29821690917015076, -0.4887506663799286, 0.42926517128944397, 0.3794272243976593, -0.14494380354881287, -0.017225103452801704, -0.005855680909007788, -0.2792885899543762, -0.5914313793182373, -0.5805720686912537, -0.19366134703159332, 0.5609797835350037, -0.6160653233528137, 0.20182389020...
an item to the AC, The ComboBox is updated without loosing its selectedItem. Sometimes you have to replace the dataProvider and in those cases, you have to listen for the updateComplete-event and reset the selectedItem. You can try this code: ``` <mx:Script> <![CDATA[ import mx.controls.ComboBox; ...
[ 0.1510460376739502, -0.5445113182067871, 0.37434810400009155, 0.21724458038806915, 0.09209690988063812, 0.09669402241706848, -0.0741785317659378, -0.6611736416816711, -0.24790677428245544, -0.4742680490016937, -0.3368317484855652, 0.6932659149169922, -0.41253817081451416, 0.013310161419212...
1", "Item 2", "Item 3"]); private var selectedItem:*; private var dataProvider:*; private function onChange(event:ListEvent):void { selectedItem = (event.currentTarget as ComboBox).selectedItem; } private function onUpdateComplete(event:FlexEvent):void { ...
[ 0.35049524903297424, -0.7538225650787354, 0.06461924314498901, -0.03282132372260094, 0.4537985622882843, 0.3718967139720917, 0.09361666440963745, -0.5086134672164917, -0.2862364649772644, -0.50594562292099, -0.31376710534095764, 0.3753930330276489, -0.4487369656562805, 0.2034575492143631, ...
if(dataProvider == null || cb.dataProvider != dataProvider) { if(selectedItem != null && cb.selectedItem != selectedItem) cb.selectedItem = selectedItem; if(cb.selectedIndex < 0) cb.selectedIndex = 0; dataProvider = cb.dataProvider; }
[ -0.04681911692023277, -0.17756736278533936, -0.13306619226932526, -0.05263815075159073, 0.16303987801074982, 0.1377042979001999, -0.20305104553699493, -0.5395354628562927, -0.16774632036685944, -0.35110872983932495, -0.15817713737487793, 0.0458172969520092, -0.3941490650177002, 0.498674124...
} private function extendDP():void { dp.addItem("Item " + (dp.length +1)); var ac:ArrayCollection = new ArrayCollection(dp.source); dp = ac; } private function reduceDP():void { dp.removeItemAt(dp.length -1);
[ -0.01923166587948799, -0.7013079524040222, 0.35867786407470703, -0.3589332401752472, -0.01301899179816246, 0.4163798987865448, 0.10202781856060028, -0.4978560209274292, -0.2030487060546875, -0.16948726773262024, -0.3756992220878601, 0.3949570953845978, -0.541951060295105, -0.02979447133839...
var ac:ArrayCollection = new ArrayCollection(dp.source); dp = ac; } ]]> </mx:Script> <mx:VBox> <mx:ComboBox dataProvider="{dp}" change="onChange(event)" updateComplete="onUpdateComplete(event)" /> <mx:Button label="Extend dp" click="extendDP()" /> <mx:Button label="Reduce dp" click=...
[ -0.12496763467788696, -0.5971851348876953, 0.5978797674179077, -0.25485143065452576, 0.04171851649880409, 0.2750254273414612, -0.12296196073293686, -0.7023497223854065, -0.28810909390449524, -0.563041627407074, -0.3966729938983917, 0.2633894979953766, -0.45722299814224243, -0.1695505678653...
I am writing a C++/MFC application that will use Microsoft Access to store data. I hope using it will suit my purpose : small, lightweight way to keep application's data. the question i'm asking myself is : if I use Access as DB, will the client's machine be required to install Microsoft Access to use my software ? t...
[ 0.466790109872818, 0.48631551861763, 0.1704174280166626, 0.07109393179416656, -0.057290006428956985, -0.07545697689056396, -0.050177961587905884, -0.07863827049732208, -0.016567865386605263, -0.6575682163238525, 0.07507248967885971, 0.2407861351966858, -0.2624680995941162, 0.47879821062088...
to use ActiveX to embed Access UI inside your application, they need to have full Access installed.
[ -0.015567009337246418, -0.0292670801281929, 0.6334611177444458, 0.14713071286678314, 0.08497295528650284, -0.1942884474992752, 0.06929181516170502, 0.17447428405284882, -0.06325951218605042, -1.0659106969833374, -0.4557007849216461, 0.5483786463737488, -0.2557397186756134, -0.0731854364275...
I have this on my web.config file: ``` <authentication mode="Forms"> <forms loginUrl="login.aspx" defaultUrl="Venues.aspx" /> </authentication> <authorization> <deny users="?" /> <allow users="*" /> </authorization> ``` I only want to allow authenticated users to my pages. The problem is, t...
[ 0.4893461763858795, 0.3059924244880676, 0.5254744291305542, -0.13392439484596252, -0.3096325993537903, -0.5053942799568176, 0.4535990059375763, -0.15066871047019958, -0.2809080183506012, -0.8580194711685181, 0.1614992618560791, 0.2638966739177704, -0.17781302332878113, 0.1558351367712021, ...
I only have VS 2008 and no IIS. Is it possible for me to allow access to the `imgs` dir for the anonymous user in the web.config? You could allow certain directories (directly under `<configuration>`): ``` <location path="images"> <system.web> <authorization> <allow users="?"/> </autho...
[ 0.1616450548171997, -0.10221278667449951, 0.4430220425128937, 0.17456619441509247, -0.30703872442245483, -0.24915537238121033, 0.2592242360115051, -0.15288357436656952, -0.2050209790468216, -0.5985940098762512, 0.015723250806331635, 0.651493489742279, -0.14202775061130524, 0.04943016171455...
<allow users="?"/> </authorization> </system.web> </location> ```
[ 0.3857530951499939, 0.24267235398292542, 0.2299148440361023, 0.12202457338571548, 0.4738331437110901, -0.5043428540229797, 0.2707021236419678, -0.18286877870559692, -0.25814759731292725, -0.4837970733642578, -0.558757483959198, 0.40952038764953613, -0.2566303014755249, 0.3476144075393677, ...
I was trying to look through some very old FORTRAN code and came across the following statement: ``` IF (XKJ.GT.ACCY) THEN ``` I looked through the entire code and didn't find a declaration for '**ACCY**'. I am assuming it is a built-in variable/constant/function, but wasn't able to find the definition. I 'googled' ...
[ -0.015768565237522125, 0.46426117420196533, 0.11223836243152618, -0.038972094655036926, -0.15273818373680115, 0.04261048510670662, -0.07539912313222885, 0.2097962200641632, -0.47707685828208923, -0.07493859529495239, 0.03575807809829712, 0.4694804847240448, -0.2320348471403122, 0.158367201...
representation of some floating point numbers. In Fortran variables don't have to be declared unless you use a compiler option (or IMPLICIT statement) to turn this feature on. Variables that start with A-H and O-Z are automatically consider REAL variables (I-N are integers). The compiler in question may or may not zero...
[ 0.04145890474319458, 0.09037798643112183, 0.07087541371583939, 0.15446928143501282, -0.18581688404083252, -0.010190044529736042, 0.38366520404815674, 0.1734323501586914, -0.34302985668182373, -0.4161037802696228, -0.31629660725593567, 0.2678556740283966, -0.27710363268852234, -0.1533602476...
An application I have recently started work on has to register two dll's, "because of ActiveX". This makes it difficult to have multiple version of the application present on your machine - say the installed product version, and Debug and Release versions of the latest development sources. What are the alternatives...
[ 0.5343383550643921, 0.0802140086889267, 0.5125402212142944, -0.01580626517534256, -0.05841602757573128, -0.09583783894777298, -0.10480266809463501, -0.15741854906082153, -0.3134574890136719, -0.7199158072471619, -0.10218757390975952, 0.4360083043575287, -0.34178465604782104, 0.206986919045...
in a manifest file instead of the registry. So for MyApp.exe, create MyApp.exe.manifest with the following (using your DLL file name and CLSID): ``` <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity type="win32" name="M...
[ 0.05383329093456268, -0.08053469657897949, 0.6836395859718323, -0.06376253813505173, -0.1230953112244606, 0.078016497194767, -0.09615830332040787, -0.1314661204814911, -0.37589484453201294, -0.7354597449302673, -0.01747233234345913, 0.5012263059616089, -0.31554344296455383, 0.0699178874492...
without using registry. // // USAGE: // HMODULE hModule = 0; // CComPtr<IMyActiveX> pActiveX; // if(SUCCEEDED(LoadInterface("C:\\Debug\\MyActiveX.dll", CLSID_MyActiveX, IID_IMyActiveX, (void**)&pActiveX, &hModule))) // { // // TODO: use pActiveX // // // caller must call FreeLibrary(hModule) when ...
[ -0.2274813950061798, -0.16432364284992218, 1.0958296060562134, -0.15751774609088898, 0.08684457838535309, 0.04766898229718208, 0.3904546797275543, -0.8408114314079285, -0.14406786859035492, -0.7467454075813293, -0.31339550018310547, 0.8696475028991699, -0.42990627884864807, -0.015525684691...
== 0) return E_FAIL; HREUSLT hr = E_POINTER; CComPtr<IClassFactory> classFactory; LPDLLGETCLASSOBJECT pGetClassObject = (LPDLLGETCLASSOBJECT)GetProcAddress(hModule, "DllGetClassObject"); if(pGetClassObject) { hr = pGetClassObject(rClsid, IID_IClassFactory, (void**)&classFactory); if...
[ -0.3420194089412689, -0.11935719102621078, 1.206200122833252, -0.2276674062013626, 0.019687945023179054, 0.18319858610630035, 0.5773579478263855, -0.8568339347839355, -0.14492204785346985, -0.6996092200279236, -0.4656658172607422, 0.5811777114868164, -0.2637864947319031, 0.300286203622818,...
*pModule = hModule; return S_OK; } } } // unload library on error if(hModule) { FreeLibrary(hModule); } return hr; } ```
[ 0.1746458113193512, 0.07580294460058212, 0.42940035462379456, 0.032095540314912796, 0.3457604646682739, 0.0047151921316981316, 0.6325564980506897, -0.6207215785980225, -0.2133849710226059, -0.448123574256897, -0.3971741795539856, 0.7578786611557007, -0.5808674097061157, 0.31158560514450073...
Currently in my PHP scripts, I redirect the user to a custom 404 not found error page when he/she tries to access content that doesn't exist or doesn't belong to that user. Like so: ``` header('Location: http://www.mydomain.com/error/notfound/'); exit; ``` I realize the above header() call sends a 302 redirect statu...
[ 0.12330500036478043, 0.20509852468967438, 0.2705861032009125, 0.18512418866157532, -0.05598931387066841, -0.1310219168663025, 0.5435790419578552, 0.136858731508255, -0.21597185730934143, -0.7395753860473633, -0.08075615018606186, 0.4825356900691986, -0.20040619373321533, 0.1380582898855209...
Our client (a winforms app) includes a file-browser. I'd like the user to be able to open the selected file using the shell's default handler. How do I do that? I've read that I should use the Win32 API rather than the registry, but I'd prefer a solution that involves only .NET. EDIT: Newer, simpler answer. You can in...
[ 0.3316437005996704, -0.02065618894994259, 0.40837255120277405, -0.08236243575811386, 0.19931410253047943, -0.008334869518876076, 0.04380853846669197, -0.0605173259973526, 0.11150986701250076, -0.8695507049560547, -0.09145967662334442, 0.645350992679596, -0.06837845593690872, 0.168159425258...
does not need to represent > an executable file. It can be of any > file type for which the extension has > been associated with an application > installed on the system. For example > the file name can have a .txt > extension if you have associated text > files with an editor, such as Notepad, > or it can have...
[ 0.18594463169574738, -0.11358116567134857, 0.5032207369804382, 0.06953297555446625, -0.03158305957913399, -0.12959064543247223, 0.10824158787727356, 0.0005023046978749335, -0.15546242892742157, -0.7936166524887085, -0.3630577027797699, 0.4032157361507416, -0.4512183964252472, 0.09047748893...
with or without > the .exe extension, the .exe extension > is optional in the fileName parameter. > For example, you can set the fileName > parameter to either "Notepad.exe" or > "Notepad". EDIT: Original, complicated answer: If you use `Process.Start` with the file as the "executable" and specify `UseShellExecu...
[ 0.5489559769630432, -0.0904863253235817, 0.45344340801239014, -0.15008270740509033, 0.2920142114162445, 0.12613002955913544, 0.24873937666416168, -0.2845636010169983, -0.05887359008193016, -0.6602934002876282, -0.32663270831108093, 0.7347424626350403, -0.25235670804977417, 0.32063966989517...
} } ``` That opens test.txt in Notepad. In fact, `UseShellExecute=true` is the default, but as it's definitely required I like to specify it explicitly to make that clearer to the reader.
[ 0.5723996162414551, 0.29157382249832153, -0.0028535956516861916, -0.18011967837810516, 0.12254095822572708, -0.4335462152957916, 0.3700968623161316, 0.2212080955505371, 0.2987561523914337, -0.3315310776233673, -0.12765397131443024, 0.6787639260292053, -0.0600765198469162, 0.048370450735092...
Is it possible (if so how) to find out what word the cursor/mouse is over when it is moving over a < mx:Text > component? So for example as the user moves the mouse along a sentence (inside text component), each word will highlight as they go (I know you can highlight while pressing the mouse button down - but that not...
[ 0.007208855822682381, -0.07306785881519318, 0.42042669653892517, 0.10487019270658493, -0.1630019098520279, -0.1761651337146759, -0.003721984103322029, 0.16154836118221283, -0.12636956572532654, -0.8537193536758423, -0.1002933457493782, 0.47087499499320984, -0.27376589179039, -0.01740609481...
encoding="utf-8"?> <mx:Text xmlns:mx="http://www.adobe.com/2006/mxml" mouseMove="onMouseMove(event)" initialize="init()"> <mx:Script> <![CDATA[ // Text formats private var normalTextFormat:TextFormat; private var highlightTextFormat:TextFormat; // Saved word...
[ -0.3269135355949402, -0.1872560679912567, 0.4855845868587494, -0.1725200116634369, -0.19126464426517487, 0.3196336627006531, 0.24526341259479523, -0.2286139577627182, -0.05081336945295334, -0.5662660002708435, -0.6272786855697632, 0.4368341267108917, -0.480732798576355, -0.1907077580690384...
private var wordEndIndex:int = -1; private function init():void { normalTextFormat = textField.getTextFormat(); normalTextFormat.color = 0; highlightTextFormat = textField.getTextFormat();
[ -0.23482242226600647, -0.5210861563682556, 0.34115028381347656, -0.2894257605075836, 0.060826562345027924, 0.2767907381057739, 0.6219399571418762, 0.088386170566082, 0.2727855145931244, -0.635183572769165, -0.5673792362213135, 0.6786922216415405, -0.5221902132034302, 0.0050897905603051186,...
highlightTextFormat.color = 0xFF0000; } private function onMouseMove(event:MouseEvent):void { // Clear previous word highlight textField.setTextFormat(normalTextFormat, wordStartIndex, wordEndIndex); var charIndexUnderMouse:int =
[ -0.27014198899269104, -0.4922950267791748, 0.3982289135456085, -0.22120043635368347, -0.04807773604989052, 0.12403982877731323, 0.4358662962913513, 0.012593476101756096, -0.03187195211648941, -0.4858763515949249, -0.44402042031288147, 0.5645003914833069, -0.31088921427726746, 0.05417763814...
textField.getCharIndexAtPoint(event.localX, event.localY); wordStartIndex = charIndexUnderMouse; wordEndIndex = charIndexUnderMouse; // Find start of word while (text.charAt(wordStartIndex) != " " && wordStartIndex > 0) {
[ -0.4751555025577545, -0.07533742487430573, 0.3775869309902191, -0.46777400374412537, 0.0931742936372757, 0.12637878954410553, 0.7855813503265381, 0.3208145499229431, 0.12187318503856659, -0.5518369078636169, -0.4892284870147705, 0.7764526009559631, -0.20556563138961792, 0.23438891768455505...
wordStartIndex--; } // Find end of word while (text.charAt(wordEndIndex) != " " && wordEndIndex < text.length) {
[ -0.30558863282203674, -0.060382649302482605, 0.5463228225708008, -0.3454131782054901, 0.011899489909410477, 0.2735031545162201, 0.7842332124710083, -0.050900086760520935, -0.017241748049855232, -0.40793904662132263, -0.3557389974594116, 0.6112699508666992, -0.0747637152671814, 0.4834724962...
wordEndIndex++; } // Highlight character textField.setTextFormat(highlightTextFormat, wordStartIndex, wordEndIndex); } ]]> </mx:Script> </mx:Text> ``` It works by accessing methods of the TextField object inside the
[ -0.2414727509021759, -0.21105548739433289, 0.5704842209815979, -0.25644275546073914, -0.12733763456344604, 0.07056651264429092, 0.21456851065158844, -0.12416836619377136, 0.149362251162529, -0.8483459949493408, -0.3513641953468323, 0.30258774757385254, -0.3323461711406708, -0.0054248264059...
Text component, finding the character index under the mouse coordinates and then finding the word the character belongs to. This is a quick example, you probably need to make it more elaborate for real world use.
[ -0.3183010220527649, -0.04274119809269905, 0.4228360950946808, 0.2823346257209778, -0.10860422253608704, -0.2236662656068802, -0.021820776164531708, 0.24863113462924957, 0.0641997680068016, -0.4988989531993866, -0.19284000992774963, 0.6021206378936768, -0.14205799996852875, -0.269911289215...
I'm writing BNF for JavaScript which will be used to generate a lexer and a parser for the language. However, I'd like some ideas on how to design the for-loop. Here is the simplified version of my current BNF: ``` [...] VarDecl. Statement ::= "var" Identifier "=" Expr ";" ForLoop. Statement ::= "for" "(" Expr ";" Exp...
[ 0.32288312911987305, 0.27772966027259827, 0.4696102738380432, -0.5602601170539856, -0.23910312354564667, -0.015052098780870438, 0.3430844843387604, -0.3377546966075897, -0.10473700612783432, -0.43404245376586914, 0.02193639427423477, 0.5772467851638794, -0.6496213674545288, -0.169429212808...
x = 3; [...]; [...]) ``` This is because a variable declaration is not an expression. What are your ideas on how to solve this? I can think of a few ways, but I don't want to get in the way of your own thoughts, so I won't mention them here. There are a few examples over the net, in an [ANTLR ECMAScript grammar](htt...
[ 0.03334028273820877, 0.2018146812915802, 0.41331449151039124, -0.2920599579811096, -0.09133255481719971, -0.04561835527420044, 0.3361111581325531, -0.47130879759788513, -0.11808795481920242, -0.13860583305358887, -0.16162966191768646, 0.5410184264183044, -0.5121296048164368, 0.004779990762...
RPAREN statement | leftHandSideExpression 'in' expression RPAREN statement | 'var' variableDeclarationNoln 'in' expression RPAREN statement ) ; ```
[ -0.32110562920570374, -0.05919142812490463, 0.5090492367744446, -0.35471904277801514, -0.19985783100128174, 0.21931426227092743, 0.5460294485092163, -0.4134030342102051, 0.14548616111278534, 0.37046822905540466, -0.39805763959884644, 0.8732722401618958, -0.40552085638046265, 0.241622209548...
[Cofundos](http://cofundos.org/) is a project where you can pay for tasks to be completed in open-source programs. If a developer solves this task, he will earn the money. Is this a good way to push open-source software? No. Joel Spolsky has [talked](http://www.youtube.com/watch?v=NWHfY_lvKIQ) about the phenomenon of ...
[ 0.7776515483856201, 0.052987243980169296, -0.10604376345872879, 0.27344247698783875, 0.22333024442195892, -0.2702736556529999, -0.09070538729429245, 0.09026571363210678, -0.35038426518440247, -0.1389075219631195, 0.019728325307369232, 0.10550660640001297, -0.01617211289703846, -0.220052644...