text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I have a WSDL file for a web service. I'm using JAX-WS/wsimport to generate a client interface to the web service. I don't know ahead of time the host that the web service will be running on, and I can almost guarantee it won't be <http://localhost:8080>. How to I specify the host URL at runtime, e.g. from a command-li... | [
0.47026732563972473,
0.09733034670352936,
0.578603982925415,
0.11178411543369293,
-0.04933205246925354,
-0.26286622881889343,
0.0947018638253212,
0.15510258078575134,
-0.09061942994594574,
-0.8593377470970154,
0.004343091510236263,
0.3749343752861023,
-0.17490266263484955,
0.52883833646774... | |
the WSDL you want i.e. <http://someurl:someport/service?wsdl>. | [
0.4200129806995392,
-0.36253291368484497,
0.5198476314544678,
-0.046533286571502686,
-0.1349698305130005,
-0.3339037299156189,
-0.011336363852024078,
0.5315924882888794,
-0.34686747193336487,
-0.7178784012794495,
-0.34903547167778015,
0.25474244356155396,
-0.12141849845647812,
0.3570264577... | |
The title pretty much sums up the gist.
I'm interested in whether it is possible to enable/disable contract enforcement(s) when using a dynamic language without running a serious risk of poorly/un-diagnosed failure?
If not, the crux seems (to me) to be that any enforcements are a required part of the component's logi... | [
0.333672434091568,
0.19106006622314453,
0.019353702664375305,
-0.06417275965213776,
0.024440856650471687,
-0.07866691797971725,
0.21177072823047638,
0.15422283113002777,
-0.24098865687847137,
-0.2954777479171753,
-0.18980786204338074,
0.5034448504447937,
-0.01833273097872734,
-0.0909369289... | |
Im looking to improve the search in one of my applications, where I sue regular fulltext searching, which isn't too bad, but Im looking to add some more complex behaviors, such as typo recognition and better relevancy.
Are there any solutions out there that can be integrated into an existing application? Im looking to... | [
0.14137394726276398,
0.04036262631416321,
0.2705853581428528,
0.0944918543100357,
-0.47480878233909607,
0.05163394659757614,
-0.13441744446754456,
-0.03677292913198471,
-0.09905272722244263,
-0.8958168625831604,
0.1451878845691681,
0.34013012051582336,
-0.22766181826591492,
0.0398199521005... | |
For my application, I'd been using my own Camera class for taking images and my own database but soon enough I couldn't really keep up with changes and I decided to use the built in camera application in Android to do the job, but I can't seem to get it to save file. What am I missing here? The application seems to sav... | [
0.3704517185688019,
0.37472909688949585,
0.34956976771354675,
0.024752292782068253,
0.07925240695476532,
0.058218665421009064,
0.26096269488334656,
-0.18144050240516663,
-0.20603226125240326,
-0.5513001084327698,
0.3397831320762634,
0.6667507886886597,
-0.3367001712322235,
0.00199773325584... | |
extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button cameraButton = (Button) findViewById(R.id.cameraButton);
cameraButton.set... | [
0.3718506693840027,
-0.7336658835411072,
1.1051936149597168,
-0.2641279101371765,
0.3190654218196869,
-0.28964102268218994,
0.5990676879882812,
-0.6757714748382568,
-0.27637359499931335,
-0.42879045009613037,
-0.4480954110622406,
0.6022210121154785,
-0.41776490211486816,
-0.235349133610725... | |
ContentValues();
values.put(Images.Media.TITLE, "title");
values.put(Images.Media.BUCKET_ID, "test");
values.put(Images.Media.DESCRIPTION, "test Image taken");
Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values);
Inten... | [
0.46220913529396057,
-0.24489745497703552,
0.8485787510871887,
0.10898390412330627,
0.03996465355157852,
0.09649516642093658,
0.2998947203159332,
-0.19816304743289948,
0.03497768193483353,
-0.6908148527145386,
-0.5058308243751526,
0.7704809904098511,
-0.3171173334121704,
0.1881487369537353... | |
intent.putExtra("output", uri.getPath());
startActivityForResult(intent,0);
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode== 0 && resultCode == Activity.RESULT_OK){
((ImageView)findVi... | [
0.5179694294929504,
-0.4658986032009125,
0.887260913848877,
-0.19976918399333954,
0.15914203226566315,
0.030016101896762848,
0.6146694421768188,
-0.6809642314910889,
0.015284058637917042,
-0.46805229783058167,
-0.21700714528560638,
0.6754422187805176,
-0.4407966136932373,
-0.22008994221687... | |
}
}
}
```
This worked with the following code, granted I was being a little dumb with the last one. I still think there's got to be a better way so that the original image is still saved somewhere. It still sends me the smaller 25% size image.
```
public class CameraTest extends Activity {
/** Called when the ac... | [
0.6973600387573242,
-0.31910061836242676,
0.821025550365448,
-0.2878446578979492,
0.1542275995016098,
-0.05468228459358215,
0.5162147283554077,
-0.5521738529205322,
-0.2637234926223755,
-0.6200233101844788,
-0.2111651450395584,
0.9076698422431946,
-0.49429288506507874,
-0.1927422732114792,... | |
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(intent,0);
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode== 0 && resultCode == Activity.RESULT_OK) {
Bitmap x = (Bitmap) data... | [
0.36728930473327637,
-0.34006449580192566,
1.105226993560791,
-0.13507789373397827,
0.09465835243463516,
0.08481083065271378,
0.5658913850784302,
-0.7731344103813171,
-0.027711423113942146,
-0.4677754044532776,
-0.23120136559009552,
0.8011795878410339,
-0.2842492163181305,
-0.1303521394729... | |
values.put(Images.Media.BUCKET_ID, "test");
values.put(Images.Media.DESCRIPTION, "test Image taken");
values.put(Images.Media.MIME_TYPE, "image/jpeg");
Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values);
OutputStream outstream;
try {
outstream =... | [
0.12042375653982162,
-0.35444703698158264,
0.7400877475738525,
-0.06053166091442108,
0.05532461404800415,
0.4110206663608551,
0.07749973982572556,
-0.3773466646671295,
-0.1057928204536438,
-0.744157612323761,
-0.3899797201156616,
0.5096256136894226,
-0.48223885893821716,
0.1198581159114837... | |
} catch (FileNotFoundException e) {
//
} catch (IOException e) {
//
}
}
}
```
Also, I do know that the cupcake release of Android should fix the small image size soon. | [
0.16530448198318481,
-0.14106930792331696,
0.5448288321495056,
-0.10408366471529007,
0.14405162632465363,
-0.13279251754283905,
-0.00020931389008183032,
0.2276572734117508,
-0.00908573716878891,
-0.8133513927459717,
0.02322513423860073,
0.6270999908447266,
-0.13748884201049805,
0.017923094... | |
I have an asp.net webservice with a parameter of type datetime. I have noticed asp.net seems to offset the date based on the clients timezone.
I need to disable this functionality. I simply want to pass a date (i.e. 3/15/2009) to the webservice from javascript without any timezone context.
Is my only option to change... | [
0.22505037486553192,
0.022759320214390755,
0.5221899747848511,
-0.136641725897789,
-0.06616852432489395,
0.04646819457411766,
-0.013736407272517681,
-0.020512033253908157,
-0.3512697219848633,
-0.5493297576904297,
0.25622764229774475,
0.45697590708732605,
-0.23592166602611542,
0.2757106721... | |
about the same DateTime, they're talking about the same INSTANT. So saying "the meteor will hit earth in 5 minutes", should adjust itself to the timezone. | [
0.47907570004463196,
0.04004351794719696,
0.5549197793006897,
0.32889553904533386,
-0.09470620006322861,
-0.13863106071949005,
0.33583390712738037,
0.5748457908630371,
-0.31879472732543945,
-0.5442093014717102,
0.25388309359550476,
-0.13689368963241577,
0.13142259418964386,
0.4028421938419... | |
I've got a test which requires an XML file to be read in and then parsed. How can I have this file copied into the test run folder each time?
The XML file is set to "Copy if newer" and a compile mode of "none" (since it's not really a compile-able thing)
use a [`DeploymentItem` attribute](http://msdn.microsoft.com/en-... | [
0.7332203388214111,
0.07557477802038193,
0.36507120728492737,
0.01134705264121294,
0.1662546545267105,
-0.025618217885494232,
0.3890826404094696,
-0.3117882311344147,
0.14891010522842407,
-0.8490867614746094,
-0.02737526223063469,
0.49513742327690125,
0.07727783918380737,
0.147329732775688... | |
{
string file = "testFile1.xml";
Assert.IsTrue(File.Exists(file), "deployment failed: " + file +
" did not get deployed");
}
}
}
``` | [
0.4128761291503906,
-0.12256549298763275,
0.024963203817605972,
-0.05917036905884743,
0.18295858800411224,
-0.2447596788406372,
0.6211490035057068,
-0.3709396421909332,
0.006463280878961086,
-0.35983672738075256,
-0.3610142171382904,
0.44093888998031616,
-0.24565008282661438,
-0.0024067591... | |
> **Possible Duplicate:**
>
> [Warning: mysql\_fetch\_array(): supplied argument is not a valid MySQL result](https://stackoverflow.com/questions/795746/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result)
i have an error being drawn with this code:
```
<?php
include "config.inc.php";
... | [
0.14525750279426575,
0.2557767629623413,
0.32536548376083374,
-0.07420247793197632,
0.10016188025474548,
0.07282335311174393,
0.31636473536491394,
-0.15774595737457275,
-0.38221025466918945,
-0.46350663900375366,
0.03558502346277237,
0.3876422643661499,
-0.3703736364841461,
0.2229624390602... | |
= array();
while($r = mysql_fetch_array($sth)) {
$projects[] = array('id' => $r['p_id'], 'name' => $r['p_title']);
}
print json_encode($projects);
exit;
?>
```
I get this error:
> **Warning**: mysql\_fetch\_assoc(): supplied argument is not a valid MySQL result resource in **/home/content/g/... | [
0.08282057195901871,
0.10571949928998947,
0.5104276537895203,
-0.18184231221675873,
0.13464103639125824,
0.07623130083084106,
0.40910887718200684,
-0.465613454580307,
-0.26614460349082947,
-0.5941849946975708,
-0.3652743995189667,
0.290239542722702,
-0.16252385079860687,
0.1205058693885803... | |
"SELECT c_id,p_id,p_title FROM projects WHERE c_id = '%s'",
mysql_real_escape_string($_GET['id'])
)
);
``` | [
0.010952419601380825,
0.015144002623856068,
0.3124321401119232,
-0.028443319723010063,
0.5810957551002502,
-0.059807874262332916,
0.19354180991649628,
-0.24933406710624695,
-0.002141379751265049,
-0.2650269865989685,
-0.6940658688545227,
0.6252259612083435,
-0.2098311185836792,
0.305301427... | |
I'm trying to debug an error coming out of a Windows .NET based application. The error message goes something like "Error creating window handle". [On researching about this error](http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3fb91a63-a86a-4817-9c3a-5b2f2443926f/) I found out that the likely cause is [... | [
0.24117155373096466,
0.3922942578792572,
0.01684652268886566,
0.07695981860160828,
-0.30425623059272766,
-0.11598610132932663,
0.4914718270301819,
0.12159726023674011,
-0.5430358648300171,
-0.648287832736969,
0.2287287563085556,
0.319509893655777,
-0.2353530079126358,
0.4271189570426941,
... | |
in a WinForm app
1. You are not actively disposing of Control and Form instances in your application. It's harder to hit the problem this way as with a bit of time, the GC will clean up the handles but still posible.
2. PInvoke into a native API and not closing the resulting handles
Those would be the first 2 places ... | [
0.11846230179071426,
-0.05519498512148857,
0.22219714522361755,
-0.18584048748016357,
-0.23262587189674377,
-0.27994322776794434,
0.36791983246803284,
-0.4993303418159485,
-0.016409294679760933,
-0.5185222029685974,
-0.27914831042289734,
0.6574041247367859,
-0.5221506953239441,
-0.12021315... | |
I have a C# application that I want to use [Flickr's API](http://www.flickr.com/services/api/). I received my API key and shared secret, but when receiving the key it explicitly mentions not giving out the API key we were provided.
Since the app is open source and also easily viewed with Reflector, I don't think stor... | [
0.8227505087852478,
0.16757537424564362,
0.49512779712677,
0.15349899232387543,
-0.07966796308755875,
-0.34271690249443054,
0.2077222466468811,
0.08380495011806488,
-0.005405066069215536,
-0.3681345582008362,
0.05200246348977089,
0.5173596143722534,
-0.29652515053749084,
0.3170163333415985... | |
any recommendations for properly securing the key?
I agree that a random developer's third-party key isn't worth anything. I use a Flickr API Key in my third-party library and simply store it as a string. Flickr's own key to their API would be worth something if dirtied by other use, but someone who wants to get their ... | [
0.6316353678703308,
0.07968820631504059,
0.21896131336688995,
0.423114150762558,
0.16591738164424896,
-0.041574008762836456,
0.09098339825868607,
-0.11839301884174347,
0.08695609122514725,
-0.26263427734375,
0.2644006311893463,
0.5394997000694275,
-0.11156966537237167,
0.10373538732528687,... | |
I have a document-based application and I have sub-classed `NSDocument` and provided the required methods, but my document needs some extensive clean-up (needs to run external tasks etc). Where is the best place to put this? I have tried a few different methods such as:
* `close`
* `close:`
* `canCloseDocumentWithDele... | [
0.2255888432264328,
0.12127187848091125,
0.7764464616775513,
-0.25571516156196594,
0.13160094618797302,
-0.4196849763393402,
0.15524663031101227,
-0.30824702978134155,
-0.24080544710159302,
-0.724726676940918,
-0.1625039428472519,
0.5695620775222778,
-0.13993699848651886,
-0.03305672854185... | |
`NSApplicationWillTerminateNotification`. In its notification method, call its clean-up method (which you should also call from `dealloc` or `close`). | [
0.20708966255187988,
-0.4775905907154083,
0.25269705057144165,
-0.10512273013591766,
0.1285426765680313,
-0.6876569390296936,
0.08444979786872864,
-0.06749267131090164,
-0.24561229348182678,
-0.45476648211479187,
-0.5220958590507507,
0.40806981921195984,
-0.49055933952331543,
-0.1991612464... | |
I am trying to wrap my jar as an exe using launch4j. However I am using the lwjgl library and having trouble linking the native dll's. My directory structure is as follows:
I have a top directory which contains the following path: top/lib/lwjgl/native/win32 where my lwjgl dll's are contained.
There is also a dist dir... | [
0.42226141691207886,
0.47158104181289673,
0.329073429107666,
-0.5383977293968201,
-0.21764184534549713,
-0.03374501317739487,
0.3005077838897705,
-0.017488595098257065,
0.027518488466739655,
-0.6643944382667542,
-0.051164571195840836,
0.6414394378662109,
-0.29304787516593933,
0.22859366238... | |
-Djava.library.path=../lib/lwjgl/native/win32
However, when I try to run the exe file I get an unsatisfied link error. (Meaning it cannot find my lwjgl dlls).
I have tried defining this in multiple different ways. I defined the changedir as ../ and used -ea -Djava.library.path=lib/lwjgl/native/win32 as well as attem... | [
0.04830411821603775,
0.061883118003606796,
0.5784358978271484,
-0.31353139877319336,
-0.43571752309799194,
-0.057127390056848526,
0.4813676178455353,
-0.1434713900089264,
-0.1612207591533661,
-0.7130432724952698,
0.12918837368488312,
0.7474858164787292,
-0.6771404147148132,
0.5164366960525... | |
game exe. | [
-0.11070124804973602,
-0.415200412273407,
0.4193464517593384,
0.13422590494155884,
-0.0697179064154625,
-0.2006138265132904,
-0.3203376829624176,
0.07712271809577942,
-0.047008633613586426,
-0.6676461696624756,
-0.22880738973617554,
0.6846505999565125,
-0.44439613819122314,
0.1109081804752... | |
Inspired by a [recent TED talk](http://www.ted.com/talks/david_merrill_demos_siftables_the_smart_blocks.html), I want to write a small piece of educational software. The researcher created little miniature computers in the shape of blocks called "[Siftables](http://web.media.mit.edu/~dmerrill/siftables.html)".
[![alt... | [
0.36429572105407715,
0.11669810861349106,
0.13445496559143066,
0.308559387922287,
0.08558577299118042,
0.07058723270893097,
-0.10646332800388336,
0.02417651377618313,
-0.40085527300834656,
-0.5234061479568481,
-0.1202421486377716,
0.0025596986524760723,
-0.03820183873176575,
-0.05556233599... | |
of "Math Siftables" on a limited scale as my final project for a CS course I'm taking.
**What is the generally accepted way for parsing and interpreting a string of math expressions, and if they are valid, perform the operation?**
Is this a case where I should implement a full parser/lexer? I would imagine interpret... | [
0.2566909193992615,
0.23973749577999115,
0.17220145463943481,
0.08361268788576126,
-0.21334923803806305,
0.04577906057238579,
0.32223576307296753,
-0.13835640251636505,
-0.26544731855392456,
-0.3586466610431671,
-0.31337568163871765,
0.4647887647151947,
-0.1343371421098709,
-0.362907856702... | |
to arrive at "3".
However, if the child were to drag several operation blocks together such as:
> `[2`] `[\`] `[\`] `[5`]
It would obviously be invalid.
Ultimately, I want to be able to parse and interpret any number of chains of operations with the blocks that the user can drag together. Can anyone explain to me o... | [
0.09857048094272614,
0.1390582025051117,
-0.12254580110311508,
0.11274486780166626,
-0.21689972281455994,
0.2984476387500763,
0.37707415223121643,
-0.37835943698883057,
-0.14453443884849548,
-0.30152615904808044,
-0.024730265140533447,
0.20499752461910248,
-0.10105297714471817,
-0.04379772... | |
an expression in infix mathematical notation, it give back an AST or Reverse Polish Notation, whatever your preference might be.
This [page](http://www.chris-j.co.uk/parsing.php) is pretty good. There are also a [couple](https://stackoverflow.com/questions/28256/equation-expression-parser-with-precedence) [related](h... | [
-0.15306563675403595,
0.010329416021704674,
0.47806596755981445,
0.241902157664299,
-0.02780798450112343,
-0.027714835479855537,
0.11618506908416748,
-0.15005643665790558,
-0.2903161644935608,
-0.49320101737976074,
-0.36955225467681885,
0.17675991356372833,
0.05025884509086609,
-0.42117524... | |
In Sql Server, I have a table with an Identity primary key. Often I want the latest few new records, so I grab the Top n sorted by descending the primary key. Should I define the Primary Key index as Descending, or does it make no difference? i.e. if they are in Ascending order, then can sql just as efficiently work ba... | [
-0.3103821277618408,
0.07290193438529968,
0.4319392740726471,
0.05323737859725952,
-0.23347264528274536,
-0.11027638614177704,
-0.07568570971488953,
-0.12905272841453552,
-0.32879501581192017,
-0.576484739780426,
-0.057034291326999664,
0.4701586663722992,
-0.2315806746482849,
0.33644461631... | |
both directions** on a single-column index, regardless of the sequence in which the keys are stored. For example, specifying DESC on a single-column index does not make queries with an ORDER BY IndexKeyCol DESC clause run faster than if ASC was specified for the index.
<http://msdn.microsoft.com/en-us/library/aa933132... | [
-0.20176281034946442,
0.020049018785357475,
0.578820526599884,
0.05053466558456421,
0.07856355607509613,
-0.06499307602643967,
0.18985508382320404,
-0.30334901809692383,
-0.47290897369384766,
-0.5765483975410461,
-0.12535326182842255,
0.5146017074584961,
-0.35168716311454773,
0.28299361467... | |
in nearly 100% fragmentation. | [
-0.4121021032333374,
0.2188306301832199,
-0.25618529319763184,
-0.02268585003912449,
0.12329326570034027,
-0.11536575108766556,
0.3422090411186218,
-0.28479281067848206,
-0.3150938153266907,
-0.8183825612068176,
-0.3213169276714325,
-0.014705103822052479,
-0.23855562508106232,
0.1014120653... | |
One of the projects which I am working uses CSS "attribute" selector [att]
[CSS Selectors](http://www.w3.org/TR/CSS21/selector.html#attribute-selectors)
which is not supported by ie6:
[Support for CSS selectors in IE6](http://msdn.microsoft.com/en-us/library/cc351024%28VS.85%29.aspx#attributeselectors) (look for tex... | [
0.26049456000328064,
0.03125923499464989,
-0.07752124965190887,
0.07409597188234329,
-0.19828744232654572,
-0.1651022583246231,
0.1736813485622406,
-0.2452225536108017,
-0.2188887745141983,
-0.7801522016525269,
-0.13725581765174866,
0.3630012571811676,
-0.1370289921760559,
0.09244061261415... | |
`class="foo bar"` | [
0.04491910710930824,
0.5937972068786621,
0.09201595187187195,
-0.46079114079475403,
0.022570407018065453,
-0.17912499606609344,
0.39925187826156616,
0.27348652482032776,
0.1628149151802063,
-0.11236755549907684,
-0.39198634028434753,
0.3252280354499817,
-0.4986352026462555,
0.1659901142120... | |
What is the official name for the "special" ASP.NET tags like this:
```
<%# %>
<%= %>
<%@ %>
<%$ %>
```
I can't seem to figure out the conceptual or well known name for these, so I'm having trouble searching for more info. As a bonus, can anyone give me a quick rundown of all of the possible "special tags" and what ... | [
0.16527794301509857,
-0.15045671164989471,
0.289172887802124,
0.08908606320619583,
-0.5259120464324951,
-0.07487917691469193,
-0.019919972866773605,
0.029764296486973763,
-0.4558492600917816,
-0.3763080835342407,
-0.25066474080085754,
0.17785292863845825,
-0.008146566338837147,
-0.23887994... | |
is a [Directive for ASP.NET Web Pages](http://msdn.microsoft.com/en-us/library/t8syafc7(v=vs.100).aspx). Used for pages and controls to configure page/control compiler settings (`<%@ Control Inherits="MyParentControl" %>`).
+ `<%@ %>` is also an [Application Directive](http://msdn.microsoft.com/en-us/library/s42bzt8x(... | [
-0.11223898082971573,
-0.2653536796569824,
0.56502765417099,
0.1592618077993393,
-0.07027319818735123,
-0.03291129693388939,
0.10524389892816544,
-0.2148495465517044,
-0.005692623555660248,
-0.6391608715057373,
-0.6158818602561951,
0.10615605115890503,
-0.4431794285774231,
0.17233382165431... | |
to declare functions.
* `<%= %>` is a [Code Render Block (for inline expressions)](http://msdn.microsoft.com/en-us/library/k6xeyd4z(v=vs.100).aspx). Used as a shorthand for `<%Response.Write(value)%>`
* `<%: %>` (unofficially an "[Html Encoding Code Block](http://haacked.com/archive/2009/09/25/html-encoding-code-nugget... | [
-0.17029352486133575,
-0.23495247960090637,
0.5405210256576538,
0.030631497502326965,
-0.16308628022670746,
0.10828253626823425,
0.15676794946193695,
-0.4067506194114685,
0.006143724080175161,
-0.23658961057662964,
-0.5769755840301514,
0.29980412125587463,
-0.39018985629081726,
-0.01729699... | |
event handler for the control.
* `<%#: %>` is an [HTML Encoded Data-Binding Expression](http://www.asp.net/aspnet/overview/aspnet-and-visual-studio-2012/whats-new#_Toc318097391) (new in ASP.NET 4.5). It combines the functionality of `<%# %>` and `<%: %>`.
* `<%$ %>` is an [ASP.NET Expression Builder](http://msdn.micros... | [
-0.0907515287399292,
-0.409241646528244,
0.2845684289932251,
0.22058096528053284,
-0.03997417911887169,
-0.13125237822532654,
-0.15419165790081024,
-0.4559798836708069,
-0.023520810529589653,
-0.3199470341205597,
-0.3035813868045807,
0.43422651290893555,
-0.36173054575920105,
-0.1487113982... | |
to in code-behind). Unlike html comments the contents will *not* be included in the output.
* `<!-- #Include ... -->` is a [Server-Side Include Directive](http://msdn.microsoft.com/en-us/library/3207d0e3(v=vs.100).aspx). Used to insert the contents of a file into the page, control or global file. Useful where a user co... | [
0.023451976478099823,
-0.04738122224807739,
0.3062071204185486,
-0.1666046380996704,
0.014535987749695778,
-0.13022209703922272,
0.17577052116394043,
-0.22470711171627045,
-0.0023485058918595314,
-0.4978303015232086,
-0.5488471388816833,
0.20904022455215454,
-0.35114774107933044,
0.1690570... | |
ASP technology"*](http://msdn.microsoft.com/en-us/library/ms178135.aspx) and are not recommended for use. | [
0.1796003133058548,
-0.07432067394256592,
0.46415889263153076,
0.04332534223794937,
0.2704226076602936,
-0.17117463052272797,
-0.03802705183625221,
0.35082194209098816,
-0.3955814242362976,
-0.44314244389533997,
-0.5330957174301147,
0.28913259506225586,
0.013321167789399624,
0.045826897025... | |
For now I'm stuck with IIS6 for ASP.NET-MVC (as in I cant upgrade to Server 2008 yet). It doesnt seem to know that my RESTful URLS are dynamic files and isn't compressing them.
All my old .aspx files are compressed (as seen in Fiddler), but not the `'/products/1001'` type URLS.
Is there any way to get IIS6 to compres... | [
-0.22713956236839294,
0.03944355249404907,
0.7488285899162292,
-0.23776036500930786,
-0.337552547454834,
-0.11119885742664337,
0.6479877829551697,
-0.19244049489498138,
-0.605696976184845,
-0.4722946584224701,
-0.12621210515499115,
0.6267470121383667,
-0.0535721480846405,
0.146355077624320... | |
ASP.NET usually has been implemented using HttpModules since version 1.0, and HttpModules still belong to the ASP.NET request pipeline used by the MVC framework, you can still use a HttpModule to inject a GZIP or deflate response filter.
Here you can find a very nice, open-source, ready to ship implementation:
[HttpCo... | [
0.1970454454421997,
-0.3398761451244354,
0.47358107566833496,
-0.031104106456041336,
-0.424162894487381,
-0.1885060966014862,
0.23705248534679413,
-0.026740005239844322,
-0.5711793303489685,
-0.6620157957077026,
-0.14445354044437408,
0.14181919395923615,
-0.5011603236198425,
-0.13741034269... | |
mime type, which is probably exactly what you need.
I should add that I have actually running a ASP.NET MVC website on IIS6 using this library, so I can confirm that this works in practice. | [
0.5344246625900269,
-0.09908467531204224,
0.019143197685480118,
0.07264979928731918,
-0.18695664405822754,
-0.09226634353399277,
0.5791693329811096,
0.3016156554222107,
-0.2043224424123764,
-0.4784191846847534,
0.16127130389213562,
0.4137674570083618,
-0.15470774471759796,
-0.3518480956554... | |
If I have two colors defined by their RGB values, can I average the Red, Green and Blue values and then combine to define a third color that looks like a visual average of the two?
ie NewColor = (R1+R2)/2,(G1+G2)/2,(B1+B2)/2
EDIT1: Thanks for all the responses. For my current needs, I am only dealing with color pairs... | [
0.3078468441963196,
-0.24577613174915314,
0.4059331715106964,
-0.13640977442264557,
-0.07166501134634018,
0.16710513830184937,
0.04531380906701088,
-0.6135898232460022,
-0.19681569933891296,
-0.8144401907920837,
0.13111090660095215,
0.5749003291130066,
-0.2722092866897583,
-0.3258153796195... | |
and Color2 are my two colors and the two middle columns are the results of averaging in L*a*b space and averaging RGB respectively. In this case there is not a lot of difference between the two color and so the differences in the output from the averaging techniques is subtle.
![visual comparison of color averaging te... | [
0.3837658166885376,
-0.21957743167877197,
0.042548518627882004,
-0.32883647084236145,
-0.10324276983737946,
0.09267937391996384,
-0.23819760978221893,
-0.278931587934494,
-0.12530599534511566,
-0.5616933703422546,
-0.07583282887935638,
0.4465295672416687,
-0.13746988773345947,
0.0767252668... | |
similar to each other to humans. | [
0.2693851590156555,
0.19919854402542114,
-0.09366222470998764,
0.05782885104417801,
-0.029205404222011566,
-0.08268426358699799,
0.24489665031433105,
0.0035047067794948816,
-0.04063468053936958,
-0.5923135280609131,
0.3198021352291107,
-0.06836812943220139,
-0.043744105845689774,
0.0255200... | |
Besides better readability (maybe?) and being able to chain constraints using `&` and `|`, what other advantages does the Constraint Model have over the Classic Model?
I'm a happy user of the Classic Model, and I'm in the process of deciding whether it's worth the effort to refactor old tests.
I have to say I'm a fan ... | [
0.13763803243637085,
0.30321675539016724,
0.0030083125457167625,
0.1774614155292511,
-0.032000575214624405,
-0.10716792941093445,
0.30578967928886414,
-0.1865021139383316,
-0.05762084573507309,
-0.5915218591690063,
0.04166298359632492,
0.8286027908325195,
-0.07973984628915787,
-0.157540559... | |
discoverability IMO.
That may well be due to familiarity as much as anything else, but I thought it would just be worth reassuring you that you're not the only one who finds the classic model perfectly reasonable :)
Having said that, when there's something which is easier to express using constraints, it makes sense ... | [
-0.005791079252958298,
-0.2257901281118393,
0.018394170328974724,
0.3789696991443634,
0.2513587474822998,
-0.45402464270591736,
0.2982695996761322,
-0.13000363111495972,
-0.0955444797873497,
-0.6531537175178528,
-0.023825224488973618,
0.6429821252822876,
-0.11599782109260559,
0.07319059967... | |
one for such cases.
As such I think it's a good idea to *learn* the constraint-based model, but I wouldn't go as far as converting any tests, and I wouldn't use it where you find the classic model to be simpler or more readable. | [
0.05730612203478813,
-0.0661744698882103,
-0.3865662217140198,
0.09255696833133698,
0.05905628576874733,
0.023846805095672607,
0.09613107144832611,
-0.16780775785446167,
-0.09210199117660522,
-0.6209636926651001,
-0.0009653950110077858,
0.648379921913147,
-0.2612241506576538,
-0.1547935158... | |
I'm creating Document Libraries in SharePoint with the Webservice Lists.AddList method through a C#.Net application. (See below)
```
listsService.AddList(listTitle, listDescription, 101);
```
I would like them to show up in the Quick Launch menu under the site they're created in rather than just the 'All Site Conten... | [
0.6619358658790588,
0.24936139583587646,
0.4842747449874878,
0.05545744672417641,
-0.013754519633948803,
-0.32942435145378113,
0.0755128487944603,
-0.08199181407690048,
-0.33928829431533813,
-0.9363978505134583,
0.011647248640656471,
0.4268692433834076,
-0.17608022689819336,
0.128491505980... | |
web service. Setting `OnQuickLaunch` in `listProperties` for `UpdateList` is what I would try, but it sounds like that doesn't work.
If your lists didn't already exist, I would suggest creating a feature with a list template with `OnQuickLaunch="true"` and adding the lists via `AddListFromFeature`. Your other option w... | [
0.6427023410797119,
-0.05664883181452751,
0.37947937846183777,
0.16623236238956451,
-0.024167314171791077,
-0.39213481545448303,
0.31720414757728577,
0.04633450508117676,
-0.3234686255455017,
-0.81432044506073,
0.05563662573695183,
0.570210337638855,
-0.26360735297203064,
0.352854520082473... | |
Greetings.
I have an 2-D array of size [N][N] which will represent a rectangular area / map with N rows and N columns.
Let's say I pick the middle as starting point (or anywhere else), I want to walk through all elements with the constraint of moving only X times before having to reset back to starting point. I then ... | [
-0.173443004488945,
0.18512772023677826,
0.5645418763160706,
0.16488845646381378,
-0.06929221004247665,
0.1391718089580536,
-0.054049015045166016,
-0.0858670026063919,
-0.4675569534301758,
-0.892268180847168,
-0.11704607307910919,
-0.1433744579553604,
0.017297061160206795,
0.16986525058746... | |
did. (quite messy tbh)
Thanks in advance.
It looks like you're talking about a turn-based game? So I think you should not look at them as turns, but look at objectives, than use a [path finding algorithm](http://en.wikipedia.org/wiki/Pathfinding) to see how many steps away the objective is, than assume the objectives ... | [
-0.05312783271074295,
-0.05299051105976105,
0.3696630001068115,
0.29275938868522644,
-0.0921860933303833,
-0.26063188910484314,
0.11001759022474289,
-0.3278900682926178,
-0.1784530133008957,
-0.3080585300922394,
0.319640576839447,
0.30658113956451416,
0.07315067201852798,
-0.15282620489597... | |
of the objectives
* Determine the amount of steps needed to reach the objective using a [path finding algorithm](http://en.wikipedia.org/wiki/Pathfinding).
* Calculate the amount of turns needed (`Math.Ceil(steps / stepsPerTurn)`)
* Determine the object with highest value for the least amount of turns.
* Travel to ... | [
-0.3413899838924408,
0.1340472549200058,
0.6476496458053589,
0.3361535370349884,
0.13389314711093903,
-0.05109626427292824,
0.42805638909339905,
-0.3212735652923584,
-0.3058274984359741,
-0.5126044154167175,
-0.2311491072177887,
0.3661547005176544,
0.06406402587890625,
-0.3934399485588074,... | |
when developing wpf applications i never use the graphical editor ( aka cider). only the xaml editor. as "cider" needs quite some resources when loaded i wonder if there is a way to completely disable it. This may speed up loading xaml files.
i heard that this is possible, but as google does not return what i`m lookin... | [
0.1731695681810379,
0.07695528119802475,
0.40458357334136963,
-0.198947474360466,
-0.21238680183887482,
-0.22214558720588684,
0.21840800344944,
-0.2252904623746872,
-0.10631408542394638,
-0.7815357446670532,
0.011325192637741566,
0.6780503988265991,
-0.2315998524427414,
-0.2226408720016479... | |
of "Always open documents in full XAML view".
Let me know if it doesn't work for you. :) | [
0.3154070973396301,
0.06304293870925903,
0.5326025485992432,
0.3334199786186218,
0.06490989029407501,
-0.6541627645492554,
0.3440709114074707,
0.4442819058895111,
-0.22084806859493256,
-0.37959492206573486,
-0.5028585195541382,
0.6193846464157104,
-0.23358842730522156,
-0.08995915949344635... | |
I need to build a custom simple non-authoritative caching DNS server in C/C++. Any guidance? Links? Samples?
There's no such thing as a "simple" cacheing DNS server, particularly if you want decent security. Recent DNS attacks have shown that the cacheing function in recursive DNS servers is particularly vulnerable.
R... | [
0.6497722864151001,
0.3008140027523041,
0.012904609553515911,
0.10080418735742569,
-0.3547111451625824,
-0.3152482211589813,
-0.17166931927204132,
0.07069291919469833,
-0.2693125307559967,
-0.7918497323989868,
0.046043526381254196,
0.45106080174446106,
-0.23426125943660736,
0.0314299836754... | |
`libevent` to implement the Fuzzing DNS server I mentioned in an earlier question. | [
0.13596242666244507,
0.050967879593372345,
0.1227865144610405,
0.07087752968072891,
-0.2605185806751251,
-0.34922319650650024,
-0.07704609632492065,
0.24515998363494873,
0.07409210503101349,
-0.2788909673690796,
-0.21659304201602936,
0.5963126420974731,
-0.18815851211547852,
0.318369865417... | |
I am trying to write a 2d game engine in C (no c++). What are some good libraries that have generic data types I may need - for example queues, trees, maps, lists, and so on?
Take a look at [GLib](http://developer.gnome.org/glib/) - it has trees, hashmaps, linked lists and queues.
[Wikipedia article](http://en.wikiped... | [
0.1412089765071869,
0.032295435667037964,
0.051385898143053055,
0.08680393546819687,
-0.10013392567634583,
-0.10928630083799362,
-0.03685733675956726,
0.17299290001392365,
0.04558239504694939,
-0.7862454652786255,
-0.012308589182794094,
0.3404774069786072,
-0.49292969703674316,
-0.07413443... | |
I created an indenpendent class for HTTP connection. All the connection works fine. The problem is that I find method 'didReceiveData' will be called AFTER the method who call the connection. (method 'didReceiveData' will be called after IBAction 'accept')
```
- (IBAction)accept:(id)sender {
[self connect:url];
... | [
-0.12978024780750275,
0.02039830945432186,
0.4912247955799103,
-0.14833635091781616,
-0.26402899622917175,
-0.03407437354326248,
0.4844129979610443,
-0.4439111053943634,
0.08330081403255463,
-0.6357125639915466,
0.022577881813049316,
0.49536269903182983,
-0.18027250468730927,
0.37964692711... | |
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
NSURLConnection *theConnection=[[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
if (theConnection)
{
// receivedData is declared as a method instance elsewhere
... | [
-0.33794060349464417,
-0.16399246454238892,
0.2786964476108551,
-0.1827603429555893,
0.07983674108982086,
-0.03949824720621109,
0.6747298240661621,
-0.37549903988838196,
-0.08297747373580933,
-0.41821539402008057,
-0.2599177956581116,
0.2191070020198822,
-0.10455050319433212,
0.50075680017... | |
}
else
{
// inform the user that the download could not be made
}
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
// append the new data to the receivedData
[receivedData appendData:data];
ReturnStr = [[NSString alloc] initWithData:data encoding:NSA... | [
-0.13001684844493866,
-0.1785723865032196,
0.5376487970352173,
0.016000134870409966,
0.24054144322872162,
-0.15208762884140015,
0.5163781642913818,
-0.2503407597541809,
-0.11195313185453415,
-0.564820408821106,
-0.3597705662250519,
0.6349750757217407,
-0.3480583727359772,
0.380174368619918... | |
like this:
```
MainViewController *mainView = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];
AMEAppDelegate *delegate = [[UIApplication sharedApplication] delegate];
[delegate.navController pushViewController:mainView animated:YES];
mainView.labelStr.text = ReturnStr;
```
A fur... | [
0.000333038333337754,
-0.12499234080314636,
0.6259232759475708,
0.15765665471553802,
0.035767894238233566,
-0.15063543617725372,
0.6925613880157471,
-0.2668507993221283,
-0.29139962792396545,
-0.6035899519920349,
-0.2780318558216095,
0.35759133100509644,
-0.18147039413452148,
0.24391609430... | |
method could take a while if the user has a crappy connection. | [
0.3428661823272705,
-0.22690553963184357,
0.21221618354320526,
0.5658594369888306,
-0.10328810662031174,
-0.21635083854198456,
0.4888170659542084,
-0.09589579701423645,
-0.24673084914684296,
-0.3334406614303589,
0.33822137117385864,
0.14887669682502747,
-0.14408555626869202,
0.063708573579... | |
I am a person who is very interested in personal development. Therefore, I would like to maintain a project database or diary, where I can list the special occurrences and experiences in the different projects.
Do you know any software which is dedicated to this task? (of course I can write it into a word file, but pe... | [
0.7969186305999756,
0.4764668643474579,
-0.20249073207378387,
0.018335454165935516,
0.18389101326465607,
-0.03677288070321083,
0.23030656576156616,
0.39970096945762634,
-0.3424668312072754,
-0.5077833533287048,
0.1232382208108902,
0.2136804312467575,
0.4337019622325897,
0.09851153194904327... | |
find useful is that the blog engine makes it easy to search by tag, category, date, or keyword - so even if you have multiple projects on the go you can tag/catergorize them as you like. Also by making the blog available to your co-workers they can gain the benefit of your notes as well, and even add comments/further s... | [
0.7275564074516296,
0.12398583441972733,
0.18326333165168762,
0.310189425945282,
0.12706449627876282,
-0.2536575198173523,
0.01740010268986225,
-0.015374316833913326,
-0.1523285210132599,
-0.7477828860282898,
-0.00453799357637763,
0.5018056035041809,
0.0035074541810899973,
0.04974516481161... | |
using [Evernote](http://evernote.com/) which is an awesome note keeping utility.
I guess the key thing is that you have to make it as easy as possible to use, otherwise you won't do it for very long :) | [
0.321953684091568,
-0.21913355588912964,
0.21017132699489594,
0.40551626682281494,
0.18664297461509705,
-0.2751663327217102,
0.057318978011608124,
0.5557945370674133,
-0.15094853937625885,
-0.721889317035675,
0.22051337361335754,
0.5006065368652344,
-0.05033755302429199,
-0.092925094068050... | |
We are introducing **JQuery** to an existing ASP.NET application and use the **Validate plugin** for JQuery to do the client side validation (we do not want to use the asp.net validators).
Everything works nicely with the asp:Button control. The client side validation is triggered before the page is submitted.
Howev... | [
0.3503081798553467,
-0.1376565545797348,
0.6236141324043274,
0.23269884288311005,
-0.37815773487091064,
-0.362486869096756,
0.005936215166002512,
-0.22991888225078583,
0.012005249969661236,
-0.6503850221633911,
0.0349934957921505,
0.5829885005950928,
0.12321260571479797,
-0.126138880848884... | |
resolve.
Update:
-------
Thanks a lot, your answers helped to identify the problem.
it turns out that there was a bug in the validate plugin for JQuery. We used a patch to avoid the validation of hidden input fields, which uses **parents().filter(":hidden")**. This doesn't work properly in **JQuery 1.3.2**. We repla... | [
0.006921463645994663,
-0.30071496963500977,
0.6018673777580261,
-0.03453869745135307,
-0.0023431964218616486,
-0.08917467296123505,
0.6051217913627625,
-0.2319696992635727,
-0.04058132320642471,
-0.7171574234962463,
0.059223320335149765,
0.8273151516914368,
-0.46247079968452454,
0.00850717... | |
})
```
The first suggestion might still work because you can cause the postback to fire using Javascript after the validation occurs.
The javascript is:
```
__doPostBack('<%= YourImageControl.UniqueID %>','');
```
The second empty parameter can be used to pass arguments. | [
-0.07547681778669357,
0.19842736423015594,
0.1588960438966751,
-0.28862079977989197,
0.105141282081604,
-0.0225580595433712,
0.24285578727722168,
-0.2580743432044983,
0.18875810503959656,
-0.3650934100151062,
-0.25725486874580383,
0.4288184344768524,
-0.3082627058029175,
0.0031563919037580... | |
As an example we have a Unit Test Project with an app.config file. The app.config file is configured to work on our build server. But if we want to run our tests locally (with local database) we have to change the app.config...everytime... is there a way to never alter the app.config but to have another file that overr... | [
0.5185898542404175,
0.09199166297912598,
-0.0037265950813889503,
0.31924575567245483,
0.08139272034168243,
-0.14637582004070282,
0.43865805864334106,
-0.34690582752227783,
-0.3626604974269867,
-0.509768009185791,
0.12301292270421982,
0.3825947642326355,
-0.28837740421295166,
-0.00826202426... | |
selected values from the main app.config (or web.config). | [
0.28566813468933105,
0.11709671467542648,
0.6359020471572876,
0.3277035057544708,
0.3744068145751953,
-0.08753633499145508,
-0.053758759051561356,
-0.17433089017868042,
-0.080035500228405,
-0.4467828869819641,
-0.5571086406707764,
0.4154791831970215,
-0.18873697519302368,
-0.28785410523414... | |
Following are the benefits of C++
* C++ provides the specific features they are asking about
* Their C compiler is almost certainly really a C++ compiler, so there are no software cost implications
* C++ is just as portable as C
* C++ code can be just as efficient as C (or more so, or less so)
Are there any concrete ... | [
0.4269394278526306,
-0.02442912943661213,
-0.019722744822502136,
0.1435491144657135,
-0.3195578157901764,
-0.1601111739873886,
0.1726105958223343,
-0.13496875762939453,
-0.5271152257919312,
-0.3660406172275543,
-0.2211708277463913,
0.5087703466415405,
-0.23652121424674988,
0.07481258362531... | |
me the most informative, particularly with regard to C99 issues which I hadn't considered, so I've accepted it. Thanks to all others who took part.**
> This is prompted by a an answer I gave to a current question which asks about a generics library for C - the questioner specifically states that they do not want to use... | [
0.3466854393482208,
0.3122926950454712,
0.32395434379577637,
-0.032025761902332306,
-0.3863685727119446,
-0.1668631136417389,
0.11585719883441925,
-0.03145710006356239,
-0.3287428617477417,
-0.32761600613594055,
-0.021302852779626846,
0.44054940342903137,
-0.14582273364067078,
0.2246804684... | |
foo = static_cast<foo_t*>( malloc ( sizeof(foo_t) ) );
```
which isn't valid C any more. (you could use the C-style cast, it which case it would compile in C, but be shunned by most C++ coding standards, and also by many C programmers; witness the "don't cast malloc" comments all over Stack Overflow).
---
They are ... | [
0.4722660183906555,
0.30420446395874023,
0.027195440605282784,
-0.29447290301322937,
-0.15449751913547516,
-0.20166409015655518,
0.09833700209856033,
-0.07538192719221115,
-0.1894392967224121,
-0.1928194761276245,
-0.05161179229617119,
0.6175611019134521,
-0.7376800775527954,
-0.0044091003... | |
cases this is possible with a few `extern "C"` wrapper functions, depending on how template/inline a C++ library is.)
Taking the first C file in a project I'm working on, this is what happens if you just swap `gcc std=c99` for `g++`:
```
sandiego:$ g++ -g -O1 -pedantic -mfpmath=sse -DUSE_SSE2 -DUSE_XMM3 -I src/core... | [
-0.046548742800951004,
0.22268681228160858,
0.33066055178642273,
-0.1980133354663849,
0.09820886701345444,
0.14463621377944946,
0.11099172383546829,
-0.3849354386329651,
-0.3898959457874298,
-0.7078704237937927,
-0.1590956300497055,
0.6867024302482605,
-0.4083380103111267,
-0.2550990283489... | |
macros were introduced in C99
...
cc1plus: warnings being treated as errors
src/core/kin_object.c:101: error: ISO C++ does not support the ‘z’ printf length modifier
..
src/core/kin_object.c:160: error: invalid conversion from ‘void*’ to ‘kin_object_t*’
..
src/core/kin_object.c:227: error: unused parameter ‘restrict’
.... | [
-0.0954684168100357,
0.18947793543338776,
0.6751097440719604,
-0.42181506752967834,
0.062083519995212555,
0.6200379133224487,
-0.181194007396698,
-0.1173904538154602,
-0.3236280083656311,
-0.5623632669448853,
0.245457261800766,
0.6167502403259277,
-0.8790241479873657,
-0.07857038080692291,... | |
it is plain wrong to suggest that
> [a] C compiler is almost certainly really a C++ compiler, so there are no software cost implications
There are often significant cost implications in porting existing C code to the procedural subset of C++.
So suggesting *'use the C++ std::queue class'* as an answer to question l... | [
0.2780793011188507,
-0.05688956379890442,
-0.06582121551036835,
0.18079450726509094,
-0.4320591986179352,
0.07278779149055481,
-0.0818067416548729,
-0.16334137320518494,
-0.23813572525978088,
-0.42879366874694824,
-0.006641145795583725,
0.4730374813079834,
-0.6324720978736877,
-0.203187584... | |
are callable directly from C without having to port unrelated code to the C++ language.
Of course you could supply a C façade to the C++ library, but once you're doing that C++ is no different to Java or Python. | [
0.5198817849159241,
0.24086534976959229,
0.2061009407043457,
-0.11155431717634201,
-0.03557164594531059,
-0.1515016257762909,
-0.07394252717494965,
-0.008758164942264557,
-0.2918374836444855,
-0.21469846367835999,
-0.44207873940467834,
0.7143968343734741,
-0.3788784146308899,
-0.0632465407... | |
I have the following data as input (sorted by first column):
```
foo 1 2
foo 3 3
bar 10 11
```
I want to create a Map of Vector with first column as key of the map
such that we have:
```
foo = {1,2,3,3}
bar = {10,11}
```
But why my code below doesn't work as expected?
```
#include <vector>
#include <map>... | [
-0.08547404408454895,
0.2116425484418869,
0.83573979139328,
-0.4818224310874939,
0.06215670332312584,
0.41618409752845764,
0.07268912345170975,
-0.40452346205711365,
-0.14613944292068481,
-0.7793144583702087,
-0.0778752788901329,
0.5681954622268677,
-0.6422052979469299,
-0.1700501590967178... | |
!=2 ) {
cerr << "expected one argument" << endl;
return EXIT_FAILURE;
}
string line;
ifstream acemblyfile (arg_vec[1]);
map <string, vector<int> > myMapOfVec;
vector <string> myVec; | [
-0.4123466908931732,
-0.47974419593811035,
0.7226583957672119,
-0.4703291654586792,
0.08368301391601562,
0.3163195550441742,
0.31662389636039734,
-0.3682706952095032,
0.08149949461221695,
-0.5967575907707214,
-0.47625818848609924,
0.42703041434288025,
-0.5028481483459473,
0.136190935969352... | |
string KEY = "" ;
if (acemblyfile.is_open())
{
while (getline(acemblyfile,line) )
{
stringstream ss(line);
string KEY_TEMP; | [
-0.10876034945249557,
-0.6351159811019897,
0.6401957869529724,
-0.4909859299659729,
0.3940497934818268,
0.028303582221269608,
0.4950838088989258,
-0.38916146755218506,
-0.26633626222610474,
-0.4161853492259979,
-0.7869596481323242,
0.533903956413269,
-0.43435654044151306,
0.155370995402336... | |
int VAL1;
int VAL2;
ss >> KEY_TEMP >> VAL1 >> VAL2;
MyVec.push_back(VAL1); | [
-0.5735079646110535,
-0.4534136950969696,
0.4701758623123169,
-0.4996166229248047,
0.327558308839798,
0.2739192247390747,
0.46476879715919495,
-0.02069840580224991,
0.003261328674852848,
-0.5852462649345398,
-0.6881467700004578,
0.4912634789943695,
-0.31918829679489136,
0.07838921993970871... | |
MyVec.push_back(VAL2);
if (KEY_TEMP != KEY) {
myMapOfVec[KEY] = MyVec;
KEY = KEY_TEMP;
MyVec.clear(); | [
-0.297656774520874,
-0.19928905367851257,
0.8559114933013916,
-0.5081826448440552,
0.5897034406661987,
0.07368544489145279,
0.44243067502975464,
0.048209838569164276,
-0.021753722801804543,
-0.22694078087806702,
-0.6491730213165283,
0.5958423018455505,
-0.26219797134399414,
0.2223574221134... | |
}
}
acemblyfile.close();
}
else {
cout << "Unable to open file";
}
for( map<string, vector<int> | [
-0.22484606504440308,
-0.2618497610092163,
0.3966253399848938,
-0.27687937021255493,
0.5373755693435669,
-0.054883625358343124,
0.20496760308742523,
-0.22784793376922607,
-0.17137432098388672,
-0.7134894132614136,
-0.569222092628479,
0.45099207758903503,
-0.6218518018722534,
0.326713979244... | |
>::iterator iter = myMapOfVec.begin(); iter != myMapOfVec.end(); ++iter ) {
vector <int> tempVec = (*iter).second;
string Key = (*iter).first;
for (unsigned i =0; i<tempVec.size(); i++) {
cout << Key << " " << tempVec[i] << endl;
}
}
return 0;
}
```
As Mykola said... | [
-0.23012760281562805,
-0.3285282254219055,
0.5924157500267029,
-0.17522671818733215,
0.044146399945020676,
0.3399798274040222,
0.1281583160161972,
-0.6769421100616455,
-0.31072327494621277,
-0.7204321026802063,
-0.20139549672603607,
0.5594940781593323,
-0.4587112367153168,
0.10715518891811... | |
one yourself. I changed your whole code so it works for me. Note that you wrote some of the variable names with wrong case (MyMapOfVec instead of myMapOfVec) and this led to compiler errors.
Also be sure you don't have a newline at the end of your input file because this will result in repeating the last line.
```
#i... | [
-0.06431606411933899,
-0.19633974134922028,
0.6384626626968384,
-0.20523428916931152,
-0.07164911925792694,
0.2289677858352661,
0.21929199993610382,
-0.5227584838867188,
-0.12191933393478394,
-0.6946768760681152,
-0.030865412205457687,
0.6100835204124451,
-0.7202947735786438,
-0.2977078855... | |
return EXIT_FAILURE;
}
string line;
ifstream acemblyfile (arg_vec[1]);
map <string, vector<int> > myMapOfVec;
string KEY;
if (acemblyfile.is_open())
{
while (getline(acemblyfile, line) )
{
stringstream ss(line); | [
-0.3257194459438324,
-0.6327420473098755,
0.6911818385124207,
-0.5810564756393433,
0.42342737317085266,
0.09687367081642151,
0.5496309399604797,
-0.25196778774261475,
-0.04572073742747307,
-0.6873317360877991,
-0.6001214981079102,
0.5120680928230286,
-0.45116981863975525,
0.208054661750793... | |
int VAL1;
int VAL2;
ss >> KEY >> VAL1 >> VAL2;
myMapOfVec[KEY].push_back(VAL1);
myMapOfVec[KEY].push_back(VAL2);
}
acemblyfile.close();
}
else { | [
-0.17923662066459656,
-0.3769993484020233,
0.5316196084022522,
-0.4841201901435852,
0.43513864278793335,
0.14576391875743866,
0.4175359606742859,
-0.378922700881958,
-0.1150941252708435,
-0.39250314235687256,
-0.6826993227005005,
0.7572628259658813,
-0.4031733572483063,
0.06452437490224838... | |
cout << "Unable to open file";
}
for( map<string, vector<int> >::iterator iter = myMapOfVec.begin(); iter != myMapOfVec.end(); ++iter ) {
vector<int> tempVec = (*iter).second;
string Key = (*iter).first;
cout << Key;
for (unsigned i = 0; i < tempVec.size(); i++) {
cout << " " << tempVec[i];
}... | [
-0.3949742913246155,
-0.1197768896818161,
0.6626700758934021,
-0.3642900884151459,
0.2616505026817322,
0.35425159335136414,
0.1034398004412651,
-0.36022162437438965,
-0.13906320929527283,
-0.730256974697113,
-0.5069789290428162,
0.48408830165863037,
-0.6096693873405457,
0.0558738186955452,... | |
Is there any way to change all scrollbars so I can make them look less windows? I don't dislike windows but in this case the scrollbar just looks stupid..
All WPF controls are skinnable by their control templates. Its pretty simple to do, but it may take a little time to fully grasp how to do it.
[Here's an example on... | [
0.4360562860965729,
-0.15820235013961792,
0.5004494786262512,
0.2974177300930023,
-0.02230922505259514,
-0.15035025775432587,
0.2762700915336609,
-0.19168585538864136,
-0.1765383780002594,
-0.6198285222053528,
0.37110447883605957,
0.5758719444274902,
-0.09234932065010071,
-0.03690132498741... | |
how would one implement a back-button as a commandbutton that works universally? with back button i don't mean the browser-button, but rather a button that sits somewhere on the page. it is not always possible to use the Post-redirect-get pattern.
its quite impractial to pass around the information on every single whe... | [
0.13749612867832184,
-0.07737527042627335,
0.4846040904521942,
0.01909414865076542,
-0.12597303092479706,
-0.24730299413204193,
0.04950786754488945,
-0.030248090624809265,
-0.40696656703948975,
-0.6833547353744507,
-0.2711468040943146,
0.37621164321899414,
-0.1603575348854065,
0.0347859747... | |
I have a query that I wish to run through an ASP.NET TableAdapter that contains an 'IN' clause which is to receive it's values through a parameter.
My question is, how do I specify this parameter? I thought of writing the conditional statement like this:
```
AND b.group_category_id in (@ParamList)
```
where the @Pa... | [
0.1265374720096588,
0.07988184690475464,
0.3444298207759857,
-0.06176292896270752,
-0.2595475912094116,
0.08357569575309753,
0.0019431152613833547,
-0.33665966987609863,
-0.1347314566373825,
-0.3534544110298157,
0.06839235126972198,
0.2599942088127136,
-0.3557596802711487,
0.17482328414916... | |
can't be done. | [
0.4216500222682953,
0.4871641993522644,
0.2250472903251648,
-0.011204543523490429,
0.18754146993160248,
-0.011275370605289936,
0.3755144774913788,
-0.011491293087601662,
0.009499828331172466,
-0.4007582664489746,
-0.09311507642269135,
-0.1220824345946312,
0.14101038873195648,
0.60106319189... | |
When I modify a property (say, svn:ignore) on the top most directory I checked out (most of the time it's trunk, anyway), using TortoiseSVN the client(s) recursively go through the complete project.
Big tree, much data, takes a long time.
How can I avoid this? There may be changes somewhere else but I know that I'm j... | [
0.02474489063024521,
0.026364585384726524,
0.47674354910850525,
-0.11474062502384186,
0.2638186514377594,
0.009294151328504086,
0.5255867838859558,
0.05624799430370331,
-0.7698361277580261,
-0.6789489984512329,
-0.11934050172567368,
0.6142520308494568,
-0.10276632010936737,
0.3218011558055... | |
update my other copy?
Try:
```
svn commit --non-recursive [target]
```
---
[**Edit:** The OP updated his question to clarify that he's referring to TortoiseSVN, not the regular Subversion command-line.]
**No, TortoiseSVN does not provide a direct way to non-recursively commit.** However, if you commit something at... | [
0.14588327705860138,
-0.14014413952827454,
0.5681043267250061,
0.021826745942234993,
0.16658653318881989,
-0.1491544097661972,
0.27638065814971924,
-0.05494264140725136,
-0.5222461223602295,
-0.29941076040267944,
-0.16467198729515076,
0.8708694577217102,
-0.29619139432907104,
-0.1191318854... | |
your real file while deselecting the dummy change, then revert the dummy change. This will force TortoiseSVN to do a non-recursive commit. | [
0.0445062592625618,
-0.2955089509487152,
0.36404040455818176,
0.1547439992427826,
0.34745144844055176,
0.16129770874977112,
0.3137109577655792,
-0.12756802141666412,
-0.476954847574234,
-0.21190950274467468,
-0.14412586390972137,
1.084991693496704,
-0.09101562201976776,
-0.0733895450830459... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.