text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Thanks for all the answers anyway!
It sounds like you are looking for some ORM so that you don't have to bother with hand written SQL code.
There is a post [here](https://stackoverflow.com/questions/74141/good-orm-for-c-solutions) that goes over ORM solutions for C++.
You also did not mention the type of application ... | [
0.3408712148666382,
0.26714804768562317,
0.3322494328022003,
0.4296965003013611,
0.06374824792146683,
-0.11746478825807571,
0.22553810477256775,
0.1960129588842392,
-0.47522369027137756,
-0.36532700061798096,
0.07261443883180618,
0.6092520356178284,
-0.0011495513608679175,
-0.1414163112640... | |
on connection to the internet in which case you may want to provide a network server for this task. I suggest using Apache + MySQL + PHP and using a lightweight ORM such as [Outlet ORM](http://www.outlet-orm.org/site/), and then using standard HTTP post calls to access your resources.
Server App: You have many more op... | [
0.475464791059494,
0.0870969220995903,
0.24589690566062927,
0.10595030337572098,
-0.06984522193670273,
-0.14834672212600708,
-0.007627979852259159,
0.2169129103422165,
-0.3722313940525055,
-0.8582173585891724,
-0.18873019516468048,
0.48733294010162354,
0.0034523664508014917,
-0.15583783388... | |
I am running into quite an annoying issue while trying to deserialise a specific XML document using XmlSerializer.Deserialize() method.
Basically, I have a strongly typed XSD with an element of type double. When trying to deserialise the element for a specific XML document, I get the usual "System.FormatException: In... | [
0.3148120045661926,
0.1445368528366089,
0.21910667419433594,
0.05265495181083679,
-0.18704964220523834,
-0.1783979833126068,
0.43590766191482544,
-0.2650514543056488,
-0.17689985036849976,
-0.5573504567146301,
0.16820132732391357,
0.5158254504203796,
-0.4720437526702881,
0.1345980763435363... | |
<xs:element name="Name" type="xs:string" />
<xs:element name="Length" type="xs:double" default="0.0" />
<xs:element name="AverageSpeed" type="xs:double" default="0.0" />
</xs:sequence>
</xs:complexType>
</xs:element>
```
**TrackInfo class:**
```
[Serializable]
public class TrackInfo
{
private str... | [
0.27645760774612427,
-0.12549591064453125,
0.21075987815856934,
0.15763908624649048,
0.09976763278245926,
0.23440158367156982,
-0.012387983500957489,
-0.3835735619068146,
-0.2299574762582779,
-0.24218305945396423,
0.05911784991621971,
0.59401935338974,
-0.2458636313676834,
-0.0308961197733... | |
stream = new MemoryStream(buffer);
System.Xml.XmlReader reader = new System.Xml.XmlTextReader(stream);
XmlSerializer xSerializer = new System.Xml.Serialization.XmlSerializer(typeof(TrackInfo));
TrackInfo trackInfo = (TrackInfo)xSerializer.Deserialize(reader);
```
I know that the deserialisation exception comes from ... | [
0.3468015193939209,
-0.2285630851984024,
0.09500360488891602,
0.14961430430412292,
-0.024190176278352737,
0.035339321941137314,
0.32187730073928833,
-0.07877466827630997,
-0.2758381962776184,
-0.6682502627372742,
0.16570423543453217,
0.5523090958595276,
-0.5860079526901245,
0.2347212731838... | |
of the day into the burning pit of hell (i.e. implementing ISerializable for about a hundred classes).
Cheers!
Jean-Michel
You can specify the default value like
```
[XmlElement]
[System.ComponentModel.DefaultValueAttribute(0.0)]
public double AverageSpeed
{ ... }
```
/edit: ok, strange beaviour her... | [
0.13507039844989777,
-0.1413561999797821,
0.4973541796207428,
0.2552586495876312,
-0.13487951457500458,
-0.03877585753798485,
0.4448687434196472,
0.23430798947811127,
-0.1004575788974762,
-0.735058069229126,
-0.06529860943555832,
0.5668922662734985,
-0.10985280573368073,
0.1378505975008011... | |
I have some code that will be accessed from two threads:
```
class Timer{
public:
void Start(){
start_ = clock_->GetCurrentTime();
running_ = true;
}
void Read(){
if(running_){
time_duration remaining = clock_->GetCurrentTime() - start_;
Actions(remaining)
}
}
p... | [
0.29734042286872864,
-0.1771145612001419,
0.25421974062919617,
-0.2620239853858948,
0.26704251766204834,
-0.056136030703783035,
0.26958996057510376,
-0.19702528417110443,
-0.16370534896850586,
-0.8286775350570679,
0.008299187757074833,
0.5469669699668884,
-0.3149286210536957,
0.38489407300... | |
didn't find any that fit my requirements, thus I'm rolling my own...
The Start() method is called (once only) from one thread. The Read() method is called very rapidly from another thread, the calls will start coming in before Start() is called.
Obviously it is very important that the start\_ variable is initialized... | [
-0.025526482611894608,
-0.23909950256347656,
0.2094268798828125,
0.026738423854112625,
0.17292051017284393,
-0.02239920385181904,
0.1503697633743286,
-0.1107952743768692,
-0.3195536136627197,
-0.4624963104724884,
-0.17147676646709442,
0.6057104468345642,
-0.3440837562084198,
0.198566138744... | |
I have no problem with the fact that a Read() could happen while the other thread is in the Start() routing, getting the time from the clock for example...the Read()s happen fast enough that its just not a big deal.
Anyway, I was looking for a way to ensure that the compiler/processor will execute the
```
start_ ... | [
0.3721313774585724,
0.027843410149216652,
-0.04843941703438759,
-0.045797254890203476,
0.2688289284706116,
-0.13913264870643616,
0.5154470205307007,
0.24358759820461273,
-0.2115768939256668,
-0.5908920764923096,
-0.0545540489256382,
0.5183131098747253,
-0.21410568058490753,
0.0609848722815... | |
some sort of volatile marker for "start" would be a good idea too. This also assumes that "start" can be written atomically. For example:
```
class Timer{
public:
void Start(){
start_ = clock_->GetCurrentTime();
}
void Read(){
if(nullptr != start_){
time_duration remaining = clock_->GetCurrentTime... | [
0.08446801453828812,
-0.11224638670682907,
-0.06539648026227951,
-0.35585516691207886,
0.3556813597679138,
-0.21026647090911865,
0.24274557828903198,
-0.15285690128803253,
-0.3103494346141815,
-0.3631129264831543,
-0.3813822269439697,
0.6508947610855103,
-0.3595002591609955,
0.177163720130... | |
Original Question:
We have an odd error with WebResource.axd url generation. (It does not seem to be related to the fairly common "WebRsource.axd Padding is invalid and cannot be removed" issue).
We have an ASP.NET web page that, when created, adds a script reference to WebResource.axd.
In this case, we're seeing th... | [
0.25512582063674927,
0.25437068939208984,
0.2496134489774704,
0.20451901853084564,
-0.0095409220084548,
-0.21486814320087433,
0.35822781920433044,
-0.04386986419558525,
-0.32847800850868225,
-0.5798488855361938,
-0.11716795712709427,
0.4842749834060669,
-0.15374073386192322,
0.239618018269... | |
trying to access looks like (in one case):
```
/WebResource.axd?d=D-wd7RbHCvS/../../images/icons/Ico_resize.gif')}}function%20ShowFilter_Manufacturer(){var%20div.......
```
[the remaining encoded javascript from that link has been removed as irrelevant]
Stranger yet, we got a few of these in rapid succession from t... | [
-0.02262142114341259,
0.15678849816322327,
0.07400678098201752,
0.08028081804513931,
0.08921897411346436,
0.215824693441391,
0.4003988206386566,
0.08519761264324188,
-0.2598183751106262,
-0.877123236656189,
-0.3602953851222992,
0.31421560049057007,
-0.40368911623954773,
0.4256100058555603,... | |
on a page...in this case, a field validator. Looking at the contents of the actual WebResource.axd reveals very standard looking set of Javascript functions that seem designed to handle generic .NET events. Not anything we've created.
Has anyone seen anything like this? (or better, has anyone understood why this was ... | [
0.36927488446235657,
-0.008897158317267895,
0.1011362224817276,
0.16652970016002655,
-0.232735738158226,
-0.4200098216533661,
0.1560126096010208,
-0.1638038456439972,
-0.2498587667942047,
-0.7493537068367004,
-0.24026905000209808,
0.1790734827518463,
-0.37941619753837585,
-0.08757110685110... | |
does not seem to have solved the problem. We've noticed this more often with IE 8 as a browser, which would lend some credence to the idea that this is browser related...perhaps the way the browser is parsing the stream...but why we would get subtly different responses on subsequent attempts baffles me.
Item 2:
It tur... | [
0.1010640412569046,
0.0826030969619751,
0.12727360427379608,
0.2846653461456299,
-0.23687264323234558,
0.12189267575740814,
0.3915070593357086,
0.20633216202259064,
-0.5545881986618042,
-0.43656787276268005,
-0.2560843527317047,
-0.023092223331332207,
-0.19494394958019257,
0.07075709104537... | |
eventually fixed by Microsoft:
<http://blogs.msdn.com/b/ieinternals/archive/2010/04/01/ie8-lookahead-downloader-fixed.aspx> | [
-0.13674257695674896,
-0.44918790459632874,
0.6646150946617126,
-0.09529611468315125,
0.04398917406797409,
0.3038437068462372,
0.18034932017326355,
0.7425360083580017,
-0.5740174651145935,
0.11523734778165817,
-0.30538657307624817,
0.48276153206825256,
-0.3126883804798126,
0.24486903846263... | |
Let's say you work for a huge company which suddenly decides to do custom in-house software development. Additionally, they want to be able to offer successful developments to their customers as well (if any).
Now you are in charge of it.
**What would you see as most important to build a successful software developme... | [
0.6912950277328491,
-0.10397307574748993,
-0.008740757592022419,
0.33250775933265686,
0.20337526500225067,
-0.07473623007535934,
-0.32223841547966003,
-0.04620644450187683,
-0.575523853302002,
-0.5097092390060425,
-0.4548681080341339,
0.6974791288375854,
0.302783340215683,
0.12176575511693... | |
the right tools. This is exactly what i am looking for.. What are the right tools and what people of what type would you hire first to join your team? Think of it as you will be the lead of that development.
Set yourself up to pass the [Joel Test](http://www.joelonsoftware.com/articles/fog0000000043.html) with at least... | [
0.18296414613723755,
-0.302275151014328,
0.10594587028026581,
0.49530062079429626,
-0.18524111807346344,
-0.07441622763872147,
0.2813815772533417,
-0.09126465022563934,
-0.09073913097381592,
-0.6716459393501282,
0.2100018709897995,
0.6593433022499084,
0.6906700730323792,
-0.168854653835296... | |
I have a base class for many tests that has some helper methods they all need.
It does not by itself have any tests on it, but JUnit (in eclipse) is invoking the test runner on it and complaining that there are no methods to test.
How can I make it ignore this class?
I know I could add a `dummyTest` method that woul... | [
0.4393509030342102,
0.04315478727221489,
-0.03603159263730049,
0.11131971329450607,
-0.13578876852989197,
-0.18558557331562042,
0.5623885989189148,
0.00391797162592411,
-0.16138796508312225,
-0.47491002082824707,
0.13760527968406677,
0.22413896024227142,
-0.42155787348747253,
0.12249002605... | |
@Test public void test1() { ... }
@Test public void test2() { ... }
}
```
> Also, you can annotate a class
> containing test methods with @Ignore
> and none of the containing tests will
> be executed.
Source: [JUnit JavaDoc](http://junit.sourceforge.net/javadoc/org/junit/Ig... | [
0.7363668084144592,
0.024174990132451057,
-0.3002100884914398,
-0.1312933713197708,
-0.03962131589651108,
-0.21540313959121704,
0.7110802531242371,
-0.1938541978597641,
0.21594730019569397,
-0.6607853770256042,
-0.09316462278366089,
0.3748035430908203,
-0.5899348258972168,
-0.0575777254998... | |
I know I can "SELECT 5 AS foo" and get the resultset:
> **foo**
>
>
> 5
>
>
> (1 row)
...is there any way to "SELECT 5,6,7 AS foo" and get the resultset:
> **foo**
>
>
> 5
>
>
> 6
>
>
> 7
>
>
> (3 rows)
...I'm well aware that this is not typical DB usage, and any conceivable usage of this is probably be... | [
0.2743579149246216,
0.3118363618850708,
0.13239994645118713,
-0.1457398384809494,
-0.2236812263727188,
0.013721572235226631,
0.2398119568824768,
-0.33635470271110535,
-0.07475406676530838,
-0.5581101179122925,
0.18488216400146484,
0.42270398139953613,
-0.24915821850299835,
0.24251268804073... | |
here is an example
```
select number as foo
from master..spt_values
where type = 'p'
and number between 5 and 7
```
or if you want to use in
```
select number as foo
from master..spt_values
where type = 'p'
and number in(5,6,7)
``` | [
-0.14343512058258057,
0.08415201306343079,
0.3748868703842163,
-0.2192048579454422,
0.03566138446331024,
0.07425987720489502,
-0.1236003190279007,
-0.11317745596170425,
-0.4341985583305359,
-0.3032241463661194,
-0.27127256989479065,
0.46588945388793945,
-0.3601890206336975,
0.0009821405401... | |
I'd like to convert an external XML document without any XSD schema associated with it into a fluent .NET object.
I have a simple XML file like:
```
<application>
<parameters>
<param></param>
<param></param>
</parameters>
<generation />
<entities>
<entity ID="1">
<P... | [
0.45709648728370667,
-0.1486351490020752,
0.12808795273303986,
0.1115933284163475,
-0.11867572367191315,
0.17990434169769287,
0.36387038230895996,
-0.3571033775806427,
0.10246088355779648,
-0.7861912846565247,
0.1784275621175766,
0.38503894209861755,
-0.08463933318853378,
-0.06571444869041... | |
<PropTest>Another Test</PropTest>
</entity>
</entities>
</application>
```
I'd like to navigate the document like:
```
var xConfig = new XmlConfig("file.xml");
// testValue should be assigned "Test"
string testValue = xConfig.Generation.Entities.Entity(1).PropTest;
```
What is the **best way to achie... | [
0.23845314979553223,
-0.450160413980484,
0.5231543183326721,
0.3742237389087677,
-0.026168134063482285,
-0.23488599061965942,
0.2540133595466614,
-0.547723114490509,
0.0510273203253746,
-0.8579424023628235,
-0.0173104926943779,
0.6768818497657776,
-0.08336320519447327,
-0.08131740242242813... | |
.FirstOrDefault();
if (val != null)
Console.WriteLine(val.Value);
```
The sample file.xml that I used was:
```
<?xml version="1.0" encoding="utf-8" ?>
<application>
<parameters>
<param></param>
<param></param>
</parameters>
<generation>
<entities>
<entity ID="1">
... | [
0.05806368216872215,
-0.3318415880203247,
0.27997180819511414,
0.08070749789476395,
-0.1319006234407425,
0.25439420342445374,
0.19921891391277313,
-0.7846635580062866,
-0.07670611888170242,
-0.8435835242271423,
-0.05278591439127922,
0.21889038383960724,
-0.2998880445957184,
0.0211456306278... | |
<entity ID="2">Another Test</entity>
</entities>
</generation>
</application>
``` | [
0.3192345201969147,
0.21482394635677338,
0.1093069314956665,
0.24207068979740143,
0.09518655389547348,
-0.23903365433216095,
0.07273712009191513,
-0.5293779969215393,
0.052098680287599564,
-0.7048726677894592,
-0.03620550036430359,
0.449668288230896,
-0.019756903871893883,
0.20029629766941... | |
I am receiving a large list of current account numbers daily, and storing them in a database. My task is to find added and released accounts from each file. Right now, I have 4 SQL tables, (AccountsCurrent, AccountsNew, AccountsAdded, AccountsRemoved). When I receive a file, I am adding it entirely to AccountsNew. Then... | [
0.06692654639482498,
0.40974289178848267,
0.7352886199951172,
-0.09991388767957687,
0.03231039270758629,
0.29945746064186096,
-0.13357703387737274,
-0.12430094182491302,
-0.2702268660068512,
-0.5708415508270264,
0.01854102686047554,
0.6499481201171875,
0.14247648417949677,
0.19857589900493... | |
Name FROM AccountsNew
TRUNCATE TABLE AccountsNew
```
Right now, I am differencing about 250,000 accounts, but this is going to keep growing. Is this the best method, do you have any other ideas?
EDIT:
This is an MSSQL 2000 database. I'm using c# to process the file.
The only data I am focused on is the accounts th... | [
0.3009762465953827,
0.3045222759246826,
0.3578193485736847,
0.06867550313472748,
0.04744616523385048,
-0.07590094208717346,
0.02856452390551567,
0.3188289999961853,
-0.3607132136821747,
-0.5042080283164978,
0.2572672963142395,
0.40779271721839905,
-0.1398778259754181,
0.28126832842826843,
... | |
"new" to "current" and re-create "new". | [
0.129866823554039,
-0.1684585064649582,
0.1449643075466156,
0.21213071048259735,
-0.0010164573322981596,
0.058264195919036865,
0.15201331675052643,
-0.005555889569222927,
-0.21350878477096558,
-0.6074721813201904,
-0.48643365502357483,
0.232601135969162,
-0.03623612970113754,
0.38549214601... | |
Whatever I try to compile in Cygwin I get the following output:
```
checking for mingw32 environment... no
checking for EMX OS/2 environment... no
checking how to run the C preprocessor... gcc -E
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configurati... | [
-0.14422480762004852,
0.3223109841346741,
0.46026360988616943,
0.004637418780475855,
0.20919694006443024,
0.06243952363729477,
0.7251383662223816,
-0.2421373873949051,
0.025960402563214302,
-0.37574246525764465,
-0.09240472316741943,
0.7502430081367493,
-0.35053324699401855,
-0.08371862024... | |
was:
#line 2815 "configure"
#include "confdefs.h"
int main() {
return __EMX__;
; return 0; }
configure:2838: checking how to run the C preprocessor
configure:2859: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2943: checking for gcc
configure:3056: checking whether the C compiler (gcc ) works
configure:3072... | [
0.03957150876522064,
0.17715874314308167,
0.5905207395553589,
0.19138583540916443,
0.16188552975654602,
-0.21891751885414124,
0.6347978115081787,
-0.14718657732009888,
-0.14561909437179565,
-0.47585079073905945,
-0.44607120752334595,
0.8277371525764465,
-0.3194093704223633,
-0.212742298841... | |
for redhat and do not seem to apply to cygwin.
Your Configure is wrong.
Usually `autoreconf -f` helps. If not you need to check the failing rule and fix it. | [
0.08048652112483978,
0.1683819442987442,
0.12357234954833984,
0.07006917893886566,
0.12033607810735703,
-0.2979581654071808,
0.4887923300266266,
0.2971751391887665,
-0.09878555685281754,
-0.5435425043106079,
-0.3381064534187317,
1.001758337020874,
-0.42032861709594727,
0.08079396933317184,... | |
Is there a way to have a statement across multiple lines without the underscore character?
It is really annoying in multi-line strings such as SQL statements, and especially [LINQ](http://en.wikipedia.org/wiki/Language_Integrated_Query) queries.
Beside from the ugliness and difficulty when changing a line (nothing li... | [
0.47574275732040405,
0.0930478647351265,
0.3849065601825714,
0.17910093069076538,
-0.18065063655376434,
-0.09669119119644165,
0.5431454181671143,
0.2281603366136551,
-0.5124668478965759,
-0.5005113482475281,
0.12198937684297562,
0.2959754168987274,
-0.23375029861927032,
0.3109084963798523,... | |
select a.articleName
dim createArticle as string = _
"Create table article " & _
" (articleID int " & _
" ,articleName varchar(50) " & _
" )"
```
No, you have to use the underscore, but I believe that VB.NET 10 will allow multiple lines w/o the underscore, only requiring if it can't figure ou... | [
0.17974244058132172,
-0.010257557965815067,
0.6882425546646118,
-0.27354514598846436,
0.012561112642288208,
-0.3575573265552521,
0.160054013133049,
-0.23917807638645172,
0.12153710424900055,
-0.48510944843292236,
-0.22263799607753754,
0.49640724062919617,
-0.3034246861934662,
0.09887579083... | |
We have a RichTextBox WPF control and since we control the layout, we simply cannot allow any rich content...
Therefor, we need to strip all data except text from the clipboard. For example, if someone is trying to copy/paste lets say text from a table directly from Microsoft Word, the RichTextBox also takes into acc... | [
0.23657771944999695,
0.0005025336868129671,
0.5105388760566711,
0.25543102622032166,
-0.025867369025945663,
-0.33939871191978455,
0.11288382112979889,
-0.04547513648867607,
-0.12711064517498016,
-0.709101140499115,
-0.229662224650383,
0.6332624554634094,
-0.3826676607131958,
0.158287256956... | |
want the clean text...
The most simple approach would be, in the preview paste command:
```
Clipboard.SetText(Clipboard.GetText());
```
and be done with it... But you guessed it.. Clipboard operations are not allowed in partial trust...
We also tried a dirty nasty hack, using a hidden Textbox suggested by this lin... | [
0.28154101967811584,
-0.12646400928497314,
0.4319530129432678,
-0.12883569300174713,
0.15056408941745758,
-0.2562008202075958,
0.47875720262527466,
-0.0021225290838629007,
0.050166867673397064,
-0.725643515586853,
-0.2659067213535309,
0.6852810382843018,
-0.501752495765686,
0.0691904947161... | |
textBox.Copy();
}
public static string GetText()
{
textBox.Clear();
textBox.Paste();
return textBox.Text;
}
}
```
And then call it like this:
```
ClipboardManager.SetText(ClipboardManager.GetText());
```
This works well in full trust, but for some reason, both Copy and Past... | [
0.09345647692680359,
0.0057993545196950436,
0.5630691647529602,
-0.12739601731300354,
0.1858235001564026,
-0.3974773585796356,
0.24002592265605927,
-0.11798147112131119,
-0.037551362067461014,
-0.6062984466552734,
-0.3896105885505676,
0.8240204453468323,
-0.4885048568248749,
0.046545464545... | |
data from your clipboard.. But my question will be answered just the same if someone can just point me out how to retrieve only the text from the clipboard in partial trust :)..
It's simply not possible.
In the end we used a toggle button where you could toggle to a textbox, paste it in there, and toggle back to our ... | [
0.19855980575084686,
-0.17322522401809692,
0.4001731276512146,
0.6356418132781982,
0.26362571120262146,
-0.06366579979658127,
0.2955785095691681,
0.043320443481206894,
0.01764862798154354,
-0.32423266768455505,
0.20210599899291992,
0.636724591255188,
-0.1387655884027481,
-0.091684930026531... | |
I have come across a quirky "feature" in Visual Studio and I was interested in seeing if anyone else had noticed this. Or if it is specific to myself.
I have some methods that perform SQL queries on a database and then return an OracleDataReader
```
method()
{
OracleCommand cmd = new command(query, connection);
Oracl... | [
0.29804953932762146,
0.17768050730228424,
0.2062981277704239,
0.00006750307511538267,
-0.1076032742857933,
0.02610929310321808,
0.2446729838848114,
-0.12412162125110626,
-0.1400861144065857,
-0.5155919194221497,
0.05355982854962349,
0.7592443227767944,
-0.3330423831939697,
0.10169856250286... | |
debugger view shows the reader as Empty.
Any time I do not check the results, the code that executes Read works without any problems.
I've not found evidence of this via Google, but my search skills often leave a lot to be desired. If anyone could confirm this on a system of their own or shed some light on the causes... | [
0.2186078578233719,
0.07031621038913727,
0.2278134524822235,
0.1436954289674759,
0.05785776302218437,
0.1163940578699112,
0.3254094421863556,
0.30926355719566345,
0.12580592930316925,
-0.5477874279022217,
-0.002626898232847452,
0.7268904447555542,
-0.10922707617282867,
0.3602752685546875,
... | |
I'm in the process of learning F# and am enjoying it so far. Almost all of the examples online use the lightweight syntax (#light); however, also give a comment about it being on for said example in most cases.
Is it better to learn F# using #light enabled or disabled? I'm planning on eventually learning it w/o it tur... | [
0.3824630379676819,
0.15764805674552917,
0.14739756286144257,
-0.17178678512573242,
-0.34212392568588257,
-0.2235623449087143,
0.326864093542099,
0.3909551501274109,
-0.21556724607944489,
-0.8029882311820984,
-0.09132148325443268,
0.7743712663650513,
0.000678091833833605,
-0.34114718437194... | |
for understanding some tricks about the F# syntax, but the #light syntax gives you much pleasant experience.
For example - using #light
```
let add a b c =
let ab = a + b
printfn "%d" ab
c - ab
```
Using non-light you can write the same thing like this:
```
let add a b c =
let ab = a + b in // 'in' keywo... | [
0.2867499887943268,
-0.2016720175743103,
0.23837962746620178,
-0.3437185287475586,
-0.010656608268618584,
-0.07341036945581436,
0.13283474743366241,
-0.2548677325248718,
0.1071549579501152,
-0.5732042789459229,
-0.005778314080089331,
0.49170762300491333,
-0.5871102213859558,
-0.09853770583... | |
// ';;' is end of a function declaration
```
This for example shows that you cannot write something like:
```
let doNothing a b =
let sum = a + b in
```
There is an 'in' keyword at the end but the function doesn't have any body (because there is no expression following 'in'). In this case non-light syntax is s... | [
0.16703572869300842,
0.09330695122480392,
0.4666740596294403,
-0.3112466633319855,
-0.2858826220035553,
-0.3514358699321747,
0.29528680443763733,
0.0011741762282326818,
0.06392127275466919,
-0.3946458101272583,
-0.3733430504798889,
0.4947115182876587,
-0.3264063000679016,
0.062234502285718... | |
Title more or less says it all. Specifically, I've become increasingly annoyed that in order to run an ant script I have to use `Alt`+`Shift`+`x`, `q`. But I think If I had this power I would many things I would change the shortcuts for/add shortcuts for things that don't currently have them.
*Window > Preferences > Ge... | [
0.4797305166721344,
0.14134596288204193,
0.07006785273551941,
0.09284257143735886,
-0.17334456741809845,
-0.05303667485713959,
0.25184381008148193,
0.21009020507335663,
-0.006597100757062435,
-0.8630087375640869,
-0.0008919028332456946,
0.5127202272415161,
0.1818709820508957,
0.53226363658... | |
What is the easiest way to programatically convert a compressed wav file (MPEG codec for example, but could be any installed codec) to an uncompressed wav file (16 bit PCM)?
I've heard that using direct show and writing the code in native C++ would do it, but I've not had much experience with direct show.
Is there a... | [
0.12363442778587341,
-0.06529691070318222,
0.3243487477302551,
0.021360263228416443,
-0.21305273473262787,
0.0376368872821331,
-0.13819241523742676,
-0.3150825500488281,
-0.24794794619083405,
-0.6193317174911499,
-0.06543364375829697,
0.6496833562850952,
-0.2686653435230255,
0.008620342239... | |
using (WaveStream convertedStream =
WaveFormatConversionStream.CreatePcmStream(reader))
{
WaveFileWriter.CreateWaveFile(outputFileName, convertedStream);
}
}
``` | [
0.16425085067749023,
-0.4115500748157501,
0.8043494820594788,
-0.11824864149093628,
0.1069168671965599,
-0.10521665960550308,
0.1574123203754425,
-0.2921731770038605,
-0.07195625454187393,
-0.6221081614494324,
0.057618625462055206,
0.7742605209350586,
-0.13227690756320953,
0.18441651761531... | |
I want to reuse some code licensed under a BSD license but I don't know how to make it clear what I wrote, what I have reused and what I have modified.
Say the project I want to reuse code from has the following directory structure:
```
project/
|-- LICENSE.txt
|-- module1/
| |-- file1.c
| |-- file2.c
| `-- fil... | [
0.7185136079788208,
0.3734745681285858,
0.40247800946235657,
-0.2931016683578491,
0.10403523594141006,
-0.4033457636833191,
0.10742425173521042,
-0.04866350069642067,
-0.2372390180826187,
-0.32047030329704285,
-0.5035606026649475,
0.4333016276359558,
-0.31953665614128113,
0.323254436254501... | |
a template of the full text.)
Also, the copyright is only stated in the LICENSE.txt file and not in every individual source code file.
If I now copy everything under project/module1/ to my own project:
```
my_project/
|-- module1/
| |-- file1.c
| |-- file2.c
| `-- file3.c
|-- my_file1.c
|-- my_file2.c
|-- my_s... | [
0.8427419066429138,
0.3014260232448578,
0.5638653039932251,
-0.02795991115272045,
0.17190656065940857,
-0.5538806915283203,
0.1835198849439621,
-0.3791535496711731,
-0.21161648631095886,
-0.4712105691432953,
-0.3474265933036804,
0.5332731604576111,
-0.32908928394317627,
0.3284569978713989,... | |
the files under module1? Should I then somehow add myself as an additional copyright holder for the files I modified?
Note: I am perfectly fine with using the same (or a compatible) license for the code I wrote.
Copy `LICENSE.txt` in your `module1` dir, and mention in your docs (README, LICENSE, etc.) that you use thi... | [
0.9819210767745972,
0.18759582936763763,
0.18542376160621643,
-0.1738353818655014,
-0.02681627869606018,
-0.8040706515312195,
0.23434875905513763,
-0.1529080867767334,
-0.31837892532348633,
-0.216998890042305,
-0.22969725728034973,
0.7791091203689575,
-0.5155629515647888,
-0.03215703368186... | |
practice is to mention it in the file header, around your changes, and in your global docs. If the modified files had no copyright notice, just add one describing your changes. That way users can known which files were modified, who did it, why and how.
It's that simple: do it in a very descriptive way. There is no fo... | [
0.7180513143539429,
0.09663551300764084,
0.3288702666759491,
0.008770156651735306,
0.16109459102153778,
-0.5248475670814514,
-0.2306843250989914,
0.16214367747306824,
-0.28687259554862976,
-0.5466997027397156,
0.09102512151002884,
0.39706194400787354,
-0.24444670975208282,
0.18142125010490... | |
im trying to getting auto complete working and i can do so fine when i just create an array in my mxml and then just initialize an arrayCollection at the top of the file in the initialize keyword.
However i want to populate the arraycollection from a webservice but i cant seem to get it;
im my application tag i have ... | [
-0.03522157296538353,
-0.06940952688455582,
0.6377296447753906,
-0.21762289106845856,
0.05295766517519951,
-0.019481336697936058,
0.4608098268508911,
-0.5191104412078857,
-0.10168309509754181,
-0.6366583108901978,
-0.2577802240848541,
0.7826775312423706,
-0.5188590884208679,
-0.22772058844... | |
data1 = new Array(e.result);
}
```
however my text box is not getting any value.
Anyone with ideas?
first off, Array is not Bindable so changing the variable data1 will have no knock on effect.
The arrayCollection is bindable.
So presumming that the result (e.result) is actually an array (you should check ... | [
0.07440470159053802,
-0.10041451454162598,
0.4944756329059601,
-0.03469589352607727,
-0.06984307616949081,
-0.027231913059949875,
0.13830307126045227,
-0.28338247537612915,
-0.20139062404632568,
-0.524839460849762,
-0.06469117105007172,
0.7601343989372253,
-0.4019586443901062,
0.0182636789... | |
should listen for the change event in the arrayCollection and take the appropriate action then.
---
from your additional points below (just edit your original question)
I take it the autocomplete your talking about is the autocomplete text input box from adobe exchange area as a normal text box doesn’t take an array... | [
0.16154325008392334,
-0.13931913673877716,
0.4199170470237732,
-0.1116505041718483,
-0.3497399389743805,
-0.12658827006816864,
-0.04531172290444374,
-0.4325394928455353,
-0.26582786440849304,
-0.457680344581604,
-0.10834875702857971,
0.8007628917694092,
-0.46702703833580017,
-0.34179797768... | |
I'm reverse-engineering a serial protocol and getting frustrated by bad tools. Does anyone know of a good, free tool for logging data to/from serial ports on Windows?
Requirements:
* Must be free
* Must not take control of the port (i.e. must hook the file APIs or the kernel rather than trying to open the device)
* M... | [
0.40531039237976074,
0.12926839292049408,
0.34625184535980225,
0.24252192676067352,
0.13748346269130707,
-0.49149367213249207,
0.434025377035141,
0.13657796382904053,
-0.4924389123916626,
-0.5405512452125549,
-0.13171488046646118,
0.7653040289878845,
-0.2788960337638855,
0.1964530497789383... | |
to fit the bill.
[Portmon](http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx) from sysinternals (now MSFT) is probably the best monitor.
I haven't found a good free tool that will emulate a port and record/replay comms. The commercial ones were expensive and either so limited or so complex if you want to ... | [
0.32546594738960266,
-0.29177969694137573,
0.6344634294509888,
-0.05044843256473541,
0.07862073928117752,
-0.26770585775375366,
-0.04773338511586189,
0.2018289417028427,
-0.4762807786464691,
-0.8338159918785095,
0.006596134509891272,
0.8915629386901855,
-0.2844679057598114,
-0.037865877151... | |
I'm trying to use the MusiSync font to embed a sharp and flat symbol in a line of text. In order to keep these symbols from being tiny I have to make their point size twice the size of the rest of the text. Unfortunately, this messes up the line height in Internet Explorer and I cannot find a way to control it. You can... | [
0.21371540427207947,
-0.009334618225693703,
0.2571358382701874,
0.2715185582637787,
0.2375500202178955,
0.39093586802482605,
-0.04439087212085724,
0.06592381000518799,
-0.2962415814399719,
-0.9616339802742004,
0.3179563879966736,
0.6611933708190918,
-0.34644731879234314,
0.1116690337657928... | |
white-space above each glyph in the font itself. The font is poorly designed.
If you set your style to this, you'll see the issue:
```
.style2 {
font-family: MusiSync;
font-size: 24pt;
border:1px solid #000000;
}
```
The problem appears in FireFiox 3 as well, its just manifesting itself a little differe... | [
0.17128010094165802,
0.3447180986404419,
0.32018110156059265,
-0.1521839201450348,
-0.18437723815441132,
0.06926717609167099,
0.46940162777900696,
-0.18176980316638947,
-0.005445961374789476,
-0.8261946439743042,
-0.01258054468780756,
0.6345583200454712,
-0.5115401744842529,
-0.12638357281... | |
How can a I guarantee that no pop-up dialogs will appear when I automate Microsoft Excel through OLE? I'm using a Perl module (Win32::OLE). I can avoid most dialog pop-ups using the following code:
```
use Win32::OLE;
use Win32::OLE::Variant;
use Win32::OLE::Const;
my $excel_symbols = Win32::OLE::Const->Load('Microso... | [
0.03999006748199463,
0.26102304458618164,
0.9098379015922546,
-0.1704021543264389,
0.21910153329372406,
-0.038414761424064636,
0.4499598443508148,
-0.08903079479932785,
0.0040287720039486885,
-0.7417428493499756,
-0.3899383246898651,
0.5242210030555725,
-0.5929083824157715,
-0.116456426680... | |
is from another program which is incompatible with
> Microsoft Excel, click Cancel, then
> open this file in its original
> application. If you want to open the
> file later in Microsoft Excel, save it
> in a format that is compatible, such
> as text format.
> * If you suspect the file is damaged, click Help for ... | [
0.21984466910362244,
0.12382949888706207,
0.26049572229385376,
0.25684940814971924,
0.06580810993909836,
-0.5546828508377075,
0.13871122896671295,
-0.015709662809967995,
-0.028568502515554428,
-0.5551389455795288,
-0.38020357489585876,
0.7363640666007996,
-0.40206512808799744,
0.0494298860... | |
appears that contains 'OK', 'Cancel' and 'Help' buttons.
I cannot control the quality of files that are provided to the scripts.
I revisited this issue and found a solution.
Copy the file before processing to a temporary location. Then save the file before closing it in Excel:
```
File::Copy::copy('c:\some_excel_fil... | [
-0.31459495425224304,
0.3379576802253723,
0.7015648484230042,
-0.24122655391693115,
-0.06987138837575912,
-0.13388876616954803,
0.15497776865959167,
-0.3366895914077759,
-0.005550525151193142,
-0.566977322101593,
-0.3345657289028168,
0.6182765960693359,
-0.391059547662735,
-0.1809929460287... | |
there could be changes made on a document, even though your script doesn't perform any such operations.
By saving the document before closing, you avoid the dialog requesting that you save the file. Using a temporary file ensures that the original file does not get changed during the validation operation. If you aren'... | [
0.4157100319862366,
0.06128114089369774,
0.37452518939971924,
0.10289187729358673,
0.49195581674575806,
-0.1048988401889801,
0.3500198721885681,
0.08094901591539383,
-0.40677446126937866,
-0.536652684211731,
-0.21831119060516357,
0.3058044910430908,
0.06654372811317444,
0.0715019628405571,... | |
This might be a stupid question, but I can't for the life of me figure out how to select the row of a given index in a QListView.
QAbstractItemView , QListView's parent has a setCurrentIndex(const QModelIndex &index). The problem is, I can't construct a QModelIndex with the row number I want since the row and column f... | [
0.04491756483912468,
-0.09319894760847092,
0.6357027888298035,
0.0663130134344101,
-0.35014790296554565,
0.018501203507184982,
0.20302091538906097,
-0.2928292751312256,
0.21606075763702393,
-0.7968004941940308,
0.2730506956577301,
0.603347897529602,
-0.3865964710712433,
0.3426368236541748,... | |
int column) function of the model you gave to the view. QModelIndexes should only be used once, and must be created by the factory in the model. | [
0.21334446966648102,
-0.22531217336654663,
0.5180861949920654,
-0.05093451961874962,
0.01107934582978487,
0.36636728048324585,
0.05237091705203056,
-0.22007137537002563,
0.13227446377277374,
-0.7239087820053101,
0.18571357429027557,
0.4678203761577606,
-0.3531247079372406,
0.09579662233591... | |
I just wonder if it is possible to send Meeting Requests to people without having Outlook installed on the Server and using COM Interop (which I want to avoid on a server at all costs).
We have Exchange 2003 in a Windows 2003 Domain and all users are domain Users. I guess I can send 'round iCal/vCal or something, but ... | [
0.11549563705921173,
0.32046863436698914,
0.5908252000808716,
0.24978697299957275,
-0.1352963000535965,
-0.3855153024196625,
0.03101831115782261,
0.26012957096099854,
-0.3594229519367218,
-0.4199497103691101,
0.3248893916606903,
0.28583160042762756,
-0.23061054944992065,
0.2406992465257644... | |
be sure to set these additional properties, as Outlook needs them:
+ [`UID`](http://www.kanzaki.com/docs/ical/uid.html)
+ [`SEQUENCE`](http://www.kanzaki.com/docs/ical/sequence.html)
+ [`CREATED`](http://www.kanzaki.com/docs/ical/created.html)
+ [`LAST-MODIFIED`](http://www.kanzaki.com/docs/ical/lastModified.html)
... | [
0.008844231255352497,
-0.34056270122528076,
0.34389376640319824,
0.298874169588089,
-0.12192840129137039,
0.06352031975984573,
0.10889530181884766,
-0.2351561337709427,
-0.10490616410970688,
-0.46102574467658997,
-0.438504695892334,
0.38479676842689514,
-0.21061769127845764,
-0.24106889963... | |
the user something to click on. Outlook does not really require the attachment because it just reads the `text/calendar` part.
* Send the mail to an outlook user. If you got everything right the mail shows up as a meeting request, complete with attendance buttons and automatic entry in the users calendar upon accept.
*... | [
0.389567494392395,
-0.016445133835077286,
0.5350384712219238,
0.231171652674675,
-0.10409057140350342,
-0.2620309591293335,
0.08368652313947678,
0.2380894273519516,
-0.08686509728431702,
-0.6043857336044312,
-0.10031584650278091,
0.3139101266860962,
-0.017685415223240852,
-0.03059843741357... | |
it's expectations, but with a UID you made up this will hardly work.
For help on the details and peculiarities of the ics file format, be sure to visit the [iCalendar Specification Excerpts by Masahide Kanzaki](http://www.kanzaki.com/docs/ical/). They are a light in the dark, much better than gnawing your way through ... | [
0.33222201466560364,
0.13316619396209717,
-0.12042658030986786,
0.37087035179138184,
-0.2873208820819855,
-0.24104347825050354,
0.059121884405612946,
-0.13649359345436096,
-0.11810491234064102,
-0.7146639227867126,
-0.07140292972326279,
0.2858484387397766,
0.023151405155658722,
0.116029314... | |
This is a poll of sorts about common concurrency problems in Java. An example might be the classic deadlock or race condition or perhaps EDT threading bugs in Swing. I'm interested both in a breadth of possible issues but also in what issues are most common. So, please leave one specific answer of a Java concurrency bu... | [
0.3351716697216034,
0.09804211556911469,
-0.28135502338409424,
0.11748850345611572,
-0.1834980994462967,
-0.42716896533966064,
0.1609373390674591,
0.3851150870323181,
-0.6953541040420532,
-0.5376467108726501,
0.11579887568950653,
0.5019968748092651,
-0.53907310962677,
0.1274581402540207,
... | |
extends Thread {
private boolean stop = false;
public void run() {
while(!stop) {
doSomeWork();
}
}
public void setStop() {
this.stop = true;
}
}
```
As long as stop is not *volatile* or `setStop` and `run` are not *synchronized* this is not guaranteed to work. This mistake is especially... | [
0.16604137420654297,
-0.4430835247039795,
0.7095309495925903,
-0.18519525229930878,
0.3766059875488281,
-0.38984414935112,
0.38150888681411743,
-0.03729497641324997,
-0.04637649282813072,
-0.3348667323589325,
-0.27354612946510315,
0.638267993927002,
-0.29512423276901245,
-0.075788915157318... | |
I'm looking for a cheat sheet that will allow me to show an HTML designer the equivalent asp.net controls for standard HTML tags. As an example the <asp:Panel> will render as an HTML <div> and an <asp:Label> will render as an HTML <span>. I've been googling this to no avail. Can someone post a link to a good cheat shee... | [
0.4113578200340271,
-0.030226310715079308,
0.30386558175086975,
0.3165649175643921,
-0.3362063467502594,
0.0265666376799345,
-0.010611808858811855,
-0.12328759580850601,
-0.2087034285068512,
-0.6126935482025146,
0.07329270988702774,
0.4922444224357605,
-0.2969924509525299,
-0.0949105620384... | |
to standard HTML. It would be great if this were in PDF format or on an easy to read and print web page. The reason, in my case, would be that we have a PHP developer who is very familiar with HTML coming to work on our project, and I feel it would be useful to have a better understanding of standard ASP.NET server con... | [
0.525550365447998,
0.06278954446315765,
0.33656349778175354,
0.02119431644678116,
-0.10116539895534515,
-0.4408991038799286,
0.1739547997713089,
0.13307693600654602,
-0.13029193878173828,
-0.5387793183326721,
-0.11188242584466934,
0.6209812164306641,
-0.3542881906032562,
-0.367909938097000... | |
of .NEt you're talking about and states of controls sometimes. For example, the PANEL, in 1 & 1.1 render to a TABLE while in later versions it's a DIV.
But overall (for 2/3), here goes:
* Panel - Div
* Panel -- GroupingText="###" is Fieldset, Legend
* Label - Span
* Button - Input, Type Button
* Link Button - Href wi... | [
-0.16601142287254333,
-0.47459831833839417,
0.3855496048927307,
0.07245337218046188,
-0.2334468811750412,
-0.16096237301826477,
0.33722954988479614,
-0.17351098358631134,
-0.10880476236343384,
-1.1134817600250244,
-0.2151383012533188,
0.38258859515190125,
-0.2396448254585266,
0.11588710546... | |
Radio with GroupName
* Checkbox - Input, Checkbox
* Repeater/Listview --Complex.
* Gridview - Table
* Table - Table
* File - Input, Type=File
That's the basics. The more esoteric controls such as the LOGIN control is a table with a bunch of odds an ends within it. | [
0.13664241135120392,
0.16577231884002686,
0.26700642704963684,
0.26543915271759033,
-0.191579207777977,
-0.773794412612915,
0.08035021275281906,
-0.36154720187187195,
0.12041077762842178,
-0.30523812770843506,
0.1398996114730835,
0.945582389831543,
-0.22846215963363647,
-0.0733203813433647... | |
Can the elements of the Master Page be accessed from the Content Page?
Lets say I have MasterPage1 and ContentPage1 that inherits from the MasterPage1, and the MasterPage1 has a button: Button1.
Can I change the property of that button from the content page, for example to make Button1 invisible, inactive etc? How ca... | [
0.21511052548885345,
-0.12486641108989716,
0.5104260444641113,
0.20840074121952057,
0.00519917719066143,
-0.03369925171136856,
0.22698171436786652,
-0.3562292158603668,
-0.3520624041557312,
-0.8649278283119202,
-0.022870134562253952,
0.3298768699169159,
-0.48962926864624023,
0.260396569967... | |
In JavaScript, there are two values which basically say 'I don't exist' - `undefined` and `null`.
A property to which a programmer has not assigned anything will be `undefined`, but in order for a property to become `null`, `null` must be explicitly assigned to it.
I once thought that there was a need for `null` beca... | [
0.14658483862876892,
0.20007237792015076,
-0.241917222738266,
-0.2656857371330261,
-0.3198395073413849,
-0.3479590117931366,
0.3817756772041321,
0.25652310252189636,
0.06871138513088226,
-0.36577266454696655,
-0.44270169734954834,
0.24792669713497162,
-0.40854576230049133,
0.22876483201980... | |
(one has to throw an error to proclaim failure in constructors).
They also both evaluate to `false` in boolean contexts. The only real difference I can think of is that one evaluates to `NaN`, the other to `0` in numeric contexts.
So why is there both `undefined` and `null` if this just confuses programmers who are i... | [
0.20935159921646118,
0.26897379755973816,
-0.5848501920700073,
0.09214096516370773,
-0.24440418183803558,
-0.08134067803621292,
0.4232446849346161,
-0.05181609466671944,
-0.16886034607887268,
-0.2853216230869293,
0.12204430997371674,
0.5299054980278015,
0.11254752427339554,
0.2244825512170... | |
be that `undefined` means 'there is no such property' while `null` means 'the property does exist, but holds no value'.
I could live with that if JavaScript implementations would actually enforce this behavior - but `undefined` is a perfectly valid primitive value, so it can easily be assigned to existing properties t... | [
0.05052604526281357,
0.04322439432144165,
-0.22840569913387299,
-0.03296637162566185,
0.03380963206291199,
-0.4800017774105072,
0.11144247651100159,
-0.048601407557725906,
-0.17569947242736816,
-0.2941523790359497,
-0.18402613699436188,
0.5045291781425476,
-0.1547851711511612,
0.2298237681... | |
properties no longer in use but which I don't want to `delete`. Should I use `null` instead?
The question isn't really "why is there a null value in JS" - there is a null value of some sort in most languages and it is generally considered very useful.
The question is, "why is there an *undefined* value in JS". Major p... | [
-0.3182946741580963,
0.15807360410690308,
0.10583321750164032,
-0.06243986636400223,
-0.13616907596588135,
-0.1982031613588333,
0.35844698548316956,
0.32203683257102966,
-0.3216668665409088,
-0.5040054321289062,
-0.2908390760421753,
0.46255549788475037,
-0.058645375072956085,
0.37770286202... | |
(1) and (2)\*. (3) should really throw an exception straight away, and the fact that it doesn't, instead of returning this weird `undefined` that will fail later, is a big source of debugging difficulty.
\*: you could also argue that (2) should throw an exception, but then you'd have to provide a better, more explicit... | [
-0.03930563107132912,
0.021924639120697975,
-0.185334712266922,
-0.12042596191167831,
-0.33229130506515503,
-0.42742523550987244,
0.4281002879142761,
-0.16560348868370056,
-0.24150702357292175,
-0.35801374912261963,
-0.41388702392578125,
0.28233420848846436,
-0.5478514432907104,
-0.0372036... | |
already had a purpose and you might well want to set a member to it, a different out-of-band value was required. So we have `undefined`, it's problematic as you point out, and it's another great JavaScript 'feature' we'll never be able to get rid of.
> I actually use undefined when I want to unset the values of proper... | [
0.30004754662513733,
-0.1626889705657959,
0.18329480290412903,
-0.14971911907196045,
-0.05348636209964752,
-0.41138410568237305,
0.41485267877578735,
0.03368564695119858,
-0.2715565264225006,
-0.4576719403266907,
0.05804542079567909,
0.27289333939552307,
-0.354260116815567,
0.0569361820816... | |
setting something to `null` can give you an error. Often in this case setting to the empty string tends to work. | [
0.26967477798461914,
-0.09846756607294083,
-0.4001528322696686,
0.030755918473005295,
-0.22764639556407928,
-0.24860644340515137,
0.5270962715148926,
0.21839819848537445,
-0.10113856941461563,
-0.3480120003223419,
-0.1812947690486908,
0.23638416826725006,
-0.4805605411529541,
0.22517609596... | |
we are developing an application with flex builder and all our code + fla files
are in the svn we wont now to work with branches
and i what can be done about merging those file between branches
or what shode be the working procedure
when do so ??
thanks
Use the fla files as any other binary file - you will have to ... | [
0.58347487449646,
-0.36314964294433594,
0.19630911946296692,
0.25493359565734863,
-0.12179631739854813,
-0.18636977672576904,
0.055750224739313126,
-0.0231113713234663,
-0.20723043382167816,
-0.5015327334403992,
0.26480987668037415,
0.827050507068634,
-0.19262158870697021,
0.10613910108804... | |
to try to compare two fla files that each have been changed. (Explain this to the team, locking in SVN can undone, it's more a reminder than an absolute stop) Instead of changing the fla files add new ones with the replacement functionality, add comments during commit on how these changes could be included in the main ... | [
0.48414990305900574,
-0.319914847612381,
0.22980010509490967,
0.2437867522239685,
0.16269099712371826,
-0.26938170194625854,
0.33101239800453186,
-0.3228359818458557,
-0.47505608201026917,
-0.6893715858459473,
-0.08466721326112747,
0.690549910068512,
-0.39851099252700806,
-0.10450737923383... | |
fla's -- images can be embedded using code, and of course no source code should be in the fla.
Make sure everyone on the team knows about the issues with subversion and binary files.
It's not perfect, but this will keep it somewhat manageable. | [
0.5030779242515564,
0.14325127005577087,
0.3029533326625824,
0.44446852803230286,
0.2124483287334442,
-0.48819586634635925,
-0.010454018600285053,
-0.09346182644367218,
-0.10599928349256516,
-0.37027543783187866,
-0.1034388542175293,
0.6287016868591309,
-0.21853867173194885,
-0.38069924712... | |
Has anyone had any success with getting data via Xml-rpc using Python or Perl...?
I'm using the continuum.py library:
```
#!/usr/bin/env python
from continuum import *
c = Continuum( "http://localhost:8080/continuum/xmlrpc" )
```
or:
```
#!/usr/bin/perl
use Frontier::Client;
my $url = "http://dev.server.com:80... | [
0.13218119740486145,
-0.13448098301887512,
0.24422413110733032,
0.03616064414381981,
0.08522561937570572,
-0.2888077199459076,
0.34155839681625366,
-0.2786257863044739,
-0.36195695400238037,
-0.355065256357193,
0.10246526449918747,
0.38408133387565613,
-0.04469970241189003,
-0.094636552035... | |
would need to know the number of ways for every (most?)
combination, not just equal 1s/2s. EG you can put together +18 and
-18 to get an equal number of 1s and 2s
```
18
0/0
0/1
...
0/18
1/0
1/1
...
1/17
...
18/0
```
Solving directly seems much easier.
```
0/0
1/0
1/1
2/1
2/2
3/2
3/3
...
18/17
18/18
```
Do the co... | [
-0.1630769520998001,
0.28677651286125183,
0.4048521816730499,
0.1504431515932083,
-0.14682109653949738,
0.31289851665496826,
0.28627198934555054,
-0.7139517068862915,
-0.28295594453811646,
-0.3765884041786194,
-0.0036376866046339273,
0.2680606544017792,
-0.17958827316761017,
-0.15742143988... | |
write
code that balances the multiplications and divisions nicely.
```
sub print_choose
{
$n = $_[ 0 ];
$c = $_[ 1 ];
if( $c == 0 ) { print "1"; return; }
for( $j = 0; $j < $c; ++$j ) {
if( $j ) { print "*"; }
print $n - $j;
}
for( $j = 0; $j < $c; ++$j ) { | [
0.05490460619330406,
0.06511326879262924,
0.07075637578964233,
-0.37043455243110657,
0.27928614616394043,
-0.04177985340356827,
0.39694851636886597,
-0.35597893595695496,
-0.03498433530330658,
-0.3998831808567047,
-0.556538999080658,
0.7366664409637451,
-0.5417667627334595,
-0.155128315091... | |
print "/", $c - $j;
}
}
for( $i = 0; $i <= 18; ++$i ) {
if( $i > 0 ) {
print_choose( 36, $i );
print "*";
print_choose( 36 - $i, $i - 1 );
print "\n";
}
print_choose( 36, $i );
print "*";
print_choose( 36 - $i, $i );
print | [
-0.014331973157823086,
-0.22204452753067017,
0.17441000044345856,
-0.4268699884414673,
0.4052309989929199,
0.5040455460548401,
0.0353449322283268,
-0.41624006628990173,
-0.04751022532582283,
-0.4507485628128052,
-0.6232603788375854,
0.49915310740470886,
-0.5529891848564148,
-0.080703884363... | |
"\n";
}
foo.pl | bc | perl -ne '$sum += $_; print "$sum\n"'
1
37
1297
22717
376147
4146067
43101907
335270707
2453494507
14315547787
78370635499
355942682251
1512492877051
5477807830651
18506699821051
54336152794651
148388466850351
357393609196351
798626687482351
1592846228397151
2943019447952311
4906907767305271
7584... | [
-0.3378544747829437,
0.30982503294944763,
0.28250181674957275,
0.21934044361114502,
0.01383120659738779,
0.17115862667560577,
0.31435924768447876,
-0.9251826405525208,
-0.6487288475036621,
-0.3995026648044586,
-0.11552987992763519,
0.7334185838699341,
-0.41092610359191895,
0.32615751028060... | |
I have a view that is joining two tables and ordering by the first table. Except that the order isn't correct. It misses an occasional record, and then at the end, most of those records exist in order, and then at that end, the rest of the records exist in order. So it has records such as
```
1 (most of the records ... | [
0.37667542695999146,
0.5273552536964417,
0.046383053064346313,
-0.10437121987342834,
0.15777556598186493,
0.2640388309955597,
0.012648570351302624,
-0.15696623921394348,
-0.6573402285575867,
-0.48878368735313416,
0.09290914237499237,
0.2863226532936096,
-0.35682207345962524,
0.314275115728... | |
acquired this view, and the exact same view in another db instance works correctly.)
```
CREATE VIEW [dbo].[SampleView]
AS
SELECT TOP 100 PERCENT blp.*, ISNULL(YEAR(DATEADD(month, 2, tb.[End of D&D])), 0) AS DEMO_FY
FROM dbo.Table1 AS blp LEFT OUTER JOIN
dbo.Table2 AS tb ON blp.FACIL_... | [
0.00828233640640974,
-0.14657071232795715,
0.404968798160553,
-0.06414660811424255,
-0.028401372954249382,
0.2924218475818634,
0.27071112394332886,
-0.36968380212783813,
-0.044057052582502365,
-0.6920111179351807,
-0.2865213453769684,
0.27628225088119507,
-0.0367521308362484,
0.24805502593... | |
Server 2008](http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/create-a-sorted-view-in-sql-server-2005--2008) there is a hotfix and you HAVE to run in 2000 compatibility mode for it to work. Why not just do the order by when selecting from the view? | [
-0.12560515105724335,
-0.21701471507549286,
0.19130046665668488,
0.013114995323121548,
-0.19439120590686798,
-0.29667991399765015,
0.03774877265095711,
-0.2708372175693512,
-0.3543836772441864,
-0.3615358769893646,
0.06651442497968674,
0.3283241093158722,
-0.4287598133087158,
-0.1636377722... | |
How do I prevent a developer from committing changes into a particular branch in CVS?
Recently, a fellow developer committed code into the main branch, leaving me with a lot of rolling back to do **;-(** How can I prevent this?
Checking that `fstat()` returns a link count of zero would fail if the file was hard linked... | [
0.15456564724445343,
-0.002776392735540867,
0.27743443846702576,
-0.18188534677028656,
0.2637871205806732,
-0.08188188821077347,
0.4936526119709015,
-0.01749604567885399,
-0.3750421106815338,
-0.4776390790939331,
-0.034656599164009094,
0.54318767786026,
-0.36545202136039734,
0.519722342491... | |
I have a header image that needs to be repeated in the header of multiple reports. I am aware that you can add an image to a report and point to a path where the image file reside, like `file://C:\path\to\Reports\Images\logo.gif`, but that path can and will change when the app is deployed.
I tried using a relative pat... | [
0.6254613995552063,
0.061702910810709,
0.35277312994003296,
0.013267637230455875,
0.026510117575526237,
-0.04637306556105614,
0.33237364888191223,
0.023979173973202705,
-0.3962042033672333,
-0.8543775081634521,
0.015193754807114601,
0.6418318748474121,
-0.4941924512386322,
-0.0338372625410... | |
I also know about embedding an image into a report, but then this image would need to be embedded into every report, and if it needed to be changed, it would have to be changed individually in every report.
What we ended up doing was described in [this blog post](http://www.haveyougotwoods.com/archive/2009/01/28/relati... | [
0.4215930104255676,
-0.17760510742664337,
0.23805789649486542,
0.10508524626493454,
0.09208706021308899,
0.1340983659029007,
0.23523975908756256,
-0.22476066648960114,
-0.3353365361690521,
-0.5003654956817627,
0.39675241708755493,
0.4165639281272888,
0.12332283705472946,
-0.091049976646900... | |
I'm having an issue with Delphi 2007 when trying to consume a web service I've set up in Java using JAX-WS. The web service can be consumed fine from another Java program and from a C# / ASP.NET 2.0 website. However, when I try to access the same service using the WSDL Importer in Delphi 2007 (17-DEc-2007 patch), the J... | [
0.2921042740345001,
0.32392919063568115,
0.1650390923023224,
-0.2814762592315674,
-0.5402942299842834,
-0.3240939974784851,
0.18429811298847198,
-0.07375107705593109,
-0.1169254407286644,
-0.728741466999054,
0.3392677903175354,
0.9402304887771606,
-0.472243994474411,
-0.12240047007799149,
... | |
negligable namespace decs and a whole lot of view state from the .NET one!)
I've also been around the web (most helpful link was Dr Bob's <http://www.bobswart.nl/Weblog/Blog.aspx?RootId=5:798>) but no joy.
Has anybody come across this before?
TIA.
---
The saga continues!
After buggering about with the HTTPRIO obj... | [
0.26318565011024475,
-0.11087019741535187,
0.15647616982460022,
0.1026303693652153,
-0.31506645679473877,
0.24054984748363495,
0.45957836508750916,
-0.10285404324531555,
-0.2691653370857239,
-0.3630361258983612,
0.2276942878961563,
0.5422661900520325,
-0.18873156607151031,
0.31966474652290... | |
the XML send in Delphi and ... it works!
This was a sample of the original XML being generated by the WSDLImporter:
```
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<version xmlns="http://path.to.service.com/">
<input>test... | [
0.169366717338562,
-0.18988674879074097,
0.5730080604553223,
-0.04047064110636711,
-0.24620015919208527,
-0.29117459058761597,
-0.05548032000660896,
-0.5330504775047302,
0.032482754439115524,
-0.7260249257087708,
-0.11146077513694763,
0.3554624021053314,
-0.10470665246248245,
-0.3203017115... | |
</S:Body>
</S:Envelope>
```
So, now that I know this, I do I go about changing the namespace values for the WSDLImporter code? I can't see anything obvious on the HTTPRIO properties.
TIA
HA HA IT LIVES!!!
Basically I had to take out the recommended
```
InvRegistry.RegisterInvokeOptions(TypeInfo(ActivityService), i... | [
0.5179612636566162,
0.33368226885795593,
0.42636606097221375,
-0.10094711929559708,
0.023649418726563454,
-0.12174529582262039,
0.2946825623512268,
-0.47150036692619324,
-0.0068232654593884945,
-0.7480232119560242,
0.09608947485685349,
0.4325285851955414,
-0.2337222844362259,
-0.0494159162... | |
I have been support a web app that is used by a user base who's age range if from 40-65. The app is very good and has the latest ajaxy stuff etc. What we would now call very user friendly and responsive. I am amazed as to how this app is not so userfriendly for that user base. I was told that some autocomplete features... | [
0.6787357926368713,
0.20358647406101227,
0.34812918305397034,
-0.02802979201078415,
0.15404477715492249,
-0.30243220925331116,
0.5499630570411682,
0.307689368724823,
-0.36061006784439087,
-0.6546164155006409,
0.07398603856563568,
0.32727178931236267,
0.14576931297779083,
0.2548752427101135... | |
clear.
Could someone provice me resources/tips for this? Is not so much as an accessibility issue.
[Don't make me think](https://rads.stackoverflow.com/amzn/click/com/0789723107)
is like a bible, a must read lecture | [
0.3194068968296051,
0.18364690244197845,
0.3169129490852356,
0.10641933977603912,
0.1347951889038086,
-0.590662956237793,
0.24619434773921967,
0.11410729587078094,
-0.147243931889534,
-0.3619339168071747,
-0.06824836879968643,
0.3936700224876404,
0.11976488679647446,
0.059519317001104355,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.