text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
using MacVim as editing git commit messages. | [
-0.33189016580581665,
-0.12273074686527252,
0.20531752705574036,
0.19617240130901337,
-0.03817256912589073,
-0.4102472960948944,
-0.040327757596969604,
0.026934660971164703,
-0.3820819854736328,
-0.7313029766082764,
-0.22484278678894043,
0.45760783553123474,
-0.4633195400238037,
-0.2420354... | |
I am wrestling with a binding problem in WPF/Silverlight. I have a Listview witch is filled by a DataContext form an EF linq query. In the same usercontrol are textboxes. When changing their values, the listview gets refresht and the data is changed in de db bij .SaveChanges. The problem is that if I use a combobox the... | [
-0.16858360171318054,
0.042749058455228806,
0.5066068172454834,
-0.032890647649765015,
-0.5095362663269043,
-0.13546237349510193,
0.4096008837223053,
-0.7714333534240723,
-0.0259296465665102,
-0.6727262139320374,
0.18194150924682617,
0.2769738435745239,
-0.2903363108634949,
0.1763148307800... | |
<GridView>
<GridViewColumn Width="25" Header="Rw" DisplayMemberBinding="{Binding RowNr}"/>
<GridViewColumn Width="25" Header="Cl" DisplayMemberBinding="{Binding ColumnNr}"/>
<GridViewColumn Width="100" Header="Name" DisplayMemberBinding="{Binding Name}"/>
<GridVie... | [
-0.1886751800775528,
0.10595932602882385,
0.6916628479957581,
-0.26675549149513245,
-0.17547735571861267,
0.1576395034790039,
-0.3117917776107788,
-0.5893972516059875,
-0.26174497604370117,
-0.6226474046707153,
-0.08388639241456985,
0.3360467851161957,
-0.04958420246839523,
0.1570143103599... | |
<GridViewColumn Width="100" Header="Text" DisplayMemberBinding="{Binding TextResources.Text}"/>
</GridView>
</ListView.View>
</ListView>
<Label Grid.Row="2" Grid.Column="5" Height="23" Margin="4,4,4,0" x:Name="rowSpanLabel" VerticalAlignment="Top"
Content="RowNr"/>
<TextBo... | [
-0.3676688075065613,
-0.15155000984668732,
0.6910814642906189,
-0.051635030657052994,
-0.17269174754619598,
0.22803358733654022,
-0.07058563083410263,
-0.7658494710922241,
-0.18531115353107452,
-0.6179615259170532,
-0.01592106930911541,
0.1588485985994339,
-0.026461921632289886,
0.10832957... | |
VerticalAlignment="Top"
Content="Type"/>
<ComboBox Grid.Row="4" Grid.Column="2" Grid.ColumnSpan="5" Height="23" Margin="4,4,4,0" x:Name="controlTypeComboBox" VerticalAlignment="Top"
DataContext="{Binding Path=ControlTypes, ElementName=controlsListBox}" IsSynchronizedWithCurrentItem="Tru... | [
-0.33118486404418945,
-0.30638357996940613,
0.9281554818153381,
0.10502749681472778,
0.3342861533164978,
0.3215958774089813,
0.12751133739948273,
-0.32634204626083374,
-0.3700115382671356,
-0.4768814146518707,
-0.1343899816274643,
0.2869641184806824,
-0.3337867558002472,
0.3609082698822021... | |
select x);
foreach (var item in data)
{
item.TextResourcesReference.Load();
\_controlProperties.Add(item);
}
// DataContext must first be set to null for good result.
controlsListBox.DataContext = null;
controlsListBox.DataContext = \_controlProperties;
```
controlTypeComboBox.DataContext = (from c in _da... | [
-0.46260860562324524,
-0.24831531941890717,
0.4844786822795868,
-0.09322461485862732,
0.1143413856625557,
0.30682188272476196,
0.27060168981552124,
-0.429508239030838,
-0.08575022965669632,
-0.32514703273773193,
-0.5703004598617554,
0.5303215384483337,
-0.5654968619346619,
0.25554901361465... | |
select c).ToList();
```
Here's a solution - use a SaaS comet provider, such as [WebSync On-Demand](http://www.frozenmountain.com/websync). No server resources to worry about, shared hosting or not, since it's all offloaded, and you can push out the information as needed.
Since it's SaaS, it'll work with any server la... | [
0.12605443596839905,
-0.19031912088394165,
0.3122173249721527,
0.23496197164058685,
0.0838259607553482,
-0.24208678305149078,
-0.038657449185848236,
0.15696263313293457,
-0.28741487860679626,
-0.37554192543029785,
-0.33561721444129944,
0.35020238161087036,
-0.34258711338043213,
-0.13627749... | |
Can I add new Silverlight 2.0 projects to my ASP.NET 2.0 web app and still target .NET Framework 2.0 in Visual Studio 2008?
ScottGu doesn't mention Silverlight [in his post on multi-targeting](http://weblogs.asp.net/scottgu/archive/2007/06/20/vs-2008-multi-targeting-support.aspx).
Michael Scwartz's posts on [Silverli... | [
0.3077574372291565,
0.07316821068525314,
0.14061275124549866,
0.060049768537282944,
-0.2249453067779541,
-0.14154626429080963,
0.3053329288959503,
-0.2418288290500641,
-0.37665650248527527,
-0.7002831101417542,
0.12765634059906006,
0.46816715598106384,
-0.42398032546043396,
-0.058111000806... | |
the built xap file to your web project (as Silverlight links don't work with ASP.NET 2.0 projects).
* Add the Siverlight.js file to the object tag'd page to get better in-place installation and plugin detection. | [
0.7957703471183777,
-0.033371929079294205,
0.3264971375465393,
0.10915134847164154,
-0.45929837226867676,
-0.3821328282356262,
0.2511598467826843,
0.141379252076149,
0.11945689469575882,
-0.701554000377655,
-0.30315375328063965,
0.36588260531425476,
-0.25821349024772644,
-0.197350367903709... | |
Building on what has been written in SO question [Best Singleton Implementation In Java](https://stackoverflow.com/questions/70689/best-singleton-implementation-in-java) - namely about using an enum to create a singleton - what are the differences/pros/cons between (constructor omitted)
```
public enum Elvis {
INS... | [
0.5414524078369141,
0.2633681297302246,
0.018042320385575294,
-0.27687960863113403,
0.3838919699192047,
0.2838030159473419,
0.26686862111091614,
-0.38830995559692383,
-0.14105109870433807,
-0.6653608083724976,
-0.34924015402793884,
0.5291179418563843,
-0.23612689971923828,
0.47333687543869... | |
}
}
```
and then calling `Elvis.getAge()`
Suppose you're binding to something which will use the properties of any object it's given - you can pass Elvis.INSTANCE very easily, but you can't pass Elvis.class and expect it to find the property (unless it's deliberately coded to find static properties of classes).
Basi... | [
0.47579699754714966,
-0.05365556478500366,
-0.045083291828632355,
-0.025031091645359993,
0.1224474087357521,
-0.4564184546470642,
0.18366847932338715,
0.08121190220117569,
-0.07055576145648956,
-0.6095039248466492,
-0.3660588562488556,
0.5315999388694763,
-0.5112498998641968,
0.16637215018... | |
I am looking for a C/C++ library to convert HTML (Actually XHTML + CSS) documents to PDF.
It is for commercial use and source would be nice but not essential.
Anybody have any recommendations or experience doing this?
UPDATE: To clarify, I am targeting the Windows platform only. I am developing with Borland C++ Buil... | [
0.06606828421354294,
-0.048645008355379105,
0.28171128034591675,
0.0761670246720314,
-0.3757548928260803,
-0.26619619131088257,
-0.1419958472251892,
-0.0892227441072464,
-0.10949842631816864,
-0.741511881351471,
0.10054579377174377,
0.5760583281517029,
-0.0006313470657914877,
-0.1201729401... | |
How to extract a text part by regexp in linux shell? Lets say, I have a file where in every line is an IP address, but on a different position. What is the simplest way to extract those IP addresses using common unix command-line tools?
You could use [grep](http://unixhelp.ed.ac.uk/CGI/man-cgi?grep) to pull them out.
... | [
-0.37057721614837646,
-0.007874974980950356,
0.4717543125152588,
0.20511099696159363,
0.06781764328479767,
0.2009454369544983,
0.09053873270750046,
0.04506266862154007,
-0.1609133630990982,
-0.27402713894844055,
-0.47987794876098633,
0.4830016493797302,
-0.1892893761396408,
0.0060054208151... | |
**Background:** We have an offshore group working up a Silverlight 2 prototype for us. There is the conception that we need to be very concerned with lazy loading of various "screens"/parts of the application. The offshore group has decided to dynamically load assemblies in order to achieve this; however, I would think... | [
0.637407124042511,
-0.052946485579013824,
0.04590339586138725,
0.11355844885110855,
-0.05061790347099304,
-0.11286178231239319,
-0.12720754742622375,
-0.02125653624534607,
-0.43849635124206543,
-0.422820508480072,
0.08902475237846375,
0.4167068600654602,
-0.27296125888824463,
-0.2959998250... | |
However all these bits would be listed initially in the manifest.
However I suspect your partners are thinking in terms of dynamically determining new chunks of the application being downloaded and displayed even after the intial xap has been built.
I don't think you should be too concerned about this, its not actual... | [
0.5922995209693909,
-0.11509740352630615,
0.21880806982517242,
0.4970957338809967,
-0.1494903713464737,
-0.23761244118213654,
0.08416170626878738,
0.39063194394111633,
-0.19670532643795013,
-0.4387109577655792,
0.03272699564695358,
0.5379868745803833,
-0.06661931425333023,
-0.0225518941879... | |
I have a Gridview in which i have two templatefields of dropdownlist. I bound them on runtime with same list item.
```
li = new listitem ("1","1");
dl1.items.add(li);
dl2.items.add(li);
li = new listitem ("2","2");
dl1.items.add(li);
dl2.items.add(li);
li = new listitem ("3","3");
dl1.items.add(li);
dl2.items.add(li... | [
0.12281543761491776,
-0.3246323764324188,
0.504126787185669,
-0.31971475481987,
-0.2780298590660095,
0.04334545135498047,
0.27957040071487427,
-0.7801446914672852,
-0.09989824891090393,
-0.867555558681488,
-0.11696157604455948,
0.4830002188682556,
-0.4455706775188446,
0.11847209930419922,
... | |
ListItem.Selected property is being set to true, and since you are using the same object in both drop-down lists, it is being marked as 'selected' in both.
I'm sure if this was a multi-select list, both "2" and "3" would be marked as 'selected'. | [
0.34409424662590027,
-0.30424144864082336,
0.14403392374515533,
0.06158008053898811,
-0.11867059022188187,
-0.11911872029304504,
0.1384035050868988,
-0.5879184007644653,
-0.3693374693393707,
-0.4962282180786133,
-0.07616427540779114,
0.6227419972419739,
-0.18662290275096893,
0.148766428232... | |
While looking for a light-weight Scala development environment, I came upon an [Scala edit mode](http://github.com/djspiewak/jedit-modes/tree/master/scala.xml) for jEdit. I don't know how to put it to use, though. How does one put a new edit mode in jEdit?
All of this can be found inside jEdit's help, Using jEdit -> Wr... | [
0.5820432305335999,
-0.06372945010662079,
0.2536187469959259,
-0.1252002716064453,
-0.1832258105278015,
-0.0903574675321579,
0.02879592962563038,
-0.3671863079071045,
-0.19011835753917694,
-0.6346962451934814,
0.10510940849781036,
0.7595371007919312,
-0.4602039158344269,
-0.254793047904968... | |
all users, or the "modes" directory in user's jEdit's settings diretory -- which can also be found through the Utilities menu -- if the new mode is to be used by only one user.
After that, edit a file "catalog" inside that same directory. It contains a list of supported modes. If you are working on the settings direct... | [
0.14510184526443481,
-0.023951074108481407,
0.5567816495895386,
0.06445486098527908,
0.08954749256372452,
0.07303733378648758,
0.30024468898773193,
-0.012004592455923557,
0.029852639883756638,
-0.8071057200431824,
-0.33604586124420166,
1.0110551118850708,
-0.3716624081134796,
-0.0939908772... | |
edit mode you add: -->
<!-- <MODE NAME="foo" FILE="foo.xml" FILE_NAME_GLOB="*.foo" /> -->
<MODE NAME="scala" FILE="scala.xml"
FILE_NAME_GLOB="*.scala" />
</MODES>
``` | [
0.11196988075971603,
-0.37855449318885803,
0.7454320192337036,
-0.058405037969350815,
-0.22597496211528778,
-0.08220985531806946,
-0.05306309461593628,
-0.1693463921546936,
-0.34909844398498535,
-0.6872297525405884,
-0.22044530510902405,
0.7581430673599243,
-0.6687414050102234,
0.010875891... | |
I have an application that gets installed with a Wise installer (EDIT: Wise creates a Setup.exe file, not an MSI). Upon installation, an icon is set for a certain file type:
```
HKEY_CLASSES_ROOT\.auz\DefaultIcon = C:\Path\To\App\some_icon.ico,0
```
Right after the installation, however, Explorer chooses to display ... | [
0.35507553815841675,
0.16623704135417938,
0.7128880023956299,
-0.35151219367980957,
0.3103567361831665,
-0.0665617287158966,
0.23773953318595886,
-0.010200472548604012,
0.13675065338611603,
-0.9070944786071777,
-0.2636977732181549,
0.6119790077209473,
-0.4058047831058502,
0.227330401539802... | |
at the registry, the value for **DefaultIcon is exactly the same**.
**This is what I've tried so far**
* Removing all entries from the registry, and writing them myself.
* After the installation, "touching" the value of DefaultIcon, and then launching a small little program that only calls [SHChangeNotify(SHCNE\_ASSO... | [
0.24398557841777802,
-0.20030678808689117,
0.7465117573738098,
-0.1095147430896759,
-0.2639545798301697,
0.07553927600383759,
0.4429109990596771,
0.04759723320603371,
-0.2682376503944397,
-0.7248514890670776,
0.34095439314842224,
0.8307167291641235,
-0.18032130599021912,
0.0211037192493677... | |
change in the registry. I'm pulling my hair off.
**What I would like to avoid**
* Testing with another installer software
* Changing the installation script too much (I don't have Wise itself, as the installer gets built on another machine on demand).
* Embed the icons in the executable.
Any suggestions on how to ge... | [
0.5747348070144653,
0.16092832386493683,
0.46921277046203613,
-0.3672560155391693,
0.042905911803245544,
-0.07681083679199219,
0.502566397190094,
-0.006182340905070305,
-0.14239203929901123,
-1.0394935607910156,
0.16975048184394836,
0.6646878123283386,
-0.10149943083524704,
0.0275944210588... | |
data:'id='+id ,
success: function(data){
$("#response").html(data);
}
});
</script>
``` | [
-0.12548977136611938,
-0.14408084750175476,
0.5239879488945007,
-0.14991360902786255,
-0.002665980951860547,
0.2048231065273285,
0.42497241497039795,
-0.5066498517990112,
-0.06198078766465187,
-0.4047844111919403,
-0.5923837423324585,
0.7002124786376953,
-0.21908806264400482,
-0.0289911832... | |
What I want is, I think, relatively simple:
```
> Bin = <<"Hello.world.howdy?">>.
> split(Bin, ".").
[<<"Hello">>, <<"world">>, <<"howdy?">>]
```
Any pointers?
There is no current OTP function that is the equivalent of `lists:split/2` that works on a binary string. Until [EEP-9](http://www.erlang.org/eeps/eep-0009.h... | [
0.24097375571727753,
-0.1875215470790863,
0.47796663641929626,
-0.09363535791635513,
0.1237490251660347,
-0.061151910573244095,
-0.06346132606267929,
-0.09111668169498444,
-0.41552647948265076,
-0.48303890228271484,
-0.1399693638086319,
0.6408160924911499,
-0.19212061166763306,
0.160369783... | |
Char,
_/binary>> ->
case lists:member(Char, Chars) of
false ->
split(Bin, Chars, Idx+1, LastSplit, Acc);
true -> | [
0.1187356561422348,
-0.21137681603431702,
-0.08696959167718887,
0.06088801100850105,
0.06733445823192596,
0.19786159694194794,
0.15557457506656647,
-0.41919708251953125,
-0.09291558712720871,
-0.27724671363830566,
-0.3090524971485138,
0.4061505198478699,
-0.22346515953540802,
0.17705073952... | |
split(Bin, Chars, Idx+1, Idx+1, [This | Acc])
end;
<<_:LastSplit/binary,
This:Len/binary>> ->
lists:reverse([This | Acc]);
_ ->
lists:reverse(Acc)
end.
``` | [
0.16499219834804535,
-0.2904920279979706,
0.2040645182132721,
-0.24694854021072388,
-0.08365333825349808,
0.04733666032552719,
-0.012903315015137196,
-0.3561493158340454,
-0.48491162061691284,
-0.25616392493247986,
-0.41783028841018677,
0.1602887362241745,
-0.5138903260231018,
0.3238713443... | |
does anyone know how to return a value from a (sql) database into an MSBuild script? I want to get the value into a property so I can pass it to subsequent build tasks.
I am fiddling round with something like the following at the moment, but this is returning -1 to indicate the query has executed successfully, whereas... | [
0.4056706726551056,
0.23168812692165375,
0.3296755850315094,
-0.012069817632436752,
0.20612914860248566,
-0.12431448698043823,
0.1886276751756668,
-0.33702990412712097,
-0.15258492529392242,
-0.4961683452129364,
-0.01870809867978096,
0.6218858361244202,
0.07382012158632278,
0.0651451870799... | |
/>
</SqlExecute>
<Message Text="$(TradeCount)" />
```
It's often easiest to just open up the community tasks in Reflector or check the codebase directly to see how it's intended to be used. | [
0.6712883114814758,
0.17421899735927582,
0.1073659211397171,
-0.022621646523475647,
-0.11539338529109955,
-0.30079013109207153,
0.10509468615055084,
-0.10591217130422592,
0.08972743898630142,
-0.48653459548950195,
0.03786730766296387,
0.42763859033584595,
-0.032903265208005905,
0.058166805... | |
I'm writing a C++ static library that needs to be shared among several applications, one of them written in Perl. Unfortunately, I only barely know the core Perl language (I read the Llama book), and I'm not all that familiar with its libraries. How do you make calls to an external C++ binary from a Perl script?
By Go... | [
0.404350608587265,
0.029730504378676414,
0.3431233763694763,
-0.04173552989959717,
-0.20428840816020966,
0.23041072487831116,
-0.06672883033752441,
-0.08939830958843231,
-0.17715361714363098,
-0.2632903754711151,
0.014105203561484814,
0.5178525447845459,
-0.5379788875579834,
0.064402930438... | |
static library is being cross-compiled for an ARM processor, so there will be no C++ compiler on the target machine where the Perl script will be running. (If that makes a difference.)
You want to look at using XS, which is how Perl normally interfaces with C/C++ libraries. It's not quite trivial. A couple of relevant ... | [
0.07169956713914871,
-0.33106210827827454,
0.37290146946907043,
0.1797330379486084,
-0.2742117643356323,
0.009944930672645569,
-0.021172109991312027,
0.18243308365345,
-0.6159184575080872,
-0.11004618555307388,
-0.076814666390419,
0.13833379745483398,
-0.5045831799507141,
0.071045771241188... | |
I want to re-write a method that has way too many nested `if` statements.
I came up with this approach and wanted your opinions:
```
public void MyMethod()
{
bool hasFailed = false;
try
{
GetNewOrders(out hasFailed);
if(!hasFailed)
CheckInventory(out hasFailed);
if(!hasFailed)
... | [
0.32605189085006714,
0.2005692571401596,
0.20646539330482483,
-0.24135839939117432,
0.26460063457489014,
-0.17108787596225739,
0.3894524574279785,
-0.16215719282627106,
-0.04714610427618027,
-0.39535579085350037,
-0.08579210937023163,
0.5241320133209229,
-0.33448526263237,
0.22246213257312... | |
}
catch(Exception ex)
{
}
finally
{
if(hasFailed)
{
// do something
}
}
}
```
I've done stuff similar to that, but without the exception handling:
```
BOOL ok = CallSomeFunction();
if( ok ) ok = CallSomeOtherFunction();
if( ok ) ok = CallYetAnotherFunction();
if( ok ) ok... | [
0.25834888219833374,
0.11899634450674057,
0.2720670700073242,
-0.15100379288196564,
0.25276312232017517,
-0.2610922157764435,
0.7343509197235107,
-0.25872480869293213,
-0.2502206265926361,
-0.43023040890693665,
-0.22442126274108887,
0.6830573081970215,
-0.1589323878288269,
0.01942361332476... | |
&= CallYetAnotherFunction();
...
```
If you are using exceptions anyway, why do you need the `hasFailed` variable? | [
0.3523032069206238,
0.15734006464481354,
0.3077719211578369,
-0.3780512809753418,
0.33014559745788574,
-0.4357817769050598,
0.14389395713806152,
-0.18959727883338928,
-0.029528528451919556,
-0.12162160873413086,
-0.26363739371299744,
0.6562576293945312,
-0.5107830166816711,
0.0754002109169... | |
I have small problem with my .net 2.0 winforms application.
I want to embed a few different icons to app.
There are also other requirements:
* must be automatic rebuildable by
ms-build; using external gui apps
for preparation isn't allowed
* application must contain versioninfo.
After embeding multiple icons, I want... | [
0.039305273443460464,
0.3292141854763031,
0.5465481877326965,
-0.16315728425979614,
-0.17896543443202972,
0.2312982827425003,
0.34103497862815857,
-0.236835315823555,
-0.32279878854751587,
-0.7668601870536804,
0.10478392988443375,
0.673876941204071,
-0.40304243564605713,
0.0347326546907424... | |
exist in 2008 anymore.
Is it possible to meet all this requirements and if yes - how?
I decided to put all icons into separate old-school plain win32 c++ \*.dll.
It's more convienient and I don't need to do any tricks with versioninfo/win32resources. | [
0.03372644633054733,
0.20499147474765778,
0.6760315299034119,
0.014423740096390247,
-0.03994206711649895,
-0.18649977445602417,
0.17589819431304932,
0.33532437682151794,
-0.26201778650283813,
-0.4207754135131836,
0.0789671242237091,
0.6956859827041626,
-0.1842220276594162,
0.08994800597429... | |
Hmmm, a new odd issue that has just started. Every now and then VS drops a whole bunch of projects from the solution. It will say at the top of Solution explorer "42 projects" when it is displaying only about 20 or so. Closing VS and re-opening it fixes this, although it is a bit of a pain as it takes a little while fo... | [
0.3822518587112427,
-0.08459950238466263,
0.7137739062309265,
-0.002565869828686118,
-0.05138899013400078,
-0.04150281101465225,
0.33448272943496704,
0.07916002720594406,
-0.38562098145484924,
-0.847483217716217,
0.12423649430274963,
0.4569161534309387,
0.13397933542728424,
0.2438931316137... | |
their occasional oOoing and ahhing at its beauty) so i use CTRL+T to find classes but when i've been hitting SHFT + ALT + L to select the item in the solution explorer (to view the history in TFS) it hasn't matched anything which is how i've noticed this issue.
Anyone experienced this before?
Ended up having to do som... | [
-0.08002787828445435,
0.03705824911594391,
0.40624332427978516,
0.10921065509319305,
-0.1584739238023758,
0.16317404806613922,
0.4467943608760834,
-0.05162814259529114,
-0.008350566029548645,
-0.9228471517562866,
-0.038074132055044174,
0.4715089499950409,
-0.3295740485191345,
0.34659978747... | |
CompareColumnIsAutoKey)
{
using (BinaryReader read = new BinaryReader(File.Open(
Path.Combine(DBPath, TableName + ".dbf"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)))
{
// Is it a type of file that I can handle?
if (new byte[] { 0x02, 0x03, 0x30, 0x43, ... | [
0.10150449723005295,
0.0002238525339635089,
0.559762179851532,
-0.24429447948932648,
0.0479518324136734,
0.4671972095966339,
0.15349175035953522,
-0.40688928961753845,
0.1703907549381256,
-0.5561235547065735,
-0.0019826642237603664,
0.46353086829185486,
-0.28951820731163025,
0.169900238513... | |
0xcb, 0xf5, 0xfb }.Contains(read.ReadByte()))
{
// Skip date.
read.BaseStream.Seek(3, SeekOrigin.Current);
// Read useful datas... | [
0.40029802918434143,
-0.04801883548498154,
0.6856048107147217,
-0.14465542137622833,
0.4345668852329254,
-0.17345206439495087,
0.18929371237754822,
-0.42819949984550476,
-0.147484689950943,
-0.35961076617240906,
-0.1517302244901657,
-0.037922799587249756,
-0.44017934799194336,
0.2932279706... | |
uint RecordCount = read.ReadUInt32();
ushort FirstRecord = read.ReadUInt16();
ushort RecordLength = read.ReadUInt16();
int FieldCount = FirstRecord - 296 / 32;
// Make sure things aren't stupid. | [
0.06844006478786469,
-0.2655755281448364,
0.24503099918365479,
-0.04423067718744278,
0.275010347366333,
-0.22198770940303802,
0.6555742025375366,
-0.26159605383872986,
-0.15201795101165771,
-0.4120709002017975,
-0.1860288679599762,
0.7396122813224792,
-0.1867465376853943,
-0.40732508897781... | |
ColumnName = ColumnName.ToLower();
CompareColumnName = CompareColumnName.ToLower();
// Find target column (field)
string temp;
UInt32 CompareFieldOffset = uint.MaxValue, FieldOffset = uint.MaxValue;
byte CompareFieldLength = | [
-0.5338072776794434,
-0.04988592863082886,
0.5648553967475891,
-0.28551891446113586,
0.018222250044345856,
0.33538180589675903,
0.1887987107038498,
-0.12535439431667328,
0.043882548809051514,
-0.40949776768684387,
-0.19248206913471222,
0.6323097944259644,
-0.1485416293144226,
-0.1846630573... | |
0, FieldLength = 0;
char FieldType = ' ';
for (int i = 0; i < FieldCount; i++)
{
read.BaseStream.Seek(32 + (i * 32), SeekOrigin.Begin); | [
0.15030483901500702,
-0.20915566384792328,
0.4842575788497925,
-0.5664734244346619,
0.36601200699806213,
0.04464432969689369,
0.6490319967269897,
-0.6272197365760803,
0.2141103595495224,
-0.2457599937915802,
-0.303178608417511,
0.6076342463493347,
-0.3374904990196228,
-0.01509384997189045,... | |
temp = Encoding.ASCII.GetString(read.ReadBytes(11)).Replace("\0", "").ToLower();
if (temp == CompareColumnName)
{
read.ReadChar(); | [
0.15610644221305847,
-0.04265192523598671,
0.28002920746803284,
-0.17716331779956818,
0.24598249793052673,
0.2501351237297058,
0.38564419746398926,
-0.39558011293411255,
0.025266651064157486,
-0.4692001938819885,
-0.3464576303958893,
0.5181960463523865,
-0.48313912749290466,
0.157885581254... | |
CompareFieldOffset = read.ReadUInt32();
CompareFieldLength = read.ReadByte();
}
if (temp == ColumnName)
{ | [
-0.3311993181705475,
-0.057340703904628754,
0.44782617688179016,
-0.4118039906024933,
0.013365204446017742,
0.04821699112653732,
0.38838809728622437,
-0.19722895324230194,
0.2579348385334015,
-0.38833603262901306,
-0.07955829054117203,
0.9147022366523743,
-0.2054499089717865,
-0.2046695053... | |
FieldType = read.ReadChar();
FieldOffset = read.ReadUInt32();
FieldLength = read.ReadByte();
} | [
-0.2837616503238678,
-0.300808310508728,
-0.006899921223521233,
-0.4267818331718445,
0.2113741934299469,
-0.11659397184848785,
0.3797239661216736,
-0.20657555758953094,
-0.12253526598215103,
-0.1844250112771988,
-0.298996239900589,
0.7863002419471741,
-0.34662649035453796,
-0.1048255041241... | |
if (CompareFieldOffset != uint.MaxValue && FieldOffset != uint.MaxValue)
break;
}
// Make sure we can continue.
if (CompareFieldOffset == uint.MaxValue || | [
-0.13016191124916077,
-0.10933556407690048,
0.40669894218444824,
-0.23100312054157257,
0.4247031807899475,
-0.185313880443573,
0.4492393434047699,
-0.06976088881492615,
0.003737641964107752,
-0.3678198456764221,
-0.305385559797287,
0.7631033062934875,
-0.1720820665359497,
-0.06304167211055... | |
FieldOffset == uint.MaxValue) return null;
// Iterate through each record to find the one we want.
for (int index = 0; index < RecordCount; index++)
{ | [
0.17940500378608704,
-0.30800631642341614,
0.2898111939430237,
-0.2064828723669052,
0.5603867769241333,
0.12975990772247314,
0.11483440548181534,
-0.28685465455055237,
-0.2823368310928345,
-0.33039987087249756,
-0.019930489361286163,
0.6233999729156494,
-0.42347827553749084,
0.032867468893... | |
read.BaseStream.Seek(FirstRecord + (index * RecordLength) + CompareFieldOffset, SeekOrigin.Begin);
temp = Encoding.Default.GetString(read.ReadBytes(CompareFieldLength)).Replace("\0", "");
if (temp == CompareValue)
{ | [
0.06177088990807533,
-0.24357886612415314,
0.4666650593280792,
-0.2507873475551605,
0.24793481826782227,
0.06490010768175125,
0.37665700912475586,
-0.4133698642253876,
0.053214140236377716,
-0.5142696499824524,
-0.2539505064487457,
0.6086098551750183,
-0.34297049045562744,
0.02858980931341... | |
read.BaseStream.Seek(FirstRecord + (index * RecordLength) + FieldOffset, SeekOrigin.Begin);
switch (FieldType)
{
case 'M': | [
-0.038267865777015686,
-0.22114217281341553,
0.30274081230163574,
-0.4092499017715454,
0.5359907746315002,
0.005160152912139893,
0.4877219796180725,
-0.48865801095962524,
-0.12468267232179642,
-0.26601701974868774,
-0.31079381704330444,
0.6418325901031494,
-0.3331279158592224,
0.1898550838... | |
case 'I': return read.ReadUInt32();
case 'C':
default: return Encoding.Default.GetString(read.ReadBytes(FieldLength)).Replace("\0", ""); | [
-0.20862935483455658,
-0.08696722239255905,
0.173502117395401,
-0.15687620639801025,
0.4945856034755707,
0.04020630195736885,
0.17645737528800964,
-0.2719632387161255,
0.019711622968316078,
-0.415513277053833,
-0.7092565298080444,
0.6444047689437866,
-0.5043681263923645,
0.0110999559983611... | |
}
}
}
}
else
{
return null; | [
-0.31900233030319214,
0.09098848700523376,
-0.04105604439973831,
-0.4407050311565399,
0.31302839517593384,
-0.11780136078596115,
0.31153711676597595,
0.3048095107078552,
0.3454301059246063,
-0.08876306563615799,
-0.36573436856269836,
0.8622573614120483,
-0.37387537956237793,
0.041605129837... | |
}
}
return null;
}
```
Just grab the result from that and use it as an index into the memo file (that code is pretty simple using the MSDN documentation). | [
-0.12762296199798584,
0.19121158123016357,
0.0819215178489685,
-0.02891586907207966,
0.27778521180152893,
-0.3446906805038452,
0.2186461091041565,
0.024562254548072815,
0.19365468621253967,
-0.6186634302139282,
-0.29355862736701965,
0.5651772618293762,
-0.20409831404685974,
0.2086362689733... | |
I'm designing a database of statistics about the operation of mechanical equipment. Each batch of data will contain hundreds of statistics, so I'm trying to decide whether to create a single table with hundreds of columns or to split it up into multiple tables, each containing related statistics. For example, I could h... | [
0.7103137373924255,
0.19343610107898712,
0.24971792101860046,
0.47363752126693726,
0.4024640917778015,
0.4732793867588043,
-0.23851121962070465,
-0.29691165685653687,
-0.4623299241065979,
-0.4212973713874817,
0.27624040842056274,
0.34631097316741943,
-0.23195146024227142,
0.297261983156204... | |
performance benefits to splitting things up? It seems like querying a table with a few dozen columns would probably be faster than querying one with hundreds of columns.
Does anyone have any experience with this sort of thing? I'm using Oracle for this project, although this is something I'll likely run into with out ... | [
0.5387006998062134,
0.11198493093252182,
-0.010724629275500774,
0.49324434995651245,
0.09735792875289917,
-0.10938946902751923,
0.014667356386780739,
-0.1166742816567421,
-0.6481946110725403,
-0.4773101508617401,
0.37626510858535767,
0.5491787195205688,
-0.041048675775527954,
-0.0851598754... | |
a jam just a kind of malfunction anyway?)
Is your design normalised? Presumably you don't have columns like "jam1", "jam2", etc.?!
Assuming the design is good and normalised, the decision as to whether to have one wide table or many narrower ones is a trade-off between various factors:
* Do all/most records have sta... | [
0.33583736419677734,
0.0016578445211052895,
0.2029784768819809,
0.35723403096199036,
-0.06341361999511719,
-0.06142900511622429,
0.456679105758667,
-0.11177368462085724,
-0.8254323601722717,
-0.5839352607727051,
-0.08139850944280624,
0.30125951766967773,
-0.5003965497016907,
-0.02262269146... | |
likely to hit any database limits e.g. max 1000 columns per table?
Whichever way you go, you can use views to present the alternative structure for the convenience of the developer:
* One table: many views that select stats of particular types
* Many tables: a view that joins all the tables together
Update
------
F... | [
0.16021563112735748,
0.08117615431547165,
0.3778732717037201,
0.23551113903522491,
0.06802687048912048,
0.061896514147520065,
0.26022768020629883,
-0.16309122741222382,
-0.6253914833068848,
-0.9626763463020325,
0.21364350616931915,
0.381487637758255,
-0.37282684445381165,
0.067676410079002... | |
machines
, stat_group -- 'jams', 'malfunctions' etc.
, stat_name -- 'under the hood', 'behind the door' etc.
, stat_count
);
```
As someone commented below, these allows you to sum stats more easily - within or across stat types. It is also easily extended if a new stat needs to be added to a stat type. | [
0.22174952924251556,
-0.12862157821655273,
0.24191798269748688,
0.4023967981338501,
-0.0629844143986702,
-0.03774993121623993,
0.055837370455265045,
-0.26414066553115845,
-0.4577900171279907,
-0.7917500734329224,
-0.01158168539404869,
0.2611156702041626,
-0.14638742804527283,
0.21881826221... | |
I posted this question: <https://stackoverflow.com/questions/418597/java-and-net-for-php-programmer> and the answers I was given didn't really help me out.
I read a few of the tutorials at sun.
The basic syntax I understand. The thing I don't understand and really need to (because I think my company is going to tell ... | [
0.439015656709671,
0.3144463300704956,
-0.045473698526620865,
-0.11510253697633743,
-0.3054719567298889,
-0.23060010373592377,
0.31877684593200684,
0.06539713591337204,
-0.17128199338912964,
-0.6036689281463623,
0.28331783413887024,
0.4185180068016052,
-0.20555813610553741,
-0.104402773082... | |
I also get asked what frameworks I want.
I don't know any java frameworks (I do know about spring but never really worked with it).
Is there no simple tutorial on how to do some java for the web??? I never had these much problems when I was first introduced to php :(
Someone help me out, or at least point me in a goo... | [
0.3529303967952728,
-0.13724517822265625,
0.013119839131832123,
0.12643009424209595,
-0.4287225902080536,
-0.1503150910139084,
0.30024686455726624,
0.10784634202718735,
-0.5251525044441223,
-0.687855064868927,
0.037948060780763626,
0.6327187418937683,
-0.26893848180770874,
-0.1142987012863... | |
the back end Java code goes, there is no difference between that and a desktop application. The only thing that you are changing is the user interface. One of the biggest challenges with switching to a web interface is the fact that it is stateless by design. | [
0.15768827497959137,
0.058041565120220184,
0.07608827948570251,
0.23288960754871368,
0.030911313369870186,
-0.30638307332992554,
0.431229829788208,
0.4353044331073761,
-0.1809288114309311,
-0.9325048923492432,
0.08842861652374268,
0.4455621838569641,
-0.27653002738952637,
0.277162402868270... | |
I have a datalist control which some controls(ex: button) are in it. I want to write some code into click event of button which is in the datalist control. But in the code behind page I can't see the name of controls into datalist. How can I solve this problem?
If you don't want to add a handler to all the child events... | [
0.13106656074523926,
0.0035517618525773287,
0.34240689873695374,
0.046210091561079025,
0.23724877834320068,
0.30045729875564575,
0.13104994595050812,
-0.6413673758506775,
-0.11534586548805237,
-0.6047272086143494,
0.1351926624774933,
0.4723045229911804,
-0.371686726808548,
0.16085697710514... | |
Given you have the following class (bad C#, but you get the drift):
```
public abstract class AmICircular
{
// assume Children is never null
private List<AmICircular> Children {get;set;}
// assume target is never null
public void Add(AmICircular target)
{
target.PerformCircularReferenceCheck(this);
... | [
0.21449905633926392,
-0.061579834669828415,
0.16916392743587494,
0.06227150186896324,
0.16970713436603546,
-0.007609362248331308,
0.2120257318019867,
-0.19076065719127655,
-0.2349054366350174,
-0.6426048278808594,
-0.07664614915847778,
0.5567489862442017,
-0.2700997591018677,
0.02777765132... | |
wondering if there are better, proven effective, ways to do this, such as adding a method to collapse the entire Children tree of references for `this` and `target` and then examine the results (less pressure on the stack?), or perhaps avoid the check entirely by using a different (maybe self-checking!) collection othe... | [
0.327096551656723,
-0.053315360099077225,
0.039250005036592484,
0.40792176127433777,
-0.15582554042339325,
0.03700517863035202,
0.39095908403396606,
-0.19318000972270966,
-0.30756574869155884,
-0.4655737280845642,
0.023407135158777237,
0.24917301535606384,
-0.3726688623428345,
0.3257977664... | |
of the of the IAmCircular class describes a node with a set of direct successor nodes = Children.
Assuming the precondition that up to this moment, no cycle was created, the function you want, PerformCircularReferenceCheck, needs only to check if "this" is reachable from "target". If it is, it should return an excepti... | [
-0.5478416085243225,
0.04161311313509941,
0.17943713068962097,
0.032000452280044556,
-0.08817138522863388,
0.2533702254295349,
0.03996586054563522,
-0.4022798538208008,
-0.2808399796485901,
-0.700157880783081,
-0.24910716712474823,
0.39420515298843384,
-0.5989852547645569,
0.32407513260841... | |
it, where n is the number of nodes.
Also, being NL-complete, it is unlikely that there exists an algorithm which runs in space O(log n) (i.e. use only a constant number of pointers to nodes), since that would imply the unlikely NL = L. EDIT: in particular, small variations of the hare and turtle algo suggested by some... | [
-0.1540810614824295,
-0.3163439631462097,
0.1742578148841858,
0.1986915022134781,
0.16085398197174072,
0.0426272451877594,
0.10482586920261383,
0.04133313521742821,
-0.3749507963657379,
-0.5791629552841187,
-0.3099791705608368,
0.4029950201511383,
-0.24741840362548828,
-0.04356132820248604... | |
the set is important. Otherwise, if you just recursively verify if "this" is reachable by any successor of "target", you risk to run in exponential time.
I recommended the O(n) time/O(n) space algorithm because it is asymptotically the best you can do time-wise, and you are already using O(n) space for your data struc... | [
-0.09386178106069565,
-0.07552938163280487,
0.17393217980861664,
0.11963710933923721,
0.2296362668275833,
0.013563070446252823,
0.15323029458522797,
-0.2793329358100891,
0.07903654128313065,
-0.6931329369544983,
-0.12719221413135529,
0.4700402319431305,
-0.18249458074569702,
0.029247922822... | |
I am trying to accomplish something that seemed quite simple...
I have 3 `div`s that contain a radiobutton and some content:
```
Content of DIV1,
[] this can be as long or as tall
as wanted
[] Content of DIV2
[] Content of DIV3
```
It's easy to create rounded corners for each div using any techni... | [
0.2499716579914093,
0.18948955833911896,
0.5770971775054932,
-0.09472154825925827,
-0.2537187933921814,
-0.20389583706855774,
-0.0048421286046504974,
-0.12460237741470337,
-0.03507952392101288,
-0.45340004563331604,
0.02206050232052803,
0.5689579248428345,
-0.06749043613672256,
0.032615076... | |
hovers over it. Has anyone seen an example of this being done somewhere?
**Edit**: I'm already using Prototype and Scriptaculous. I can't add jQuery just for this.
this changes the CSS with jquery on the hover of a div
```
print("<div id="output" class="div"></div>
<script>
jQuery(document).ready(function() {
... | [
0.00872925017029047,
0.12418288737535477,
0.9736639261245728,
-0.0816425308585167,
0.3816472887992859,
0.086735799908638,
-0.5519094467163086,
-0.009502250701189041,
-0.0947762206196785,
-0.8285272121429443,
-0.18918277323246002,
0.2181755006313324,
-0.026312800124287605,
0.228592664003372... | |
I upgraded a website I've been working on (<http://barsannapolis.com>) to a CSS Layout, and things appeared to go well for the most part. The site renders correctly in Firefox, Chrome, IE 7, and Safari, but the design appears to be complete borked in IE 6. Does anybody have any guidance regarding how to get the problem... | [
0.36279740929603577,
0.15125015377998352,
0.30981042981147766,
-0.32606378197669983,
-0.14415256679058075,
-0.06088375300168991,
0.3672522008419037,
0.4732888638973236,
-0.12472428381443024,
-0.8991708159446716,
0.12837307155132294,
0.4658433198928833,
0.0008420810918323696,
-0.01856764219... | |
usually double padding, esp. if your floated boxes aren't lining up ("dropping").
You can hack IE6 with `width:30px; _width: 20px;` in your stylesheet, where the \_ rule at the end is the IE6 'adjustment' you wish to make. That works for all the rules, across the board.
But every time I had a problem, it was usually ... | [
0.6527921557426453,
-0.12518733739852905,
0.46496662497520447,
-0.07033644616603851,
-0.0865122452378273,
-0.09039981663227081,
0.12826651334762573,
0.130074605345726,
-0.7215532064437866,
-0.7665899991989136,
-0.1466972529888153,
0.3475361764431,
-0.08412148058414459,
-0.15512202680110931... | |
We need a user control that can show Microsoft Office files (Word, Excel..). There is no need for editing them.
As I can see, there are available standalone viewer applications that can be downloaded from [Microsoft site](http://www.microsoft.com/Downloads/details.aspx?familyid=3657CE88-7CFA-457A-9AEC-F4F827F20CAC&dis... | [
0.3282376527786255,
0.14324858784675598,
0.49202868342399597,
0.2400907427072525,
0.1370827853679657,
-0.1713598370552063,
-0.03953796997666359,
0.13948489725589752,
-0.09740918129682541,
-0.8609397411346436,
-0.2009902149438858,
0.4720984399318695,
-0.041706278920173645,
0.256200551986694... | |
register the Office COM components.) As far as I can interpret the license (I'm not a lawyer but have had to read and discuss my share of EULAs over the years), you are *NOT* allowed to use anything provided by the Office viewers in your application. The relevant clause of the license (right at the start):
1. INSTALLA... | [
0.7803264260292053,
0.2951340079307556,
0.6028401851654053,
-0.07737153023481369,
0.5098313689231873,
-0.30241283774375916,
0.03625210374593735,
-0.025250501930713654,
-0.09621939808130264,
-0.4919947683811188,
-0.24746772646903992,
0.5166232585906982,
-0.21795912086963654,
0.0851299837231... | |
other purpose.**
I'd steer clear of gray areas in Microsoft licensing. What you want might not be expressly forbidden ($deity knows EULAs are a pain to interpret), but it's definitely not allowed by the spirit of the license. Since you might get taken to court if they want to, and since clarifying gray areas costs a l... | [
0.7253298759460449,
0.43551045656204224,
-0.009414817206561565,
0.13430239260196686,
0.4025188088417053,
-0.43093031644821167,
0.25867271423339844,
0.14431607723236084,
-0.030261199921369553,
-0.3307338058948517,
-0.09194847196340561,
0.6244273781776428,
-0.1296798437833786,
-0.07583419978... | |
How do I draw a class in UML that uses a web service?
You could also use [WSDL (Web Services Description Language) UML profile](http://webservices.xml.com/lpt/a/1259) with the appropriate WSDL stereotypes.
That would give for example:
```
--------------------
| <<wsdl:service>> |
--------------------
| MyWebService... | [
0.13427960872650146,
-0.038297925144433975,
0.535854697227478,
0.052504971623420715,
-0.3814539909362793,
0.2443254292011261,
0.22978878021240234,
-0.23659420013427734,
-0.13324758410453796,
-0.6291072368621826,
-0.01959151215851307,
0.40368223190307617,
-0.10842498391866684,
-0.0307915620... | |
I'm trying to enforce integrity on a table in a way which I do not think a Constraint can...
```
CREATE TABLE myData
(
id INTEGER IDENTITY(1,1) NOT NULL,
fk_item_id INTEGER NOT NULL,
valid_from DATETIME NOT NULL,
invlaid_from DATETIME | [
0.01882273145020008,
0.36798784136772156,
0.4949391484260559,
-0.13424493372440338,
0.1323978155851364,
-0.05325730890035629,
0.09265763312578201,
-0.16052180528640747,
-0.4245719313621521,
-0.3931869864463806,
0.09017980098724365,
0.04452821612358093,
-0.39907538890838623,
0.4068265855312... | |
NOT NULL
)
```
The constraint I want to apply is that there should never be any entries for the same "fk\_item\_id" with overlapping dates.
Note:
invalid\_from is the instant immediately after the valid period.
This means that the following two periods are fine...
* '2008 Jan 01 00:00' -> '2008 Feb 01 00:00' (... | [
-0.08236827701330185,
0.2756826877593994,
0.7834838628768921,
-0.10869275778532028,
-0.03431035205721855,
-0.2843192219734192,
0.41946151852607727,
-0.283133327960968,
-0.3671277165412903,
-0.06644654273986816,
-0.1386607438325882,
0.37359970808029175,
-0.21794334053993225,
0.4254507124423... | |
*inserted* includes two valid records and two invalid records, can I stop just the two invalid records?)
Cheers,
Dems.
**EDIT:**
In the case I had above, a constraint using a function worked well. But I never worked out why the RAISERROR didn't work in the trigger version.
I thought it was because the trigger ... | [
0.38165178894996643,
0.27692124247550964,
0.5743076801300049,
0.010474873706698418,
-0.09127675741910934,
0.10183639079332352,
0.06596659868955612,
-0.5499518513679504,
-0.4362483620643616,
-0.3646058142185211,
0.09214363992214203,
0.748479962348938,
-0.09950230270624161,
0.124979354441165... | |
int null, val varchar(20))
Go
create trigger after on [dbo].triggertest
for Update
as
Begin
delete tt from triggertest tt inner join
inserted i on tt.id = i.id
where i.id = 9
End
GO
insert into triggertest values (1,'x')
insert into triggertest values (2,'y')
Update triggertest set id = 9 where id = ... | [
-0.028601540252566338,
-0.09834468364715576,
0.5085623264312744,
-0.19660444557666779,
0.0020091389305889606,
0.08118297904729843,
0.21800726652145386,
-0.6918502449989319,
-0.03016108274459839,
-0.41023948788642883,
-0.10755758732557297,
0.8198947906494141,
-0.3727392554283142,
-0.2081954... | |
I was looking at this article from 2005 and wanted to get some thoughts on it, advantages and disadvantages that the article does not point out about ViewState and Cache?
<http://www.codersource.net/asp_net_viewstate_versus_data_caching.aspx>
That article is poor - why confuse the Cache and Viewstate in the same artic... | [
0.3476945161819458,
0.2535155117511749,
0.07613421231508255,
0.2374623864889145,
-0.2626103460788727,
0.16812491416931152,
-0.005304491613060236,
-0.10292503237724304,
0.02519773133099079,
-0.5096585154533386,
0.23533986508846283,
0.5036950707435608,
-0.043251004070043564,
0.09907600283622... | |
an essential technique for improving performance of both individual page requests and a site as a whole. | [
0.0800972729921341,
0.018258316442370415,
0.19365805387496948,
0.07655733078718185,
0.09079800546169281,
-0.3205469250679016,
0.33154618740081787,
0.05652526393532753,
-0.2763175666332245,
-0.788425087928772,
-0.4821057617664337,
0.03874394670128822,
0.24140363931655884,
0.1140966117382049... | |
I was wondering what is the best way (if at all possible) to determine on the server side if a given HttpRequest was sent via ajax?
This may or may not help you out, but you can at least determine if the postback is an asynchronous one (meaning that it was likely sent via ajax). You can do this via the following:
```
... | [
0.021345121785998344,
-0.32861602306365967,
0.310396283864975,
0.13338272273540497,
-0.3571522831916809,
-0.22054101526737213,
0.31344088912010193,
-0.0183499027043581,
-0.44497209787368774,
-0.7616474032402039,
-0.016389945521950722,
0.28536176681518555,
-0.06530407816171646,
-0.045114904... | |
I mean to name ids, names, values, etc?
While I don't think there is a single, accepted naming conventions for naming HTML elements, you might find the following article helpful. The content starting on page two is probably most helpful. Good luck!
**[The Meaning of Semantics Take II: Naming Conventions for Class and ... | [
0.3438224494457245,
-0.026920806616544724,
0.3991539776325226,
0.07487551867961884,
-0.23038391768932343,
-0.17169000208377838,
0.3467485308647156,
0.23196399211883545,
-0.39225468039512634,
-0.6259539723396301,
0.021001920104026794,
0.1980980634689331,
0.1144246980547905,
0.05684267356991... | |
few folks, there really aren't
> a lot of problems with this kind of
> naming.
>
>
> However, consider a site the size of
> AOL or Yahoo, on which large teams of
> designers and developers manage
> millions of pages every day. And let's
> say that a design decision from high
> on up the corporate ladder is mad... | [
0.11211490631103516,
0.18214042484760284,
0.16794581711292267,
0.3655454218387604,
0.008247863501310349,
-0.29734617471694946,
0.13422223925590515,
0.4312019646167755,
-0.4294965863227844,
-0.948573648929596,
-0.1466825157403946,
0.1886126846075058,
-0.2590998411178589,
0.17131738364696503... | |
switching the navigation would
> require is to go into the CSS and swap
> the column by repositioning it or
> floating it right instead of left.
> Save that file and then millions of
> documents are updated to reflect the
> change.
>
>
> But now, millions of documents also
> have a division with an ID of #left... | [
-0.21712276339530945,
-0.24207629263401031,
0.6652183532714844,
0.23250648379325867,
-0.003576117567718029,
-0.10023902356624603,
-0.0045958589762449265,
0.06098570302128792,
-0.30054140090942383,
-0.8863554000854492,
0.04834896698594093,
0.32309138774871826,
-0.3489929735660553,
0.0899898... | |
source, or (more importantly) comes in
> to work on the site.
>
>
> This is why avoiding presentation and
> choosing a more relevant description
> as simple as #nav or #subnav will be
> more useful in that kind of
> environment. So, even if it might seem
> a bit nitpicky, for very large sites
> we want to try ... | [
0.30419325828552246,
0.05358514562249184,
-0.029432548210024834,
0.4832974970340729,
-0.09815952181816101,
-0.4806728959083557,
0.3336981236934662,
0.1182270273566246,
0.06340859830379486,
-1.1288145780563354,
-0.3389638662338257,
0.432218074798584,
-0.0804947167634964,
0.01864692382514476... | |
I have a VS solution that contains 6 library projects and 1 web folder project.
When I try to use the "Find All References" feature on an object or method, it takes more than 6 minutes to finish !
It seems to be refactoring every **aspx** & **ascx** file of the web project.
Any idea on how to make it faster ?
You di... | [
0.4716836214065552,
-0.12988106906414032,
0.79225754737854,
0.14281074702739716,
-0.36955922842025757,
-0.10072581470012665,
0.5147049427032471,
-0.15824003517627716,
-0.3777410686016083,
-0.7967825531959534,
0.18261997401714325,
0.6103101968765259,
-0.014864997006952763,
-0.04518298432230... | |
which
> optimizes performance in web projects
> by first performing a lexical search
> of the element being refactored to
> determine if the page needs to be
> loaded. I apologize for it taking us
> so long to update this issue with the
> resolution; there were several connect
> bugs that were related and while... | [
0.06235458329319954,
0.13316601514816284,
0.27659180760383606,
0.016492780297994614,
-0.01520631555467844,
-0.14985166490077972,
0.32867565751075745,
-0.516818106174469,
-0.10719216614961624,
-0.5108871459960938,
0.047804683446884155,
0.5644101500511169,
-0.28171059489250183,
-0.2149017155... | |
drastically increase performance
> in most cases.
Also, this solution kinda sucks, but MS offered this workaround too:
> With respect to workarounds you can
> increase the performance fairly
> significantly if you open all of the
> web pages prior to performing the
> refactoring. I agree that it isn't a
> parti... | [
0.009022779762744904,
-0.13095103204250336,
0.46534284949302673,
0.17597386240959167,
-0.31054240465164185,
-0.02840735949575901,
0.42824190855026245,
-0.10670173913240433,
-0.29808148741722107,
-0.5213330388069153,
0.32501038908958435,
0.6027452349662781,
-0.014355222694575787,
0.03864135... | |
I'm looking for a perfect text editor :)
The "must have" list:
* vim-like modal editing, keybindings similar to vim
* emacs like extendibility - same "real" language for plugins and the editor itself, so that the extension can affect almost anything in the editor and outside... vim script is not enough, python plugin... | [
0.20750433206558228,
-0.07319792360067368,
0.6299967765808105,
-0.0026004489045590162,
0.11493339389562607,
-0.029329868033528328,
0.3083375096321106,
-0.18744365870952606,
0.1116999089717865,
-0.742831826210022,
-0.04672202095389366,
0.7416266798973083,
-0.28799885511398315,
-0.0207448750... | |
through the "what's it's colour" path (synIDattr(synID(line("."), col("."), 1), "name") is a no-no)
* remote editing possible (but that is probably already guaranteed by the plugins + extendibility points)
I know about viper emacs, but I'm not sure whether I like the idea...
Does anyone know about something better?
C... | [
0.44006532430648804,
-0.17732980847358704,
0.34270918369293213,
-0.15309447050094604,
0.07012909650802612,
-0.019782258197665215,
0.5386616587638855,
0.45455268025398254,
-0.09345796704292297,
-0.28643766045570374,
-0.06879571080207825,
0.6065586805343628,
-0.0006838917033746839,
0.0924038... | |
time I'm editing configs / dsls with my own syntax files.
Sometimes I do need a kind-of-refactoring plugin for things that I do frequently. I have a proof that it can be done in vim, but it's real pain... You can't request a "previous token in parse tree" for example. The best that you can do is go back char-by-char a... | [
0.25115156173706055,
0.2040504664182663,
0.041337572038173676,
-0.23225750029087067,
-0.1872822791337967,
0.09391119331121445,
0.4652639627456665,
0.04821121320128441,
-0.4188534915447235,
-0.9785637855529785,
0.1542724370956421,
0.5546202659606934,
0.14400418102741241,
0.1854112297296524,... | |
need to have a second terminal just to run something and copy the output to vim. I can't run :!r... because it hangs every tab in vim until the command is finished.
Ah - and linux + console only - I'm not interested in windows world :)
Found it after all :)
<http://haskell.org/haskellwiki/Yi>
Yi supports both vim (w... | [
0.16054432094097137,
-0.21684841811656952,
0.5841764211654663,
0.03832005336880684,
-0.28964439034461975,
-0.19982858002185822,
0.36137330532073975,
-0.04581504315137863,
-0.1322748214006424,
-0.7226333618164062,
0.09850798547267914,
0.7422230839729309,
-0.2650657594203949,
-0.049272760748... | |
of days and I'm really happy with it. | [
0.4466046690940857,
0.08710549771785736,
0.18422721326351166,
0.019553260877728462,
-0.05459032952785492,
-0.34684044122695923,
0.14710034430027008,
0.6481644511222839,
-0.11889343708753586,
-0.401020348072052,
0.02062986232340336,
0.36422407627105713,
0.11470697075128555,
0.37312355637550... | |
I'm using SQL Server 2005 and would like to know how I can get a list of all tables with the number of records in each.
I know I can get a list of tables using the `sys.tables` view, but I'm unable to find the count.
Thank you
From here: <http://web.archive.org/web/20080701045806/http://sqlserver2000.databases.aspfaq... | [
-0.07572747766971588,
0.23809611797332764,
0.45923975110054016,
-0.15457703173160553,
-0.3155434727668762,
-0.07444299757480621,
0.16074414551258087,
-0.3335241973400116,
-0.4120808243751526,
-0.49565425515174866,
0.07061764597892761,
0.348060667514801,
-0.165627583861351,
0.14255692064762... | |
so.name
ORDER BY
2 DESC
``` | [
0.1315251737833023,
0.5036345720291138,
0.223908931016922,
-0.12016887217760086,
-0.028490781784057617,
-0.026587579399347305,
0.10873516649007797,
-0.0667709931731224,
-0.22065015137195587,
-0.42730841040611267,
-0.5471773147583008,
0.12979212403297424,
-0.04035959020256996,
0.33456960320... | |
I hope I can explain this clearly enough. I have my main form (A) and it opens 1 child form (B) using form.Show() and a second child form (C) using form.Show(). Now I want child form B to open a form (D) using form.ShowDialog(). When I do this, it blocks form A and form C as well. Is there a way to open a modal dialog ... | [
0.43582576513290405,
0.22502420842647552,
0.5787072777748108,
-0.2069186419248581,
-0.06175101920962334,
0.15220056474208832,
0.08912693709135056,
-0.16476458311080933,
0.13369809091091156,
-0.5773359537124634,
-0.27880942821502686,
0.062054213136434555,
-0.28068408370018005,
0.18773871660... | |
trivial investment of work of course.
You can have the dialog not block any threads at all by simply running Form D's ShowDialog call on a separate thread. This requires the same kind of work, but much less of it, as you'll only have one form running off of your app's main thread. | [
0.4974643588066101,
-0.004925973247736692,
0.29854944348335266,
0.39672669768333435,
0.03982836753129959,
0.11394274234771729,
-0.03647268936038017,
-0.09856819361448288,
-0.07283627241849899,
-0.4277729094028473,
0.1837935745716095,
0.7338404059410095,
-0.37106648087501526,
-0.27653011679... | |
This is my first time with Web services. I have to develop web services in java which should be having good WS-\* standards, should loosely-coupled, scalable, highly secure, fast response time. I know I've to consider trade-offs. I have checked on some frameworks like Axis2, CXF, Spring WS. Please share your experience... | [
0.559410572052002,
-0.045750051736831665,
-0.0339016355574131,
0.056975722312927246,
-0.11503218859434128,
-0.12299881130456924,
0.1673983782529831,
-0.33713847398757935,
-0.17309066653251648,
-0.8319097757339478,
-0.03953348100185394,
0.49514147639274597,
-0.011947235092520714,
-0.2085157... | |
SOA using jax-ws. | [
0.33878013491630554,
0.06853204220533371,
-0.13397864997386932,
0.11887282133102417,
0.009377343580126762,
-0.2899968922138214,
-0.012611545622348785,
-0.21785999834537506,
0.07053415477275848,
-0.17944979667663574,
-0.08054713904857635,
0.2646411061286926,
-0.33485665917396545,
-0.2911024... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.