text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I have a database with DateTime fields that are currently stored in local time. An upcoming project will require all these dates to be converted to universal time. Rather than writing a c# app to convert these times to universal time, I'd rather use available sqlserver/sql features to accurately convert these dates to ... | [
0.49696671962738037,
-0.02609814889729023,
0.6336295008659363,
0.0398370623588562,
0.166767880320549,
-0.07954823970794678,
0.0670083686709404,
-0.04808085039258003,
-0.2673634886741638,
-0.9496669769287109,
0.09595132619142532,
0.47895878553390503,
-0.251873254776001,
0.3824951648712158,
... | |
UIntPtr wParam, IntPtr lParam);
```
then call:
```
SendMessage(myRichTextBox.Handle, (uint)0x00B6, (UIntPtr)0, (IntPtr)(-1));
```
Seems to work OK - you might need to tweak things a bit, though.
Hope that helps. | [
-0.009911350905895233,
-0.04868784919381142,
0.6242733597755432,
-0.3046777844429016,
0.049306683242321014,
-0.20843452215194702,
0.30372047424316406,
0.08990347385406494,
0.021260488778352737,
-0.8057270050048828,
-0.2668779492378235,
0.6071519255638123,
-0.28484833240509033,
0.0683433860... | |
I had a nasty typo that wasted my time and my colleague's time, it was something like this:
```
for (i = 0; i < blah; i++); // <- I had a semi-colon here, that's the bug!
{
// Some awesome logic here
}
```
First of all, it's very embarrassing, second thing, I should never repeat this. I'm relatively new to C. In J... | [
0.06514637172222137,
0.41346877813339233,
-0.08358966559171677,
-0.15932099521160126,
-0.1454959362745285,
-0.3369144797325134,
0.18698272109031677,
0.43420663475990295,
-0.22887010872364044,
-0.7684917449951172,
0.1891484409570694,
0.5981908440589905,
-0.30202609300613403,
0.0480789206922... | |
I have a simple event handler with a ItemAdding event that changes a column value that I need in the ItemUpdated method. After uploading a word 2007 document (\*.docx, \*.pptx or xlsx) the value of the column is changed, but when I protect the document the value of the column disappears in the ItemUpdated method. This ... | [
-0.4039667844772339,
-0.07045663893222809,
0.4775920510292053,
-0.11391029506921768,
-0.14311760663986206,
-0.11553245782852173,
0.28280770778656006,
-0.17931953072547913,
-0.08691495656967163,
-0.7643265128135681,
0.05991825461387634,
0.8248868584632874,
-0.256926566362381,
0.039100233465... | |
the default values for the field on upload/creation. Once the item is edited we are experiencing that the office documents values are overriding the values set in our event handler.
We do not experience this when using an asynchronous event handler, but the asynchronous event handler has conflicts with updates on othe... | [
0.08820265531539917,
-0.30532127618789673,
0.3229977786540985,
0.2589449882507324,
0.011275931261479855,
-0.193898007273674,
0.31723836064338684,
-0.019206788390874863,
-0.2514329254627228,
-0.7240570783615112,
-0.22264358401298523,
0.8521257638931274,
-0.1559934914112091,
-0.0581758879125... | |
is setting the [SPWeb.ParserEnabled](http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.parserenabled.aspx) to FALSE will remove the connection to the document properties which will stop the above behaviour. It prevents the list properties from being added to the office document. | [
0.1132773607969284,
0.35299140214920044,
0.5369464755058289,
0.06405233591794968,
0.2812232971191406,
-0.47215089201927185,
0.7743093371391296,
-0.1862173229455948,
-0.2618538737297058,
-0.29436448216438293,
-0.29013073444366455,
0.11080672591924667,
-0.30485430359840393,
0.322216659784317... | |
We have a high security application and we want to allow users to enter URLs that other users will see.
This introduces a high risk of XSS hacks - a user could potentially enter javascript that another user ends up executing. Since we hold sensitive data it's essential that this never happens.
What are the best pract... | [
0.6806192994117737,
0.18896415829658508,
0.3307129442691803,
0.29084014892578125,
0.258739709854126,
-0.6565344929695129,
0.33137986063957214,
0.053926434367895126,
-0.0697343498468399,
-0.25980883836746216,
-0.07657406479120255,
0.25192195177078247,
-0.12715747952461243,
-0.01711078174412... | |
links at all?
---
Clarification:
Basically our users want to input:
> stackoverflow.com
And have it output to another user:
```
<a href="http://stackoverflow.com">stackoverflow.com</a>
```
What I really worry about is them using this in a XSS hack. I.e. they input:
> alert('hacked!');
So other users get this... | [
0.4888479709625244,
0.10104221105575562,
0.38768771290779114,
0.03652314841747284,
-0.2832200825214386,
-0.5526866912841797,
0.34007400274276733,
0.0942780077457428,
-0.43533921241760254,
-0.5734160542488098,
-0.16396142542362213,
0.5138035416603088,
-0.4971861243247986,
-0.015740767121315... | |
sanitise `<iframe>`, `<img>` and clever CSS references?
I'm working in a high security environment - a single XSS hack could result in very high losses for us. I'm happy that I could produce a Regex (or use one of the excellent suggestions so far) that could exclude everything that I could think of, but would that be ... | [
0.20625430345535278,
0.15453089773654938,
0.29531440138816833,
-0.22149111330509186,
-0.29410499334335327,
-0.12786784768104553,
0.38781413435935974,
-0.19280120730400085,
-0.03377247229218483,
-0.6521809101104736,
-0.08897609263658524,
0.28256890177726746,
-0.5080698728561401,
0.334209442... | |
This is a common problem for all developers, I am looking for the best solution to make windows forms UI responsive.
I have an animated GIF file to show progress of my calcuation on windows form. I took a picture box control and placed animated gif into that. now when my calcuation starts - the animaged gif freezes. ... | [
0.24803484976291656,
0.04276231303811073,
0.6583882570266724,
0.042457036674022675,
0.007878889329731464,
0.10789727419614792,
0.24878202378749847,
0.05899203196167946,
-0.2759317457675934,
-0.7636152505874634,
0.3097670078277588,
0.25688818097114563,
-0.12145228683948517,
-0.1347785592079... | |
a single threaded application, and I want a simple solution, not looking for multi-threads, or background worker kind of technologies.
Any help?
Multiple threads would be my recommendation. A bit messy first time you try ;)
Simplest model: One thread for the GUI, and one thread for whatever work you need to do.
Chec... | [
0.27755242586135864,
-0.1271178126335144,
0.2722962200641632,
0.12920109927654266,
0.03153973072767258,
-0.04844576492905617,
0.23585501313209534,
-0.04343204200267792,
-0.49596333503723145,
-0.6914337873458862,
-0.034588638693094254,
0.5597358345985413,
-0.6945793032646179,
0.020942142233... | |
Why does the C++ STL not provide any "tree" containers, and what's the best thing to use instead?
I want to store a hierarchy of objects as a tree, rather than use a tree as a performance enhancement...
There are two reasons you could want to use a tree:
You want to mirror the problem using a tree-like structure:
... | [
-0.22624726593494415,
0.0688587948679924,
0.10882490873336792,
0.20292264223098755,
-0.21802864968776703,
-0.12927964329719543,
-0.07218705862760544,
-0.13148051500320435,
-0.579868733882904,
-0.4326072335243225,
-0.20979925990104675,
0.4597933292388916,
-0.3951513469219208,
-0.25176867842... | |
(though this is not actually a requirement).
See also this question:
[C tree Implementation](https://stackoverflow.com/questions/181630/whats-a-good-and-stable-c-tree-implementation) | [
0.2930872142314911,
0.20651356875896454,
-0.04968540370464325,
-0.06575048714876175,
0.28412631154060364,
-0.5729926824569702,
0.2907560467720032,
-0.1651371717453003,
-0.24262426793575287,
0.10083535313606262,
-0.4541563093662262,
0.7353265285491943,
-0.34194061160087585,
-0.4203995168209... | |
I'm writing SQL (for Oracle) like:
```
INSERT INTO Schema1.tableA SELECT * FROM Schema2.tableA;
```
where Schema1.tableA and Schema2.tableA have the same columns. However, it seems like this is unsafe, since the order of the columns coming back in the SELECT is undefined. What I should be doing is:
```
INSERT INT... | [
0.07643620669841766,
0.46013393998146057,
0.3199731409549713,
-0.3293339014053345,
0.037774164229631424,
-0.10304539650678635,
0.1890731006860733,
-0.11440671235322952,
0.017897436395287514,
-0.5399510264396667,
0.22435034811496735,
0.4640062153339386,
-0.37912359833717346,
-0.097051680088... | |
in the appropriate syntax. Thoughts?
This PL/SQL should do it:
```
declare
l_cols long;
l_sql long;
begin
for r in (select column_name from all_tab_columns
where table_name = 'TABLEA'
and owner = 'SCHEMA1'
)
loop
l_cols := l_cols || ',' || r.column_n... | [
-0.3103620409965515,
0.05895589292049408,
0.7551127076148987,
-0.45629894733428955,
-0.06651719659566879,
0.06546482443809509,
0.13613726198673248,
-0.26043933629989624,
0.031523384153842926,
-0.3332591950893402,
-0.4970824420452118,
0.3347076177597046,
-0.45965510606765747,
-0.04720528796... | |
end loop;
-- Remove leading comma
l_cols := substr(l_cols, 2);
l_sql := 'insert into schema1.tableA (' || l_cols || ') select '
|| l_cols || ' from schema2.tableA';
execute immediate l_sql;
end;
/
``` | [
-0.24677319824695587,
-0.1206073984503746,
0.40864014625549316,
-0.2608703076839447,
0.2905671298503876,
0.03859170153737068,
0.33858492970466614,
-0.10514804720878601,
0.05414772406220436,
-0.17802129685878754,
-0.6797148585319519,
0.35480597615242004,
-0.49949362874031067,
0.343887478113... | |
Let's say that I have a site where once the user selects a few options, the following (should) happen:
* Grabs files (in a directory) off of the local machine - works fine so far
* Moves them to a remote server - this is where I need help
Details:
* The remote server will be found via UNC path (\servername\xyz)
* I ... | [
0.23580506443977356,
0.09932351857423782,
0.47688525915145874,
0.10456239432096481,
0.3234241008758545,
-0.17007210850715637,
0.10455670952796936,
0.14783313870429993,
-0.28999558091163635,
-0.8321175575256348,
-0.10473160445690155,
0.31004035472869873,
0.02670767344534397,
0.2964886128902... | |
my site to do this? If I impersonate, then I might lose permissions to grab files on the local machine...
Note: I also have FTP access to the remote server. If there is a good FTP API that I could use, that would work as well, but I don't want to have to iterate over each and every file.
Oh, this is .NET 1.1 as well... | [
0.4701588749885559,
0.1096821129322052,
0.24264375865459442,
-0.1498604565858841,
-0.057545408606529236,
-0.3983897864818573,
0.456575483083725,
0.22450849413871765,
-0.36367473006248474,
-0.6375041604042053,
0.07700901478528976,
0.2638796865940094,
-0.3967037498950958,
0.21542493999004364... | |
this will work, even if they are in different domains. The thing to make sure of is that your .NET application is running as this user.
For instance:
* In domain XYZ have a user "filesynch" with a password "pass"
* In domain PDQ have a user "filesynch" with a password "pass"
* Make sure user PDQ\filesynch has access... | [
0.2730628550052643,
-0.1446637362241745,
0.36598965525627136,
0.20962154865264893,
-0.0972193107008934,
-0.4701917767524719,
0.115819551050663,
0.07271202653646469,
-0.20549961924552917,
-1.030307650566101,
-0.00010582921822788194,
0.13617050647735596,
-0.4115491211414337,
0.28938740491867... | |
I have SQL data that looks like this:
```
events
id name capacity
1 Cooking 10
2 Swimming 20
3 Archery 15
registrants
id name
1 Jimmy
2 Billy
3 Sally
registrant_event
registrant_id event_id
1 3
2 3 | [
0.25085076689720154,
0.45934656262397766,
0.11329619586467743,
0.14888572692871094,
-0.24303893744945526,
0.06320495158433914,
0.31122666597366333,
-0.39888808131217957,
-0.4062109589576721,
-0.3203641176223755,
0.15214954316616058,
0.4446207284927368,
-0.05318504571914673,
-0.195374697446... | |
3 2
```
I would like to select all of the fields in 'events' as well as an additional field that is the number of people who are currently registered for that event. In this case Archery would have 2 registrants, Swimming would have 1, and Cooking would have 0.
I imagine this could be accomplished in a s... | [
0.3653026521205902,
-0.0950140506029129,
0.526248574256897,
0.04514198750257492,
-0.3913428783416748,
0.008994203992187977,
-0.02779652364552021,
-0.5806353092193604,
-0.20119032263755798,
-0.33652326464653015,
0.09869568794965744,
0.44726815819740295,
-0.12309214472770691,
-0.287744998931... | |
Count(registrant_id) AS TotalRegistrants
FROM registrant_event
GROUP BY event_id
) ec ON e.id = ec.event_id
``` | [
0.35781803727149963,
-0.054245173931121826,
0.4292886257171631,
0.1680288314819336,
0.1824485957622528,
-0.17345166206359863,
-0.28697970509529114,
-0.7762388586997986,
-0.38371139764785767,
-0.10529878735542297,
-0.2566252648830414,
0.3658558428287506,
-0.12978705763816833,
0.365562260150... | |
In MySQL 5.0 why does the following error occur when trying to create a view with a subquery in the FROM clause?
> ERROR 1349 (HY000): View's SELECT contains a subquery in the FROM clause
If this is a limitation of the MySQL engine, then why haven't they implemented this feature yet?
Also, what are some good workaro... | [
-0.1952093094587326,
-0.20599502325057983,
0.44904226064682007,
-0.15415307879447937,
-0.17151311039924622,
-0.07509088516235352,
0.3666640818119049,
0.14805571734905243,
0.044838517904281616,
-0.6275303363800049,
-0.21556341648101807,
0.3837644159793854,
-0.3648284375667572,
0.44942021369... | |
UserName, COUNT(m1.UserFromId) as SentCount
FROM Message m1, User u1
WHERE u1.uid = m1.UserFromId
Group BY u1.name HAVING SentCount > 3 ) as temp
```
Couldn't your query just be written as:
```
SELECT u1.name as UserName from Message m1, User u1
WHERE u1.uid = m1.UserFromID GROUP BY u1.name HA... | [
-0.612496018409729,
0.008609813638031483,
0.5668175220489502,
-0.11346802860498428,
-0.17301835119724274,
0.17944009602069855,
0.21725226938724518,
-0.25002261996269226,
-0.2137536108493805,
-0.6188501119613647,
-0.3517669439315796,
0.2579719126224518,
-0.3853796720504761,
0.10398690402507... | |
I'm trying to be a good developer and create some documentation before I start programming my next project.
I have created a database schema diagram in Visio and created relationships between columns.
However, I am looking for a way to make the relationships between columns more clear. I want the arrow to connect col... | [
0.18847215175628662,
0.1643044650554657,
0.6170893907546997,
-0.04734262824058533,
-0.1934061497449875,
0.04689489305019379,
0.09475895017385483,
-0.261518657207489,
-0.283492773771286,
-0.6787797808647156,
0.19245731830596924,
0.4289020001888275,
-0.27563902735710144,
-0.18119268119335175... | |
to the right of the Pointer Tool. Click on the little arrow and change to the Connection Point Tool.
3. Hold Ctrl and click on one of the Table Shapes at the point where you want to join the Relationship Connector.
4. Do the same on the other Table Shape.
5. Glue the ends of the Relationship Connector to the Connection... | [
0.20022322237491608,
-0.10552973300218582,
0.7003685235977173,
0.15505802631378174,
-0.004078781232237816,
-0.11885197460651398,
-0.07592309266328812,
-0.36616477370262146,
-0.1621420979499817,
-0.3189617693424225,
0.09752779453992844,
0.716971755027771,
-0.27299126982688904,
0.11392156779... | |
I need to let end users specify a time range, to be stored and used internally as a starting date/time and ending date/time. The range could be minutes or it could be days.
**Has anyone discovered an interactive control that can handle this elegantly?**
Most GUI toolkits have a calendar control, so I could specify "s... | [
0.4985046684741974,
0.04546556621789932,
0.34735429286956787,
0.2013283371925354,
0.13807879388332367,
0.10704355686903,
0.08736199140548706,
0.0943043977022171,
-0.28709888458251953,
-0.704867959022522,
0.16131354868412018,
0.2978428602218628,
0.20704932510852814,
0.2040848582983017,
0.... | |
is how much clicking, typing, and more clicking is required to describe such a simple concept. Also I have to slap the user's hand if a time is typed in that isn't recognizable as a time.
Is there a cleaner implementation that I'm overlooking?
I tend to look at common design patterns for inspiration when I'm pondering... | [
0.2428300827741623,
-0.2641996145248413,
0.28154781460762024,
0.22916573286056519,
-0.0887388363480568,
-0.025168942287564278,
0.05722985416650772,
0.15628746151924133,
-0.4558248817920685,
-0.7518908381462097,
0.07967144250869751,
0.13513149321079254,
-0.12180592119693756,
-0.065200708806... | |
think of all the use-cases where recording short and long time time durations is required. As an example, company TimeSheet recording, company car mileage log software, task recording software, stopwatch applications, calendaring apps, etc. Then see how they've handled the GUI controls for capturing time ranges.
I ha... | [
0.4744369089603424,
-0.05944783613085747,
0.24674834311008453,
0.22614596784114838,
0.22439861297607422,
0.1924426108598709,
-0.2113691121339798,
0.2809740900993347,
-0.46305137872695923,
-0.7162532806396484,
0.14072385430335999,
0.3013038635253906,
0.07289472967386246,
0.22740821540355682... | |
selection of day month year.
* Below each calendar is a hh:mm box, which defaults to the current time.
* User can edit value in this time box using up/down arrows or by typing.
* Alternatively, show an analogue clock below each calendar. It takes 2 mouse clicks to set time( click 1 for hour and click 2 for minutes).
H... | [
0.44231411814689636,
0.08701515197753906,
0.9011369943618774,
0.16806194186210632,
0.008146648295223713,
0.2853201925754547,
0.17299653589725494,
0.03971468657255173,
-0.47139906883239746,
-0.5842429995536804,
-0.018842866644263268,
0.12193101644515991,
-0.003196892561390996,
0.35626885294... | |
I'm stuck in .NET 2.0 Windows Forms.
It doesn't look like the ability to select multiple nodes exists in the standard `TreeView` control.
I'm trying to do this for a context menu selection. So check boxes aren't an acceptable UI paradigm here.
What's the best way to provide that very necessary functionality?
We did ... | [
0.3667433559894562,
-0.15128839015960693,
0.2167397141456604,
0.02149246446788311,
0.05216272175312042,
-0.038988031446933746,
0.24386878311634064,
-0.02096364088356495,
-0.27894875407218933,
-0.6459241509437561,
0.2699851095676422,
0.25652438402175903,
-0.35719141364097595,
0.320188462734... | |
that are selected.
Don't forget to consider selection rules (are parents and children allowed, for example), and don't forget to implement the keyboard shortcuts including selection using Ctrl, Shift, and Ctrl+Shift, as well as the Spacebar for selecting/deselecting. | [
-0.1801174283027649,
0.17083236575126648,
0.08503156900405884,
0.017011521384119987,
0.48439908027648926,
0.1495158076286316,
-0.02656733989715576,
-0.06501223146915436,
-0.15834389626979828,
-0.6576083898544312,
-0.5706895589828491,
0.6877099275588989,
-0.015318827703595161,
-0.4249775409... | |
*[This question is related to but not the same as [this one](https://stackoverflow.com/questions/206564/what-is-the-performance-implication-of-converting-to-bool-in-c).]*
If I try to use values of certain types as boolean expressions, I get a warning. Rather than suppress the warning, I sometimes use the ternary opera... | [
0.11298757791519165,
-0.14354443550109863,
-0.14836148917675018,
-0.4000616669654846,
-0.20050175487995148,
-0.14881213009357452,
0.5291017293930054,
-0.040826451033353806,
-0.20142491161823273,
-0.2419845014810562,
-0.4018135666847229,
0.5760923027992249,
-0.2830410599708557,
0.1094377115... | |
? true : false; // ok
b = !!t; // any different?
```
So, does the double-not technique really do the same thing? Is it any more or less safe than the ternary technique? Is this technique equally safe with non-integral types (e.g., with `void *` or `double` for `T`)?
I'm not asking if `!!t` is good style... | [
0.08906344324350357,
0.03276306763291359,
0.015130882151424885,
-0.23397202789783478,
-0.3715062737464905,
-0.22360111773014069,
0.5702133178710938,
-0.054266415536403656,
-0.019695276394486427,
-0.12131435424089432,
-0.5079671144485474,
0.7228216528892517,
-0.4498196542263031,
-0.30882772... | |
so !! and ?: are IMO silly redundant decorations of the cast. I vote for
```
b = (t != 0);
```
No implicit conversions. | [
0.35761964321136475,
0.13971933722496033,
0.2163800150156021,
-0.24802222847938538,
-0.05500311776995659,
0.06010912358760834,
0.34710225462913513,
-0.31743812561035156,
-0.06129096820950508,
-0.2800779938697815,
-0.3242930471897125,
0.6004278659820557,
-0.17319998145103455,
0.083449006080... | |
I'm working with [logging in PHP with Pear](http://pear.php.net/package/Log), and I get into a standard problem: can I use file-based logging when the DB is not available? I don't mind if it's slow due to concurrency issues, but it cannot fail to work due to multiple, simultaneous hits.
I'm asking this question in ge... | [
0.567293643951416,
0.20712235569953918,
-0.15680813789367676,
0.11645492911338806,
-0.23363777995109558,
-0.14010080695152283,
0.38559237122535706,
0.022102132439613342,
-0.5322222113609314,
-0.40026283264160156,
0.194002166390419,
0.6340718269348145,
0.03780543431639671,
0.015815746039152... | |
way to go would be to use sqlite as a fall back.
Another way would be to email log events in this case, in addition to not loosing them this approach should make you aware of your database problem faster. | [
0.04556762054562569,
-0.24825376272201538,
0.015251180157065392,
0.3887389600276947,
0.005132312886416912,
-0.48044058680534363,
0.026973821222782135,
0.07263641804456711,
-0.24281978607177734,
-0.4238569438457489,
0.010215777903795242,
0.3400144875049591,
-0.2267281711101532,
-0.070494815... | |
Are [modal windows/dialogs](http://jquery.com/demo/thickbox/) considered a good practice for websites? One of the things that concerns me about using a modal window is that it is so much like a pop-up window and it could cause user frustration or cause users to simply close it because it's intrusive. Do you know of any... | [
0.5495437979698181,
0.08938011527061462,
0.2980782687664032,
0.14972195029258728,
-0.3514508008956909,
-0.5031923651695251,
0.4797963500022888,
0.13226944208145142,
-0.46963948011398315,
-0.7069085836410522,
-0.2534700632095337,
0.6174278855323792,
-0.2489059716463089,
0.037514206022024155... | |
What are good and bad practices for implementing modal windows? I know modals are probably most often used when displaying pictures or galleries, but what are some other practical use cases? Do you use them on your site and what lead you to your decision?
From a practice standpoint - excluding accessibility - modal win... | [
0.4879765510559082,
0.14637872576713562,
0.14280012249946594,
0.24532507359981537,
-0.2864653766155243,
-0.34169718623161316,
0.23452818393707275,
0.14198088645935059,
-0.21641144156455994,
-0.7782158851623535,
-0.1389387547969818,
0.6766345500946045,
-0.19278699159622192,
-0.1301039755344... | |
the same purpose as dialog boxes - to get the user to give some form of required input, or to acknowledge something before letting them interact with the site again.
From a purely accessible standpoint, they aren't so great. They typically require JavaScript, and, because of the way that modals are managed with respec... | [
0.23709942400455475,
0.03637413680553436,
0.2758719325065613,
0.059334032237529755,
-0.18143615126609802,
-0.26990383863449097,
0.4477001428604126,
-0.07975195348262787,
0.006198578048497438,
-0.5641602873802185,
-0.2706056833267212,
0.45521509647369385,
-0.2541760206222534,
0.044700551778... | |
current page redirect to the 'modal page', get the user's input, and return to the page it was on.
Finally, as far as my personal opinions are concerned, I don't mind modal windows. I think that, when used correctly, they provide a decent experience - if something **has** to get my attention, then I'd rather it do so ... | [
-0.15473692119121552,
-0.05879606306552887,
0.8006386756896973,
0.019471801817417145,
-0.10277846455574036,
0.024762995541095734,
0.3005658686161041,
0.5353280305862427,
-0.4027877748012543,
-0.8833135962486267,
-0.28301310539245605,
0.497446209192276,
-0.03828396648168564,
0.1891617774963... | |
a modal dialog. | [
-0.2959582805633545,
0.08068546652793884,
0.24403737485408783,
-0.21353848278522491,
-0.3335399329662323,
-0.008437255397439003,
0.2629792094230652,
-0.020666657015681267,
-0.08886293321847916,
-0.6606777906417847,
-0.5095198750495911,
0.5509232878684998,
-0.31896403431892395,
-0.276400566... | |
Is there any way to manually create fold points in code in Eclipse? I know how to enable folding and how to set the auto preferences, but i like being able to set my own fold points so I can ignore certain parts of my code. Think regions in VS.
I know there is in VS and NetBeans, but I cannot find a way to set manu... | [
0.33179423213005066,
-0.12236802279949188,
0.21693578362464905,
0.05750254541635513,
-0.30860844254493713,
-0.17436768114566803,
0.016772137954831123,
0.030615391209721565,
-0.18773381412029266,
-0.8707307577133179,
0.12817692756652832,
0.4836864769458771,
-0.1535893827676773,
-0.188974633... | |
recompiled for Eclipse 3.5 and is available at [the Apache Isis site](http://incubator.apache.org/isis/ide-support.html). A [direct download link](http://incubator.apache.org/isis/com.cb.eclipse.folding.KAM-3.5.zip) is also available. It also appears to work for Eclipse 3.6. | [
0.17533808946609497,
-0.35317379236221313,
0.4464534521102905,
0.05831208825111389,
-0.22884589433670044,
-0.1361210197210312,
0.13842840492725372,
-0.4002429246902466,
-0.24156121909618378,
-0.147785022854805,
-0.18452505767345428,
0.2190844863653183,
-0.1767597794532776,
-0.1623074859380... | |
How would I get the length of an `ArrayList` using a JSF EL expression?
```
#{MyBean.somelist.length}
```
does not work.
Yes, since some genius in the Java API creation committee decided that, even though certain classes have `size()` members or `length` attributes, they won't implement `getSize()` or `getLength()`... | [
0.16913524270057678,
-0.02010371722280979,
0.48368746042251587,
-0.21205730736255646,
-0.34675315022468567,
-0.028097694739699364,
0.08645738661289215,
-0.09282942861318588,
-0.22639453411102295,
-0.6141366958618164,
0.07653377950191498,
0.35873928666114807,
-0.346012681722641,
0.154982700... | |
namespace and use the length function
```
In JSF page:
#{ fn:length(MyBean.somelist) }
``` | [
0.034683652222156525,
0.05650893598794937,
0.21645736694335938,
-0.2653060853481293,
0.07308025658130646,
-0.15151764452457428,
0.04883972927927971,
0.18395131826400757,
-0.1960514634847641,
-0.5846452713012695,
-0.1501360535621643,
0.316654235124588,
-0.12834003567695618,
0.30856710672378... | |
I would like to use the API to return all tweets that match my search query, but only tweets posted within the last five seconds.
With Twitter's Search API, I can use the since\_id to grab all tweets from a specific ID. However, I can't really see a good way to find the tweet ID to begin from.
I'm also aware that you... | [
0.6752411127090454,
-0.11705005168914795,
0.11607690900564194,
0.19903068244457245,
0.04290801286697388,
-0.24622231721878052,
0.3856916129589081,
0.19643694162368774,
-0.054279621690511703,
-0.5874394178390503,
0.22122734785079956,
0.17372974753379822,
0.13146419823169708,
0.3795609474182... | |
your end, as created\_at is one of the fields returned in the result set. Just do your query, and only use the ones that are within the last 5 seconds. | [
0.392036110162735,
-0.14706580340862274,
0.5508698225021362,
0.09829329699277878,
0.2839995324611664,
-0.038133371621370316,
0.2994173765182495,
0.03578616678714752,
0.168023481965065,
-0.6681872010231018,
-0.30318182706832886,
0.6307063102722168,
-0.18484999239444733,
0.15428411960601807,... | |
I want subversion to commit a file even if it's unchanged. Is there a way to do this?
If you want the file contents to remain unchanged (meaning that you can't merely change whitespace as johnstok suggested) you can always change one of the properties on the file.
eg.
```
svn propset dummyproperty 1 yourfile
svn com... | [
0.8712242841720581,
-0.2631140351295471,
0.19238848984241486,
-0.08497760444879532,
-0.26126351952552795,
-0.1459357589483261,
0.19656355679035187,
0.06054139882326126,
-0.6115162372589111,
-0.4026198387145996,
0.2864927649497986,
0.3001072108745575,
-0.49019020795822144,
0.182414859533309... | |
this answer down have also had the same concerns.
I can't speak for the original poster, but one scenario where I have seen this used is when attempting to automatically synchronise activities on a Visual Sourcesafe repository with a subversion repository. | [
0.5351821184158325,
-0.176737979054451,
0.16846472024917603,
0.1899779886007309,
-0.19472774863243103,
-0.3882329761981964,
-0.05489393696188927,
0.21443955600261688,
-0.3279431164264679,
-0.5024471282958984,
0.40949392318725586,
0.3263747990131378,
-0.12415405362844467,
0.2483486533164978... | |
i have a class with a static public property called "Info".
via reflection i want to get this properties value, so i call:
```
PropertyInfo pi myType.GetProperty("Info");
string info = (string) pi.GetValue(null, null);
```
this works fine as long as the property is of type string. but actually my property is of typ... | [
0.16624532639980316,
-0.16349400579929352,
0.5256673693656921,
0.07284890860319138,
0.05374688655138016,
-0.17364534735679626,
-0.05032715946435928,
-0.23175732791423798,
0.04472639784216881,
-0.782227098941803,
-0.07481208443641663,
0.6078308820724487,
-0.433786541223526,
0.44499191641807... | |
"PluginName";
Info.Version = "PluginVersion";
return Info;
}
}
```
like this when i call:
```
IPluginInfo info = pi.GetValue(null, null) as IPluginInfo;
```
info is always null, whiel PropertyInfo pi is still valid. am i missing something obvious here?
Could you create a short but complete prog... | [
0.3351932168006897,
-0.07618501782417297,
0.1602766364812851,
0.018402205780148506,
-0.2160784751176834,
-0.30825671553611755,
0.19613923132419586,
-0.1212068721652031,
-0.13824239373207092,
-0.596982479095459,
0.11358405649662018,
0.5222161412239075,
-0.47382378578186035,
0.23891516029834... | |
result in an `object` variable first, then do the cast or "as" in another line. That way you can break the debugger and look at the return value before it's lost. | [
0.23782438039779663,
-0.2321103811264038,
0.043300092220306396,
0.025772346183657646,
-0.15370002388954163,
-0.03686942160129547,
0.15219281613826752,
-0.2089962661266327,
-0.05086049810051918,
-0.2160595804452896,
-0.3224644064903259,
0.6231265664100647,
-0.16987399756908417,
0.1869357526... | |
I am declaring an array of void pointers. Each of which points to a value of arbitary type.
`void **values; // Array of void pointers to each value of arbitary type`
Initializing values as follows:
```
values = (void**)calloc(3,sizeof(void*));
//can initialize values as: values = new void* [3];
int iv... | [
0.24257305264472961,
0.2684512436389923,
0.754591166973114,
-0.4741934835910797,
-0.015570294111967087,
0.17353186011314392,
0.5122495293617249,
-0.6129869818687439,
0.14682479202747345,
-0.653022825717926,
-0.3696829080581665,
0.5348854660987854,
-0.3354078531265259,
0.08823937177658081,
... | |
the memory allocated
free(*values);
//Error: *** glibc detected *** simpleSQL: free(): invalid pointer: 0x080611b4
//Core dumped
delete[] values*;
//warning: deleting 'void*' is undefined
//Similar Error.
```
Now how do I free/delete the memory allocated for values ( the array of void pointer... | [
0.277824729681015,
-0.039560288190841675,
0.1539260447025299,
0.1491076946258545,
0.03731054067611694,
0.053739797323942184,
0.43307337164878845,
-0.443988174200058,
-0.3395862579345703,
-0.4608728885650635,
-0.20973896980285645,
0.715563952922821,
-0.5341365337371826,
0.33487948775291443,... | |
// but it would have leaked the 2 items that you allocated
// with new
```
Note that since `str` is not dynamically allocated it should not (actually **cannot**) be freed.
A couple of notes:
* I'm assuming that the `sizeof(void)`
was meant to be `sizeof(void*)`
since what you have won't compil... | [
0.48930373787879944,
-0.033182404935359955,
-0.1795322597026825,
0.1802377700805664,
-0.063545823097229,
-0.17375639081001282,
0.40962153673171997,
-0.03727809339761734,
-0.45258331298828125,
-0.48051899671554565,
0.04355839639902115,
0.26739808917045593,
-0.2493237555027008,
0.18990841507... | |
I need to implement some kind of metric space search in Postgres(\*) (PL or PL/Python). So, I'm looking for good sources (or papers) with a very clear and crisp explanation of the machinery behind these ideas, in such way that I can implement it myself.
I would prefer clarity over efficiency.
(\*) The need for that i... | [
0.44339028000831604,
0.14101918041706085,
0.24091270565986633,
0.32635369896888733,
-0.09621775895357132,
-0.26264679431915283,
-0.09839695692062378,
0.14851485192775726,
-0.31385111808776855,
-0.824134111404419,
-0.20366397500038147,
0.1448221057653427,
-0.13064536452293396,
0.08744720369... | |
of edit distance as the metric. A nice but oldish overview of some solutions is given by [Navarro, Baeza-Yates, Sutinen, and Tarhio, IEEE Data Engineering Bulletin, 2001](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.11.5629); the related papers on Citeseer could also be useful. [Locality Sensitive Hashing](h... | [
-0.2014397382736206,
-0.07285872101783752,
0.19780664145946503,
0.09626638144254684,
-0.11804570257663727,
-0.0601615235209465,
-0.16265429556369781,
-0.09980760514736176,
-0.2786930203437805,
-0.5079792141914368,
-0.07526972144842148,
0.1845381259918213,
-0.06677421927452087,
-0.032421097... | |
Is there a way to hide private data members of a C++ class away from its users, in the cpp file? I think of the private members as part of the implementation and it seems a little backwards to declare them in the header file.
The "pimpl" idiom is how this is generally handled.
See
* <http://www.gotw.ca/gotw/024.htm>
... | [
0.27375516295433044,
-0.17364898324012756,
0.1993316262960434,
0.0637517124414444,
0.010700569488108158,
-0.2836993932723999,
0.22623778879642487,
-0.1540599763393402,
-0.40579384565353394,
-0.33114510774612427,
-0.2331317961215973,
0.22952963411808014,
-0.48726361989974976,
-0.29679468274... | |
I wish to ensure a user has access to an aspx page by 'Zone'. For example, "Financials" is a Security Zone which some users should not have access to.
The result should not involve patterns such as MVP, MVC, MVVM, etc. I'm looking for something that's light and quick to do.
To make things easier I have a base class w... | [
0.5200676321983337,
0.0028119476046413183,
0.2000488042831421,
0.11449769139289856,
-0.05852118879556656,
0.015411004424095154,
0.0841308981180191,
0.07905589044094086,
-0.2893342673778534,
-0.7028132677078247,
0.0775999128818512,
0.14243535697460175,
-0.21610206365585327,
-0.0415867641568... | |
Page, called SecurePage. In that I usually have a cross table in a database that lists objects, such as the page, and groups/users that have access to that page. Running a stored procedure using the UserID and the Object name (Page name in this case, but can be a field, or whatever) it returns whether that user or a gr... | [
0.1325165033340454,
0.005699790548533201,
0.6468431949615479,
0.1238488256931305,
-0.1564176231622696,
-0.33399924635887146,
0.24667653441429138,
-0.09797719866037369,
-0.24148258566856384,
-0.7994321584701538,
-0.14965519309043884,
0.27035126090049744,
-0.3642539083957672,
0.1699000597000... | |
I've been working with a small group of people on a coding project for fun. It's an organized and fairly cohesive group. The people I work with all have various skill sets related to programming, but some of them use older or outright wrong methods, such as excessive global variables, poor naming conventions, and other... | [
1.0189077854156494,
0.5133044719696045,
-0.28253889083862305,
0.06107174977660179,
-0.0045670876279473305,
-0.035129960626363754,
0.20195330679416656,
0.17122754454612732,
0.10344571620225906,
-0.5506022572517395,
-0.006924414075911045,
0.255221426486969,
0.28172439336776733,
-0.0422062948... | |
wrong. For example, ask these sort of questions:
> Why did you decide to make that a global variable?
>
>
> Why did you give it that name?
>
>
> That's interesting. I usually do mine this way because [Insert reason why you are better]
>
>
> Does that way work? I usually [Insert how you would make them look silly... | [
0.6411647200584412,
0.23601333796977997,
-0.2684289813041687,
0.3373429775238037,
-0.16091668605804443,
-0.3047276735305786,
0.1858915537595749,
0.2667429447174072,
-0.18529130518436432,
-0.1268688440322876,
0.1880115121603012,
0.2989254891872406,
-0.28108373284339905,
0.30779144167900085,... | |
was due to misinformation I would never judge my way as better without good reason. The best way to go about this is to just ask them why they chose that way; be sure to sound interested in their reasoning, because that is what you need to attack, not their ability.
A coding standard will definitely help, but if it w... | [
0.6900342702865601,
0.3045017719268799,
0.19930683076381683,
0.5085148215293884,
0.19985033571720123,
-0.3677762448787689,
0.6537067890167236,
0.17719542980194092,
-0.3052598237991333,
-0.1739974319934845,
-0.0546460822224617,
0.43601563572883606,
-0.004386307671666145,
-0.1721006780862808... | |
mostly stem from individual ability rather than a problem with convention, which is why I'd suggest working through the problems as a group when a problem rears its ugly head.
Most importantly, **do NOT immediately assume that your way is better**. In reality, it probably is, but we're dealing with another person's op... | [
0.6020318865776062,
0.26455095410346985,
0.01932038739323616,
0.4613463878631592,
-0.08224846422672272,
0.044605597853660583,
0.6584100127220154,
0.4229530692100525,
-0.22593584656715393,
-0.8064932823181152,
-0.12867577373981476,
0.6192823648452759,
0.2280958890914917,
-0.3033251166343689... | |
Is there a JSP script I can run to point to a JPEG file on the local filesystem to be printed to the Windows default printer? Thanks.
Edit:
I have the file on my server already.
How would I load the file into a browser to run window.print()?
Thanks
You will need a java applet if you don't want a server round trip. The... | [
0.3013339936733246,
0.122036412358284,
0.3210946321487427,
0.01047580037266016,
-0.21082037687301636,
-0.11927160620689392,
0.2826420068740845,
0.04296126216650009,
-0.4097896218299866,
-0.791310727596283,
-0.08367717266082764,
0.5046296715736389,
-0.2900618314743042,
-0.19505569338798523,... | |
I'm taking my first crack at [Ajax](http://en.wikipedia.org/wiki/Ajax_%28programming%29) with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON data that is returned for Date data types. Basically, I'm getting a string back that looks like this:
```
/Date(1224043200000)/
```
From so... | [
0.16217546164989471,
-0.03189731389284134,
0.44477754831314087,
0.008519981056451797,
-0.004090175032615662,
-0.19768644869327545,
-0.09609770029783249,
-0.05428045615553856,
-0.19912207126617432,
-0.5564981698989868,
-0.013981278985738754,
0.4302830100059509,
-0.14098267257213593,
-0.0364... | |
id },
function (result) {
$("#AuthMerchId").text(result.AuthorizationMerchantId);
$("#SttlMerchId").text(result.SettlementMerchantId);
$("#CreateDate").text(formatJSONDate(Date(result.AppendDts)));
$("#ExpireDate").text(formatJSONDate(Date(result.ExpiresDts)));
$("#LastUpdate").text(f... | [
0.08505815267562866,
-0.11271148175001144,
1.0510423183441162,
-0.1511625051498413,
0.23705993592739105,
0.2839948236942291,
0.22699038684368134,
-0.48279163241386414,
-0.2437097281217575,
-0.508852481842041,
-0.2593865990638733,
0.5051421523094177,
-0.06498619168996811,
0.3527842164039612... | |
new Date(parseInt(jsonDate.substr(6)));
```
The `substr()` function takes out the `/Date(` part, and the `parseInt()` function gets the integer and ignores the `)/` at the end. The resulting number is passed into the `Date` constructor.
---
I have intentionally left out the radix (the 2nd argument to `parseInt`); s... | [
0.053449682891368866,
0.1952396184206009,
0.4523530900478363,
-0.3210320770740509,
0.11126678436994553,
-0.01785842515528202,
-0.07220284640789032,
-0.17925558984279633,
-0.12836028635501862,
-0.4255076050758362,
-0.4324779212474823,
0.30080652236938477,
-0.16461625695228577,
0.30650305747... | |
Is there a way to specify which monitor a application appears on in Delphi or C++Builder?
I am developing a simple program for a customer, which displays kitchen orders on a secondary monitor, generated by a hospitality system. Currently they need to manually drag the window onto the second monitor after it starts.
S... | [
0.6016888618469238,
0.05754547938704491,
0.562214732170105,
-0.07622378319501877,
-0.02688538283109665,
0.14078554511070251,
-0.09613525867462158,
-0.06792577356100082,
-0.33092257380485535,
-0.7497595548629761,
-0.03446880355477333,
0.5786505937576294,
-0.2046038955450058,
0.1618938148021... | |
for you by [any of several components](http://www.torry.net/pages.php?id=96).
BTW, the Screen variable in the Forms unit has a property called MonitorCount and another indexable property, Monitors[Index: Integer]: TMonitor. TMonitor has properties indicating the left, top, width, height etc., so all the information yo... | [
0.5226213932037354,
-0.2503664791584015,
0.8979886770248413,
0.1269434094429016,
0.32119083404541016,
0.06401629745960236,
-0.12767592072486877,
-0.01746562495827675,
-0.47994762659072876,
-0.8304545879364014,
-0.09114724397659302,
0.4164363741874695,
-0.008685614913702011,
0.0449077747762... | |
Are there any classes in the .NET framework I can use to throw an event if time has caught up with a specified DateTime object?
If there isn't, what are the best practices when checking this? Create a new thread constantly checking? A timer (heaven forbid ;) )?
I wouldn't go with the thread approach. While a sleeping ... | [
0.3289889395236969,
-0.04397314786911011,
0.001805925858207047,
-0.16087335348129272,
-0.21345868706703186,
-0.31534865498542786,
0.3786396086215973,
-0.03462408855557442,
-0.5138340592384338,
-0.5395557284355164,
0.13711343705654144,
0.5106999278068542,
-0.1445569097995758,
0.085036307573... | |
size of a new thread) for nothing.
Using System.Threading.Timer. It uses an efficient timer queue. It can have hundreds of timers that are lightweight and only execute on 1 thread that is reused between all timers (assuming most timers aren't firing at the same time). | [
0.20382513105869293,
-0.3676987886428833,
0.23732051253318787,
0.1370813101530075,
0.0988660678267479,
-0.07631445676088333,
0.14581766724586487,
-0.2086118906736374,
-0.6110132932662964,
-0.6255115866661072,
0.1323733776807785,
0.20925544202327728,
-0.19619965553283691,
0.2466594129800796... | |
Is there a way to compile an Eclipse-based Java project from the command line?
I'm trying to automate my build (using FinalBuilder not ant), and I'm neither a Java nor Eclipse expert. I can probably figure out how to do this with straight java command line options, but then the Eclipse project feels like a lot of was... | [
0.5388888716697693,
0.15400250256061554,
-0.19813595712184906,
0.08692127466201782,
-0.27612441778182983,
0.06778406351804733,
0.2549324333667755,
0.03358789160847664,
-0.18373645842075348,
-0.6426017880439758,
0.36346739530563354,
0.38956522941589355,
-0.05441237613558769,
-0.152486503124... | |
find the compile steps it is doing behind the scenes?
---
Guys, I'm looking for an answer that does *NOT* include ant. Let me re-iterate the original question ....... Is there a way to build an Eclipse project from the command line?
I don't think this is an unreasonable question given that I can do something like t... | [
0.49487853050231934,
0.10666092485189438,
0.0850374698638916,
0.11278456449508667,
-0.14023639261722565,
-0.16154801845550537,
0.17507809400558472,
-0.15698708593845367,
-0.07910431176424026,
-0.6401519179344177,
-0.11984851211309433,
0.705049991607666,
-0.19263389706611633,
-0.28795138001... | |
to figure out. If you're not using a win32 exe, you can try this:
```
java -cp startup.jar -noSplash -data "D:\Source\MyProject\workspace" -application org.eclipse.jdt.apt.core.aptBuild
```
**Update**
Several years ago eclipse replaced `startup.jar` with the "equinox launcher"
<https://wiki.eclipse.org/Equinox_Lau... | [
0.17480507493019104,
0.3530687987804413,
0.3672054708003998,
0.19824327528476715,
-0.20271062850952148,
0.11068032681941986,
-0.17421767115592957,
0.18710726499557495,
-0.2776736617088318,
-0.6939145922660828,
-0.13324834406375885,
0.255357563495636,
-0.1404092013835907,
-0.010323456488549... | |
Lets say I've got two interchangeable pieces of code and I want to figure out which one of them takes less processor time to execute. How would I do this?
To get a very rough estimation I could just put NSLog() calls on either side of the code I wanted to profile, but it seems like the processor being otherwise very b... | [
0.6063472032546997,
0.23818281292915344,
-0.025530606508255005,
0.17452403903007507,
0.03183367848396301,
0.23644649982452393,
0.281367689371109,
0.048290494829416275,
-0.3008822798728943,
-0.6936404705047607,
0.2550782561302185,
0.7152115702629089,
-0.32549208402633667,
0.0318979434669017... | |
called "premature optimization."
Xcode includes an excellent [profiler](http://en.wikipedia.org/wiki/Performance_analysis) tool called "[Shark](http://developer.apple.com/documentation/DeveloperTools/Conceptual/SharkUserGuide/Introduction/chapter_1_section_1.html)." For some versions, it's found in /Developer/Applicat... | [
0.20935577154159546,
0.023522160947322845,
-0.0847218856215477,
-0.1679469794034958,
0.2891902029514313,
0.03845136985182762,
0.1262812465429306,
-0.2880150377750397,
0.0034919821191579103,
-0.441779762506485,
-0.1386076956987381,
0.8175305128097534,
-0.053820036351680756,
-0.2178064435720... | |
you **have** run Shark, and you're looking to optimize the topmost bottleneck, simply replace it with your optimized code and run your app under Shark again. Then, compare the percentage of the overall time being spent in the replacement code to that of the original. | [
0.7024606466293335,
-0.2225654423236847,
0.07873689383268356,
0.04306234046816826,
0.32137107849121094,
-0.024978801608085632,
0.08659563213586807,
0.06333716958761215,
-0.11657966673374176,
-0.674360990524292,
0.0990854948759079,
0.9256683588027954,
-0.0617603063583374,
-0.083737723529338... | |
I have a page that contains a user control that is just a personalized dropdown list . I assign to each item the attribute `onClick=__doPostBack('actrl',0)`.
when I click the page postback fine and I got the expected results. However in IE6 my page doesn't change to the new values loaded from the server.
The weird th... | [
0.007815518416464329,
0.025728236883878708,
0.6963149905204773,
-0.0029405627865344286,
-0.23526035249233246,
-0.03379972651600838,
0.7480582594871521,
-0.4169391989707947,
-0.1209588497877121,
-0.7769737243652344,
-0.2849809229373932,
0.5645919442176819,
-0.36893805861473083,
0.1633983254... | |
generated html to be rendered is correct, but it is not rendered.
This problem happens only in IE6.
This is a known IE6 bug (#223) with magical HTTP get requests.
See the bug here:
<http://webbugtrack.blogspot.com/2007/09/bug-223-magical-http-get-requests-in.html>
It happens when an inline event handler causes a pag... | [
-0.19137591123580933,
-0.32184088230133057,
0.5521817803382874,
0.11707935482263565,
-0.17087551951408386,
-0.3986355662345886,
0.5424866080284119,
0.01158107165247202,
-0.3131822645664215,
-0.5481844544410706,
-0.2978319227695465,
0.21511812508106232,
-0.333580881357193,
-0.03245519846677... | |
**Preface**
I'm using the newly released Microsoft Virtual Earth SDK v6.2 which has built-in support for pushpin clustering. I realize there are custom ways of doing clustering where my question is easy to answer, but I'd like to leverage the built-in support as much as possible, so this question is specifically relat... | [
-0.024713315069675446,
0.2425115406513214,
0.5838018655776978,
0.13072271645069122,
-0.15516483783721924,
-0.15303023159503937,
0.18064771592617035,
0.28207701444625854,
0.14848095178604126,
-1.0186604261398315,
-0.2268276810646057,
0.5270372629165649,
-0.13353146612644196,
-0.034778550267... | |
working on, I need to display more information than that - I either need to allow the user to click on the pushpin and VE will automatically zoom in so that the points are now distinct OR display the names of the points in the infobox attached to the cluster pushpin. The catch is that cluster shape that VE creates for ... | [
0.27313369512557983,
-0.13978980481624603,
0.552729606628418,
0.15016956627368927,
0.2635161876678467,
0.07455122470855713,
-0.11274051666259766,
0.12938526272773743,
-0.22171565890312195,
-0.668566107749939,
0.09847894310951233,
0.48341092467308044,
-0.20266041159629822,
0.332409411668777... | |
to creating a custom clustering implementation?
Just set the "default" value within your constructor.
```
public class Person
{
public Person()
{
this.FirstName = string.Empty;
}
public string FirstName { get; set; }
}
```
Also, they're called Automatic Properties. | [
-0.25703734159469604,
-0.1474226415157318,
-0.2275228649377823,
0.01801900751888752,
0.014978303574025631,
-0.09658299386501312,
0.11096516251564026,
-0.05759338662028313,
-0.12449683248996735,
-0.6408915519714355,
-0.4131401777267456,
0.6568488478660583,
-0.4655696451663971,
-0.0192793030... | |
I want to load the data into session so that when the next button is clicked in crystal report viewer then in should load the data from the datatable instead retrieving the data again from the database. Here goes my code...
```
ReportDocument rpt = new ReportDocument();
DataTable resultSet = new DataTable();
... | [
0.28387537598609924,
0.13167302310466766,
0.6701458692550659,
-0.31438642740249634,
-0.10805846005678177,
-0.19806165993213654,
0.45774590969085693,
-0.3663423955440521,
-0.13418710231781006,
-0.5025980472564697,
-0.07713662087917328,
0.814140796661377,
-0.5495180487632751,
0.1836977750062... | |
if (Request.QueryString.Get("id") == "5")
{
string publication = Request.QueryString.Get("pub");
DateTime date = DateTime.Parse(Request.QueryString.Get("date"));
int pages = int.Parse(Request.QueryString.Get("pages"));
int sort = int.Parse(Requ... | [
-0.2570900321006775,
-0.11655423790216446,
0.7373507618904114,
-0.3373216390609741,
0.08465572446584702,
0.1146356388926506,
-0.031870268285274506,
-0.2841451168060303,
-0.1851578950881958,
-0.4266785979270935,
-0.6474938988685608,
0.23946894705295563,
-0.25902268290519714,
0.2634553313255... | |
if (sort == 0)
{
reportpath = Server.MapPath("IssuesReport.rpt");
rpt.Load(reportpath);
DataTable resultSet1 = RetrievalProcedures.IssuesReport(date, | [
-0.37623023986816406,
-0.4049440324306488,
0.7640213370323181,
-0.15083256363868713,
0.1347128301858902,
0.07795432955026627,
-0.08303450047969818,
-0.026416698470711708,
-0.37869393825531006,
-0.5283546447753906,
-0.357042133808136,
0.2918750047683716,
-0.3146362900733948,
0.1851983666419... | |
publication, pages);
Session["Record"] = resultSet1;
}
DataTable report = (DataTable)Session["Record"];
rpt.SetDataSource(report);
CrystalReportViewer1.ReportSource = rpt;
```
I am trying this code but when i clicked the next button it gives me the error tha... | [
-0.08705279231071472,
0.08826133608818054,
0.5259497761726379,
0.059455469250679016,
-0.33523038029670715,
-0.21278998255729675,
0.6639018654823303,
-0.3609243929386139,
-0.351327121257782,
-0.23934489488601685,
-0.30272534489631653,
0.5309316515922546,
-0.4453592002391815,
0.3562080264091... | |
giving me this error.
Any sugesstions how can I solve this...
I think you'd want to use the Cache object with a unique key for each user instead of Session here.
Pseudo code:
```
var data = Cache["Record_999"] as DataTable;
if (data == null) {
// get from db
// insert into cache
}
SetDataSource(data);
``` | [
0.05883386731147766,
0.18098236620426178,
0.15201905369758606,
-0.03178481012582779,
0.0875101312994957,
-0.00922915618866682,
0.6652256846427917,
-0.05153351277112961,
-0.19862493872642517,
-0.45360830426216125,
-0.09745445847511292,
0.6233330965042114,
-0.31277093291282654,
0.42297184467... | |
Does anyone know if it is possible to add other controls to a Flex 3 Alert? What I need is a modal dialoge that allows the user to type in a filename before clicking OK or CANCEL. This seems like it would be best achieved with an Alert but in the documentation I don't see an obvious way to add a TextInput (or any other... | [
0.21677064895629883,
-0.1497236043214798,
0.4595505893230438,
0.16358506679534912,
-0.008591178804636002,
-0.32720160484313965,
0.26468878984451294,
-0.04255390912294388,
-0.36268964409828186,
-0.7132552266120911,
0.14926579594612122,
0.8847044110298157,
-0.3549503684043884,
-0.13055802881... | |
of buttons and text of the buttons. There are some examples of the title window [here](https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/containers/TitleWindow.html). | [
-0.048724785447120667,
0.0729406476020813,
0.3526282012462616,
-0.038316644728183746,
0.06496451050043106,
-0.060250572860240936,
-0.10693643242120743,
-0.284270703792572,
-0.45453590154647827,
-0.296099990606308,
-0.24951449036598206,
0.6865448951721191,
0.00535536976531148,
0.08826813846... | |
FxCop has the [CollectionPropertiesShouldBeReadOnly rule](http://msdn.microsoft.com/en-ca/ms182327.aspx) that complains if your class has some kind of collection property that clients can set. Instead, it suggests making the property read-only and supplying a Clear() method and Add() or AddRange() methods for changing ... | [
0.18860481679439545,
-0.14927293360233307,
0.19842839241027832,
0.024982722476124763,
-0.04616804048418999,
0.04192381724715233,
-0.20511475205421448,
-0.3566865921020508,
-0.21309445798397064,
-0.25759974122047424,
0.04698724299669266,
0.5655825138092041,
-0.21545696258544922,
-0.07273378... | |
any way to tell Spring to call the AddRange() method, am I missing something?
For now, I'm going to exclude the warning with a note that it's necessary for Spring configuration.
**Update:** since I didn't get any nibbles here in the last two months, I posted the same question on the [FxCop forum](http://social.msdn.m... | [
0.34011226892471313,
-0.29556307196617126,
0.10940852761268616,
0.05745052546262741,
-0.023287730291485786,
0.061194565147161484,
0.04603085666894913,
0.05042190104722977,
-0.4777078628540039,
-0.5952931642532349,
0.016962245106697083,
0.5000030398368835,
-0.2586839497089386,
-0.0808381065... | |
[JIRA issue](http://jira.springframework.org/browse/SPRNET-878) for the next release to fix this. BTW, this is a very common pattern in the base class libraries (as you probably know...) which is where we first encountered the need to support this style in .NET 1.1 (which doesn't suffer from the limitation listed above... | [
0.33077096939086914,
0.27661213278770447,
0.056073226034641266,
0.07198718190193176,
-0.3308183252811432,
-0.42958614230155945,
0.5905109643936157,
0.21699176728725433,
-0.40192893147468567,
-0.3815351128578186,
-0.08957448601722717,
0.33331093192100525,
-0.28530076146125793,
-0.0191366150... | |
Are there any popular Mysql rss feeds you guys can recommend? IBM has random articles but those are usually not enough
<http://dev.mysql.com/> has a feed of developer articles. | [
0.8983653783798218,
-0.06448008120059967,
-0.3174954652786255,
0.48425647616386414,
0.06457634270191193,
-0.4294976592063904,
-0.22816471755504608,
0.5294246673583984,
-0.46622228622436523,
-0.4246831238269806,
0.16034309566020966,
0.4027934670448303,
-0.1663486659526825,
-0.06434801220893... | |
I want to implement forms authentication on an ASP.NET website, the site should seek the user on the database to get some data and then authenticate against LDAP (Active Directory) to validate the user/password combo.
After that I need to keep a instance of class that represents the user to use it in various forms.
I... | [
0.2588791847229004,
0.02531430684030056,
0.4389859139919281,
-0.008765128441154957,
-0.07515305280685425,
-0.321126788854599,
0.4648590683937073,
-0.5625558495521545,
0.15143631398677826,
-0.5755173563957214,
0.07965445518493652,
0.4616982638835907,
-0.18436536192893982,
-0.039697583764791... | |
and I got NullReferenceExceptions when the pages tried to use the now defunct session object).
Which is the best way to accomplish this? Is there some way to sync the session timeout with the cookie lifespan? The user object should be saved in any other way? Did I miss the point?
**UPDATE:
I cannot use windows auth ... | [
0.25651735067367554,
0.15308888256549835,
0.49050843715667725,
0.20210999250411987,
-0.1869223266839981,
-0.1968385875225067,
0.5764126777648926,
-0.024821361526846886,
-0.27567654848098755,
-0.7204462885856628,
0.12271373718976974,
0.7202880382537842,
0.04953973740339279,
0.17043793201446... | |
to the authentication cookie timeout.
Also, you can do something like this in a HTTPModule to catch edge cases (app pool recycles etc) that also clear session
Psuedocode:
```
if (session["user"] == null)
{
Authentication.SignOut();
}
```
This would force the user to authenticate. | [
-0.024435052648186684,
-0.17341208457946777,
0.33267447352409363,
-0.0064283558167517185,
0.0314163938164711,
-0.41621458530426025,
0.5881863236427307,
-0.20349489152431488,
-0.15196260809898376,
-0.6514467597007751,
-0.15959452092647552,
0.4758860766887665,
-0.14552591741085052,
0.0535118... | |
When I dump a Sybase database, it doesn't seem to matter whether there's data in the tables or not, the file size is the same. I've been told that this is down to the fact that my dump file is binary and not logical, so the file of the dump file is based on the allocated size of the database. I know that Oracle can use... | [
0.6400801539421082,
0.1960824877023697,
-0.2149938941001892,
0.014528504572808743,
-0.12757855653762817,
-0.42286545038223267,
0.009867704473435879,
0.25009018182754517,
-0.12892533838748932,
-0.27541109919548035,
0.35826024413108826,
0.5078503489494324,
-0.36695894598960876,
0.17549887299... | |
able to perform compressed dumps in ASE.
[The syntax is:](http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sag2/html/sag2/sag2473.htm) dump database database\_name to file\_name [ with compression=compress\_level]
compress\_level is 0-9. 0 is no compression and 9 is the most. The more you c... | [
-0.10361179709434509,
-0.14397643506526947,
0.27602142095565796,
0.19769775867462158,
-0.1000312864780426,
0.00466492073610425,
0.12345661222934723,
-0.08367182314395905,
-0.33706140518188477,
-0.4895918667316437,
-0.2919526994228363,
0.6292451024055481,
-0.22181101143360138,
-0.2488358765... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.