text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I'm just wondering how the [Vala project](http://en.wikipedia.org/wiki/Vala_(programming_language)) is coming along. I'm not sure if this will be a great new technology or just one that will fall by the wayside. Does anyone know how many people are working on this project and if I can contribute (writing tutorials, rep...
[ 0.9088185429573059, 0.29480406641960144, -0.196492537856102, 0.11099988967180252, -0.014734403230249882, -0.2477327138185501, 0.1786097288131714, 0.4628353714942932, -0.22498819231987, -0.5310888886451721, -0.03697145730257034, 0.5762258768081665, 0.15775151550769806, 0.23162876069545746, ...
I don't program for embedded devices, but I imagine with something like this opens up c# and all the benefits it brings to a different class of platform. That's gotta generate some interest.
[ 0.532043993473053, 0.28654375672340393, -0.10381785780191422, 0.20411521196365356, 0.20870815217494965, -0.16820113360881805, -0.017680048942565918, 0.5453883409500122, -0.06698407232761383, -0.23463836312294006, 0.18001818656921387, 0.7495885491371155, 0.1337268203496933, -0.0981658846139...
When using the [jQueryUI](http://www.jqueryui.com/home) samples on the website ([theme browser](http://www.jqueryui.com/themeroller)) things look great. But, when I put the code and theme into my application, the sizing is way out of whack (I'm trying to utilize the Redmond theme). Any ideas as to why these samples lo...
[ 0.19880034029483795, -0.05210601165890694, 0.45824775099754333, 0.041404739022254944, -0.3200833797454834, 0.19082388281822205, -0.11172456294298172, -0.22618764638900757, -0.4007648527622223, -0.659775972366333, 0.027192430570721626, 0.2620446979999542, -0.04258153587579727, 0.01298883650...
$(function() { $('#<%= txtDateSample.ClientID %>').datepicker({ showButtonPanel: true, showOn: 'button', buttonImage: '../Graphics/Icons/calendar.png', buttonImageOnly: true }); }); </script> ``` **Firebug View of Div:** ``` <div id="ui-datepicker-d...
[ 0.023075563833117485, -0.15217839181423187, 0.774672269821167, -0.3120655119419098, 0.02339586615562439, -0.009352216497063637, 0.22821196913719177, -0.133949413895607, 0.08982232213020325, -0.6392298340797424, -0.3204500675201416, 0.5767158269882202, -0.2513984441757202, -0.00095742597477...
inadvertently affecting the calendar div. Get Firebug and check out what styles are being applied to the calendar. Then edit the theme to override anything your styles are doing. **EDIT:** The part you are looking for is not the HTML generated, although that is important, it is more of what styles are actually being ...
[ 0.39339208602905273, -0.11290650814771652, 0.6526785492897034, 0.017781460657715797, -0.16473229229450226, -0.24993588030338287, 0.32586538791656494, -0.08039101213216782, -0.4714619517326355, -0.6062089204788208, -0.006077740341424942, 0.2670789361000061, -0.28182169795036316, -0.15740980...
them by making them more specific and your calendar should be good to go.
[ 0.771327555179596, 0.2887587547302246, 0.23720954358577728, 0.09074584394693375, 0.10039770603179932, -0.11421447992324829, -0.03816114738583565, 0.2997837960720062, -0.31061306595802307, -0.6307975649833679, 0.23071277141571045, 0.5009797215461731, 0.15123167634010315, -0.1082828193902969...
I'm trying to figure out how to give a worst case time complexity. I'm not sure about my analysis. I have read nested `for` loops big O is `n^2`; is this correct for a `for` loop with a `while` loop inside? ``` // A is an array of real numbers. // The size of A is n. i,j are of type int, key is // of type real. Proce...
[ -0.025008980184793472, -0.01755470037460327, -0.0637725219130516, -0.10406764596700668, 0.032067835330963135, 0.1774323582649231, 0.27953559160232544, -0.3904101550579071, -0.4560741186141968, -0.3805173933506012, -0.0579320453107357, 0.2813454568386078, -0.36921748518943787, 0.11931397765...
A[ j ] i = j-1 while i>0 and A[i]>key { A[i+1] = A[i] i=i-1
[ -0.08278748393058777, 0.06274212896823883, -0.13539065420627594, -0.44243544340133667, -0.15496911108493805, 0.1979587972164154, 0.661842942237854, -0.4095616042613983, 0.16204328835010529, 0.0012835963862016797, -0.28003591299057007, 0.41070470213890076, -0.26560503244400024, 0.0177258457...
} A[i+1] = key } ``` so far I have: ``` j=2 (+1 op) i>0 (+n ops) A[i] > key (+n ops) so T(n) = 2n+1? ``` But I'm not sure if I have to go inside of the `while` and `for` loops to analyze a worse case time complexity... Now I have to prove that it is tightly bound, that is Big t...
[ 0.07302077859640121, -0.1718139499425888, 0.05278307572007179, -0.2214399129152298, 0.1513286828994751, -0.08603432029485703, 0.2642999589443207, -0.3805248737335205, -0.4390217661857605, -0.32871484756469727, -0.0853603407740593, 0.6525614261627197, -0.3061770498752594, 0.0900428295135498...
O of `n^2`. Is this also true for Big Theta? If not how would I go about finding Big Theta?! \*\*C1= C sub 1, C2= C sub 2, and no= n naught all are elements of positive real numbers To find the `T(n)` I looked at the values of `j` and looked at how many times the while loop executed: ``` values of J: 2, 3, 4, ... ...
[ -0.18913587927818298, -0.004592418670654297, 0.26521173119544983, -0.3966670036315918, 0.03527376428246498, 0.39526206254959106, 0.3112998306751251, -0.3145070970058441, -0.3226340711116791, -0.24377231299877167, -0.1710771769285202, 0.6279040575027466, -0.29150304198265076, 0.049462310969...
tightly bounded by `n^2`. That is `n(n+1)/2= θ(n^2)` Scratch Work: ``` Find C1, C2, no є R+ such that 0 ≤ C1(n^2) ≤ (n(n+1))/2 ≤ C2(n^2)for all n ≥ no To make 0 ≤ C1(n) true, C1, no, can be any positive reals To make C1(n^2) ≤ (n(n+1))/2, C1 must be ≤ 1 To make (n(n+1))/2 ≤ C2(n^2), C2 must be ≥ 1 ``` PF: ...
[ -0.4852019250392914, -0.030206352472305298, 0.5131031274795532, -0.10043010860681534, 0.23777925968170166, 0.15605732798576355, 0.12992598116397858, -0.663081705570221, -0.06453142315149307, -0.3596242070198059, -0.17099858820438385, 0.6144766807556152, -0.2190597653388977, 0.0846426263451...
n^2/2 n^2/2≥ no^2/2 ⇒no^2/2≥ 0 1/2 > 0 Therefore C1(n^2) ≥ 0 is proven true! 2. show that C1(n^2) ≤ (n(n+1))/2 is true C1(n^2) ≤ (n(n+1))/2 n^2/2 ≤ (n(n+1))/2 n^2 ≤ n(n+1) n^2 ≤ n^2+n 0 ≤ n This we know is true since n ≥ no = 1 Therefore C1(n^2) ≤ (n(n+1))/2 is proven true! 3. Show that (n(...
[ -0.07453697174787521, 0.4321413040161133, 0.3289979100227356, -0.3107495605945587, -0.19353646039962769, 0.48602065443992615, 0.6533543467521667, -0.9122359156608582, -0.35605108737945557, -0.19869081676006317, -0.22878044843673706, 0.4756280183792114, 0.1468905359506607, -0.12078062444925...
Also, we know this to be true since n ≥ no = 1 Hence by 1, 2 and 3, θ(n^2 )= (n(n+1))/2 is true since 0 ≤ C1(n^2) ≤ (n(n+1))/2 ≤ C2(n^2) for all n ≥ no Tell me what you thing guys... I'm trying to understand this material and would like y'alls input! **You seem to be implementing the [insertion sort algorithm](ht...
[ 0.5133206248283386, -0.1333126425743103, -0.25648021697998047, -0.12330430746078491, 0.007456651888787746, -0.13570019602775574, 0.13032811880111694, -0.16370351612567902, -0.4227544665336609, -0.39224234223365784, 0.019882885739207268, 0.3053950071334839, -0.3963083326816559, 0.0578984133...
are (worse cases): ``` for j=2 to length[A] i=j-1 while i > 0 /*action*/ i=i-1 ``` The outer loop is O(N), because it directly relates to the number of elements. Notice how your inner loop depends on the progress of the outer loop. That means that (ignoring off-by-one issues) the inner and o...
[ 0.1095459908246994, 0.12911972403526306, 0.06759569048881531, -0.4691309630870819, 0.02019333653151989, 0.07272832840681076, 0.2550505995750427, -0.5644606947898865, -0.36432015895843506, -0.5036752223968506, -0.14832556247711182, 0.17359980940818787, -0.3511238396167755, 0.052715096622705...
2 4 3 N N-1 ----- ----- total (N-1)*N/2 ``` So the total number of times that `/*action*/` is encountered is (N2 - N)/2, which is O(N2).
[ -0.18465101718902588, 0.21582771837711334, 0.1766788512468338, -0.596831738948822, -0.2195553332567215, 0.3247377276420593, 0.29534661769866943, -0.5316869616508484, -0.5126686096191406, -0.4026297330856323, -0.3797225058078766, 0.31639185547828674, -0.2969004511833191, -0.0102143231779336...
I've been playing with PyWinAuto today and having fun automating all sorts GUI tests. I was wondering if it is still state of the art or if there might be something else (also free) which does windows rich client automation better. pywinauto is great because it's Python. Perhaps a bit more full featured is [AutoIT](ht...
[ 0.08659710735082626, -0.17989079654216766, 0.5155574679374695, 0.10153856873512268, -0.1355319768190384, 0.04923661798238754, 0.01447646040469408, 0.2586430013179779, -0.14597827196121216, -0.42620977759361267, 0.0685383677482605, 0.9401902556419373, -0.2469351440668106, -0.343199044466018...
where pywinauto is a bit harder to use than AutoIt, and seems a little less polished. One example is automating Inno Setup programs. The Inno Setup "setup.exe" program launches a separate application that actually performs the install, and it's a pain to track this down with pywinauto, but AutoIt makes it easy.
[ 0.4998484253883362, -0.10758479684591293, -0.07831411063671112, 0.11112387478351593, 0.1268840879201889, -0.5193055868148804, 0.048547353595495224, -0.24927645921707153, -0.05635702982544899, -0.6345432996749878, -0.2518039643764496, 1.0290852785110474, -0.39246439933776855, -0.54857909679...
Why is it not possible to do something equivalent to this in PHP: ``` (Array(0))[0]; ``` This is just for sake of argument, but it seems strange it does not allow access of anonymous objects. I would have to do something like the following: ``` $array = Array(0); $array[0]; ``` Any ideas why this is the behavior ...
[ 0.24966563284397125, 0.11621130257844925, 0.016527829691767693, -0.06971962004899979, -0.31015223264694214, -0.35466068983078003, 0.25747615098953247, -0.04331972077488899, -0.19513040781021118, -0.11008364707231522, 0.21549837291240692, 0.4998001456260681, -0.4427659809589386, 0.048376027...
- it's not actually created and readable/accessible until the next line. I *hope* this somewhat accurately sums up what I only vaguely remember reading many months ago.
[ 0.3651011884212494, -0.010710530914366245, 0.4085794687271118, 0.27785393595695496, -0.10690400749444962, -0.08017248660326004, 0.04707344248890877, 0.5458760857582092, 0.026268187910318375, -0.4978135824203491, -0.08948913961648941, -0.1291581392288208, 0.1174052357673645, 0.2706876397132...
I have inherited a flex project which is sadly not documented. Im looking for a documentation generation tool / class diagram generater or something like that which works with actionscript. There are around a 1000 class files and I don't have the time to step through all the code in debug. I have tried a few tools lik...
[ 0.274421364068985, -0.1250074803829193, -0.11623287945985794, 0.05493413656949997, -0.2909108102321625, -0.17635075747966766, 0.16509723663330078, 0.12459272891283035, -0.22437237203121185, -0.7695369124412537, 0.14963285624980927, 0.5811787843704224, -0.26627200841903687, 0.06333068013191...
Not sure the guy ever found out, I'm interested about the matter as well. [Static Actionscript code analysis?](https://stackoverflow.com/questions/548830/actionscript-code-analysis/549225#549225)
[ 0.15514196455478668, -0.09800823032855988, 0.012195514515042305, 0.3008256256580353, 0.30135682225227356, -0.030066238716244698, 0.3268066942691803, 0.16149264574050903, -0.6294841766357422, -0.03184045851230621, -0.07531429082155228, 0.4855077862739563, 0.026408299803733826, -0.0256170462...
Can someone please explain "re-usable structures" for me? I was working on making some db objects in php, but was told I was using too much processing from the computer cause I made stuff to complicated with the below objects: My DB objects: ``` $db = new Database; $db->db_connect(); $post_content = new DbSelect; $p...
[ 0.09434834122657776, 0.22582806646823883, 0.3729393780231476, -0.01537370029836893, -0.2514480948448181, -0.12612953782081604, 0.31993821263313293, -0.4715842306613922, 0.07194851338863373, -0.6733419895172119, -0.23097774386405945, 0.16068999469280243, -0.4757067561149597, 0.4361942708492...
id WHERE id=1 ORDER created'; mysql_close(); ``` So to reiterate my questions: 1. A quick explanation of re-usable structures? 2. why is the first method using objects "wrong"? please note: I'll be googling this as well as hoping for feedback I know there a "tools" like Zend and oth...
[ 0.3071873188018799, 0.3092230558395386, -0.025223495438694954, -0.09215185046195984, -0.48345857858657837, -0.25888440012931824, 0.2576269507408142, -0.23642663657665253, 0.046818509697914124, -0.7053588032722473, 0.1204805076122284, 0.6083993911743164, -0.5313448309898376, 0.2030080407857...
a trivial subject, and there are many ways it can go wrong. Essentially, you want to try to make logical indepedent objects in your application such that you can swap them out for other modules with the same interface, or reuse them in future projects. In your database example, look at PEAR::MDB2. PEAR::MDB2 abstracts...
[ 0.20645970106124878, 0.05090486258268356, -0.12189453095197678, 0.3030448257923126, -0.12074221670627594, 0.07660079002380371, -0.08339422196149826, 0.30148348212242126, -0.2836624085903168, -0.4372994005680084, -0.1232907697558403, 0.2723449766635895, -0.47648337483406067, 0.0624852851033...
to change any of your code to make it work. You only need to swap out the database layer for another. (Pear::MDB2 makes this as simple as changing your db connect string) May I suggest reading Code Complete by Steve McConnell. There's a whole chapter on Classes. While the examples are primarily C++, the concepts can b...
[ 0.5276491045951843, 0.1223083958029747, -0.7136825323104858, 0.17960606515407562, -0.0833088606595993, 0.033583544194698334, 0.41544872522354126, -0.02652237005531788, -0.13861803710460663, -0.5789278149604797, -0.04722059145569801, 0.279078871011734, -0.2536023259162903, -0.14508540928363...
I'm writing a program that will be monitoring select files and directories for changes. Some of the files are world writeable, some owner, some group. What I need to do is be able to figure out the last person to modify (not just access) a file. Somehow I thought this would be simple, given that we know the inode of t...
[ 0.47771820425987244, 0.16919372975826263, 0.5335684418678284, 0.1822836548089981, 0.34417083859443665, -0.14540822803974152, 0.15011940896511078, 0.010545697063207626, -0.29860222339630127, -0.5748699307441711, 0.11448341608047485, 0.2542073726654053, -0.06870491802692413, 0.47148573398590...
to give me on the topic. Any help is appreciated. I'm writing the program in C. **Edit:** I need to be able to do this after the PID of whatever program modified the file is long gone. If you are on a 2.6 kernel, you can take advantage of kernel's auditd daemon. [Check this URL out](http://www.cyberciti.biz/tips/lin...
[ 0.626563549041748, -0.115939661860466, 0.3706202805042267, 0.17555992305278778, 0.06837335228919983, -0.19590021669864655, 0.3702807128429413, 0.4714023172855377, -0.20970827341079712, -0.911811113357544, -0.060388218611478806, 0.7045744061470032, 0.011333102360367775, -0.037947878241539, ...
*edit* ------ So based on the answers so far (thanks for taking your time) I'm getting the sense that I'm probably NOT looking for a Normal Distribution function. Perhaps I'll try to re-describe what I'm looking to do. Lets say I have an object that returns a number of 0 to 10. And that number controls "speed". Howe...
[ 0.2795746326446533, -0.11109162867069244, 0.4790166914463043, 0.21859535574913025, -0.16463632881641388, 0.1440286636352539, 0.40024831891059875, 0.18588271737098694, -0.6080892086029053, -0.6181606650352478, 0.11004000157117844, 0.6422109007835388, 0.23494285345077515, 0.02399161458015442...
something from math class. I'm trying to figure out how to write a function in obj-C where I define the boundries, ex (0 - 10) and then if x = foo y = ? .... where x runs something like 0,1,2,3,4,5,6,7,8,9,10 and y runs 0,1,2,3,4,5,4,3,2,1,0 but only on a curve Something like the attached image. I tried googling fo...
[ 0.3325437307357788, 0.1261361837387085, 0.4491640329360962, 0.18457767367362976, -0.0810597836971283, 0.3971448838710785, 0.1789742410182953, 0.2965163290500641, -0.15461207926273346, -0.23573321104049683, 0.2388288527727127, 0.3149344027042389, -0.23302240669727325, 0.34196868538856506, ...
mathematical functions, I'd love to check them out. TIA!!! *-added* I'm not looking for a random number, I'm looking for.. ex: if x=0 y should be 0, if x=5 y should be 5, if x=10 y should be 0.... and all those other not so obvious in between numbers [alt text http://dizy.cc/slider.gif](http://dizy.cc/slider.gif)...
[ -0.0002724359801504761, -0.14937250316143036, 0.17787426710128784, 0.06027042865753174, -0.1027730256319046, 0.018820887431502342, -0.015640700235962868, -0.10326255857944489, -0.27138033509254456, -0.48432058095932007, 0.13449905812740326, 0.3843081295490265, -0.36643052101135254, -0.0088...
in Python, which should be very easy to translate to any other language): ``` def quarticRamp(x, b=10, peak=5): if not 0 <= x <= b: raise ValueError #or return 0 return peak*x*x*(x-b)*(x-b)*16/(b*b*b*b) ``` Parameter `b` is the upper bound for the region you want to have a slope on (10, in your exa...
[ -0.09393250197172165, -0.19356027245521545, 0.4712858200073242, -0.11844807863235474, -0.3377276360988617, -0.13830360770225525, 0.1676594465970993, -0.17292284965515137, -0.42539575695991516, -0.2510959804058075, -0.0711323544383049, 0.6146009564399719, -0.1257985234260559, -0.24567128717...
nice to use in a couple of special applications that don't happen to matter at all for you): ``` def quadraticSplineRamp(x, a=0, b=10, peak=5): if not a <= x <= b: raise ValueError #or return 0 if x > (b+a)/2: x = a + b - x z = 2*(x-a)/b if z > 0.5: return peak * (1 - 2*(z-1)*...
[ -0.05923027545213699, -0.2501654326915741, 0.5287967324256897, -0.08057700097560883, -0.17504586279392242, -0.3064759075641632, 0.21444706618785858, -0.23096328973770142, -0.22466164827346802, -0.2990512549877167, -0.16353356838226318, 0.8154351711273193, -0.3171107769012451, -0.2069046199...
return peak * (2*z*z) ``` This is similar to the other function, but takes a lower bound `a` (0 in your example). The logic is a little more complex because it's a somewhat-optimized implementation of a piecewise function. The two curves have slightly different shapes; you probably don't care what the exact shape is...
[ -0.12602941691875458, -0.4958513677120209, 0.3445274829864502, 0.047231487929821014, -0.42819473147392273, 0.1606871336698532, 0.054090555757284164, -0.1759316623210907, -0.0513017363846302, -0.3838876187801361, 0.07271837443113327, 0.7688361406326294, -0.09464073181152344, -0.132868468761...
I am not entirely sure if this is possible or not but so far you guys here at SO were always able to help me out so here it goes: The following website: [www.bgarchitect.co.nz](http://www.bgarchitect.co.nz) Has a navigation that works fine on the main page but (due to me making a mistake) does not work on the sub pag...
[ 0.7689141035079956, 0.0890633761882782, 0.3203645348548889, -0.15119978785514832, -0.17681045830249786, -0.2325781285762787, 0.3048626482486725, 0.015970490872859955, -0.45255398750305176, -0.5431540012359619, 0.45098990201950073, 0.4805949330329895, 0.14750969409942627, 0.0080985203385353...
home page (<http://www.bgarchitect.co.nz/index.php>) and if NOT then goes to that page and upon loading automatically executes the function that is normally mapped to the navigational element being clicked? **Example:** I am on a sub page and click on "Culture" then—since i am not on the home page—I am being taken bac...
[ 0.5006744265556335, 0.09224318712949753, 0.5013468861579895, -0.17875221371650696, 0.015849003568291664, -0.08515363931655884, 0.48785674571990967, 0.08702414482831955, -0.18884938955307007, -0.752768874168396, -0.2807990312576294, 0.22081145644187927, -0.08125312626361847, 0.0555877834558...
time).. You could pass a parameter in the query string (eg go to index.php?run=culture), and on the main page have something that checks the querystring for this parameter, and executes the command required. Probably worth fixing it properly if you're up for it however.
[ 0.3329835832118988, -0.1854024976491928, 0.4506083130836487, 0.33774134516716003, 0.12072829902172089, -0.1666807383298874, 0.3627097010612488, -0.09344752877950668, -0.11209508776664734, -0.7072777152061462, 0.18769598007202148, 0.5182418823242188, 0.016424866393208504, -0.096514113247394...
I wrote a small Python application that runs as a daemon. It utilizes threading and queues. I'm looking for general approaches to altering this application so that I can communicate with it while it's running. Mostly I'd like to be able to monitor its health. In a nutshell, I'd like to be able to do something like t...
[ 0.5966017842292786, 0.11290077865123749, 0.06291944533586502, -0.1474286913871765, -0.09417764842510223, -0.14865684509277344, 0.0625554770231247, 0.30660784244537354, -0.404073566198349, -0.7238171100616455, 0.2916451394557953, 0.3858843743801117, -0.437674880027771, 0.028128614649176598,...
have any idea how to do is to send signals to the daemonized process (start), or how to write the daemon to handle and respond to such signals. Like I said above, I'm looking for general approaches. The only one I can see right now is telling the daemon constantly log everything that might be needed to a file, but I h...
[ 0.6423101425170898, -0.09348774701356888, 0.42957332730293274, 0.1861693114042282, -0.3005061745643616, -0.100399449467659, 0.32788729667663574, 0.10236818343400955, -0.3234618604183197, -0.7636142373085022, -0.17515747249126434, 0.2005152553319931, 0.27686506509780884, 0.03960498794913292...
bite off at this point. The next conceptual challenge, I suppose, is how to go about talking to my worker threads without hanging them up. Thanks again. What about having it run an http server? It seems crazy but running a simple web server for administrating your server requires just a few lines using web.py You ca...
[ 0.6407424807548523, 0.02027001418173313, 0.02047577127814293, 0.2916153073310852, -0.2606417238712311, 0.0812244862318039, 0.28142669796943665, 0.5914588570594788, 0.061877358704805374, -0.5295336842536926, 0.3432517647743225, 0.6806564331054688, 0.1794283539056778, 0.14220137894153595, ...
What is the best way to convert decimal numbers (base ten) to sexagesimal (base sixty) represented as a string using 0-9, A-Z and a-x as the digits. I'm planning to code it in javascript but any help is appreciated. Usage Example: ``` >>decToSex(60); "10" >>decToSex(123); "23" >>decToSex(1000000); "4bke" >>decToSex(...
[ 0.2394314408302307, 0.04607396572828293, 0.2635575830936432, -0.04805321618914604, -0.16890446841716766, 1.1459165811538696, 0.08723016083240509, -0.15404564142227173, -0.2106531411409378, -0.6929206848144531, -0.07410342991352081, 0.4283711016178131, -0.14762620627880096, 0.16819831728935...
if (number < 0){ var negative = '-'; } number = number.toString().split('.'); var integer = Math.abs(number[0]); var fraction = number[1]; var result = ''; do { result = decToSexMap[integer % 60] +
[ 0.20532523095607758, -0.4214121401309967, 0.09673017263412476, -0.21001867949962616, 0.03906235843896866, 0.3477709889411926, 0.24102982878684998, -0.34278035163879395, -0.3216876685619354, -0.16402727365493774, -0.6046692132949829, 0.526327908039093, -0.03268245607614517, 0.09042745083570...
result; integer = parseInt(integer / 60); } while (integer > 0); if (fraction){ var decimalPlaces = fraction.toString().length; result += '.'; fraction = parseFloat('.' + fraction); var x = 0;
[ -0.18755994737148285, 0.024677680805325508, 0.5011599063873291, -0.3199107050895691, 0.1875775307416916, 0.2640591263771057, -0.02009028196334839, -0.5082933306694031, -0.24844472110271454, -0.07746928930282593, -0.5266399383544922, 0.351936399936676, 0.1279594600200653, 0.0098696714267134...
do { x++; var res = (fraction * 60).toString().split('.'); result = result + decToSexMap[res[0]]; if (res[1]) {
[ 0.2873413860797882, -0.5253866314888, 0.16575711965560913, -0.29720187187194824, 0.26729604601860046, 0.1181073784828186, 0.16978363692760468, -0.77655428647995, -0.08247215300798416, -0.23718982934951782, -0.5813930630683899, 0.4984385073184967, -0.08256278932094574, 0.21524019539356232, ...
fraction = parseFloat('.' + res[1]); } else { break; } } while (x < decimalPlaces);
[ -0.07354089617729187, 0.17032591998577118, 0.06849180907011032, -0.35469576716423035, 0.16415219008922577, 0.2974274158477783, 0.0880148783326149, -0.4809265732765198, -0.15706542134284973, -0.1411210596561432, -0.5988994836807251, 0.3368915617465973, 0.07663002610206604, 0.098939836025238...
} return negative + result; } }(); ``` This works with the test data provided, but you probably wanna run a few more tests on it: ``` <script> var convert = new Array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K', 'L','M','N','O','P','Q','R','S','T','U','V','W','X'...
[ 0.08461499214172363, 0.18111905455589294, 0.3881016969680786, -0.20340417325496674, -0.018631793558597565, 0.7940844893455505, 0.48383665084838867, -0.3257203996181488, 0.058270201086997986, -0.46609392762184143, -0.2391880452632904, 0.6361083388328552, -0.028971897438168526, 0.06188482791...
'r','s','t','u','v','w','x'); function decToSex(num) { var extract = num.toString().split('.'); num = extract[0]; var pieces = new Array(); do { pieces.push(convert[num % 60]); num = parseInt(num/60); } while (num > 0); pieces = pieces.reverse(); var rem = extract[1]; if...
[ -0.12726446986198425, -0.21926552057266235, 0.3503485918045044, -0.5870920419692993, -0.036585357040166855, 0.639513373374939, 0.20103998482227325, -0.7588937282562256, -0.365723580121994, -0.28158891201019287, -0.7330204844474792, 0.386258989572525, -0.15447640419006348, 0.320795953273773...
var x = 0; var dec = new Array(); do { x++; var res = (rem * 60).toString().split('.'); dec.push(convert[res[0]]); if(res[1]) { rem = parseFloat('.' + res[1]);
[ 0.295668363571167, -0.4279269576072693, 0.49266859889030457, -0.6182631850242615, 0.17397162318229675, 0.44724786281585693, 0.36443740129470825, -0.6620976328849792, -0.21162845194339752, -0.48405972123146057, -0.5792397856712341, 0.7207180261611938, -0.23655131459236145, 0.281234234571456...
} else { break; } } while (x < 3); // work up to 3 decimal places, change for more. } var myResult = pieces.join(''); if(dec) { myResult += '.' + dec.join(''); } return
[ -0.08493790775537491, 0.02318890206515789, 0.20602385699748993, -0.09795614331960678, 0.2494397759437561, 0.358976274728775, 0.19242680072784424, -0.4619009494781494, -0.47255027294158936, -0.26057276129722595, -0.36594924330711365, 0.10073622316122055, 0.21581993997097015, 0.3250347971916...
myResult; } alert(decToSex(60)); alert(decToSex(123)); alert(decToSex(1000000)); alert(decToSex(1234567.89)); </script> ```
[ -0.2262967824935913, -0.20083685219287872, 0.4905520975589752, 0.022040748968720436, 0.48658129572868347, 0.029743263497948647, 0.41125378012657166, 0.12536722421646118, -0.2853848338127136, -0.8710951209068298, -0.6143580079078674, 0.3842408359050751, -0.2972765564918518, 0.05321867391467...
The g++ compiler complains with this error when I declare a friend thusly: ``` friend MyClass; ``` instead of ``` friend class MyClass; ``` Why should the **class** keyword be required? (the Borland C++ compiler, BTW, does not require it.) Couldn't the compiler simply look-up MyClass in the symbol table and tel...
[ -0.3442317843437195, 0.31468260288238525, 0.15999795496463776, -0.3489706814289093, -0.28640466928482056, -0.17271089553833008, 0.5502109527587891, -0.0350046381354332, -0.09978660196065903, -0.18711921572685242, -0.22206608951091766, 0.4698525071144104, -0.3930843472480774, 0.129093304276...
great actually) if ``` friend class MyClass; ``` makes a forward declaration if needed, otherwise it just seems like syntactic salt to me. I have been merrily using **friend** statements without the **class** or **struct** keyword with no compiler complaints for almost 20 years. Is this something fairly new? I wa...
[ 0.0004521640366874635, 0.3198501765727997, 0.19862332940101624, -0.3017137050628662, -0.45885980129241943, -0.2166532278060913, 0.29470816254615784, 0.1108599603176117, -0.1879400759935379, -0.3443993628025055, -0.20737333595752716, 0.5815371870994568, 0.13421563804149628, 0.16310818493366...
that complains about the missing class-key, but it looks like other compilers are letting us get away with something non-standard... Now as for the rationale - you'd have to ask someone who knows more about compilers (or standards) than I do.
[ 0.5614727735519409, 0.3919779658317566, -0.43288910388946533, 0.21132530272006989, -0.26502689719200134, -0.19654692709445953, 0.2869120240211487, 0.05102566257119179, -0.11973029375076294, 0.006923850160092115, -0.008676334284245968, 0.47403857111930847, 0.14031824469566345, 0.13499911129...
I would like to write an SQL query that searches for a keyword in a text field, but only if it is a "whole word match" (e.g. when I search for "rid", it should not match "arid", but it should match "a rid". I am using MySQL. Fortunately, performance is not critical in this application, and the database size and strin...
[ -0.08191145956516266, -0.16388943791389465, 0.642428994178772, 0.2897040843963623, -0.06586796045303345, -0.32152193784713745, 0.22434620559215546, -0.18134014308452606, -0.15765030682086945, -0.8988037109375, -0.1688992828130722, 0.8146392703056335, -0.14038634300231934, 0.102353759109973...
updated its RegExp-Engine in version 8.0.4, so you [will now need to use](https://dev.mysql.com/doc/refman/8.0/en/regexp.html#regexp-compatibility) the "[standard](https://www.regular-expressions.info/wordboundaries.html)" word boundary marker \b: ``` SELECT * FROM table WHERE keywords REGEXP '\\brid\\b' ``` Also b...
[ -0.2801663279533386, -0.2617064416408539, 0.750272810459137, -0.11882031708955765, 0.016351183876395226, -0.10464950650930405, 0.4484054148197174, -0.11534585803747177, -0.20457924902439117, -0.4336303174495697, -0.41382110118865967, 0.6001480221748352, -0.40785518288612366, 0.108429253101...
Sorry the title is a bit crappy, I couldn't quite word it properly. Edit: I should note this is a console c# app I've prototyped out a system that works like so (this is rough pseudo-codeish): ``` var collection = grabfromdb(); foreach (item in collection) { SendAnEmail(); } ``` SendAnEmail: ``` SmtpClient m...
[ -0.021226586773991585, -0.007680003065615892, 0.6930541396141052, 0.050617776811122894, -0.2601921260356903, -0.25913578271865845, 0.6807661056518555, -0.26991739869117737, -0.38915473222732544, -0.4392356276512146, -0.36450159549713135, 0.4409421980381012, -0.37641629576683044, 0.16562364...
can step through the rows - and likely asplode in the process. My ideal end game is to have something like 10 concurrent email going out at once. A hacky solution comes to mind: Add a counter, that increments when SendAnEmail() is called, and decrements when SendComplete is sent. Before SendAnEmail() is called in the...
[ 0.34731346368789673, -0.13313016295433044, 0.4689609110355377, 0.06439252197742462, -0.047796256840229034, 0.0006381780258379877, 0.5474420189857483, -0.039248716086149216, -0.4278717339038849, -0.6533873081207275, 0.20548272132873535, 0.4091978967189789, -0.33963629603385925, -0.037738475...
of threading and not sure if it would be an appropriate use here. Eg sending email in a background thread, first check the number of child threads to ensure there's not too many being used. Or if there is some type of 'thread throttling' built in. --- Update ------ Following in the advice of Steven A. Lowe, I now ha...
[ 0.2385413944721222, 0.16740819811820984, 0.30214637517929077, 0.022183477878570557, 0.04139573127031326, -0.07437673211097717, 0.05782594159245491, -0.03600792586803436, -0.2944001257419586, -0.7428076267242432, -0.07897867262363434, 0.3620240390300751, -0.21462517976760864, 0.332387775182...
removes the email from the que. And calls FillQue again. I've a few problems with this setup. I think I've missed the boat with the background thread, should I be spawning one of these for each item in the dictionary? How can I get the thread to 'hang around' for lack of a better word, if the email que empties the thr...
[ 0.15270723402500153, 0.005980643443763256, 0.6904135942459106, -0.015633301809430122, 0.005467258393764496, 0.04935740306973457, 0.6769623756408691, 0.4094032943248749, -0.19547916948795319, -0.40940845012664795, -0.21721430122852325, 0.7098293900489807, -0.13303698599338531, 0.60110890865...
I'm a bit worried about the 'while(true)' business though.. Short Answer ============ Use a queue as a finite buffer, processed by its own thread. Long Answer =========== Call a fill-queue method to create a queue of emails, limited to (say) 10. Fill it with the first 10 unsent emails. Launch a thread to process the...
[ 0.37893012166023254, -0.2213168889284134, 0.6058406829833984, 0.003832331858575344, 0.12931331992149353, 0.215989887714386, 0.27984046936035156, 0.028548210859298706, -0.0574830025434494, -0.3754878640174866, -0.1380353420972824, 0.4894949793815613, -0.24058540165424347, -0.035264201462268...
the queue (back up to the limit). You'll only need locks around the queue operations, and will only have to manage (directly) the one thread to process the queue. You will never have more than N+1 threads active at once, where N is the queue limit.
[ 0.11645477265119553, -0.23781819641590118, 0.786705493927002, 0.14220641553401947, 0.15203626453876495, 0.025504646822810173, 0.23963740468025208, 0.046304795891046524, -0.7718925476074219, -0.4200161099433899, -0.28539878129959106, 0.3110308051109314, -0.6056354641914368, 0.37711659073829...
I am currently developing a system on a server running PHP version 5.1.6 thus I am forced to use Symfony 1.1 in the current environment. I am planning to migrate the application from 1.1 to 1.2 in the somewhat near future and I was wondering if anyone has any experience with this? I have attempted to migrate a system f...
[ 0.322265088558197, 0.20359310507774353, 0.5001002550125122, -0.12311563640832901, -0.13526730239391327, -0.09275110065937042, 0.2627481520175934, 0.0774381160736084, -0.25200891494750977, -0.830345869064331, 0.08776004612445831, 0.5919435024261475, -0.14459815621376038, 0.1833474487066269,...
problem will be migrating to propel 1.3 if you have used 1.2 ( default with symfony 1.0.x and 1.1.x). If you were using propel 1.3 before ( with sfPropelPlugin) or Doctrine there shouldn't be any problems. Another one will be porting admin generated modules to new admin generator, but in 1.2 the oldones still work for...
[ 0.015274984762072563, -0.08755715936422348, 0.8588272333145142, 0.1563045233488083, -0.09701845049858093, -0.06101316213607788, 0.15958286821842194, -0.0200912207365036, -0.5632635354995728, -0.7135327458381653, -0.12452840059995651, 0.9391992688179016, -0.39774760603904724, -0.10624097287...
I have simple base and derived class that I want both have `shared_from_this()`. This simple solution: ``` class foo : public enable_shared_from_this<foo> { void foo_do_it() { cout<<"foo::do_it\n"; } public: virtual function<void()> get_callback() { return boost::bind(&foo::foo_do_...
[ 0.0627046674489975, 0.05616148188710213, 0.5250495672225952, -0.35087308287620544, 0.13099104166030884, -0.11940372735261917, 0.13150647282600403, -0.33931902050971985, 0.026675019413232803, -0.49143242835998535, -0.4482848346233368, 0.7775928378105164, -0.37000593543052673, 0.105344563722...
} public: virtual function<void()> get_callback() { return boost::bind(&bar1::bar1_do_it,shared_from_this()); } }; ``` Causes exception `tr1::bad_weak_ptr` in following code: ``` shared_ptr<foo> ptr(shared_ptr<foo>(new bar1)); function<void()> f=ptr->get_callback(); f(); ``` So after "googling"...
[ -0.3194221258163452, 0.043196577578783035, 0.5685019493103027, -0.1879483014345169, 0.18801172077655792, 0.12537474930286407, 0.13441216945648193, -0.2718867063522339, -0.1842942088842392, -0.4000869691371918, -0.5376922488212585, 0.6509068012237549, -0.37303802371025085, 0.251778632402420...
return boost::bind(&bar2::bar2_do_it,shared_from_this()); } }; ``` And now it works. Is there any better and more convinient and correct way to `enable_shared_from_this` for both parent and child? Thanks Sorry, but there isn't. The problem is that `shared_ptr<foo>` and `shared_ptr<bar1>` are different types. I...
[ 0.028394974768161774, 0.14774085581302643, 0.39408084750175476, -0.14889734983444214, 0.23428429663181305, -0.0001957373897312209, 0.4108593463897705, -0.2795032858848572, 0.02137984149158001, -0.3742605745792389, -0.22975213825702667, 0.8080396056175232, -0.008199925534427166, 0.145244225...
the internal `weak_ptr` isn't pointing to anything. Essentially, `enable_shared_from_this` only seems to work transparently from a single class in a hierarchy. If you try [implementing it manually](http://www.boost.org/doc/libs/1_38_0/libs/smart_ptr/sp_techniques.html#from_this), the problem should become obvious.
[ 0.02913394384086132, -0.197407066822052, 0.4421956539154053, -0.08096303045749664, 0.02525818906724453, -0.36796408891677856, 0.2331477850675583, -0.25122761726379395, -0.03584280610084534, -0.3170264959335327, -0.26147717237472534, 0.638165295124054, -0.38750553131103516, -0.1133180558681...
I have a class that is mapped to a table using NHibernate. The problem is that only some of the properties are mapped to columns in the table. This is fine because the only columns we use for display are mapped, however I was wondering if there is any way to query against other columns in the table that aren't mapped t...
[ -0.3268123269081116, 0.17253530025482178, 0.32976338267326355, -0.24167682230472565, 0.09790661185979843, 0.2319331020116806, -0.2901165187358856, 0.24662630259990692, -0.04105038568377495, -0.6608765721321106, 0.14635396003723145, 0.36487632989883423, -0.1625627875328064, 0.56756746768951...
are mapped however `DateCreated` is not because we never display it anywhere. We would like to query the `Customer` table for customers that were created by a certain date. Is there any way to do this **without** mapping the `DateCreated`? Also it would be preferable to do this using the criteria API. Ayende Rahien pos...
[ -0.1545034945011139, 0.11256345361471176, 0.1847124695777893, 0.0017880293307825923, -0.06505414843559265, -0.11917145550251007, -0.2810555398464203, 0.019159704446792603, -0.3466194272041321, -0.7445530891418457, 0.04019317030906677, 0.17965619266033173, -0.32328882813453674, 0.3713910579...
I am using a Python script to **find and replace** certain strings in text files of a given directory. I am using the `fileinput` module to ease the find-and-replace operation, i.e., the file is read, text replaced and written back to the same file. The code looks as follows: ``` import fileinput def fixFile(fileName...
[ -0.05937616527080536, -0.1039813980460167, 0.6133303046226501, -0.20179931819438934, 0.1136341243982315, 0.08468666672706604, 0.07062780112028122, -0.21637587249279022, -0.07704966515302658, -0.7668590545654297, -0.21920019388198853, 0.7378564476966858, -0.5162772536277771, -0.123885072767...
have: 1. One blank line inserted after *every* line. 2. Ctrl-M character at the end of *every* line. How do I prevent these extra appendages from getting inserted into the files? Your newlines are coming from the print function use: ``` import sys sys.stdout.write ('some stuff') ``` and your line breaks will go ...
[ 0.5136753916740417, -0.09391464293003082, 0.5489200353622437, -0.15461990237236023, 0.2340918481349945, -0.018543666228652, 0.25667378306388855, -0.1303769201040268, -0.14601989090442657, -0.7944908142089844, -0.267998069524765, 0.40993887186050415, -0.49703535437583923, 0.0393675379455089...
I am working on a Django project. And our team follows agile practices(TDD,very short launch times etc..) When it comes to deployment stage of a feature, we follow manual procedures to get the code deployed on to our production machine. Manual procedures in the sense, run the test cases (of the entire project) manual...
[ 0.5877379179000854, 0.3384440839290619, -0.11676424741744995, -0.17649973928928375, 0.08841800689697266, -0.2715480923652649, 0.16206952929496765, -0.13850706815719604, 0.11834076792001724, -0.46729519963264465, -0.24615022540092468, 0.7855232954025269, -0.0780433714389801, -0.331774741411...
what I want or it should be done only MANUALLY?? (using a simple shell file which has got all my commands. In which case, I need to learn shell programming a bit because I don't want to update my latest code in my production machine if any test case fails. So such a sort of conditions exist for deploying, which may inv...
[ 0.6597075462341309, -0.24007181823253632, 0.24196989834308624, -0.07068442553281784, 0.10818931460380554, 0.029135307297110558, -0.02568441815674305, -0.06622859835624695, -0.5791874527931213, -0.282133013010025, 0.06626266986131668, 0.6912243962287903, -0.2960978150367737, 0.0805574804544...
switch over simply because Capistrano is too ruby/rails centric, although I haven't seen anyone complain about Capistrano being incapable or lacking. YMMV. More info [here](http://lethain.com/entry/2008/nov/04/deploying-django-with-fabric/) and [here](http://stii.co.za/python/switched-to-python-fabric/). EDIT: Looks l...
[ 0.5670417547225952, -0.24329695105552673, 0.7026461958885193, -0.34249982237815857, -0.03578203544020653, -0.08724784851074219, 0.12892132997512817, 0.125411257147789, -0.629237949848175, -0.6811240315437317, -0.16467857360839844, 0.3553491532802582, -0.47576573491096497, 0.308848947286605...
I'm planning a ASP.NET project for which I'm going to use AJAX. I'm researching all the available technologies for doing so in the .NET world. I need a solution that is well documented and stable. The current solutions I've found are: 1. ASP.NET AJAX UpdatePanel 2. ASP.NET AJAX with Web Services + JQuery 3. JQuery + Ht...
[ 0.3466879725456238, -0.23560239374637604, 0.38378477096557617, 0.16110841929912567, -0.3506790101528168, -0.2766152620315552, 0.09363957494497299, -0.02009524405002594, -0.2516357898712158, -0.9938703179359436, -0.12475267052650452, 0.43482375144958496, -0.16228100657463074, -0.44599238038...
is bloated from the start and needs to be stipted and slimed. On the other hand you have JQuery that you needs more development but is light weight. JQuery has a great plugin library as well. 2. XML is to slow, JSON is fast. Thats how I would do it today.
[ 0.08983399718999863, -0.16037873923778534, 0.1299344301223755, 0.21717475354671478, -0.2931739091873169, -0.26420900225639343, -0.1581205427646637, 0.5276073813438416, -0.0780998095870018, -0.7909572124481201, -0.027671586722135544, 0.33621230721473694, -0.1854781210422516, -0.073348961770...
Is there a gem or something to parse strings like "4h 30m" "1d 4h" -- sort of like the estimates in JIRA or task planners, maybe, with internationalization? Posting a 2nd answer, as chronic (which my original answer suggested) doesn't give you timespans but timestamps. Here's my go on a parser. ``` class TimeParser ...
[ -0.07202441990375519, -0.1446947455406189, 0.11132320761680603, 0.17190533876419067, 0.2312815934419632, 0.3115726411342621, 0.17510497570037842, -0.24191516637802124, -0.2616458237171173, -0.913757860660553, 0.009279916062951088, 0.3109096586704254, 0.02099098078906536, 0.0633285045623779...
parse end def parse @input.scan(/(\d+)(\w)/).each do |amount, measure| @time += amount.to_i * TOKENS[measure] end end end ``` The strategy is fairly simple. Split `"5h"` into `["5", "h"]`, define how many seconds `"h"` represents (`TOKENS`), and add that amount to `@time`. ``` TimeParser.new("1m...
[ 0.052985116839408875, 0.06590142101049423, 0.33957913517951965, -0.2933134436607361, -0.10024259984493256, 0.1028505265712738, 0.3522927165031433, -0.7912424802780151, -0.2106344997882843, -0.6227418184280396, -0.049163032323122025, 0.25390613079071045, -0.028875013813376427, 0.02908643893...
When consuming a WebService, I got the following error: > Request format is unrecognized for URL unexpectedly ending in */myMethodName* How can this be solved? Found a solution on [this website](https://web.archive.org/web/20160711020417/http://aspadvice.com:80/blogs/ssmith/archive/2007/09/04/FIX-Request-format-is-un...
[ -0.13577526807785034, 0.13444189727306366, 0.44660085439682007, 0.13058754801750183, -0.128891259431839, 0.0059408643282949924, 0.06788235902786255, 0.07567673176527023, -0.25158482789993286, -0.7066766619682312, -0.024071451276540756, 0.5197425484657288, -0.30538177490234375, 0.1176252141...
The default position of TSaveDialog is the center of the screen. How to set the position of the TSaveDialog window? I want something like that: ``` SaveDialog1.top := topValue; SaveDialog1.left := leftValue; if (SaveDialog1.execute(self.handle)) then begin ... end; ``` Check your [hosts file](http://en.wikipedia.or...
[ 0.11166173964738846, -0.13468791544437408, 0.7628600001335144, -0.2222917377948761, -0.25553956627845764, -0.03194621950387955, 0.3930152356624603, 0.4299192726612091, -0.3601648211479187, -1.1169521808624268, -0.051938340067863464, 0.16067591309547424, -0.3698104918003082, 0.3214716017246...
modified, you might run a check on viruses. Also see the [discussion here](http://forums.asp.net/t/1232820.aspx).
[ 0.6879783868789673, -0.25071245431900024, -0.1511605829000473, 0.09990184009075165, 0.22667382657527924, -0.43915843963623047, 0.3131720721721649, 0.20102809369564056, -0.7833872437477112, -0.45046988129615784, -0.03119601681828499, 0.3226968050003052, -0.5348308682441711, 0.01292638015002...
I need to add icons (16x16) for my application. The icons must be showing images of +,-,x,%,<,>,!= and symbols like that. Is there any site where i can get it? Or any software which can quickly help me generate them. I'm bad in designing them. Also suggest me a site where i can get free collection of Icons or Images, ...
[ -0.031909406185150146, 0.39725103974342346, 0.3787589967250824, 0.09350576996803284, -0.0704827755689621, 0.4227805733680725, 0.032151512801647186, 0.08464169502258301, -0.41267773509025574, -0.7494804263114929, 0.10358960926532745, 0.6751313805580139, -0.16766484081745148, -0.007464867085...
I recently took a class at school where we had to learn Scheme to build a parser for a simple made up scheme-like language. As the semester went on, we added to our parser to make it more and more interesting. Since then, on my own time, I've started writing my own parser that's quite a bit neater than what I did in c...
[ 0.09914430975914001, 0.29994773864746094, -0.020370380952954292, -0.38662394881248474, -0.14024685323238373, 0.20039300620555878, 0.2282160520553589, -0.17666883766651154, 0.03376583382487297, -0.6084718108177185, 0.03513729199767113, 0.4166337847709656, -0.3770638108253479, -0.21409140527...
int a; } class Foo { public: Bar* myBar; int x; } ``` and I run my parser generator on it, it spits out a new class simply called Parser that I can use like this to read from a file: ``` Parser p; Foo* f = p.parseFoo("example.txt"); ``` where example.txt would be something like this: ``` Foo { myBar...
[ 0.002596823964267969, 0.21158385276794434, 0.2520681619644165, -0.33273130655288696, -0.21308448910713196, 0.2044392079114914, 0.1836349219083786, 0.0007120483205653727, -0.07298988848924637, -0.4915182888507843, -0.13682961463928223, 0.5976985096931458, -0.6231368780136108, 0.041588623076...
and being able to assign function callbacks) This seems like the type of thing that other (probably smarter) people ought to have done before me. I did some quick Google searches to see what was out there, but there's a lot of stuff to sift though. So my question is this: are there tools out there that do what my pars...
[ 0.30260252952575684, 0.040638502687215805, -0.10225927084684372, 0.1829833835363388, -0.01922130584716797, 0.1010558232665062, 0.4322802424430847, 0.2247399240732193, -0.44010552763938904, -0.36805954575538635, 0.10238371789455414, 0.7312487959861755, 0.047065380960702896, -0.2785980999469...
to read data structures to and from text. lex and yacc (or rather, [flex](https://github.com/westes/flex) and [bison](http://www.gnu.org/software/bison/)) are powerful tools that will help you generate parsers for regular languages with ease.
[ 0.30701515078544617, 0.047836802899837494, -0.09056390821933746, 0.37522345781326294, -0.36594849824905396, -0.13841772079467773, 0.014759205281734467, -0.04362502694129944, -0.2015066295862198, -0.8506886959075928, -0.21661436557769775, 0.7298840880393982, -0.06368599832057953, -0.3813116...
I have to port a smaller windows forms application (product configurator) to an asp.net app which will be used on a large company's website, demand should be moderate because it's for a specialized product line. I don't have access to a database and using XML is a requirement from their web developers. There are rou...
[ 0.5971248149871826, 0.21809351444244385, 0.3779749274253845, 0.005292432848364115, 0.276711106300354, 0.5135880708694458, 0.3295792043209076, 0.001957350643351674, -0.09317410737276077, -0.749803900718689, -0.3159899413585663, 0.3097465932369232, 0.0796164721250534, 0.19260390102863312, ...
call it this way? I thought of reading / deserializing the xml files into their objects and store them in asp.net's cache if they're not there already and then read from the cache on subsequent requests. But that would mean all objects live in the memory all day and night. Is that even necessary, or smart, performance...
[ 0.48514002561569214, -0.10402212291955948, 0.1680103987455368, 0.14706961810588837, 0.22119584679603577, -0.10869386792182922, 0.10107534378767014, -0.030021067708730698, -0.335348516702652, -0.49806004762649536, 0.018428798764944077, 0.5083311200141907, -0.18777436017990112, 0.05400833114...
way, and drive memory consumption down? The whole approach seems to be sticking to a single server. First consider if this is appropriate as you mentioned a "large company's website", that sets a red flag for me. If you need the site to scale, you will end up having more than a single server, which prevents considering...
[ 0.322605162858963, -0.11369442939758301, 0.17304882407188416, 0.36730220913887024, 0.22155055403709412, -0.10718380659818649, 0.07394206523895264, 0.04584170877933502, -0.4004710912704468, -0.7794392108917236, 0.15663990378379822, 0.4237878918647766, -0.005910655949264765, 0.33087864518165...
cached, which will reduce the amount of amount of info in the more dynamic files. If you expect big amounts of information, consider splitting the files with something appropriate to your domain.
[ 0.22437286376953125, -0.12005634605884552, 0.07317810505628586, 0.4762516915798187, 0.017624223604798317, -0.33383917808532715, -0.024512669071555138, 0.11937062442302704, -0.41672536730766296, -0.6476025581359863, -0.22216345369815826, 0.5577074885368347, -0.14287813007831573, 0.395200699...
Is it possible to set up the headers in a multicolumn listbox without using a worksheet range as the source? The following uses an array of variants which is assigned to the list property of the listbox, the headers appear blank. ``` Sub testMultiColumnLb() ReDim arr(1 To 3, 1 To 2) arr(1, 1) = "1" arr(1...
[ 0.3253938853740692, 0.03783276304602623, 0.4577028751373291, -0.22104504704475403, -0.1637144237756729, -0.01600974053144455, 0.4027762711048126, -0.6517934203147888, -0.11189161241054535, -0.2979908585548401, -0.23985008895397186, 0.4158000349998474, -0.4353616237640381, -0.00346029805950...
.Clear .ColumnCount = 2 .List = arr End With ufTestUserForm.Show 1 End Sub ``` No. I create labels above the listbox to serve as headers. You might think that it's a royal pain to change labels every time your lisbox changes. You'd be right - it is a pain. It's a pain to set up the first time,...
[ 0.32165423035621643, 0.05874666944146156, 0.799591600894928, -0.08223880082368851, -0.14697705209255219, 0.033060092478990555, 0.1401224583387375, -0.03206084296107292, -0.3178989887237549, -0.7436227798461914, -0.0015272913733497262, 0.18385913968086243, -0.30254948139190674, 0.4538841247...
Is where any C++ compiler that supports C++0x features already? Both the 2008 Visual C++ 'Feature Pack' and g++ support some features. The [list of C++0x features supported by g++](http://gcc.gnu.org/projects/cxx0x.html). --- [The Visual C++ 2008 Feature Pack](http://www.microsoft.com/DownLoads/details.aspx?FamilyID...
[ -0.09735463559627533, 0.05385435372591019, 0.3406047224998474, -0.04738535359501839, -0.13349463045597076, -0.09782826155424118, -0.15594863891601562, -0.22419407963752747, -0.2609252631664276, -0.28266188502311707, -0.22493377327919006, 0.5001887083053589, -0.3565919101238251, -0.33904278...
I am working on an embedded application that uses NAND flash for storage. As it looks now, we won't use Linux or any other RTOS. The application must handle unexpected power downs. We have been looking on different file system solutions, including YAFFS2, JFFS2, FAT+FTL as well as solutions from [HCC Embedded](http:/...
[ 0.23506368696689606, 0.03588030859827995, 0.2678183615207672, -0.1641485095024109, -0.17892935872077942, -0.2090991884469986, -0.039121370762586594, 0.18287009000778198, -0.30386653542518616, -0.6201783418655396, -0.3865448534488678, 0.6669774055480957, -0.10503824055194855, -0.01430835574...
newer than JFFS2 and seems to be faster and more scalable for large NANDs. [This presentation of the "Embedded Linux Conference Europe"](http://tree.celinuxforum.org/CelfPubWiki/ELCEurope2008Presentations?action=AttachFile&do=get&target=flash-filesystems.pdf) compares these two and other flash file systems. Another so...
[ 0.012968416325747967, -0.247728630900383, 0.6160479784011841, -0.04173357039690018, 0.0016409986419603229, -0.38206037878990173, -0.2792065441608429, -0.08317181468009949, -0.4599781930446625, -0.7937797904014587, -0.25365278124809265, 0.5519260168075562, -0.18537181615829468, -0.091735951...
I'm creating a PDF file on the fly using ITextSharp and ASP.NET 1.1. My process is as follows - * Create file on server * Redirect browser to newly created PDF file so it is displayed to user What I'd like to do is delete the PDF from the server as soon it is displayed in the users browser. The PDF file is large so i...
[ 0.42546698451042175, 0.08754147589206696, 0.5880597233772278, 0.026779722422361374, -0.044587232172489166, -0.269014835357666, -0.13533398509025574, -0.07561071962118149, -0.038513924926519394, -0.9812313914299011, -0.029559580609202385, 0.4437198042869568, -0.2213846743106842, 0.156890198...
file immediately after it has been downloaded to the client machine. Is there a way to do this? Instead of redirecting the browser to the created file you could serve the file yourself using you own HttpHandler. Then you could delete the file immediately after you served it or you could even create the file in memory. ...
[ 0.19009257853031158, 0.02587764896452427, 0.7636092901229858, 0.08555328100919724, -0.05097466707229614, -0.05548744276165962, 0.09371612221002579, -0.16725027561187744, -0.15151409804821014, -0.9354053735733032, -0.5068241953849792, 0.5180040001869202, -0.12396101653575897, 0.413468360900...
PdfWriter.getInstance(document, context.Response.OutputStream); // ... ``` or read an already generated file 'filename', serve the file, delete it: ``` context.Response.Buffer = false; context.Response.BufferOutput = false; context.Response.ContentType = "application/pdf"; Stream outstream = context.Respons...
[ -0.16884486377239227, -0.29323887825012207, 0.9902923107147217, -0.17992016673088074, 0.035295650362968445, 0.11082986742258072, 0.4135679006576538, -0.4594598710536957, -0.2380141317844391, -0.7421295642852783, -0.41689398884773254, 0.5633823871612549, -0.2515719532966614, 0.1245845407247...
I have a .net class library with a com class that calls a form. I want to to `SetCompatibleTextRenderingDefault(false)` to ensure the form fonts look nice. If I run the command in the class constructor I get the following error: `SetCompatibleTextRenderingDefault must be called before the first IWin32Window object is ...
[ 0.38188454508781433, 0.13430491089820862, 0.3647189140319824, -0.04186393320560455, -0.05055270344018936, -0.34420615434646606, 0.43348461389541626, -0.3538562059402466, 0.22950537502765656, -0.7672526836395264, -0.14685136079788208, 0.7358302474021912, -0.14704902470111847, -0.14195339381...
cannot use `SetCompatibleTextRenderingDefault` in a com class when calling from a vb6 app?? Maybe it's the "parent" app that needs to call this method and as such a vb6 app cannot? ***Edit3: Maybe I am asking this question in the wrong way! - Maybe the question is: how can I make the fonts look nice in a .net class li...
[ 0.1670791059732437, 0.03935202583670616, 0.33818715810775757, -0.10641784220933914, 0.11356373876333237, 0.016857042908668518, 0.4762265682220459, -0.2667073607444763, 0.0320618711411953, -0.6512696743011475, -0.4427196979522705, 0.817043125629425, -0.6008715033531189, 0.07422740757465363,...
button = (c as ButtonBase); var label = (c as Label); if (button != null) { button.UseCompatibleTextRendering = false; } if (label != null) { label.UseCompatibleTextRendering = false; } foreach (var child in c.Controls.Cast<Control>()) { DisableCompatibleTe...
[ -0.18355603516101837, 0.019172266125679016, 0.3482716977596283, -0.11264604330062866, 0.576514482498169, 0.12082754075527191, 0.06028427928686142, -0.27662479877471924, 0.059476014226675034, -0.4957347512245178, -0.5878787636756897, 0.6040213704109192, -0.3879266083240509, 0.27304503321647...