text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I'm starting on a project that I expect will include a substantial amount of non-Java code (mostly shell and SQL scripts).
I would still like to manage this project with Maven. What are the best practices wrt non-Java source code and Maven? Where should the source go? What happens to them during the different lifecycl... | [
0.5530999898910522,
0.4243828356266022,
-0.2951497435569763,
0.2315797209739685,
0.14347295463085175,
-0.437730610370636,
0.1761520951986313,
0.05630294978618622,
-0.2622344493865967,
-0.6491379141807556,
0.21087783575057983,
0.4491545557975769,
0.22412818670272827,
0.23985908925533295,
... | |
the JAR file and I guess you don't want shell scripts and SQL scripts be included in a JAR file, right?
So the Maven way would be to create additional folders under src/main. E.g. create a **sql** folder for your SQL scripts, an **sh** folder for your shell scripts and so on. This is the location where other Maven plu... | [
0.233705073595047,
0.16166025400161743,
-0.005252444185316563,
-0.028388552367687225,
-0.01968705654144287,
-0.16212643682956696,
0.20025570690631866,
0.28578731417655945,
-0.12047559767961502,
-0.35520803928375244,
0.20539648830890656,
0.7016977667808533,
-0.1866339147090912,
0.1759095489... | |
Is Oracle Application Express suitable for Intranet client/server application?
If so, what should I do to enable client access to application?
---
Well, I am working as a PowerBuilder/Oracle developer, so I am familiar with client/server architecture. I have recently read an article about APEX so I would like to deve... | [
0.2180861234664917,
0.10846181958913803,
0.0906735435128212,
0.19295138120651245,
-0.2397066056728363,
-0.016075551509857178,
0.08323191851377487,
-0.024946901947259903,
0.0558326356112957,
-0.6689194440841675,
0.18428584933280945,
0.5509786009788513,
-0.1305079162120819,
-0.27871090173721... | |
like to know is APEX suitable for Intranet app - it should be as it is suitable for Internet app :) - and how should I enable client's browser to access an application since there would be nothing like http:/www.appdomain.com ? I know next to nothing about win networks :)
*"since there would be nothing like http:/www.a... | [
0.5600577592849731,
-0.0261173527687788,
0.6236631870269775,
0.11897765845060349,
0.2720487713813782,
-0.10739149153232574,
-0.05258012190461159,
-0.005026915110647678,
-0.08946263045072556,
-0.6309553980827332,
0.2915307581424713,
0.591161847114563,
-0.3270167112350464,
0.2965259552001953... | |
would have a similar (ugly) name. If it says it is defined as dbhost, then whoever in your organisation has mapped dbhost to a particular machine can do the same for your webserver. The only caveat is that sometimes you have a specific proxy defined in your browser and your apex webserver may need to be added as an exc... | [
0.14506815373897552,
0.06297467648983002,
0.23186568915843964,
0.13942790031433105,
-0.03801283240318298,
-0.3272821605205536,
0.24590927362442017,
0.04194431006908417,
-0.14016364514827728,
-0.6329860687255859,
-0.39927372336387634,
0.21178750693798065,
-0.21131180226802826,
-0.0890371724... | |
Our application is structured something like:
UI <--> REST API <--> Workflow <--> Business Logic <--> DAL <--> DB
However, I am seeing a few examples where it looks like people are doing
UI <--> Workflow <--> REST API <--> Business Logic <--> DAL <--> DB
Is this my imagination? Or is the second option considered a ... | [
0.30627086758613586,
-0.010123071260750294,
0.4989185035228729,
0.37477144598960876,
-0.23392899334430695,
-0.005906295496970415,
0.05454717203974724,
0.010402422398328781,
-0.39252808690071106,
-0.8715483546257019,
-0.10762135684490204,
0.19322824478149414,
-0.30518972873687744,
0.0110981... | |
cycle, have bidirectional links and whatnot. I assume this graph is somehow derrived from the business logic.
If you include your workflow (a specific path from one point to another via the graph) in you UI, you make some assumptions about the REST API therefore tightly coupling your UI with the business logic, theref... | [
0.1824367344379425,
-0.18270859122276306,
-0.0039475420489907265,
0.2781303822994232,
-0.2016131579875946,
-0.1387016773223877,
0.3897962272167206,
-0.06873617321252823,
-0.18958717584609985,
-0.8821332454681396,
0.02901565097272396,
0.570765495300293,
-0.5291386246681213,
-0.1389107704162... | |
That is how a browser works, anyways.
If you really need to have some workflows though, you could implement them by creating a chain of interconnected resources and guiding the user to the first one. In this sense, your first option would be valid although I find the seperation of business logic and workflow to be a g... | [
0.4276133179664612,
0.05126483365893364,
0.17515839636325836,
-0.0510576032102108,
-0.046888116747140884,
-0.11808858066797256,
0.23547594249248505,
0.09129330515861511,
-0.13101021945476532,
-0.646006166934967,
-0.09725389629602432,
0.28068631887435913,
-0.1470758020877838,
-0.02087926305... | |
This may be simple one, but 5 mins of Googling didn't give me the answer.
How do you save and load bitmaps using .Net librabries?
I have an Image object and I need to save it to disk in some format (preferably png) and load back in later.
A C# example would be great.
Here's a really simple example.
**Top of code file... | [
0.5576744675636292,
-0.2099858969449997,
0.48750337958335876,
0.12065599858760834,
-0.18428608775138855,
-0.0915427878499031,
0.07433571666479111,
-0.19146665930747986,
-0.33538925647735596,
-0.8327059745788574,
0.05326966196298599,
0.6809481978416443,
-0.24399317800998688,
-0.208580702543... | |
Eclipse is a really great editor, which I prefer to use, but the GUI design tools for Eclipse are lacking. On the other hand, NetBeans works really well for GUI design.
Are there any tips, tricks or pitfalls for using NetBeans for GUI design and Eclipse for everything else on the same project?
**EDIT:** I tried Mave... | [
0.39025989174842834,
0.06927747279405594,
0.034275349229574203,
-0.04590598866343498,
-0.4854285418987274,
-0.3233603239059448,
0.1681097447872162,
0.25453945994377136,
0.09967352449893951,
-0.8844425082206726,
0.08667320758104324,
0.9600309133529663,
-0.24319079518318176,
-0.1468991041183... | |
projekt from your Eclipse workspace with Netbeans. Now you able to use Netbeans to create and change the GUI and editing the code with Eclipse.
```
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MyProject</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>or... | [
0.022892480716109276,
-0.10343794524669647,
0.1519668996334076,
-0.17886978387832642,
-0.40538308024406433,
0.3076097071170807,
0.1296319216489792,
-0.37754446268081665,
-0.048501115292310715,
-0.5199548602104187,
-0.16232547163963318,
0.48987168073654175,
-0.527777373790741,
-0.2585830390... | |
I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. This, of course, defeats the purpose.
Is there a way to get file size info f... | [
0.6513715386390686,
-0.015256443992257118,
0.23820044100284576,
0.21586309373378754,
0.11116231977939606,
-0.07211665064096451,
-0.09845588356256485,
-0.009949026629328728,
-0.3473842740058899,
-0.6067912578582764,
0.13911671936511993,
0.7975482940673828,
0.041354477405548096,
0.2343419641... | |
What are the relative merits of the xdoc and apt formats for writing websites of Maven projects? Is one more expressive than the other? Has one got better tool support than the other?
The XDOC format is definitely a richer mechanism for creating documents and is required if you want to produce documents with TOC/TOF, h... | [
0.3085642158985138,
0.21421454846858978,
0.36183834075927734,
0.2974500060081482,
-0.3756222724914551,
-0.5072229504585266,
0.050770558416843414,
0.053965020924806595,
0.07643952965736389,
-0.6854073405265808,
-0.2720377445220947,
0.6205587983131409,
-0.07285308837890625,
-0.24370102584362... | |
loveliness), APT is a breeze. By the same token, when I'm writing a plugin that generates content, I tend to use the XDOC format, since it's pretty easy to write software that creates the required XML. | [
0.393187552690506,
0.009381698444485664,
0.4261549115180969,
0.269575297832489,
-0.37459516525268555,
-0.2863907217979431,
-0.08570177853107452,
0.12042681872844696,
0.05092943087220192,
-0.5668517351150513,
-0.16450385749340057,
0.4544987380504608,
-0.036417510360479355,
-0.06748045980930... | |
Will content requested over https still be cached by web browsers or do they consider this insecure behaviour? If this is the case is there anyway to tell them it's ok to cache?
By default web browsers should cache content over HTTPS the same as over HTTP, unless explicitly told otherwise via the [HTTP Headers](http://... | [
0.1926591545343399,
0.050730347633361816,
0.4567963182926178,
-0.0566539503633976,
0.28401294350624084,
-0.23922410607337952,
0.3839251399040222,
0.0979703813791275,
-0.40684419870376587,
-0.4735579490661621,
-0.593071699142456,
0.40749284625053406,
-0.1904490888118744,
0.01331822387874126... | |
page can be cached for 3600 seconds (1 hour) | [
0.08494371920824051,
0.06782152503728867,
0.3466438353061676,
0.3721904158592224,
0.0345582440495491,
-0.0961904376745224,
0.9265041947364807,
0.23238401114940643,
-0.15251979231834412,
-0.7879008054733276,
-0.370721697807312,
-0.016286473721265793,
0.07635775953531265,
0.17018172144889832... | |
I am trying to match floating-point decimal numbers with a regular expression. There may or may not be a number before the decimal, and the decimal may or may not be present, and if it is present it may or may not have digits after it. (For this application, a leading +/- or a trailing "E123" is not allowed). I have wr... | [
0.019033361226320267,
0.35583436489105225,
0.4357817471027374,
-0.17350806295871735,
-0.1150691956281662,
0.034890275448560715,
0.15070578455924988,
0.024107737466692924,
-0.1530730277299881,
-0.5314964652061462,
0.13351327180862427,
0.5751275420188904,
-0.1709117740392685,
-0.003371612168... | |
than 0. If not, it is not valid. Is there a way I can do this directly in the regex?
I think this will do what you want. It either starts with a digit, in which case the decimal point and digits after it are optional, or it starts with a decimal point, in which case at least one digit is mandatory after it.
```
/^\d+... | [
-0.18798452615737915,
-0.1844843029975891,
0.7037481069564819,
0.18631558120250702,
0.39732369780540466,
-0.27505621314048767,
0.13430725038051605,
-0.09147786349058151,
0.1817866414785385,
-0.4472634494304657,
-0.1281432956457138,
0.646737277507782,
-0.15411466360092163,
0.161276042461395... | |
I've got a question concerning fields in databases which are measures that might be displayed in different units but are stored only in one, such as "height", for example.
Where should the "pattern unit" be stated?. Of course, in the documentation, etc... But we all know nobody reads the documentation and that self-do... | [
0.9308823347091675,
0.26754531264305115,
-0.20882391929626465,
0.3357922434806824,
0.1572326272726059,
-0.12966106832027435,
0.02041350118815899,
0.002600264735519886,
-0.3920564353466034,
-0.3022199869155884,
0.15840142965316772,
0.30590924620628357,
-0.035618484020233154,
0.0908865630626... | |
and the "pattern unit" will never change.
What do you think?
What's weird about height\_cm? Looks good to me.
Sometimes you see measures and units in two separate fields, which is much more painful.
As long as you know the units aren't going to change, I think height\_cm is a good way to deal with it. | [
0.8176490664482117,
0.0839897021651268,
0.11370939016342163,
0.16156713664531708,
0.07750551402568817,
-0.03771653398871422,
0.22220191359519958,
0.1749267727136612,
-0.5248968601226807,
-0.5902062058448792,
0.30934324860572815,
0.16135267913341522,
0.05620099976658821,
0.04360780119895935... | |
We're developing a windows mobile 6.1 application and would like to make the user interface look better than the standard battleship grey. Has anyone had any experience with 3rd party controls that can make a windows mobile app look like a WPF/Silverlight/Iphone - like interface?
There might be some useful-ish replies ... | [
0.3938484489917755,
-0.285085529088974,
0.4471704065799713,
0.38563695549964905,
0.388310968875885,
-0.23182860016822815,
-0.08815918117761612,
-0.2129363864660263,
-0.04481685534119606,
-0.642338752746582,
-0.05631038174033165,
0.6520061492919922,
-0.022750288248062134,
0.023254269734025,... | |
I have a table that records a sequence of actions with a field that records the sequence order:
```
user data sequence
1 foo 0
1 bar 1
1 baz 2
2 foo 0
3 bar 0
3 foo 1
```
Selecting the first | [
0.022635551169514656,
0.41905632615089417,
0.40761902928352356,
-0.4894571006298065,
0.01039595901966095,
0.6357138156890869,
0.06433850526809692,
-0.35902369022369385,
-0.14344161748886108,
-0.3787420690059662,
-0.11818473041057587,
0.3812423348426819,
-0.5245377421379089,
0.0087699722498... | |
item for each user is easy enough with WHERE sequence = '0' but is there a way to select the last item for each user in SQL?
The result I am after should look like this:
```
user data sequence
1 baz 2
2 foo 0
3 foo 1
```
I'm using MySQL if there are any implementation specific tr... | [
0.1259293109178543,
0.13948306441307068,
0.5579842329025269,
-0.03232389688491821,
-0.1568336933851242,
0.2385265827178955,
0.1484052687883377,
-0.3056233823299408,
-0.12238354980945587,
-0.35855138301849365,
0.007399431895464659,
0.41931480169296265,
-0.2956167161464691,
0.310914397239685... | |
each user:
```
select a.user, a.data, a.sequence
from table as a
inner join (
select user, max(sequence) as 'last'
from table
group by user) as b
on a.user = b.user and
a.sequence = b.last
``` | [
-0.4659450352191925,
0.1682395488023758,
0.33309441804885864,
-0.2262687087059021,
0.13712449371814728,
0.41353222727775574,
-0.08634224534034729,
-0.2544725239276886,
-0.053529441356658936,
-0.4144602417945862,
-0.3766677677631378,
0.23018300533294678,
-0.35422614216804504,
0.005327057093... | |
What is the simplest way (least error-prone, least lines of code, however you want to interpret it) to open a file in C and read its contents into a string (char\*, char[], whatever)?
I tend to just load the entire buffer as a raw memory chunk into memory and do the parsing on my own. That way I have best control over ... | [
0.06327571719884872,
0.35329586267471313,
0.0790100172162056,
-0.2883138656616211,
0.03146738186478615,
0.0028328553307801485,
0.08755680173635483,
-0.047943808138370514,
-0.05866437405347824,
-0.4309902787208557,
-0.25004443526268005,
0.6071785092353821,
-0.4654906392097473,
-0.2145196646... | |
fopen (filename, "rb");
if (f)
{
fseek (f, 0, SEEK_END);
length = ftell (f);
fseek (f, 0, SEEK_SET);
buffer = malloc (length);
if (buffer)
{
fread (buffer, 1, length, f);
}
fclose (f);
}
if (buffer)
{
// start to process your data / extract strings here...
}
``` | [
-0.26578089594841003,
-0.007100619375705719,
1.0127187967300415,
-0.41815999150276184,
0.4346318244934082,
0.044902026653289795,
0.22346264123916626,
-0.3070244789123535,
-0.16227303445339203,
-0.4951478838920593,
-0.5968753099441528,
0.5961607694625854,
-0.2924034297466278,
-0.03926335647... | |
I recently inherited a database on which one of the tables has the primary key composed of encoded values (Part1\*1000 + Part2).
I normalized that column, but I cannot change the old values.
So now I have
```
select ID from table order by ID
ID
100001
100002
101001
...
```
I want to find the "holes" in the table ... | [
-0.2574610710144043,
0.5699812769889832,
0.16283702850341797,
0.06313107162714005,
0.27698808908462524,
0.40042489767074585,
0.04148917272686958,
-0.5684385299682617,
-0.2594511806964874,
-0.80882728099823,
-0.026135800406336784,
0.3206334114074707,
-0.2517756223678589,
0.3634670674800873,... | |
is Microsoft SQL Server 2000. I'm ok with using SQL extensions.
```
select ID +1 From Table t1
where not exists (select * from Table t2 where t1.id +1 = t2.id);
```
not sure if this version would be faster than the one you mentioned originally. | [
-0.19098719954490662,
-0.0745108500123024,
0.4013534486293793,
-0.095159150660038,
0.041782084852457047,
-0.41833794116973877,
-0.04794535040855408,
0.007012598682194948,
-0.040233977138996124,
-0.7124776840209961,
0.17714281380176544,
0.4254453182220459,
-0.289164662361145,
0.023462677374... | |
I am trying to get in place editing working but I am running into this error:
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken)
I understand that rails now wants to protect against forgery and that I need to pass a form authenticity token but I am not clear on how to do this with... | [
0.2546517252922058,
0.2807717025279999,
0.2159169316291809,
-0.09040982276201248,
-0.0516367107629776,
-0.13125461339950562,
0.7075145840644836,
-0.04156925529241562,
-0.10920840501785278,
-0.8426035642623901,
-0.03252547234296799,
0.40069109201431274,
-0.31763434410095215,
-0.093162372708... | |
In SQL Server 2005, is there a way for a trigger to find out what object is responsible for firing the trigger? I would like to use this to disable the trigger for one stored procedure.
Is there any other way to disable the trigger only for the current transaction? I could use the following code, but if I'm not mistak... | [
-0.21518978476524353,
0.03709688410162926,
0.44216397404670715,
-0.11743798851966858,
-0.19915296137332916,
-0.47923198342323303,
0.048099517822265625,
-0.32348141074180603,
-0.2523457705974579,
-0.2776106595993042,
0.09577462822198868,
0.7141600847244263,
-0.7402804493904114,
0.0926207602... | |
{ [ schema_name . ] trigger_name [ ,...n ] | ALL } ON { object_name | DATABASE | ALL SERVER } [ ; ]
```
If possible, I would like to avoid the technique of having a "NoTrigger" field in my table and doing a `NoTrigger = null`, because I would like to keep the table as small as possible.
The reason I would like to av... | [
0.011322000995278358,
0.18655505776405334,
0.3592343032360077,
-0.1783188283443451,
0.2074572592973709,
-0.30622750520706177,
0.41116538643836975,
-0.060292791575193405,
-0.4254806339740753,
-0.5135712623596191,
-0.15881985425949097,
0.4179123640060425,
-0.4238569438457489,
0.1485951840877... | |
it to be fast.
> Triggers impose additional overhead on the server because they initiate an implicit transaction. As soon as a trigger is executed, a new implicit transaction is started, and any data retrieval within a transaction will hold locks on affected tables.
From: <http://searchsqlserver.techtarget.com/tip/1,... | [
0.07771317660808563,
-0.4100484251976013,
0.36199042201042175,
0.22978657484054565,
0.0879257470369339,
-0.38121816515922546,
0.05532585456967354,
-0.39512816071510315,
-0.48262089490890503,
-0.4132016897201538,
0.03639427572488785,
0.4663742482662201,
-0.26885613799095154,
-0.289854496717... | |
DROP TABLE dbo.Table1
GO
CREATE TABLE dbo.Table1(ID INT)
GO
-- Creating a trigger
CREATE TRIGGER TR_Test ON dbo.Table1 FOR INSERT,UPDATE,DELETE
AS
DECLARE @Cinfo VARBINARY(128)
SELECT @Cinfo = Context_Info()
IF @Cinfo = 0x55555
RETURN
PRINT 'Trigger Executed'
-- Actual code goes here
-- For s... | [
0.4164685308933258,
-0.035240281373262405,
0.4777231216430664,
-0.10643411427736282,
0.009890473447740078,
0.041045863181352615,
0.11037591099739075,
-0.7063092589378357,
-0.17298628389835358,
-0.15519681572914124,
0.12237118929624557,
0.5805991291999817,
-0.5835573077201843,
-0.0568938255... | |
I hope this isn't considered a duplicate since it's more pointed than similar questions (I'm curious about a specific weakness in C# to VB.net conversion utilities).
I've been looking at using a tool like this [.net code converter](http://www.developerfusion.com/tools/convert/csharp-to-vb/) to convert a class library ... | [
0.26886558532714844,
-0.003963593393564224,
0.0635087862610817,
-0.1590403914451599,
-0.23402489721775055,
-0.34460321068763733,
0.1408996731042862,
-0.3052292764186859,
-0.21815524995326996,
-0.5937886238098145,
-0.09151804447174072,
0.6134153008460999,
-0.4542321562767029,
0.312630921602... | |
Private Set(ByVal value As String)
End Set
End Property
```
The tools linked [here](https://stackoverflow.com/questions/102956/c-vbnet-conversion "here") and [here](https://stackoverflow.com/questions/88359/what-is-the-best-c-to-vbnet-converter) have similar issues - some create valid properties, but they don't r... | [
0.1393815577030182,
-0.03112005442380905,
0.3798026442527771,
0.03996311500668526,
-0.023806041106581688,
-0.3213199973106384,
-0.03937724605202675,
-0.3824686110019684,
-0.10752000659704208,
-0.3003130853176117,
-0.34057340025901794,
0.8675157427787781,
-0.4642588496208191,
0.103630498051... | |
End Set
End Property
```
We've now updated the code generator to support this scenario. If you spot any others that we're not doing very well, please do drop me a line. | [
0.6860842704772949,
0.13836437463760376,
0.6012654304504395,
0.05341487377882004,
0.3034147024154663,
-0.6410179734230042,
0.38590577244758606,
-0.1777757853269577,
0.09642248600721359,
-0.6636672616004944,
-0.1410072296857834,
0.47714486718177795,
-0.4001893997192383,
0.0319150909781456,
... | |
We're going through a massive migration project at the minute and trying to validate the code that is deployed to the live estate matches the code we have in source control.
Obviously the .net code is easy to compare because we can disassemble. I don't believe this is possible in vb6 exes because of the manner of comp... | [
0.7242454886436462,
0.1710539162158966,
0.05280398204922676,
0.23140275478363037,
-0.14694271981716156,
-0.09085767716169357,
0.1366569995880127,
-0.12232512980699539,
-0.15303611755371094,
-0.6460691094398499,
-0.07725901901721954,
0.6699209213256836,
-0.04355239123106003,
-0.125025436282... | |
and a second one that generates "regular" windows .exe file (called native) that was introduced because it was supposed to be fastar than p-code; although the compiled file size increased with this option.
If your compilation was using p-code, it is in theory possible to restore the sources.
Either way is pretty diffi... | [
0.32224443554878235,
-0.15730097889900208,
0.21323509514331818,
-0.009964452125132084,
-0.21538348495960236,
-0.137566938996315,
0.21664080023765564,
-0.09528185427188873,
-0.5677169561386108,
-0.5150554776191711,
-0.018725760281085968,
0.5588829517364502,
-0.35289502143859863,
0.236104473... | |
Given a credit card number and no additional information, what is the best way in PHP to determine whether or not it is a valid number?
Right now I need something that will work with American Express, Discover, MasterCard, and Visa, but it might be helpful if it will also work with other types.
There are three parts t... | [
0.49967658519744873,
0.11584055423736572,
0.6176292300224304,
0.4335128962993622,
0.12111569941043854,
-0.26338717341423035,
0.03350067511200905,
-0.2472064197063446,
-0.20687386393547058,
-0.3071005046367645,
0.31468066573143005,
-0.04438837990164757,
0.17605353891849518,
0.11914696544408... | |
have an associated account (you are unlikely to get this without a merchant account)
Pattern
-------
* MASTERCARD Prefix=51-55, Length=16 (Mod10 checksummed)
* VISA Prefix=4, Length=13 or 16 (Mod10)
* AMEX Prefix=34 or 37, Length=15 (Mod10)
* Diners Club/Carte Prefix=300-305, 36 or 38, Length=14 (Mod10)
* Discover Pr... | [
0.24049797654151917,
0.1739618182182312,
0.565694272518158,
0.12240403890609741,
0.2501513659954071,
-0.1961051970720291,
0.3523731529712677,
-0.12487225979566574,
-0.2316174954175949,
0.012087557464838028,
0.01772167906165123,
0.15931029617786407,
0.01787307672202587,
-0.10380544513463974... | |
give credit to the original author where possible. */
function luhn_check($number) {
// Strip any non-digits (useful for credit card numbers with spaces and hyphens)
$number=preg_replace('/\D/', '', $number);
// Set the string length and parity
$number_length=strlen($number);
$parity=$... | [
0.20288850367069244,
0.31134459376335144,
0.1934102475643158,
-0.20420905947685242,
0.1767265647649765,
0.298663854598999,
0.292481929063797,
-0.4225299656391144,
-0.09903458505868912,
-0.043714914470911026,
-0.3436872363090515,
0.3663593530654907,
-0.17701460421085358,
-0.0738079920411109... | |
% 2 == $parity) {
$digit*=2;
// If the sum is two digits, add them together (in effect)
if ($digit > 9) {
$digit-=9;
}
}
// Total up the digits
$total+=$digit;
}
// If the total mod 10 equals 0, the number is valid
return ($total % 10 == 0) ? TRUE : FALSE;
}
?>
``` | [
-0.18072590231895447,
0.10285727679729462,
0.4266107976436615,
-0.3694074749946594,
0.03315228223800659,
0.35938289761543274,
0.33754217624664307,
-0.37413081526756287,
-0.4060009717941284,
-0.14192935824394226,
-0.2939026355743408,
0.5226192474365234,
-0.3868553936481476,
-0.0417274050414... | |
I'm using Visual Studio 6.0 and Visual Basic 6.0.
I have them integrated but when I check out a Project and then try to edit a module in that project it's locked and I have to manually right-click on it and do a Check Out to unlock it.
I thought there was a way to have VSS automatically check out the file for editing... | [
0.5681861639022827,
0.05225522816181183,
0.2505212426185608,
-0.07537972182035446,
-0.11981391906738281,
-0.3560536801815033,
0.4091804623603821,
-0.12240233272314072,
-0.35544610023498535,
-0.588474452495575,
-0.049186401069164276,
0.6936913728713989,
-0.21845011413097382,
0.0108723305165... | |
I have a table with one field that can point to a foreign key in one of 3 other tables based on what the descriminator value is (Project, TimeKeep, or CostCenter. Usually this is implemented with subclasses, and I am wondering if what I have below will work. **Note the subclass name is the same as the parent class and ... | [
-0.018156271427869797,
-0.02381526120007038,
0.3529752790927887,
-0.16238801181316376,
-0.1012689545750618,
0.046694643795490265,
0.07188544422388077,
-0.17733709514141083,
0.003096570959314704,
-0.8076799511909485,
-0.16841910779476166,
0.39584076404571533,
-0.11502084881067276,
-0.036937... | |
table="admin_notes">
<id name="adminNoteId" column="admin_note_id" type="integer">
<generator class="identity" />
</id>
<discriminator column="note_type" type="string" />
<!-- make this property an enumerated type. It is the discriminator -->
<property name="adminNoteType" column="note_type" type="stri... | [
-0.34444788098335266,
0.27919405698776245,
0.7119013071060181,
-0.1268894374370575,
0.009728796780109406,
-0.010918148793280125,
-0.2432142198085785,
-0.42279165983200073,
-0.03074047900736332,
-0.7154276967048645,
-0.38440531492233276,
0.201988086104393,
0.12983295321464539,
0.21894472837... | |
</class>
</hibernate-mapping>
```
Discriminators are used for storing class hierarchies in a single table. What you have there is a single class with multiple meanings.
<http://docs.jboss.org/hibernate/core/3.5/reference/en-US/html/mapping.html#mapping-declaration-discriminator>
> The element is
> required for po... | [
-0.04914574325084686,
-0.08755137026309967,
0.27115964889526367,
0.18166802823543549,
-0.17266222834587097,
-0.15604227781295776,
0.1605585366487503,
-0.18103228509426117,
-0.03054977022111416,
-0.5085047483444214,
-0.41394123435020447,
0.3685721158981323,
-0.5004621148109436,
0.2788235545... | |
subclass from another - it's not actually part of the java object model.
You'll need to define multiple subclasses of AdminNote, one for each discriminator value. | [
-0.004564415663480759,
-0.4016205072402954,
0.24214418232440948,
0.16468754410743713,
-0.3221217691898346,
0.02927822433412075,
0.18286417424678802,
-0.00786369014531374,
-0.028338361531496048,
-0.6069544553756714,
-0.13862070441246033,
0.13369150459766388,
-0.497693806886673,
0.2326493114... | |
I've got a lightbox textbox that is displayed using an AJAX call from an ASP.NET UpdatePanel. When the lightbox is displayed, I use the `focus()` method of a textbox that is in the lightbox to bring focus to the textbox right away.
When in Firefox, the text box gains focus with no problem. In IE, the text box does not... | [
0.24693503975868225,
-0.07707865536212921,
0.8481940627098083,
-0.4712370038032532,
0.08447346091270447,
-0.18342089653015137,
0.13126780092716217,
-0.17035984992980957,
0.10796347260475159,
-0.9805072546005249,
-0.3637521266937256,
0.8654502630233765,
-0.4139987826347351,
-0.1675045639276... | |
object already should exist if it hits that line, it just won't allow itself to gain focus right away for some reason.
Obviously setting a timer to "fix" this problem isn't the best or most elegant way to solve this. I'd like to be able to do something like the following:
```
var txtBx = document.getElementById('txt... | [
0.42291465401649475,
-0.11189113557338715,
0.7652724385261536,
0.0033974337857216597,
0.12715137004852295,
-0.18154673278331757,
0.4532000720500946,
-0.02598639391362667,
-0.1809588521718979,
-0.5997815132141113,
-0.4009169936180115,
0.738925039768219,
-0.29236093163490295,
0.1825439780950... | |
am I looking at this the wrong way?
**Edit**
To clarify, I'm not calling the code on page load. The script **is** at the top of the page, however it is inside of a function that is called when ASP.NET's Asynchronous postback is complete, not when the page loads.
Because this is displayed after an Ajax update, the ... | [
0.07012342661619186,
-0.23043188452720642,
0.5122498869895935,
0.09840015321969986,
-0.21110960841178894,
-0.2931806743144989,
0.16361404955387115,
-0.30922678112983704,
-0.2212020754814148,
-0.6068387627601624,
-0.35186848044395447,
0.5726536512374878,
-0.1511615663766861,
0.1445729732513... | |
for polymorphic persistence
> using the table-per-class-hierarchy
> mapping strategy and declares a
> discriminator column of the table. The
> discriminator column contains marker
> values that tell the persistence layer
> what subclass to instantiate for a
> particular row.
I don't think you'll be able to use ... | [
-0.13120539486408234,
-0.12296009808778763,
0.28567934036254883,
0.12125779688358307,
-0.04243621230125427,
-0.04242425039410591,
0.2456815242767334,
-0.07491247355937958,
-0.09525277465581894,
-0.762416422367096,
-0.029156573116779327,
0.3651348948478699,
-0.7141095399856567,
0.2243915051... | |
I have a collection of ClickOnce packages in a publish folder on a network drive and need to move them all to another server (our DR machine).
After copy/pasting the whole directory and running the setups on the new machine I get an error message stating that it cannot find the old path:
> Activation of
> ...MyClic... | [
0.10492564737796783,
0.17966367304325104,
0.6651374101638794,
-0.1824268102645874,
0.20314522087574005,
-0.1759149432182312,
0.41130831837654114,
-0.06937914341688156,
-0.3436777591705322,
-0.8915717601776123,
-0.1313190460205078,
0.4150341749191284,
-0.4805609881877899,
0.4006007015705108... | |
another error:
> Manifest XML signature is not valid.
>
>
> + The digital signature of the object did not verify.
I've tried using [MageUI.exe](http://msdn.microsoft.com/en-us/library/xhctdw55.aspx), to modify the deployment URL, but it asks for a certificate, which I don't have.
What am I doing wrong and how do I... | [
0.22884802520275116,
-0.00395871652290225,
0.3422417640686035,
-0.0801568329334259,
0.004725664388388395,
-0.25323694944381714,
0.3649034798145294,
-0.2112928181886673,
-0.250556617975235,
-0.5837458968162537,
0.05168119817972183,
0.327631413936615,
-0.3031667172908783,
0.09006199240684509... | |
only the one file: the application manifest file (`myAppName.application`). The only things that changed in the file were the ***deployment provider*** and the ***signature*** (which is what I changed in MageUI).
Once I realised this was how to do it, I used the command line version of MageUI called `Mage.exe`, which ... | [
0.32196247577667236,
0.13175617158412933,
0.6801291108131409,
0.042922746390104294,
-0.5639857649803162,
0.014203265309333801,
0.2902989387512207,
-0.15881773829460144,
-0.2390432208776474,
-0.8569797277450562,
-0.06787838041782379,
0.7064285278320312,
-0.16005907952785492,
-0.196347132325... | |
REM Sign the manifest with our key
>
> mage -Sign %1.application -CertFile C:\AppKey.pfx -Password myPw
I can now use this to run against all of my published applications in a quick and easy way. I hope this helps. | [
0.40826481580734253,
0.16735167801380157,
0.8221442699432373,
0.040929313749074936,
-0.1675049513578415,
-0.31620368361473083,
0.547562301158905,
-0.2687646448612213,
0.061016954481601715,
-0.7994941473007202,
0.05107644945383072,
0.9056133031845093,
-0.07170287519693375,
-0.09410312026739... | |
What are you favorite LogParser 2.2 Scripts to run against IIS logs and Event logs?
I am putting a list of scripts together to run against our production environment to proactively look for issues and to help when isolating performance problems.
Do you have a certain list of LogParser 2.2 scripts that you use?
I like... | [
0.3211842179298401,
0.0014983711298555136,
0.1354132890701294,
0.3697413206100464,
-0.05751155689358711,
-0.3259638547897339,
0.17756763100624084,
-0.12953898310661316,
-0.19134508073329926,
-0.7512572407722473,
0.20967182517051697,
0.6579214930534363,
-0.18574956059455872,
-0.389929413795... | |
with caching ETC. | [
0.12137650698423386,
0.20536065101623535,
-0.25878047943115234,
-0.41258081793785095,
-0.0900375247001648,
-0.06701135635375977,
0.19985783100128174,
-0.18833062052726746,
-0.4974307417869568,
-0.273769736289978,
-0.2992585599422455,
0.35591772198677063,
-0.45664194226264954,
-0.3537708818... | |
A python script need to spawn multiple sub-processes via fork(). All of those child processes should run simultaneously and the parent process should be waiting for all of them to finish. Having an ability to set some timeout on a "slow" child would be nice.
The parent process goes on processing the rest of the script ... | [
0.07289928197860718,
-0.032230403274297714,
-0.14644530415534973,
-0.07227759063243866,
0.12224293500185013,
0.14155618846416473,
0.18244177103042603,
0.10815504938364029,
-0.08692610263824463,
-0.5101342797279358,
-0.06459672749042511,
0.2596415579319,
-0.28291282057762146,
0.013105740770... | |
pass # really should exec the job
for child in children:
os.waitpid(child, 0)
```
Timing out a slow child is a little more work; you can use `wait` instead of `waitpid`, and cull the returned values from the list of children, instead of waiting on each one in turn (as here). If you set up an `alarm` with a `SIGA... | [
0.29999545216560364,
-0.51183021068573,
0.3589703142642975,
0.10551919043064117,
0.15599538385868073,
-0.009955537505447865,
0.11928228288888931,
-0.006111654918640852,
-0.03093225508928299,
-0.3744119703769684,
-0.039879363030195236,
0.36976462602615356,
-0.09386894106864929,
-0.160568997... | |
I need to add functionality to my J2EE-based wep application:
1) Take some page, probably with form controls, convert it to some printer friendly format.
2) Print this rendered format a) without showing it and b) without a print dialog.
I'm not too worried about 1, but have no idea if 2a and 2b are even possible.
Tha... | [
0.7912113666534424,
0.13498465716838837,
-0.16551406681537628,
0.3740651607513428,
-0.23460865020751953,
-0.34119874238967896,
0.20095303654670715,
-0.11592447012662888,
-0.4055219292640686,
-0.5982807874679565,
-0.06416797637939453,
0.02554433047771454,
-0.06980755180120468,
-0.0235737804... | |
I've got this code:
```
rs1 = getResults(sSQL1)
rs2 = getResults(sSQL2)
```
rs1 and rs2 and 2D arrays. The first index represents the number of columns (static) and the second index represents the number of rows (dynamic).
I need to join the two arrays and store them in rs3. I don't know what type rs1 and rs2 are t... | [
0.22489967942237854,
0.21731673181056976,
0.6017744541168213,
-0.31521597504615784,
-0.11861565709114075,
0.1479872465133667,
0.16617879271507263,
-0.46237120032310486,
-0.5022692084312439,
-0.691604495048523,
-0.0929676964879036,
0.37448883056640625,
-0.4941326081752777,
0.045518394559621... | |
aRS_KR = rowsQuery(sSQL & ", 'KR'")
uboundRU1 = UBound(aRS_RU, 1)
uboundRU2 = UBound(aRS_RU, 2)
uboundKR2 = Ubound(aRS_KR, 2)
' Redim original array
ReDim Preserve aRS_RU(uboundRU1, uboundRU2 + uboundKR2 + 1 )
uboundRU2 = UBound(aRS_RU, 2)
' Add the values from... | [
-0.5334284901618958,
-0.3210707902908325,
0.7661641836166382,
-0.26384350657463074,
-0.16399967670440674,
0.4448343813419342,
0.3400723338127136,
-0.3202047646045685,
0.007243928499519825,
-0.5173742175102234,
-0.4214473068714142,
0.16153737902641296,
-0.5165016055107117,
-0.08162346482276... | |
For m = LBound(aRS_KR, 1) To UBound(aRS_KR, 1) 'Loop for 1st dimension
For n = LBound(aRS_KR, 2) To UBound(aRS_KR, 2) 'Loop for 2nd dimension
aRS_RU(m, uboundRU2 + n) = aRS_KR(m,n)
Next
Next | [
-0.6428813934326172,
-0.4537190794944763,
0.6434012651443481,
-0.5286633372306824,
0.01216347049921751,
0.5062639117240906,
0.18427862226963043,
-0.6133227348327637,
-0.2731287479400635,
-0.5524929165840149,
-0.28845351934432983,
0.30340397357940674,
-0.4320419430732727,
-0.119838736951351... | |
``` | [
0.48812946677207947,
1.0043604373931885,
0.004160980693995953,
0.045013248920440674,
0.3414025902748108,
-0.11603566259145737,
0.36461141705513,
0.15902367234230042,
-0.02553277462720871,
-0.4443243145942688,
-0.26032355427742004,
0.32837894558906555,
-0.036148764193058014,
0.0490358285605... | |
I've discovered that cElementTree is about 30 times faster than `xml.dom.minidom` and I'm rewriting my XML encoding/decoding code. However, I need to output XML that contains CDATA sections and there doesn't seem to be a way to do that with ElementTree.
Can it be done?
After a bit of work, I found the answer myself. L... | [
0.3414127826690674,
0.11476314067840576,
0.2965855300426483,
-0.044653717428445816,
-0.05867404118180275,
-0.14713890850543976,
0.2601062059402466,
-0.30994004011154175,
-0.24698500335216522,
-0.8929685354232788,
-0.21359097957611084,
0.5472258925437927,
-0.23956669867038727,
-0.1068756505... | |
element = Element(Comment)
element.text = text
return element
```
Then in the `_write` function of ElementTree that actually outputs the XML, there's a special case handling for comments:
```
if tag is Comment:
file.write("<!-- %s -->" % _escape_cdata(node.text, encoding))
```
In order to support CDATA... | [
-0.10806229710578918,
-0.17073269188404083,
0.1966228038072586,
-0.11267668008804321,
-0.33979561924934387,
-0.01676098071038723,
-0.05810462683439255,
-0.44511914253234863,
-0.015765588730573654,
-0.45864343643188477,
-0.08605862408876419,
0.3651838004589081,
-0.5318141579627991,
-0.10121... | |
create XMLs with CDATA sections programmatically, which is what I needed to do.
The implementation seems to work with both ElementTree and cElementTree.
```
import elementtree.ElementTree as etree
#~ import cElementTree as etree
def CDATA(text=None):
element = etree.Element(CDATA)
element.text = text
ret... | [
-0.011395466513931751,
-0.20704178512096405,
0.17190556228160858,
-0.09205257892608643,
-0.3098203241825104,
-0.11767302453517914,
0.03372074291110039,
-0.4707055985927582,
0.028679436072707176,
-0.5708189606666565,
-0.41101664304733276,
0.352929025888443,
-0.536568284034729,
-0.1234287545... | |
else:
etree.ElementTree._write(self, file, node, encoding, namespaces)
if __name__ == "__main__":
import sys
text = """
<?xml version='1.0' encoding='utf-8'?>
<text>
This is just some sample text.
</text>
"""
e = etree.Element("data")
cdata = CDATA(text)
e.append(c... | [
0.06759214401245117,
0.047507937997579575,
0.04513373598456383,
-0.08198098093271255,
0.017073126509785652,
-0.044477589428424835,
0.21813079714775085,
-0.3859405219554901,
0.00339036644436419,
-0.6059266924858093,
-0.44330811500549316,
0.46280384063720703,
-0.5949191451072693,
-0.44680404... | |
I am working on a project that is built on an extended version of the default PDO and PDOStatement classes and as such it uses PDO style named parameters instead of the "?" placeholder for variables.
However, the client is now requesting that we look into using a different driver because their version OS X Web Server... | [
0.3818645775318146,
0.10919263958930969,
0.08703172206878662,
0.15908879041671753,
-0.028698094189167023,
-0.17635148763656616,
-0.01361906249076128,
0.03451699763536453,
-0.17234347760677338,
-0.7053639888763428,
0.3059043884277344,
0.6220017075538635,
-0.3023703396320343,
0.2816449701786... | |
ADODB both support prepared statements, but the API is not great. Most frameworks provide an abstraction to one of those.
I'm using Zend\_Db from the Zend Framework and I highly recommend it. It has a select class for composing queries (which turn into prepared statements when queried against the database adapter), a ... | [
0.0471997894346714,
0.10481780022382736,
0.08885843306779861,
-0.18315590918064117,
-0.39877545833587646,
-0.18503879010677338,
0.15223301947116852,
-0.3788946568965912,
0.2875763177871704,
-0.6355468034744263,
0.2807791233062744,
0.595836341381073,
-0.3589560389518738,
-0.0329033285379409... | |
Is there any IDE for coding mono on windows platform?
MonoDevelop has now released a installer for Windows. You no longer need to build it from source. It is available from [the MonoDevelop website](http://monodevelop.com/Download/Windows_Preview)
However on windows it runs on the .NET Framework, not Mono - it uses th... | [
0.8225455284118652,
0.056516751646995544,
-0.30443117022514343,
0.011807453818619251,
-0.21528944373130798,
-0.2735999524593353,
0.5231318473815918,
-0.1664714217185974,
-0.14575068652629852,
-0.1293964982032776,
-0.094541996717453,
0.44099366664886475,
-0.38622257113456726,
0.241194814443... | |
I am trying to install [Subtext](http://subtextproject.com/) in a medium trust level environment (host: [Crystaltech](http://www.crystaltech.com/)) and am getting the following error (see below). I was able to do the administration setup but when it tries to go to the blog for actual use, boom.
I know I could "upgrade... | [
0.23086053133010864,
0.4095969498157501,
0.3585098087787628,
-0.13641585409641266,
0.026932233944535255,
-0.5703589916229248,
0.8092748522758484,
0.23041750490665436,
-0.015113391913473606,
-0.6132383942604065,
-0.11830680817365646,
0.6242038607597351,
-0.3053489327430725,
0.32777789235115... | |
operation not allowed by the security
> policy. To grant this application the
> required permission please contact
> your system administrator or change
> the application's trust level in the
> configuration file.
>
>
> Exception Details:
> System.Security.SecurityException:
> Request for the permission of ty... | [
-0.033878471702337265,
0.03124769777059555,
0.5434732437133789,
0.01971086487174034,
0.3490149676799774,
-0.4973701536655426,
0.6335316896438599,
-0.1953035295009613,
-0.13683438301086426,
-0.4595470428466797,
-0.5810225605964661,
0.4560011923313141,
-0.48197048902511597,
0.172291815280914... | |
trace below.
>
>
> Stack Trace:
>
>
> [SecurityException: Request for the
> permission of type
> 'System.Security.Permissions.SecurityPermission,
> mscorlib, Version=2.0.0.0,
> Culture=neutral,
> PublicKeyToken=b77a5c561934e089'
> failed.]
>
> System.Web.Security.UrlAuthorizationModule.CheckUrlAccessFor... | [
-0.05028156936168671,
-0.06198028847575188,
0.5704883337020874,
0.07988055795431137,
0.2798749804496765,
0.05024329945445061,
0.4823048412799835,
-0.8178062438964844,
-0.10689201205968857,
-0.8402352333068848,
-0.20598472654819489,
0.36533665657043457,
-0.14693193137645721,
0.0874093398451... | |
Boolean& completedSynchronously)
> +161
I don't think there is another way to get around the error other than moving to full trust or removing the call to CheckUrlAccessForPrincipal() and recompiling.
But by the looks of things, this particular issue has already been corrected in the subtext SVN (revision 3290). They... | [
-0.04411982744932175,
0.10064998269081116,
0.7061735987663269,
-0.1415228247642517,
-0.07364777475595474,
-0.15676771104335785,
0.7338694930076599,
-0.06397069245576859,
-0.10877088457345963,
-0.3689199686050415,
-0.09644389897584915,
0.6386169791221619,
-0.2217000424861908,
0.027843246236... | |
I'm trying to host a PHP web site that was given to me. I see this warning:
> **Warning:** Unknown: Your script possibly
> relies on a session side-effect which
> existed until PHP 4.2.3. Please be
> advised that the session extension
> does not consider global variables as
> a source of data, unless
> register\... | [
0.20725010335445404,
0.24669456481933594,
0.279828280210495,
-0.07519953697919846,
-0.017326245084404945,
-0.28836363554000854,
0.669170618057251,
0.30716171860694885,
-0.43699780106544495,
-0.6577431559562683,
0.05375213548541069,
0.4644598960876465,
-0.40975305438041687,
0.26078578829765... | |
code?
basically you have a variable with the same name as your session. ex:
```
$_SESSION['var1'] = null;
$var1 = 'something';
```
which will reproduce this error. you can stop PHP from trying to find existing variables and warning you about them by adding these lines to your script:
```
ini_set('session.bug_compat... | [
0.5754926800727844,
0.10782703012228012,
0.013117658905684948,
0.11262208223342896,
-0.0729622021317482,
-0.011108837090432644,
0.7434491515159607,
-0.06313290446996689,
-0.16337791085243225,
-0.33592653274536133,
-0.03706178069114685,
0.5519429445266724,
-0.6467185020446777,
0.10424823313... | |
I have a requirement in my application that I think can be met by using thread local storage, but I'm wondering if it's one of those things that's best to avoid.
I have read a few articles on the subject:
<http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=58>
<http://msdn.microsoft.com/en-us/library/... | [
0.5264043807983398,
-0.1498568058013916,
0.3823966383934021,
-0.14910057187080383,
0.14435996115207672,
0.03269081562757492,
0.3188798129558563,
0.14228548109531403,
-0.4818921983242035,
-0.7842240333557129,
0.11004448682069778,
0.3700190484523773,
-0.1845097541809082,
0.2011595368385315,
... | |
copy-paste from my trace logs directly into Sql Management Studio.
Way up in global.asax in my web apps I send email to admins with as much information as I can when I get an unhandled exception. I want to put that sql command dump text into this email when I get a SqlException, which will save me the time of digging ... | [
0.7108531594276428,
0.4773618280887604,
0.3079872727394104,
-0.011325441300868988,
-0.012309996411204338,
-0.07964686304330826,
0.31452497839927673,
0.34240958094596863,
-0.13329946994781494,
-0.9520664811134338,
0.26725855469703674,
0.5273053050041199,
-0.31284427642822266,
0.006616475991... | |
it out when I get an exception. I was thinking maybe TLS would be a good place to put something like "lastsqlcommand", but that's not looking like a viable solution.
A gotcha for asp.net applications: the processing of a single request might switch threads, namely if there are parallel requests in the same session. Bec... | [
0.15138351917266846,
-0.2281620055437088,
0.1738090068101883,
0.019052064046263695,
-0.18977195024490356,
-0.2720531225204468,
0.3438492715358734,
0.02684348076581955,
-0.33551257848739624,
-0.5807759761810303,
-0.04351752996444702,
0.3032751977443695,
-0.20029672980308533,
0.2260961979627... | |
I log the exception details. This gives me the functionality I was hoping to use thread local storage for. | [
0.2570357918739319,
0.09947986155748367,
0.20569109916687012,
0.08623633533716202,
0.18289519846439362,
-0.21446093916893005,
0.3874325752258301,
0.207209974527359,
-0.45883673429489136,
-0.6390541791915894,
0.25493213534355164,
0.3325957953929901,
-0.13002562522888184,
0.26848044991493225... | |
A similar question has been asked: [MSDN subscriptions on the cheap?](https://stackoverflow.com/questions/42466/msdn-subscriptions-on-the-cheap), but I am not interested in the solutions provided:
* I am not developing a product for sale, I am starting up a consulting company, so Empower is not an option.
* I have vis... | [
0.37246227264404297,
-0.1939803957939148,
-0.15374889969825745,
0.47951751947402954,
-0.18169793486595154,
-0.030173197388648987,
0.033971622586250305,
0.04483797028660774,
-0.5448197722434998,
-0.5759826302528381,
0.1368756741285324,
0.7061569094657898,
-0.01670445129275322,
-0.0707796812... | |
Microsoft, I apologize that you have to LOG OUT of your LiveID to see this page if that LiveID is not already attached to a Registered Partner.)
You don't have to be certified to get access to this, just registered (there are three levels of partnership: 1. Registered, 2. Certified, 3. Gold Certified). You do have to ... | [
0.7850039005279541,
0.07241898775100708,
0.1934633105993271,
0.4907803535461426,
0.24560491740703583,
-0.5329662561416626,
0.18855994939804077,
0.20805573463439941,
-0.09612768143415451,
-0.7543232440948486,
0.0453108549118042,
0.21543864905834198,
0.21117869019508362,
0.04625627398490906,... | |
Why is it that advertised disk space is almost always higher than the disk space reported by the UI? For example, I have an "80 gb" hard drive, but the iTunes UI indicates only 74. I usually see this as well with hard disks and the amount reported with the drive letter.
There are 3 reasons why the amount of space you c... | [
0.3300902247428894,
0.46802449226379395,
0.36650973558425903,
0.1737060546875,
0.14717011153697968,
0.17128030955791473,
0.04353318735957146,
0.14724968373775482,
-0.37023022770881653,
-0.5425772666931152,
0.1075853779911995,
0.6216043829917908,
0.015126945450901985,
0.06708984822034836,
... | |
vs 1024 \* 1024 \* 1024).
2. You lose some space for file tables when formatting.
3. Disk space is divided into chunks larger than 1 byte (typically 4K). Using typical Windows defaults, a 1 byte file takes up 4K of space on disk.
Of these, the first two can influence the amount of space reported by the drive (though I... | [
0.01882193051278591,
-0.08039914071559906,
0.5218974947929382,
0.07260431349277496,
-0.2823595702648163,
-0.06087147071957588,
0.27544671297073364,
-0.37282752990722656,
-0.4642096161842346,
-0.6813872456550598,
-0.35584166646003723,
0.34499314427375793,
-0.1125350221991539,
-0.04368829727... | |
Is it ever appropriate to abandon the "getMyValue()" and "setMyValue()" pattern of getters and setters if alternative function names make the API more obvious?
For example, imagine I have this class in C++:
```
public class SomeClass {
private:
bool mIsVisible;
public:
void draw();
void erase();
}
```
... | [
0.12589094042778015,
-0.14883741736412048,
0.1833028495311737,
-0.28682446479797363,
0.07271388173103333,
-0.2408255785703659,
0.30148860812187195,
-0.03798767179250717,
-0.25596117973327637,
-0.5876699090003967,
-0.3271493911743164,
0.6357032656669617,
-0.5394707322120667,
-0.018298573791... | |
show() {
if (!mIsVisible) {
mIsVisible = true;
draw();
}
}
void hide() {
if (mIsVisible) {
mIsVisible = false;
erase();
}
}
```
In brief, is it better to have a single "setVisible(bool)" method, or a pair of "show()" and "hide()" methods? Is there a convention, or is ... | [
0.7680743336677551,
-0.1171160563826561,
0.04929221421480179,
-0.10408739745616913,
-0.17022019624710083,
-0.5422740578651428,
0.2746710777282715,
-0.4446077346801758,
-0.12646113336086273,
-0.300197035074234,
-0.16378988325595856,
0.7211334109306335,
-0.4460892677307129,
0.016522128134965... | |
the Pragmatic Programmers web site and I think you'll see that the second example is the way to go.
Basically, you shouldn't be spreading the logic out through your code which is implied with your first example, namely:
1. get current visibility value,
2. make decision based on value,
3. update object. | [
0.23562200367450714,
-0.254517138004303,
0.015334393829107285,
0.27273622155189514,
-0.46556276082992554,
-0.3719487190246582,
0.2512342631816864,
-0.2667725682258606,
-0.12352393567562103,
-0.47644856572151184,
0.012002780102193356,
0.7972984910011292,
-0.3527853488922119,
0.0155188469216... | |
I use a 3rd party tool that outputs a file in Unicode format. However, I prefer it to be in ASCII. The tool does not have settings to change the file format.
What is the best way to convert the entire file format using Python?
You can convert the file easily enough just using the `unicode` function, but you'll run int... | [
0.15859907865524292,
0.2146153301000595,
0.2504866421222687,
0.06250564754009247,
-0.10806769877672195,
-0.018688486889004707,
0.07312464714050293,
-0.2001073658466339,
-0.19811874628067017,
-0.6741078495979309,
-0.32457834482192993,
0.12894652783870697,
-0.04160591587424278,
-0.2728799581... | |
to
```
Klft skrms infr p fdral lectoral groe
```
which is pretty wrong. However, using the `unicodedata` module, the result can be much closer to the original text:
```
>>> import unicodedata
>>> unicodedata.normalize('NFKD', title).encode('ascii','ignore')
'Kluft skrams infor pa federal electoral groe'
``` | [
-0.2565545439720154,
0.03837672621011734,
0.5180255770683289,
0.2020268738269806,
-0.23068220913410187,
0.053433407098054886,
0.07085931301116943,
-0.2800005078315735,
-0.4220196008682251,
-0.48809850215911865,
-0.482183575630188,
0.000874012359417975,
-0.28119030594825745,
-0.523149192333... | |
The [AssemblyVersion](http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx) and [AssemblyFileVersion](http://msdn.microsoft.com/en-us/library/system.reflection.assemblyfileversionattribute.aspx) attributes are the built-in way of handling version numbers for .NET assemblies. While the... | [
0.38342705368995667,
0.09517862647771835,
0.04668653383851051,
-0.08187190443277359,
-0.2549670934677124,
-0.001214459422044456,
0.14204245805740356,
-0.16171783208847046,
-0.35767534375190735,
-0.4485160708427429,
-0.09911646693944931,
0.3738483488559723,
-0.01613001897931099,
-0.14869426... | |
version for your working copy of a project? Do you just use the automatic generation provided by the framework? Or something else? What's the best way to manage assembly/file versioning?
On my current project, we use the Subversion revision number as the least significant (build) part of the version number, and we use ... | [
0.4104212522506714,
0.06819350272417068,
0.2589513063430786,
-0.31020915508270264,
-0.2115011066198349,
0.06690563261508942,
0.1960456371307373,
0.08102893829345703,
-0.3120284676551819,
-0.5333536863327026,
-0.0052359262481331825,
0.6121368408203125,
-0.22502988576889038,
0.23778058588504... | |
out with the build number being simply incremented, but that required that the version file be checked in for every build, and caused conflicts when merging. When that proved unworkable, we started using CruiseControl.NET to generate the build number, but that made it difficult to reproduce specific builds manually. Ev... | [
0.19448570907115936,
-0.01992208883166313,
0.6686990857124329,
-0.06430867314338684,
0.2175273448228836,
-0.002851050114259124,
0.18995408713817596,
-0.08311168104410172,
-0.6202855110168457,
-0.2708756625652313,
0.14941862225532532,
0.3485596179962158,
-0.19098055362701416,
0.312986582517... | |
So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup.
I do all of my development on my laptop so i don't always have an internet connection (hence the local SVN), so i was wondering if the... | [
0.46411168575286865,
-0.056814901530742645,
0.3246590495109558,
0.046833984553813934,
-0.19975295662879944,
0.04990079998970032,
0.17563554644584656,
0.23240885138511658,
-0.47291669249534607,
-0.6505861878395081,
0.022761236876249313,
0.7058536410331726,
-0.07556993514299393,
0.2368030399... | |
can do that. Give a look at <http://blog.red-bean.com/sussman/?p=92> or <http://subversion.tigris.org/faq.html#multi-merge> for a good introduction on that topic | [
0.518369734287262,
-0.2009710669517517,
-0.021767107769846916,
0.2239619791507721,
-0.21308790147304535,
-0.1972000002861023,
0.18898451328277588,
0.12396880984306335,
-0.38697248697280884,
-0.4908132553100586,
0.20613756775856018,
0.29683050513267517,
-0.31952717900276184,
-0.007406998425... | |
HI, I am new to the scrum methodology and looking for some help to get comfortable with the environment and wondering if there needs to be a bucket to track Developers and QA hours spent on deployments and bug fixes and retests. Seems like it could have major impact on the graph.
My team is supporting a number of legac... | [
0.3846539556980133,
0.04803181812167168,
-0.08082745224237442,
0.21858848631381989,
-0.09883838891983032,
0.0737358033657074,
0.29049980640411377,
0.24146810173988342,
-0.17010854184627533,
-0.32983243465423584,
0.1360069215297699,
0.6366934776306152,
-0.03143857792019844,
-0.3797416388988... | |
not a blocker, then add it to the backlog.
* If the bug is a blocker then add a task (to the current sprint) to capture the work required to fix it, and start working on it. This requires that something else be moved (from the current sprint) to the backlog to account for the new hours because your total hours availabl... | [
0.38253453373908997,
-0.23366981744766235,
0.0031416653655469418,
0.132187157869339,
0.1369626522064209,
0.21316371858119965,
0.20892798900604248,
-0.05308360233902931,
-0.48939740657806396,
-0.6433301568031311,
-0.17809677124023438,
0.2361615002155304,
-0.4648573100566864,
-0.298307061195... | |
planned items to the backlog we know very early what we're not delivering this sprint that we had planned on.
This has proven to be very useful for our team in dealing with legacy apps where none of us are as familiar or confident with the systems as we'd like to be. | [
0.41535499691963196,
-0.29489776492118835,
0.051437169313430786,
0.5155788660049438,
0.4016997814178467,
0.03881942108273506,
0.024538034573197365,
0.20386187732219696,
-0.12227335572242737,
-0.46487030386924744,
0.1596255898475647,
0.4432302713394165,
0.12679603695869446,
-0.3742918372154... | |
I'm trying to grab a div's ID in the code behind (C#) and set some css on it. Can I grab it from the DOM or do I have to use some kind of control?
```
<div id="formSpinner">
<img src="images/spinner.gif" />
<p>Saving...</p>
</div>
```
Add the `runat="server"` attribute to it so you have:
```
<div id="formSpi... | [
0.24703162908554077,
-0.18701544404029846,
0.27888405323028564,
-0.046570926904678345,
-0.10021481662988663,
0.021238941699266434,
0.07267682999372482,
-0.12100636214017868,
-0.17139630019664764,
-0.6398102641105652,
-0.27923092246055603,
0.44221407175064087,
-0.33980512619018555,
0.037685... | |
also do:
```
<asp:Panel id="formSpinner" runat="server">
<img src="images/spinner.gif">
<p>Saving...</p>
</asp:Panel>
```
Which then enables you to write:
```
formSpinner.CssClass = "classOfYourChoice";
```
This gives you more defined access to the property and there are others that may, or may not, be of... | [
0.11793568730354309,
-0.0863473191857338,
0.3284352719783783,
0.12228993326425552,
-0.0005610907101072371,
-0.28640344738960266,
0.014686323702335358,
-0.08834987878799438,
-0.380652517080307,
-0.7357153296470642,
-0.3697943091392517,
0.33645036816596985,
0.07789159566164017,
0.15633890032... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.