text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
DisplayMemberBinding="{Binding Path=Name}" />
</GridView.Columns>
</GridView>
</ListView.View>
</ListView>
```
ValueConverter:
```
public class IndexConverter : IValueConverter
{
public object Convert(object value, Type TargetType, object parameter, CultureInfo culture)
{
ListViewItem ite... | [
0.05526392161846161,
-0.10114801675081253,
0.9510098695755005,
-0.23303081095218658,
-0.2349155843257904,
0.13829511404037476,
0.18834851682186127,
-0.366615355014801,
-0.2696229815483093,
-0.6758382320404053,
-0.37153661251068115,
0.5181923508644104,
-0.38931286334991455,
0.34746992588043... | |
culture)
{
throw new NotImplementedException();
}
}
``` | [
0.43009135127067566,
-0.09406065940856934,
0.5592236518859863,
-0.03539618104696274,
0.0993572399020195,
-0.3016332685947418,
0.2748163342475891,
-0.022370528429746628,
0.23624764382839203,
-0.47438955307006836,
-0.30742213129997253,
0.591892659664154,
-0.4256334900856018,
0.30533525347709... | |
I'm working on a project that has to connect to some ancient webservices that pack some hierarchical data for requests and responses into single strings of hierarchical XML.
I've been using xsd.exe to generate XSDs from sample request and response XML fragments, modifying them where necessary to be the best possible ... | [
0.46700042486190796,
0.15353214740753174,
0.08270289748907089,
0.147464320063591,
-0.1533902883529663,
-0.04976995661854744,
-0.2249959111213684,
-0.22298061847686768,
-0.11789092421531677,
-0.4947148263454437,
0.07711412757635117,
0.4338861405849457,
-0.3455280065536499,
0.293002426624298... | |
those.
If I have, say, a list of strings, I can have a valid XSD that considers it a complex type of an unbounded xs:choice of xs:string elements, and then it will deserialize simply to a string array, which is nice and simple to deal with. The annoying problem is that for some reason, there doesn't seem to be any way... | [
0.2722649574279785,
0.1601177603006363,
0.2985303997993469,
0.14896970987319946,
-0.30130651593208313,
-0.28176677227020264,
0.09203323721885681,
-0.24070246517658234,
-0.4138803780078888,
-0.7101996541023254,
-0.14460769295692444,
0.5719146728515625,
-0.3207743167877197,
0.303547501564025... | |
<xs:element name="AccountStatusRequest">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded" id="AccountRowIDs">
<xs:element nillable="true" type="xs:string" id="AccountRowID" name="AccountRowID"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:... | [
-0.27145031094551086,
0.1978195756673813,
0.41496342420578003,
-0.12233076989650726,
-0.08807189762592316,
0.37472832202911377,
0.15585380792617798,
-0.2956542372703552,
-0.3302720785140991,
-0.418185293674469,
-0.232721745967865,
0.5169166922569275,
-0.05956907942891121,
0.153117895126342... | |
get {
return this.itemsField;
}
set {
this.itemsField = value;
}
}
}
```
I've tried adding pretty much every msdata: attribute in intellisense to both the choice and the inner element, and nothing makes a difference.
Just for the sake of argument, I added a couple ... | [
-0.19488807022571564,
-0.141278475522995,
0.35568809509277344,
0.08532563596963882,
0.1766122579574585,
0.1629025787115097,
0.15913602709770203,
-0.10536042600870132,
0.08101347088813782,
-0.7124261856079102,
-0.17145276069641113,
0.6472625136375427,
-0.12753240764141083,
-0.02965083345770... | |
see if that would force it to use a name for the string arrays, but instead it gave me *Items*, *Items1*, *Items2*...
I really don't want it to have to be an array of its own type that only holds a string, but I also really don't want to leave it called "*Items*", without xml comments (does anyone know how to add THOS... | [
0.29358309507369995,
-0.10952287167310715,
0.15263323485851288,
0.20531247556209564,
-0.3546716868877411,
-0.029514163732528687,
0.17975322902202606,
-0.04527782276272774,
-0.38928383588790894,
-0.5202511548995972,
0.01206753496080637,
0.30781862139701843,
-0.2811141312122345,
0.2001070380... | |
from them.
This seems like another one of those things xsd.exe should support. Is there something I'm missing? Should I take a different approach somehow? Or is there an alternative tool I can use for this instead that's less lame?
Edit: sorry I missed the previous answer somehow - it worked for me - here's the schema... | [
-0.05300270766019821,
0.26801925897598267,
0.4873574674129486,
0.048119399696588516,
-0.09078901261091232,
-0.15418027341365814,
0.2942917048931122,
-0.2679445445537567,
-0.2762224078178406,
-0.6235102415084839,
-0.049076780676841736,
0.5535895824432373,
-0.27360332012176514,
-0.2015690505... | |
minOccurs="0" maxOccurs="unbounded" id="AccountRowIDs">
<xs:element nillable="true" type="xs:string" id="AccountRowID" name="AccountRowID"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
public partial class AccountStatusRequest {
private string[] accountRowID... | [
-0.25285500288009644,
0.03878520056605339,
0.4584823548793793,
-0.12884004414081573,
-0.04400515928864479,
0.33643829822540283,
0.34038105607032776,
-0.023824116215109825,
-0.029814206063747406,
-0.6369089484214783,
-0.2673693895339966,
0.6761503219604492,
0.022640863433480263,
0.081956550... | |
}
set {
this.accountRowIDField = value;
}
}
}
```
Hi there, I changed the schema somewhat, substituting the choice with a list wrapped by a simpleType and an attribute, which produced the desired output (a named string array). However, I'm not sure if the altered schema is appropriate ... | [
-0.01793861575424671,
0.11936479061841965,
0.5586627125740051,
-0.2598290741443634,
-0.08932781964540482,
-0.04237522557377815,
0.18158303201198578,
-0.3483431041240692,
-0.3127805292606354,
-0.3501555621623993,
0.0595012828707695,
0.6478767395019531,
-0.2809014320373535,
-0.21860289573669... | |
<xs:complexType>
<xs:attribute name="AccountRowIDs">
<xs:simpleType id="AccountRowID" >
<xs:list itemType="xs:string">
</xs:list>
</xs:simpleType> | [
-0.3867432475090027,
-0.01940484531223774,
0.476001501083374,
-0.25611305236816406,
-0.17348165810108185,
0.2636902332305908,
0.14337961375713348,
-0.41296687722206116,
-0.17250646650791168,
-0.33650052547454834,
-0.12140316516160965,
0.7256357073783875,
-0.19500432908535004,
-0.1779353916... | |
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
```
..and the output after running it with xsd.exe:
```
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.Desi... | [
-0.13226361572742462,
0.1729440540075302,
0.5285391807556152,
-0.09444411098957062,
-0.024981170892715454,
0.23065580427646637,
0.4851628839969635,
-0.34690117835998535,
-0.07443244755268097,
-0.53409743309021,
-0.2576322853565216,
0.6206509470939636,
-0.1636468768119812,
-0.01017807889729... | |
this.accountRowIDsField = value;
}
}
}
``` | [
-0.10454124212265015,
0.20297974348068237,
0.2803598642349243,
-0.30169183015823364,
0.29498836398124695,
-0.32351192831993103,
0.4064441919326782,
0.03688130900263786,
-0.10006119310855865,
-0.33327826857566833,
-0.06951963156461716,
0.8631370067596436,
-0.2544708549976349,
0.274175763130... | |
I will be teaching a course on the fundamentals of programming next Fall, first year computer science course. What are the pros and cons of teaching pointers in such a course? (My position: they should be taught).
**Edit:** My problem with the "cater your audience" argument is that in the first couple of years in Univ... | [
0.5457779169082642,
0.17592035233974457,
0.5626629590988159,
0.09832273423671722,
-0.05994885787367821,
-0.26293519139289856,
0.27475011348724365,
0.22181616723537445,
0.010427366010844707,
-0.513293981552124,
-0.0659417062997818,
0.6401377320289612,
0.6929163336753845,
0.05877792462706566... | |
decision:** At least references, but possibly pointers without pointer arithmetic.
At the very least you should teach references or some equivalent concept. I think you should probably take it easy on things like pointer arithmetic, c arrays and strings, but indirection is a very important concept in computer science, ... | [
0.25253912806510925,
0.2749566435813904,
0.041627008467912674,
0.39501631259918213,
-0.15317995846271515,
-0.16980379819869995,
-0.04223714396357536,
0.16368688642978668,
-0.11516132950782776,
-0.5097291469573975,
-0.07952942699193954,
0.40367087721824646,
0.20525555312633514,
-0.202733948... | |
I am looking for a way to accomplish the following: A user programs some drum loops in flash and is somehow able to download or save an mp3 of the loop.
I thought that the pattern could be composted on the server side. Then a link to the file is sent to the user.
I had thought there might be something like imageGD or... | [
1.0202518701553345,
0.14227469265460968,
-0.1603703796863556,
0.13793793320655823,
0.06575912237167358,
-0.11904533952474594,
0.029805757105350494,
0.22163787484169006,
-0.4391140937805176,
-0.49264419078826904,
0.23268365859985352,
0.5025358200073242,
-0.3923308551311493,
0.08949171751737... | |
could be done in processing, but I am totally unfamiliar with that.
How might this sort of thing might be accomplished?
Take a look at [SoX](http://sox.sourceforge.net/).
SoX is a cross-platform (Windows, Linux, MacOS X, etc.) command line utility that can convert various formats of computer audio files in to other f... | [
0.5774680376052856,
-0.08920998126268387,
0.06062037870287895,
0.270962119102478,
-0.11762045323848724,
-0.383848637342453,
-0.04187436401844025,
0.019054729491472244,
0.06901026517152786,
-0.4992232024669647,
-0.06172909587621689,
0.6492351293563843,
-0.07446560263633728,
-0.0021654292941... | |
Is there a way to cache per-request data in Rails? For a given Rails/mongrel request I have the result of a semi-expensive operation that I'd like to access several times later in that request. Is there a hash where I can store and access such data?
It needs to be fairly global and accessible from views, controllers, ... | [
-0.03424310311675072,
-0.0016104504466056824,
-0.1283082216978073,
0.22116993367671967,
-0.18118585646152496,
0.07133112102746964,
0.4105856716632843,
0.17910999059677124,
-0.28247541189193726,
-0.7525048851966858,
0.3102956712245941,
0.4860675632953644,
-0.38666293025016785,
0.06409437954... | |
isn't what I want.
* Instance variables don't work because I want to access the data from inside different classes.
Try [PerRequestCache](http://gist.github.com/177780). I stole the design from the SQL Query Cache.
Configure it up in `config/environment.rb` with:
```
config.middleware.use PerRequestCache
```
then u... | [
0.30230045318603516,
0.11620287597179413,
0.25182467699050903,
0.05623104050755501,
0.24019719660282135,
0.23771660029888153,
0.2474953979253769,
-0.2669838070869446,
0.022779949009418488,
-0.6148549914360046,
0.18629294633865356,
0.5573435425758362,
-0.6018305420875549,
0.4779187440872192... | |
From the Windows command prompt I generate a text file of all the files in a directory:
```
dir c:\logfiles /B > config.txt
```
Output:
```
0001_832ec657.log
0002_a7c8eafc.log
```
I need to feed the "config.txt" file to another executable, but before I do so, I need to modify the file to add some additional infor... | [
0.054572124034166336,
0.282010555267334,
0.6136327981948853,
-0.2976936995983124,
0.21629172563552856,
-0.050683967769145966,
0.37799692153930664,
-0.107666976749897,
-0.2669939398765564,
-0.5838936567306519,
-0.3547443747520447,
0.9477396607398987,
-0.42856845259666443,
0.1304405480623245... | |
use `'` as string delimiters, only `"`. What you're doing is equivalent to:
```
perl -p -i.bak -e "'s/log/log,XYZ/g'" config.txt
```
so `-w` is complaining "you gave me a string but it does nothing".
The solution is to use double quotes instead:
```
perl -p -i.bak -e "s/log/log,XYZ/g" config.txt
```
or to simply... | [
0.3122566342353821,
0.22167763113975525,
0.3282293975353241,
-0.05435692146420479,
0.03498801216483116,
-0.17860503494739532,
0.6153562068939209,
0.13601356744766235,
-0.14006172120571136,
-0.20199346542358398,
-0.27717235684394836,
0.7122370004653931,
-0.4285815358161926,
0.19441540539264... | |
world!\n)"
``` | [
0.15449418127536774,
0.4185646176338196,
0.5483180284500122,
-0.3096979558467865,
0.22776268422603607,
-0.06877179443836212,
0.38633477687835693,
0.15074145793914795,
-0.3938184678554535,
-0.6006355881690979,
-0.46952369809150696,
0.4626133143901825,
-0.5679859519004822,
0.5279091000556946... | |
This is almost certainly something really silly that I've overlooked but I'm stumped. The following C# style expression is supposed to match phones numbers (a limited subset of them, but this is just testing...):
```
^[0-9]{3}-[0-9]{3}-[0-9]{4}$
```
The search string is as follows:
```
978-454-0586\r\nother junk\r\... | [
0.33218443393707275,
0.23714567720890045,
0.44606664776802063,
0.010361586697399616,
0.17329682409763336,
-0.17962133884429932,
0.22667445242404938,
0.12929433584213257,
-0.17006108164787292,
-0.47584468126296997,
-0.24832917749881744,
0.335451602935791,
-0.0973375216126442,
-0.02790514938... | |
line" and "end of line" respectively. Get rid of them if you want to match in the middle of a line. | [
0.29749053716659546,
-0.2549988329410553,
0.3662913739681244,
0.12106603384017944,
-0.24502232670783997,
0.01583637110888958,
0.4786027669906616,
-0.03532353416085243,
-0.11689508706331253,
-0.5150452852249146,
-0.1674586981534958,
0.3714172840118408,
-0.2657921612262726,
-0.10865936428308... | |
Few questions on ORM mappers like nhibernate (for .net/c# environment).
1. When queries are run against a sqlserver database, does it use parameter sizes internally?
paramaters.Add("@column1", SqlDataType.Int, 4)
2. Do they all use reflection at runtime? i.e. hand coding is always a tad faster?
3. does it support tem... | [
-0.013420463539659977,
-0.09447506815195084,
0.3501986861228943,
0.2822516858577728,
-0.2919189929962158,
-0.07630433887243271,
0.23092330992221832,
-0.12878307700157166,
-0.3477543294429779,
-0.6016745567321777,
0.33598771691322327,
0.4818360507488251,
-0.2583613097667694,
-0.221636757254... | |
take advantages of various features like, deffered execution, future queries (queries executed in a future moment), multiple queries, and last but not least, session management involves in this area:
1. Deferred execution is based on concepts like lazy-loading and lazy execution, this means that queries are executed ... | [
-0.030559994280338287,
-0.41678184270858765,
0.32313087582588196,
0.31000998616218567,
-0.2693482041358948,
-0.17114832997322083,
0.3027309477329254,
-0.24116897583007812,
-0.2260994017124176,
-0.4969483017921448,
0.1317257583141327,
0.7303436994552612,
-0.22081643342971802,
0.079730667173... | |
speaks well about that
3. Multiple queries are queries that can be "packed" together and executed in one time avoiding multiple roundtrips to the DB, and this could be a very cool feature
4. Session Management, this is another chapter to mention... but take in mind that if you manage well your session, or better, let... | [
-0.015202254988253117,
-0.07324708998203278,
0.11103267222642899,
0.26927879452705383,
-0.5983043313026428,
-0.21513228118419647,
0.3923344910144806,
-0.40873783826828003,
-0.20135672390460968,
-0.45800477266311646,
0.035919439047575,
0.9353899955749512,
-0.1394203156232834,
-0.08324394375... | |
DB Dialect you choose!
1. It's clear that frameworks like NHibernate, most of the time, use reflection at runtime, but it's needed to mention the multiple Reflection optimization are used, see for example **Dynamic Proxies**... It's clear that somethime, or maybe all the time direct code could be faster, but just in t... | [
0.18346941471099854,
-0.13057290017604828,
0.04843481257557869,
-0.18841668963432312,
-0.9711761474609375,
-0.20111681520938873,
0.5072713494300842,
-0.27774667739868164,
0.1401720941066742,
-0.6140076518058777,
0.17707058787345886,
0.7109484076499939,
-0.387946218252182,
-0.27932745218276... | |
the sense of Runtime tables, but this could be done because NHibernate permit to create object mapping at runtime, so a mechanism of Temp data could be implemented using that api
I hope I provided an usefull answer!
...and oops, sorry for my bad english! | [
0.11451232433319092,
0.024602536112070084,
0.1266556978225708,
0.24966824054718018,
-0.4122670292854309,
-0.23453205823898315,
0.4399072229862213,
0.33895277976989746,
-0.16237773001194,
-0.4015481173992157,
0.03150686249136925,
0.2931876480579376,
-0.192299023270607,
0.044594455510377884,... | |
How do I implement Auto-Scrolling (e.g. the ListView scrolls when you near the top or bottom) in a Winforms ListView? I've hunted around on google with little luck. I can't believe this doesn't work out of the box!
Thanks in advance
Dave
Scrolling can be accomplished with the [ListViewItem.EnsureVisible](https://msdn.m... | [
0.10063671320676804,
-0.2367475926876068,
1.1615335941314697,
0.06227181851863861,
-0.04189576208591461,
-0.04788985103368759,
0.4532305896282196,
-0.27931487560272217,
-0.12311767786741257,
-0.6559204459190369,
-0.11707309633493423,
0.847771942615509,
-0.1869429349899292,
-0.0533289276063... | |
listView.GetItemAt(point.X, point.Y);
if (item == null)
return;
var index = item.Index;
var maxIndex = listView.Items.Count;
var scrollZoneHeight = listView.Font.Height;
if (index > 0 && point.Y < scrollZoneHeight)
{
listView.Items[index - 1].EnsureVisible();
}
else if ... | [
0.5199803709983826,
-0.5023187398910522,
0.8815001249313354,
0.03211338818073273,
0.1761540025472641,
-0.06259256601333618,
0.33108118176460266,
-0.7143294215202332,
-0.022482797503471375,
-0.21738918125629425,
-0.12353524565696716,
1.0156750679016113,
-0.12931211292743683,
0.0132753672078... | |
this method to the DragOver event.
```
targetListView.DragOver += RevealMoreItems;
targetListView.DragOver += (sender, e) =>
{
e.Effect = DragDropEffects.Move;
};
``` | [
0.17634688317775726,
-0.46114614605903625,
0.7392474412918091,
-0.15703760087490082,
-0.008746054954826832,
-0.011787962168455124,
0.31745803356170654,
-0.431194931268692,
-0.08670863509178162,
-0.5811731815338135,
-0.30567654967308044,
0.6352469325065613,
-0.44445741176605225,
0.029084833... | |
I'm trying to find a definitive answer and can't, so I'm hoping someone might know.
I'm developing a C++ app using GCC 4.x on Linux (32-bit OS). This app needs to be able to read files > 2GB in size.
I would really like to use iostream stuff vs. FILE pointers, but I can't find if the large file #defines (\_LARGEFILE\... | [
0.144144669175148,
0.43311747908592224,
0.44269225001335144,
-0.16848434507846832,
0.1330292522907257,
0.09317538142204285,
0.03842194005846977,
0.15349604189395905,
-0.26454904675483704,
-0.8946648836135864,
-0.007509248796850443,
0.6117088198661804,
-0.5360670685768127,
-0.16766397655010... | |
`c++config.h`.
If in doubt, pass your executable (or `libstdc++.so`, if linking against it dynamically) through `readelf -r` (or through `strings`) and see if your binary/`libstdc++` linked against `fopen`/`fseek`/etc. or `fopen64`/`fseek64`/etc.
**UPDATE**
You don't have to worry about the 2GB limit as long as you ... | [
0.11459220200777054,
0.026304516941308975,
0.5093585252761841,
-0.10733802616596222,
0.1607513129711151,
-0.27417877316474915,
0.057900771498680115,
0.07684096693992615,
-0.3467142581939697,
-0.6135542988777161,
-0.4956795871257782,
0.75288987159729,
-0.41465502977371216,
-0.28240597248077... | |
I had a work for the university which basically said:
"Demonstrates that the non-regular language L={0^n 1^n : n natural} had no infinite regular sublanguages."
I demonstrated this by contradiction. I basically said that there is a language S which is a sublanguage of L and it is a regular language. Since the possib... | [
-0.026561107486486435,
-0.026265867054462433,
-0.007798593956977129,
-0.1457456648349762,
-0.24691995978355408,
0.35268887877464294,
0.2719559073448181,
0.14210255444049835,
-0.15609833598136902,
-0.6251529455184937,
-0.4360313415527344,
0.2327267974615097,
-0.4702622890472412,
-0.11003736... | |
the prove per se, I just want to be pointed in the right direction.
L = {0^n 1^n : n natural} is non-regular context free.
M = 2\*3\* is infinite regular.
N = L∪M is non-regular context free. N contains M. | [
-0.35389500856399536,
0.07367099076509476,
0.11895716935396194,
-0.2689918279647827,
0.06618029624223709,
0.06334767490625381,
0.41990020871162415,
-0.23253773152828217,
0.11326462775468826,
-0.22535215318202972,
-0.4720466136932373,
0.4982587993144989,
-0.136368066072464,
0.14369137585163... | |
I am concatenating a number of variables and I want to save that string as a file path.
Is there a way it will automatically create all appropriate directories if they don't exist without having to check "if exists" on each one
For example.
```
"C:\" + a + "\" + b+ "\" + d + "\" + d + ".txt"
```
Use `new FileInfo(p... | [
0.39365431666374207,
-0.08609988540410995,
0.3586120009422302,
0.06990954279899597,
0.3985176682472229,
-0.32261306047439575,
0.004349722061306238,
-0.08837365359067917,
-0.11233624815940857,
-0.5893765091896057,
-0.20692786574363708,
0.58321613073349,
-0.38082414865493774,
0.1886295974254... | |
I want to be able to store, retrieve, and modify a small amount of textual data (< 2 mb) as a CSV online. What service should I use to be able to do this programatically (in Java)?
Try Google Spreadsheets ([Java API Reference](http://code.google.com/apis/spreadsheets/docs/2.0/developers_guide_java.html)). You can [uplo... | [
0.5369958281517029,
0.3128971457481384,
0.48520898818969727,
-0.05616264417767525,
-0.08140825480222702,
-0.053557418286800385,
0.03583410009741783,
-0.04619746282696724,
-0.3865888714790344,
-0.8623647093772888,
-0.11860188841819763,
0.36942675709724426,
-0.26608848571777344,
0.0134846679... | |
Does ruby allow you to treat warnings as errors?
One reason I'd like to do this is to ensure that if heckle removing a line of code means that a warning occurs, I have the option of ensuring that the mutant get killed.
There is unfortunately no real way of doing this, at least not on most versions of Ruby out there (v... | [
0.4276127219200134,
0.08283314853906631,
0.05746157467365265,
-0.21668167412281036,
-0.25063201785087585,
-0.16785219311714172,
0.7309054136276245,
0.14163856208324432,
-0.16705293953418732,
-0.3359450399875641,
0.023759502917528152,
0.3790895640850067,
-0.4239254593849182,
0.3032857179641... | |
to be used consistently by Ruby to report warnings (including internal e.g. parsing warning), *but*
* **methods implemented natively** (in C) inside Ruby will in turn directly invoke a native method called `rb_warn` from `source/server.c`, completely **bypassing your redefinition of `Kernel.warn`** (e.g. the "`string l... | [
0.2276196926832199,
0.04588766023516655,
0.0049201566725969315,
-0.1716618686914444,
-0.09043123573064804,
-0.1702023148536682,
0.6804981231689453,
0.005624590441584587,
-0.22881604731082916,
-0.4749591648578644,
-0.32142606377601624,
0.5780332684516907,
-0.4890425205230713,
0.225412577390... | |
warnings generated by your application code's calling `Kernel.warn` then **simply redefine `Kernel.warn`. Otherwise, you have exactly two options**:
1. alter `source/error.c` to exit in `rb_warn` and `rb_warning` (and `rb_warn_m`?), and rebuild Ruby
2. monitor your program's standard error output for '`: warning:`', a... | [
0.21233199536800385,
0.24758614599704742,
0.20496022701263428,
-0.23792724311351776,
0.06875750422477722,
0.007329569198191166,
0.602462649345398,
-0.0904119536280632,
-0.014577768743038177,
-0.5408643484115601,
-0.15817108750343323,
0.9023540616035461,
-0.6095593571662903,
0.3413287699222... | |
Here's my reqiurements:
1. Supports C#
2. Supports Oracle
3. Supports LINQ
4. Has ability to map business objects to database tables (not necessarily a 1-to-1 mapping)
I know an Oracle Entity Framework provider would support all these, but I've been told that making the custom mappings is not very easy.
What would ... | [
0.28176549077033997,
0.026361174881458282,
0.31169143319129944,
0.15717902779579163,
-0.2234271913766861,
-0.20128744840621948,
-0.13148784637451172,
0.10400702059268951,
0.007097406312823296,
-0.4438875615596771,
0.2154601514339447,
0.5757074952125549,
-0.06521384418010712,
-0.06004841253... | |
I thought I really understood this, and re-reading the standard (ISO 9899:1990) just confirms my obviously wrong understanding, so now I ask here.
The following program crashes:
```
#include <stdio.h>
#include <stddef.h>
typedef struct {
int array[3];
} type1_t;
typedef struct {
int *ptr;
} type2_t;
type1_... | [
0.23460529744625092,
0.10456335544586182,
0.16781850159168243,
-0.39194902777671814,
-0.007444252260029316,
0.19316136837005615,
0.5845183730125427,
-0.412968248128891,
-0.11972261220216751,
-0.2984577417373657,
-0.17252764105796814,
0.4276823103427887,
-0.49451711773872375,
0.240814432501... | |
// 0
printf("my_test.array[0] = %d\n", my_test.array[0]);
printf("type1_p->array[0] = %d\n", type1_p->array[0]);
printf("type2_p->ptr[0] = %d\n", type2_p->ptr[0]); // this line crashes
return 0;
}
```
Comparing the expressions `my_test.array[0]` and `type2_p->ptr[0]` according to my interpretatio... | [
-0.10104735195636749,
0.09795475751161575,
0.3603110909461975,
-0.24512770771980286,
0.10003851354122162,
0.26867690682411194,
0.29510173201560974,
-0.6537089347839355,
0.1792350858449936,
-0.3228088915348053,
-0.35133567452430725,
0.42589035630226135,
-0.1938159465789795,
-0.1235405802726... | |
`my_test` has.
Further:
> 6.2.2.1 Lvalues, arrays, and function designators
>
>
> "Except when it is the operand of the
> sizeof operator or the unary &
> operator, ... , an lvalue that has
> type `array of type` is converted to
> an expression with type `pointer to
> type` that points to the initial
> elemen... | [
0.16042210161685944,
0.20186829566955566,
0.1295783668756485,
-0.08257904648780823,
0.033051975071430206,
0.09847258031368256,
0.2647915482521057,
-0.33933669328689575,
0.30130529403686523,
-0.6860811710357666,
-0.091606505215168,
0.3340969383716583,
-0.12990155816078186,
0.019944820553064... | |
is at the same address that the first element in the array.
And finally
> 6.5.2.1 Structure and union specifiers
>
>
> A pointer to a structure object,
> suitably converted, points to its
> initial member ..., and vice versa.
> There may be unnamed padding within a
> structure object, but not at its
> beginnin... | [
-0.07316876947879791,
0.0558779202401638,
0.2443101704120636,
-0.11841092258691788,
-0.11044445633888245,
0.007650667801499367,
-0.07215551286935806,
-0.3042295575141907,
-0.10194800794124603,
-0.5872640013694763,
-0.39710545539855957,
0.015282828360795975,
-0.37280386686325073,
0.15245246... | |
same address that the first
element in the array and thus is identical to `*my_test.array`.
But this cannot be the case, because the program crashes consistently
on solaris, cygwin and linux with gcc versions 2.95.3, 3.4.4
and 4.3.2, so any environmental issue is completely out of the question.
Where is my reasoning ... | [
0.22072306275367737,
0.015714367851614952,
0.11460595577955246,
-0.043565619736909866,
-0.03733760491013527,
0.06467679888010025,
0.38812509179115295,
-0.12453292310237885,
-0.010964159853756428,
-0.40962567925453186,
0.06635348498821259,
0.33296841382980347,
-0.45365110039711,
0.317652404... | |
is an actual datatype stored in the struct. Therefore, when you perform the cast, you are probably\* making ptr take on the value of the first element in the array, namely 1.
\*I'm not sure this is actually defined behavior, but that's how it will work on most common systems at least. | [
0.29785582423210144,
-0.23931512236595154,
0.10090894997119904,
-0.19264668226242065,
-0.24719607830047607,
0.1197599545121193,
0.21425890922546387,
-0.3203393518924713,
0.13317978382110596,
-0.29641106724739075,
-0.014508718624711037,
0.45398423075675964,
-0.28146669268608093,
-0.17245087... | |
I'm developing a website with Ruby on Rails and I have a div with some content. After clicking a link I want that content to get replaced with some other stuff. This works fine with replace\_html and rjs.
However, I'd prefer there to be a slight fade/appear (crossfade?) transition between the old and new content. Also... | [
0.6514155864715576,
0.11463570594787598,
0.13410000503063202,
0.11682048439979553,
-0.11062018573284149,
-0.21675333380699158,
0.3113594651222229,
0.34018754959106445,
-0.1868893951177597,
-0.7880738377571106,
0.3097982704639435,
0.573756217956543,
-0.29242900013923645,
0.2520515024662018,... | |
this if you have a Basecamp account: login and click "All people" then "Add a new company" to see the effect in action.
Anyone know how to do this? Thanks!
Brian
To crossfade, you need to position your new content absolutely, and with the same x/y coordinates as the old content. Here's a tested example:
```
page.inse... | [
0.2763479948043823,
0.08529382944107056,
0.7764888405799866,
0.011363638564944267,
0.1792391985654831,
-0.2964889705181122,
0.1927589476108551,
-0.15411201119422913,
-0.42288583517074585,
-0.617449939250946,
-0.22150622308254242,
0.4515986144542694,
-0.167046457529068,
-0.18021757900714874... | |
});
JS
page['old-content'].fade :duration => 3
page['new-content'].appear :duration => 3
```
Note the big block in the middle—some things are easier in Prototype than in RJS. | [
-0.19339080154895782,
-0.2478187084197998,
0.2656109929084778,
-0.3797854483127594,
-0.18825477361679077,
-0.21084050834178925,
0.492460161447525,
-0.1861632764339447,
-0.05518904700875282,
-0.5819833874702454,
-0.5730080604553223,
0.27323442697525024,
-0.2639409899711609,
-0.1049141511321... | |
Using Visual Studio 2005.
Is there anything in the .sln or .vcproj files (or anywhere else) that defines the project type / subtype?
Edit: What I mean is that when you create a project, you first choose a language (e.g. Visual C#), then a project type (e.g. Windows) and then a subtype (e.g. Console Application).
Wh... | [
0.07507093250751495,
-0.011057894676923752,
0.3684576749801636,
-0.2919228672981262,
-0.509861946105957,
0.14375030994415283,
0.4425205588340759,
-0.046844083815813065,
-0.045005109161138535,
-0.4622202515602112,
-0.01575814187526703,
0.6487063765525818,
-0.24780163168907166,
-0.2267319560... | |
Windows C# and the subtype is as per @HardCode's reply. In my case, it's "Console Application". | [
0.09593480080366135,
0.17763954401016235,
0.48684656620025635,
-0.266989529132843,
-0.0930435061454773,
-0.28319352865219116,
-0.04335756599903107,
0.648523211479187,
-0.029974892735481262,
-0.43832385540008545,
-0.6063809990882874,
0.47594499588012695,
-0.36858800053596497,
0.233763039112... | |
I have searched but cant find this question anywhere. My wife and I are about to take on iPhone development and we've only got the funds to purchase one iMac 24" to do this. Anyone out there with iPhone development experience know if two different Apple developer accounts can be profiled on one development Mac? Not onl... | [
0.6176923513412476,
0.5080011487007141,
0.17915694415569305,
-0.020122317597270012,
0.3330743610858917,
0.09770189225673676,
0.15595291554927826,
0.008217795751988888,
-0.18915468454360962,
-0.6384103298187256,
0.31809309124946594,
0.44842031598091125,
0.11831409484148026,
-0.2109597325325... | |
under her own profile (not seeing mine and vice-versa). Time sharing wont be an issue as I work from home while she works away from home and we'll be able to figure out that part no problem.
Please understand that we're both completely new to the Mac, OS X as well as the iPhone development arena and so we have no idea... | [
0.6452954411506653,
-0.10507161915302277,
0.34215837717056274,
0.28536707162857056,
0.4379480183124542,
0.20740944147109985,
0.24937757849693298,
-0.05326468124985695,
-0.030995376408100128,
-0.4932893216609955,
0.20705550909042358,
0.612829864025116,
0.25890761613845825,
-0.05985749512910... | |
way. We would rather not and just share one iMac between two developer accounts and IDE profiles.
**UPDATE:** My wife and I invested in a 24" iMac from Best Buy utilizing a 12 month no-interest offer, which made it the choice over the 20" iMac. Its got plenty of RAM (4G out of 8G max) and HD space (640G) and we're get... | [
0.6123961806297302,
0.11621704697608948,
0.6335251331329346,
0.2815689444541931,
0.4407297670841217,
0.17739543318748474,
-0.04125107079744339,
0.1592826396226883,
0.0258138719946146,
-0.6698330044746399,
0.07609906047582626,
0.5574840903282166,
0.1802903115749359,
0.003974045626819134,
... | |
intuitive and we were highly impressed at the whole un-box and setup time of about 8 minutes! So far, so good.
Sure. Just make two user accounts on the iMac. Easy! | [
0.3539777994155884,
0.10108674317598343,
0.36405494809150696,
0.48595955967903137,
0.055294524878263474,
-0.053773313760757446,
0.4167930483818054,
0.40681490302085876,
0.11598580330610275,
-0.6136975884437561,
0.2882215082645416,
0.8775896430015564,
0.12298428267240524,
-0.284317165613174... | |
Lets say we have a negative integer say
int a;
is there a faster implementation of
-a?
Do I have to do some bitwise operation on this?
To clarify Pax's statement,
C++ compilers are not mandated to use two's complement, except in 1 case. When you convert a signed type to an unsigned type, if the number is negative, t... | [
0.2227514684200287,
0.033109646290540695,
0.009206114336848259,
-0.12360365688800812,
-0.32660308480262756,
0.056872934103012085,
0.3535129129886627,
-0.13096141815185547,
0.018849113956093788,
-0.6341168284416199,
0.043479952961206436,
0.5778350830078125,
-0.4626936614513397,
-0.313215255... | |
work on the bottlenecks.
See *The C++ Programming Language, 3rd Ed.*, section C.6.2.1. | [
0.2237141728401184,
0.15221314132213593,
0.014105069451034069,
0.025306876748800278,
0.3025331199169159,
-0.47078096866607666,
0.1302420049905777,
-0.12800809741020203,
-0.18440382182598114,
-0.13047105073928833,
-0.19679225981235504,
0.7337316870689392,
0.02464822307229042,
-0.32444804906... | |
I am trying to find the official (or a good enough) reason that the free store is commonly referred to as the heap.
Except for the fact that it grows from the end of the data segment, I can't really think of a good reason, especially since it has very little to do with the heap data structure.
Note: Quite a few peop... | [
0.8470659852027893,
0.0913735181093216,
-0.09746643155813217,
0.37179088592529297,
-0.14083802700042725,
-0.1213919147849083,
0.008075426332652569,
0.42594340443611145,
-0.37021100521087646,
-0.4397495985031128,
-0.1303381621837616,
-0.16295015811920166,
-0.16536611318588257,
0.65702134370... | |
underneath, everything else collapses on it, etc. In other words, to me heap sounds loosely organized (e.g., latest things are on top). This is not exactly how a heap actually works on most computers, though if you put stuff towards the beginning of the heap and then grew it I guess it could work.
Knuth rejects the ter... | [
-0.011621068231761456,
0.0972060039639473,
-0.2974108159542084,
0.267604798078537,
-0.04349016025662422,
-0.06703208386898041,
-0.1209009662270546,
-0.04654544219374657,
-0.5560216307640076,
-0.5806220173835754,
0.08563797175884247,
-0.0065783788450062275,
0.1032237857580185,
0.42430922389... | |
to priority queues. (*Fundamental Algorithms, 3rd ed.*, p. 435) | [
-0.35570552945137024,
-0.6610667109489441,
-0.054293856024742126,
0.22672097384929657,
0.2278117686510086,
0.4474529027938843,
-0.2154240906238556,
-0.0371856726706028,
-0.6699879765510559,
-0.40610092878341675,
-0.444413423538208,
0.2551409900188446,
-0.4659251272678375,
-0.16762726008892... | |
I'm trying to implement localization with routes
I have the following:
```
routes.MapRoute( "DefaultLocalized",
"{lang}/{controller}/{action}/{id}",
new { controller = "Home",
action = "Index",
id = "", | [
-0.36867737770080566,
-0.2953718602657318,
0.6337798237800598,
0.008723126724362373,
0.11145170778036118,
0.1491633802652359,
0.11439083516597748,
0.10406035929918289,
-0.20646318793296814,
-1.0634750127792358,
-0.031042955815792084,
0.0749850794672966,
-0.5234676599502563,
0.0168104618787... | |
lang = "en" }
);
routes.MapRoute( "Default",
"{controller}/{action}/{id}",
new { controller = "Home", | [
-0.3893517851829529,
-0.49323245882987976,
0.5464226007461548,
0.02359403483569622,
0.25565218925476074,
0.14115653932094574,
0.06466194242238998,
-0.07838623970746994,
-0.23897607624530792,
-1.0386115312576294,
-0.4951947033405304,
0.05753299593925476,
-0.4996221363544464,
-0.022137057036... | |
action = "Index",
id = "" }
);
```
When I call my page `domain/en/home/index`, it works fine but when i call `domain/home/index` I get error 404: resource cannot be found.
Also when I'm at `domain/en/home/index` and I click a secured page I get redirected to `domain/Account/logi... | [
-0.2605610191822052,
-0.2832416296005249,
0.5926058292388916,
-0.026266690343618393,
0.12369588762521744,
0.06949825584888458,
0.5192058086395264,
-0.29612067341804504,
-0.7821160554885864,
-0.48774802684783936,
-0.31867125630378723,
0.5180935263633728,
-0.3249344825744629,
-0.026691412553... | |
to `domain/en/home/error`?
The real question is how can I implement localization with language as a route parameter?
You could also introduce a constraint even tighter than Marc Gravell and Freddy Rios.
something like "en|de|fr|es". This would mean hardcoding the languages but usually these are few and known. | [
0.1186317726969719,
0.14443106949329376,
0.061533328145742416,
0.2469160556793213,
-0.11766107380390167,
-0.2990175187587738,
0.4641895294189453,
0.16754542291164398,
-0.19127637147903442,
-0.5507140755653381,
0.11290625482797623,
0.42102745175361633,
-0.28413093090057373,
0.27352532744407... | |
I'm having a strange problem. I have the following code:
```
dbg("condwait: timeout = %d, %d\n",
abs_timeout->tv_sec, abs_timeout->tv_nsec);
ret = pthread_cond_timedwait( &q->q_cond, &q->q_mtx, abs_timeout );
if (ret == ETIMEDOUT)
{
dbg("cond timed out\n");
return -ETIMEDOUT;
}... | [
0.05492030829191208,
0.0699000358581543,
0.5857851505279541,
-0.24465826153755188,
0.25148627161979675,
0.10703877359628677,
0.5288794040679932,
-0.014231536537408829,
-0.13271579146385193,
-0.6383880376815796,
-0.25956419110298157,
0.42346423864364624,
-0.2527651786804199,
0.5436278581619... | |
timed out
```
As you can see, only 7 microseconds passed in between the two debug lines, yet `pthread_cond_timedwait` returned `ETIMEDOUT`. How can this happen? I even tried setting the clock to something else when initializing the cond variable:
```
int ret;
ret = pthread_condattr_init(&attributes);
if (ret != 0) p... | [
0.3218821585178375,
-0.2837204933166504,
0.4075438976287842,
-0.3851932883262634,
0.07869253307580948,
0.15235741436481476,
0.6786355972290039,
-0.36423811316490173,
-0.18586893379688263,
-0.3091799020767212,
-0.03513326868414879,
0.6052223443984985,
-0.47215139865875244,
0.076744012534618... | |
on this queue in 5 seconds, something else happens. The mutex and the cond are both initialized, as the blocking queue works fine if I don't use `pthread_cond_timedwait`.
pthread\_cond\_timedwait takes an absolute time, not a relative time. You need to make your wait time absolute by adding to the current time to your ... | [
0.31856998801231384,
-0.38782668113708496,
0.5163038372993469,
-0.12903212010860443,
0.1773623824119568,
0.14187213778495789,
0.4040669798851013,
0.06500371545553207,
-0.09586156904697418,
-0.42325443029403687,
0.34671550989151,
0.5238074064254761,
-0.0968593955039978,
0.26897960901260376,... | |
Why does the following animation flicker and act goofy on MouseLeave? If it can be repro-ed, I'll post a screencast.
```
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Canvas>
<Path Fill="Blue" Margin="15,15,15,15">
<Pa... | [
-0.4489862620830536,
0.03672880679368973,
0.843665361404419,
0.2693678140640259,
-0.16919229924678802,
0.4240841865539551,
-0.289188414812088,
0.01681148074567318,
-0.4752846360206604,
-0.47209128737449646,
-0.10747196525335312,
0.014189399778842926,
-0.028908943757414818,
0.03392483294010... | |
<Storyboard Duration="0:0:.5">
<DoubleAnimation Storyboard.TargetName="MyAnimatedEllipseGeometry"
Storyboard.TargetProperty="RadiusX"
From="15" To="100" />
<DoubleAnimation Storyboard.TargetName="MyAnimatedEllipseGeometry" | [
0.2933625280857086,
-0.11323796212673187,
0.3543960452079773,
0.020454436540603638,
-0.008650115691125393,
0.42590680718421936,
0.21068677306175232,
0.05949808657169342,
-0.4113456606864929,
-0.3535269796848297,
-0.27397823333740234,
0.42970630526542664,
0.11007754504680634,
0.060395188629... | |
Storyboard.TargetProperty="RadiusY"
From="15" To="100" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="UIElement.MouseLeave">
<BeginStoryboard> | [
-0.07614923268556595,
-0.5533187985420227,
0.4921181797981262,
0.028883814811706543,
0.25448259711265564,
-0.0739714652299881,
0.06717728078365326,
0.1336059272289276,
-0.21770510077476501,
-0.6899166107177734,
-0.059980131685733795,
0.34957394003868103,
-0.002044043270871043,
-0.237988516... | |
<Storyboard Duration="0:0:.5">
<DoubleAnimation Storyboard.TargetName="MyAnimatedEllipseGeometry"
Storyboard.TargetProperty="RadiusX"
From="100" To="15" />
<DoubleAnimation Storyboard.TargetName="MyAnimatedEllipseGeometry" | [
0.2980557978153229,
-0.12029209733009338,
0.3755146265029907,
0.031397655606269836,
-0.007037741132080555,
0.423165887594223,
0.19527281820774078,
0.06385232508182526,
-0.406957745552063,
-0.3611818850040436,
-0.2853499948978424,
0.4245387017726898,
0.10922330617904663,
0.07859006524085999... | |
Storyboard.TargetProperty="RadiusY"
From="100" To="15" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Path.Triggers>
</Path>
</Canvas>
</Page>
```
The reason is that you specify a `From` on your `DoubleAnimation`s.
If the radius is anything | [
0.3593701720237732,
-0.5081291794776917,
0.44452428817749023,
0.13899537920951843,
-0.07766730338335037,
-0.1418927162885666,
0.03581411764025688,
-0.12285571545362473,
-0.36630088090896606,
-0.518090009689331,
0.10681292414665222,
0.250336617231369,
-0.04321212321519852,
-0.03247359767556... | |
less than 100 when `MouseLeave` happens, the `From` property will make it jump up to 100 and likely cause a `MouseEnter`. Then, you have two competing animations and the mouse events go crazy as the ellipse radius flickers underneath the cursor.
The solution is to just omit the `From` properties, this will cause the a... | [
0.13916197419166565,
-0.18675684928894043,
0.89049232006073,
0.06182572990655899,
0.06998374313116074,
0.16311167180538177,
-0.12173476815223694,
-0.35178589820861816,
-0.19131043553352356,
-0.41282129287719727,
-0.0972074344754219,
0.2834087908267975,
-0.0035673831589519978,
0.27077099680... | |
<!-- Describes an ellipse. -->
<EllipseGeometry x:Name="MyAnimatedEllipseGeometry" Center="200,100" RadiusX="15" RadiusY="15"/>
</Path.Data>
<Path.Triggers>
<EventTrigger RoutedEvent="UIElement.MouseEnter">
<BeginStoryboard> | [
-0.399111807346344,
-0.031137293204665184,
1.0158343315124512,
0.29758548736572266,
0.25136417150497437,
0.2670498192310333,
-0.05102387070655823,
-0.12058933824300766,
-0.48038503527641296,
-0.5034903883934021,
-0.22647696733474731,
0.10005003213882446,
-0.008357019163668156,
-0.008935350... | |
<Storyboard>
<DoubleAnimation Storyboard.TargetName="MyAnimatedEllipseGeometry" Duration="0:0:.5" Storyboard.TargetProperty="RadiusX" To="100"/>
<DoubleAnimation Storyboard.TargetName="MyAnimatedEllipseGeometry" Duration="0:0:.5" Storyboard.TargetProperty="RadiusY... | [
0.22428657114505768,
-0.12771379947662354,
0.4567013680934906,
-0.033827297389507294,
-0.032499682158231735,
0.36202728748321533,
0.3153470754623413,
-0.02445894293487072,
-0.25768527388572693,
-0.42288145422935486,
-0.1390724629163742,
0.43984678387641907,
0.0772634893655777,
0.1551057398... | |
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="UIElement.MouseLeave">
<BeginStoryboard> | [
-0.029452187940478325,
-0.6510207056999207,
0.31865108013153076,
0.05526043102145195,
0.4404464066028595,
-0.2185678482055664,
0.1013210117816925,
0.1550726294517517,
-0.2178497314453125,
-0.6858292818069458,
-0.33620429039001465,
0.2823423445224762,
0.17963314056396484,
-0.254751473665237... | |
<Storyboard>
<DoubleAnimation Storyboard.TargetName="MyAnimatedEllipseGeometry" Duration="0:0:.5" Storyboard.TargetProperty="RadiusX" To="15"/>
<DoubleAnimation Storyboard.TargetName="MyAnimatedEllipseGeometry" Duration="0:0:.5" Storyboard.TargetProperty="RadiusY"... | [
0.21806307137012482,
-0.15889310836791992,
0.43785032629966736,
-0.0006960901664569974,
-0.012633249163627625,
0.4242404103279114,
0.2677602171897888,
-0.026401683688163757,
-0.4521298408508301,
-0.3860035836696625,
-0.1636679619550705,
0.48961761593818665,
0.055864714086055756,
0.23916636... | |
</BeginStoryboard>
</EventTrigger>
</Path.Triggers>
</Path>
</Canvas>
</Page>
```
On an unrelated note, when you set `Storyboard.Duration`, it won't speed up your child animations, it will just end the `Storyboard` prematurely. You really want to set `Duration` on your child `D... | [
0.3070220947265625,
-0.41398435831069946,
0.1470068097114563,
0.1404174417257309,
0.06445366889238358,
-0.07757020741701126,
0.11813132464885712,
0.13103222846984863,
-0.49644604325294495,
-0.6001423001289368,
-0.0843338742852211,
0.11786560714244843,
0.16772395372390747,
0.193271338939666... | |
I wonder if is possible display a dialgo when a unexpected error happend in the iPhone (and not quit blindy the app!) and have time to log or send by email the crash...
Yes. For starts implement NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler) and then use something like [Crash Reporter](http://landonf.bikemonk... | [
0.213640034198761,
-0.03080182708799839,
0.16247273981571198,
0.41086292266845703,
-0.1117764562368393,
-0.35309723019599915,
0.5776039958000183,
-0.07633236795663834,
-0.1768587976694107,
-0.5334948897361755,
0.2683227062225342,
0.9335343241691589,
-0.0701417326927185,
-0.4322696924209595... | |
I'm currently writing a blog post about the internals of the CLI, and I try to cite where something gets said. Mainly in the Partition III docs.
I'm currently linking to the ECMA page for it, where there are a bunch of pdf- and zip-files, and making section references where they are needed; but I would really like to ... | [
0.3820176124572754,
0.28416240215301514,
0.29397574067115784,
0.11980890482664108,
-0.07544469088315964,
-0.5171188116073608,
-0.08920242637395859,
0.0076215798035264015,
-0.2357180118560791,
-0.44592976570129395,
-0.14160984754562378,
0.3128589987754822,
-0.16396886110305786,
0.1779343783... | |
into pdf files. I can do it by page (example <http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-335.pdf#page=53>) which may be sufficient for your needs. Note that the page linked to is the numerical ordering in the file not the 'page numbers' at the bottom of the pages.
Using Named Destinations (see ... | [
0.14657700061798096,
-0.09091522544622421,
0.6971257925033569,
0.21604865789413452,
-0.02207985892891884,
-0.3635704219341278,
0.23874177038669586,
-0.08989334106445312,
-0.23568770289421082,
-0.577030599117279,
-0.3161378800868988,
0.35679373145103455,
-0.03802230581641197,
0.025879016146... | |
limited to only 32 characters for the name part.
Even if you are limited to page numbers only this is likely to be more pleasant than linking into word documents. | [
-0.261320024728775,
0.20112377405166626,
0.33774039149284363,
0.2286006361246109,
-0.27538925409317017,
0.30421194434165955,
0.44915592670440674,
0.14036566019058228,
-0.03987378999590874,
-0.5071007013320923,
-0.3228369653224945,
0.21106025576591492,
-0.04541689157485962,
-0.2282259017229... | |
Here is what I have:
* An external DLL, I have written in C. This DLL links to opencv. I don't want to call OpenCV directly from C# - there are already huge amounts of C code accessing OpenCV which will be used in the DLL. There is an exported function: **passbitmap(void \*mem, size\_t s);**
* A C# project from which ... | [
0.2957497537136078,
-0.113665372133255,
0.27824336290359497,
0.025302093476057053,
-0.25934192538261414,
0.016626939177513123,
-0.11822693049907684,
0.21209517121315002,
-0.3340958058834076,
-0.7248969078063965,
0.1189078837633133,
0.33172786235809326,
-0.36035582423210144,
0.1735056787729... | |
it properly in this case. How should I proceed?
You need to call Bitmap.GetHbitmap() to get the native handle to the bitmap.
Then you basically want to do some native interop and call [GetDIBits()](http://msdn.microsoft.com/en-us/library/dd144879(VS.85).aspx). It may be better to have your target dll actually call Get... | [
0.2098981887102127,
-0.3331891894340515,
0.44475510716438293,
0.17216026782989502,
-0.13948072493076324,
-0.38081106543540955,
-0.017682088539004326,
-0.1413172334432602,
-0.18802621960639954,
-0.6043388843536377,
-0.2987075448036194,
0.7817472219467163,
-0.3583706319332123,
-0.01304606162... | |
I've been doing all my work in Git and pushing to GitHub. I've been very happy with both the software and the site, and I have no wish to change my working practices at this point.
My PhD adviser is asking all students to keep their work in an SVN repository that's hosted at the university. I've found tons of document... | [
0.6191450953483582,
0.41530105471611023,
0.2540358304977417,
-0.24965646862983704,
0.06610526144504547,
-0.28304389119148254,
0.10161944478750229,
0.20140138268470764,
-0.15055549144744873,
-0.7433422803878784,
-0.0641932561993599,
0.3101976811885834,
0.43502864241600037,
0.377260178327560... | |
a fresh branch and rebasing and all those wonderful terms, but I'm a Git newbie and don't feel confident with any of them.
I then want to just run a couple of commands to push commits to that SVN repository when I choose. I wish to keep using Git and just have the SVN repository mirror what's in Git.
I'll be the only... | [
0.3230495750904083,
-0.056219104677438736,
0.3496541678905487,
-0.1341215819120407,
-0.1826668083667755,
-0.22396230697631836,
0.37221285700798035,
0.1717870980501175,
-0.23114950954914093,
-0.7689688801765442,
-0.06383339315652847,
0.8087531328201294,
-0.3359135389328003,
0.21329350769519... | |
--parents protocol:///path/to/repo/PROJECT/trunk -m "Importing git repo"
3. git svn init protocol:///path/to/repo/PROJECT -s
4. git svn fetch
5. git rebase origin/trunk
5.1. git status
5.2. git add (conflicted-files)
5.3. git rebase --continue
5.4. (repeat 5.1.)
6. git svn dcommit
```
After #3 you'll get a crypti... | [
0.35791653394699097,
0.043787866830825806,
0.5503613352775574,
0.25068429112434387,
0.23909199237823486,
0.03743048384785652,
0.07987145334482193,
0.0486237071454525,
-0.03998064249753952,
-0.6297202110290527,
-0.3101117014884949,
0.5008658170700073,
-0.3010317087173462,
0.3332664370536804... | |
fetch
git rebase trunk
```
And to synchronise from Git to SVN, use:
```
git svn dcommit
```
Final note
----------
You might want to try this out on a local copy, before applying to a live repository. You can make a copy of your Git repository to a temporary place; simply use `cp -r`, as all data is in the reposit... | [
0.34047210216522217,
0.05248033627867699,
0.5376827716827393,
0.25203368067741394,
-0.1476612389087677,
0.02227211743593216,
0.09383691102266312,
-0.06628143042325974,
-0.10429944097995758,
-0.5073876976966858,
-0.2184571772813797,
0.5874263048171997,
-0.25461670756340027,
0.24910780787467... | |
with the wrong URL, and you weren't smart enough to take a backup of your work (don't ask ...), you can't just run the same command again. You can however undo the changes by issuing:
```
rm -rf .git/svn
edit .git/config
```
And remove the section `[svn-remote "svn"]` section.
You can then run `git svn init` anew. | [
0.3120441138744354,
-0.04681052267551422,
0.5513538122177124,
-0.02030077949166298,
0.07051466405391693,
-0.36091285943984985,
0.21756000816822052,
-0.10481128841638565,
-0.313332200050354,
-0.27133995294570923,
-0.5737699270248413,
0.6047677993774414,
-0.28146499395370483,
0.4611958861351... | |
I've seen various posts on SO criticising the Eclipse Grails plugin, and am wondering if anyone has found a way to work productively with Grails within Eclipse?
I had a look at the [Grails plugin page](http://www.grails.org/Eclipse+IDE+Integration), and the information there doesn't look very promising, particularly t... | [
0.3311210870742798,
0.016419345512986183,
0.2644190192222595,
-0.014714088290929794,
-0.5347512364387512,
-0.14509646594524384,
0.6148276925086975,
-0.18243828415870667,
0.21693670749664307,
-0.4507991671562195,
-0.0703573003411293,
0.5344592928886414,
-0.20812778174877167,
-0.005154672544... | |
Eclipse is still far behind. However, SpringSource is a major player in Eclipse, and they now own GOne, the main developers of Groovy/Grails. This is supposed to have the effect of speeding Eclipse plug-in development, but no results so far.
It's now Dec '10, and things have changed (but not too much):
1. IntelliJ Id... | [
0.18711301684379578,
-0.07658622413873672,
0.5378063917160034,
-0.08899644762277603,
-0.5910606980323792,
-0.21210038661956787,
0.24840275943279266,
0.2567279636859894,
-0.38937848806381226,
-0.34753063321113586,
0.1525460183620453,
0.25034236907958984,
0.23269781470298767,
-0.081710696220... | |
6.9.1 is out, but its Grails support is stagnant since 6.5. It's now the bottom of the pack.
And now it's Feb '15, almost 6 years after the original question. Much has changed, but much remains the same:
1. IntelliJ is still the best, and by a growing margin. Grails 3 (due out next month) will actually allow developm... | [
0.10413088649511337,
0.009007873944938183,
0.9717602133750916,
0.02684268169105053,
-0.42407533526420593,
-0.3231133818626404,
0.554693877696991,
0.19722287356853485,
-0.050934385508298874,
-0.23834510147571564,
0.1723668873310089,
0.5931212306022644,
0.21459050476551056,
-0.00700284168124... | |
GGTS development.
3. Seriously, does anyone still use NetBeans? Ok, I see they still support Grails, but I don't really have any idea how good that support is. Everyone I know... EVERYONE... uses IntelliJ. | [
-0.0025691937189549208,
-0.15698522329330444,
0.4802126884460449,
0.17199662327766418,
-0.3604639768600464,
-0.4082295596599579,
0.2150237113237381,
0.36183032393455505,
-0.2803502678871155,
-0.44994693994522095,
0.1106242761015892,
0.450374573469162,
-0.010265455581247807,
0.0305891185998... | |
How do I divide two integers to get a double?
You want to cast the numbers:
```
double num3 = (double)num1/(double)num2;
```
Note: If any of the arguments in C# is a `double`, a `double` divide is used which results in a `double`. So, the following would work too:
```
double num3 = (double)num1/num2;
```
For more... | [
0.7899289727210999,
0.005811259150505066,
0.13869446516036987,
-0.25265181064605713,
-0.20793285965919495,
0.014493492431938648,
-0.06064659729599953,
-0.4082459807395935,
-0.3117769956588745,
-0.1517835110425949,
0.31170734763145447,
0.3175742030143738,
-0.46243351697921753,
-0.0213554482... | |
I want to debug a python project
The problem is, I don't know where to set a break point,
what I want to do, is be able to call a method
```
SomeClass( some_ctor_arguments ).some_method()`
```
and have the debugger be fired right away
How do I do that?
I tried `pdb.run( string_command )` but it doesn't seem to... | [
0.37583476305007935,
0.26060134172439575,
0.01868952438235283,
-0.3284408450126648,
-0.07576501369476318,
-0.3550308048725128,
0.5193859934806824,
0.0050361258909106255,
-0.036725230515003204,
-0.23843036592006683,
-0.10456418991088867,
0.5710846185684204,
-0.6857149600982666,
0.3328925967... | |
In php I have:
```
$result = mysql_query($query);
// if successful query, return the records
if ($result)
{
// if not empty result, return array of records
if (mysql_num_rows($result))
{
$records = array();
while ($row = mysql_fetch_assoc($result))
{
$records[] = $row;
... | [
-0.18637321889400482,
0.08204290270805359,
0.6243720650672913,
-0.18317872285842896,
-0.37980714440345764,
0.11644646525382996,
0.04067280888557434,
-0.5525355339050293,
-0.21527430415153503,
-0.13249656558036804,
0.16518637537956238,
0.2760970890522003,
-0.2911585867404938,
0.164976373314... | |
}
```
In Objective-C - After the POST I have the following code...
```
NSURLResponse *newStr = [[NSURLResponse alloc] init];
NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:&newStr error:nil];
```
returnData is equal to the literal "Array", not the contents of $records[]
You ... | [
-0.0222398042678833,
0.0056831189431250095,
0.184271901845932,
-0.14642107486724854,
-0.22036118805408478,
-0.05340040102601051,
0.11469043046236038,
-0.17459115386009216,
-0.08246917277574539,
-0.5271948575973511,
-0.20846880972385406,
0.6587514281272888,
-0.567516028881073,
0.02275210432... | |
files in this format:
```
(
"value1",
"value2",
"value3",
"30",
"value5"
);
```
In fact, I think if the strings don't contain spaces, the quotes are optional (but I guess they would force string types).
Check out [this URL](http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyL... | [
0.28478527069091797,
0.19413287937641144,
0.2583078444004059,
0.22567223012447357,
0.0657302737236023,
0.005340194795280695,
-0.2509442865848541,
-0.16659663617610931,
-0.34841975569725037,
-0.36717766523361206,
-0.6135164499282837,
0.4223199784755707,
0.016305331140756607,
-0.115299478173... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.