text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
but have different advantages.
Flash will definitely render faster, even on slow machines, and is much richer graphically.
JavaScript is more accessible and works on a greater number of devices. Use a good JS framework though. | [
0.21036550402641296,
0.06773034483194351,
0.0930546373128891,
0.39435243606567383,
-0.36923936009407043,
-0.303152471780777,
0.10032135248184204,
0.23141434788703918,
-0.10241369158029556,
-1.0467000007629395,
-0.08783601969480515,
0.6970358490943909,
-0.049806173890829086,
-0.250029772520... | |
I am totally new to WPF and looking for good quickstart documentation to start with. I will buy the book WPF Unleashed from Adam Nathan, but thats more a reference than a quickstart i think.
I just want you to tell me your favorite links and books and maybe demo applications concerning wpf development.
Focus of an... | [
0.8543040752410889,
-0.005845140665769577,
-0.04642249643802643,
0.3600403666496277,
-0.3023497462272644,
-0.5287476778030396,
0.37915027141571045,
-0.01844971626996994,
-0.032472506165504456,
-0.5764362215995789,
-0.014157322235405445,
0.4282418191432953,
0.054279062896966934,
-0.13375602... | |
suggest especial that link or that book.
**Books:**
* [WPF Unleashed by Adam Nathan](https://rads.stackoverflow.com/amzn/click/com/0672328917)
* Pro WPF: Windows Presentation Foundation in .NET 3.0
* [Programming WPF by Chris Sells and Ian Griffiths](https://rads.stackoverflow.com/amzn/click/com/0596510373)
**Blogs... | [
0.2576494812965393,
-0.023394929245114326,
0.2088240534067154,
0.31663545966148376,
-0.14145156741142273,
0.11123200505971909,
0.023171747103333473,
-0.3196951448917389,
-0.26926374435424805,
-0.45576927065849304,
-0.20938080549240112,
0.3727948069572449,
0.45301008224487305,
-0.0299601573... | |
terms of Blend 2.5, but it is instrumental in learning how to use WPF and effectively using Blend. | [
0.4596671462059021,
-0.4159698188304901,
0.5824347734451294,
-0.13778115808963776,
-0.14570575952529907,
-0.6162917017936707,
0.1279279887676239,
-0.654710590839386,
0.31438320875167847,
-0.5670717358589172,
-0.00253207515925169,
0.4314540922641754,
-0.14249031245708466,
-0.330054283142089... | |
I cureently have a set up like below
```
Public ClassA
property _classB as ClassB
End Class
Public ClassB
property _someProperty as someProperty
End Class
```
what I want to do is to databind object A to a gridview with one of the columns being databound to ClassB.\_someProperty. When I try to databind it as ... | [
0.08472409099340439,
0.15139512717723846,
0.28194740414619446,
-0.0030088939238339663,
0.011451766826212406,
-0.1890496015548706,
0.32050955295562744,
-0.3944219648838043,
0.18287278711795807,
-0.6742086410522461,
0.10306388884782791,
0.7443604469299316,
-0.4607599377632141,
0.355023771524... | |
below)
Set the datafield as property classB and then:
```
<asp:TemplateField HeaderText="_someProperty">
<ItemTemplate>
<%#Eval("classB._someProperty")%>
</ItemTemplate>
</asp:TemplateField>
``` | [
-0.09068871289491653,
0.17410404980182648,
0.41441085934638977,
-0.2693689465522766,
0.014882884919643402,
0.11033949255943298,
-0.0025708454195410013,
-0.7032209038734436,
-0.1034470945596695,
-0.3851983845233917,
-0.5703302025794983,
0.5150067806243896,
-0.14323563873767853,
0.2240487486... | |
I want to record user states and then be able to report historically based on the record of changes we've kept. I'm trying to do this in SQL (using PostgreSQL) and I have a proposed structure for recording user changes like the following.
```
CREATE TABLE users (
userid SERIAL NOT NULL PRIMARY KEY,
name VARCHAR(4... | [
0.08153677731752396,
0.09655015915632248,
0.4621245563030243,
-0.1726011037826538,
0.29412803053855896,
0.2436193972826004,
-0.10230302810668945,
-0.16184645891189575,
-0.40007272362709045,
-0.8752596974372864,
-0.04995488375425339,
0.35952112078666687,
-0.2867656946182251,
0.2389231026172... | |
an active user and 's' represents a suspended user,
```
INSERT INTO status_log (userid, status, logcreated) VALUES (1, 's', '2008-01-01');
INSERT INTO status_log (userid, status, logcreated) VALUES (1, 'a', '2008-02-01');
```
So this user was suspended on 1st Jan and active again on 1st of February.
If I wanted t... | [
-0.2841050922870636,
-0.1304224133491516,
0.6424803733825684,
-0.08416146039962769,
-0.21922095119953156,
-0.10547266155481339,
0.29760217666625977,
0.12428412586450577,
-0.6269488334655762,
-0.312968909740448,
-0.24056607484817505,
0.5339966416358948,
-0.684239387512207,
0.072014905512332... | |
data in either this structure or in your proposed modified structure so that I can simply have a date (say 15th January) and find a list of customers that had an active status on that date in SQL only? Is this a job for SQL?
This can be done, but would be a lot more efficient if you stored the end date of each log. Wit... | [
0.1589997261762619,
-0.3105519413948059,
0.8862207531929016,
-0.0029883927199989557,
0.19126354157924652,
-0.06276202946901321,
-0.02661031484603882,
0.00018761729006655514,
-0.31181687116622925,
-0.47309404611587524,
0.06950510293245316,
0.11901842057704926,
0.03521769493818283,
0.2061396... | |
from status_log l2
where l2.userid = l1.userid
and l2.logcreated <= date '2008-02-15'
);
```
With the additional column it woud be more like:
```
select userid
from status_log
where status='s'
and logcreated <= date '2008-02-15'
and logsuperseded >= dat... | [
-0.5628151297569275,
-0.1356816589832306,
0.5050959587097168,
-0.1714998036623001,
0.11122499406337738,
0.14900870621204376,
-0.03374224901199341,
0.19469982385635376,
-0.04819637909531593,
-0.8063132762908936,
-0.3083966076374054,
0.40300631523132324,
-0.024374710395932198,
0.091676525771... | |
know Postgresql.)
To address some further issues raised by Phil:
> A user might get moved from active, to suspended, to cancelled, to active again. This is a simplified version, in reality, there are even more states and people can be moved directly from one state to another.
This would appear in the table like this... | [
0.15364225208759308,
-0.27468377351760864,
0.4221915006637573,
0.13985379040241241,
-0.015933476388454437,
-0.39807257056236267,
0.48839911818504333,
0.14286260306835175,
-0.17885221540927887,
-0.4408450722694397,
0.06361580640077591,
0.2463032603263855,
-0.35431107878685,
0.38618984818458... | |
a null for the "to" date of the current record. I could have used a future date like 2999-12-31 but null is preferable in some ways.
> Additionally, there would be no "end date" for the current status either, so I think this slightly breaks your query?
Yes, my query would have to be re-written as
```
select userid
f... | [
-0.14319638907909393,
0.004496428184211254,
0.5213094353675842,
0.018413415178656578,
0.19804301857948303,
-0.1206110343337059,
0.3423962891101837,
0.3429911136627197,
-0.2746165692806244,
-0.6358910799026489,
-0.020566796883940697,
0.1665399968624115,
-0.05151470750570297,
0.8133028149604... | |
I think the query advantage probably outweighs this. | [
0.09139037132263184,
0.2846539616584778,
0.24089965224266052,
0.13523681461811066,
-0.10943999141454697,
-0.0814312994480133,
-0.049804311245679855,
0.16307935118675232,
0.07685025036334991,
-0.37412935495376587,
0.2520638704299927,
0.4865877032279968,
0.09085686504840851,
0.13140378892421... | |
Which Template-Engine and Ajax-Framework/-Toolkit is able to load template information from JAR-Files?
You need to define a Spring Bean which implements [ApplicationListener](http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/context/ApplicationListener.html).
Then, in your code, do something ... | [
-0.13933821022510529,
0.19940464198589325,
0.4528515934944153,
-0.2776813209056854,
-0.0717332512140274,
-0.010768544860184193,
0.18856161832809448,
-0.44706040620803833,
-0.32741862535476685,
-0.3719366788864136,
-0.18699561059474945,
0.3288152813911438,
-0.40122783184051514,
-0.054507732... | |
I love Python because it comes batteries included, and I use built-in functions, a lot, to do the dirty job for me.
I have always been using happily the os.path module to deal with file path but recently I ended up with unexpected results on Python 2.5 under Ubuntu linux, while dealing with string that represent windo... | [
0.368074893951416,
0.32911500334739685,
0.1659298986196518,
-0.3363730013370514,
-0.24463658034801483,
-0.27747225761413574,
0.25239455699920654,
0.1686076670885086,
-0.28826382756233215,
-0.5516591668128967,
0.2186502069234848,
0.8219789266586304,
-0.2920876145362854,
0.008430879563093185... | |
Python install is messed up but I did not perform any particular tweak on it that I can remember.
If you want to manipulate Windows paths on linux you should use the ntpath module (this is the module that is imported as os.path on windows - posixpath is imported as os.path on linux)
```
>>> import ntpath
>>> filepath ... | [
0.17510610818862915,
-0.041788265109062195,
0.13508521020412445,
-0.3096602261066437,
-0.1894567608833313,
-0.2656804025173187,
0.2762601375579834,
0.03177202492952347,
-0.3861476480960846,
-0.5047271847724915,
0.07834529876708984,
0.9036180377006531,
-0.6398921012878418,
-0.25267678499221... | |
I've often heard criticism of the lack of thread safety in the Swing libraries. Yet, I am not sure as to what I would be doing in my own code with could cause issues:
In what situations does the fact Swing is not thread safe come into play ?
What should I actively avoid doing ?
1. Never do long running tasks in respo... | [
0.38197144865989685,
-0.22718599438667297,
-0.05890269577503204,
0.07421734184026718,
-0.28832003474235535,
-0.6258774399757385,
0.6336795091629028,
-0.16022153198719025,
-0.2798822224140167,
-0.49661704897880554,
-0.028251009061932564,
0.38989144563674927,
-0.23304606974124908,
-0.3046796... | |
Use Threads, Executors, and SwingWorker to run tasks NOT ON THE EDT ( event dispatch thread).
3. Do not update or create widgets outside of the EDT. Just about the only call you can do outside of the EDT is Component.repaint(). Use SwingUtilitis.invokeLater to ensure certain code executes on the EDT.
4. Use [EDT Debug ... | [
0.6150850057601929,
-0.016758905723690987,
0.37043946981430054,
0.030437281355261803,
-0.329250693321228,
-0.4079558849334717,
0.30532342195510864,
-0.3742602467536926,
-0.30261674523353577,
-0.4317680895328522,
-0.09689660370349884,
0.6489834785461426,
-0.289379745721817,
-0.4067379236221... | |
of awesome swing. Shame no public demo... Their [blog](http://blog.palantirtech.com/) is good too, sparse, but good | [
0.7366454005241394,
-0.18785826861858368,
0.12334182858467102,
0.24641595780849457,
0.2736353874206543,
-0.256187379360199,
-0.36243775486946106,
0.19328495860099792,
-0.5386810302734375,
-0.34130749106407166,
0.17315489053726196,
0.16123747825622559,
0.4990209937095642,
-0.048281725496053... | |
I am currently creating a custom control that needs to handle animation in a C# project. It is basically a listbox that contains a fixed number of elements that are subject to move. An element (another user control with a background image and a couple of generated labels) can move upwards, downwards or be taken out of ... | [
0.29094699025154114,
-0.1969328373670578,
0.5655904412269592,
0.13500411808490753,
0.1372009664773941,
0.23141081631183624,
-0.13804891705513,
-0.05818174406886101,
-0.39012017846107483,
-0.5936096906661987,
0.20945781469345093,
-0.029975946992635727,
-0.34354880452156067,
0.24609236419200... | |
a terrible rendering, even with double buffering turned on.
So here's the question : **What is the best way to achieve a flicker-free animated C# control?** Should I just not create custom controls and handle all of the drawing within a panel's background image that I generate? Is there a super animation method that I... | [
0.325075626373291,
0.06480496376752853,
0.3894714117050171,
0.23170489072799683,
-0.07241301238536835,
0.06159361079335213,
0.37087535858154297,
-0.07846801728010178,
-0.03557084500789642,
-0.6030080318450928,
-0.029573259875178337,
0.7103152275085449,
-0.2750359773635864,
-0.2083827108144... | |
ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor,
true);
``` | [
0.0710577517747879,
-0.1398186832666397,
0.5438620448112488,
0.19250404834747314,
0.382495254278183,
-0.22350700199604034,
0.4634400010108948,
-0.33475953340530396,
-0.042552556842565536,
-0.5357726216316223,
-0.23435378074645996,
0.7060938477516174,
-0.39057862758636475,
0.142479330301284... | |
I've got a column in a database table (SQL Server 2005) that contains data like this:
```
TQ7394
SZ910284
T r1534
su8472
```
I would like to update this column so that the first two characters are uppercase. I would also like to remove any spaces between the first two characters. So `T q1234` would become `TQ1234`.
... | [
-0.1580345183610916,
0.35284483432769775,
0.14261139929294586,
-0.026332149282097816,
-0.29740267992019653,
0.022930826991796494,
0.3266558051109314,
-0.08387697488069534,
-0.13794906437397003,
-0.5301087498664856,
0.11513011902570724,
0.4964209496974945,
-0.25318247079849243,
0.0222841575... | |
to support replacement of multiple spaces between the first and the second non-space characters**
```
/* TEST TABLE */
DECLARE @T AS TABLE(code Varchar(20))
INSERT INTO @T SELECT 'ab1234x1' UNION SELECT ' ab1234x2'
UNION SELECT ' ab1234x3' UNION SELECT 'a b1234x4'
UNION SELECT 'a b1234x5' UNION... | [
0.130049467086792,
-0.18059729039669037,
0.021090568974614143,
-0.14756900072097778,
0.04199355095624924,
0.7883560061454773,
-0.23486247658729553,
-0.5822257995605469,
0.15648920834064484,
-0.663415253162384,
-0.13559910655021667,
0.1700865626335144,
-0.21813428401947021,
0.17081299424171... | |
--------------------
ab1234x3
ab1234x2
a b1234x6
a b1234x5
a b1234x4
ab 1234x8
ab 1234x7
ab1234x1
*/
/* START PROCESSING SECTION */
DECLARE @s Varchar(20)
DECLARE @firstChar INT
DECLARE @secondChar INT
UPDATE @T SET
@firstChar = PATINDEX('%[^ ]%',code)
,@secondChar = @f... | [
-0.20477372407913208,
-0.45578619837760925,
0.21926628053188324,
-0.1573827564716339,
-0.049022600054740906,
0.25179871916770935,
0.20535549521446228,
-0.35106539726257324,
-0.008581170812249184,
-0.6077825427055359,
-0.20883116126060486,
0.09103687107563019,
-0.17025600373744965,
0.012932... | |
1,
@secondChar,
REPLACE(LEFT(code,
@secondChar
),' ','')
)
,@s = STUFF(
@s, | [
0.11798150837421417,
-0.3849349021911621,
0.39237022399902344,
0.04481266811490059,
0.16644592583179474,
-0.20944859087467194,
0.3834134638309479,
-0.18686418235301971,
-0.13357941806316376,
-0.4692035913467407,
-0.3110470771789551,
0.03743257373571396,
-0.3744204342365265,
0.0635486915707... | |
1,
2,
UPPER(LEFT(@s,2))
)
,code = @s
/* END PROCESSING SECTION */
SELECT * FROM @T
/* OUTPUT
code
--------------------
AB1234x3
AB1234x2
AB1234x6
AB1234x5
AB1234x4
AB 1234x8
AB 1234x7
AB1234x1
*/
``` | [
0.03220978379249573,
0.24584180116653442,
0.4590994119644165,
-0.1679820865392685,
0.11860064417123795,
0.6968253254890442,
0.19095703959465027,
-0.5189366936683655,
-0.19387629628181458,
-0.5104973316192627,
-0.21762962639331818,
0.2637195289134979,
-0.14307060837745667,
0.308480352163314... | |
In a few large projects i have been working on lately it seems to become increasingly important to choose one or the other (XML or Annotation). As projects grow, consistency is very important for maintainability.
My questions are: what are the advantages of XML-based configuration over Annotation-based configuration ... | [
0.15167927742004395,
-0.08729563653469086,
-0.04440585523843765,
0.45805007219314575,
-0.17316198348999023,
-0.1515880674123764,
-0.10790767520666122,
-0.001991169760003686,
-0.40221911668777466,
-0.4728149473667145,
-0.09002804011106491,
0.5541559457778931,
-0.09604603797197342,
-0.135017... | |
the code's dependencies away from the code which will be using it, by contrast, using some sort of annotation in the code that needs the dependencies makes the code aware of this automatic configuration.
However, instead of using XML for transactional management, marking a method as transactional with an annotation ma... | [
-0.028108486905694008,
-0.019305909052491188,
0.2472044825553894,
0.2769780457019806,
0.008535539731383324,
-0.199751615524292,
0.23821060359477997,
-0.09159504622220993,
-0.08584338426589966,
-0.6711829900741577,
-0.032073501497507095,
0.4823361933231354,
-0.6044562458992004,
0.0389370098... | |
whereas you had an interface contract before anyways, so with XML, you would just need to change the XML mappings and it is fairly quick and painless to do so.
I haven't used JPA annotations, so I don't know how good they are, but I would argue that leaving the mapping of beans to the database in XML is also good, as ... | [
0.17974905669689178,
0.027368973940610886,
0.24716854095458984,
0.24238887429237366,
-0.4126530587673187,
-0.20611481368541718,
0.07173077017068863,
0.05510608106851578,
-0.18050561845302582,
-0.7804049253463745,
0.05850601568818092,
0.580177903175354,
-0.2503689229488373,
-0.1957074850797... | |
an annotation provides functionality and acts as a comment in and of itself, and doesn't tie the code down to some specific process in order to function normally without this annotation, then go for annotations. For example, a transactional method marked as being transactional does not kill its operating logic, and ser... | [
0.01252000778913498,
0.17815180122852325,
0.24707089364528656,
0.5720105767250061,
-0.0789276510477066,
-0.28787991404533386,
-0.028921538963913918,
-0.003626075107604265,
-0.023384612053632736,
-0.503481388092041,
-0.3847697675228119,
0.18969592452049255,
-0.3475514352321625,
-0.007394104... | |
This question is a follow-up from [How to indicate that a method was unsuccessful](https://stackoverflow.com/questions/161822/how-to-indicate-that-a-method-was-unsuccessful). The xxx() Tryxxx() pattern is something that can be very useful in many libraries. I am wondering what is the best way to offer both implementati... | [
0.27014976739883423,
-0.07256735861301422,
0.19975481927394867,
-0.2067933976650238,
-0.02478889934718609,
-0.0942176952958107,
0.4504626989364624,
-0.6418721079826355,
-0.14554494619369507,
-0.3728986382484436,
-0.04538853093981743,
0.36281025409698486,
-0.3557482659816742,
-0.01289404928... | |
{
return false;
}
```
or
```
public int DoSomething(string a)
{
int result;
if (TrySomething(a, out result))
{
return result;
}
else
{
throw Exception(); // which exception?
}
}
public bool TrySomething(string a, out result)
{
//...
}
```
I'd ins... | [
0.4555796980857849,
0.023243330419063568,
0.06456701457500458,
-0.2454453706741333,
0.09378434717655182,
-0.2256259322166443,
0.6077702641487122,
-0.5688755512237549,
-0.04143809527158737,
-0.356762170791626,
-0.21426700055599213,
0.65487140417099,
-0.38079434633255005,
0.23718544840812683... | |
know exactly which exception happened), but couldn't the try/catch be too expensive? Is there a way to catch the exception in the second example?
Making TrySomething just catch and swallow the exception is a really bad idea. Half the point of the TryXXX pattern is to avoid the performance hit of exceptions.
If you don... | [
0.5483270883560181,
-0.23767678439617157,
0.08914254605770111,
0.10791011154651642,
0.01732432097196579,
-0.07804086804389954,
0.4161539375782013,
-0.19586624205112457,
-0.06146104633808136,
-0.49610596895217896,
0.40179702639579773,
0.6129054427146912,
-0.3343237638473511,
-0.181562125682... | |
is - if it's the throwing rather than the creating, you could write a private method which had a similar signature to TrySomething, but which returned an exception or null:
```
public int DoSomething(string input)
{
int ret;
Exception exception = DoSomethingImpl(input, out ret);
if (exception != null)
... | [
0.263458788394928,
-0.10013602674007416,
0.07964456081390381,
-0.2739894390106201,
0.02428775280714035,
-0.11284666508436203,
0.5222905278205872,
-0.788017749786377,
-0.14088371396064758,
-0.353407084941864,
0.0019784127362072468,
0.44381770491600037,
-0.46321117877960205,
0.04903964698314... | |
Exception exception = DoSomethingImpl(input, out ret);
return exception == null;
}
private Exception DoSomethingImpl(string input, out int ret)
{
ret = 0;
if (input != "bad")
{
ret = 5;
return null;
}
else
{
return new ArgumentException("Some details");
}
}
```
... | [
-0.028114421293139458,
-0.04339689388871193,
0.2528248727321625,
-0.2365909218788147,
0.2066103219985962,
0.0560019388794899,
0.4709562361240387,
-0.5098913311958313,
-0.15753766894340515,
-0.5836186408996582,
-0.16179506480693817,
0.6395912766456604,
-0.3774298429489136,
0.021627543494105... | |
I use [XFire](http://xfire.codehaus.org/) to create a webservice wrapper around my application. XFire provides the webservice interface and WSDL at runtime (or creates them at compile time, don't know exactly).
Many of our customers don't know webservices very well and additionally they simply don't read any external ... | [
0.40216511487960815,
0.31466758251190186,
0.44551676511764526,
-0.06405594199895859,
-0.5396156907081604,
-0.4265238642692566,
0.20146259665489197,
-0.23151621222496033,
-0.2641676068305969,
-0.4543403089046478,
0.1502693146467209,
0.12905380129814148,
-0.10245523601770401,
0.1738881468772... | |
for /dev/null. Use [CXF](http://cxf.apache.org/) instead. In other words, XFire is being deprecated in favor of CXF - it's pretty much the same developers.
Since you use the Java-first approach, I suggest you generate you WSDL once and for all with CXF's `java2wsdl` tool, then you put your documentation in that and te... | [
0.6994099020957947,
-0.05584695562720299,
0.06513937562704086,
-0.12728643417358398,
-0.3526323139667511,
-0.46697890758514404,
0.20641006529331207,
-0.1329239308834076,
-0.12532393634319305,
-0.8145101070404053,
-0.08172763139009476,
0.3572663962841034,
-0.29909536242485046,
-0.0737895146... | |
AFAIK, Currency type in Delphi Win32 depends on the processor floating point precision. Because of this I'm having rounding problems when comparing two Currency values, returning different results depending on the machine.
For now I'm using the SameValue function passing a Epsilon parameter = 0.009, because I only nee... | [
-0.32475796341896057,
0.10870950669050217,
0.6297819018363953,
-0.178974911570549,
-0.12722696363925934,
0.2181369513273239,
-0.0711410865187645,
-0.25897520780563354,
-0.13783276081085205,
-0.424297571182251,
0.20618323981761932,
0.3331323564052582,
-0.22350305318832397,
-0.19514632225036... | |
multiplying your Currency numbers by floating-point types, or dividing your Currency values, the rounding does need to be worked out one way or the other. The FPU controls this mechanism (it's called the "control word"). The Math unit contains some procedures which control this mechanism: SetRoundMode in particular. Yo... | [
0.014078333973884583,
-0.09908981621265411,
0.7007079720497131,
-0.06601174920797348,
-0.05174221470952034,
0.1651429831981659,
-0.10786508023738861,
-0.416718065738678,
-0.44266587495803833,
-0.09336702525615692,
-0.12691374123096466,
0.5513736009597778,
-0.2562575042247772,
0.01584592834... | |
i.e. 0.1666 vs 0.1667
end.
```
It is possible that a third-party library you are using is setting the control word to a different value. You may want to set the control word (i.e. rounding mode) explicitly at the starting point of your important calculations.
Also, if your calculations ever transfer into plain float... | [
0.04059019684791565,
0.2655850946903229,
0.44207215309143066,
-0.09814794361591339,
0.05342589318752289,
-0.12312130630016327,
0.017245886847376823,
-0.2217242270708084,
-0.3596557080745697,
-0.6208938956260681,
0.0017289422685280442,
0.38494113087654114,
-0.12357217073440552,
0.1838722825... | |
Please give me the direction of the best guidance on the Entity Framework.
Currently I have the following in my Global Ignore Pattern:
```
bin obj CVS .cvsignore *.user *.suo Debug Release *.pdb test.* Thumbs.db
```
Works really well to ignore several hidden or temp files/folders....
So for your specific requirem... | [
-0.09146813303232193,
0.2808952033519745,
0.6120670437812805,
-0.13346093893051147,
0.19510623812675476,
-0.1318383514881134,
0.40267249941825867,
0.10695245116949081,
-0.46422383189201355,
-0.3843288719654083,
-0.21349619328975677,
0.5926265716552734,
-0.36176586151123047,
0.1896829009056... | |
SQL to find duplicate entries (within a group)
I have a small problem and I'm not sure what would be the best way to fix it, as I only have limited access to the database (Oracle) itself.
In our Table "EVENT" we have about 160k entries, each EVENT has a GROUPID and a normal entry has exactly 5 rows with the same GROUP... | [
0.06721718609333038,
0.21842969954013824,
0.0680043026804924,
0.18274153769016266,
-0.18755772709846497,
0.1034432128071785,
0.22888541221618652,
-0.11922261863946915,
-0.23045770823955536,
-0.35720089077949524,
0.4458092749118805,
0.16485194861888885,
-0.4362192749977112,
0.20133639872074... | |
these groups.
Due to limited access to the database we can not use a temporary table, nor can we add an index to the GROUPID column to make it faster.
We can get the GROUPIDs with this query, but we would need a second query to get the needed data
```
select A."GROUPID"
from "EVENT" A
group by A."GROUPID"
having cou... | [
-0.4707910716533661,
-0.08043672889471054,
0.32007265090942383,
0.18297350406646729,
-0.24045374989509583,
0.1389119178056717,
0.11989761143922806,
-0.6182710528373718,
-0.24324136972427368,
-0.6097977161407471,
-0.16841083765029907,
0.04074475169181824,
-0.5771755576133728,
0.060737058520... | |
can handle this, but can't find a good solution so far.
Anybody can find a good solution for this maybe?
Small edit:
We don't have 100% duplicates here, as each entry still has a unique ID and the GROUPID is not unique either (that's why we need to use "group by") - or maybe I just miss an easy solution for it :)
Sm... | [
-0.12409421056509018,
0.08582271635532379,
0.32906389236450195,
0.23950929939746857,
-0.1555802822113037,
-0.2532840073108673,
0.3125699460506439,
-0.267202764749527,
-0.4404159486293793,
-0.5019633173942566,
0.0054205916821956635,
0.11348159611225128,
-0.4162067472934723,
0.07859502732753... | |
some more columns, like timestamp etc, but as you can see already, everything is identical, besides the EVENTID.
We will run it more often for testing, to find the bug and check if it happens again.
You can get the answer with a join instead of a subquery
```
select
a.*
from
event as a
inner join
(select ... | [
-0.08974475413560867,
-0.23642802238464355,
0.35645657777786255,
-0.08204832673072815,
-0.14864155650138855,
0.12276628613471985,
0.13438406586647034,
-0.4277026653289795,
-0.19638869166374207,
-0.3895862400531769,
-0.02893441915512085,
0.19163641333580017,
-0.5479926466941833,
0.056764654... | |
information out of the rows in a group.
Like your suggested answer and the other responses, this will run a lot faster with an index on groupid. It's up to the DBA to balance the benefit of making your query run a lot faster against the cost of maintaining yet another index.
If the DBA decides against the index, ma... | [
-0.10056360065937042,
-0.1006203144788742,
0.5801023840904236,
0.41261255741119385,
0.09373985230922699,
-0.03507392853498459,
0.07375659048557281,
-0.06867685914039612,
-0.0356820672750473,
-0.5940065383911133,
-0.07668256014585495,
0.5789735913276672,
0.028008416295051575,
-0.07509588450... | |
I need a very accurate way to time parts of my program. I could use the regular high-resolution clock for this, but that will return wallclock time, which is not what I need: I needthe time spent running only my process.
I distinctly remember seeing a Linux kernel patch that would allow me to time my processes to nano... | [
0.12593534588813782,
0.04549336060881615,
0.4157821238040924,
0.03838987275958061,
0.12899938225746155,
0.003910493105649948,
0.3630695939064026,
-0.07461467385292053,
-0.15832756459712982,
-0.7567219138145447,
0.39849743247032166,
0.7281345725059509,
0.06417282670736313,
0.002571155549958... | |
last two values to the process time of the running process. This produces a high-resolution accurate view of the process' actual process time.
The regular process time is kept using the regular clock, which is I believe millisecond accurate (1000Hz), which is much too large for my purposes.
Does anyone know what kern... | [
0.2201809585094452,
0.1849493533372879,
0.2754870057106018,
-0.0581962950527668,
0.052159253507852554,
0.22845855355262756,
0.030528225004673004,
0.12601153552532196,
-0.3647850751876831,
-0.7075321674346924,
0.19760791957378387,
0.7456469535827637,
-0.0753721222281456,
0.2695543169975281,... | |
it looks promising. The problem I have with it is that the calls I can use to get process time are still not returning values that are granular enough.
* times() is returning values 21, 22, in milliseconds.
* clock() is returning values 21000, 22000, same granularity.
* getrusage() is returning values like 210002, 220... | [
0.05381384491920471,
-0.15558961033821106,
0.529189944267273,
0.027064446359872818,
0.0805828720331192,
0.23109018802642822,
0.20257693529129028,
0.044415030628442764,
-0.3802005648612976,
-0.8424978256225586,
0.19408130645751953,
0.5259804129600525,
-0.033431053161621094,
0.27771940827369... | |
level of timing resolution, you are probably trying to do some micro-optimization. If that's the case, you should look at [PAPI](http://icl.cs.utk.edu/papi/). Not only does it provide both wall-clock and virtual (process only) timing information, it also provides access to CPU event counters, which can be indispensable... | [
0.013878009282052517,
-0.14246223866939545,
0.18874265253543854,
0.37652602791786194,
0.12015622854232788,
0.22702093422412872,
-0.018934495747089386,
-0.1343556046485901,
-0.468810111284256,
-0.7350220680236816,
0.029894398525357246,
0.43866580724716187,
-0.05759773030877113,
-0.001885765... | |
I need to make a change to an ASP.NET web service written a couple years ago on 2.0. I call this web service from an old 1.1 web site. I need to make some changes to the web service, so am thinking, should I rewrite this into a WCF service and if so, will I still be able to use it from my 1.1 web site?
Yes this will wo... | [
0.7299759387969971,
-0.1262415498495102,
0.2340281754732132,
-0.025350462645292282,
-0.31245771050453186,
-0.38752463459968567,
0.204668790102005,
0.011960568837821484,
-0.20543272793293,
-0.9535017013549805,
0.2231978178024292,
0.6634182333946228,
-0.24124892055988312,
0.2430039346218109,... | |
Sybase db tables do not have a concept of self updating row numbers. However , for one of the modules , I require the presence of rownumber corresponding to each row in the database such that max(Column) would always tell me the number of rows in the table.
I thought I'll introduce an int column and keep updating this... | [
0.1994340568780899,
0.17367912828922272,
0.272026002407074,
-0.16667097806930542,
-0.3407749533653259,
-0.013362394645810127,
0.29866746068000793,
-0.5537063479423523,
0.11776921898126602,
-0.509087324142456,
0.46345093846321106,
0.8633217215538025,
-0.7129539847373962,
-0.0504647828638553... | |
id = id - (select count(*) from deleted d where d.id < t.id)
from myTable t
```
To avoid locking problems
-------------------------
You could add an extra table (which joins to your primary table) like this:
```
CREATE TABLE rowCounter
(id int, -- foreign key to main table
rownum int)
```
... and us... | [
-0.0642184168100357,
0.11794236302375793,
0.5075647234916687,
-0.05672355741262436,
0.1820606142282486,
0.10014831274747849,
-0.08891592919826508,
-0.6196475028991699,
0.01376921683549881,
-0.6708182096481323,
0.2521153390407562,
0.7051002383232117,
-0.25048938393592834,
0.1427981257438659... | |
not, you could have a job which runs every minute or so, which checks for gaps in the rownum, and does an update.
Question: do the rownumbers have to reflect the order in which rows were inserted?
If not, you could do far fewer updates, but only updating the most recent rows, "moving" them into gaps.
Leave a com... | [
0.4388190507888794,
-0.02997574955224991,
-0.010871831327676773,
0.22685208916664124,
0.09533143788576126,
0.043495748192071915,
-0.1509229689836502,
0.2161145955324173,
-0.3369003236293793,
-0.7121074795722961,
-0.03358714282512665,
0.4926789402961731,
-0.19038796424865723,
0.064632177352... | |
I have a BulletedList in asp.net that is set to DisplayMode="LinkButton". I would like to trigger the first "bullet" from a javascript, can this be done? And if so, how?
Say you have the BulletedList as
```
<asp:BulletedList runat="server" ID="MyLovelyBulletedList" DisplayMode="LinkButton">
<asp:ListItem Text="My ... | [
-0.0738498643040657,
-0.08661326766014099,
1.0065252780914307,
-0.22146067023277283,
-0.30259209871292114,
-0.012698851525783539,
0.5343754887580872,
-0.47959163784980774,
0.04905586317181587,
-0.8104925751686096,
-0.15755420923233032,
0.47717249393463135,
-0.39328479766845703,
0.129026740... | |
evt.initMouseEvent("click", true, true, window,
0, 0, 0, 0, 0, false, false, false, false, 0, null);
targetLink.dispatchEvent(evt);
}
``` | [
-0.07256773114204407,
-0.11869900673627853,
0.39419880509376526,
-0.0796002671122551,
0.2674925625324249,
0.2368411272764206,
0.3656584918498993,
0.31707918643951416,
0.09190712124109268,
-0.6543876528739929,
-0.10374752432107925,
0.8972939252853394,
-0.4671917259693146,
0.1634188592433929... | |
I really don't like the VS2008 Start Page. I don't need the RSS reader, Getting started or Headlines. The only thing useful is "Recent Projects"
**Is there a way to customize it or replace with a better one?**
It will be nice that the page contains Favorites Projects and Recent projects.
P.S. I know that I can dis... | [
0.5471946597099304,
-0.05700688436627388,
0.412379652261734,
0.3796094059944153,
-0.26398295164108276,
-0.18632057309150696,
0.12399808317422867,
0.47541290521621704,
-0.3800041675567627,
-0.7109065055847168,
0.17935338616371155,
0.6089076995849609,
0.10879736393690109,
0.03981180861592293... | |
have the time...
[Customizing the Visual Studio .NET 2003 Start Page](http://msdn.microsoft.com/en-us/library/aa290348.aspx) | [
0.10242916643619537,
-0.1883317083120346,
-0.16035936772823334,
0.23818951845169067,
0.13088208436965942,
-0.24536044895648956,
0.3849680721759796,
-0.33670198917388916,
-0.37827008962631226,
-0.6073218584060669,
0.10211946815252304,
0.49393439292907715,
0.2562483549118042,
-0.354867637157... | |
This is a question for anyone who has the pleasure to work in both Java and C#.
Do you find that you have to make a mental context switch of some kind when you move from one to the other?
I'm working in both at the moment and because the syntax and libraries are so similar and yet subtly different I'm finding it frus... | [
0.39443135261535645,
0.1498345583677292,
-0.2994001805782318,
0.16257710754871368,
-0.004437422379851341,
0.04837829992175102,
-0.06497107446193695,
0.08701184391975403,
-0.35392120480537415,
-0.7258365750312805,
0.35964974761009216,
0.3930596113204956,
-0.08780045062303543,
-0.03892867267... | |
to make a mental context switch - because LINQ isn't available in Java :(
Beyond that, there are little things like `foreach (X x in y)` vs `for (X x : y)` which often trip me up, but not a *huge* amount otherwise.
As for a tip to make your brain work differently: don't give into the temptation to use the naming conv... | [
0.13159871101379395,
-0.09959722310304642,
-0.05192989856004715,
0.30097007751464844,
-0.28468796610832214,
-0.16306059062480927,
0.3795543611049652,
0.11016396433115005,
-0.4292376935482025,
-0.3918970227241516,
0.15255869925022125,
0.6156418323516846,
-0.024105992168188095,
0.00004886727... | |
I'm seeing this error several times an hour on my production site and am not quite sure how to fix it. I've grepped the source code and I am not using "../" anywhere in my code to generate a path.
My application is running on IIS6 on Win2003 Server. It's using URLRewriter.Net to allow the site to have friendly URLs, a... | [
0.3939020037651062,
0.37500372529029846,
0.3512670397758484,
-0.04605267941951752,
0.14722606539726257,
-0.013455833308398724,
0.8186052441596985,
0.32987073063850403,
-0.10382238030433655,
-0.8127195239067078,
0.2139561027288437,
0.47166213393211365,
-0.25201863050460815,
0.41460514068603... | |
specific HtmlTextWriter, as suggested in one of the most popular solutions, but that hasn't worked for me. I haven't seen any other likely solutions.
It's probably due to using "~/something", probably on a Hyperlink control. When the physical file is at a different directory level from the friendly URL, ASP.NET uses to... | [
-0.023897361010313034,
-0.004053284414112568,
0.7137148380279541,
-0.0681970864534378,
-0.45977312326431274,
-0.16852012276649475,
0.3855606019496918,
0.08697821944952011,
-0.00578534509986639,
-0.83125239610672,
0.039446745067834854,
0.5001193881034851,
-0.39076852798461914,
-0.0328771695... | |
What is the easiest way to test (using reflection), whether given method (i.e. java.lang.Method instance) has a return type, which can be safely casted to List<String>?
Consider this snippet:
```
public static class StringList extends ArrayList<String> {}
public List<String> method1();
public ArrayList<String> metho... | [
-0.030062587931752205,
-0.028543375432491302,
0.12887677550315857,
-0.1566552221775055,
-0.20677000284194946,
-0.1472533494234085,
0.20675262808799744,
-0.522307276725769,
0.0997948870062828,
-0.5302764773368835,
0.10811997205018997,
0.5403160452842712,
-0.31206655502319336,
-0.21968142688... | |
in the superclass interfaces) with the actual type parameter (i.e. where this E is matched to String).
Or maybe is there a completely different (easier) way, which I overlook?
**EDIT:** For those looking into it, here is method4, which also fulfills the requirement and which shows some more cases, which have to be in... | [
-0.2725473940372467,
-0.16427595913410187,
0.24745507538318634,
-0.10592266917228699,
-0.3188425898551941,
-0.1736992597579956,
0.4756856858730316,
-0.1129368245601654,
-0.19637258350849152,
-0.7149081230163574,
-0.046840980648994446,
0.6144582629203796,
-0.6498194336891174,
-0.17825159430... | |
library to make generic type reflection easier: [gentyref](http://code.google.com/p/gentyref/). I added sample code (in the form of a JUnit test) to show how to use it to solve this problem: [StackoverflowQ182872Test.java](http://code.google.com/p/gentyref/source/browse/trunk/gentyref/src/test/java/com/googlecode/genty... | [
-0.15762358903884888,
-0.189334437251091,
0.1964035928249359,
-0.02281849831342697,
-0.28949469327926636,
0.047365859150886536,
0.35042110085487366,
-0.46337243914604187,
-0.17649301886558533,
-0.3923647105693817,
0.15691758692264557,
0.33951374888420105,
-0.5121936798095703,
0.06728025525... | |
I have a friend who is need of a web page. He does interior construction, and would like to have a gallery of his work. I'll probably go for a php host, and was thinking about the best way to implement the image gallery for him. I came up with:
* Use flickr to host the images. They can be tagged, added to sets, and I ... | [
1.0539244413375854,
0.12616632878780365,
0.3910132646560669,
0.13712123036384583,
-0.23091647028923035,
0.08370116353034973,
0.025364048779010773,
-0.06070537492632866,
-0.4183609187602997,
-0.4786547124385834,
0.15993885695934296,
0.29281139373779297,
-0.01540676411241293,
-0.035463355481... | |
How to best get at the api? Is there a good PHP library for flickr integration? Should I roll my own?
* API key - is this considered a commercial project? The web page is for his business, and he will be paying me to create the site...
* Is flickr the wrong tool for the job? It seems like a pretty good solution in my h... | [
0.587419867515564,
0.10039571672677994,
0.22544677555561066,
0.3869229853153229,
0.017918216064572334,
-0.11106762290000916,
0.41192296147346497,
-0.14949338138103485,
-0.14164979755878448,
-0.46192434430122375,
0.2046329379081726,
0.7261790633201599,
0.17820894718170166,
-0.14575614035129... | |
name!).
Unless you're really wanting to save on bandwidth, I think you'd get much better results from installing some pre-built gallery. | [
0.979809045791626,
-0.08727380633354187,
0.2558290660381317,
0.1023881584405899,
0.06185075640678406,
0.005025359336286783,
0.24271459877490997,
0.4118362367153168,
-0.3859007954597473,
-0.2641308903694153,
0.05644279718399048,
0.5829155445098877,
0.17444030940532684,
0.23381592333316803,
... | |
Files:
Website\Controls\map.ascx
Website\App\_Code\map.cs
I'd like to create a strongly typed instance of map.ascx in map.cs
Normally, in an aspx, you would add a <%Register... tag to be able to instantiate in codebehind. Is this possible in an app\_code class?
I'm using .NET 3.5/Visual Studio 2008
Thanks!
Normall... | [
-0.09575752913951874,
-0.08523031324148178,
0.36325380206108093,
0.033111292868852615,
-0.12608349323272705,
-0.2696506381034851,
0.099913589656353,
-0.0988096296787262,
-0.4383487403392792,
-0.9498083591461182,
-0.22002002596855164,
0.2740388810634613,
-0.38956353068351746,
-0.24461734294... | |
I have the following in my Global.asax.cs
```
routes.MapRoute(
"Arrival",
"{partnerID}",
new { controller = "Search", action = "Index", partnerID="1000" }
);
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = "" }
);
```
My SearchContr... | [
-0.4420526921749115,
-0.29897212982177734,
0.7022603750228882,
-0.2206544727087021,
0.057333070784807205,
0.1757144182920456,
0.008058094419538975,
-0.07664790004491806,
-0.4159923791885376,
-1.1095938682556152,
-0.07149606198072433,
0.1407470554113388,
-0.4278033375740051,
0.1328047662973... | |
Index.aspx simply shows ViewData["partnerID"] at the moment.
I have a virtual directory set up in IIS on Windows XP called Test.
If I point my browser at <http://localhost/Test/> then I get 1000 displayed as expected. However, if I try <http://localhost/Test/1000> I get a page not found error. Any ideas?
Are there a... | [
0.11061330139636993,
-0.12320517748594284,
0.7922728657722473,
0.049219515174627304,
-0.14619797468185425,
-0.03303581103682518,
0.22372660040855408,
0.005939721129834652,
-0.22328810393810272,
-1.0477784872055054,
0.18018999695777893,
0.4067831337451935,
-0.2675560414791107,
0.20167188346... | |
mapped to aspnet\_isapi.dll (which is a
> C/C++ ISAPI filter responsible for
> invoking ASP.NET). Since routing is a
> .NET IHttpModule called
> UrlRoutingModule, it doesn’t get
> invoked unless ASP.NET itself gets
> invoked, which only happens when
> aspnet\_isapi.dll gets invoked, which
> only happens when th... | [
-0.32334190607070923,
-0.630192756652832,
0.46240249276161194,
0.4057296812534332,
0.08262024819850922,
-0.11973144114017487,
-0.03914085403084755,
-0.05192723497748375,
-0.3084438741207123,
-1.1157305240631104,
0.06642435491085052,
0.09702900797128677,
-0.37330952286720276,
0.061478912830... | |
or
> myapp.aspx/{controller}/{action}/{id}.
> Don’t put .aspx inside the
> curly-bracket parameter names, or into
> the ‘default’ values, because it isn’t
> really part of the controller name -
> it’s just in the URL to satisfy IIS.
Source: <http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-t... | [
0.2391742616891861,
-0.3425181806087494,
0.5774105787277222,
0.1151682585477829,
0.07016540318727493,
0.03143427148461342,
0.14618122577667236,
-0.08604560047388077,
-0.36715760827064514,
-0.5537371039390564,
-0.1693444401025772,
0.3150147795677185,
-0.1701001077890396,
0.12617875635623932... | |
I'm working on a free software (bsd license) project with others. We're searching for a system that check out our source code (svn) and build it also as test it (unit tests with Check / other tools).
It should have a webbased interface and generate reports.
I hope we don't have to write such a system from null by our... | [
0.8127008676528931,
0.09551374614238739,
-0.09108855575323105,
0.2043956071138382,
0.13415595889091492,
-0.4165382981300354,
0.3312387764453888,
0.0440039224922657,
-0.205688938498497,
-0.3853720724582672,
0.19882461428642273,
0.42452630400657654,
-0.1195426806807518,
0.1645144820213318,
... | |
running custom test scripts/programs should not be a problem.
While these CI systems are probably not written in C, this does not matter, since they just need to be able to access and compile your source code, for which they will use an external compiler anyways.
Just to list some of the well known CI tools:
* [Crui... | [
0.30288130044937134,
-0.251838356256485,
0.04565062001347542,
0.48357194662094116,
0.34505531191825867,
-0.2923643887042999,
-0.26419776678085327,
0.0589321032166481,
-0.34139686822891235,
-0.44176849722862244,
0.038909681141376495,
0.5956584811210632,
-0.13232946395874023,
-0.433416724205... | |
I want to compare the current value of an in-memory Hibernate entity with the value in the database:
```
HibernateSession sess = HibernateSessionFactory.getSession();
MyEntity newEntity = (MyEntity)sess.load(MyEntity.class, id);
newEntity.setProperty("new value");
MyEntity oldEntity = (MyEntity)sess.load(MyEntity.clas... | [
-0.012717770412564278,
0.106925830245018,
0.5439324378967285,
-0.17160964012145996,
0.2634221017360687,
0.420852392911911,
0.5804365873336792,
-0.23234276473522186,
-0.019094401970505714,
-0.880827009677887,
-0.29660460352897644,
0.5494601726531982,
-0.13975490629673004,
0.3527986109256744... | |
id);
// CODEBLOCK#1 evaluate differences between newEntity and oldEntity
oldEntity = null;
sess.update(newEntity);
```
and now the two entities are distinct, but of course I get the dreaded `org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the sessi... | [
-0.10830800980329514,
0.06894499063491821,
0.6909397840499878,
-0.2425522804260254,
0.1601593941450119,
0.02006438747048378,
0.5624140501022339,
-0.4668169915676117,
-0.23204396665096283,
-0.8055731654167175,
-0.367864727973938,
0.6391668319702148,
-0.24702900648117065,
0.3292465806007385,... | |
Use session.merge() on oldEntity to replace the version in the session cache (newEntity) with the original (oldEntity)
**EDIT**: to elaborate a little, the problem here is that Hibernate keeps a persistence context, which is the objects being monitored as part of each session. You can't do update() on a detached objec... | [
0.006335852667689323,
0.05738135427236557,
0.5310869216918945,
-0.3103776276111603,
0.07793176174163818,
-0.2171618640422821,
0.7299280166625977,
-0.29778435826301575,
-0.20855684578418732,
-0.6325969696044922,
-0.30007490515708923,
0.6197824478149414,
-0.3765498101711273,
0.40555343031883... | |
// saving the one that's in the context anyway = fine
```
and so should this:
```
HibernateSession sess = ...;
MyEntity newEntity = (MyEntity) sess.load(...);
newEntity.setProperty("new value");
sess.evict(newEntity); // otherwise load() will return the same object again from the context
MyEntity oldEntity = (MyEnti... | [
0.09764823317527771,
-0.026218023151159286,
0.5601591467857361,
-0.2917567789554596,
0.278608113527298,
0.4611546993255615,
0.34711796045303345,
-0.3940429389476776,
-0.26918771862983704,
-0.7402786016464233,
-0.5378672480583191,
0.6731853485107422,
-0.25370267033576965,
0.1977927088737487... | |
I'm making a report in Access 2003 that contains a sub report of related records. Within the sub report, I want the top two records only. When I add "TOP 2" to the sub report's query, it seems to select the top two records before it filters on the link fields. How do I get the top two records of only those records that... | [
0.06810970604419708,
-0.08055803179740906,
0.2511686384677887,
0.3036831319332123,
0.011628350242972374,
-0.25921881198883057,
-0.09307104349136353,
-0.11281251162290573,
-0.2933996319770813,
-0.6121706366539001,
-0.016483090817928314,
0.5865802764892578,
-0.17072917520999908,
0.2121285498... | |
as well)
2) You could fake out rownumbers in Access and limit them to only rownum <= 2. E.g.,
```
SELECT o1.order_number, o1.order_date,
(SELECT COUNT(*) FROM orders AS o2
WHERE o2.order_date <= o1.order_date) AS RowNum
FROM
orders AS o1
ORDER BY o1.order_date
```
(from <http://group... | [
-0.23758834600448608,
0.19513259828090668,
0.42494165897369385,
0.006740855518728495,
0.010951129719614983,
0.07456748932600021,
-0.001321187475696206,
-0.3248884081840515,
-0.3826754093170166,
-0.47766104340553284,
-0.35158732533454895,
0.3345842957496643,
-0.2546788156032562,
0.135990411... | |
Report. | [
0.1414143443107605,
0.23317719995975494,
0.16923834383487701,
-0.0566440187394619,
0.055476970970630646,
-0.023101922124624252,
-0.0408334955573082,
-0.43370717763900757,
-0.28426066040992737,
-0.3277928829193115,
-0.4987166225910187,
0.029388828203082085,
-0.005113921128213406,
0.24800746... | |
I have an internal web app with an image at the top of the page, currently containing some english text with drop shadows. I now need to provide localized versions of this page for various languages. My main choices are:
* Have a different graphic per supported language, containing the localized text.
* Use CSS to pos... | [
0.3561704754829407,
0.1874825656414032,
0.4266871511936188,
0.04127408191561699,
-0.14706753194332123,
0.11253727227449417,
0.23284663259983063,
0.4482894539833069,
-0.16571351885795593,
-0.7102311849594116,
-0.3288559913635254,
0.19519490003585815,
-0.044346436858177185,
-0.17715865373611... | |
shadows from the graphic, and also moving the text into in a header in the HTML, but neither was appealing. People said it looked like a cheap knockoff of the current page, which wounds my pride.
Personally I'm a big fan of CSS techniques for visual effects like this. The big benefit is that you are offloading the proc... | [
0.8020784854888916,
-0.1858072727918625,
0.3798842430114746,
0.08987009525299072,
-0.08046063780784607,
-0.04596370831131935,
0.21392814815044403,
0.2753870487213135,
-0.2764242887496948,
-0.41308367252349854,
0.27737024426460266,
0.31264227628707886,
-0.14652171730995178,
0.06277307122945... | |
absolutely MUST have the drop shadows on very old (IE5) browsers with next to no CSS support.
Edit: Just thought of something - I a few cases like this where I need a specific font or some exact text effect I've used PHP to render the text, with effects, to an image and cache it server side. That way you avoid the co... | [
0.9657250642776489,
-0.02303490787744522,
0.3718860149383545,
0.2847049832344055,
0.121201291680336,
-0.2216501533985138,
0.2915692627429962,
0.25361865758895874,
-0.06738077849149704,
-0.5453413724899292,
-0.024025652557611465,
0.5805748105049133,
0.036961015313863754,
-0.1508839428424835... | |
I am making numerous, minute changes to .php files in Eclipse PDT then committing them and testing on the server.
The repetitive six-step commit process is getting tedious:
```
right-click
team
Commit...
click "choose previously selected comment"
select in list
click OK
```
Does anyone know of a hotkey or other pro... | [
0.5214220881462097,
0.26781177520751953,
0.2859174311161041,
-0.14822261035442352,
-0.10566843301057816,
-0.18015402555465698,
0.36220604181289673,
-0.12980389595031738,
-0.18415525555610657,
-0.9170264005661011,
0.11864155530929565,
0.7742844223976135,
-0.02208344265818596,
-0.00921152438... | |
a key combination, which saves the whole right-click->Team->Commit... process.
If you just want to check in the file you are editing, you don't have to click anywhere, just hit the key combination, and the commit dialog pops up to commit the current file. | [
0.02911236137151718,
-0.20006702840328217,
0.15058375895023346,
0.17112024128437042,
0.3085840046405792,
-0.26678910851478577,
-0.022292889654636383,
0.16895027458667755,
-0.3340802490711212,
-0.6545358300209045,
-0.3179621994495392,
0.6408218741416931,
-0.14962951838970184,
-0.09738718718... | |
I use the MFC list control in report view with grid lines to display data in a vaguely spreadsheet manner.
Sometimes when the user scrolls vertically through the control, extra grid lines are drawn, which looks terrible.
This does not happen when the slider or the mousewheel are used to scroll, only when the little d... | [
0.021441424265503883,
0.15650933980941772,
0.6112656593322754,
-0.21546709537506104,
-0.08098810911178589,
-0.08816469460725784,
0.3320702016353607,
-0.15894702076911926,
-0.3926241397857666,
-0.6710053086280823,
0.06959469616413116,
0.30836212635040283,
-0.3168436586856842,
0.110814511775... | |
the list control so that there is no partial rows visible, the problem is solved. However, it will appear when the program is run on another computer, presumably because the number of pixels occupied by a row changes.
I am assuming that it is an interaction between screen resolution, font size and "dialog units".
I ... | [
0.07797525823116302,
-0.12505067884922028,
0.6283777356147766,
0.17477203905582428,
-0.2147248238325119,
0.1168314665555954,
0.04267603158950806,
-0.07774516195058823,
-0.383907288312912,
-0.7837424278259277,
0.11691370606422424,
0.6896308660507202,
-0.5112037658691406,
0.16759534180164337... | |
be to create my own specialization of CListCtrl and over-ride whatever method is doing the scrolling. This seems likely to be a lot of work.
This screenshot shows a closely related problem where the grid lines go missing

and here is one with the extra grid lines
, which uses ... | [
0.0858936458826065,
-0.22366087138652802,
-0.06978869438171387,
0.006705097388476133,
-0.3461843430995941,
0.043789878487586975,
0.3746319115161896,
-0.0546550378203392,
-0.0011355302995070815,
-0.7532423734664917,
0.08860677480697632,
0.28474968671798706,
-0.6973999738693237,
0.2504905164... | |
the assembly plugin (which in reality is much more powerful, but much harder to properly configure). | [
0.1209411695599556,
0.006820815149694681,
0.14892686903476715,
-0.013050139881670475,
0.0756208598613739,
0.28195106983184814,
0.021171605214476585,
-0.33392050862312317,
0.08755093812942505,
-0.4577123820781708,
-0.622909665107727,
0.7743127942085266,
-0.25076740980148315,
-0.066084563732... | |
I'm looking for something that will monitor Windows directories for size and file count over time. I'm talking about a handful of servers and a few thousand folders (millions of files).
Requirements:
* Notification on X increase in size over Y time
* Notification on X increase in file count over Y time
* Historical g... | [
0.4969634711742401,
0.17208662629127502,
0.4310166537761688,
0.42876821756362915,
0.2543947398662567,
0.09493301063776016,
0.0353606678545475,
0.07678283005952835,
-0.32822591066360474,
-0.7873712182044983,
0.0624522939324379,
0.3001544773578644,
0.029419707134366035,
0.03176592290401459,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.