text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
tokens in the PDF document.
Can anyone point me in the right direction? I have php experience, but not with editing / generating pdf documents from php.
EDIT: Yes, this commercial script <http://www.setasign.de/products/pdf-php-solutions/setapdf-linkreplacer/> does exactly what I needed.
So far it's looking like this... | [
0.06421295553445816,
-0.11505347490310669,
0.27162057161331177,
0.28638240694999695,
-0.28826627135276794,
0.1237359568476677,
0.4327215850353241,
-0.06397167593240738,
-0.32711875438690186,
-0.6644273400306702,
0.3500739634037018,
0.049618735909461975,
0.324232280254364,
-0.16215695440769... | |
One of my favourite data structures in college was the [Trie](http://en.wikipedia.org/wiki/Trie). It's a great data structure for holding a large set of strings if the prefixes are shared. Lookups are also nice, since they are done at O(|length|) of the string regardless of how many strings are in the set.
By comparis... | [
0.1310744285583496,
-0.06031464785337448,
-0.07191827893257141,
0.24447695910930634,
-0.13958990573883057,
0.07059326767921448,
-0.0866406187415123,
0.011998234316706657,
-0.11094370484352112,
-0.5827062726020813,
0.1325644701719284,
-0.03813396766781807,
-0.05354253947734833,
0.2251712679... | |
I could come up with was the possibility that memory access costs make it too expensive. Rather than investigating O(log N) locations if doing a tree lookup, you are not doing O(|length|) different locations, with all the consequences. If the strings are long, this could end up being way too much.
So I'm wondering: ho... | [
0.4017240107059479,
-0.26224836707115173,
-0.177142933011055,
0.14373676478862762,
0.126820370554924,
-0.1429239958524704,
0.05086828023195267,
-0.24918004870414734,
-0.6549108624458313,
-0.33971118927001953,
0.21859098970890045,
0.2982085049152374,
0.08700721710920334,
0.14782513678073883... | |
Trie implementation might be handy. On the other hand, as far as I know, Tries are used by Python and Perl and other string-savvy languages that I use now.
Last I checked, which was ages ago, the BSD kernel code used Tries (Patricia Tries) in the code to select the best interface for sending packets. Looks like [Wikip... | [
0.27611246705055237,
-0.2623150944709778,
-0.16301260888576508,
0.13782541453838348,
-0.20079189538955688,
0.18139119446277618,
0.20522215962409973,
0.16612252593040466,
-0.18646614253520966,
-0.7053622007369995,
0.33105936646461487,
0.24714314937591553,
-0.30122965574264526,
0.05406749248... | |
Hey, I've built a project over the course of a year. I've put in a lot of hours into it, and it has come out great. A bunch of people use it, and a bunch of people write plugins for it. However, I have since moved on to different languages, different styles, the codebase is dirty and hackish, and I'm not sure I want to... | [
0.8519691824913025,
0.5166500806808472,
-0.507662296295166,
-0.0073888530023396015,
-0.05967998504638672,
-0.25812914967536926,
0.37464404106140137,
0.8128249645233154,
-0.06772350519895554,
-0.47093555331230164,
0.14191128313541412,
0.3418932557106018,
-0.09383540600538254,
0.277100116014... | |
are to the point you can't get much or anymore experience from the project it's time to move on. If a project's codebase is too screwed up to fix then it's time to move on. If people use it and people write plugins for it, I'd personally make the project open source and turn it over to the community to continue otherwi... | [
0.9378675222396851,
0.2946402132511139,
0.17630790174007416,
0.09026529639959335,
-0.061214879155159,
-0.09402764588594437,
0.35565462708473206,
0.20732481777668,
-0.04195897653698921,
-0.651133120059967,
-0.3566026985645294,
0.7275474667549133,
-0.12471785396337509,
0.23336581885814667,
... | |
I've been searching around trying to find an answer both here and google, although I've found some pointers I haven't quite found a solution.
If you have a simple RSS reader with a database, you might have a couple of tables for storing feeds (ignoring dealing with subscribers here):
* Feeds (**feed-id**, feed-title,... | [
0.748590886592865,
-0.19137288630008698,
0.4348732531070709,
0.470579594373703,
-0.23009251058101654,
-0.03326578065752983,
-0.03348064422607422,
0.09013695269823074,
-0.272597998380661,
-0.4761764705181122,
0.15705056488513947,
0.5691182017326355,
-0.31781962513923645,
0.15955600142478943... | |
same post appearing in several rss feeds.
The two choices I've come up with are either ignore it and accept the duplicates or use a link table between the feeds and the items. But this also seems like quite a waste when probably 80% of the sort of feeds I'm looking to pull won't have multiple feeds which could create... | [
0.8294892907142639,
0.1770072728395462,
0.12170079350471497,
0.3827736973762512,
0.11766166985034943,
0.08803348988294601,
0.14891433715820312,
0.18618391454219818,
-0.4678981602191925,
-0.49217891693115234,
0.3011884391307831,
0.19484715163707733,
-0.11775507777929306,
0.27585065364837646... | |
worry about and would be negated by the potential for unknown issues (such as mentioned by dbr).
Adding a link table or similar would probably increase the processing time as well so overall not worth worrying about too much. I had thoughts after reading the responses of linking content and removing duplicates only w... | [
0.8012586832046509,
0.16436652839183807,
0.06741643697023392,
0.1935906857252121,
-0.16480393707752228,
-0.15329088270664215,
0.04405657947063446,
0.016163397580385208,
-0.19726358354091644,
-0.6985338926315308,
0.13597935438156128,
0.4610067307949066,
-0.47345179319381714,
0.2277304977178... | |
of development (design, I presume). Concentrate on getting it working and when you're done, if you do some profiling and find that you can indeed save X% of storage if you use links or shared data between feeds, **only then** and ***if* X is large enough to pay for the time it would take to optimize your DB** would I s... | [
0.6037064790725708,
0.21865330636501312,
-0.08993865549564362,
0.02834576554596424,
0.16923512518405914,
-0.2058800309896469,
0.08363605290651321,
-0.013452279381453991,
0.10013392567634583,
-0.7829223871231079,
-0.2672608196735382,
0.4377279579639435,
0.16620253026485443,
0.10145296901464... | |
I have just started the MIT Introduction to Algorithms course through the material posted online. Along with the course I have also decided to learn/enhance my Ruby skills by coding the algorithms in it.
I am on the first algorithm given, which is Insertion sort, and I have the following code typed up but I am gettin... | [
-0.11224281042814255,
0.17256739735603333,
-0.009643414057791233,
-0.4114587604999542,
0.07409762591123581,
0.23527981340885162,
0.15133348107337952,
-0.1869104504585266,
0.025866655632853508,
-0.7681681513786316,
-0.11575771868228912,
0.5482813715934753,
-0.31880083680152893,
-0.131219536... | |
> key
num[i+1] = num[i]
i = i - 1
end
num[i+1] = key
end
puts num
end
numbers = [23,34,46,87,12,1,66]
insertionsort(numbers)
```
I'm sure it is a fairly basic problem but I just can't grasp what it is at the moment. Any help or tips would be very much appreciated.
You are overruning the bou... | [
-0.06122913211584091,
-0.05027550086379051,
0.11084728688001633,
-0.19012406468391418,
-0.09361192584037781,
0.019113505259156227,
0.4524000585079193,
-0.4355679154396057,
0.011986465193331242,
-0.6927453279495239,
-0.013670399785041809,
0.2300269603729248,
-0.11440570652484894,
0.19167058... | |
I would like to pass a pointer (I am putting a file with data in memory with mmap) to processes spawned using fork + exec, but I am stuck on how to pass a pointer to the exec() spawned process?
UPDATE1:
Thanks for your inputs, I do use shared memory creating it with mmap with MAP\_INHERIT flag:
Each mapped file and ... | [
0.06628608703613281,
-0.22126983106136322,
0.24515874683856964,
0.06461179256439209,
0.21392585337162018,
-0.04765494912862778,
-0.28960123658180237,
-0.1689123809337616,
-0.2678411602973938,
-1.0852200984954834,
-0.008358371444046497,
0.3334950804710388,
-0.15889732539653778,
0.2214838266... | |
is homework excercise, but I think I must stop thinking about pointers and think about the IPC itself. I guess I will go with trying to mmap the same file in child process.
Short code example much appreciated.
Thanks in advance for your help.
If you use shared memory, you can't pass the pointer. The pointer will con... | [
0.27029258012771606,
0.019580651074647903,
-0.006745944730937481,
0.3807576298713684,
-0.016883281990885735,
-0.089272640645504,
-0.007820659317076206,
0.01496987696737051,
-0.1888676881790161,
-0.7189342975616455,
0.18919679522514343,
0.35421258211135864,
0.17186176776885986,
-0.121529437... | |
able to access the memory of your process. | [
0.22762629389762878,
0.2522202730178833,
0.06332265585660934,
0.43731340765953064,
-0.03185022622346878,
-0.019778622314333916,
0.08729667961597443,
0.10159128159284592,
-0.11373928934335709,
-0.9015581011772156,
-0.017932578921318054,
0.3584212362766266,
0.3317698538303375,
0.105737105011... | |
I want to set up IIS on an old XP box that I have on our our LAN at work so that I can host some Silverlight stuff on it that I am plying with so I show it to others on the internet. I have a public IP set up already that shoots straight through my firewall and straight to that machine, and I sometimes use Remote Deskt... | [
0.5523886680603027,
0.16840918362140656,
0.258070707321167,
0.028798559680581093,
0.09287601709365845,
-0.14693617820739746,
0.11333070695400238,
-0.015125888399779797,
0.0429818257689476,
-0.903236985206604,
0.031055768951773643,
0.39719828963279724,
-0.24614930152893066,
0.28942450881004... | |
on that machine. I do not want to expose my entire network to risks that I do not understand. So, will it be safe if I let people surf to the public IP address to hit that machine with their web browser?
> So, will it be safe if I let people surf to the public IP address to hit that machine with their web browser?
You... | [
0.5261917114257812,
0.12177138030529022,
-0.031209753826260567,
0.23719529807567596,
0.23189079761505127,
-0.2939661741256714,
0.31599950790405273,
-0.1628701239824295,
-0.2660892903804779,
-0.5387678146362305,
0.423841655254364,
0.7708941102027893,
-0.12260472029447556,
-0.159537494182586... | |
location where you would like to conduct secure transactions (e.g. logging into your bank account).
That said, you can take some high-value, low-cost protective measures:
1. Since you're behind a router, your router can do double duty and act as a firewall. Make sure that only the appropriate ports are open.
2. Make ... | [
0.3848165273666382,
0.015580249950289726,
0.3739318251609802,
0.0960371121764183,
0.5872591137886047,
-0.34580278396606445,
0.3980865776538849,
0.15860866010189056,
-0.3693801164627075,
-0.6789599657058716,
-0.32578420639038086,
0.31840530037879944,
-0.16644452512264252,
-0.065925203263759... | |
minimal.
5. Keep the application in a completely different file root than everything else. | [
0.23490877449512482,
0.1315755695104599,
0.07551908493041992,
0.012851625680923462,
-0.017860542982816696,
-0.27679312229156494,
0.523181676864624,
0.00017260680033359677,
-0.21419768035411835,
-0.8400517702102661,
-0.05092639476060867,
0.6194453835487366,
-0.19859075546264648,
0.036690376... | |
From what I can tell, in Python and and Django, signals are simply delegated events. Is there anything that functionally differentiates them from the typical notion of events in C#, Java, ActionScript, etc?
Actually, "signals" have been around longer than events have. In the earliest usage, a signal was an asynchronous... | [
0.08337891101837158,
-0.2655138671398163,
0.04929158091545105,
-0.038404665887355804,
-0.2735896408557892,
-0.24614867568016052,
-0.11354119330644608,
0.14443311095237732,
-0.3381930887699127,
-0.14480993151664734,
-0.01522202417254448,
0.2511458694934845,
-0.25866103172302246,
0.186771392... | |
Is there a straightforward way to take docbook content and convert it into DokuWiki content? So far I've only found the [DokuWiki plugin](http://www.dokuwiki.org/plugin:docbook) that will interpret docbook content and output it in XHTML, but this happens on every page load.
I would like to find a way to convert docboo... | [
0.4882757067680359,
-0.06767760962247849,
0.27838313579559326,
-0.08409405499696732,
-0.41274887323379517,
-0.26902806758880615,
0.1134229376912117,
-0.04718276858329773,
-0.01152745820581913,
-0.7808298468589783,
-0.14776666462421417,
0.5555410981178284,
-0.5297905802726746,
-0.1767588108... | |
All Gmail users should have already noticed that file upload progress bar has been updated recently.
I'm wondering such effect is possible to implement with GWT.
I'm fairly new with GWT, so if any GWT source code that can help me test out the function would be very helpful.
**Update**
I ended up going with SWFUplo... | [
0.3026702105998993,
-0.0053985449485480785,
0.4725506901741028,
0.1236548200249672,
-0.5840862393379211,
-0.12269192934036255,
0.4156695008277893,
0.3369838297367096,
0.05096104368567467,
-0.8583049178123474,
0.1474572718143463,
0.8052996397018433,
-0.1603909730911255,
-0.02121816389262676... | |
to calculate progress. BTW Swfupload doesn't do well in linux and Mac. | [
-0.18510808050632477,
0.04473643749952316,
0.6401808857917786,
-0.09872538596391678,
-0.048144713044166565,
-0.28417012095451355,
0.1461157351732254,
0.2575732469558716,
0.17486163973808289,
-0.5218430757522583,
0.26159170269966125,
0.5047401785850525,
0.23663267493247986,
-0.0821606069803... | |
are there any particular features in one versus another that would help me decide which to purchase for a winforms app.
I am looking for both memory, cpu, performance bottlenecks.
I red various reviews. Somebody liked [dotTrace](http://www.jetbrains.com/profiler/) and somebody [Ants](http://www.red-gate.com/Products/a... | [
0.36436066031455994,
-0.05093499273061752,
0.15456220507621765,
0.14356759190559387,
0.08719206601381302,
0.22426438331604004,
-0.33182764053344727,
-0.08024106919765472,
-0.050630729645490646,
-0.7846025228500366,
0.5374406576156616,
0.8263292908668518,
0.10682199150323868,
-0.16387005150... | |
In Java, the `java.util.Arrays` class have several static `toString(...)` methods that take an array and return its string representation (i.e. the string representation of the contents of the array separated by commas and the whole representation enclosed in square brackets -- e.g. "[1, 2, 3]").
Is there an equivalen... | [
0.1273593157529831,
-0.13656210899353027,
-0.0010969005525112152,
-0.3502938151359558,
-0.24222861230373383,
-0.17896978557109833,
0.04938691481947899,
-0.345746248960495,
-0.3329586386680603,
-0.31487908959388733,
-0.07658062130212784,
0.30572590231895447,
-0.4887217581272125,
-0.01515192... | |
I have the following arrays:
```
var original= new int[] { 2, 1, 3 };
var target = new int[] { 1, 3, 4 };
enum Operation {Added,Removed}
```
I would like to execute a LINQ query that would return the following:
```
{{2,Removed},{4,Added}}
```
Limitation: I would like LINQ to perform this very efficiently and avo... | [
0.03658024221658707,
0.325435996055603,
0.7195817828178406,
-0.17655238509178162,
-0.1559535562992096,
0.21229393780231476,
-0.011828006245195866,
-0.7313187122344971,
0.20214009284973145,
-0.39642655849456787,
0.027145758271217346,
0.5417840480804443,
-0.2832227647304535,
0.08038197457790... | |
difference.Remove(value);
} else {
difference.Add(value, Operation.Added);
}
}
```
To keep the size of the dictionary down, perhaps it's possible to loop the enumerations in parallell. I'll have a look at that...
Edit:
Here it is:
```
Dictionary<int, Operation> difference = new Dictionary<int,Ope... | [
0.010864612646400928,
-0.05619651824235916,
0.6340171098709106,
-0.4551064670085907,
-0.15010763704776764,
0.45270076394081116,
0.27259355783462524,
-0.6917279958724976,
0.1541786938905716,
-0.44593846797943115,
0.04133710265159607,
0.37581104040145874,
-0.3364352285861969,
0.1502535045146... | |
difference.Remove(o.Current);
} else {
difference.Add(o.Current, Operation.Removed);
}
}
if (tActive && (tActive = t.MoveNext())) {
if (difference.ContainsKey(t.Current)) {
difference.Remove(t.Current);
} else {
difference.Add(t.Current, Operat... | [
0.12291659414768219,
-0.28150320053100586,
0.45470207929611206,
-0.6303296685218811,
-0.1323850303888321,
0.5555773973464966,
0.10696616768836975,
-0.7083000540733337,
0.06788140535354614,
-0.295387327671051,
-0.011522800661623478,
0.25844916701316833,
-0.5307170152664185,
0.45216342806816... | |
}
}
```
Edit2:
I did some performance testing. The first version runs 10%-20% faster, both with sorted lists and randomly ordered lists.
I made lists with numbers from 1 to 100000, randomly skipping 10% of the numbers. On my machine the first version of the code matches the lists in about 16 ms. | [
0.21500854194164276,
-0.022498274222016335,
0.06055924668908119,
-0.29079559445381165,
-0.1001545637845993,
-0.03781624883413315,
0.2251252979040146,
-0.18147166073322296,
-0.11447233706712723,
-0.7788368463516235,
0.2883361279964447,
0.6703875064849854,
-0.5397712588310242,
-0.22719886898... | |
I'm creating an HTML editor, similar to this one I'm typing in right now with the output below. I'm using an iframe and dumping the $htmlTextBox.val() into the body of the iframe.
I'm trying to create a stylesheet inside the iframe so that it looks as good as it works.
Thanks in advance!
```
$htmlTextBox.keyup(funct... | [
0.47189950942993164,
0.04637229070067406,
0.7807202339172363,
-0.1430911123752594,
-0.34430310130119324,
-0.13468234241008759,
0.2384074181318283,
-0.3244774043560028,
0.06111479550600052,
-0.8837860226631165,
-0.09673528373241425,
0.660071849822998,
-0.46278631687164307,
-0.04288706555962... | |
(by writing an iframe-src to point to an empty document with the desired stylesheet), or put it in place with `document.write()`. For example:
```
<body>
<iframe></iframe>
<script type="text/javascript">
var d= frames[0].document;
d.open();
d.write(
'<!DOCTYPE HTML PUBLIC "... | [
0.22878019511699677,
-0.04406934604048729,
0.5527480244636536,
-0.1844152957201004,
-0.05549653619527817,
-0.16108933091163635,
0.02276936173439026,
-0.5648348331451416,
-0.26737701892852783,
-0.6797152757644653,
-0.640536904335022,
0.16119688749313354,
-0.14981609582901,
-0.11532936990261... | |
'body { font-size: 200%; }'+
'<\/style><\/head><body><\/body><\/html>'
);
d.close();
d.body.innerHTML= '<em>Hello</em>';
</script>
</body>
```
(This will also set the iframe document to Standards Mode, assuming that's what you want.) | [
0.09271777421236038,
-0.1490120142698288,
0.8385387659072876,
-0.13589881360530853,
-0.09128251671791077,
0.08251259475946426,
0.09626860916614532,
-0.41364115476608276,
-0.20556361973285675,
-0.7648040056228638,
-0.4425751268863678,
0.3065889775753021,
-0.24439524114131927,
-0.22368986904... | |
I have a old program in which some library function is used and i dont have that library.
So I am writing that program using libraries of c++.
In that old code some function is there which is called like this
\*string = newstrdup("Some string goes here");
the string variable is declared as char \*\*string;
What he ... | [
0.5450388193130493,
0.28237998485565186,
0.36652183532714844,
-0.009370403364300728,
-0.0065934741869568825,
-0.27651211619377136,
0.28810402750968933,
0.12409936636686325,
-0.14882148802280426,
-0.5904942154884338,
0.06592705100774765,
0.43381309509277344,
-0.323377788066864,
0.2435565441... | |
differently. like perhaps a null string returns an empty string.
litb's answer is a replacement for [strdup](http://linux.die.net/man/3/strdup), but I would think there is a reason they did what they did.
If you want to use strdup directly, use a define to rename it, rather than write new code. | [
0.4308748245239258,
-0.057675622403621674,
0.1088867336511612,
-0.15447701513767242,
-0.4790634214878082,
-0.15363413095474243,
0.32097920775413513,
-0.010970952920615673,
-0.07487473636865616,
-0.5769544243812561,
-0.05087677389383316,
0.2929995059967041,
-0.2819303274154663,
0.1400228142... | |
If I understand correctly, UTF-32 can handle every character in the universe. So can UTF-16, through the use of surrogate pairs. So is there any good reason to use UTF-32 instead of UTF-16?
In UTF-32 a unicode character would always be represented by 4 bytes so parsing code would be easier to write than that of a UTF-1... | [
-0.07663289457559586,
0.1866840422153473,
0.34800466895103455,
0.08095627278089523,
-0.2289348691701889,
0.25483378767967224,
0.3990606665611267,
-0.17955583333969116,
-0.2750096619129181,
-0.66627037525177,
-0.2890991270542145,
0.5565575361251831,
-0.4980402886867523,
0.020986178889870644... | |
upon your requirements whether to use UTF-16 or UTF-32. | [
0.3973681926727295,
0.14513279497623444,
0.4694281816482544,
-0.12054182589054108,
0.2822403013706207,
-0.13486850261688232,
0.1394256055355072,
0.44480258226394653,
-0.21403515338897705,
-0.6768313646316528,
-0.6286373138427734,
0.5822335481643677,
-0.23310481011867523,
0.0470714978873729... | |
I have a line in a Django form :
```
{% for aa in my_array %}
```
which seems to be triggering this error :
> Template error
>
>
> Caught an exception while rendering:
> Reverse for
> 'dev\_env.profiles.views.viewPlan' with
> arguments '('',)' and keyword
> arguments '{}' not found.
What does this error mes... | [
0.166433647274971,
0.32602888345718384,
0.2976435124874115,
-0.2234717458486557,
-0.18462690711021423,
0.03079395927488804,
0.4092099368572235,
0.05339350923895836,
-0.19035571813583374,
-0.6229943037033081,
0.24208346009254456,
0.43111371994018555,
-0.15763573348522186,
0.1721064746379852... | |
a couple of lines away (so the reported error line was wrong), but the error was triggered because planId was empty in this case.
Do you have a view named `viewPlan` with which you do something like this in a template:
```
{% url viewPlan %}
```
or something like this in a view:
```
reverse('viewPlan')
```
If you... | [
0.21309585869312286,
-0.15784749388694763,
0.5438539981842041,
-0.0614897720515728,
-0.0269765742123127,
0.04660338908433914,
0.27769288420677185,
0.02331128530204296,
-0.08005635440349579,
-0.5971159934997559,
0.052216846495866776,
0.46030014753341675,
-0.15887218713760376,
-0.08147971332... | |
when reversing the url. So if you are capturing any values in the regex, like this:
```
url(r'^plans/(\d+)$', 'dev_env.profiles.views.viewPlan', name="viewPlan"),
```
You need to call it like this:
```
{% url viewPlan 15 %}
```
Or like this:
```
reverse('viewPlan', args=[15]);
```
Where `15` is obviously whate... | [
0.08379514515399933,
-0.11727011948823929,
0.7364329099655151,
-0.2734060287475586,
0.021259181201457977,
0.0706605389714241,
-0.07995579391717911,
0.007779027335345745,
-0.23766842484474182,
-0.4807145893573761,
-0.376751571893692,
0.6530928015708923,
-0.2341424822807312,
0.09966790676116... | |
Im trying to run some logparser commands from powershell but Im having issues with passing the arguments across correctly, heres the excert from my script;
d:\scripting\smtplogs\logparser\logparser.exe "SELECT TOP 50 Receiver, COUNT(*) INTO %TMPOutput%\TopReceiversNDRALL.gif FROM %TempDir%\PostAll.log WHERE Sender LIK... | [
-0.16939686238765717,
-0.10337744653224945,
0.6530674695968628,
0.04405975714325905,
-0.0495481863617897,
0.15515625476837158,
0.6841557025909424,
-0.4060143530368805,
-0.043295376002788544,
-0.5113305449485779,
-0.2586785554885864,
0.6410205960273743,
-0.27281031012535095,
-0.190325766801... | |
using powershell [here-strings](http://www.microsoft.com/technet/scriptcenter/resources/pstips/jun07/pstip0629.mspx) so that you wouldn't have to worry about escaping single/double quotes
***UPDATE1***: I couldn't get the fomratting working so here is the screenshot.
 and when i go into a command window and type PATH it shows the location in it. But when I go to run Ant by typing "ant" it does nothing and states that it isn't recognized.... | [
0.09304984658956528,
0.09591209888458252,
0.5133880376815796,
-0.28994300961494446,
-0.010202325880527496,
0.10957322269678116,
0.8195421099662781,
-0.047962937504053116,
-0.3109032213687897,
-1.0613288879394531,
0.04893666133284569,
0.6119698286056519,
-0.36052456498146057,
0.168062478303... | |
"Running as Administrator" with no difference.
Any one experience anything like this before?
Sometimes you can set a system-wide (or even just personal) Environment Variable and it'll cure it, as opposed to just setting it in your shell.
Go to the Control-panel, then System, then Advanced, and look for the button on... | [
0.33563143014907837,
-0.31337597966194153,
0.11452971398830414,
0.34632131457328796,
-0.15227660536766052,
-0.21679019927978516,
0.5618746280670166,
0.06923546642065048,
-0.43399184942245483,
-0.45293691754341125,
0.23642434179782867,
0.7137491106987,
-0.19362248480319977,
0.05503301322460... | |
I'm sending xml to another program, which expects boolean flags as "yes" or "no", rather than "true" or "false".
I have a class defined like:
```
[XmlRoot()]
public class Foo {
public bool Bar { get; set; }
}
```
When I serialize it, my output looks like this:
```
<Foo><Bar>true</Bar></Foo>
```
But I would l... | [
0.14621782302856445,
0.13499796390533447,
0.5595109462738037,
-0.14583121240139008,
-0.22661378979682922,
-0.12550422549247742,
-0.08086636662483215,
-0.18250884115695953,
-0.03130076825618744,
-0.46392393112182617,
-0.32033973932266235,
0.26279348134994507,
-0.5630839467048645,
0.16702087... | |
return (Bar) ? "yes" : "no"; } }
}
```
Note that I also want to be able to *deserialize* this data back again.
Ok, I've been looking into this some more. Here's what I've come up with:
```
// use this instead of a bool, and it will serialize to "yes" or "no"
// minimal example, not very robust
public struct YesNo : ... | [
0.026381313800811768,
0.09585130959749222,
0.26804134249687195,
-0.16405779123306274,
-0.18056543171405792,
0.023580262437462807,
0.395654559135437,
0.1411387175321579,
0.058311641216278076,
-0.49391046166419983,
-0.11748792231082916,
0.6630116701126099,
-0.44906532764434814,
0.09076745063... | |
yn.Value;
}
public static implicit operator YesNo(bool b) {
return new YesNo() {Value = b};
}
// implement IXmlSerializable
public XmlSchema GetSchema() { return null; }
public void ReadXml(XmlReader reader) {
Value = (reader.ReadElementContentAsString() == "yes");
}
pub... | [
-0.11593036353588104,
0.14555755257606506,
0.7658371329307556,
-0.3364909291267395,
-0.019910728558897972,
0.06859515607357025,
0.3341919183731079,
-0.27733471989631653,
0.1272880584001541,
-0.4993491470813751,
-0.28914809226989746,
0.6992803812026978,
-0.46491286158561707,
0.2425642758607... | |
class to this:
```
[XmlRoot()]
public class Foo {
public YesNo Bar { get; set; }
}
```
Note that because `YesNo` is implicitly castable to `bool` (and vice versa), you can still do this:
```
Foo foo = new Foo() { Bar = true; };
if ( foo.Bar ) {
// ... etc
```
In other words, you can treat it like a b... | [
0.048922691494226456,
-0.008408069610595703,
0.2773636281490326,
-0.08351065218448639,
-0.004033700097352266,
-0.3174192011356354,
0.1927902102470398,
-0.09845959395170212,
-0.04420827329158783,
-0.3900604546070099,
-0.1951969414949417,
0.6213387846946716,
-0.4192507565021515,
0.1939744204... | |
yet. Anyone? | [
0.501173198223114,
0.17039109766483307,
0.07536406069993973,
0.19457946717739105,
-0.03203822299838066,
-0.30766376852989197,
0.11957186460494995,
0.08098886907100677,
-0.34038546681404114,
0.041958123445510864,
-0.010501540265977383,
0.21560129523277283,
-0.08294281363487244,
-0.067493289... | |
Is there any Open Source Code availbale for makeing A SIP Dialer in C# or any other language
Yes, take a look at [PJSIP](http://www.pjsip.org/). It is implemented in very portable C. But it also has a number of wrappers in other languages, like this [.NET wrapper](http://sipekphone.googlepages.com/pjsipwrapper).
PJS... | [
0.09256341308355331,
-0.31198573112487793,
0.6287211179733276,
0.382034033536911,
-0.16188038885593414,
-0.18522843718528748,
0.2606236934661865,
0.030580224469304085,
-0.28173014521598816,
-0.6757178902626038,
-0.12481724470853806,
0.30635637044906616,
-0.4278394877910614,
-0.101575858891... | |
I have an private List and I want to expose the ability to query the List and return a new List with new cloned items. I can pass in delegates for filtering and sorting, which works fine, but being able to use Linq expressions would be much more elegant.
I've added an simplified example of what I'm trying to do, whic... | [
0.2701132893562317,
0.03184827044606209,
0.26572856307029724,
0.2470174878835678,
-0.044846128672361374,
-0.031091246753931046,
0.1330636739730835,
-0.19654224812984467,
-0.31742480397224426,
-0.68572598695755,
-0.1096402183175087,
0.5566196441650391,
-0.1755858212709427,
0.207031667232513... | |
{
List<SomeModel> models;
lock (_lock)
{
models = _models.Where(m => predicate(m))
.Select(m => new SomeModel(m)) | [
-0.1510995775461197,
-0.3497184216976166,
0.5627791881561279,
-0.08903569728136063,
0.32481008768081665,
0.18765971064567566,
0.11096421629190445,
-0.2574778199195862,
-0.5680895447731018,
-0.6248730421066284,
-0.35221195220947266,
0.6710286736488342,
-0.46860653162002563,
0.23803712427616... | |
.ToList();
}
return models;
}
}
```
You could expose the private collection as an iterator block by doing something like this:
```
public IEnumerable<Model> Models
{
get
{
foreach (Model mod in this._models)
yield return new Model(mod);
// equivalent to:
... | [
-0.022649487480521202,
-0.27101296186447144,
0.5138846635818481,
-0.10052672028541565,
0.14567765593528748,
-0.11687889695167542,
0.1567298322916031,
-0.5678243041038513,
-0.3669643998146057,
-0.7081225514411926,
-0.3456624746322632,
0.8561739325523376,
-0.3427411913871765,
0.2241571098566... | |
// as per Jon's comment
}
}
```
Which would give you the ability to then write queries against it like any other IEnumerable datasource. | [
0.04965243116021156,
0.11904630810022354,
0.21937455236911774,
0.1487741470336914,
0.06611023098230362,
-0.3999367952346802,
0.12579676508903503,
0.2020305097103119,
0.19358165562152863,
-0.5307113528251648,
-0.03675643354654312,
0.627485990524292,
-0.16230443120002747,
0.11394352465867996... | |
If I have a button that sets off a jquery script is there a way to make sure the button is inactive until the script completes?
Somewhere at the beginning of your script (probably on the button's click event), set the button's disabled attribute to true:
```
$("#mybutton").attr("disabled", true);
```
Then, when comp... | [
0.4331319034099579,
-0.10680122673511505,
0.7780852317810059,
-0.2952865958213806,
0.06289851665496826,
0.22775277495384216,
0.35940122604370117,
-0.23674269020557404,
-0.15789087116718292,
-0.6469295024871826,
-0.37113699316978455,
0.6585884094238281,
-0.3416401743888855,
-0.1041481345891... | |
"Please wait...");
$(this).attr("disabled", true);
//Do your processing.
$(this).removeAttr("disabled");
$(this).attr("value", origVal);
});
``` | [
-0.042919423431158066,
-0.015313377603888512,
0.5815638899803162,
-0.20931054651737213,
0.4423692524433136,
0.07520531862974167,
0.3999938666820526,
-0.1467004418373108,
-0.2028314471244812,
-0.2336840182542801,
-0.5173995494842529,
0.7742464542388916,
-0.364009827375412,
0.197143211960792... | |
When maintaining networks, it is often an expedient thing to do to run a transparent proxy. By transparent proxy I mean a proxy that 'hijacks' outgoing connections and runs them through a local service. Specifically I run a linux firewall with squid configured so that all tcp/ip connections fowarded on port 80 are prox... | [
0.11411567032337189,
-0.008964966051280499,
0.475534051656723,
0.30610233545303345,
-0.19964754581451416,
-0.33023905754089355,
0.11516012996435165,
0.1126280352473259,
-0.4422207176685333,
-0.8340293765068054,
0.06897283345460892,
0.6214649677276611,
-0.29799678921699524,
0.21433195471763... | |
is with the TPROXY rule in iptables, documentation is available here:
* <http://wiki.squid-cache.org/Features/Tproxy4#IPv6_Support>
* <http://www.mjmwired.net/kernel/Documentation/networking/tproxy.txt>
This should be supported Squid (>= version 3.2). Using `--enable-linux-netfilter` and the `iptables -t mangle -j TP... | [
0.24709109961986542,
-0.19218312203884125,
0.2671109735965729,
-0.12469150125980377,
-0.18281477689743042,
-0.4377951920032501,
0.11625275015830994,
-0.24014219641685486,
-0.295464426279068,
-0.466684490442276,
-0.3753472566604614,
0.5986530780792236,
-0.4253425598144531,
-0.08216475695371... | |
In MVC RC2 I am returning an anonymous object type & I want to access it in a strongly typed view.
Let's say that in the controller I query the database & fetch values in **var** type & I want to pass it to a strongly typed view. How can i access it in that view?
See [this page](http://en.allexperts.com/q/Javascript-15... | [
-0.2321304976940155,
-0.14903660118579865,
0.6358829140663147,
-0.21349948644638062,
-0.13609540462493896,
-0.39301660656929016,
0.20214001834392548,
-0.17920690774917603,
-0.36974093317985535,
-0.4110133647918701,
-0.14452120661735535,
0.6596038341522217,
-0.4955790936946869,
0.3095794618... | |
I am new to `iphone` application development.
I have a sample application that needs to be launched from a **SMS message**. I have no idea on how to do this. Please help me.
Allow your application to respond to some url (eg: myapp://launch ) and include the url in the SMS, when the user launches that URL your applicat... | [
0.4768224060535431,
0.3322615623474121,
0.41319379210472107,
-0.05513795465230942,
-0.14985215663909912,
-0.05091891810297966,
0.2688896358013153,
0.1564953774213791,
-0.22042499482631683,
-0.5215069055557251,
-0.027847379446029663,
0.5062274932861328,
-0.1828763633966446,
0.02089853771030... | |
scheme and you will find lots of detail on how to implement this
here is an [example](http://inchoo.net/iphone-development/launching-application-via-url-scheme/) | [
0.42236948013305664,
-0.10764726251363754,
0.5136916041374207,
-0.3903901278972626,
0.04840677231550217,
-0.18073159456253052,
0.07457459717988968,
-0.20202603936195374,
-0.4390326142311096,
-0.3144240081310272,
-0.22351442277431488,
0.22204017639160156,
-0.2354787439107895,
-0.35947987437... | |
I have a VARCHAR field in a Firebird 2.0 table that can contain alphanumeric characters. I need to sort data on this field, sorting all values that contain only numbers as numbers, and sort all other values as 0.
For example, if I have four values,
```
"1", "2", "10", "string",
```
I need to sort it as
```
"st... | [
-0.09127409011125565,
0.2752886116504669,
0.3517700135707855,
-0.30860042572021484,
-0.04500434547662735,
0.3475327789783478,
0.1330595761537552,
-0.4086199700832367,
0.006278011482208967,
-0.4530884623527527,
-0.020316405221819878,
0.66877281665802,
-0.2842201590538025,
-0.039095383137464... | |
...
<number_field>,
...
FROM
...
ORDER BY
LPAD(<numer_field>, 10)
``` | [
-0.25265389680862427,
0.35093146562576294,
0.24250568449497223,
-0.08993230015039444,
0.1864260584115982,
0.2117164582014084,
-0.15592704713344574,
-0.36945831775665283,
-0.33999118208885193,
-0.25048524141311646,
-0.49636197090148926,
0.2426486760377884,
-0.2824523448944092,
0.28482997417... | |
i'm currently in the process of modifying a legacy editor application and i need to add in a few data structures which i have made into a class of it's own which i later add to a collection object. but thus far i'm little bit blurry on where to put all of my functions which is related to that object. i'm thinking maybe... | [
0.15235912799835205,
0.18890540301799774,
0.4731433391571045,
-0.007643603719770908,
0.009138508699834347,
-0.11963709443807602,
0.12092641741037369,
-0.07477156817913055,
-0.30563730001449585,
-0.5844969749450684,
-0.03402506187558174,
0.5670191645622253,
-0.10155210644006729,
0.340184837... | |
whatever which i can learn more about how to properly design for vb6 app? for the current work and for future work i guess.
thanks.
Are you familiar with Rocky Lhotka's work? I would recommend reading Visual Basic 6 Business Objects.
> *Visual Basic 6 Business Objects* provides a thorough introduction to employing ob... | [
0.4679434597492218,
0.4657471477985382,
-0.11261612176895142,
0.2161383032798767,
-0.16413936018943787,
0.26962992548942566,
0.19074225425720215,
0.27281203866004944,
-0.35095953941345215,
-0.40517500042915344,
0.029540926218032837,
0.5007884502410889,
-0.08851337432861328,
-0.242298170924... | |
Before meeting with Ajax and Jquery, in my projects I had a function like below.
```
Public Sub Raise_Alarm(ByVal p_Page As Page, ByVal p_Message As String, Optional ByVal p_IsError As Boolean = True)
strScript = "<script language= ""javascript""> alert('" & p_Message.Replace("'", "") & "')</script>"
Dim t As Ty... | [
-0.04769851639866829,
-0.11637945473194122,
0.640085756778717,
-0.3770000636577606,
-0.3469209671020508,
-0.1970677673816681,
0.30732133984565735,
-0.3999486267566681,
-0.33553069829940796,
-0.691847026348114,
0.08118883520364761,
0.5446978807449341,
-0.45599278807640076,
-0.12230595201253... | |
fired when you press ctrl+r (i.e. on refresh) so just check this out. | [
-0.2681425213813782,
0.12472916394472122,
0.40631014108657837,
-0.0771046057343483,
0.1946820765733719,
-0.09377633035182953,
0.43330642580986023,
-0.12668853998184204,
-0.46110978722572327,
-0.2476227879524231,
-0.1009598970413208,
0.8538174629211426,
-0.07355932146310806,
-0.001507183187... | |
I have a data that looks like this:
```
>day11:1:356617
ACTTCTGATTCTGACAGACTCAGGAAGAAACCAT
>day11:2:283282
CTCAGCCCGTAGCCCGTCGGTTCCGGAGTAAGTT
>day11:3:205058
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
>day11:4:202520
AGTTCGATCGGTAGCGGGAGCGGAGAGCGGACCC
>day11:5:107099
AGGCATTCAGGCAGCGAGAGCAGAGCAGCGTAGA
>day11:6:106715
CTCTTTGC... | [
-0.15284837782382965,
-0.186711847782135,
0.9231358170509338,
0.11566684395074844,
0.16754668951034546,
-0.023120025172829628,
0.2653014659881592,
-0.14370334148406982,
-0.1840171217918396,
-0.812181293964386,
-0.06049148365855217,
0.3252975046634674,
-0.3329097628593445,
0.243427932262420... | |
{
stringstream ss(line);
string Fasta;
string Header = "";
string Tag = "";
ss >> Fasta; // read first column
if ( Fasta[0] == '>') { | [
-0.43304428458213806,
-0.6650183200836182,
0.5509485006332397,
-0.39583882689476013,
-0.08665280044078827,
0.2748061418533325,
0.21766307950019836,
-0.1190517470240593,
0.044888559728860855,
-0.4456287920475006,
-0.6607442498207092,
0.2659792900085449,
-0.34594419598579407,
-0.299120515584... | |
// get header only
Header = Fasta.substr(1);
//cerr << Header << endl;
}
else {
Tag = Fasta; | [
0.06270499527454376,
-0.5909976959228516,
0.18090812861919403,
-0.12770049273967743,
-0.027948511764407158,
-0.18740709125995636,
0.1635061651468277,
-0.1648123562335968,
0.025309430435299873,
-0.5639225840568542,
-0.6100988984107971,
0.24953681230545044,
-0.4611484110355377,
-0.0838494226... | |
}
if (Header != "" || Tag != "") {
FastaMap[Header] = Tag;
//cout << "TAG: " << Tag << endl;
//cout << "Head: " << Header << endl; | [
-0.46279266476631165,
-0.5654178261756897,
0.5460938811302185,
-0.15052743256092072,
0.4867798388004303,
-0.25505051016807556,
-0.2015216201543808,
-0.16973811388015747,
0.09102284908294678,
-0.45498910546302795,
-0.47080710530281067,
0.61289381980896,
-0.4268260598182678,
-0.2729466557502... | |
// FastaMap.insert(make_pair(Header,Tag));
}
}
myfile.close();
}
else {
cout << "Unable to open file";
}
// This doesn't print the second value, only prints the first
for (map<string,string>::iterator it = FastaMap.begin(); it!= | [
-0.48354068398475647,
-0.5831969976425171,
0.4036240875720978,
-0.0711209625005722,
0.5124547481536865,
0.058069150894880295,
0.09809411317110062,
-0.1614883542060852,
-0.22947858273983002,
-0.5925816297531128,
-0.43582695722579956,
0.5296279191970825,
-0.4381650686264038,
-0.2094600647687... | |
FastaMap.end(); it++) {
cout << "Head: " << (*it).first << ", End: " << (*it).second << endl;
}
}
```
The expected output is:
```
Head: day11:1:356617, End: ACTTCTGATTCTGACAGACTCAGGAAGAAACCAT
Head: day11:2:283282, End: CTCAGCCCGTAGCCCGTCGGTTCCGGAGTAAGTT
...etc...
```
You're cleaning `Fasta`, `Header` ... | [
-0.385815292596817,
-0.4856474995613098,
0.7583245635032654,
-0.08876164257526398,
0.4887232780456543,
-0.13877035677433014,
0.21991732716560364,
-0.12989173829555511,
-0.34216293692588806,
-0.511782705783844,
-0.3798584043979645,
0.5436506867408752,
-0.41900235414505005,
-0.11513235419988... | |
<iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <map>
using namespace std;
int main() {
string line;
ifstream myfile ("test");
map <string,string> FastaMap;
cerr << "Read Fasta File to Map" << endl;
if (myfile.is_open())
{
st... | [
-0.20142734050750732,
-0.5123924016952515,
0.3770517110824585,
-0.3407041132450104,
0.15468966960906982,
0.2545519471168518,
0.21412158012390137,
-0.07006919384002686,
0.13403329253196716,
-0.7838294506072998,
-0.4362582862377167,
0.41167205572128296,
-0.5611463189125061,
-0.25981160998344... | |
string Header = "";
string Tag = "";
while (getline(myfile,line) )
{
stringstream ss(line); | [
-0.0837007537484169,
-0.7183252573013306,
0.6072245836257935,
-0.3572463095188141,
0.2128312736749649,
0.020329486578702927,
0.4452171325683594,
-0.24069121479988098,
-0.06274241954088211,
-0.41128984093666077,
-0.5706131458282471,
0.42217037081718445,
-0.35835790634155273,
0.0772156342864... | |
ss >> Fasta; // read first column
if ( Fasta[0] == '>') {
// get header only | [
-0.25394362211227417,
-0.5713570713996887,
0.19705183804035187,
-0.09091667085886002,
-0.30002087354660034,
-0.07035192102193832,
0.11053311824798584,
-0.09231637418270111,
0.01718791574239731,
-0.6074666976928711,
-0.44359368085861206,
0.11457588523626328,
-0.4573911130428314,
-0.30312794... | |
Header = Fasta.substr(1);
//cerr << Header << endl;
}
else { | [
-0.07872241735458374,
-0.4630638062953949,
-0.017947526648640633,
-0.06335058808326721,
0.017002690583467484,
-0.0075867497362196445,
0.10502114146947861,
-0.1065978854894638,
-0.16673552989959717,
-0.49667131900787354,
-0.4107908308506012,
0.18710190057754517,
-0.3563264310359955,
0.06334... | |
Tag = Fasta;
}
if (Header != "" && Tag != "") { | [
-0.2569287419319153,
-0.5737501978874207,
-0.07118120044469833,
-0.13916024565696716,
0.26781100034713745,
-0.26570266485214233,
0.16029846668243408,
-0.26137569546699524,
-0.04266372323036194,
-0.1893061250448227,
-0.5251766443252563,
0.641202449798584,
-0.3710937798023224,
-0.26960408687... | |
FastaMap[Header] = Tag;
cout << "TAG: " << Tag << endl;
cout << "Head: " << Header << endl; | [
-0.5771624445915222,
-0.6575713753700256,
0.35811179876327515,
0.094111368060112,
0.22661276161670685,
-0.05385962873697281,
-0.24145051836967468,
0.0469554178416729,
-0.24507489800453186,
-0.36017411947250366,
-0.5615524053573608,
0.2991223931312561,
-0.5731144547462463,
-0.22758148610591... | |
Header = "";
Tag = "";
// | [
0.14725250005722046,
0.042930878698825836,
-0.24431568384170532,
0.03369995206594467,
-0.06543081253767014,
-0.2208750694990158,
-0.03746309503912926,
0.12163529545068741,
0.017443165183067322,
0.030423825606703758,
-0.36992761492729187,
0.24258719384670258,
-0.1870565563440323,
0.12549923... | |
FastaMap.insert(make_pair(Header,Tag));
}
}
myfile.close();
}
else {
cout << "Unable to open file"; | [
-0.2768687903881073,
-0.3093389868736267,
0.3182670474052429,
-0.12933140993118286,
0.5570102334022522,
0.031418364495038986,
0.32145240902900696,
0.2335825264453888,
0.014184710569679737,
-0.5192427039146423,
-0.5779058933258057,
0.47970902919769287,
-0.5794165134429932,
0.150148794054985... | |
}
// This doesn't print the second value, only prints the first
for (map<string,string>::iterator it = FastaMap.begin(); it!=
FastaMap.end(); it++) {
cout << "Head: " << (*it).first << ", End: " << (*it).second << endl;
}
}
```
Note there are other possi... | [
-0.4655921459197998,
-0.571944534778595,
0.4645381569862366,
-0.16512276232242584,
0.4084438681602478,
0.08263371139764786,
-0.06547830998897552,
-0.2540284991264343,
-0.2920646667480469,
-0.5597066283226013,
-0.33400020003318787,
0.7086896300315857,
-0.21450644731521606,
-0.17795301973819... | |
to the code, but as it is now works. | [
0.43102219700813293,
0.17461146414279938,
0.32196325063705444,
0.07161130756139755,
0.12722048163414001,
-0.038490187376737595,
0.37083765864372253,
0.023372361436486244,
-0.1081867590546608,
-0.5012806057929993,
-0.31145763397216797,
0.4975079894065857,
-0.07831387221813202,
0.11021483689... | |
I have two Access 2003 databases (`fooDb` and `barDb`). There are four tables in `fooDb` that are linked to tables in `barDb`.
Two questions:
* How do I update the table contents (linked tables in `fooDb` should be synchronized with the table contents in `barDb`)
* How do I re-link the table to a different `barDb` us... | [
0.23333638906478882,
0.49987828731536865,
0.08887453377246857,
0.20649738609790802,
-0.10803195834159851,
0.12071068584918976,
-0.10591769218444824,
0.011687974445521832,
0.05004777014255524,
-0.9411391615867615,
0.1279602199792862,
0.5380810499191284,
-0.12976907193660736,
0.1473500132560... | |
want to access the data and then code the updates.
I've coded this kind of thing in Access many times, and my approach for each table is:
1. run a query that deletes from fooDB that no longer exist in barDB.
2. run a query that inserts into fooDB records that are in barDB that do not yet exist in fooDB.
3. I always u... | [
0.37807103991508484,
0.19723886251449585,
0.06514903903007507,
-0.1298944056034088,
-0.17090348899364471,
-0.06984830647706985,
-0.043388962745666504,
-0.1924009472131729,
-0.010559682734310627,
-0.7990461587905884,
0.36337244510650635,
0.7742378115653992,
-0.3139726221561432,
-0.253429323... | |
like this:
```
UPDATE table2 INNER JOIN table1 ON table2.ID = table1.ID
SET table2.field1=table1.field1
WHERE (table2.field1 & "") <> (table1.field1 & "")
```
For numeric fields you'd have to use your available SQL dialect's function for converting Null to zero. Running Jet SQL, I'd use Nz(), of course, but that doe... | [
-0.0003876285336446017,
0.09677442163228989,
0.41748082637786865,
-0.03430256247520447,
-0.15612740814685822,
-0.1281028389930725,
0.10694348812103271,
-0.18701976537704468,
-0.17644153535366058,
-0.4538148045539856,
0.04968881607055664,
0.8340460658073425,
-0.5696401000022888,
-0.04984785... | |
I need help with the question above. Also, how can I ensure that the application installs for all users using the machine? I haven't really used WiX before.
If you're coding in C#, then Access is not involved, only Jet. So, you can use whatever method you want to access the data and then code the updates.
I've coded t... | [
0.6170502305030823,
0.2195308655500412,
-0.02898579090833664,
0.08360061049461365,
0.18680335581302643,
-0.18015561997890472,
0.06666814535856247,
0.03782827779650688,
0.0028240270912647247,
-1.06840980052948,
0.2439919114112854,
0.5188467502593994,
-0.3394605815410614,
0.06701786816120148... | |
yet exist in fooDB.
3. I always use code that writes on-the-fly SQL to update the fooDB table with the data from barDB.
The 3rd one is the hard one. I loop through the fields collection in DBA and write SQL on the fly that would be something like this:
```
UPDATE table2 INNER JOIN table1 ON table2.ID = table1.ID
SET ... | [
0.26534512639045715,
0.47153523564338684,
0.2464379519224167,
-0.21159441769123077,
-0.2314644604921341,
-0.09032515436410904,
0.05376913771033287,
-0.13574770092964172,
0.13037584722042084,
-0.5559819936752319,
0.4035814702510834,
0.765496551990509,
-0.11094397306442261,
0.051000900566577... | |
with OLEDB, though.
In any event, the point is to issue a bunch of column-by-column SQL updates instead of trying to do it row by row, which will be much less efficient. | [
0.08401570469141006,
0.07154196500778198,
0.36083438992500305,
0.17921234667301178,
-0.243652805685997,
-0.5588628053665161,
0.10728910565376282,
0.07789099961519241,
-0.08011997491121292,
-0.3049235939979553,
-0.06622342765331268,
0.5160908102989197,
-0.7492868900299072,
-0.00106833910103... | |
I am writing a Perl program that sends and receives messages from two sockets and acts as a switch. I have to modify the received messages received from one socket, prepend 3 bytes to the data, and finally send the modified messages to another socket. I adopt select()...sysread()...syswrite() mechanism to poll for mess... | [
0.3150152564048767,
0.0648403987288475,
0.61468106508255,
-0.22246408462524414,
-0.18945929408073425,
0.2884387969970703,
0.24810808897018433,
-0.2730000615119934,
-0.2507576644420624,
-0.6432778835296631,
-0.12777133285999298,
0.31005069613456726,
-0.4542834460735321,
0.21607671678066254,... | |
message in @msg into a scalar(such as $buffer) and send it to another socket by syswrite(). Can anybody help me? Thank you in advance!
BTW, are messages in $buffer binary?
Yes, messages in $buffer are binary (if I'm guessing what you mean by that correctly). If your only reason for unpacking it into @msg is to insert ... | [
0.04209307208657265,
-0.0957963615655899,
0.35552993416786194,
-0.09578120708465576,
-0.08039162307977676,
0.07785917818546295,
0.32480594515800476,
0.30907878279685974,
-0.31841951608657837,
-0.7239806652069092,
-0.3052671551704407,
0.27277007699012756,
-0.567284345626831,
-0.048968955874... | |
before writing it out, or you could use substr or pack or split
or vec or a regex to parse out the pieces you need. You'd need to describe what you
are doing to get more specific help. | [
0.34157508611679077,
0.10482916235923767,
0.03765955567359924,
0.3524416387081146,
-0.052934616804122925,
-0.1806948184967041,
-0.1123151108622551,
-0.09553540498018265,
-0.2647746801376343,
-0.6325305700302124,
-0.06870189309120178,
0.1512879878282547,
-0.004478533286601305,
-0.3275921344... | |
Visio 2007 support reverse engineering a MSSQL Database. However, SQL2008 is not supported ([link](https://stackoverflow.com/questions/92811/reverse-engineering-for-database-diagramming-in-visio-with-sql-server-2008/583227)).
Are there other (free?) tools that can do this?
thx.
The SQL Server Management Studio Tool c... | [
-0.3476172089576721,
-0.04240234196186066,
0.39798206090927124,
-0.08019573986530304,
-0.28025802969932556,
-0.12831826508045197,
0.4368378520011902,
-0.27385348081588745,
0.01886172592639923,
-0.21305547654628754,
-0.042469147592782974,
0.5853241682052612,
-0.22718274593353271,
0.00290440... | |
On a canvas I have an ellipse rotated by a RotateTransform through animation. I wish to add a line with one end attached to a point on the ellipse. Can I somehow bind to a point on the ellipse?
You can animate both the Ellipse and the line together, like so:
```
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/x... | [
0.05274495854973793,
-0.39359250664711,
1.006921410560608,
0.04364253208041191,
-0.3607085943222046,
0.3905724585056305,
-0.10526296496391296,
-0.5260096788406372,
-0.5639286041259766,
-0.5632118582725525,
0.0705060064792633,
-0.001054016058333218,
0.056939586997032166,
-0.1418706476688385... | |
<ArcSegment IsLargeArc="True" Point="25,50" Size="25,25" SweepDirection="Clockwise"/>
</PathFigure>
</PathGeometry>
</Canvas.Resources>
<Canvas.Triggers>
<EventTrigger RoutedEvent="Canvas.Loaded">
<BeginStoryboard>
<Storyboard> | [
0.03758963942527771,
-0.6994198560714722,
0.5613659024238586,
0.04198307543992996,
-0.03662654384970665,
-0.11995334923267365,
0.18600308895111084,
-0.46832266449928284,
-0.6095831990242004,
-0.44822317361831665,
0.12936455011367798,
0.41421762108802795,
0.191057026386261,
-0.2692883908748... | |
<DoubleAnimation Duration="0:0:5" From="0" RepeatBehavior="Forever" Storyboard.TargetName="rotTF" Storyboard.TargetProperty="Angle" To="360"/>
<PointAnimationUsingPath Duration="0:0:5" PathGeometry="{StaticResource lineEndPath}" RepeatBehavior="Forever" Storyboard.TargetName="lineEndPoint" Storyboar... | [
0.2721627652645111,
-0.3862968683242798,
0.5696980357170105,
-0.1389876753091812,
0.1288549154996872,
0.23040814697742462,
0.22273002564907074,
-0.3828098177909851,
-0.25361764430999756,
-0.42770832777023315,
0.17355938255786896,
0.3941997289657593,
-0.046156082302331924,
0.162429794669151... | |
<RotateTransform x:Name="rotTF" CenterX="37.5" CenterY="25"/>
</Ellipse.RenderTransform>
</Ellipse>
<Path Stroke="Black" StrokeThickness="1.0">
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="0,0">
<LineSegment x:Name="lineEndPoint"/>
... | [
-0.47506868839263916,
-0.4262653887271881,
1.0276657342910767,
-0.11191555857658386,
-0.11036691814661026,
0.4729233980178833,
-0.22962400317192078,
-0.16316179931163788,
-0.17615336179733276,
-0.7695125341415405,
0.06009417399764061,
0.3417491614818573,
-0.056386541575193405,
-0.120170578... | |
</PathGeometry>
</Path.Data>
</Path>
<Path Data="{StaticResource lineEndPath}" Stroke="Black" StrokeDashArray="2,0,0" StrokeThickness="1.0"/>
</Canvas>
```
We animate one end of a [LineSegment](http://msdn.microsoft.com/en-us/library/system.windows.media.linesegment.aspx) with a [PointAnimationUsingPa... | [
-0.09236965328454971,
-0.4883488118648529,
0.8624997735023499,
-0.035995349287986755,
-0.15457791090011597,
0.2540203630924225,
0.05287051945924759,
-0.5322743654251099,
-0.20840507745742798,
-0.7430044412612915,
-0.044123608618974686,
-0.03458842262625694,
-0.1695612370967865,
-0.04084638... | |
How can I implement conditional lock in threaded application, for instance I haw
30 threads that are calling function and for most off the time all threads can access is simultaneous, but depending on function input there can be condition when only one thread can do that one thing. (If value for input is repeated and ... | [
0.27051395177841187,
-0.17625725269317627,
0.20693184435367584,
-0.13996019959449768,
-0.06861265748739243,
-0.26795533299446106,
0.4614146947860718,
-0.5553151965141296,
-0.3534030318260193,
-0.44960907101631165,
0.13488826155662537,
0.8166510462760925,
-0.3904094099998474,
0.032438885420... | |
two threads from running the same function with the same argument at the same time. (Thanks to David for helping me formulate my question :) )
Try this: have a lock in the module where your function is, and if the input to the function is such that locking is required, acquire the lock inside the function. Otherwise do... | [
0.2095024287700653,
-0.31777533888816833,
0.21437638998031616,
-0.16325533390045166,
0.470765620470047,
-0.47044482827186584,
0.21688181161880493,
-0.31198495626449585,
-0.277176171541214,
-0.4248066842556,
-0.3287133276462555,
0.6336486339569092,
-0.5372062921524048,
-0.09895797073841095,... | |
finally:
l.release()
else:
# do other stuff
```
---
*EDIT*:
As far as I can tell now, the question is actually about how to prevent any two threads from running the same function with the same argument at the same time. There's no problem with two threads running the same function with diffe... | [
0.3321155607700348,
-0.08129342645406723,
0.22423936426639557,
-0.05756629630923271,
0.10756651312112808,
-0.2876133620738983,
0.2623034417629242,
0.17022986710071564,
-0.2026655673980713,
-0.581655740737915,
-0.01953832246363163,
0.6623809337615967,
-0.42366111278533936,
0.120049916207790... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.