text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
// single button (abcd)
$("#source").keyup(function() {
$("#target").html( $(this).val() );
});
// pressed button (aaaaaaaa)
$("#source").keypress(function() {
$("#target").html( $(this).val() );
});
});
</script>
<textarea id="source"></textarea>
<div id="target"></div>
```
This e... | [
0.274950236082077,
-0.32451412081718445,
0.3521135151386261,
-0.3751538097858429,
-0.05694688484072685,
0.3238561451435089,
0.05964739993214607,
-0.24435703456401825,
-0.06690993905067444,
-0.8056792616844177,
-0.3551778793334961,
0.6272822618484497,
-0.46887093782424927,
0.020795879885554... | |
I want to following things for testing a application involving complex calculations:
1. How to use test automation tools for testing calculations?(using automation tools like QTP or open source tools)
2. How to decide coverage while testing calculations, how to design test cases?
Thanks in advance,
Testmann
You need ... | [
0.7094746828079224,
0.19115610420703888,
0.6957608461380005,
-0.05390958860516548,
0.23416776955127716,
0.1499883234500885,
0.1331716775894165,
-0.6059905290603638,
0.21224188804626465,
-0.7823994755744934,
-0.03932854160666466,
0.5567676424980164,
-0.25544238090515137,
0.02882785536348819... | |
id="target"></div>
```
This example uses jQuery. | [
0.15520310401916504,
-0.11664117127656937,
-0.05404064059257507,
-0.11541786789894104,
-0.27474406361579895,
-0.32455307245254517,
-0.1692913919687271,
0.03851725533604622,
0.07546897977590561,
-0.6008871793746948,
-0.17791789770126343,
0.264684796333313,
-0.46876081824302673,
-0.050670739... | |
I have two web projects, both these projects share client-side JavaScript currently residing as almost identical copies in both projects. I say almost because I'm clearly having versioning problems with these files.
I've managed to put the files in a solution folder and created links to them from my projects and this ... | [
0.7239624857902527,
0.21741099655628204,
0.029074527323246002,
-0.049963634461164474,
-0.3012455701828003,
-0.15334151685237885,
-0.03501874580979347,
0.16006465256214142,
-0.26660460233688354,
-0.7763571739196777,
0.25785836577415466,
0.47118380665779114,
-0.06099173426628113,
0.375123977... | |
valid location of the file but it will not find it there because it doesn't exist as a physical file at that location.
Anyone know how to work around this?
If you use SVN, you could have the files managed as externals. Basically this will allow you to have the shared files maintained in one location, and have an exter... | [
0.3031103014945984,
-0.2457822561264038,
-0.07478271424770355,
0.052488356828689575,
0.0017453102627769113,
-0.088667131960392,
0.6617249846458435,
-0.008906248025596142,
-0.46011269092559814,
-0.14518001675605774,
0.07061819732189178,
0.6030716300010681,
0.13695655763149261,
-0.0244003087... | |
Given:
* Two similar and complex Schemas, lets call them XmlA and XmlB.
* We want to convert from XmlA to XmlB
* Not all the information required to produce XmlB is contained withing XmlA (A database lookup will be required)
Can I use XSLT for this given that I'll need to reference additional data in the database? If... | [
0.3837873637676239,
0.09173815697431564,
0.24403421580791473,
-0.13334587216377258,
-0.38776296377182007,
-0.14628708362579346,
-0.06630323082208633,
-0.11047850549221039,
-0.20152199268341064,
-0.6501302719116211,
-0.134832963347435,
0.3462163805961609,
-0.35366296768188477,
0.12387543171... | |
to XSLT transforms, so that's a non-issue.
It's hard to qualitatively say without having the schemas and XML to hand, but I imagine a compiled transform will be faster than object mapping since you'll have to do a fair amount of wheel reinventing.
Further, one of the huge benefits of XSLT is it's maintainability and ... | [
0.2587982714176178,
-0.19468358159065247,
0.35519763827323914,
0.23938488960266113,
-0.22485746443271637,
-0.3052445650100708,
0.22884754836559296,
-0.05743633583188057,
0.06371546536684036,
-0.9165430068969727,
-0.2302161157131195,
0.9901425838470459,
-0.3396182954311371,
-0.1050762310624... | |
I'm using Billy McCafferty's rather excellent [S#arp Architecture](http://code.google.com/p/sharp-architecture/). Everything was spiffing and running very quickly.
I then updated to the the latest ASP.NET MVC RC. This meant I had to get the latest trunk of S#arp.
Also, two weeks ago, I updated from XP to Vista (32 bi... | [
0.14469584822654724,
0.19708697497844696,
0.5396754741668701,
0.09838537126779556,
-0.2687802016735077,
-0.001022710232064128,
0.4591209292411804,
0.023600997403264046,
-0.3915409445762634,
-0.684142529964447,
0.1267910897731781,
0.7467790246009827,
-0.14308147132396698,
-0.114471949636936... | |
wheel.
Every script or image on the page adds one second to the loading time.
* I don't have log4net turned on so I don't think it's that.
* This is running on the homepage so there's only a very minimal database stuff going on (which is very quick anyway)
* This is happening for simple images too, so I think it's go... | [
0.11744576692581177,
0.0959247276186943,
0.6041176319122314,
0.10611014068126678,
-0.0021184158977121115,
-0.20948322117328644,
0.3318333029747009,
0.24445068836212158,
-0.45918968319892883,
-0.8342551589012146,
0.17016388475894928,
0.7767022252082825,
-0.1768813580274582,
0.17712692916393... | |
My brother recently started learning C++. He told me a problem he encountered while trying to validate input in a simple program. He had a text menu where the user entered an integer `choice`, if they entered an invalid choice, they would be asked to enter it again (do while loop). However, if the user entered a string... | [
0.1300082951784134,
0.3271787464618683,
0.16713201999664307,
-0.26506832242012024,
0.2011115998029709,
0.23877708613872528,
0.6019872426986694,
-0.5114169120788574,
-0.3395487666130066,
-0.3321400582790375,
-0.03919703885912895,
0.34410589933395386,
-0.5871112942695618,
-0.0153026450425386... | |
cout<<"\nEnter a number:"
cin>>a;
if(cin.fail())
{
//Clear the fail state.
cin.clear();
//Ignore the rest of the wrong user input, till the end of the line.
cin.ignore(std::numeric_limits<std::streamsize>::max(),\ | [
0.16897109150886536,
-0.33401042222976685,
0.4377795159816742,
-0.31959259510040283,
0.5681934356689453,
0.0943363830447197,
0.17479375004768372,
0.07662451267242432,
0.03837645798921585,
-0.4200161099433899,
-0.462162047624588,
0.47631388902664185,
-0.4664474129676819,
0.10018715262413025... | |
'\n');
}
}while(true);
return 0;
}
```
While this worked ok, I also tried a few other ideas:
1. Using a try catch block. It didn't work. I think this is because an exception is not raised due to bad input.
2. I tried `if(! cin){//Do Something}` which didn't work | [
0.13181203603744507,
-0.31549951434135437,
-0.10826773941516876,
-0.22693224251270294,
-0.0862029567360878,
-0.23914624750614166,
0.5345265865325928,
-0.05059140920639038,
-0.07946492731571198,
-0.2579655647277832,
-0.16905876994132996,
0.37784960865974426,
-0.6229580640792847,
0.155861496... | |
either. I haven't yet figured this one out.
3. Thirdly, I tried inputting a fixed length string and then parsing it. I would use atoi(). Is this standards compliant and portable? Should I write my own parsing function?
4. If write a class that uses cin, but dynamically does this kind of error detection, perhaps b... | [
0.28338316082954407,
-0.001271324115805328,
0.055018145591020584,
0.22757470607757568,
-0.20917905867099762,
-0.04901567101478577,
0.09290153533220291,
-0.20700035989284515,
-0.08446000516414642,
-0.47716236114501953,
0.2947258949279785,
0.6061264872550964,
-0.3944210708141327,
-0.13881522... | |
add that while I am not new to writing C++ code, I am new to writing good standards compliant code. I am trying to unlearn bad practices and learn the right ones. I would be much obliged if answerers give a detailed explanation.
**EDIT**: I see that litb has answered one of my previous edits. I'll post that code here ... | [
0.13771900534629822,
0.3785620629787445,
0.3638263940811157,
-0.4478185176849365,
0.1559608280658722,
0.1349218636751175,
0.470809668302536,
-0.06716185808181763,
-0.1514531373977661,
-0.5726179480552673,
-0.5037124752998352,
0.7464803457260132,
-0.5889992117881775,
-0.23924103379249573,
... | |
if(cin.fail())
{
//Clear the fail state.
cin.clear();
//Ignore the rest of the wrong user input, till the end of the line.
cin.ignore(std::numeric_limits<std::streamsize>::max(),\ | [
0.27089205384254456,
-0.42901161313056946,
0.5208963751792908,
-0.23189853131771088,
0.771146297454834,
-0.06696325540542603,
0.2370907962322235,
-0.03179798647761345,
-0.010351840406656265,
-0.46290019154548645,
-0.5210786461830139,
0.5638136267662048,
-0.40459275245666504,
0.078821532428... | |
'\n');
}
else
{
inputCompletionFlag = false;
}
}while(!inputCompletionFlag);
return 0;
}
```
This code fails on input like "1asdsdf". I didn't know how to fix it but litb has posted a great | [
-0.20063582062721252,
0.23515313863754272,
0.39267057180404663,
-0.40067437291145325,
0.12004157155752182,
-0.11023715883493423,
0.7085302472114563,
-0.07141135632991791,
-0.05817834287881851,
-0.6780198812484741,
-0.2754784822463989,
0.548731803894043,
-0.47819840908050537,
0.137926489114... | |
answer. :)
Here is code you could use to make sure you also reject things like
```
42crap
```
Where non-number characters follow the number. If you read the whole line and then parse it and execute actions appropriately it will possibly require you to change the way your program works. If your program read your num... | [
0.29955190420150757,
0.13674819469451904,
-0.12649695575237274,
0.18740214407444,
-0.16694985330104828,
0.20192982256412506,
0.00299738603644073,
-0.2406427413225174,
-0.1316835582256317,
-0.39321133494377136,
0.008429807610809803,
0.20405790209770203,
-0.18807177245616913,
0.0034363148733... | |
**I**nput - **P**rocessing - **O**utput
Anyway, here is how you can reject the number-non-number of above. Read a line into a string, then parse it with a `stringstream`:
```
std::string getline() {
std::string str;
std::getline(std::cin, str);
return str;
}
int choice;
std::istringstream iss(getline());
iss >... | [
-0.29471519589424133,
-0.2930142283439636,
0.5877984166145325,
-0.2863767445087433,
0.13906022906303406,
0.09521795809268951,
0.29976052045822144,
-0.1661044806241989,
-0.12711621820926666,
-0.7575404047966003,
-0.3529139757156372,
0.4246329069137573,
-0.4800689220428467,
-0.01740608923137... | |
Earlier versions of this answer used `std::cin` directly - but `std::ws` won't work well together with `std::cin` connected to a terminal (it will block instead waiting for the user to input something), so we use a `stringstream` for reading the integer.
---
Answering some of your questions:
**Question:** 1. Using ... | [
-0.10807456821203232,
-0.05113442987203598,
0.15531963109970093,
0.25398412346839905,
-0.28271639347076416,
0.04972776770591736,
0.3469964563846588,
-0.09748224169015884,
-0.16108889877796173,
-0.395958811044693,
-0.06001244857907295,
0.3294253349304199,
-0.5019370317459106,
-0.13812781870... | |
exception thrown:
```
iss.exceptions(ios_base::failbit);
```
I did never use it. If you do that on `std::cin`, you will have to remember to restore the flags for other readers that rely on it not throwing. Finding it way easier to just use the functions *fail*, *bad* to ask for the state of the stream.
**Question:... | [
-0.21922567486763,
0.3541437089443207,
-0.022395586594939232,
-0.20937497913837433,
-0.22679810225963593,
0.07355901598930359,
0.6088057160377502,
-0.07706534117460251,
-0.26509398221969604,
-0.270597368478775,
0.04176140949130058,
0.5099276304244995,
-0.34365320205688477,
-0.1245648339390... | |
tried inputting a fixed length string and then parsing it. I would use atoi(). Is this standards compliant and portable? Should I write my own parsing function?
***Answer:*** atoi is Standard Compliant. But it's not good when you want to check for errors. There is no error checking, done by it as opposed to other func... | [
0.109522245824337,
-0.055264320224523544,
-0.15482068061828613,
0.18774092197418213,
-0.439325749874115,
0.2664479613304138,
0.3026839792728424,
-0.1958560198545456,
-0.12759126722812653,
-0.5332832336425781,
0.16138257086277008,
0.7866836190223694,
-0.3561353087425232,
-0.2762924730777740... | |
fast performing code. One should avoid them in programs because they work rather low-level and require using raw naked pointers. By their very nature, they can't be enhanced to work with user defined types either. Specifically, this talks about the function "strtol" (string-to-long) which is basically atoi with error c... | [
0.06396528333425522,
-0.4639408588409424,
-0.15011684596538544,
0.33603236079216003,
-0.037952721118927,
-0.22042354941368103,
0.043794021010398865,
0.07292093336582184,
-0.23740223050117493,
-0.5482938885688782,
-0.160967156291008,
0.735605001449585,
-0.23818524181842804,
-0.3223847746849... | |
don't need to care too much about overhead here (if you mean runtime-overhead). But it depends specifically on where you use that class. That question will be very important if you are writing a high performance system that processes input and needs to have high throughout. But if you need to read input from a terminal... | [
0.5312217473983765,
-0.020150668919086456,
-0.18555426597595215,
0.34616783261299133,
-0.03217657655477524,
-0.1284051239490509,
-0.014144126325845718,
0.16250303387641907,
-0.34887203574180603,
-0.6175920963287354,
0.3080627918243408,
0.7363436818122864,
0.20011931657791138,
-0.0920040830... | |
depends on how the code is implemented. You would need to scan your string that you read - whether it contains a number or not, whether some arbitrary string. Depending on what you want to scan (maybe you have a "date" input, or a "time" input format too. Look into `boost.date_time` for that), your code can become arbi... | [
0.33470362424850464,
-0.07387673854827881,
-0.19861561059951782,
0.41454511880874634,
-0.04236726090312004,
-0.07186926156282425,
0.19320450723171234,
-0.10670948028564453,
-0.24537767469882965,
-0.6583998799324036,
0.13680271804332733,
0.41603338718414307,
0.018116271123290062,
0.06674621... | |
After following a [tutorial](http://guides.rails.info/getting_started.html) Ive found. Im now redoing it again, without the scaffolding part, to learn it better.
However, editing my \app\views\home\index.html.erb to contain:
```
<h1>Rails test project</h1>
<%= link_to "my blog", posts_path>
```
I get an error:
```... | [
0.09997634589672089,
0.05937128886580467,
0.38070887327194214,
-0.07245888561010361,
0.04578681290149689,
-0.11556361615657806,
0.3058033883571625,
-0.38937294483184814,
-0.17386959493160248,
-0.7439097166061401,
0.09422355890274048,
0.575148344039917,
-0.2822314500808716,
-0.0088296681642... | |
myself, define `posts_path`?
You will need to define a path to your posts in `config/routes.rb`
Rails 2.x syntax:
```
map.resources :posts
```
Rails 3.x syntax:
```
resources :posts
``` | [
0.5688140392303467,
0.30077576637268066,
0.38013482093811035,
-0.03150630369782448,
0.028667742386460304,
-0.05348796024918556,
0.2538270354270935,
0.017415260896086693,
0.06873057782649994,
-1.0604653358459473,
0.27854442596435547,
0.2954188585281372,
-0.2983926832675934,
0.14342798292636... | |
I am working on a VB.NET batch PDF exporting program for CAD drawings. The programs runs fine, but the architecture is a mess. Basically, one big function takes the entire process from start to finish. I would like to make a separate class, or several, to do the exporting work.
**Here's the problem:**
Sometimes th... | [
0.618698000907898,
0.3984207510948181,
0.10717932134866714,
0.07898569107055664,
-0.013112449087202549,
-0.10114835947751999,
-0.022378133609890938,
0.0743522047996521,
-0.09842509776353836,
-0.7998249530792236,
0.244171142578125,
0.5486055612564087,
-0.05290086194872856,
0.331092476844787... | |
and I only want to do this once. In other words, "yes" = "yes to all." It seems wrong to have the form (which will be calling this new PDF exporting class) figure out what the PDF files will be called and whether there will be any overwrites. In fact, it would be best to have the names for the PDF files determined as t... | [
0.6430429220199585,
0.3121647238731384,
0.4884661138057709,
0.12691378593444824,
-0.06844417005777359,
-0.36963409185409546,
-0.0924677774310112,
-0.22533869743347168,
0.026797249913215637,
-0.7005763649940491,
-0.07375112175941467,
0.7465444803237915,
0.1260697841644287,
0.131653234362602... | |
handle the process of prompting the user? I would like to keep all GUI logic (even something as simple as a dialog box) out of my PDF exporting class. I need a way for the PDF exporting class to say, "Hey, I need to know if I should overwrite or skip this file," and the form class (or any other class) to say, "Um, ok, ... | [
0.32773131132125854,
-0.33708855509757996,
0.3327309191226959,
0.31559982895851135,
-0.2754550874233246,
-0.09286540746688843,
0.07399807870388031,
-0.04514278471469879,
0.050273001194000244,
-0.4093599021434784,
0.2432958483695984,
0.7647632956504822,
-0.02451133355498314,
-0.150036320090... | |
this about what the code should look like in the PDF exporting class?
```
Dim e As New FileExistsEventArgs(PDFFile)
RaiseEvent FileExists(Me, e)
If e.Overwrite Then
'Do stuff here
End If
```
A crazy idea: What about passing delegate functions to the export method of the PDF exporting class t... | [
0.34686973690986633,
-0.026091039180755615,
0.20655414462089539,
0.13157272338867188,
0.01195258367806673,
-0.20664790272712708,
0.10259544849395752,
-0.13458307087421417,
-0.2673366665840149,
-0.6008829474449158,
-0.4380950629711151,
0.7745883464813232,
-0.4291210174560547,
0.078906774520... | |
and then tell the exporter what to do. I'm a c# guy so let me give you a sample in there first:
```
void form_Load(object sender,EventArgs e)
{
//We are subscribing to the event here. In VB this is done differently
pdfExporter.FileExists+=new FileExistsEventHandler(pdfExporter_fileExists)
}
void pdfExporter_fil... | [
0.34588098526000977,
-0.22046369314193726,
0.3757089376449585,
0.03463087975978851,
0.018939493224024773,
-0.1524578183889389,
-0.05847962200641632,
-0.22367745637893677,
-0.0126705477014184,
-0.4630089998245239,
-0.1818106770515442,
0.43947768211364746,
-0.3044297993183136,
0.075284428894... | |
I have developed a WCF service that uses the net.tcp adapter and listens to a specific port. I want to connect to that service using a normal .net client that uses sockets to send data to the port and listens to responses.
When I try to send data to this service, I get the error: "The existing connection was forcibl... | [
0.4668850302696228,
-0.006951028481125832,
0.29218870401382446,
-0.09552527219057083,
-0.15099242329597473,
-0.1258319765329361,
0.10566292703151703,
-0.23293939232826233,
-0.16262030601501465,
-0.792525053024292,
-0.07675947993993759,
0.5284044742584229,
-0.40452590584754944,
0.3781319856... | |
by using an ordinary socket based client?
The key decision is whether or not to make the WCF service conform to the socket client or whether to make the socket client conform to the WCF service.
It will be simplest to attempt to conform to the WCF service, rather than trying to implement something custom within WCF, w... | [
0.5709808468818665,
-0.07092602550983429,
0.07582530379295349,
0.08203119039535522,
-0.33331239223480225,
-0.4086064398288727,
0.37442439794540405,
-0.17314837872982025,
-0.17212870717048645,
-0.777138352394104,
-0.2715228497982025,
0.5757102966308594,
-0.4494324028491974,
0.14622871577739... | |
WCF.
Any attempt to do so will require custom programming on the WCF side of things.
Whether you are using TcpClient or raw sockets in .NET to connect to and communicate with WCF does not matter. Any such interoperability must be handled with custom logic within WCF. Note that Net.Tcp is a custom transport protocol.... | [
0.503341019153595,
-0.17963281273841858,
0.4621182680130005,
0.15759018063545227,
-0.4118805229663849,
-0.36893948912620544,
-0.12983162701129913,
-0.12386664748191833,
-0.4768238663673401,
-0.7724883556365967,
-0.019184241071343422,
0.3019518256187439,
-0.6198455095291138,
0.3413109779357... | |
for WCF. Unfortunately, that sample does not illustrate communicating to and from a non-WCF UPD socket server.
I have an outstanding question that is rather detailed where I explain my effort to get sample code to generically be testable for using UDP...
[Is it possible to make the WcfTestClient work for custom trans... | [
0.5672316551208496,
-0.010803881101310253,
0.13842052221298218,
-0.0809258371591568,
-0.20019151270389557,
-0.026279043406248093,
0.12502963840961456,
-0.31092414259910583,
-0.31230637431144714,
-0.5330154299736023,
0.13951003551483154,
0.4327601492404938,
-0.5113336443901062,
0.2462135851... | |
with non-WCF coding. I don't want to mix approaches.
**Other Resources...**
* Choosing a Transport
*This article states that "The WCF TCP transport is optimized for the
scenario where both ends of the
communication are using WCF".*
<http://msdn.microsoft.com/en-us/library/ms733769.aspx>
* Trying to connect a no... | [
0.32617390155792236,
-0.31564703583717346,
0.1298948973417282,
0.0261731818318367,
-0.3657087981700897,
-0.012682606466114521,
0.09685108810663223,
-0.22640758752822876,
-0.5227847695350647,
-0.9497129917144775,
-0.08292783796787262,
0.44842520356178284,
-0.6177610158920288,
0.285468131303... | |
Simple WCF
Services
*The author explains how to figure out the format of the message that
needs to be sent to the service, so
that the TcpClient or other non-WCF
sockets client can send the write
information to the WCF service. The
implication here is that you are not
attempting to conform the WCF
service, but rathe... | [
0.5041694641113281,
0.0023025618866086006,
0.6006748080253601,
-0.09053023159503937,
-0.28639042377471924,
-0.2119702398777008,
0.4130578339099884,
-0.414061963558197,
-0.32839030027389526,
-0.4604797959327698,
-0.11700308322906494,
0.6862468123435974,
-0.34638071060180664,
-0.058448825031... | |
I'm trying to make a little gallery of some school works I've done in my animation class. I want to put 3 images on each line and they are all in divs because I did onion skin wrapping for a dropshadow on them. Unfortunately this makes them all just stick together in two lines across the page. But I want them specifica... | [
0.7960295081138611,
-0.1275055855512619,
0.23646409809589386,
-0.03159970045089722,
-0.38804489374160767,
-0.19765271246433258,
0.10889434069395065,
-0.06537263840436935,
-0.05380905792117119,
-0.8933079242706299,
-0.06150372698903084,
0.422380268573761,
-0.1084340363740921,
0.032169155776... | |
that one left aligned on the second line and therefore screwing up the order of the rest. Here's my code:
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" cont... | [
0.1300962120294571,
-0.00959809496998787,
0.38568875193595886,
0.020826946943998337,
-0.19473479688167572,
0.2462337762117386,
0.00127430132124573,
-0.3576277792453766,
-0.06526883691549301,
-0.443847119808197,
-0.37030643224716187,
0.29282164573669434,
-0.11041341722011566,
-0.11359589546... | |
background-image: url('images/head.png');
background-repeat: repeat-x;
}
a {
color:#333333;
text-decoration: none;
}
a:hover {
color:#000000;
text-decoration:underline;
}
div.main {
width: 800px;
background-color:#FFFFFF;
margin-top... | [
-0.3106250464916229,
-0.10404564440250397,
0.6909549832344055,
-0.0295794028788805,
0.07953162491321564,
0.37712299823760986,
0.029452970251441002,
0.06814933568239212,
-0.39763760566711426,
-0.30841201543807983,
-0.5258246660232544,
0.14896893501281738,
-0.09294284135103226,
-0.0628041103... | |
color: #000000;
height: 1000px;
margin-bottom: 10px;
}
img.thumb {
}
.wrap1, .wrap2, .wrap3 {
display:inline-table;
/* \*/display:block;/**/
}
.wrap1 {
float:left;
background:url('images/shadow.gif') right bottom no-repeat;
}
.wrap2 { | [
0.01775103248655796,
-0.11258110404014587,
0.6565322279930115,
-0.07524805516004562,
0.21674327552318573,
0.2594059705734253,
0.07217361778020859,
-0.08500436693429947,
-0.36336779594421387,
-0.5222909450531006,
-0.2862105369567871,
0.36741235852241516,
-0.2146730273962021,
-0.151332527399... | |
background:url('images/corner_bl.gif') left bottom no-repeat;
}
.wrap3 {
padding:0 4px 4px 0;
background:url('images/corner_tr.gif' ) right top no-repeat;
}
</style>
<link rel="stylesheet" type="text/css" href="doc/css/style.css" />
<script type="text/javascript" src="src/adapter/shadowbox... | [
-0.14035780727863312,
-0.2251160591840744,
0.5650190114974976,
-0.303223580121994,
0.02680307999253273,
0.20933067798614502,
-0.009923108853399754,
-0.24852119386196136,
-0.3038080036640167,
-0.5459448099136353,
-0.4804067015647888,
0.5340449213981628,
-0.3979107439517975,
-0.2990193068981... | |
<div style='text-align:center;width:480px;'>
<div class="wrap1">
<div class="wrap2">
<div class="wrap3">
<a href='video/rmerl_particle_fire.flv' rel='shadowbox'><img class='thumb' src='thumbs/thumb_fire.png' /></a> | [
-0.02694167010486126,
-0.2795528769493103,
0.8877258896827698,
-0.26483702659606934,
0.013622582890093327,
0.14909698069095612,
0.0976325199007988,
-0.4298873245716095,
-0.6243392825126648,
-0.06377091258764267,
-0.05135411396622658,
0.5998855829238892,
-0.11883067339658737,
-0.00889916718... | |
</div>
</div>
</div>
<div class="wrap1">
<div class="wrap2">
<div class="wrap3"> | [
0.15681679546833038,
-0.35357698798179626,
0.06908776611089706,
-0.2586829364299774,
-0.6158349514007568,
-0.15521055459976196,
0.3293631672859192,
-0.3122924268245697,
-0.3473793864250183,
-0.27453938126564026,
-0.3936624526977539,
0.3906196057796478,
-0.27643853425979614,
-0.021634424105... | |
<a href='video/rmerl_firework.flv' rel='shadowbox'><img class='thumb' src='thumbs/thumb_firework.png' /></a>
</div>
</div>
</div>
<div class="wrap1">
<div class="wrap2"> | [
-0.019208410754799843,
0.025895094498991966,
0.7738324403762817,
-0.17151840031147003,
0.10920541733503342,
0.19830743968486786,
-0.017695534974336624,
-0.42062315344810486,
-0.6108897924423218,
-0.003593609668314457,
-0.19337445497512817,
0.5661114454269409,
-0.09846118092536926,
-0.15268... | |
<div class="wrap3">
<a href='video/rmerl_fountain.flv' rel='shadowbox'><img class='thumb' src='thumbs/thumb_fountain.png' /></a>
</div>
</div>
</div>
</div> | [
0.06400355696678162,
-0.2959737777709961,
1.047963261604309,
-0.05868188664317131,
0.0885961502790451,
0.27905839681625366,
-0.3161006271839142,
-0.12613114714622498,
-0.7227630615234375,
0.09996987134218216,
0.08802367746829987,
0.5582917928695679,
-0.17028774321079254,
0.0950088873505592... | |
<br />
<div style='text-align:center;width:480px;'>
<div class="wrap1">
<div class="wrap2">
<div class="wrap3">
<a href='video/rmerl_logo.flv' rel='shadowbox'><img class='thumb' src= 'thumbs/thumb_logo.png' /></a> | [
0.0578717477619648,
-0.08942392468452454,
1.0527645349502563,
-0.24667930603027344,
0.22781406342983246,
0.21826231479644775,
-0.26197925209999084,
-0.2914152145385742,
-0.7448379993438721,
-0.05627023056149483,
0.03260701894760132,
0.6276518702507019,
-0.09349868446588516,
-0.036641467362... | |
</div>
</div>
</div>
<div class="wrap1">
<div class="wrap2">
<div class="wrap3"> | [
0.15681679546833038,
-0.35357698798179626,
0.06908776611089706,
-0.2586829364299774,
-0.6158349514007568,
-0.15521055459976196,
0.3293631672859192,
-0.3122924268245697,
-0.3473793864250183,
-0.27453938126564026,
-0.3936624526977539,
0.3906196057796478,
-0.27643853425979614,
-0.021634424105... | |
<a href='video/rmerl_rocket_ship.flv' rel='shadowbox'><img class='thumb' src='thumbs/thumb_rocket.png' /></a>
</div>
</div>
</div>
<div class="wrap1"> | [
-0.15012413263320923,
-0.06554871052503586,
0.794404149055481,
0.053117286413908005,
0.2254004180431366,
0.12979771196842194,
-0.1916407346725464,
-0.257895827293396,
-0.7847083806991577,
0.15478725731372833,
-0.20067797601222992,
0.6238004565238953,
-0.005496951285749674,
-0.0667809918522... | |
<div class="wrap2">
<div class="wrap3">
<a href='video/rmerl_solar_system.flv' rel='shadowbox'><img class='thumb' src='thumbs/thumb_solar_system.png' /></a>
</div>
</div> | [
-0.09882619231939316,
-0.29196813702583313,
1.0104163885116577,
-0.08542592823505402,
0.17006990313529968,
0.09020734578371048,
-0.24600772559642792,
-0.09964344650506973,
-0.8624123930931091,
-0.003947370685636997,
-0.13060663640499115,
0.6336808204650879,
-0.12530724704265594,
-0.0179286... | |
</div>
</div>
<br />
<div style='text-align:center;width:480px;'>
<div class="wrap1">
<div class="wrap2">
<div class="wrap3"> | [
0.15981528162956238,
-0.4229493737220764,
0.370402067899704,
-0.3613951504230499,
-0.5506190657615662,
-0.18541710078716278,
0.008450238965451717,
-0.37615105509757996,
-0.3289961814880371,
-0.40995076298713684,
-0.2612779140472412,
0.4190724194049835,
-0.10733149200677872,
-0.009774228557... | |
<a href='video/rmerl_space_ship.flv' rel='shadowbox'><img class='thumb' src='thumbs/thumb_space_ship.png' /></a>
</div>
</div>
</div>
<div class="wrap1">
<div class="wrap2"> | [
-0.16733919084072113,
-0.11862355470657349,
0.8483431935310364,
-0.1413152813911438,
0.10544517636299133,
0.24374927580356598,
-0.1215539425611496,
-0.22655710577964783,
-0.7121464014053345,
-0.003770325565710664,
-0.25544100999832153,
0.5755361914634705,
0.05802438035607338,
-0.0386915951... | |
<div class="wrap3">
<a href='video/rmerl_still_life.flv' rel='shadowbox'><img class='thumb' src='thumbs/thumb_still_life.png' /></a>
</div>
</div>
</div>
<div class="wrap1"> | [
0.05894050747156143,
-0.3557869493961334,
0.7514580488204956,
-0.18921715021133423,
0.14251430332660675,
0.1058955118060112,
-0.0791768878698349,
-0.28050363063812256,
-0.6938180923461914,
0.05560512840747833,
-0.12052476406097412,
0.5856930017471313,
-0.20320215821266174,
-0.1029431149363... | |
<div class="wrap2">
<div class="wrap3">
<a href='video/rmerl_walkthrough.flv' rel='shadowbox'><img class='thumb' src='thumbs/thumb_walkthrough.png' /></a>
</div> | [
-0.05962541326880455,
-0.31489473581314087,
1.0386219024658203,
-0.11559468507766724,
0.23406581580638885,
0.07796783000230789,
-0.12358145415782928,
-0.13059276342391968,
-0.7847567796707153,
-0.008101262152194977,
-0.08236614614725113,
0.6627927422523499,
-0.1758347898721695,
0.078337095... | |
</div>
</div>
</div>
</div></center>
</body>
</html>
```
It looks like your second image may be slightly taller than your third. So your floated second line is only floating back until it hits the second image. Either set your image or wrap1 heights, or add style="clear:both" to the break tags ... | [
0.4991758465766907,
-0.44407784938812256,
0.8068819046020508,
0.09463436156511307,
-0.3724375367164612,
-0.055872295051813126,
0.1389360874891281,
-0.3097449243068695,
-0.30909034609794617,
-0.4356079399585724,
0.013682221993803978,
0.12671075761318207,
-0.02008301578462124,
-0.33276233077... | |
For some weeks now we have been fighting with an issue where at a small number of customers our Outlook addin gets unloaded and disabled for yet undetermined reasons. By "disabled" I mean that Outlook changes the following registry value from 3 to 2 which in effect means that the addin will not be loaded on next startu... | [
0.2569139301776886,
0.34771424531936646,
0.4082223176956177,
-0.1890908032655716,
-0.01260985154658556,
0.155104860663414,
0.24381320178508759,
0.29593661427497864,
-0.46460700035095215,
-0.47882717847824097,
-0.13512440025806427,
0.7428072690963745,
-0.26086050271987915,
0.197341859340667... | |
there appear to be applicable:
* The addin is not merely listed in the Disabled Items list.
* There are no unhandled exceptions neither in the `IDTExtensibility2` methods nor anywhere else in the code. All code is wrapped in try/catch equivalents and all exception output is emitted only via `OutputDebugString` or into... | [
0.3553367853164673,
0.3465096354484558,
0.07118307054042816,
0.05775489658117294,
-0.1200728490948677,
-0.04297734051942825,
0.3761691451072693,
0.2791084945201874,
-0.17774708569049835,
-0.49315476417541504,
-0.28175637125968933,
0.35838139057159424,
-0.3179280459880829,
-0.13540244102478... | |
issue in our test environments so far so we haven't yet been able to attach a debugger while the issue occurs.
* The issue never occurs while we try to watch what happens via remote support (TeamViewer). I suspect this is because TeamViewer uses a hook DLL that injects itself into all running processes (including Outlo... | [
0.43325912952423096,
-0.08547487109899521,
0.07085412740707397,
0.04501454159617424,
0.12609706819057465,
-0.25298231840133667,
0.3847538232803345,
0.2847174406051636,
-0.2150062918663025,
-0.619427502155304,
-0.17969109117984772,
0.45292940735816956,
-0.19354353845119476,
-0.0586602501571... | |
this has happened all subsequent attempts to get the addin to load on that machine (by manually changing back the LoadBehavior value) will fail (i.e. LoadBehaviour will simply change back to 2) until we compile and deploy another build (or try to watch using TeamViewer - see above).
* Typically the addin will get unloa... | [
0.3678381145000458,
-0.12749718129634857,
0.46739834547042847,
-0.12576571106910706,
0.04433387517929077,
-0.24401676654815674,
0.3404648005962372,
0.1096414104104042,
-0.3793943226337433,
-0.6352832317352295,
-0.39687883853912354,
0.658850371837616,
-0.16244733333587646,
0.037370830774307... | |
As far as I can tell from our log files and by observing the issue via SysInternals ProcessMonitor, when the addin get disabled on Outlook startup (rather than during the session) the DLL gets unloaded even before the COM object (i.e. the addin) gets instantiated (log messages in the constructor never show up).
* We ha... | [
0.47440779209136963,
0.07195436209440231,
0.36002394556999207,
-0.22714367508888245,
0.08972452580928802,
0.06585481017827988,
0.36136719584465027,
0.37916314601898193,
-0.29334184527397156,
-0.6659454107284546,
-0.2768908143043518,
0.7383535504341125,
-0.17319467663764954,
-0.017189206555... | |
haven't received any reports about this.
* **UPDATE:** It seems that often (but not always) one of the last things that gets logged before the addin gets unloaded is an exception with text "OLE error 800A01A8". That exception gets caught by a global exception handler built into the framework I'm using ([Add-in-Express]... | [
0.11545895785093307,
0.2069360911846161,
0.2943268418312073,
-0.00990314595401287,
0.27339696884155273,
-0.34622618556022644,
0.6685365438461304,
0.2292291224002838,
-0.5131316184997559,
-0.5944480895996094,
-0.4052688479423523,
0.3835083246231079,
-0.33687683939933777,
-0.0936113670468330... | |
up-to-date patch level
* Outlook 2003 Professional, up-to-date patch level
* varying versions of McAfee Virus Scan (though disabling it has no effect - see above)
* Users are members of the local Administrators group
One more thing to note which very probably is significant as well (though maybe not as much as I first... | [
0.2852359712123871,
0.2301054447889328,
0.27411630749702454,
0.07585921138525009,
0.03968823701143265,
-0.563176691532135,
0.14053893089294434,
0.2082032859325409,
-0.4606545567512512,
-0.3389317989349365,
-0.05224177613854408,
0.7485070824623108,
-0.057441141456365585,
-0.1516731083393097... | |
been my prime suspect. However, while the vendor confirmed that there may be unhandled exceptions in their code a log file produced by a special debug version of the protection shell showed that the unpacking process completed successfully and control was already handed back to the protected DLL before Outlook unloaded... | [
0.3850342929363251,
0.17531248927116394,
0.3398979604244232,
0.09718608856201172,
0.2667127251625061,
-0.20433786511421204,
0.1352628767490387,
0.2755921185016632,
-0.2684469223022461,
0.10154931992292404,
0.014133277349174023,
0.4669356644153595,
-0.2239982783794403,
-0.052831973880529404... | |
we were using. It has been confirmed by the vendor and was fixed in more recent releases. | [
0.4165440797805786,
0.04618847370147705,
0.40997663140296936,
0.15523870289325714,
0.44839906692504883,
-0.0156690776348114,
0.003393009305000305,
0.14771640300750732,
0.20678626000881195,
-0.2132108211517334,
0.11784927546977997,
0.673602819442749,
-0.2760838270187378,
-0.0199002902954816... | |
I need to generate and send SyncML OTA SMS. I have sms provider that can send binary sms. But I'm kind of stuck in OTA spec and will be really happy if you point me to any of these:
1. An open source tool that can generate OTA sms out of some properties provided.
2. A good overview or tutorial on how to make OTA SMS (... | [
0.4658030569553375,
0.07616223394870758,
0.3331449031829834,
0.15101496875286102,
-0.02562515251338482,
-0.12028934806585312,
0.6029401421546936,
0.1814645230770111,
-0.03645866736769676,
-0.5064586400985718,
0.1270468384027481,
0.6189041137695312,
-0.5218055844306946,
-0.07466951012611389... | |
confirmed by the vendor and was fixed in more recent releases. | [
0.06884483993053436,
-0.0888441801071167,
0.5773656368255615,
0.01223886851221323,
0.5103552937507629,
0.018185080960392952,
0.03230748698115349,
0.45966672897338867,
-0.28632688522338867,
0.04292408749461174,
-0.2684144675731659,
0.11624642461538315,
-0.22434751689434052,
0.17435908317565... | |
I'm trying to execute a web service which returns a DataTable with the following piece of code:
```
$.ajax({
type: "POST",
url: url,
data: data,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
//do things
}
});
... | [
0.16719764471054077,
0.16502772271633148,
0.0014710713876411319,
-0.11648507416248322,
-0.1876479834318161,
0.06041101738810539,
0.4347441792488098,
0.09479262679815292,
0.06412038207054138,
-0.6744638085365295,
-0.22987881302833557,
0.42613649368286133,
-0.2909582555294037,
0.078093320131... | |
has nothing to do with the input paramters etc. It only fails when the web method returns a datatable (the datatable only has 2 columns and 2 rows for the test I'm doing).
The WebService class is decorated with the [ScriptService] attribute so I thought that ASP.NET would automatically serialize the return value as JS... | [
-0.11297446489334106,
0.012691882438957691,
0.2290053367614746,
0.01047806441783905,
-0.4784037172794342,
-0.03661675751209259,
0.41941866278648376,
-0.11011692881584167,
-0.09087511897087097,
-0.5472615361213684,
0.05981955677270889,
0.5660589337348938,
-0.37909063696861267,
-0.0715905800... | |
to use the JavaScriptSerializer class to convert the DataTable into a JSON string.
Unfortunately, this class doesn't work with a DataTable so I converted the DataTable into a list of dictionnaries and pass that list to the JavaScriptSerializer class. It takes only a few lines of code and it works fine.
Example in V... | [
0.026420535519719124,
-0.3189464211463928,
0.7820615768432617,
-0.038837842643260956,
-0.23754994571208954,
-0.08653922379016876,
0.2511233687400818,
-0.4110001027584076,
-0.2278461456298828,
-0.8309920430183411,
-0.13867734372615814,
0.613948404788971,
-0.47141820192337036,
-0.00649028224... | |
Dim row As Dictionary(Of String, Object)
For Each dr As DataRow In dt.Rows
row = New Dictionary(Of String, Object)
For Each col As DataColumn In dt.Columns
row.Add(col.ColumnName, dr(col))
Next
rows.Add(row) | [
-0.0994773805141449,
-0.43127021193504333,
0.8608486652374268,
-0.050101570785045624,
-0.30286705493927,
0.31650665402412415,
-0.008296405896544456,
-0.33060216903686523,
-0.14409925043582916,
-0.46281901001930237,
-0.16966234147548676,
0.5584104657173157,
-0.3934250771999359,
0.1224986389... | |
Next
Return serializer.Serialize(rows)
End Function
``` | [
-0.45067286491394043,
-0.014224584214389324,
0.642155110836029,
-0.25997576117515564,
0.19287683069705963,
0.042416587471961975,
0.12569576501846313,
-0.06909149140119553,
-0.028684021905064583,
-0.6813493967056274,
-0.15698480606079102,
0.48527297377586365,
-0.39536935091018677,
0.1766973... | |
I'm building a little app using Java and Swing in NetBeans. Using NetBeans design window, I created a JFrame with a JPanel inside.
Now I want to dynamically add some jTextFields to the JPanel.
I wrote something like that:
```
Vector textFieldsVector = new Vector();
JTextField tf;
int i = 0;
while (i < 3) {
tf = n... | [
0.2782593369483948,
-0.06776027381420135,
0.6756763458251953,
-0.24650123715400696,
-0.1098591685295105,
0.28102409839630127,
0.3035471439361572,
-0.2442275434732437,
-0.23728205263614655,
-0.9671144485473633,
-0.10574190318584442,
0.5729990005493164,
-0.47914984822273254,
0.03077855147421... | |
in writing graphical Java apps, so I'm surely missing something very simple, but I can't see what.
In the Netbeans GUI, set the layout manager to something like GridLayout or FlowLayout (just for testing). You can do this by going to the GUI editor, clicking on your panel, and then right-clicking and selecting a layout... | [
0.19024133682250977,
-0.2107599377632141,
0.27899646759033203,
-0.022558799013495445,
-0.267074316740036,
-0.10132791846990585,
0.05386975780129433,
-0.07396269589662552,
-0.21145543456077576,
-1.050597906112671,
0.2355087250471115,
0.4365800619125366,
-0.4171965420246124,
-0.3478994369506... | |
the GUI editor) that sets its own layout manager, populates itself with components, etc. Then, in the Netbeans GUI editor, drag-and-drop that custom JPanel into the gui editor. Matisse is certainly capable of handling the runtime-modification of Swing components, but that's not the normal way to use it. | [
-0.25334110856056213,
-0.17901894450187683,
0.39926013350486755,
0.12373672425746918,
-0.30884188413619995,
-0.1677006185054779,
-0.3893048167228699,
-0.3877861499786377,
-0.21978987753391266,
-0.617629885673523,
-0.19986730813980103,
0.5952175259590149,
-0.39188146591186523,
-0.3664076328... | |
I often have a subroutine in Perl that fills an array with some information. Since I'm also used to hacking in C++, I find myself often do it like this in Perl, using references:
```
my @array;
getInfo(\@array);
sub getInfo {
my ($arrayRef) = @_;
push @$arrayRef, "obama";
# ...
}
```
instead of the more st... | [
0.26529595255851746,
0.049541037529706955,
0.20942723751068115,
0.011572960764169693,
-0.1290128529071808,
0.007847737520933151,
0.23148779571056366,
0.01288685668259859,
-0.2069634199142456,
-0.6338375806808472,
-0.15517690777778625,
0.40230557322502136,
-0.5629505515098572,
0.02699611335... | |
return.
Is that right? Or does Perl optimize that away anyway?
What about returning an array reference in the first place?
```
sub getInfo {
my $array_ref = [];
push @$array_ref, 'foo';
# ...
return $array_ref;
}
my $a_ref = getInfo();
# or if you want the array expanded
my @array = @{getInfo()};
```
Edit... | [
-0.015214185230433941,
0.006818484049290419,
0.2987625300884247,
-0.2487185299396515,
-0.0859021246433258,
0.10586858540773392,
0.34815800189971924,
-0.4278561472892761,
-0.13583648204803467,
-0.37250494956970215,
-0.32262685894966125,
0.6333631873130798,
-0.6423095464706421,
0.10982676595... | |
I have an HTML textbox that contains some SQL code that I need executed. I am able to retrieve the actual code from the textbox but I am not sure how to go about executing the code. Any simple and elegant ways using c# 3.5?
**DON'T EXECUTE CODE FROM A TEXTBOX**
unless you really trust what is being entered.
If you do... | [
0.256902813911438,
0.26338544487953186,
0.672524631023407,
-0.1609024703502655,
-0.06943600624799728,
-0.21889673173427582,
0.345887154340744,
-0.08920098096132278,
-0.015452070161700249,
-0.8228673934936523,
-0.02375815249979496,
0.6235157251358032,
-0.36556190252304077,
0.096785299479961... | |
Has anyone tryed to install Nutch on Windows? I'm following this installation guide: <http://zillionics.com/resources/articles/NutchGuideForDummies.htm>
After a few bumps I'm stuck trying to run the crawler. It gives me this error:
bin/nutch: line 15: syntax error near unexpected token '$'in\r''
'in/nutch: line 15: ... | [
-0.045478031039237976,
0.337462842464447,
0.0793955847620964,
0.0467805340886116,
-0.09972376376390457,
0.023831840604543686,
0.41548359394073486,
0.4383688271045685,
-0.2979273796081543,
-0.8261666297912598,
0.12857837975025177,
0.6622471809387207,
-0.42397797107696533,
0.1390076726675033... | |
enough data that a user can make sense of at one time.
Hence silverlight makes an excellent platform for display and entry of data in an engaging manner but you need good design and backend code to really make that happen. | [
0.2930048406124115,
0.1406431347131729,
0.3217010796070099,
0.505801260471344,
-0.06121433898806572,
-0.548537015914917,
-0.04818200692534447,
0.057100679725408554,
-0.19979552924633026,
-0.5125279426574707,
-0.0037766010500490665,
0.13530446588993073,
-0.011735908687114716,
0.146404370665... | |
For example, in this text:
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu tellus vel nunc pretium lacinia. Proin sed lorem. Cras sed ipsum. Nunc a libero quis risus sollicitudin imperdiet.
I want to match the word after 'ipsum'.
This sounds like a job for lookbehinds, though you should be aware th... | [
-0.1219276413321495,
0.1153532937169075,
0.8280328512191772,
-0.2137349247932434,
-0.15621419250965118,
0.3791865110397339,
-0.012046851217746735,
-0.2790360748767853,
-0.16931432485580444,
-0.5509551763534546,
-0.12248092889785767,
0.4808390140533447,
-0.07545681297779083,
-0.355949461460... | |
said, though, some flavors (JavaScript, for example) don't support lookbehind at all. Many others (most, in fact) only support "fixed width" lookbehinds — so you could use this example but not any of the repetition operators. (In other words, `(?<=\b\w+\s+)(\w+)` *wouldn't* work.) | [
0.2540704011917114,
-0.3411250114440918,
0.19641923904418945,
-0.2796114683151245,
-0.17041324079036713,
-0.14824213087558746,
0.3071436285972595,
0.05787836015224457,
-0.3440776467323303,
-0.6618580222129822,
-0.24680379033088684,
0.7250565886497498,
-0.4167487621307373,
0.032914277166128... | |
Can someone please help me with my problem?
I have a gridview in a webpage, whose datasource is an oracle database. I would like to know if it is possible to change the column widths while you are on the web page?
```
string select = "SELECT * FROM TABLE"
OracleCommand cmd = new OracleCommand(select, connectionstrin... | [
-0.04009387269616127,
0.10840536653995514,
0.32821306586265564,
0.19494417309761047,
0.002912816358730197,
-0.16993239521980286,
0.2668994069099426,
-0.05743173509836197,
-0.3250903785228729,
-0.8695548176765442,
0.12540636956691742,
0.605531632900238,
-0.3771822154521942,
0.13654793798923... | |
as follows; You have an expression:
```
first + " " + second
```
As it stands `first` and `second` are unbound - they don't have any fixed values - so that expression has no concrete value at present. By using
```
let (...) in
```
syntax you are specifying how those variables are bound **in that expression**, so ... | [
-0.03673708438873291,
-0.17707426846027374,
0.3230130672454834,
-0.14251315593719482,
-0.029979297891259193,
-0.3107863664627075,
0.2931261956691742,
-0.38846448063850403,
0.18170477449893951,
-0.6060534715652466,
-0.36595892906188965,
0.7662521600723267,
-0.20747804641723633,
0.0393982082... | |
will not work the same as
```
let (x = 2 and y = x + 2)
y + x
```
Because in the former case `x` is only bound **after** the `in` keyword.
In the later case normal variable *scoping* rules take effect, so variables are bound as soon as they are declared.
Hope that clears things up. In general you should alway... | [
0.4367143213748932,
0.05947874113917351,
0.6394302845001221,
-0.25201475620269775,
0.3541175425052643,
-0.4967651963233948,
0.3279309868812561,
0.010309119708836079,
-0.037568751722574234,
-0.7219213843345642,
-0.6221562027931213,
0.5721680521965027,
-0.3920402228832245,
0.2665310204029083... | |
Thanks for reading this.
I imagine this is really a javascript question, and my title probably does not get at the heart of what I am trying to do, but I want to store the result of my ajax request in a global variable. This would allow me to test the var before making the ajax call...and avoid repeated ajax calls for... | [
0.14589422941207886,
-0.05231655389070511,
0.309177428483963,
0.31050869822502136,
-0.19896487891674042,
-0.13620644807815552,
0.2214319258928299,
0.20349043607711792,
-0.1126977801322937,
-0.5107505321502686,
0.20520494878292084,
0.5237105488777161,
-0.00600977661088109,
0.141881853342056... | |
not been able to make that work.
I like to include working examples in my questions, but in this case the latency in the call to the server is part of the problem.
Thanks
```
$('#getSelectOptions').bind("click", function() {
populateSelect(this);
});
function populateSelect(whatWasClicked) {
var thisSelect = $(wh... | [
0.16349196434020996,
-0.07766656577587128,
0.6533403396606445,
0.02332708053290844,
0.08858094364404678,
0.02030898816883564,
0.5747300982475281,
-0.3136197626590729,
-0.09997052699327469,
-0.6904762387275696,
-0.22021692991256714,
0.40683713555336,
-0.07104925811290741,
-0.085070692002773... | |
;
}
function ajaxCall(elementToPopulate, waitTime, whatToDoBeforeAjaxSend,
whatToDoAfterAjaxSend, dataToSendToTheServer,
whatToDoAfterSuccess, whatToDoAfterError) {
$.ajax({
type: "post",
url: "http://myURL/cgi-bin/broker",
dataType: "text",
data: dataToSendToTheSe... | [
-0.26600149273872375,
0.03584698960185051,
0.42225027084350586,
0.1027851402759552,
0.1844722032546997,
-0.08601508289575577,
0.3908160924911499,
-0.001273769186809659,
0.13171082735061646,
-0.5679664015769958,
-0.2549067735671997,
0.7323854565620422,
-0.19043117761611938,
-0.1012574434280... | |
multiple selects..so I need way to reference the results for each select
jQuery has a $.data method which you can use to store/retrieve items related to any element on the page.
```
//e.g. create some object
var inst = {};
inst.name = 'My Name'
var target = $('#textbox1');
//save the data
$.data(target, 'PROP_NAME',... | [
0.12442190945148468,
-0.32090598344802856,
0.587496817111969,
0.15600672364234924,
-0.08045346289873123,
0.3778878152370453,
0.2352239191532135,
-0.347236305475235,
-0.23689007759094238,
-0.6647753119468689,
0.045011017471551895,
0.49622222781181335,
-0.5626424551010132,
0.4242179989814758... | |
I have a list of items as a part of a web application. The question is how user can manipulate the order of items in the list (not the list sort order). The typical way is to use arrow buttons to move items up or down. The other way is the drag-and-drop.
But are there any other ways for a user interface for list reord... | [
0.3458394706249237,
-0.08341154456138611,
0.2950051724910736,
0.014278840273618698,
-0.12485822290182114,
0.17176848649978638,
-0.44872793555259705,
-0.14560802280902863,
-0.8568614721298218,
-0.43480658531188965,
0.2996407151222229,
0.35905721783638,
-0.16494552791118622,
0.00635386072099... | |
should work just as well for any set that can be represented as a sorted group of clickable elements:
* Present your list of items as clickable elements.
* Clicking an element "selects" it, it is highlighted to indicate it's selected.
* Clicking another item moves the selected item to a position just before the click... | [
0.12415432929992676,
-0.46321195363998413,
0.2919643223285675,
0.007955006323754787,
-0.11468823999166489,
0.0187765471637249,
0.1685875803232193,
-0.14841319620609283,
-0.5452393889427185,
-0.42137807607650757,
-0.2150750458240509,
0.33784809708595276,
-0.19731681048870087,
-0.12430743128... | |
the mouse button while you figure out where you want to "drop" the item.
The method could easily be extended to allow selection of multiple items (via shift-click or similar) which could then be placed in a new position in the same way.
**Provide Order Numbers**
Used by Netflix and some internal apps I've worked wit... | [
0.24786339700222015,
-0.4851338565349579,
0.44669562578201294,
0.30484381318092346,
0.045056309551000595,
0.1986566185951233,
0.03297387436032295,
-0.1335475891828537,
-0.5183891654014587,
-0.5116070508956909,
-0.32370439171791077,
0.3212931752204895,
-0.2156054824590683,
-0.24807117879390... | |
item where the order number is displayed, starting with 1.
* The user changes the order numbers in the text fields as desired.
* If multiple items are given the same order number, they are placed next to each other.
* Provide a button to "apply" the sort in JavaScript so that the user doesn't have to submit the entire ... | [
0.37242767214775085,
-0.006100770551711321,
0.48047807812690735,
0.06520126014947891,
-0.28158506751060486,
0.22905713319778442,
0.07633448392152786,
-0.10066048800945282,
-0.4876629412174225,
-0.7321725487709045,
-0.1533433347940445,
0.39254847168922424,
-0.14632029831409454,
-0.087617740... | |
to use:
* Highlight the area where the item will appear when dropped. For example, show a prominent horizontal line between the two existing items where the item will be inserted if it is dropped.
* Ghost the draggable item as it is dragged so that it's obvious what's being moved, rather than using a generic "dragging... | [
0.12674327194690704,
-0.349214106798172,
0.3902702331542969,
0.3348083794116974,
-0.21759912371635437,
-0.024336393922567368,
0.16916000843048096,
0.011011297814548016,
-0.5834897756576538,
-0.4061788022518158,
-0.3240954577922821,
0.27129632234573364,
-0.15574845671653748,
-0.285377532243... | |
with the required coordination. | [
0.14715832471847534,
0.25397253036499023,
0.23114469647407532,
0.09858299046754837,
-0.07628576457500458,
-0.10457450896501541,
0.19734947383403778,
-0.1587083488702774,
-0.2383640557527542,
-0.30046457052230835,
-0.14143256843090057,
0.31605473160743713,
-0.09076811373233795,
-0.291681081... | |
How to make the browser upload and display image after the user puts it in the file upload widget? I've got a form where an image should be uploaded and edited by the user on the fly (before they hit submit). Can I do it with Jquery?
Take a look at the JQuery [MultiFileUpload plugin](http://plugins.jquery.com/project/M... | [
0.6960883140563965,
-0.20323199033737183,
0.29535284638404846,
0.016739096492528915,
-0.28382351994514465,
-0.26588934659957886,
0.10129446536302567,
0.12576867640018463,
-0.23084580898284912,
-0.7702901363372803,
0.21511641144752502,
0.5379159450531006,
-0.15565665066242218,
-0.1833784878... | |
I currently have my PHP class variables set up like this:
```
class someThing {
private $cat;
private $dog;
private $mouse;
private $hamster;
private $zebra;
private $lion;
//getters, setters and other methods
}
```
But I've also seen people using a single array to store all the variabl... | [
0.20237530767917633,
0.10519424080848694,
-0.056888654828071594,
-0.04030803591012955,
-0.2715006172657013,
0.12449954450130463,
0.22735945880413055,
-0.16075576841831207,
-0.28679731488227844,
-0.4059540331363678,
0.1746259480714798,
0.20415551960468292,
-0.20317067205905914,
0.1313066184... | |
other people have stated here already.
However, if you need to store data on a class privately, but the footprint of data members is unknown, you'll often see your 2nd example combined with \_\_get() \_\_set() hooks to hide that they're being stored privately.
```
class someThing {
private $data = array();
... | [
0.47596386075019836,
-0.26812639832496643,
-0.1831492781639099,
0.009060530923306942,
0.010208550840616226,
-0.37016263604164124,
0.3158944845199585,
-0.23428742587566376,
-0.2960621118545532,
-0.6590595245361328,
-0.36722511053085327,
0.5134528279304504,
-0.1872013509273529,
0.23470972478... | |
}
return null;
}
public function __set( $property, $value )
{
$this->data[$property] = $value;
}
}
```
Then, objects of this class can be used like an instance of stdClass, only none of the members you set are actually public
```
$o = new someThing()
$o->cow = 'moo';
$o->dog = 'woof'... | [
0.25188344717025757,
-0.2826571762561798,
0.1088433489203453,
-0.11114686727523804,
0.14359650015830994,
-0.19444143772125244,
0.31299281120300293,
-0.36241263151168823,
-0.16479481756687164,
-0.7553513646125793,
-0.35472655296325684,
0.8308309316635132,
-0.09432724863290787,
0.28932383656... | |
Im using the AutoPersistenceModel in Fluent NHIbernate to map all my entities and that all works fine :D
However, several of my objects have
```
public virtual IList<Comment> Comments { get; set; }
```
In the database there is a single comments table, and each entity with the above code, has its own link table to c... | [
0.037267960608005524,
-0.09092137217521667,
0.6321930289268494,
-0.11056404560804367,
-0.14434002339839935,
0.02565246820449829,
0.15567061305046082,
-0.39645135402679443,
-0.05700860917568207,
-0.8292618989944458,
-0.08067917078733444,
0.6883043050765991,
-0.41904374957084656,
0.076100289... | |
i can set a convention where by all mappings to IList<Comment> are wired up automatically as manytomany with the above table name convention?
Thanks
Andrew
I know it's not what you want to hear, but the answer is no.
In the current design of Fluent NHibernate, there isn't a way to apply conventions to collections wh... | [
0.35674867033958435,
0.047007277607917786,
0.38292068243026733,
0.2212589681148529,
-0.3154599666595459,
-0.1016928032040596,
0.6008291840553284,
-0.011177115142345428,
-0.0002446514554321766,
-0.5425727367401123,
0.16022340953350067,
0.560941219329834,
-0.3018398582935333,
0.1212252154946... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.