text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I am needing to encrypt using Perl and decrypt on .Net (C#). i.e. Perl encrypts a file and my .Net code decrypts the file (and even maybe validates integrity).
The problem is that I am not familiar with the encryption capabilities of Perl. Can anyone offer guidance on how best to approach this and what the possibiliti... | [
0.398998498916626,
0.2829239070415497,
0.06150355935096741,
0.0312659814953804,
-0.14860393106937408,
-0.1989753395318985,
0.4971621036529541,
-0.16365180909633636,
-0.3031505048274994,
-0.20577774941921234,
-0.20059676468372345,
0.40254735946655273,
-0.20189982652664185,
0.030674783512949... | |
How can I configure the Zsh tab-completion such that when I type `cd ..<TAB>` it expands to `cd ../` and after pressing `<TAB>` again proposes the folders in the parent directory for completion?
E.g. it should show the same behavior as when typing for example `cd Documents<TAB>` which expands to `cd Documents/` and af... | [
-0.04157961159944534,
0.23608975112438202,
0.2277895212173462,
-0.1401410698890686,
0.0920313149690628,
-0.06351752579212189,
0.08530256152153015,
-0.3622437119483948,
-0.20435158908367157,
-0.8660305142402649,
-0.1420278698205948,
0.5714995861053467,
-0.3328478932380676,
0.345664203166961... | |
added
```
zstyle ':completion:*' special-dirs true
```
to my config and now everything works fine again. | [
0.07477451860904694,
0.1666378378868103,
0.7083806991577148,
-0.018958305940032005,
0.005588162690401077,
-0.008933155797421932,
0.4010102450847626,
0.2873481512069702,
0.014399707317352295,
-0.501128613948822,
-0.24322089552879333,
0.693478524684906,
0.15505988895893097,
0.201615676283836... | |
What exactly is a first chance exception? How and where does it originate in a .NET program? And why is it called by that peculiar name (what 'chance' are we talking about)?
It's a debugging concept. Basically exceptions are thrown to the debugger *first* and then to the actual program where if it isn't handled it gets... | [
0.4150005280971527,
0.15340343117713928,
-0.31710734963417053,
0.017460636794567108,
-0.13961587846279144,
-0.1749061942100525,
-0.049223221838474274,
-0.06948787719011307,
-0.07129357010126114,
-0.3990288972854614,
-0.03642261400818825,
0.22938425838947296,
-0.27216997742652893,
0.0086421... | |
I have a xml-file on subdomain a, and a php script on subdomain b. I want to read, and use, the data from the XML file, through PHP.
Here's the catch. The file is secured using HTTP Authentication.
How do I make PHP log-in, and read the contents of the file?
The [url wrappers](http://us.php.net/manual/en/wrappers.htt... | [
0.5379234552383423,
0.025990013033151627,
0.8174892067909241,
-0.11226926743984222,
-0.0057690199464559555,
-0.31325995922088623,
0.22460809350013733,
-0.41335734724998474,
0.07562950998544693,
-0.41299277544021606,
-0.41532108187675476,
0.36780846118927,
0.033685147762298584,
0.0594873987... | |
for a reason - it's trivially easy to implement: [here's one user-submitted example in the manual](http://php.net/manual/en/function.fsockopen.php#32830). | [
-0.13301946222782135,
-0.17178578674793243,
0.1170257031917572,
-0.00377496425062418,
0.0979648008942604,
-0.10482095181941986,
0.3469787538051605,
-0.11660328507423401,
-0.32154104113578796,
-0.22692587971687317,
-0.446056067943573,
0.5190680027008057,
-0.17998860776424408,
-0.09551980346... | |
I have a 700w x 300h WPF applciation and can drag it anywhere on my large screen.
When my application executes:
```
MessageBox.Show("Sorry, this function is not yet implemented.");
```
the mesage box appears in the middle of my *screen*, which may or may not even be near the application itself.
How can I get my Me... | [
0.231074720621109,
0.19466598331928253,
0.6409870386123657,
-0.19441483914852142,
0.04295078292489052,
0.08267701417207718,
0.6119710803031921,
-0.050549816340208054,
-0.22944296896457672,
-0.8761299848556519,
-0.13588997721672058,
0.5968602299690247,
-0.37134045362472534,
0.17438621819019... | |
I'm trying to determine the relative performance of two different queries and have two ways of measuring this available to me:
1. Run both and time each query
2. Run both and get "Query Cost" from the actual execution plan
Here is the code I run to time the queries...
```
DBCC FREEPROCCACHE
GO
DBCC DROPCLEANBUF... | [
0.3723093271255493,
0.18241481482982635,
0.2597121596336365,
-0.028926268219947815,
-0.07656890153884888,
-0.08228743821382523,
0.07150978595018387,
-0.5720452666282654,
0.022103741765022278,
-0.49567505717277527,
-0.21940000355243683,
0.5643725395202637,
-0.3748475909233093,
-0.0398106053... | |
1.673 seconds 17%
test_1b 1.033 seconds 83%
```
The results of the execution time directly contradict the results of the Query Cost, but I'm having difficulty determining what "Query Cost" actually means. My best guess is that it is an aggregate of Reads/Writes/CPU\_Time/etc, so I guess I have a cou... | [
0.29951727390289307,
0.18626545369625092,
0.39283260703086853,
0.08049976825714111,
-0.006215995643287897,
0.28906306624412537,
0.5624335408210754,
-0.5112168788909912,
0.0734216496348381,
-0.5573425889015198,
0.05990377813577652,
0.4234873652458191,
-0.12035883218050003,
-0.26044994592666... | |
be important to note that this is a medium sized SQL Server, running MS SQL Server 2005 on MS Server 2003 Enterprise Edition with multiple processors and 100+ concurrent users.
EDIT:
After some bother I managed to get Profiler access on that SQL Server, and can give extra info (Which supports Query Cost being related... | [
-0.24390064179897308,
0.260087788105011,
0.4525426924228668,
-0.0893605500459671,
-0.22906941175460815,
-0.12170229107141495,
0.32178008556365967,
-0.059903908520936966,
-0.2818547785282135,
-0.42920270562171936,
0.03617459535598755,
0.5034593343734741,
-0.055707402527332306,
0.14260153472... | |
1386
test_1b 2297 49839 93 1207
```
Impressive that taking more CPU with MANY more Reads takes less time :)
The profiler trace puts it into perspective.
* Query A: 1.3 secs CPU, 1.4 secs duration
* Query B: 2.3 secs CPU, 1.2 secs duration
Query B is using parallelism: CPU > duration
eg the query... | [
-0.1635928899049759,
-0.39331841468811035,
0.577277660369873,
0.1661468893289566,
-0.08527129143476486,
0.3761483430862427,
0.600821852684021,
-0.15517880022525787,
-0.44835904240608215,
-0.4908640682697296,
-0.10736251622438431,
0.35263678431510925,
0.048435620963573456,
0.036558303982019... | |
optimiser works out that query B is more expensive and will benefit from parallelism, even though it takes extra effort to do so.
Remember though, that query B uses 100% of 2 CPUS (so 50% for 4 CPUs) for one second or so. Query A uses 100% of a single CPU for 1.5 seconds.
The peak for query A is lower, at the expense... | [
-0.25411826372146606,
-0.5350456833839417,
0.3411296010017395,
0.1325835883617401,
-0.011408643797039986,
0.2805197536945343,
0.19660447537899017,
-0.31360384821891785,
0.01638505607843399,
-0.8156761527061462,
-0.004617228638380766,
0.45129358768463135,
-0.3620077669620514,
-0.62258630990... | |
I have variable length character data and want to store in SQL Server (2005) database. I want to learn some best practices about how to choose TEXT SQL type or choose VARCHAR SQL type, pros and cons in performance/footprint/function.
If you're using SQL Server 2005 or later, use `varchar(MAX)`. The `text` datatype is d... | [
0.07281932979822159,
0.3772004544734955,
0.49161529541015625,
-0.14351004362106323,
-0.19624345004558563,
0.09267716854810715,
0.21647442877292633,
-0.05537867918610573,
0.06081494316458702,
-0.4901280701160431,
0.056678395718336105,
0.6470178961753845,
-0.07932575792074203,
0.170916587114... | |
applications that currently use them. Use [nvarchar(max)](http://msdn.microsoft.com/en-us/library/ms186939.aspx), [varchar(max)](http://msdn.microsoft.com/en-us/library/ms176089.aspx), and [varbinary(max)](http://msdn.microsoft.com/en-us/library/ms188362.aspx) instead. | [
0.09544184058904648,
-0.37620851397514343,
0.36740827560424805,
0.013204395771026611,
0.07919634133577347,
-0.1447228193283081,
-0.012745646759867668,
0.0590226948261261,
-0.3747118413448334,
-0.5372971296310425,
-0.41030728816986084,
0.6519962549209595,
-0.2512853741645813,
0.588972449302... | |
I've been having trouble moving to directories with spaces in the name, but it I just figured it was a problem with Cygwin and worked around it.
Then I found that I could create symbolic links to those directories which made me maybe think it wasn't Cygwin. Then I remembered I created an alias for `cd` that would list... | [
0.048082318156957626,
0.2782823443412781,
0.05734163895249367,
0.005193714983761311,
0.05455654859542847,
-0.22582273185253143,
0.40906497836112976,
0.18419063091278076,
-0.3876926898956299,
-0.6455967426300049,
-0.16287456452846527,
0.4358634948730469,
-0.45590606331825256,
0.119575127959... | |
split into multiple arguments, but how do I join them together again?
Looks like I just needed to explain the problem for the answer to come to me. My solution is:
```
cdls () { cd "$*"; ls ; }
alias cd='cdls'
```
Simple. | [
0.20785318315029144,
-0.11692201346158981,
0.06342988461256027,
-0.23384477198123932,
0.03269631788134575,
-0.06757638603448868,
-0.061120178550481796,
-0.10637770593166351,
-0.20427456498146057,
-0.27306753396987915,
-0.2894151210784912,
0.7126297950744629,
-0.7403371930122375,
-0.0327261... | |
Does anyone know of a class in Java that has a list of elements, so that the elements are sortable by any of the elements members?
The idea is basically to have some database table-like implementation, where you can just add fields to sort by. To illustrate:
```
SomeTable table = new SomeTable();
table.addField("name"... | [
0.41841429471969604,
0.09614738076925278,
0.013375606387853622,
-0.2140222042798996,
0.4712323248386383,
0.18692901730537415,
-0.21664410829544067,
-0.19588631391525269,
-0.403128445148468,
-0.3797551095485687,
-0.17464368045330048,
0.18090350925922394,
-0.33688172698020935,
0.133361607789... | |
to see if there's a ready library to do such things (without a database).
PS: I know that `int` is not a class, but that's not the point here. This example code is just here to show the kind of functionality I expect.
---
The closest thing I can think of myself is the Apache Commons [BeanUtils](http://commons.apache.... | [
0.0891161859035492,
-0.012546438723802567,
0.10739785432815552,
0.09907986968755722,
0.006433319766074419,
0.06918535381555557,
0.14921210706233978,
0.10346940159797668,
-0.17119745910167694,
-0.6906234622001648,
-0.15427376329898834,
0.24757492542266846,
-0.30311065912246704,
0.2924642562... | |
};
BasicDynaClass dynaClass = new BasicDynaClass("student", null, props);
```
Given a collection *table* of these student objects. We define a BeanComparator
```
BeanComparator surnameComparator
= new BeanComparator("lastname");
Collections.sort(table, surnameComparator);
```
Not sure if this is what ... | [
-0.20658892393112183,
-0.2590494155883789,
0.0366811603307724,
-0.08800895512104034,
0.15858909487724304,
0.12802016735076904,
0.063910573720932,
0.048238251358270645,
-0.01487383246421814,
-0.6443538069725037,
-0.36725759506225586,
0.26846572756767273,
-0.31651315093040466,
0.210450142621... | |
What is this **SWX data format** that I keep hearing about?
* The [Wikipedia article](http://en.wikipedia.org/wiki/SWX_Format) says: "Data is stored as SWF bytecode, that is interpreted by Adobe Flash Player."
* Their [official site](http://swxformat.org/) says: "SWX is the native data format for the Flash Platform.",... | [
0.5234655141830444,
0.30628615617752075,
0.47164276242256165,
-0.09017529338598251,
-0.3482842743396759,
-0.3663427531719208,
-0.02611907199025154,
0.004459047224372625,
-0.08986665308475494,
-0.46356111764907837,
-0.4760589301586151,
0.4699203073978424,
-0.17559008300304413,
0.04779190942... | |
passes it on to the Flash SWF.
"SWX is the native data format for the Flash Platform" is a very confusing statement. The short answer to your question is (from [Wikipedia](http://en.wikipedia.org/wiki/SWX_Format)):
> SWX data files can be loaded into
> Flash movies with:
>
>
> * ActionScript 2, using the Flash int... | [
0.387601763010025,
0.0016045181546360254,
0.5087652802467346,
-0.07113070785999298,
-0.21276122331619263,
-0.2663801908493042,
-0.11696850508451462,
-0.03016512840986252,
-0.02048126421868801,
-0.487367182970047,
-0.3766094148159027,
0.4078276753425598,
-0.3671853840351105,
-0.058435194194... | |
functions. (The reason why AS3 needs an SWX API function is that AS3 is less forgiving than AS2.) So your first alternative ("following the open Adobe SWF") is correct. A good example on the official web page is:
> just like JSON is a subset of
> JavaScript
In your terms, JSON *is* JavaScript, and correspondingly, S... | [
0.3586271107196808,
-0.17978286743164062,
0.39646509289741516,
-0.19225285947322845,
-0.5234295129776001,
-0.3311096429824829,
0.3005381226539612,
-0.16368542611598969,
-0.07177828997373581,
-0.39339372515678406,
-0.35980308055877686,
0.6324759125709534,
-0.5183627605438232,
-0.37113022804... | |
My thread runs forever and calls ConcurrentLinkedQueue#poll() after a ConcurrentLinkedQueue#peek().
But under some conditions, the thread seems to hang. I know this is a bit vague
but can people confirm for me that the methods poll() or peek() will **NEVER** block. Thanks.
For what I can tell, the [ConcurrentLinkedQue... | [
0.3679373860359192,
-0.26046621799468994,
0.5938277244567871,
-0.09893438965082169,
-0.046536967158317566,
-0.21795625984668732,
0.35797131061553955,
0.2696578800678253,
-0.4820473790168762,
-0.438472181558609,
0.12125275284051895,
0.20087726414203644,
-0.38291287422180176,
0.4110713303089... | |
= queue.poll()
```
Does not garentee that `obj` will not be `null`. | [
-0.04142874479293823,
-0.09385687857866287,
0.3810511529445648,
-0.1782480776309967,
0.010735904797911644,
0.01675538346171379,
0.3263523578643799,
0.2751917839050293,
-0.3346577286720276,
-0.39015206694602966,
-0.17111000418663025,
0.030524931848049164,
-0.5264632701873779,
0.317307591438... | |
I'm developing a new site, and I have to make private messages for our users. I have already made this on other projects, but the design there just doesn't seem right (I can't have more than two people engaged in a message for instance).
So what is the "right" approach to this? I'd like to offer my users the same funct... | [
0.4087960422039032,
0.1613903045654297,
0.2539306879043579,
0.09854309260845184,
0.05056800693273544,
0.019248459488153458,
0.10544684529304504,
-0.0300301406532526,
-0.6311924457550049,
-0.574543833732605,
0.30856579542160034,
0.385754257440567,
-0.1623530238866806,
-0.08222752809524536,
... | |
| pm\_messages\_id |user\_id | title | content | date\_time
pm\_recipients:
id | pm\_messages\_id | user\_id | has\_seen | deleted
I would store the actual content in the "pm\_messages" table, and I would store the recipients (including the original sender) in the "pm\_recipients" table.
Is this the right direction ... | [
0.08347870409488678,
0.20368827879428864,
0.7317604422569275,
0.20299884676933289,
0.15359121561050415,
-0.021823164075613022,
0.09493967145681381,
-0.22880296409130096,
-0.63373202085495,
-0.2329360842704773,
-0.2749069929122925,
0.39334335923194885,
-0.38060876727104187,
0.51682007312774... | |
could store the "chat" sessions, or conversations in a seperate table with 1-n relation between conversation and participant, as well as 1-n relation between conversation and message (tables laid out below). But in the end, it's of course up to you. For regular message sending, a 1-n between message and recipient as yo... | [
-0.1594790369272232,
0.1860802173614502,
0.30474576354026794,
0.2329372763633728,
-0.12325001507997513,
0.4069793224334717,
-0.22837769985198975,
-0.16102275252342224,
-0.6299993395805359,
-0.5458288192749023,
-0.1648547202348709,
0.1873871237039566,
-0.17638887465000153,
0.129432469606399... | |
I'm programming in C++ CLI with VS.Net C++ 2008. I'm seeking a tool that can create my C++ source definitions (\*.cpp) from the header files. Does such a tool exist? please advise, thanks.
For pure C++ code, if its possible to add a 3rd party generator to the VS.Net frame work, then I would strongly recommend: [lzz](ht... | [
0.5178569555282593,
-0.11399497836828232,
0.3355903625488281,
-0.05616223067045212,
-0.16270160675048828,
-0.04106122627854347,
0.005546113941818476,
0.06756208837032318,
-0.0031532952561974525,
-0.5990524291992188,
0.05404607579112053,
0.609798014163971,
-0.38401085138320923,
-0.168104439... | |
... }
> void g (int j = 0) { ... }
> };
> bool operator == (A const & a1, A const & a2) { ... }
>
> ```
>
> Lzz will generate a header file:
>
>
>
> ```
> // A.h
> #ifndef LZZ_A_h
> #define LZZ_A_h
> class A
> {
> public:
> void f (int i);
> void g (int j = 0);
> };
> inline void A::f (int i) { ... }
> bool ... | [
-0.27322423458099365,
-0.2513800263404846,
0.4741848111152649,
-0.31080272793769836,
0.27726829051971436,
0.21425661444664001,
0.07501450181007385,
-0.37667644023895264,
-0.012667899020016193,
-0.6739522218704224,
-0.5413560271263123,
0.5691297054290771,
-0.5434016585350037,
-0.37021043896... | |
"A.h"
> void A::g (int j) { ... }
> bool operator == (A const & a1, A const & a2) { ... }
>
> ``` | [
-0.09369326382875443,
0.1085854172706604,
-0.024151014164090157,
-0.3272465467453003,
0.005210106261074543,
0.06213434413075447,
0.5436405539512634,
-0.1882019340991974,
-0.0003484059125185013,
-0.225047767162323,
-0.5061278939247131,
0.4738447070121765,
-0.6008509397506714,
-0.08114038407... | |
I recently used a Java Web Start application. I launched it from my web browser using an embedded jnlp link in the page I was viewing. The application was downloaded, launched and worked just fine. It had access to my local file-system and remembered my preferences between restarting it.
What I want to know is why are... | [
0.20554783940315247,
0.06588620692491531,
-0.07535766810178757,
-0.08082819730043411,
-0.03537498414516449,
-0.12388347089290619,
0.01097276620566845,
0.12215465307235718,
-0.1995464265346527,
-0.8053157925605774,
0.13346117734909058,
0.3542559742927551,
0.03839744254946709,
0.152254775166... | |
& Java Web Start?
I know that in some corporate environments, e.g banking, they are relatively popular ways of delivering complex trading applications to clients, but why are they not pervasive across the web as a whole?
(For the sake of discussion let's assume a world where: download sources are "trusted" & applicat... | [
0.34561190009117126,
0.1869150549173355,
0.04044482111930847,
-0.055811066180467606,
-0.13486599922180176,
-0.5185827016830444,
0.06956920027732849,
0.08945835381746292,
-0.45860719680786133,
-0.3714882433414459,
-0.15968112647533417,
0.5586344003677368,
-0.20684397220611572,
-0.1876557469... | |
Control Panel has settings that allow users to use the default browser's proxy settings or to override them. In other words, infrastructure teams are able to customize the Windows or OS installation images to have JVM pre-installed with enterprise proxy settings. So I believe this is not an issue at all.
Java Web Star... | [
-0.009023341350257397,
-0.010334285907447338,
0.16204170882701874,
0.03073130175471306,
0.15618912875652313,
-0.22539685666561127,
0.2677706778049469,
0.000753318949136883,
-0.07340293377637863,
-0.7195551991462708,
-0.2381308227777481,
0.5123880505561829,
-0.14597071707248688,
-0.26308074... | |
time could be an issue but a lot of web sites (even enterprise internal) are now migrated to portal. A web portal normally contains lots of unused libraries for development purposes due to the fact that the portal itself does not anticipate what kinds of portlets are built and deployed on a specific page. Therefore, do... | [
0.055748388171195984,
-0.03335795924067497,
0.30882713198661804,
0.3943122625350952,
0.11521539092063904,
-0.22824878990650177,
0.3893103003501892,
0.02075831964612007,
-0.3717816174030304,
-1.1411516666412354,
-0.2080032378435135,
0.05774502828717232,
-0.04952583461999893,
0.2865851223468... | |
I am sure Java Web Start is an advantage here.
Java Web Start does not download again if it is cached as long as the server copy is NOT upgraded. Therefore, if, e.g. a project management software like MS Project, is completed using SmartClient (similar to JWS), the information exchange between the client and server wo... | [
-0.15153029561042786,
-0.011540465988218784,
-0.03728824108839035,
0.2057439237833023,
-0.30510440468788147,
-0.4639892280101776,
0.07134057581424713,
0.31042811274528503,
-0.31876295804977417,
-0.8066985607147217,
-0.05056393891572952,
0.44817134737968445,
-0.04693557322025299,
-0.0113033... | |
the circles of developers but not within enterprise software yet. With that in mind, JWS apps definitely have more advantages such as how JWS apps are deployed and executed in sandboxes, signed, and have much more interactive GUI.
Other advantages include faster development (easier to debug in code and performance), r... | [
0.343868225812912,
0.0741702988743782,
0.409927099943161,
0.288644403219223,
-0.521892249584198,
-0.3794996738433838,
0.165446937084198,
0.3078978657722473,
-0.3329176604747772,
-0.765300989151001,
-0.19434398412704468,
0.32383182644844055,
-0.10239265859127045,
-0.16285750269889832,
-0.... | |
as Brian Knoblauch's comment, it's without awareness.
IT folks are too attracted by the hype of Web Technologies, Ajax PUSH, GWT, and all those buzz words make them bias towards the fun of using different technologies or to resolve technical challenges instead of what's really working for the clients.
Take a look at ... | [
0.3848564624786377,
0.18157164752483368,
-0.0008147424669004977,
0.2445499747991562,
0.10060316324234009,
-0.09173401445150375,
0.03747573867440224,
0.10337207466363907,
-0.46627986431121826,
-0.4333297610282898,
-0.4373871088027954,
0.386319637298584,
-0.1894291490316391,
0.00029523321427... | |
using it. However, I think JWS is even better than Citrix. The idea of JWS is to run apps on client machines instead of hosting tons of server farms where client machines are capable of running these apps themselves. This saves a company a lot of money!!! With JWS, development team can still build business logic and da... | [
0.23168019950389862,
0.06775108724832535,
0.4351652264595032,
0.08110255748033524,
0.07438090443611145,
-0.18078748881816864,
0.10259710252285004,
0.17720748484134674,
-0.39356037974357605,
-0.8352621793746948,
-0.004539946559816599,
0.1309831589460373,
-0.10674510151147842,
-0.13766609132... | |
apps are actually Java apps translated from Javascript. With BB's MDS studio, you use the GUI tool to build BB app GUI, coding GUI logic in Javascript. Then apps are then translated and deployed on a BES server. Then the BES server will distribute these apps to BB. On each BB, it runs a thin Java App with GUI rendering... | [
0.7168648838996887,
0.4532710909843445,
0.4853111207485199,
-0.2197542041540146,
-0.0649399682879448,
0.18035905063152313,
-0.06927581876516342,
-0.044506222009658813,
-0.4003077447414398,
-0.7879038453102112,
-0.34581971168518066,
0.5460459589958191,
-0.7197414040565491,
-0.30801337957382... | |
of how Sun advertises it. BB never advertises how good their BB Java apps are, they believe clients won't even care what is it. BB advertises the benefits of using MDS to develop apps: Fast, Cost Saving, Business Return.
Just my, a bit long, 2 cents... :) | [
0.7875800132751465,
0.217625692486763,
0.2999367415904999,
0.10235185921192169,
-0.1224149763584137,
0.21393589675426483,
-0.10852217674255371,
0.39695388078689575,
-0.11723534762859344,
-0.23948071897029877,
0.12154281884431839,
0.4521375000476837,
-0.034652307629585266,
-0.26846608519554... | |
I have to maintain a single persistent socket connection to a payment gateway and use it to send financial messages and receive confirmation for the same. My application will be then used by various clients and so I need to devise a way to handle them concurrently and handle issues such as timeouts and retries etc.
R... | [
0.5074659585952759,
0.3047717213630676,
0.41642147302627563,
0.18562868237495422,
-0.08325028419494629,
0.12942685186862946,
0.1622619479894638,
-0.16659410297870636,
-0.5000050067901611,
-0.2055036723613739,
0.15886066854000092,
0.6281868815422058,
-0.24361930787563324,
0.4000493884086609... | |
I am planning to do it in C#. I would appreciate some general advice on this issue.
Remember that setting the recovery mode to SIMPLE only allows you to recover the database to the point of your most recent backup. Pending transaction which have not been committed to the database - after the backup has been created - w... | [
0.062495019286870956,
0.05402735248208046,
0.3824326992034912,
0.06622661650180817,
0.31671440601348877,
-0.3889290690422058,
0.3202880322933197,
0.05325563624501228,
-0.02711920626461506,
-0.3600379228591919,
-0.334435373544693,
0.9479196071624756,
-0.18231895565986633,
-0.198803767561912... | |
I'm new to Ruby on Rails and am creating a test application. So far, it's working, but when I make some minor changes to my views, the page doesn't change.
My problem may be related to [this question](https://stackoverflow.com/questions/87802/why-does-rails-cache-view-files-when-hosted-on-vm-and-codebase-on-samba-shar... | [
0.13449762761592865,
0.04456576332449913,
0.18964248895645142,
0.0083159813657403,
-0.16131168603897095,
-0.4362177550792694,
0.6860020160675049,
0.3626870810985565,
-0.34841176867485046,
-0.7082854509353638,
0.1890828013420105,
0.3209659457206726,
0.2413630485534668,
0.45351722836494446,
... | |
in production mode! | [
0.3333345651626587,
-0.19600465893745422,
0.0002097796677844599,
-0.006887353956699371,
-0.1610834300518036,
-0.4322234094142914,
0.27051272988319397,
0.23942497372627258,
-0.031338419765233994,
-0.12927721440792084,
-0.456760436296463,
0.6284918785095215,
-0.029491974040865898,
-0.1564381... | |
I have written a server/client application using sockets in C# for .NET 3.5. I'm interested in porting the client part to some kind of mobile device and am pondering the best way. The client is actually an underlying library and a GUI depending heavily on touch interface capabilities.
As I see it I have a few options:... | [
0.3869037628173828,
0.17172740399837494,
0.26924222707748413,
-0.10003163665533066,
-0.09289161115884781,
0.11969030648469925,
0.0027728243730962276,
-0.022220689803361893,
0.03253713622689247,
-0.9569323062896729,
0.08361560106277466,
0.7483144402503967,
-0.349466472864151,
0.067371398210... | |
run on iPhones and what not
What would be the best route? What problems can I run into in my alternatives above? I'd really prefer alternative 1 or 2 over 3 because of how the server is currently done and the fact that I know nothing about webservers or ASP.NET. Oh and I'd like to stay with the environment I'm alredy ... | [
0.24410046637058258,
0.004397376906126738,
0.21924084424972534,
0.08935669809579849,
-0.015284610912203789,
-0.09307848662137985,
0.9644538164138794,
0.21863599121570587,
-0.292131632566452,
-0.5984647274017334,
0.10668134689331055,
0.8965263962745667,
-0.211455300450325,
-0.08551224321126... | |
are using Passenger) if you are in production mode! | [
0.1625567078590393,
-0.22236749529838562,
0.4106798470020294,
0.16727738082408905,
0.16251417994499207,
-0.046578191220760345,
0.30439361929893494,
0.006042316555976868,
-0.3008536994457245,
-0.46813005208969116,
-0.30932867527008057,
0.8299547433853149,
-0.15755580365657806,
-0.3054643273... | |
if I run python on a 64bit machine with a 64bit operating system, will my programs be able to access the full range of memory? I.e. Could I build a list with 10billion entries, assuming I had enough RAM? If not, are there other programming languages that would allow this?
You'll need to be sure that Python has been bui... | [
0.21096119284629822,
0.2935217320919037,
-0.0830635353922844,
-0.021279018372297287,
-0.09905040264129639,
0.0794229507446289,
0.2933638393878937,
0.05656595155596733,
-0.49620452523231506,
-0.36834433674812317,
0.2326270490884781,
0.8362917900085449,
-0.2851889133453369,
-0.11020921170711... | |
I'm experiencing some craziness that I just can't figure out.
I've created the following class:
```
public abstract class AbstractView<T> : ViewPage<T> where T : class
```
which gives me some useful helpers and I'm using it in my views like this:
```
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/S... | [
-0.03130854293704033,
0.20299559831619263,
0.5198704600334167,
-0.12587884068489075,
-0.2117406278848648,
-0.1247628927230835,
0.32385388016700745,
-0.2464539259672165,
-0.34847790002822876,
-0.6564407348632812,
0.13061025738716125,
0.5093595385551453,
-0.158811554312706,
0.416739195585250... | |
view, which subsequently gives me:
```
"The view 'View' or its master could not be found. The following locations were searched..."
```
What's going on?
P.S. don't tell me codebehinds are evil. I'm writing presentation specific logic, and lots of it. It's not going inline in the aspx.
You could try using a code-alo... | [
0.36365100741386414,
0.2067822366952896,
0.32762283086776733,
0.048332348465919495,
-0.17481356859207153,
0.09328744560480118,
0.35779955983161926,
-0.012785491533577442,
-0.19402267038822174,
-0.41391271352767944,
0.1944473385810852,
0.8067728281021118,
-0.23327189683914185,
0.28495553135... | |
could be your problem if you're trying to use it in the constructor.
Otherwise you might want to look at using a ViewModel so that instead of you passing what I assume are raw domain objects, you do the custom formatting in the ViewModel and pass that to `AbstractView<T>`. | [
0.23548521101474762,
-0.22409015893936157,
0.05045400932431221,
0.2723660171031952,
-0.06831295043230057,
-0.015133148990571499,
-0.06296134740114212,
0.13887707889080048,
-0.2614811360836029,
-0.5198034644126892,
0.09763003885746002,
0.5248520374298096,
-0.3036757707595825,
0.172297954559... | |
I know that setCouponCode is catch inside \_\_call in Varien\_Object but I can't figure out where it is defined.
I need it because I want to show the coupon code even if the discount equal zero.
I believed it's done inside this function.
So if anybody know where the function is defined or where I can modify the code ... | [
0.415661484003067,
-0.20070379972457886,
0.17121244966983795,
0.14108788967132568,
-0.038261815905570984,
-0.13674087822437286,
-0.09877539426088333,
-0.00006380487320711836,
-0.0609184131026268,
-0.48296815156936646,
0.33376646041870117,
0.5581522583961487,
-0.3097396492958069,
0.04564069... | |
Not sure if I worded this correctly ... but I have the following code:
```
public Guid ItemId
{
get;
}
public TransactionItem()
{
this.ItemId = Guid.Empty;
}
```
Naturally I am getting a read-only issue ... which I do understand. Is there anyway to set this property value wit... | [
-0.2951142489910126,
-0.02725484035909176,
0.3422399163246155,
0.06297973543405533,
0.08218523859977722,
-0.3358868360519409,
0.19932901859283447,
-0.030508005991578102,
-0.3686901330947876,
-0.32883259654045105,
-0.34085625410079956,
0.7958170771598816,
-0.3625265061855316,
0.117173627018... | |
{
get
{
return _itemId;
}
set
{
_itemId = value;
}
}
```
or
```
public Guid ItemId
{
get; | [
-0.5066931843757629,
-0.29866859316825867,
0.3081088960170746,
-0.013516520150005817,
-0.10488321632146835,
0.018977224826812744,
0.09001851826906204,
0.05385587736964226,
0.24628689885139465,
-0.5842415690422058,
-0.6049762964248657,
0.7818007469177246,
-0.37324222922325134,
0.02040936611... | |
internal set;
}
```
Thanks in advance!
I would go for this:
```
public Guid ItemId
{
get;
private set; // can omit as of C# 6
}
public TransactionItem()
{
this.ItemId = Guid.Empty;
}
```
Of course, it would be open for setting within this class, but since you are writing it I hope you have the se... | [
-0.14534470438957214,
-0.006818521302193403,
0.2625487744808197,
0.13019661605358124,
-0.008105822838842869,
-0.29210397601127625,
0.31518691778182983,
-0.03833401948213577,
-0.05490216612815857,
-0.6120928525924683,
-0.3618304431438446,
0.6950455904006958,
-0.4425128400325775,
-0.03605885... | |
are the King =) | [
-0.28381115198135376,
0.36463528871536255,
0.33921170234680176,
-0.04291996359825134,
-0.5307890772819519,
-0.20217756927013397,
0.4397825002670288,
-0.0819847360253334,
-0.5514630675315857,
-0.2910751402378082,
-0.43282124400138855,
0.4881332516670227,
-0.5040974020957947,
-0.229226097464... | |
What is the easiest way to handle huge numbers in C? I need to store values in the Area `1000^900`, or in more human readable form `10^2700`.
Does anybody know of an easy way to do that? Any help would really be appreciated!
Use [libgmp](http://gmplib.org/):
> GMP is a free library for arbitrary precision arithmetic,... | [
0.0061007309705019,
0.21017198264598846,
0.5126563310623169,
0.039543893188238144,
-0.2531357705593109,
0.015854885801672935,
-0.36305442452430725,
0.2601262927055359,
-0.6374950408935547,
-0.3137640357017517,
-0.17155857384204865,
0.2109072506427765,
-0.39648473262786865,
-0.0024622504133... | |
GPL v2](https://www.gnu.org/licenses/gpl-2.0.html)...
>
>
> GMP's main target platforms are Unix-type systems, such as GNU/Linux, Solaris, HP-UX, Mac OS X/Darwin, BSD, AIX, etc. It also is known to work on Windows in both 32-bit and 64-bit mode... | [
0.11415403336286545,
0.12445855140686035,
0.6880415081977844,
0.05015408620238304,
-0.4395887553691864,
-0.20480534434318542,
-0.5091245174407959,
0.10869033634662628,
-0.11872406303882599,
-0.3141477108001709,
-0.30296334624290466,
0.39218494296073914,
-0.7087252736091614,
0.1317470818758... | |
I am new to SQL and relational DBMS.
I want to retrieve records from a relational database if they satisfy 3 given properties.
For example, if there is a table containing info about solids:
```
table_solid : |s_id|s_name|description|
table_width : |w_id|w_name|
table_height: |h_id|h_name|
table_length: |l_id|l_name|
... | [
0.09982237219810486,
0.5532885193824768,
0.5135537981987,
0.13874921202659607,
-0.18047724664211273,
-0.19656439125537872,
0.07034754753112793,
-0.26578110456466675,
-0.2711852788925171,
-0.7915093898773193,
0.11489780992269516,
0.2926032841205597,
-0.015421396121382713,
0.4474351108074188... | |
----------- table_width
------------table_height
```
table\_length contains valid lengths that solid can take (and similarly with other tables).
From a single table:
```
Select *
FROM TABLE_NAME
WHERE table_width = SOME_VALUE3
AND table_height= SOME_VALUE2
AND table_length = SOME_VALUE3
```
Is th... | [
0.009962295182049274,
0.22891980409622192,
0.7791415452957153,
-0.10846137255430222,
-0.4008369743824005,
0.07181652635335922,
-0.013020896352827549,
-0.5793136358261108,
-0.5339211821556091,
-0.4988897144794464,
-0.036661408841609955,
0.33092182874679565,
0.02319229580461979,
0.1709724068... | |
I have a class that has several properties that refer to file/directory locations on the local disk. These values can be dynamic and i want to ensure that anytime they are accessed, i verify that it exists first without having to include this code in every method that uses the values.
My question is, does putting thi... | [
0.5574283599853516,
0.2163662165403366,
0.1234351247549057,
0.2361675500869751,
0.28853657841682434,
-0.2747122049331665,
0.20176178216934204,
0.16196434199810028,
-0.23539213836193085,
-0.3656206727027893,
0.17481835186481476,
0.6377043128013611,
-0.012569393962621689,
0.27422600984573364... | |
generally it is not wise to optimize too early, but i would rather have this error checking in place now before i have to go back and remove it from the getter and add it all over the place.
---
Clarification:
The files/directories being pointed to by the properties are going to be used by System.Diagnostics.Process... | [
0.5584518313407898,
0.16267059743404388,
0.23322249948978424,
0.3133911192417145,
0.33118048310279846,
-0.2310158610343933,
-0.00879123155027628,
-0.07837363332509995,
-0.11021921038627625,
-0.7564058303833008,
-0.09948375821113586,
0.5050461888313293,
0.2675727605819702,
0.347240000963211... | |
- if there is any additional overhead or chance of failure (and IO - even just checking a file exists - would fail that test on both counts) then properties are not the right choice.
Remember that properties even get called by the debugger when looking at object state.
Your question about what the overhead actually i... | [
0.3842545747756958,
0.119759202003479,
-0.1448739469051361,
0.49373674392700195,
0.056116752326488495,
-0.11206935346126556,
0.2781814634799957,
-0.07886133342981339,
-0.10275232046842575,
-0.6531680822372437,
-0.13477864861488342,
0.7349836230278015,
0.06962408870458603,
-0.08510473370552... | |
How can I implement jquery in my Zend Framework application in a custom manner.
* appending jquery.js **ok**
* appending script **ok**
* send POST data to controller **ok**
* process POSTed data **ok**
* send 'AjaxContext' respond to client **now ok** (thanks)
I'm using jquery for the first time, what am I doing wron... | [
0.2530781924724579,
-0.10241363197565079,
0.1835019439458847,
0.09583809226751328,
-0.713343620300293,
-0.36023324728012085,
0.04672727733850479,
-0.08977752178907394,
-0.20617413520812988,
-0.7824071645736694,
0.21363383531570435,
0.5054893493652344,
-0.11785563081502914,
-0.1208484992384... | |
//The request was made with via ajax
}
```
However, modern practice, and what you're likely looking for, is now to use one of two new helpers:
* [ContextSwitcher](http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.contextswitch)
* **[AjaxContent](http://framework.zen... | [
-0.26854532957077026,
-0.23245957493782043,
0.5710734128952026,
-0.1322501003742218,
-0.22284327447414398,
-0.006142467260360718,
0.12567929923534393,
-0.3610437214374542,
-0.25007936358451843,
-0.8672736883163452,
-0.5567773580551147,
0.6667916178703308,
-0.3441937565803528,
-0.1445081830... | |
// Pull a single comment to view.
// When AjaxContext detected, uses the comment/view.ajax.phtml
// view script.
}
```
**Please Note:** This modern approach **requires** that you request a format in order for the context to be triggered. It's not made very obvious in the documentation and is somew... | [
0.21301564574241638,
-0.1467985361814499,
0.386576384305954,
-0.03181146830320358,
-0.4510248005390167,
-0.2581336200237274,
0.13234762847423553,
-0.19457294046878815,
-0.31909579038619995,
-0.7880024909973145,
-0.28790053725242615,
0.6389650106430054,
-0.15917330980300903,
-0.156017541885... | |
I would like to know if there is any way to style a WPF layout grid's cells, rows and columns. I've been trying to find any information and the few mentions I've found have not been that informative.
I would like to style the grid to look like the one in the linked screenshot.
If the actual control does not support i... | [
0.8585047125816345,
-0.019791726022958755,
0.018514461815357208,
0.41105180978775024,
0.11915037035942078,
0.10544250905513763,
-0.03553277254104614,
0.06782438606023788,
-0.08065293729305267,
-0.7752752900123596,
0.28380364179611206,
0.18592289090156555,
0.08892083913087845,
0.24964123964... | |
overkill. I would like to have a grid that does it itself.
[screenshot http://img21.imageshack.us/img21/2842/capturehz8.png](http://img21.imageshack.us/img21/2842/capturehz8.png)
Here's a quick (very rough sample) that you could hack around to get the format you want (if you're serious about working with WPF, you'll f... | [
0.4891068935394287,
-0.30953019857406616,
0.3664132058620453,
0.024079108610749245,
-0.0641542375087738,
-0.28869062662124634,
-0.11400475353002548,
-0.285092830657959,
0.06496191769838333,
-0.6314517855644226,
0.3051985204219818,
0.6322821974754333,
-0.4843587577342987,
-0.256903231143951... | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<Style x:Key="CustomerDefinition" TargetType="TextBlock">
<Setter Property="Control.FontFamily" Value="Tahoma"/> | [
-0.1506127119064331,
-0.018223367631435394,
0.40067562460899353,
-0.029604529961943626,
-0.29838693141937256,
0.21358329057693481,
-0.20808374881744385,
-0.07619968801736832,
-0.030800320208072662,
-0.2382679432630539,
-0.518025815486908,
0.19869187474250793,
-0.17124691605567932,
0.184119... | |
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.Foreground" Value="Red"/>
</Style>
<Style TargetType="{x:Type Label}">
<Setter Property="Width" Value="100"/>
</Style>
<Style x:Key="{x:Type TextBox}" TargetType="{x:Type ... | [
-0.05950043350458145,
-0.16648268699645996,
0.44987672567367554,
-0.06170240044593811,
-0.17285089194774628,
0.33211180567741394,
0.021616537123918533,
-0.5560498833656311,
0.06900948286056519,
-0.6147800087928772,
-0.27729928493499756,
0.3990150988101959,
-0.15355849266052246,
-0.21903614... | |
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="MinWidth" ... | [
-0.33089542388916016,
-0.4167889654636383,
0.24525877833366394,
0.14964962005615234,
0.1721900999546051,
0.2234993577003479,
0.12749674916267395,
-0.2170940339565277,
-0.11695633828639984,
-0.5324217081069946,
-0.5522210001945496,
0.9357157349586487,
-0.06748472154140472,
-0.31084451079368... | |
<Setter Property="AllowDrop" Value="true"/>
<Setter Property="Width" Value="200"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBoxBase}"> | [
0.26834163069725037,
-0.4690234661102295,
0.30664339661598206,
0.044995687901973724,
-0.04874039068818092,
-0.05765070393681526,
0.014069978147745132,
-0.6151710748672485,
0.23405691981315613,
-0.48579809069633484,
-0.23256218433380127,
0.4707041084766388,
-0.37570932507514954,
-0.16977556... | |
<Border
Name="Border"
Background="#FFEBE9E9" | [
0.1295967400074005,
0.2524077892303467,
0.5688700079917908,
-0.02206580527126789,
0.09473646432161331,
0.06404557824134827,
0.17397384345531464,
0.24913616478443146,
-0.3239244222640991,
-0.47538429498672485,
-0.15938858687877655,
-0.3057163953781128,
-0.14453209936618805,
0.14999024569988... | |
BorderBrush="#FF8B8787"
BorderThickness="1"
CornerRadius="2"
Padding="3"> | [
-0.15018929541110992,
-0.17613346874713898,
0.9113336801528931,
0.1871238797903061,
0.06263819336891174,
-0.004636066034436226,
0.3419823944568634,
-0.6653892993927002,
-0.14178559184074402,
-0.6393309235572815,
0.20566336810588837,
0.24790503084659576,
-0.1575102061033249,
-0.120385922491... | |
<ScrollViewer x:Name="PART_ContentHost" Margin="0"/>
</Border>
<ControlTemplate.Triggers> | [
-0.04210105538368225,
-0.23622392117977142,
0.9620521664619446,
0.33091700077056885,
-0.11659802496433258,
-0.2973383367061615,
-0.15915143489837646,
-0.345179945230484,
0.10449058562517166,
-0.4185778796672821,
0.13310199975967407,
0.24128158390522003,
-0.0615885928273201,
0.2681387960910... | |
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="Border" Property="Background" | [
0.1572500318288803,
-0.2365802824497223,
0.18461407721042633,
-0.04001690074801445,
0.045565906912088394,
0.006526375655084848,
0.2990068197250366,
-0.4491935074329376,
-0.304291307926178,
-0.3204091787338257,
-0.2724537253379822,
0.31524035334587097,
-0.3720356822013855,
0.073263213038444... | |
Value="#EEEEEE"/>
<Setter TargetName="Border" Property="BorderBrush"
Value="#EEEEEE"/> | [
0.08124616742134094,
-0.025078799575567245,
0.46791747212409973,
0.05279466137290001,
0.15681429207324982,
-0.027710262686014175,
0.34175875782966614,
0.02693987265229225,
-0.0812147930264473,
-0.3724876940250397,
0.07650132477283478,
0.1859578788280487,
-0.13987880945205688,
0.15804333984... | |
<Setter Property="Foreground" Value="#888888"/>
</Trigger>
</ControlTemplate.Triggers> | [
0.17226558923721313,
-0.20630192756652832,
0.1681671142578125,
0.30962204933166504,
0.32277604937553406,
0.013933039270341396,
-0.14241202175617218,
-0.7646327018737793,
-0.2278837412595749,
-0.3502742648124695,
-0.07798435539007187,
0.3316817879676819,
-0.3520495891571045,
0.2021497339010... | |
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<LinearGradientBrush x:Key="NormalBrush" StartPoint="0,0" EndPoint="0,1">
<GradientBrush.GradientStops> | [
-0.5933924317359924,
-0.6507321000099182,
0.8223186135292053,
0.22440145909786224,
-0.15845586359500885,
0.2809973657131195,
0.25587159395217896,
-0.4747075140476227,
0.4335286021232605,
-0.23596452176570892,
0.2429809272289276,
0.3043617904186249,
-0.30810806155204773,
0.11398164927959442... | |
<GradientStopCollection>
<GradientStop Offset="0.0" Color="#FFF0EDED"/>
<GradientStop Offset="1.0" Color="#FFE1E0E0"/>
</GradientStopCollection>
</GradientBrush.GradientStops> | [
-0.5225298404693604,
-0.6539150476455688,
0.49861663579940796,
0.035741932690143585,
0.19331873953342438,
0.5132735967636108,
-0.0014175992691889405,
-0.3391016125679016,
0.17818887531757355,
-0.5220662951469421,
0.3706910312175751,
0.5094592571258545,
-0.18536166846752167,
-0.231044799089... | |
</LinearGradientBrush>
</Page.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition | [
-0.33222535252571106,
-0.3575139045715332,
0.4525423049926758,
-0.08711840212345123,
-0.0898791253566742,
0.3105325698852539,
-0.1911325305700302,
-0.4943903386592865,
-0.19982141256332397,
-0.6671080589294434,
0.16137538850307465,
0.45718878507614136,
-0.2049551010131836,
0.09836643934249... | |
Height="26"/>
<RowDefinition Height="23"/>
<RowDefinition Height="24"/>
<RowDefinition Height="24"/>
<RowDefinition Height="24"/>
</Grid.RowDefinitions>
<TextBlock | [
-0.3516092300415039,
0.05078018456697464,
0.21631789207458496,
-0.27239760756492615,
-0.31794607639312744,
0.4191839396953583,
0.0941014215350151,
-0.33784008026123047,
-0.4161819815635681,
-1.0938822031021118,
-0.006644337438046932,
0.3064495325088501,
-0.1254550665616989,
-0.039208244532... | |
Grid.ColumnSpan="2"
Grid.Row="0"
Style="{StaticResource CustomerDefinition}"
Text="Customer Definition"/>
<Border
Grid.Column="0"
Grid.Row="1" | [
0.15743964910507202,
-0.19545811414718628,
0.8202418088912964,
-0.12624898552894592,
0.10298113524913788,
0.1937088519334793,
-0.1128498986363411,
-0.2523763179779053,
-0.2587418258190155,
-0.7877120971679688,
-0.009424451738595963,
0.28680419921875,
-0.20841865241527557,
0.256897091865539... | |
Background="#FFEBE9E9"
BorderBrush="#FF8B8787"
BorderThickness="1">
<StackPanel Background="{StaticResource NormalBrush}" Orientation="Horizontal">
<Label Content="Customer Code"/>
<TextBox Text="SMITHA 098 (normally I'd bind here)"/> | [
-0.17614619433879852,
-0.18104004859924316,
0.6924493908882141,
0.07753530889749527,
0.04317668080329895,
0.16566234827041626,
0.391496866941452,
-0.3428642749786377,
-0.22059841454029083,
-0.4429825246334076,
0.23636497557163239,
0.20897066593170166,
-0.1364479809999466,
-0.05129310861229... | |
</StackPanel>
</Border>
<Border
Grid.Column="1"
Grid.Row="1"
Background="#FFEBE9E9"
BorderBrush="#FF8B8787" | [
-0.1920803189277649,
-0.03025435097515583,
0.5748220086097717,
-0.02970467507839203,
0.15089909732341766,
0.14575476944446564,
-0.0589272640645504,
-0.233943372964859,
-0.5658332705497742,
-0.4669167101383209,
-0.06753917783498764,
0.03865261748433113,
-0.22888462245464325,
-0.027314005419... | |
BorderThickness="1">
<StackPanel Background="{StaticResource NormalBrush}" Orientation="Horizontal">
<Label Content="Customer Type"/>
<TextBox Text="PRIVATE INDIVIDUAL"/>
</StackPanel>
</Border> | [
0.007257829420268536,
-0.43663716316223145,
0.7225882411003113,
0.10219172388315201,
0.17979253828525543,
0.03395935520529747,
-0.0274271909147501,
-0.3219824731349945,
-0.255598783493042,
-0.5162657499313354,
-0.054722968488931656,
0.27183717489242554,
-0.22561809420585632,
-0.04800296202... | |
</Grid> </Page>
``` | [
0.07487084716558456,
0.5869196057319641,
0.310476690530777,
-0.09938013553619385,
0.00964066106826067,
0.0214593093842268,
0.06052866950631142,
0.2324836403131485,
-0.19015689194202423,
-0.8752343654632568,
-0.295680433511734,
-0.009459338150918484,
-0.15558211505413055,
-0.034221526235342... | |
Some time ago I had to address a certain C# design problem when I was implementing a JavaScript code-generation framework. One of the solutions I came with was using the “using” keyword in a totally different (hackish, if you please) way. I used it as a syntax sugar (well, originally it is one anyway) for building hier... | [
0.48752373456954956,
0.25639259815216064,
0.0473383404314518,
-0.3005065619945526,
-0.08825389295816422,
-0.14730967581272125,
0.23216883838176727,
-0.13195203244686127,
-0.10981861501932144,
-0.41985493898391724,
0.07870569825172424,
0.2590624988079071,
-0.5382934212684631,
0.344873607158... | |
// Generate some more code
}
}
```
It is working because the Function and the While methods return IDisposable object, that, upon dispose, tells the builder to close the current scope. Such thing can be helpful for any tree-like structure that need to be hard-codded.
Do you think such “hacks” are justified? Bec... | [
0.41179871559143066,
0.02086273767054081,
-0.09107639640569687,
-0.014977742917835712,
-0.018164265900850296,
-0.5762027502059937,
0.2500755488872528,
-0.1417330801486969,
-0.09876839816570282,
-0.31213971972465515,
-0.06472967565059662,
0.9210864901542664,
-0.3395252525806427,
-0.04392703... | |
that many modern languages discourage such abuse and give you specific, much more restricted features.
My example is, of course, somewhat esoteric, but real. So what do you think about the specific hack and of the whole issue? Have you encountered similar dilemmas? How much abuse can you tolerate?
I think this is some... | [
0.3744922876358032,
0.3347448706626892,
-0.17642341554164886,
0.3196793794631958,
-0.37269604206085205,
-0.3083781898021698,
0.48113304376602173,
0.6446123123168945,
-0.3041583299636841,
-0.21471580862998962,
0.006386409979313612,
0.5672987103462219,
-0.2573750615119934,
0.3264878094196319... | |
is a good thing. It makes for more readable code. Using blocks can be a useful part of a DSL in C#. In this case I think there are better alternatives. The use of using is this case strays a bit too far from its original purpose. This can confuse the reader. I like Anton Gogolev's solution better for example. | [
0.4302436113357544,
0.27491459250450134,
-0.22283467650413513,
0.3347401022911072,
-0.3215351402759552,
-0.21104738116264343,
0.3373083174228668,
-0.2763490378856659,
-0.20170870423316956,
-0.2890309691429138,
-0.24884670972824097,
-0.0007488747360184789,
-0.5535732507705688,
0.34028345346... | |
One of my friends is working on having a good solution to generate aspx pages, out of html pages generated from a legacy asp application.
The idea is to run the legacy app, capture html output, clean the html using some tool (say HtmlTidy) and parse it/transform it to aspx, (using Xslt or a custom tool) so that existi... | [
0.5188391208648682,
-0.06273428350687027,
0.28622499108314514,
0.1887199431657791,
-0.017624245956540108,
-0.03876376152038574,
0.03820870444178581,
0.06268006563186646,
-0.10753599554300308,
-0.7462633848190308,
0.11064618080854416,
0.36058932542800903,
-0.09116402268409729,
-0.1279087662... | |
posting forms, navigating, etc.
2. Write unit test-like scripts for the various scenarios.
3. Use the Python [HTTP client library](http://docs.python.org/library/httplib.html) to exercise the legacy app in your various scripts.
4. If your scripts work, you (a) actually understand the legacy app, (b) can make it do the ... | [
0.34744876623153687,
-0.2789556086063385,
0.3307230770587921,
0.20073957741260529,
-0.305194228887558,
0.03257055953145027,
0.3166030943393707,
-0.07384620606899261,
-0.2592844069004059,
-0.7853561639785767,
-0.07156781852245331,
0.2331455796957016,
0.09798876196146011,
-0.3279013931751251... | |
massage the HTML into a form suitable for ASPX. This might be some replacement of text or tags with `<asp:...` tags.
* Create some other, more useful data structure out of the HTML -- one that reflects the structure and meaning of the pages, not just the HTML tags. Generate the ASPX pages from that more useful structur... | [
0.4457162320613861,
-0.4473957121372223,
0.3626246154308319,
0.3866526782512665,
-0.11639690399169922,
0.0779254212975502,
0.08935200423002243,
-0.31426557898521423,
-0.11239470541477203,
-0.6634158492088318,
-0.05621407926082611,
0.7018552422523499,
-0.21292506158351898,
-0.53081011772155... | |
I am involved in a project in which public API documentation is a clear deliverable. In order to ensure that the release meets this requirement, I'd like to ensure that the the release target in my Ant build file fails if documentation coverage is too low.
As a minimum, each identifier with public or protected access ... | [
0.4034084975719452,
0.10864903777837753,
-0.004619545768946409,
-0.13542209565639496,
-0.2705893814563751,
0.12191008031368256,
0.2578493356704712,
-0.22808429598808289,
-0.07820539176464081,
-0.7091372609138489,
-0.04161019250750542,
0.4076976478099823,
-0.19173669815063477,
-0.0588755495... | |
coverage reports and failure conditions using Cobertura, so something similar to that for documentation would be perfect. However, if the detection of a failure condition is not available, a report be a reasonable substitute.
The documentation **must** be in Javadoc format. No other format -- including Doxygen -- is a... | [
0.564129114151001,
0.1811230331659317,
0.1551145762205124,
-0.09452599287033081,
0.18552382290363312,
-0.7279791235923767,
0.08571168035268784,
-0.26392123103141785,
-0.08058082312345505,
-0.6756049394607544,
-0.40538278222084045,
0.6326030492782593,
-0.12500040233135223,
-0.20072233676910... | |
When code processes dates based on the current date, testing should cover edge cases such as leap years as well as the more frequent month and year boundaries.
In our code we always get the current date deep down in our classes using `DateTime.Now` (.NET, in our case).
How can you unit test such code?
Is this where ... | [
0.4637514650821686,
0.07994404435157776,
0.18315215408802032,
0.0908418595790863,
0.3009248673915863,
-0.1765197068452835,
0.47664186358451843,
-0.027785027399659157,
-0.08882544189691544,
-0.4451272189617157,
0.16248656809329987,
0.13078853487968445,
0.07203887403011322,
0.142293557524681... | |
a dependency, and a non-deterministic dependency at that. You need to divide the responsibility of the code up a little more.
Before:
* There is some code that uses the current datetime to do X.
After:
* There should be some code that is responsible for getting the current datetime.
* There should be some code that... | [
0.22444510459899902,
-0.23944997787475586,
0.192165806889534,
0.20738637447357178,
0.04823517054319382,
-0.22226181626319885,
-0.052449844777584076,
-0.14432305097579956,
-0.14155623316764832,
-0.5843852758407593,
-0.021511076018214226,
0.42196834087371826,
-0.3719015419483185,
0.290075451... | |
I'm trying to design a database for a server and database inventory and I'm looking for a good database design. We have tables for server clusters, stand alone servers and databases. I would like to represent the following relationships in the database:
A one to many relationship from cluster to servers.
A one to ... | [
0.27114138007164,
0.1300809234380722,
0.2510698139667511,
0.27138271927833557,
0.2054826021194458,
0.07245089113712311,
-0.4025207757949829,
0.08477441221475601,
-0.4195612967014313,
-0.7690026164054871,
0.3924156725406647,
0.3172989785671234,
-0.17864927649497986,
0.42887136340141296,
0... | |
your relational view of the situation.
```
Cluster : name, other attributes of cluster
Server : name, optional FK to cluster, other attributes of a server
Database : name, (FK to cluster OR FK to server)
```
The issue is that you have a somewhat more complex real-world situation, one that relational technology doe... | [
-0.5363853573799133,
0.25720006227493286,
0.06154670566320419,
0.1300940364599228,
-0.1862255036830902,
-0.10195700824260712,
0.15766680240631104,
-0.014209073036909103,
-0.37418103218078613,
-0.767906904220581,
-0.25658661127090454,
-0.008244721218943596,
-0.3795085847377777,
0.4122174084... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.