text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
better way , and is it possible to name the disks so the program will name them to me as to show results as the following "move disk A from the left to the right"
sorry if I ask a lot but god I love PROLOG.
First of all, what Prolog are you using to get those results? That looks like you have a debugger enabled or som... | [
0.10458818078041077,
-0.0657370463013649,
0.31930339336395264,
0.1090715229511261,
0.13382859528064728,
-0.21381212770938873,
-0.07189849019050598,
0.015099841170012951,
-0.5125483274459839,
-0.6108601689338684,
-0.0467805340886116,
0.9590728878974915,
-0.2741643488407135,
-0.0649699792265... | |
write(Disc),
write(' from '),
write(X),
write(' to '),
write(Y),
nl.
move([Bottom|Rest],Start,Swap,Goal) :-
move(Rest,Start,Swap,Goal),
move([Bottom],Start,Goal,_),
move(Rest,Swap,Goal,Start).
```
When you run `move([biggest,middle,smallest], left, center, right).` you will get... | [
-0.3472544252872467,
0.12594935297966003,
0.2644401788711548,
0.21081995964050293,
0.2644055187702179,
0.18955455720424652,
-0.06463000923395157,
-0.10272115468978882,
-0.22236530482769012,
-0.6017940640449524,
-0.4638061821460724,
0.6930241584777832,
-0.009928344748914242,
0.1953271478414... | |
trick here is that this is a bottom-up algorithm. Essentially it boils down to:
1. Move everything on top of the bottom disc to the swap (which is the recursive step)
2. Move the bottom disc to the goal
3. Move everything else from the swap to the goal
Because it's bottom-up, you have to give the list starting with t... | [
-0.021884048357605934,
-0.38493800163269043,
0.2990102469921112,
0.10910831391811371,
0.1801683008670807,
-0.19157077372074127,
-0.2194521129131317,
-0.4830039143562317,
-0.3617444336414337,
-0.2830829918384552,
-0.2582002282142639,
0.6223147511482239,
-0.39349350333213806,
-0.450853914022... | |
I'm sure there has to be an easy way to do this, maybe I'm making more work for myself than I need to. I'm trying to set up cross system communications in a way that I can have bi-directional communication between objects, I imagine it would be something like this.
```
public interface ISharedResource
public class Sh... | [
0.24205635488033295,
0.17258113622665405,
0.12988676130771637,
0.12778738141059875,
-0.06073026731610298,
-0.18992963433265686,
0.3159633278846741,
0.06233809143304825,
-0.3531378209590912,
-1.059624433517456,
0.10130520164966583,
0.3075082302093506,
-0.0985715389251709,
0.5824617147445679... | |
article should give you some pointers.
<http://msdn.microsoft.com/pt-br/library/bb907581.aspx>
WCF allows you to set up interfaces in which two objects can communicate using a protocol of your choice. | [
0.4649468958377838,
-0.0030738564673811197,
0.5312086939811707,
0.1531134992837906,
-0.10606691986322403,
-0.39908677339553833,
0.12532806396484375,
-0.04271863028407097,
-0.17337241768836975,
-0.7936305403709412,
0.05066894367337227,
0.2578544020652771,
-0.27423080801963806,
0.11554823815... | |
I have html in an MS SQL DB. I would like to render the html on a SSRS page, is this possible?
This kind of capability was deliberately disabled in SQL 2005 Reporting Services because of 'security reasons'. I believe the advice at the time was to record any html as an image and embed the image in the report. I decided ... | [
0.3634347915649414,
0.36394086480140686,
0.2591291069984436,
-0.10752017796039581,
-0.4109800159931183,
-0.2508101463317871,
0.4574066996574402,
0.08748573064804077,
-0.4077909290790558,
-0.4999406039714813,
0.2688226103782654,
0.3132961094379425,
-0.31045079231262207,
0.07973923534154892,... | |
of
> tags that will render as HTML when
> defined as placeholder text:
>
>
>
> ```
> * Hyperlinks: <A href>
> * Fonts: <FONT>
> * Header, style and block elements: <H{n}>, <DIV>, <SPAN>,<P>,
> <DIV>, <LI>, <HN>
> * Text format: <B>, <I>, <U>, <S>
> * List handling: <OL>, <UL>, <LI>
>
> ```
>
> Any othe... | [
0.1078115925192833,
-0.1939687877893448,
0.6523611545562744,
0.14463478326797485,
-0.1511637419462204,
-0.014701789245009422,
0.12664590775966644,
-0.5632365345954895,
-0.07539356499910355,
-1.061274766921997,
-0.6250612735748291,
0.16437916457653046,
-0.47589850425720215,
-0.0326931141316... | |
I wrote a small app that allows me to compare two database schemas to check for differences in structure. It goes all the way down to column details, which is nice. When I was comparing very small databases, I had no trouble but when I start to compare databases with hundreds of tables, it is annoying to scroll up and ... | [
-0.1165604367852211,
0.014431995339691639,
0.5241149663925171,
0.12024373561143875,
-0.29261264204978943,
0.11368782818317413,
-0.2752140462398529,
-0.05390563979744911,
-0.3312044143676758,
-0.5089254975318909,
0.3324541747570038,
0.04503180831670761,
-0.38995668292045593,
0.2263991534709... | |
the tables in alphabetical order, but this is less than what I need. What I need is a class that allows me to sort based on object properties, not only on the index values. I want to push the tables with errors to the beggining of the list for easy-of-use's sake. Anyone has an idea of which class I could use to accompl... | [
-0.08677831292152405,
-0.03258383646607399,
0.15818151831626892,
0.2560258209705353,
-0.2506440579891205,
-0.015545042231678963,
0.10017150640487671,
0.05075276270508766,
-0.4074198603630066,
-0.7133825421333313,
0.11760285496711731,
0.27921077609062195,
-0.4520200192928314,
0.003993994090... | |
constructor only accepts IComparer of the index type. And since the IComparer is another class that doesn't have access to the inner value list of my list class, I can't compare based on the object properties.
EDIT2: I need a class that sorts the index by the object properties, not by the index values, but I am starti... | [
0.041377000510692596,
0.054825372993946075,
0.05161798372864723,
0.16240251064300537,
-0.305223673582077,
0.05522929131984711,
0.1075790748000145,
-0.1653060019016266,
-0.15084905922412872,
-0.5906538367271423,
0.2689984142780304,
0.27498042583465576,
-0.5969132781028748,
0.239605292677879... | |
results I wanted. | [
0.4177130162715912,
-0.01188820879906416,
-0.029590534046292305,
0.30624938011169434,
-0.32348206639289856,
0.010873932391405106,
-0.056361082941293716,
0.06883960217237473,
-0.10032673180103302,
-0.30226102471351624,
0.10106814652681351,
0.5226802825927734,
-0.08836217224597931,
0.1693972... | |
What is the maximum size of buffers [memcpy and other functions](http://en.wikipedia.org/wiki/Memcpy#Functions) can handle? Is this implementation dependent? Is this restricted by the size(size\_t) passed in as an argument?
This is entirely implementation dependent.
This depends on the hardware as much as anything, bu... | [
0.10187829285860062,
0.05098790302872658,
0.23488080501556396,
-0.11519408226013184,
0.07418231666088104,
0.23989444971084595,
-0.06154995411634445,
-0.018629545345902443,
-0.4236469566822052,
-0.39807647466659546,
-0.12952189147472382,
0.4596071243286133,
-0.051621463149785995,
-0.1182957... | |
compiles to. In this case, you just have to find out what size a `size_t` is in your implementation. However, for **very** old compilers (that is, before ANSI-C and [perhaps for some early versions of ANSI C](http://www.csse.uwa.edu.au/programming/ansic-library.html#string)), all bets are off.
On the standards side, l... | [
0.4653823673725128,
0.033803872764110565,
0.30937543511390686,
-0.15357914566993713,
-0.1442679762840271,
-0.12830092012882233,
-0.0208976361900568,
0.26621299982070923,
-0.3985166549682617,
-0.5323566198348999,
-0.028287893161177635,
0.7778209447860718,
-0.4263623356819153,
0.118517130613... | |
is an `int`](http://www.csse.uwa.edu.au/programming/ansic-library.html#string).
You may want to see [this article](http://www.embedded.com/columns/programmingpointers/200900195) on `size_t` as well as the [follow-up article](http://www.embedded.com/columns/programmingpointers/201803576) about a mis-feature of some ear... | [
0.2876291275024414,
0.0880698561668396,
0.19905857741832733,
-0.16239508986473083,
-0.09912484139204025,
-0.3157574236392975,
-0.04643363133072853,
0.07797269523143768,
-0.3967905640602112,
-0.23968450725078583,
-0.23886644840240479,
0.622714102268219,
-0.11655547469854355,
0.2238616496324... | |
Suppose I have a number of related classes that all have a method like this:
```
protected override OnExecute()
{
this.constructorParm.BoolProperty = !this.constructorParm.BoolProperty;
}
```
The type of `constructorParm` may change (it may also be a `static` `Setting`), and the specific property will certainly ... | [
0.018094653263688087,
0.04883482679724693,
0.08575551211833954,
-0.0320502333343029,
0.12107421457767487,
-0.31337156891822815,
0.39401984214782715,
-0.20803318917751312,
-0.12487835437059402,
-0.3355819284915924,
-0.13493578135967255,
0.6473029255867004,
-0.4980296492576599,
0.20275680720... | |
where `OnExecute()` comes from).
How to I parameterize the property that I want to toggle without parameterizing the actual toggle operation itself? For example, I know I can do something like this (uncompiled):
```
internal class CommandX
{
Action doExecute = null;
public CommandX(Action executeAction) { thi... | [
0.04962515830993652,
-0.20318308472633362,
0.4296547472476959,
-0.2195710390806198,
0.18955355882644653,
-0.1382710188627243,
0.2998805344104767,
-0.37748983502388,
-0.23713836073875427,
-0.3964705169200897,
-0.0516255758702755,
0.6707469820976257,
-0.5146854519844055,
0.13137812912464142,... | |
I'm just making an over-complicated delegate.)
(I can't just pass the property in b/c `bool` is a value type, so I'd just be toggling a copy. I can't pass it in by ref, of course, b/c properties can't be passed by ref. I feel like there's got to be something stupid and obvious that I'm just really missing here. :) )
... | [
0.2210337221622467,
0.24036496877670288,
0.025770707055926323,
0.02184184081852436,
-0.4358919560909271,
-0.13970358669757843,
0.6228901743888855,
-0.10977783799171448,
0.04378621280193329,
-0.5904940962791443,
-0.18003344535827637,
0.4848592281341553,
-0.2908415198326111,
0.07819525897502... | |
a property that will raise PropertyChanged events elsewhere. Instead of having all these commands in separate classes, I wanted to fold them into one because they're so simple.
You could use Reflection to select which property to toggle by using the [PropertyInfo](http://msdn.microsoft.com/en-us/library/system.reflecti... | [
0.1527649164199829,
-0.06156777963042259,
0.4302501082420349,
-0.03746757656335831,
0.02103816159069538,
-0.03200090676546097,
0.2743503451347351,
-0.5764865875244141,
-0.15542714297771454,
-0.43754374980926514,
-0.14169420301914215,
0.763955295085907,
-0.3256181478500366,
0.19884604215621... | |
solution is to just toggle the property normally. | [
0.10184391587972641,
-0.14884288609027863,
0.797801673412323,
0.2225799411535263,
0.19588975608348846,
-0.34744498133659363,
0.23940113186836243,
-0.3637504577636719,
-0.2438068389892578,
-0.4510865807533264,
0.018706776201725006,
0.5770888924598694,
-0.19537144899368286,
-0.21378839015960... | |
This is probably trivial, but I can't think of a better way to do it. I have a COM object that returns a variant which becomes an object in C#. The only way I can get this into an int is
```
int test = int.Parse(string.Format("{0}", myobject))
```
Is there a cleaner way to do this? Thanks
You have several options:
... | [
0.30014532804489136,
0.08415263146162033,
0.10435616225004196,
-0.03468441963195801,
-0.04347062483429909,
0.13343609869480133,
0.49774399399757385,
-0.33780595660209656,
0.20766504108905792,
-0.6641078591346741,
0.1480284035205841,
0.628851592540741,
-0.35607269406318665,
-0.0747975856065... | |
string in a specific format
* `Convert.ToInt32()` — For converting an object of unknown type. It will use an explicit and implicit conversion or IConvertible implementation if any are defined.
* `as int?` — Note the "?". The `as` operator is only for reference types, and so I used "?" to signify a `Nullable<int>`. The ... | [
0.01942259632050991,
-0.1844779998064041,
0.14726878702640533,
-0.2815949022769928,
-0.18373537063598633,
-0.0462811253964901,
0.43771713972091675,
-0.1527506709098816,
-0.12929418683052063,
-0.42481282353401184,
-0.33584392070770264,
0.38292285799980164,
-0.4237082004547119,
0.11137289553... | |
very *general* answer: I want to throw some attention to Darren Clark's response because I think it does a good job addressing the *specifics* here, but came in late and wasn't voted as well yet. He gets my vote for "accepted answer", anyway, for also recommending (int), for pointing out that if it fails `(int)(short)`... | [
0.3254428505897522,
-0.01201614085584879,
0.2126884013414383,
0.13150042295455933,
-0.14110605418682098,
-0.010065129026770592,
0.3016769289970398,
-0.18687370419502258,
-0.018988648429512978,
-0.47742795944213867,
-0.14130841195583344,
0.3863064646720886,
0.06423834711313248,
-0.004226503... | |
Is there a way to do "and" "or" filters in SSRS 2005?
I have a table pointing to a dataset (stored procedure) that looks like this:
```
name type amount
License Plate Credit fees ($150.00)
Lieu | [
0.3801240026950836,
0.0009972649859264493,
0.42538583278656006,
0.06489221006631851,
0.1280682235956192,
-0.19563055038452148,
-0.18534517288208008,
-0.28227052092552185,
-0.26760950684547424,
-0.08649318665266037,
0.40825724601745605,
0.6437222957611084,
-0.19885846972465515,
0.0336041077... | |
Tax fees $1,012.12
Finance Tax City taxes $1,839.90
Finance Tax County taxes | [
0.34594205021858215,
0.2127610594034195,
0.37541964650154114,
0.5076912045478821,
-0.3505125343799591,
0.1334758698940277,
-0.039011500775814056,
0.3228129744529724,
-0.06894023716449738,
-0.36015236377716064,
-0.19943183660507202,
0.6991414427757263,
0.02115309052169323,
-0.32821345329284... | |
$306.65
Finance Tax State taxes $3,434.48
```
The user would like to see all rows with:
1. type = 'taxes' or
2. type = 'fees' and name = 'Lieu Tax'
The reason I need to do this in the report and not in the stored procedure is because
we will be creating multiple reports pointing to the ... | [
0.7886577844619751,
0.567389965057373,
0.4508771002292633,
-0.23473410308361053,
0.1570378988981247,
0.1583375334739685,
-0.21232789754867554,
-0.2644815444946289,
-0.2665240168571472,
-0.28994572162628174,
0.27355897426605225,
0.7390046119689941,
-0.09961958229541779,
-0.10453344881534576... | |
hoping there was a way to do it in the report instead of the proc. The plan is to have many custom reports pointing to the same proc with different requirements. The idea was for report builders (who don't know SQL) to create the reports instead of us programmers always having to get involved.
Each possible condition c... | [
0.7360468506813049,
-0.13248348236083984,
0.2060369849205017,
0.2872270345687866,
0.23937255144119263,
0.0709296241402626,
0.3759714961051941,
-0.2767956852912903,
0.245762899518013,
-0.5709109306335449,
0.40103793144226074,
0.4061324894428253,
-0.48219630122184753,
-0.3323763310909271,
... | |
= "Lieu Tax"), 1,
1=1, 0
)
You can handle your entire filtering in a single expression this way. Works like a charm. | [
0.3848583400249481,
-0.2297353893518448,
0.36948302388191223,
0.12732787430286407,
-0.06303638219833374,
0.030766062438488007,
0.31332334876060486,
-0.3753184378147125,
0.011168881319463253,
-0.45535165071487427,
-0.15557757019996643,
0.4793665111064911,
-0.3432580232620239,
-0.24806028604... | |
I was under the impression that an endpoint was defined in a config file as the list of possible clients but that makes no sense (in the sense that I assumed it said what computers could connet to the service) now I'm gathering that it's more of a definition, so would someone please explain what an end point is to me? ... | [
0.3505082130432129,
-0.011971527710556984,
0.5245109796524048,
0.08735830336809158,
0.18576908111572266,
-0.12499046325683594,
-0.11448197066783905,
-0.1471737027168274,
-0.1627238243818283,
-0.5451509952545166,
0.17053087055683136,
0.3502289950847626,
-0.13875643908977509,
0.3228831887245... | |
method/protocol to use correct?
the contract is the "object being shared" essentially (yes i know that's so technically incorrect but work with me here)
An endpoint is what a service exposes, and in WCF terms, is made up of three things:
* Address
* Binding
* Contract
Address is the URL by which the endpoint can be ... | [
0.2396927773952484,
-0.03075028769671917,
0.4828478991985321,
0.051307473331689835,
-0.10059121251106262,
-0.26085686683654785,
0.23333698511123657,
-0.20712514221668243,
0.07521985471248627,
-0.6889410614967346,
-0.15507304668426514,
0.21698962152004242,
-0.28976476192474365,
0.4056185483... | |
calls are permissible.
Most of the time, people remember it as A B C.
Some things to note:
The binding is typically going to be a combination of channels with behaviors applied; channels being elements on the channel stack which modify the message and perform actions before they get to the service implementation.
W... | [
0.6745235919952393,
-0.1773153841495514,
0.6710740923881531,
0.0036239700857549906,
-0.05649741366505623,
-0.42781516909599304,
0.14647825062274933,
-0.5602163672447205,
0.03639046475291252,
-0.3678758442401886,
-0.21411123871803284,
0.6710425615310669,
-0.4856873154640198,
0.2350463569164... | |
Contract interface into. | [
-0.12747733294963837,
-0.2296634316444397,
0.4598984718322754,
-0.08650803565979004,
0.1115008071064949,
0.12281356751918793,
-0.042830515652894974,
-0.24557842314243317,
0.0824725553393364,
-0.9860258102416992,
-0.33661186695098877,
0.505104124546051,
-0.24635954201221466,
-0.130886301398... | |
Is there any easy (5 lines of code) way to do this?
The shortest code to delete the tab the middle mouse button was clicked on is by using LINQ.
Make sure the event is wired up
```
this.tabControl1.MouseClick += tabControl1_MouseClick;
```
And for the handler itself
```
private void tabControl1_MouseClick(object s... | [
-0.1235903650522232,
-0.306349515914917,
0.8235472440719604,
-0.062193870544433594,
0.3109242618083954,
-0.018197234719991684,
0.367980420589447,
-0.45028725266456604,
-0.3738507330417633,
-0.3498411178588867,
-0.43827393651008606,
0.5950002670288086,
-0.421001672744751,
0.0832869857549667... | |
are striving for least amount of lines, here it is in one line
```
tabControl1.MouseClick += delegate(object sender, MouseEventArgs e) { var tabControl = sender as TabControl; var tabs = tabControl.TabPages; if (e.Button == MouseButtons.Middle) { tabs.Remove(tabs.Cast<TabPage>().Where((t, i) => tabControl.GetTabRect(i... | [
-0.11830432713031769,
-0.2766653299331665,
0.8102712035179138,
-0.05577531084418297,
0.19946405291557312,
0.31725144386291504,
0.574654757976532,
-0.4316088557243347,
-0.16878947615623474,
-0.7868809103965759,
-0.568722665309906,
0.2653980255126953,
-0.5637350082397461,
0.2720777690410614,... | |
I have an Access database. Let's pretend it's for a pet store.
There's a table for animals.
```
Animals (animal_id, birth_date, price)
```
And then specific tables for the different types of animals we sell.
```
Dogs (animal_id, bark_volume)
Cats (animal_id, collar_size, shedding_rate)
Fish (animal_id)
```
Fish... | [
0.8542153239250183,
0.2374875247478485,
0.016082530841231346,
-0.04052365571260452,
0.2801278531551361,
0.457473486661911,
-0.2962627708911896,
-0.1336492896080017,
-0.2745321989059448,
-0.5813532471656799,
0.44318366050720215,
0.3870338201522827,
-0.21584564447402954,
0.2550604045391083,
... | |
recordsource, and binds the fields to the appropriate data columns. The form pulls its data from the queries DogInfo, CatInfo, and FishInfo.
Now, when you enter a dog or a cat, everything is fine. A record is added to both Animals and either Dogs or Cats.
However, when you enter a Fish, all you get is an Animal, no F... | [
0.6099108457565308,
0.16694438457489014,
0.4414297640323639,
0.30534109473228455,
0.44894710183143616,
-0.09511362016201019,
-0.08121559023857117,
0.08941420167684555,
-0.7608556151390076,
-0.6203933358192444,
0.11838715523481369,
0.19011935591697693,
-0.4088539779186249,
0.186997532844543... | |
it at all in the first place, but Access's motto seems to be "Make the wrong thing easy to do and the right thing awkward to do." The database is relatively simple and infrequently used, though, and it's at least 100 times better than it was before I started working on it, so I'm not really too worried about this issue... | [
0.23313218355178833,
0.06064964830875397,
0.05939307063817978,
0.24531611800193787,
0.47722217440605164,
0.18972615897655487,
0.12820692360401154,
0.133361354470253,
-0.48351800441741943,
-0.32643958926200867,
0.1944870948791504,
0.4324524402618408,
-0.21951276063919067,
0.0464463494718074... | |
ID (animal\_id)
Since there is no data entry for the fish record it does not get created. You have to do that in code. Not sure how your form and data source is setup but you would do something like this on one of the form events:
```
Fish![animal_id] = Animal![animal_id]
```
Edit
In your FishInfo query you must ... | [
0.6046918630599976,
-0.005275969859212637,
-0.2009938657283783,
-0.02314540557563305,
0.019802512601017952,
0.07083959132432938,
-0.049737319350242615,
-0.2491874098777771,
0.06086299940943718,
-0.6219062805175781,
0.495220810174942,
0.5867903232574463,
-0.4043249189853668,
0.0951351821422... | |
Has anyone seen, tried to implement, or otherwise played with [TAP](http://en.wikipedia.org/wiki/Test_Anything_Protocol) in shell? We're looking to create unit tests across many languages (don't get me started on why this doesn't exist so far), and since we have so much Perl code, we'll be looking at TAP (among others,... | [
0.6427682042121887,
-0.15958158671855927,
-0.20961111783981323,
0.3336000144481659,
0.1402590274810791,
-0.22952398657798767,
0.004182499833405018,
0.17734426259994507,
-0.22997942566871643,
-0.4173375070095062,
0.18231025338172913,
0.7090288400650024,
0.05775207281112671,
-0.3817483186721... | |
be nice to be able to test it somehow.
See the list of [TAP Producers](http://testanything.org/producers.html) for a list of libraries. On that list you will find [Tap-functions](http://testanything.org/wiki/index.php/Tap-functions) for shell code. | [
0.7686133980751038,
-0.16661877930164337,
-0.05658788979053497,
0.24266797304153442,
0.12531670928001404,
-0.2006252259016037,
0.09165536612272263,
-0.08486375212669373,
0.036022406071424484,
-0.35267698764801025,
0.3075008988380432,
0.5978407859802246,
-0.05256395414471626,
-0.18075381219... | |
I found that Wix v3 uses a tool (heat.exe) to "harvest" information into WiX fragments. Either I am looking in the wrong location, or this is thinly documented.
What is the best way to auto-generate a WiX fragment (likely using heat.exe) for a complex folder structure that contains media files:
* Of varying types (i... | [
0.20510254800319672,
0.16617031395435333,
0.050547871738672256,
-0.00033487105974927545,
-0.08069072663784027,
-0.219723641872406,
0.20940668880939484,
-0.15681879222393036,
-0.008143271319568157,
-0.6823697090148926,
-0.18158699572086334,
0.07966989278793335,
-0.21522097289562225,
0.02212... | |
In getting the "dir" harvester working, I noticed the "project" harvester (commandline help)
3. Media is already in C# project file, and so noted that "-pog:Content" might do very well
4. Cursory search found out of date documentation that didn't mention "project" harvester
5. Realized entire project installer could pr... | [
0.39642533659935,
-0.14892534911632538,
0.2325209528207779,
-0.0913693830370903,
-0.1707344800233841,
-0.0916571170091629,
0.12708543241024017,
-0.2575213611125946,
0.11844505369663239,
-0.6782857179641724,
0.010777417570352554,
1.0555211305618286,
-0.033690888434648514,
0.1064858064055442... | |
right direction.
It was (fairly) pointed out that v3 is not yet "done" (thus the scarceness of documentation and tutorials). The sense that I get now is that it is non-trivial to automate this in my build scripts, and the tools are growing right now to ease this.
In my experience John Robbins' [Paraffin](http://www.wi... | [
-0.050528306514024734,
-0.007178531959652901,
0.3405386507511139,
-0.27098938822746277,
0.21426036953926086,
-0.08430057018995285,
0.4577173888683319,
-0.25594717264175415,
-0.08850619196891785,
-0.30254077911376953,
0.10421442240476608,
0.4792240858078003,
0.2761857509613037,
0.0805371627... | |
powershell script. | [
0.060273051261901855,
0.2170047163963318,
-0.1091717928647995,
0.42706549167633057,
0.21411670744419098,
-0.356054425239563,
-0.17387554049491882,
0.07273296266794205,
0.003301613964140415,
-0.40483155846595764,
-0.28936508297920227,
0.10366414487361908,
-0.039903126657009125,
-0.007865470... | |
I install cygwin frequently enough that it would be handy to have the process automated. Specifically, I want to be able to specify ahead of time the packages that I want to install, so that I don't have to remember them at install-time. Is there any way to do this?
Yes, you can. Assuming you haven't installed Cygwin y... | [
0.38123801350593567,
0.09648673236370087,
0.5056651830673218,
-0.060971617698669434,
0.15662574768066406,
-0.21313948929309845,
0.07618197798728943,
0.12494709342718124,
0.06700967252254486,
-0.7972816824913025,
-0.4088956415653229,
0.9271503686904907,
-0.2204880267381668,
0.04197895526885... | |
list of package names is comma-delimited, which is what the `--packages` option expects, although that's not documented.
You can run `setup-x86.exe --help`, or see the [Cygwin FAQ](http://www.cygwin.com/faq/faq.html#faq.setup.cli), to read about the available command line options for setup.
If you name this script, s... | [
0.5819041132926941,
0.01896406151354313,
0.19658100605010986,
-0.04606710001826286,
-0.018061209470033646,
-0.4041830897331238,
0.07104352116584778,
-0.06809544563293457,
-0.4050768315792084,
-0.7158744931221008,
-0.3698651194572449,
0.6533636450767517,
-0.30199477076530457,
0.176748484373... | |
Is there any library that can be used for analyzing (nlp) simple english text. For example it would be perfect if it can do that;
Input: "I am going"
Output: I, go, present continuous tense
How about the [Natural Language Toolkit](http://www.nltk.org/)? | [
0.08912646770477295,
-0.6052502393722534,
0.05022811517119408,
0.21138368546962738,
-0.073862224817276,
-0.130984365940094,
0.3338280916213989,
0.29171106219291687,
-0.24815891683101654,
-0.2668095827102661,
-0.029550660401582718,
0.6158243417739868,
0.06527116894721985,
-0.327798455953598... | |
I have done some work with Ruby on Rails but am still not comfortable writing a Rails app from scratch. My problem is that I am not able understand how to get the right model going when trying to write the application from scratch. I thought seeing the code of a complete existing application may help but am not sure. W... | [
0.6113532185554504,
0.13221792876720428,
-0.19576551020145416,
0.061406172811985016,
0.07110351324081421,
0.19449086487293243,
0.5842583179473877,
-0.009721294976770878,
-0.13479700684547424,
-0.519023060798645,
0.44567447900772095,
0.6770153641700745,
0.11188464611768723,
-0.0323989279568... | |
makes mistakes too. You're going to make the wrong models, create the wrong methods, the wrong tables with the wrong columns and that's OK too. You'll be doing the best you can and you'll get better. As your understanding - or Rails and of your application - improves so you'll see where you made mistakes and you'll fix... | [
0.3248242139816284,
0.4228431284427643,
0.1035577654838562,
0.29513970017433167,
0.0691886618733406,
0.24958747625350952,
0.44774138927459717,
0.012127269059419632,
-0.15718188881874084,
-0.8423230051994324,
0.17798535525798798,
0.6988427639007568,
-0.11606448888778687,
-0.0753282085061073... | |
what seems to be the most important "thing". Try making that your first model.
So for a blog (sigh) application, you might write something like this (it doesn't have to be perfect, just write *something*):
"This app lets me write blog posts and publish them. Readers can post comments. I can remove comments I don't li... | [
0.42916420102119446,
-0.060801032930612564,
0.26190778613090515,
0.11207088828086853,
-0.12156940996646881,
-0.27170535922050476,
0.21263277530670166,
0.12963268160820007,
-0.19642892479896545,
-0.6410130262374878,
-0.020136352628469467,
0.45563623309135437,
-0.30844253301620483,
-0.146306... | |
I have 3 Windows Service Question
1. Is WS can work in background ? Is it possible to do some job every 2 minutes ? (if yes, can I get some help ?)
2. How can I install WS in simple way ? (not with Installutil.exe .......)
3. How can I run .exe file from Windows service ?
I've tried this way:
```
System.Diagnostics.... | [
0.4451444745063782,
0.07302580028772354,
0.3021458387374878,
-0.1894504725933075,
-0.010357780382037163,
0.028056373819708824,
0.5404025316238403,
-0.639907717704773,
-0.20118296146392822,
-0.7933422327041626,
-0.04995395988225937,
0.7061195373535156,
-0.4062615931034088,
-0.07884567230939... | |
your code in the onElapsed event. I've recently created this type of service and found there are two types of Timer you can use, make sure you use the correct one or you will not find the onElapsed event.
2. I've not tried installing without the InstallUtil.exe but I do have a .bat file that I use which is run as part ... | [
0.6386656761169434,
-0.09716485440731049,
0.13630394637584686,
-0.013769546523690224,
0.027351543307304382,
-0.23100541532039642,
0.33188337087631226,
-0.13936200737953186,
-0.2019590586423874,
-0.7290961742401123,
-0.09435904771089554,
0.7758131623268127,
-0.47903215885162354,
-0.31956315... | |
will run at the same level as the service which means it can't display anything on the desktop. If you are expecting to see any window open or the .exe requires any user input then you will be disappointed and the .exe may wait indefinitely. (I found this link [Launch external programs](http://www.thescarms.com/dotnet/... | [
0.3693329989910126,
-0.14304950833320618,
0.7521349787712097,
-0.10073653608560562,
0.21330127120018005,
-0.19756898283958435,
0.3050002455711365,
0.005164658185094595,
-0.3748416304588318,
-0.6347816586494446,
-0.508064329624176,
0.6082172989845276,
-0.3252040147781372,
0.1174964830279350... | |
I would like a regular expression to match given a partial or camel cased string. For example, if the search set contains the string "MyPossibleResultString" I want to be able to match it with the likes of the following:
* MyPossibleResultString
* MPRS
* MPRString
* MyPosResStr
* M
I'd also like to include wildcard m... | [
0.0656621903181076,
-0.09104829281568527,
0.36749839782714844,
0.1053832396864891,
-0.26152652502059937,
0.22232569754123688,
0.029224852100014687,
0.15773369371891022,
-0.1523507982492447,
-0.5290147662162781,
-0.10954609513282776,
0.5349417328834534,
-0.37437063455581665,
-0.279812604188... | |
looking for a solution in Java.
Ok so I can't really see why you would need the wildcard feature if you can already support the matching described in the first example. This is what I put together. Given a query string query, you use a regular expression to create a regular expression:
```
String re = "\\b(" + query.r... | [
-0.3884417414665222,
-0.12215109169483185,
0.7193513512611389,
-0.04918479174375534,
0.07416856288909912,
-0.07790744304656982,
0.052566856145858765,
-0.30544909834861755,
0.0768943801522255,
-0.7582837343215942,
-0.13241654634475708,
0.5864304304122925,
-0.6124802231788635,
0.052615594118... | |
String re = "\\b(" + query.replaceAll("([A-Z][^A-Z]*)", "$1[^A-Z]*") + ".*?)\\b";
System.out.println(re);
Pattern regex = Pattern.compile(re);
Matcher m = regex.matcher(str);
if (m.find()) {
return m.group();
} else return null;
}
```
This will return the first match to your camel case... | [
-0.2917518615722656,
-0.22300927340984344,
0.6561239361763,
-0.11330956220626831,
-0.03971461206674576,
0.37737852334976196,
0.3201943337917328,
-0.6694968938827515,
-0.1030406579375267,
-0.5755812525749207,
-0.3086920380592346,
0.6471121311187744,
-0.8165310621261597,
0.18051154911518097,... | |
I'd like to know what Browser the User is using to view my Flex application. How can I get at the User Agent string and other information?
Javascript can help you with browser detection and figuring out UserAgent. Use ExternalInterface to make the Javascript talk to your flex application. Here's an ExternalInterface [t... | [
0.6945198774337769,
-0.11960975080728531,
0.437076598405838,
-0.06410042941570282,
-0.2144622504711151,
-0.001141890767030418,
0.20014959573745728,
0.11748073250055313,
-0.180581197142601,
-0.8597162365913391,
0.10577531158924103,
0.5300717949867249,
0.006463893223553896,
-0.05545823276042... | |
Up to this point we have not yet needed a new masterpage for our SharePoint Site Definition. We have a theme that some of our customers will use depending on their corporate SharePoint branding.
Currently I change the 'SiteLogoUrl' in my 'FeatureReceiver' on the 'FeatureActivated' event using the following code.
```... | [
0.381864994764328,
-0.18312665820121765,
0.8726499676704407,
-0.18728525936603546,
0.15805500745773315,
-0.24373356997966766,
0.17766901850700378,
-0.025037292391061783,
-0.6352593302726746,
-0.7153964042663574,
-0.3453683853149414,
0.33067309856414795,
-0.10229158401489258,
0.679792702198... | |
site.AllowUnsafeUpdates = true;
site.SiteLogoUrl = site.Url + "images/thLogo.gif";
site.Update();
}
}
```
FeatureActivated is not the best event to trigger on, I would prefer a theme applied event but I can't seem to find one. Perhaps I am not approaching this correctly.
Applying a... | [
0.6124593615531921,
-0.24342630803585052,
0.8258036971092224,
-0.25209319591522217,
-0.14044837653636932,
-0.3787447512149811,
0.5576924681663513,
-0.12160035222768784,
-0.4053284823894501,
-0.5586338043212891,
-0.27317601442337036,
0.7198904156684875,
-0.3933850824832916,
0.18999606370925... | |
[activate the theme](http://www.novolocus.com/2008/10/17/programmatically-apply-a-default-theme-in-sharepoint/) programmatically, as well as setting your logo?
Note you can store the currently applied theme in the SPWeb's property bag - see [this for an example](http://www.novolocus.com/2008/06/24/setting-the-master-p... | [
0.2279377579689026,
-0.22166675329208374,
0.9385985732078552,
-0.1933504194021225,
-0.08319645375013351,
-0.5783958435058594,
0.12673193216323853,
-0.42675426602363586,
-0.5813195109367371,
-0.4558509886264801,
-0.32054099440574646,
0.2904262840747833,
-0.20651637017726898,
-0.067943714559... | |
I am assuming Java has some built-in way to do this.
**Given a date, how can I determine the date one day prior to that date?**
For example, suppose I am given 3/1/2009. The previous date is 2/28/2009. If I had been given 3/1/2008, the previous date would have been 2/29/2008.
Use the Calendar interface.
```
Calendar... | [
0.25522735714912415,
-0.03158477693796158,
0.733016848564148,
-0.3654141426086426,
-0.095007985830307,
-0.04243047907948494,
0.29643458127975464,
-0.08014874905347824,
-0.23833401501178741,
-0.6520224809646606,
-0.08451160043478012,
0.34447968006134033,
0.16314467787742615,
0.4210589826107... | |
In question [663830](https://stackoverflow.com/questions/663830), Isaac asks about adding a button to a text field. Can someone show code to add a label to the .rightView property?
Or, is there some better way to include 'permanent' text in a text field?
This is for a calculator that would include units in the field ... | [
0.15698951482772827,
0.0433976836502552,
0.6132438778877258,
0.09232227504253387,
-0.021009931340813637,
0.10947796702384949,
0.16793034970760345,
-0.8033308982849121,
-0.1779920905828476,
-0.38205817341804504,
-0.34907376766204834,
0.2308827042579651,
-0.35257333517074585,
-0.119797796010... | |
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
label.text = @"mg";
label.backgroundColor = [UIColor colorWithWhite:0.0 alpha:0.0];
textField.rightViewMode = UITextFieldViewModeAlways;
textField.rightView = label;
[self.view addSubview:textField];
[label release];
... | [
-0.1502261757850647,
-0.14459772408008575,
0.9608373641967773,
-0.19893522560596466,
-0.2929838299751282,
0.041327208280563354,
0.36419835686683655,
-0.38301536440849304,
-0.024885063990950584,
-0.7850607633590698,
-0.15587377548217773,
0.660944938659668,
-0.28297483921051025,
0.1942140907... | |
When I hit the submit image I get some extra parameters in the GET request:
```
main.php?selected=user_manager_main&mode=set_active&set_this_id=13&x=4&y=7
```
Please note the `x` and `y` at the end. I certainly did not define the `x` and `y` at the end. The values seem to be random. Here is the form code:
```
echo ... | [
0.10589896887540817,
0.019031979143619537,
0.837997555732727,
0.03500789776444435,
-0.19899222254753113,
0.011170228943228722,
0.13755671679973602,
-0.43564629554748535,
-0.15072128176689148,
-0.48446062207221985,
-0.2735023498535156,
0.4485397934913635,
-0.01827072910964489,
-0.2028124630... | |
click coordinates passed to the server. The x value is measured in pixels from the left of the image, and the y value in pixels from the top of the image. The submitted data includes name.x=x-value and name.y=y-value where "name" is the value of the name attribute, and x-value and y-value are the x and y coordinate val... | [
-0.05649822577834129,
-0.12122517079114914,
1.047105312347412,
0.23757927119731903,
0.07822936773300171,
0.05559215694665909,
-0.18353873491287231,
-0.004314508754760027,
0.24845527112483978,
-0.5311599969863892,
-0.27978718280792236,
0.3680323362350464,
-0.1341565102338791,
0.328730344772... | |
I though that I know this one... I had no clue.
This simple For loop:
```
Dim i As Integer
Dim n As Integer = 10
Dim s As Integer = 1
For i = 0 To n Step s
Console.WriteLine(i)
Next
```
compiles into this (I put it through Refelctor, so it's easier to read). I couldn't even get what it does with all these bit-... | [
-0.13275335729122162,
-0.1667187660932541,
0.6998240947723389,
-0.3697587251663208,
0.057115279138088226,
0.001721742795780301,
0.5321788191795349,
-0.27043095231056213,
-0.04502918943762779,
-0.5766238570213318,
-0.04485984146595001,
0.6568217277526855,
-0.4420199692249298,
0.215207099914... | |
i = (i + VB$t_i4$L1)
Loop
```
Why For loop is mutilated like this?
Probably because it's the "generic way" to cover all cases. Remember that for/step/next can go in any direction with any sign on the increment.
You used parameters on both the increment and the end-bound. The compiler has no way to know if you are go... | [
0.46434175968170166,
0.1541527807712555,
0.14324316382408142,
-0.12181229144334793,
0.005847559310495853,
0.13162344694137573,
0.5368760824203491,
-0.20211459696292877,
-0.36248940229415894,
-0.566825807094574,
0.13759678602218628,
0.1555037498474121,
-0.4351594150066376,
0.324696242809295... | |
if that is the case).
Also it makes copies of the parameters to prevent outside interference (like changing s or n during the enumeration).
=== UPDATE ===
I doubt anybody is still watching that question but I came back to this nugget just for the sake of completeness, and because I had some time.
What VB is doing is... | [
0.301241397857666,
-0.11707016825675964,
0.5207365155220032,
-0.08430010825395584,
-0.1900857836008072,
0.1040484681725502,
0.2956477105617523,
-0.5485326647758484,
-0.05355627462267876,
-0.1377217322587967,
-0.13385234773159027,
0.44807010889053345,
-0.3433167338371277,
0.1385501176118850... | |
equivalent to (-value-1). XOR with 0 is obviously a NOP.
So if s is negative, it reverses both values (the -1 cancel each other) to compare them, effectively reversing the order of comparison without the need or a conditional, and thus no jump in the program flow.
If s is positive it just compares them.
so, for s<0 yo... | [
0.038163404911756516,
-0.008581909351050854,
0.38751208782196045,
0.06031661480665207,
-0.4228862524032593,
0.0072245909832417965,
0.33898207545280457,
-0.38456711173057556,
-0.1739204376935959,
-0.47545379400253296,
-0.024950135499238968,
0.4838055372238159,
-0.2692836821079254,
-0.145794... | |
faster than loading zero in it...) :p | [
-0.13038364052772522,
-0.0974712073802948,
0.36120474338531494,
0.25915366411209106,
-0.03900284692645073,
0.45343637466430664,
-0.14685381948947906,
-0.5075244307518005,
-0.24815788865089417,
-0.42881500720977783,
-0.10153227299451828,
0.25100037455558777,
-0.09388525038957596,
0.13423927... | |
Given:
```
function foo(){
var bar = "quux";
console.log(/*mystery code here*/);
}
```
I'm looking for code that when inserted into the comment would yield the value of bar. By way of illustration, something like this works in a global scope:
```
var foo = "bar";
var bar = "quux";
console.log(window[foo]);
```... | [
-0.10563890635967255,
0.13886885344982147,
0.28570806980133057,
-0.28267794847488403,
-0.08706194162368774,
0.036847423762083054,
0.19253619015216827,
0.15774433314800262,
-0.2713094651699066,
-0.47930482029914856,
-0.2537808418273926,
0.43933695554733276,
-0.45881110429763794,
0.191759839... | |
**Update**: This gem DOES install with sudo rake gems:install. The problem is with loading. For instance, when I run script/console, it throws:
```
no such file to load -- outoftime-noaa ...
```
Even though sudo rake gems:install just installed it. I'm not sure if this matter, probably does, but it throws this error... | [
0.44383060932159424,
0.14354877173900604,
0.11753370612859726,
-0.07493926584720612,
-0.3282383382320404,
-0.3145065903663635,
0.6165999174118042,
-0.05062080919742584,
-0.05043541267514229,
-0.8509975671768188,
0.04084809496998787,
0.7038241624832153,
-0.0019489687401801348,
0.00720968004... | |
going on, I'd appreciate the help.
I've added this to my environment config:
```
config.gem "outoftime-noaa", :source => "http://gems.github.com"
```
I've run
```
sudo rake gems:install
```
I get this error
```
no such file to load -- outoftime-noaa
```
I have the other two required gems already installed on... | [
0.19481445848941803,
0.052343424409627914,
0.26788654923439026,
-0.08988998830318451,
-0.10766039043664932,
0.057940103113651276,
0.2522946000099182,
-0.2748669683933258,
0.10987392067909241,
-0.9025166630744934,
0.05030608922243118,
0.9208713173866272,
0.06381013989448547,
-0.076953925192... | |
Does anyone know of a great **small** open source Unicode handling library for C or C++? I've looked at [ICU](http://site.icu-project.org/), but it seems way too big.
I need the library to support:
* all the normal encodings
* normalization
* finding character types - finding if a character should be allowed in ident... | [
0.153801828622818,
0.1890740990638733,
-0.060708630830049515,
0.2314385026693344,
-0.1899140328168869,
0.10681984573602676,
0.040278349071741104,
0.41382738947868347,
-0.12841421365737915,
-0.8118969798088074,
-0.016516922041773796,
0.11851995438337326,
-0.13026873767375946,
0.005697951652... | |
that. [This page](https://unicode-org.github.io/icu/userguide/icu_data/#customizing-icus-data-library) (under "Customizing ICU's Data Library") describes how to cut out some of the data. | [
0.5160124897956848,
-0.34199824929237366,
-0.0485738106071949,
0.17536430060863495,
0.1966320425271988,
0.11466074734926224,
-0.22988831996917725,
-0.11578261852264404,
-0.39847713708877563,
-0.5238815546035767,
-0.2217206060886383,
0.013128274120390415,
-0.3719468116760254,
0.286809533834... | |
I've got a very large image which I'd like to use for sprite techniques (à la [css image sprites](http://css-tricks.com/css-sprites/)).
I've got the code below:
```
<Image x:Name="testImage" Width="24" Height="12" Source="../Resources/Images/sprites.png">
<Image.Clip>
<RectangleGeometry Rect="258,10632,... | [
0.4342193603515625,
0.2143738567829132,
0.50242680311203,
0.12441238015890121,
-0.36234208941459656,
0.2021758258342743,
0.0560368113219738,
-0.4082568883895874,
-0.34482958912849426,
-0.7947035431861877,
0.2776593565940857,
0.5954603552818298,
0.046775124967098236,
-0.030852466821670532,
... | |
guide*.
Anyone have any idea how this should be done? *if at all*.
**Conclusion:**
There seems to be no good way of doing this at present, Graeme's solution seems to be the closest to achieving this with Silverlight 2.0.
*That said, if anyone knows of a better way of doing this, please reply with an answer.*
It turn... | [
0.37933439016342163,
-0.09836225211620331,
1.085226058959961,
0.03319845721125603,
-0.21806120872497559,
-0.06793668121099472,
0.28096213936805725,
-0.5995598435401917,
-0.0461016446352005,
-0.49616095423698425,
0.07915299385786057,
0.5993471741676331,
-0.2445233017206192,
-0.0715076252818... | |
I added class files from another project to my new iPhone Window for the first time. The class is a simple class that defines a polygon, and subclasses NSObject. As part of the standard template for an Objective C class, this class definition imports Cocoa.h
```
#import <Cocoa/Cocoa.h>
```
However, just by adding th... | [
-0.10160858184099197,
0.3491199016571045,
0.1593896746635437,
0.004600577522069216,
-0.07449666410684586,
0.1765129566192627,
0.10837597399950027,
0.104673370718956,
-0.42257848381996155,
-0.7499379515647888,
-0.13693447411060333,
0.3856079578399658,
-0.466849148273468,
-0.1437626779079437... | |
say I have a blob of text 5000 characters. I run it through a hashing program and generates a 40 char long hash. now i run another blob of text, 10000 characters. it still generates a hash 40 chars long. that's true for text of any length.
my question is if the hashes are all unique, wouldn't i be able to compress any... | [
0.13139620423316956,
0.3855733871459961,
0.1495467722415924,
0.0020942119881510735,
-0.2312583029270172,
0.3772692382335663,
0.1451520174741745,
0.06173069402575493,
-0.2385604828596115,
-0.5364478230476379,
0.11843457818031311,
0.10125879943370819,
0.11479823291301727,
0.25587454438209534... | |
know who someone is by their fingerprint alone.. This is just like a hash, you can easily work out `hash("abcdef") -> a1b2c3`, but given only `a1b2c3`, you cannot trivially tell the source data.
To reverse a finger print, you need to compare the fingerprint to a database of known `people->finger-prints` (if the unknow... | [
0.07681503146886826,
0.005894708912819624,
0.19793851673603058,
0.03097936511039734,
0.13206322491168976,
0.026251070201396942,
0.2742164731025696,
-0.13383224606513977,
-0.30583474040031433,
-0.4482276737689972,
-0.05300293490290642,
0.2599175274372101,
-0.0036464566364884377,
0.141350448... | |
order to get this. The other more common way is to simply try every combination of characters, hash them and compare (a [brute force attack](http://en.wikipedia.org/wiki/Brute_force_attack))
Finally, while human fingerprints are "unique", it's possible to have two the same, it's just incredibly unlikely - it's the sam... | [
0.19044654071331024,
0.2540614604949951,
-0.2523272931575775,
0.3235531151294708,
-0.17788314819335938,
0.03472601994872093,
0.3158271312713623,
-0.16184312105178833,
-0.18528884649276733,
-0.8147398829460144,
0.16738736629486084,
0.18216684460639954,
-0.13030575215816498,
-0.0684283226728... | |
can compress anything to a 40 character string, but you cannot decompress it practically (even theoretically is a bit of a stretch..) | [
-0.14133386313915253,
0.013310366310179234,
0.11804907768964767,
0.12914876639842987,
0.22421585023403168,
-0.14417588710784912,
0.2928963303565979,
-0.26041534543037415,
-0.08187273144721985,
-0.2798898220062256,
-0.6205769777297974,
0.13076020777225494,
-0.009559672325849533,
-0.20787155... | |
I am using a modified version of the code [here](http://haacked.com/archive/2008/07/02/httpmodule-for-timing-requests.aspx). The difference is that I log it to a database and only if it is longer that 5000ms. The results have me worried. Several pages will occasionally log an execution time of minutes. Never will they ... | [
0.56777024269104,
0.16550421714782715,
0.2968399226665497,
0.03237448260188103,
0.06968053430318832,
-0.1559108942747116,
0.7733266353607178,
0.0636960044503212,
-0.6028425693511963,
-0.530616819858551,
0.22022226452827454,
0.21591706573963165,
-0.10752897709608078,
0.24985142052173615,
... | |
cause it to misreport the time?
Run your application through a profiler to see which methods are taking up the most processing time. | [
0.7925665974617004,
-0.02559901401400566,
0.15068703889846802,
0.17702890932559967,
0.32114964723587036,
-0.024343570694327354,
0.3270009160041809,
-0.008313912898302078,
-0.22898472845554352,
-0.5788466930389404,
0.4504186809062958,
0.35047686100006104,
-0.08120111376047134,
0.04647633060... | |
I have a site where I have a lot of outgoing links and I would like to count the clicks to those outgoing links.
I need to keep the links need to be visible. (as in, no Digg like links or redirects).
So I was thinking of hooking some jQuery function to all outgoing links. This function then calls a PHP script via AJA... | [
0.5469838976860046,
0.11216550320386887,
0.3745657205581665,
0.0054103657603263855,
-0.41922464966773987,
-0.23807282745838165,
0.31916290521621704,
0.09461823105812073,
-0.08086798340082169,
-0.6553090810775757,
0.2209644913673401,
0.4224807322025299,
-0.02910439483821392,
0.1106296926736... | |
clicks in Firefox to get a new tab.
BTW I do not care about people with JavaScript off. They will just go to the link and not be counted, it's fine.
I know this isn't directly answering your question, but you might want to rethink redirects (if done the Google way). Taken from [someone else's answer](https://stackover... | [
0.4363081455230713,
-0.0021342074032872915,
0.47381964325904846,
-0.13730783760547638,
-0.07950422912836075,
-0.2650371789932251,
0.4244469404220581,
-0.037017710506916046,
-0.29413819313049316,
-0.4616622030735016,
-0.031228559091687202,
0.46038174629211426,
-0.7516455054283142,
-0.195995... | |
link has an onmousedown
> javascript event that changes the link
> when you click on it. You can see this
> in action by right-clicking on a link.
> After you've done that, hovering over
> the link will now show the true
> destination (Google's click-tracking
> script) in the status bar instead of
> the result'... | [
-0.05208166688680649,
-0.19364215433597565,
0.8671196103096008,
0.2225554883480072,
-0.18104401230812073,
-0.3561885952949524,
0.3270157277584076,
0.20087778568267822,
-0.35321006178855896,
-0.7329949736595154,
-0.1098220944404602,
0.344453364610672,
-0.4190942943096161,
0.4214752912521362... | |
I am creating a web app that uses Rails built-in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly.
I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS?
I have... | [
0.4396854639053345,
0.34504154324531555,
0.024598367512226105,
0.07768433541059494,
-0.1350269913673401,
-0.016773216426372528,
0.32871928811073303,
0.08095746487379074,
-0.081700898706913,
-0.8127478957176208,
0.24494723975658417,
0.3772457540035248,
-0.12779732048511505,
0.20536050200462... | |
do this?
You can have a `noscript` block in the `head` element with a meta refresh tag in it. Example:
```
<head>
<!-- title, scripts, css etc go here -->
<noscript>
<meta http-equiv="refresh" content="2;url=http://yoursite.com/nojswarning.html">
</noscript>
</head>
```
you can read more about me... | [
0.3955416679382324,
-0.027856748551130295,
0.6860005855560303,
-0.14631876349449158,
-0.216289222240448,
-0.20682445168495178,
0.5082584023475647,
-0.1218612790107727,
-0.3057059049606323,
-0.7236499190330505,
-0.16214337944984436,
0.38538485765457153,
-0.383259654045105,
0.176595240831375... | |
any site you want. | [
0.6574247479438782,
0.11920446902513504,
0.1463419795036316,
0.10966326296329498,
-0.08910167217254639,
-0.37023285031318665,
-0.06778213381767273,
0.8134030699729919,
-0.22337959706783295,
-0.4604532718658447,
-0.5702568292617798,
0.32577836513519287,
0.02986185811460018,
0.20778295397758... | |
I'm in the beginning phases of a project that uses a flex front end with a java/glassfish back end. I'm curious which technology is better to connect the two, WebORB or BlazeDS. At first glance WebORB seems a little bit easier to deal with, but BlazeDS has a larger support community.
I can't say much about WebORB becau... | [
0.7311223745346069,
-0.10588133335113525,
0.10949740558862686,
0.022269515320658684,
-0.4550444781780243,
-0.3856949210166931,
0.05310886353254318,
-0.23419514298439026,
-0.2550664246082306,
-0.783439576625824,
0.30666306614875793,
0.42797237634658813,
0.0059574502520263195,
-0.33395117521... | |
for fixing community issues :) | [
0.09309286624193192,
0.2091294676065445,
0.05006661266088486,
0.20351211726665497,
-0.07694210857152939,
0.37824133038520813,
0.06601431220769882,
-0.27914875745773315,
-0.13963694870471954,
-0.31117913126945496,
-0.15302512049674988,
0.5209068059921265,
-0.1851481944322586,
-0.43268302083... | |
Not sure if this counts as programming related, it's a tool that I use.
I've got [Multiple IE](http://tredosoft.com/Multiple_IE) installed so I can test the sites I make on IE6 for those people who require it, but recently IE6 is not letting me enter into any textboxes, they're acting as if they're all disabled.
Has... | [
0.4998815953731537,
0.021255241706967354,
0.23955555260181427,
-0.10008759051561356,
-0.28098317980766296,
0.03382185474038124,
0.6203075647354126,
-0.06239514425396919,
-0.22727447748184204,
-0.7048208713531494,
-0.014235403388738632,
0.5457791090011597,
-0.3270854353904724,
0.29654800891... | |
I want to dial-up through VoIP. Yes, I know that it's almost impossible. I have heard that softmodems use software for DSP, but I guess the code its hardware specific. If I only could isolate the code that makes the modem signal I could use it on my project. Anyone ever heard about a library that would fullfill my need... | [
0.39367231726646423,
0.03205201402306557,
0.356997013092041,
0.1714477688074112,
0.039495307952165604,
-0.08870088309049606,
0.2333194613456726,
0.1522560715675354,
0.02322523295879364,
-0.6546168923377991,
-0.014388074167072773,
0.8290930986404419,
-0.24545761942863464,
0.0491540394723415... | |
I'm using I've set up the SDK but without having a board installed (they're pretty expensive).
I've noticed that on this machine, since I don't have the board installed, it's provided me with a softIP virtual-hardware board, managed by their software.
I haven't played with the VoIP stuff myself, but it might provide... | [
0.6320944428443909,
-0.10537829995155334,
0.370024710893631,
0.031721021980047226,
0.3709980845451355,
0.10797413438558578,
-0.189679354429245,
0.25295135378837585,
-0.4377678632736206,
-0.7412352561950684,
-0.018394865095615387,
0.586976170539856,
0.06690645962953568,
0.061251696199178696... | |
[Rainlendar](http://www.rainlendar.net/cms/index.php) is a fantastic cross platform calendar program that is written with wxWidgets. How does it achieve the transparency effect? Does anyone have any example code which demonstrates the transparency effect?
My guess is that they could be using a `wxScreenDC` to draw dire... | [
0.5161287188529968,
-0.15560312569141388,
0.7159995436668396,
0.003417456289753318,
-0.3738449811935425,
-0.13894887268543243,
0.18242789804935455,
-0.12925197184085846,
-0.20490729808807373,
-0.5139895677566528,
0.4161740243434906,
0.3896278738975525,
-0.12183643877506256,
0.0894908159971... | |
listing](http://docs.wxwidgets.org/trunk/classwx_screen_d_c.html)
**EDIT:** Just to clarify, usage (besides the need to call StartDrawingOnTop and EndDrawingOnTop) is identical to any other `wxDC`. | [
0.3244812786579132,
-0.0676385685801506,
0.40315237641334534,
-0.12455695122480392,
0.005823721177875996,
-0.2916618287563324,
-0.5384726524353027,
-0.2677795886993408,
-0.6685128808021545,
-0.43506842851638794,
-0.05879787728190422,
0.07637369632720947,
-0.38884294033050537,
0.01167369633... | |
Facebook have a great TextboxList component.
[alt text http://img10.imageshack.us/img10/1803/textboxlistfacebook.png](http://img10.imageshack.us/img10/1803/textboxlistfacebook.png)
This has [just been ported (from scratch) into MooTools](http://devthought.com/blog/projects-news/2009/04/the-new-textboxlist-is-here/).
... | [
-0.2410644292831421,
-0.058006372302770615,
0.5611149668693542,
-0.22055982053279877,
-0.550222635269165,
0.0995158925652504,
0.40682438015937805,
-0.04812030494213104,
-0.6441730856895447,
-0.42716506123542786,
-0.03234998136758804,
0.8401291966438293,
0.011508220806717873,
-0.59693121910... | |
Being able to create javascript code on the fly is pretty cool.
That is by using
```
HtmlPage.Window.Eval("alert('Hello World')");
```
But is there a way to do the same thing, with a C# method? Lets say something like
```
void MethodEval("MessageBox.Show('Hello World')");
```
Is it even possible, without having ... | [
0.5115478038787842,
0.12267571687698364,
0.221162348985672,
-0.14402441680431366,
-0.22983816266059875,
-0.2870453894138336,
0.3808077573776245,
0.029444614425301552,
-0.2921949028968811,
-0.638716995716095,
-0.2059905081987381,
0.38425928354263306,
-0.33244815468788147,
0.1166468113660812... | |
= @"import clr
clr.AddReference(""System.Windows.Forms"")
import System.Windows.Forms as WinForms
WinForms.MessageBox.Show(""Hello"", ""Hello World"")";
pythonEngine.Execute(script);
``` | [
0.3235936462879181,
0.13995994627475739,
0.30801984667778015,
-0.3702652156352997,
-0.051677312701940536,
-0.009337672963738441,
0.4001427888870239,
-0.24013492465019226,
-0.1126709133386612,
-0.21580253541469574,
-0.3847469985485077,
0.4893312454223633,
-0.6240302920341492,
0.103375852108... | |
I've recently come across [this rant](http://www.scs.stanford.edu/~dm/home/papers/c++-new.html).
I don't quite understand a few of the points mentioned in the article:
* The author mentions the small annoyance of `delete` vs `delete[]`, but seems to argue that it is actually necessary (for the compiler), without ever... | [
0.08715923875570297,
0.14370396733283997,
-0.11204498261213303,
0.07094713300466537,
-0.013674888759851456,
-0.15021352469921112,
0.24780508875846863,
-0.012933873571455479,
-0.3169792592525482,
-0.4324575662612915,
-0.04435863345861435,
0.5303009748458862,
-0.24171841144561768,
-0.0173712... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.