text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Chr(0) Then 'Check if byte is 0 (ASC won't work on 0).
Digits%(HighPower%) = 0 'Make next two digits 0. Increment
Digits%(HighPower% + 1) = 0 'the high power to reflect the
HighPower% = HighPower% + 2 'number of digits in the number | [
-0.07994993031024933,
0.11454635858535767,
0.9209054112434387,
-0.1428360939025879,
-0.06857398897409439,
0.05784307047724724,
0.14866144955158234,
-0.44303327798843384,
0.14545516669750214,
-0.24385583400726318,
-0.25591322779655457,
0.5892363786697388,
0.10831107199192047,
-0.07790683209... | |
'plus 1.
Else
HighNibble% = Asc(MyByte) \ 16 'Extract the high and low
LowNibble% = Asc(MyByte) And &HF 'nibbles from the byte. The
Digits%(HighPower%) = HighNibble% 'high nibble will always be a
'digit. | [
-0.06600379198789597,
0.011018878780305386,
0.4641869068145752,
-0.26252180337905884,
0.13253380358219147,
0.34328311681747437,
-0.035610634833574295,
-0.20109516382217407,
-0.020567305386066437,
-0.0847800150513649,
-0.2790331542491913,
0.42881935834884644,
0.02852925844490528,
-0.0265742... | |
If LowNibble% <= 9 Then 'If low nibble is a
'digit, assign it and
Digits%(HighPower% + 1) = LowNibble% 'increment the high
HighPower% = HighPower% + 2 | [
-0.3053094446659088,
-0.21817462146282196,
0.3077548146247864,
-0.19203762710094452,
0.16600045561790466,
0.29228857159614563,
-0.04215298593044281,
0.012800000607967377,
0.19873231649398804,
-0.3112614154815674,
-0.2614717483520508,
0.4858070909976959,
-0.12688659131526947,
0.064434140920... | |
'power accordingly.
Else
HighPower% = HighPower% + 1 'Low nibble was not a digit but a
Digit% = 0 '+ or - signals end of number. | [
-0.10124695301055908,
-0.1548442542552948,
0.4339958727359772,
0.09907332807779312,
-0.21764139831066132,
0.2860552668571472,
0.10415101796388626,
-0.2102491706609726,
0.17774507403373718,
-0.09182564169168472,
-0.02955816127359867,
0.47532618045806885,
0.014189833775162697,
0.132056251168... | |
'Start at the highest power of 10 for the number and multiply
'each digit by the power of 10 place it occupies.
For Power% = (HighPower% - 1) To 0 Step -1
Basiceqv#(E%) = Basiceqv#(E%) + (Digits%(Digit%) * (10 ^ Power%)) | [
-0.22723719477653503,
0.06792613863945007,
0.6470900774002075,
-0.0162881501019001,
0.005943318363279104,
0.16600728034973145,
0.6169304251670837,
-0.8267526626586914,
0.19015714526176453,
-0.3755388557910919,
-0.5153034329414368,
0.36843398213386536,
0.013485369272530079,
-0.0157579164952... | |
Digit% = Digit% + 1
Next
'If the sign read was negative, make the number negative.
If LowNibble% = 13 Then | [
-0.094540074467659,
-0.07532990723848343,
0.22336754202842712,
-0.358502596616745,
0.14166344702243805,
0.17928148806095123,
0.3083025813102722,
0.0018762195250019431,
-0.2560736835002899,
-0.29780322313308716,
-0.29276958107948303,
0.1249869167804718,
-0.1930183321237564,
0.17195184528827... | |
Basiceqv#(E%) = Basiceqv#(E%) - (2 * Basiceqv#(E%))
End If
'Give the number the desired amount of decimal places, print
'the number, increment E% to point to the next number to be
'converted, and reinitialize the highest power. | [
-0.1231129989027977,
0.05577332526445389,
0.4525648355484009,
-0.08825508505105972,
-0.09016914665699005,
0.06285947561264038,
0.6360169649124146,
-0.5051231384277344,
0.28362566232681274,
-0.17520476877689362,
-0.6824963688850403,
0.4985598027706146,
-0.06713040918111801,
-0.2085390090942... | |
Basiceqv#(E%) = Basiceqv#(E%) / (10 ^ Decimal%)
Print(Basiceqv#(E%))
E% = E% + 1
HighPower% = 0
End If
End If
Loop | [
-0.2296447902917862,
-0.13407640159130096,
0.3894106447696686,
-0.04178109019994736,
-0.0026534604839980602,
0.023579968139529228,
0.9053154587745667,
-0.5668452382087708,
0.21823611855506897,
-0.09170518815517426,
-0.44903427362442017,
0.6222547292709351,
-0.3150581419467926,
-0.067780762... | |
FileClose() 'Close the COBOL data file, and end.
End Sub
End Module
``` | [
-0.07687272131443024,
0.3238931894302368,
0.8539879322052002,
-0.4922146499156952,
0.07341493666172028,
-0.805122971534729,
0.2103670984506607,
0.0019419393502175808,
0.14361058175563812,
-0.14821799099445343,
-0.8042962551116943,
0.34547659754753113,
-0.6243962645530701,
0.122819036245346... | |
I have numerous Web Services in my project that share types.
For simplicity I will demonstrate with two Web Services.
WebService1 at <http://MyServer/WebService.asmx>
webService2 at <http://MyServer/WebService.asmx>
When I generate the proxy for these two services I use:
wsdl /sharetypes <http://MyServer/WebServic... | [
0.32463547587394714,
0.2674650251865387,
0.23222416639328003,
0.07768379896879196,
-0.2896222174167633,
0.12083923071622849,
-0.08419159054756165,
-0.3883734345436096,
-0.04661568999290466,
-0.8931077718734741,
0.22106550633907318,
0.37609198689460754,
-0.4236092269420624,
0.05066148191690... | |
I would rather not update the generated code that wsdl.exe outputs and I don't want to go through my whole application passing in the Url to each instance of the Web Services.
The proxy classes generated are partial classes, so my solution would be to add your own constructor in a different (non-generated) code file, w... | [
0.4229201674461365,
0.23817595839500427,
0.1326264590024948,
0.09532168507575989,
-0.22222623229026794,
-0.17062026262283325,
0.1240229606628418,
0.16420812904834747,
0.07803454995155334,
-0.7523139715194702,
0.15362098813056946,
0.19556370377540588,
-0.2475975602865219,
0.4888630211353302... | |
I've recently seen the light of EventWaitHandle's powerful behavior in C# and decided to move some functionality in a sister application to do the same. The only problem is that the sister app is written in C.
No big deal, I'm using pthreads, which have a pthread\_cond\_t datatype that allows for signalling. My only q... | [
0.20840811729431152,
-0.09829548001289368,
0.34761670231819153,
-0.1433507800102234,
-0.12289543449878693,
-0.23939384520053864,
0.5294709801673889,
0.18168902397155762,
-0.19534994661808014,
-0.2514517903327942,
0.2504822313785553,
0.39995667338371277,
-0.19882328808307648,
0.016592418774... | |
behaves closer to the functionality of the EventWaitHandle in C#? An object is signalled, meaning that the first thread to wait on it, will pass immediately, and set it to unsignalled.
Wrapping the pthread\_cond into another data structure wouldn't be too hard to achieve this. But again, is this functionality already ... | [
-0.09026683121919632,
-0.2965015172958374,
0.5515620112419128,
-0.40935981273651123,
0.21353211998939514,
-0.1691121757030487,
0.5380582213401794,
-0.47407472133636475,
-0.05840687081217766,
-0.12735897302627563,
-0.36006975173950195,
0.4021844267845154,
-0.42348426580429077,
0.28887712955... | |
be the same on both sides.) Hope this helps! | [
0.48748740553855896,
0.07079306244850159,
0.21913063526153564,
0.11944307386875153,
0.06253904849290848,
0.04330285266041756,
0.5749292373657227,
0.15479028224945068,
0.043545618653297424,
-0.6319832801818848,
0.010560445487499237,
0.3470243811607361,
-0.14127174019813538,
-0.3358892202377... | |
Windbg fans claim that it is quite powerful and I tend to agree. But when it comes to debugging STL containers, I am always stuck. If the variable is on the stack, the `!stl` extension sometimes figures it out, but when a container with a complex type (e.g. `std::vector<TemplateField, std::allocator<TemplateField> >`) ... | [
-0.04831200838088989,
-0.034001704305410385,
0.17001928389072418,
-0.17037880420684814,
-0.49763476848602295,
-0.4026344120502472,
0.20627069473266602,
-0.05383877828717232,
-0.01857244223356247,
-0.6806483864784241,
0.12070860713720322,
0.07418353110551834,
-0.12220125645399094,
0.1617728... | |
Is it best practice to *not* use C:\Inetpub\wwwroot\wss\ for SharePoint? My concern is that the configuration wizard seems to look for this C: path and it may be too complicated to *not* use the default path(s),
You should not be changing anything in the sharepoint IIS sites through IIS Manager, except through the shar... | [
0.3445685803890228,
0.0009343205019831657,
0.23788101971149445,
-0.01615401729941368,
0.17524419724941254,
-0.3329501748085022,
0.26657363772392273,
0.12666167318820953,
-0.2781950533390045,
-0.8518769145011902,
-0.11918245255947113,
0.612359881401062,
-0.4777771532535553,
0.02756561897695... | |
create a folder in the C:\Inetpub\wwwroot\wss\ that is easy to map to the web application and then leave the folder as is.
Although it is hard to find stuff in the Central Admin site, the [Infrastructure Update](http://www.microsoft.com/downloads/details.aspx?FamilyID=256CE3C3-6A42-4953-8E1B-E0BF27FD465B&displaylang=e... | [
-0.17596130073070526,
-0.009380420669913292,
0.13166745007038116,
0.2344830185174942,
0.2617587745189667,
-0.241172194480896,
0.07416999340057373,
0.1253480315208435,
-0.3110426962375641,
-0.995704710483551,
-0.48525699973106384,
0.17007239162921906,
-0.1328984498977661,
0.2361142486333847... | |
Is there a platform-agnostic and filesystem-agnostic method to obtain the full path of the directory from where a program is running using C/C++? Not to be confused with the current working directory. (Please don't suggest libraries unless they're standard ones like clib or STL.)
(If there's no platform/filesystem-agn... | [
-0.0694458931684494,
0.020575009286403656,
0.4642777442932129,
0.031365834176540375,
0.21696478128433228,
0.2527106702327728,
0.2707185745239258,
-0.10406731069087982,
-0.22618965804576874,
-0.6040825247764587,
-0.354342520236969,
0.5655761957168579,
-0.48694831132888794,
-0.14199842512607... | |
pBuf[bytes] = '\0';
return bytes;
``` | [
-0.06335359811782837,
0.17338179051876068,
0.3886484205722809,
-0.30723288655281067,
0.1759323626756668,
0.2041013538837433,
0.18923281133174896,
0.048900242894887924,
-0.07118567824363708,
-0.2816922962665558,
-0.6838630437850952,
0.40220049023628235,
-0.5042533874511719,
0.09797756373882... | |
In Lua, using the = operator without an l-value seems to be equivalent to a print(r-value), here are a few examples run in the Lua standalone interpreter:
```
> = a
nil
> a = 8
> = a
8
> = 'hello'
hello
> = print
function: 003657C8
```
And so on...
My question is : where can I find a detailed description of this us... | [
0.18216939270496368,
0.23446659743785858,
0.15011140704154968,
-0.14037136733531952,
-0.050722673535346985,
0.028538282960653305,
-0.04391202703118324,
0.06569012254476547,
-0.08045642077922821,
-0.5045264959335327,
-0.12891320884227753,
0.3985716700553894,
-0.4058907926082611,
0.102577254... | |
it's a feature of the interpreter. Silly question, for I don't know which reason I completely overlooked the obvious. I should avoid posting before the morning coffee :-) For completeness, here is the code dealing with this in the interpreter:
```
while ((status = loadline(L)) != -1) {
if (status == 0) status = doca... | [
-0.2083054929971695,
-0.07858564704656601,
0.4773920476436615,
-0.3429279029369354,
0.1677132099866867,
-0.05434307083487511,
0.2030078023672104,
0.07556027173995972,
0.033795204013586044,
-0.44935426115989685,
-0.4782033860683441,
0.6934736371040344,
-0.29950350522994995,
-0.0904959291219... | |
l_message(progname, lua_pushfstring(L,
"error calling " LUA_QL("print") " (%s)",
lua_tostring(L, -1)));
}
}
```
**edit2**:
To be really complete, the whole trick about pushing values on the stack is in the "pushline" function:
```
if (firstline && b[0] == '=')... | [
-0.37184348702430725,
-0.31077226996421814,
0.8507561087608337,
-0.6664270162582397,
0.26520678400993347,
0.33865857124328613,
0.1699041724205017,
-0.2263205498456955,
-0.04449863359332085,
-0.5527288317680359,
-0.2927282750606537,
0.7185930013656616,
-0.4216136336326599,
-0.31756687164306... | |
b+1); /* change it to `return' */
```
Quoting the [man page](http://www.lua.org/manual/5.1/lua.html):
> In interactive mode ... If a line starts with '=', then lua displays the values of all the expressions in the remainder of the line. The expressions must be separated by commas. | [
0.024264708161354065,
-0.024952538311481476,
0.4686809182167053,
-0.5032058954238892,
-0.18283729255199432,
0.22609253227710724,
0.2392614185810089,
-0.21005132794380188,
0.07245639711618423,
-0.271884024143219,
-0.5745600461959839,
0.21046724915504456,
-0.6308841109275818,
-0.057771623134... | |
For example if I have an Enum with two cases, does it make take more memory than a boolean? Languages: Java, C++
In Java, an [`enum` is a full-blown class](http://download.oracle.com/javase/tutorial/java/javaOO/enum.html):
> Java programming language enum types
> are much more powerful than their
> counterparts in o... | [
0.06350735574960709,
-0.08793401718139648,
-0.19172734022140503,
0.13646753132343292,
-0.11778777837753296,
0.0474710613489151,
0.026821115985512733,
-0.21247705817222595,
-0.0037022666074335575,
-0.5436731576919556,
-0.10809122025966644,
0.26080048084259033,
-0.29813987016677856,
0.166332... | |
enum class:
```
public enum Constants {
ONE,
TWO,
THREE;
}
```
Compiling the above `enum` and disassembling resulting `class` file with `javap` gives the following:
```
Compiled from "Constants.java"
public final class Constants extends java.lang.Enum{
public static final Constants ONE;
public static ... | [
-0.16543439030647278,
0.2557150423526764,
0.293199360370636,
-0.3451714813709259,
0.08912400156259537,
0.3283534049987793,
0.33580735325813293,
-0.7111785411834717,
-0.1330622285604477,
-0.443360298871994,
-0.39460575580596924,
0.3428959250450134,
-0.37055879831314087,
0.3135668635368347,
... | |
is initialized by creating a new object by calling the `new Constants(String)` constructor in the static initialization block.)
Therefore, we can tell that each `enum` field that we create will be at least as much as the overhead of creating an object in the JVM. | [
0.12542738020420074,
-0.12562905251979828,
0.17371347546577454,
0.06101059913635254,
0.11304356157779694,
0.06779079884290695,
-0.00264767580665648,
-0.47182103991508484,
-0.06317880749702454,
-0.4340449571609497,
-0.2583080530166626,
0.39877375960350037,
0.012170087546110153,
0.1866009086... | |
A long time ago I had an apple ][ .
I remember the command call – 151
But I can not remember what it did ?
CALL -151
Enter the machine code monitor -
<http://www.skepticfiles.org/cowtext/apple/memorytx.htm>
**Update:**
That link appears to be dead, here's a Wayback Machine alternative:
> <http://web.archive.org... | [
-0.25100916624069214,
0.34021836519241333,
0.5022726058959961,
-0.12841449677944183,
0.23075348138809204,
0.2437097132205963,
-0.05254045128822327,
0.1660018116235733,
-0.42432141304016113,
-0.6427890658378601,
0.05534227564930916,
0.625511109828949,
-0.19147749245166779,
0.017873272299766... | |
ENTER THE MONITOR NORMALLY
CALL -155 ENTER THE MONITOR & SOUND BELL
CALL -167 ENTER MONITOR AND RESET
CALL -198 RING BELL (SIMULATE CONTROL G)
CALL -211 PRINT "ERR" AND RING BELL
CALL -259 READ FROM TAPE
CALL -310 WRITE TO TAPE
CALL -321 DISPLAYS A, S, Y, P, & S REGISTERS
CALL -380 ... | [
0.0589684434235096,
0.04631413146853447,
0.6879511475563049,
0.08751798421144485,
0.3310698866844177,
0.2739679217338562,
0.3411528170108795,
-0.43487104773521423,
-0.12417955696582794,
-0.43812456727027893,
-0.27020713686943054,
0.9063689112663269,
-0.34708908200263977,
-0.166876688599586... | |
MODE
CALL -415 DISASSEMBLE 20 INSTRUCTIONS
CALL -458 VERIFY (COMPARE & LIST DIFFERENCES)
CALL -468 MEMORY MOVE AFTER POKING 60,61 OLD START - 62,63 OLD END
64,65 NEW END - 66,67 NEW STAR
CALL -484 MOVE
CALL -517 DISPLAY CHARACTER & UPDATE SCREEN LOCATION
CALL -5... | [
-0.25229117274284363,
0.004862642381340265,
0.587753176689148,
-0.16505663096904755,
0.17198890447616577,
0.47556278109550476,
0.3984573483467102,
-0.6004477739334106,
-0.102555051445961,
-0.4379381537437439,
-0.3952750861644745,
0.7247304320335388,
0.005112648941576481,
-0.173059195280075... | |
CHARACTER, MASK CONTROL CHAR., & SAVE 7 REG. & ACCU
CALL -550 DISPLAY HEX VALUE OF A-REGISTER (ACCUMULATOR)
CALL -656 RING BELL AND WAIT FOR A CARRIAGE RETURN
CALL -657 GET LINE OF INPUT, NO PROMPT, NO L/F, & WAIT(COMMA,COLON OK
CALL -662 GET LINE OF INPUT, WITH PROMPT, NO L/F, & WAIT
CALL -665 ... | [
-0.5042346119880676,
0.10971537977457047,
0.5430926084518433,
-0.12295764684677124,
0.014448543079197407,
0.948625922203064,
0.15816327929496765,
-0.5156255960464478,
-0.221684992313385,
-0.4091898500919342,
-0.3391532003879547,
0.4636586308479309,
-0.4378434419631958,
0.03899156674742699,... | |
GET CHARACTER
CALL -756 WAIT FOR KEY PRESS
CALL -856 TIME DELAY (POKE 69,XX TO SET TIME OF DELAY)
CALL -868 CLEARS CURSOR LINE FROM CURSOR TO END OF LINE
CALL -912 SCROLLS TEXT UP 1 LINE
CALL -922 LINE FEED
CALL -936 CLEAR SCREEN (HOME)
CALL -958 CLEAR SCREEN FROM CURSOR TO BOTTOM OF ... | [
-0.5296450257301331,
0.007627708837389946,
0.843830943107605,
-0.1676279455423355,
-0.08527696877717972,
0.606826901435852,
0.3229409158229828,
-0.34621426463127136,
-0.05986161157488823,
-0.48144304752349854,
-0.5713978409767151,
0.7153950929641724,
0.12293410301208496,
-0.278928339481353... | |
-1008 MOVES CURSOR BACKWARD 1 SPACE
CALL -1024 DISPLAY CHARACTER ONLY
CALL -1036 MOVES CURSOR FORWARD 1 SPACE
CALL -1063 SEND BELL TO CURRENT OUTPUT DEVICE
CALL -1216 TEXT & GRAPHICS MODE
CALL -1233 MOVE CURSOR TO BOTTOM OF SCREEN
CALL -1321 CONTROL E
CALL -1717 MOVES CURSOR DOWN 5 LINES
... | [
-0.6443134546279907,
0.12501265108585358,
0.8600162863731384,
-0.09570776671171188,
0.07267806679010391,
0.4258394241333008,
0.24456168711185455,
-0.35045626759529114,
-0.37214532494544983,
-0.4782004654407501,
-0.4798600375652313,
0.602776288986206,
-0.12341555207967758,
0.077007479965686... | |
(TOP 40 LINES)
CALL -1998 CLEAR GRAPHIC SCREEN (LO-RES)
CALL -2007 VERTICAL LINE
CALL -2023 HORIZONTAL LINE
CALL -2458 ENTER MINI ASSEMBLER
CALL -3100 TURNS ON HIRES PAGE 1, WITHOUT CLEARING IT
CALL -3776 SAVE INTEGER
CALL -3973 LOAD INTEGER
CALL -6090 RUN INTEGER
CALL -8117 LIST INT... | [
-0.3997558057308197,
-0.10593803226947784,
0.7553575038909912,
-0.027211112901568413,
0.12603482604026794,
0.6311710476875305,
0.35915786027908325,
-0.0022006563376635313,
-0.331268846988678,
-0.41388142108917236,
-0.37644046545028687,
0.42689505219459534,
-0.2975824177265167,
-0.116133555... | |
TEXT MODE
CALL -16304 GRAPHICS MODE
CALL -16336 TOGGLE SPEAKER
CALL 42350 CATALOGS DISK
CALL 54915 CLEANS STACK, CLEARS THE "OUT OF MEMORY" ERROR
CALL 64166 INITIATES A COLD START (BOOT OF THE DISK)
CALL 64246 BRAND NEW-YOU FIGURE IT OUT
CALL 64367 SCANS MEMORY LOC... | [
-0.13585695624351501,
0.03913823887705803,
0.5090911984443665,
0.026732543483376503,
0.30640873312950134,
-0.003022752935066819,
0.5509492754936218,
-0.03460098057985306,
-0.09785358607769012,
-0.6155128479003906,
-0.6493840217590332,
0.9272679686546326,
0.033526044338941574,
-0.1376758813... | |
& POKES VALUE INTO LOCATIONS
1012 THAT IS EQUAL TO (PEEK(1011)-165)
------------------------------------------------------------------------------
PEEK 33 WIDTH OF TEXT WINDOW (1-40)
PEEK 34 TOP EDGE OF TEXT WINDOW (0-22)
PEEK 35 BOTTOM OF TEXT WINDOW (1-24)
PEEK 36 HORIZONTAL CU... | [
-0.6026003360748291,
-0.15960007905960083,
0.734080970287323,
0.07426620274782181,
-0.18355640769004822,
0.5696043968200684,
0.35359668731689453,
-0.5551150441169739,
-0.4209118187427521,
-0.29991957545280457,
-0.17094124853610992,
0.5395212769508362,
-0.11410835385322571,
-0.4484327733516... | |
44 END POINT OF LAST HLIN, VLIN, OR PLOT
PEEK 48 LO-RES COLOR VALUE X 17
PEEK 50 TEXT OUTPUT FORMAT: 63=INVERSE 255=NORMAL
127=FLASH ( WITH PEEK 243 SET TO 64)
PEEK 51 PROMPT CHARACTER
PEEK 74,75 LOMEM ADDRESS (INT)
PEEK 76,77 HIMEM ADDRESS (INT)
PEEK 103,104 | [
-0.39878028631210327,
-0.4848661720752716,
0.7502548694610596,
-0.1904151439666748,
-0.2336636781692505,
0.5142996311187744,
0.17326009273529053,
-0.3412615656852722,
-0.00665237195789814,
-0.32052457332611084,
-0.5408490300178528,
0.20189660787582397,
-0.05250728502869606,
-0.379281729459... | |
FP PROGRAM STARTING ADDRESS
PEEK 104 IF 8 IS RETURNED, THEN FP IS IN ROM
PEEK 105,106 FP VARIABLE SPACE STARTING ADDRESS
PEEK 107,108 FP ARRAY STARTING ADDRESS
PEEK 109,110 FP END OF NUMERIC STORAGE ADDRESS
PEEK 111,112 FP STRING STORAGE STARTING ADDRESS
PEEK 115,116 FP HIMEM ADDRESS... | [
-0.41865283250808716,
-0.5207409858703613,
0.5158929824829102,
-0.28298452496528625,
-0.2681848704814911,
0.6033053994178772,
0.31101056933403015,
-0.3185763657093048,
-0.2727481722831726,
-0.3292023241519928,
-0.7373459339141846,
0.3713948428630829,
-0.16922074556350708,
-0.49322766065597... | |
LINE WHERE PROGRAM STOPPED
PEEK 121,122 FP LINE BEING EXECUTED ADDRESS
PEEK 123,124 LINE WHERE DATA BEING READ
PEEK 125,126 DATA LOCATION ADDRESS
PEEK 127,128 INPUT OR DATA ADDRESS
PEEK 129,130 FP LAST USED VARIABLE NAME
PEEK 131,132 FP LAST USED VARIABLE ADDRESS
PEEK 175,176 F... | [
-0.2970067858695984,
-0.5004317760467529,
0.7747608423233032,
-0.2660435140132904,
-0.3732955753803253,
0.6963534951210022,
0.359357088804245,
0.0478600449860096,
-0.25843286514282227,
-0.12721307575702667,
-0.5045046210289001,
0.06099292263388634,
-0.18377934396266937,
-0.1853917539119720... | |
INT END OF VARIABLE STORAGE
PEEK 214 FP RUN FLAG (AUTO-RUN IF >127)
PEEK 216 ONERR FLAG (>127 IF ONERR IS ACTIVE)
PEEK 218,219 LINE WHERE ONERR OCCURED
PEEK 222 ONERR ERROR CODE
PEEK 224,225 X-COORDINATE OF LAST HPLOT
PEEK 226 Y-COORDINATE OF LAST HPLOT
PEEK 228 HCOLOR VALUE 0... | [
-0.3578142821788788,
-0.39801377058029175,
0.5795542001724243,
0.02128058299422264,
-0.4493732154369354,
0.44704875349998474,
0.40027424693107605,
-0.18907956779003143,
-0.2846127152442932,
-0.0370447151362896,
-0.2072530835866928,
0.03511188551783562,
-0.24854552745819092,
-0.114482969045... | |
42=1 127=3 170=5 255=7
PEEK 230 HI-RES PLOTING PAGE (32=PAGE 1 64=PAGE 2 96=PAGE 3)
PEEK 231 SCALE VALUE
PEEK 232,233 SHAPE TABLE STARTING ADDRESS
PEEK 234 HI-RES COLLISION COUNTER
PEEK 241 256 MINUS SPEED VALUE
PEEK 243 FLASH MASK (64=FLASH WHEN PEEK 50 SET TO 127)
PEEK 24... | [
-0.39197418093681335,
-0.3912847340106964,
0.6153469085693359,
-0.01183581817895174,
-0.946992039680481,
0.5282701253890991,
0.4185226857662201,
-0.547633171081543,
-0.11679151654243469,
-0.1336364597082138,
-0.19871103763580322,
0.22811974585056305,
-0.36887025833129883,
-0.23485964536666... | |
ROT VLAUE
PEEK 976-978 DOS RE-ENTRY VECTOR
PEEK 1010-1012 RESET VECTOR
PEEK 1013-1015 AMPERSAND (&) VECTOR
PEEK 1016-1018 CONTROL-Y VECTOR
PEEK 43140-43271 DOS COMMAND TABLE
PEEK 43378-43582 DOS ERROR MESSAGE TABLE
PEEK 43607 MAXFILES VALUE
PEEK 43616,46617 LENGTH OF LAST BLOAD
PEEK 43... | [
-0.5950217843055725,
-0.4213153123855591,
0.5434220433235168,
-0.2615548074245453,
-0.5368146896362305,
0.7959907650947571,
0.4522106349468231,
-0.30422335863113403,
-0.18931028246879578,
-0.24246253073215485,
-0.2225620150566101,
0.4833897352218628,
-0.20023544132709503,
-0.28583979606628... | |
43697 MAXFILES DEFAULT VALUE
PEEK 43698 DOS COMMAND CHARACTER
PEEK 43702 BASIC FLAG (0=INT 64=FP ROM 128=FP RAM)
PEEK 44033 CATALOG TRACK NUMBER (17 IS STANDARD)
PEEK 44567 NUMBER OF CHARACTERS MINUS 1 IN CATALOG FILE NAMES
PEEK 44611 NUMBER OF DIGITS MINUS 1 IN SECTOR A... | [
-0.5529184341430664,
-0.403632253408432,
0.18798378109931946,
0.09749430418014526,
-0.32223016023635864,
0.5801633596420288,
0.44013047218322754,
-0.05100911110639572,
-0.30395427346229553,
-0.2473859190940857,
-0.402724027633667,
0.29019320011138916,
-0.06793352961540222,
-0.2088263779878... | |
45999-46010 DISK VOLUME HEADING
PEEK 46017 DISK VOLUME NUMBER
PEEK 46064 NUMBER OF SECTORS (13=DOS 3.2 16=DOS 3.3)
PEEK 49152 READ KEYBOARD (IF >127 THEN KEY HAS BEEN PRESSED
PEEK 49200 TOGGLE SPEAKER (CLICK)
PEEK 49248 CASSETTE INPUT (>127=BINARY 1, 127 IF BUTTON PRESSED)
PEEK... | [
-0.36641615629196167,
-0.433488667011261,
0.5733335614204407,
-0.0833607017993927,
-0.3004768192768097,
0.5212743878364563,
0.1647256761789322,
-0.2578361928462982,
-0.48739922046661377,
-0.44188109040260315,
-0.1237194612622261,
0.7388297319412231,
-0.097592793405056,
0.1713722050189972,
... | |
49251 PADDLE 2 BUTTON (>127 IF BUTTON PRESSED)
PEEK 49252 READ GAME PADDLE 0 (0-255)
PEEK 49253 READ GAME PADDLE 1 (0-255)
PEEK 49254 READ GAME PADDLE 2 (0-255)
PEEK 49255 READ GAME PADDLE 3 (0-255)
PEEK 49408 READ SLOT 1
PEEK 49664 READ SLOT 2
PEEK 49920 | [
-0.5282272696495056,
-0.254403680562973,
0.38056671619415283,
-0.07959836721420288,
-0.5684253573417664,
0.6761266589164734,
0.21955683827400208,
-0.582914412021637,
-0.39872586727142334,
-0.5737274885177612,
-0.006950534414499998,
0.5207712650299072,
-0.16582641005516052,
-0.1395150423049... | |
READ SLOT 3
PEEK 50176 READ SLOT 4
PEEK 50432 READ SLOT 5
PEEK 50688 READ SLOT 6 (162=DISK CONROLLOR CARD)
PEEK 50944 READ SLOT 7
PEEK 64899 INDICATES WHICH COMPUTER YOU'RE USING
223=APPLE II OR II+, 234=FRANKLIN ACE OR ?, 255=APPLE IIE
POKE 33,33 | [
-0.1920309066772461,
0.24048493802547455,
0.17973926663398743,
0.09135845303535461,
0.11916809529066086,
0.5209808945655823,
0.04715719074010849,
-0.11882331967353821,
-0.4233013093471527,
-0.5517295598983765,
-0.2393849641084671,
0.4120160639286041,
-0.13801361620426178,
-0.06844858080148... | |
SCRUNCH LISTING AND REMOVE SPACES IN QUOTE STATEMENTS
POKE 36,X USE AS PRINTER TAB (X=TAB - 1)
POKE 50,128 MAKES ALL OUTPUT TO THE SCREEN INVISIBLE
POKE 50,RANDOM SCRAMBLES OUTPUT TO SCREEN
POKE 51,0 DEFEATS "NOT DIRECT COMMAND", SOMETIMES DOESN'T WORK
POKE 82,128 MAKE CASETTE PROGRAM AUTO-R... | [
0.05554314702749252,
0.06469409167766571,
0.5979422330856323,
-0.09549689292907715,
-0.19315560162067413,
0.3931201100349426,
0.21190644800662994,
-0.301647812128067,
-0.12376628816127777,
-0.29811805486679077,
0.012818039394915104,
0.5687403082847595,
-0.393840491771698,
-0.19922357797622... | |
CANCEL ONERR FLAG
POKE 1010,3 SETS THE RESET VECTOR TO INITIATE
POKE 1011,150 A COLD START (BOOT)
POKE 1010,102 MAKE
POKE 1011,213 RESET
POKE 1012,112 RUN
POKE 1014,165 SETS THE AMPERSAND (&) VECTOR
POKE 1015,214 TO LIST YOUR PROGRAM
POKE 1014,110 SETS THE AMPERSAND (&) VEC... | [
0.10822363197803497,
-0.13497307896614075,
0.22832968831062317,
-0.06982050091028214,
0.1136271208524704,
0.4935072064399719,
0.17926505208015442,
-0.33120954036712646,
-0.1221812292933464,
-0.2258671671152115,
-0.05213705822825432,
0.7966371774673462,
-0.4080735743045807,
-0.2763184309005... | |
(WITH P1-02 PROM) WILL ENABLE L/F'S
POKE 1912+SLOT,0 ON APPLE PARALLEL CARD (WITH P1-02 PROM) WILL ENABLE L/F'S
POKE 2049,1 THIS WILL CAUSE THE FIRST LINE OF PROGRAM TO LIST REPEATEDLY
POKE 40514,20 ALLOWS TEXT FILE GREETING PROGRAM
POKE 40514,52 ALLOWS BINARY FILE GREETING PROGRAM
POKE 40993,24 ... | [
-0.12542353570461273,
0.0029600944835692644,
0.5463646054267883,
-0.05384448170661926,
-0.07636639475822449,
0.4694208800792694,
0.18710848689079285,
-0.16641975939273834,
-0.0930461585521698,
-0.3646298348903656,
-0.27915599942207336,
0.6123836636543274,
-0.31680014729499817,
-0.242508858... | |
ALL
POKE 42769,234 DOS ERROR
POKE 42770,234 MESSAGES
POKE 43624,X SELECTS DISK DRIVE WITHOUT EXECUTING A COMMAND (48K SYSTEM)
POKE 43699,0 TURNS AN EXEC FILE OFF BUT LEAVES IT OPEN UNTIL A FP, CLOSE
POKE 43699,1 TURNS AN EXEC FILE BACK ON. INIT, OR MAXFILES IS ISSUE
POKE 44452,24 A... | [
0.2974835932254791,
0.11140623688697815,
0.4348786771297455,
0.3018856346607208,
0.022650957107543945,
0.16227573156356812,
0.04368778318166733,
-0.19056065380573273,
0.060668230056762695,
-0.37474122643470764,
-0.4485510289669037,
0.7275370955467224,
-0.20961520075798035,
0.06290773302316... | |
DELETED FILE
POKE 44506,234 NAMES IN CATALG
POKE 44513,67 CATALOG WILL RETURN ONLY LOCKED FILES
POKE 44513,2 RETURN CATALOG TO NORMAL
POKE 44578,234 CANCEL CARRIAGE
POKE 44579,234 RETURNS AFTER CATALOG
POKE 44580,234 FILE NAMES
POKE 44596,234 CANCEL
POKE 44597,234 CATALOG-STOP
POKE ... | [
-0.017553767189383507,
0.04754321277141571,
0.47135671973228455,
0.002950602676719427,
-0.15232592821121216,
0.5490373969078064,
0.19378085434436798,
-0.12171372771263123,
-0.31088781356811523,
-0.3023768663406372,
-0.1697426587343216,
0.4794262647628784,
-0.5004568696022034,
0.07877815514... | |
THIS ALLOWS DISK
POKE 46923,234 INITIALATION
POKE 46924,234 WITHOUT PUTTING
POKE 44723,4 DOS ON THE DISK
POKE 49107,234 PREVENT LANGUAGE
POKE 49108,234 CARD FROM LOADING
POKE 49109,234 DURING RE-BOOT
POKE 49168,0 CLEAR KEYBOARD
POKE 49232,0 DISPLAY GRAPHICS
POKE 49233,0 DIS... | [
-0.02302216738462448,
0.07251092791557312,
0.5010913610458374,
-0.007449212484061718,
-0.2502679228782654,
0.37210285663604736,
0.2912619411945343,
-0.3003656268119812,
-0.07540480047464371,
-0.5733546614646912,
-0.19581449031829834,
0.8009048700332642,
0.05543677508831024,
-0.444376885890... | |
49236,0 DISPLAY GRAPHICS PAGE 1
POKE 49237,0 DISPLAY GRAPHICS PAGE 2
POKE 49238,0 DISPLAY LORES
POKE 49239,0 DISPLAY HIRES
------------------------------------------------------------------------------
48K MEMORY MAP
DECIMAL HEX USAGE
----------------------------... | [
-0.4258958399295807,
0.26418760418891907,
0.4068097174167633,
0.4619835913181305,
-0.4455795884132385,
0.566622793674469,
0.005014294292777777,
-0.27762743830680847,
-0.0938158929347992,
-0.3122512996196747,
0.1241934522986412,
0.3776431977748871,
0.09907948970794678,
-0.28139400482177734,... | |
SYSTEM STACK
512-767 $200-$2FF KEYBOARD CHARACTER BUFFER
768-975 $300-$3CF OFTEN AVAILABLE AS FREE SPACE FOR USER PROGRAMS
976-1023 $3D0-3FF SYSTEM VECTORS
1024-2047 $400-$7FF TEXT AND LO-RES GRAPHICS PAGE 1
2048-LOMEM $800-LOMEM PROGRAM STORAGE
2048-3071 $800-$BFF TE... | [
-0.4076181650161743,
0.05163893848657608,
0.8777633905410767,
0.11117139458656311,
0.17489883303642273,
0.37027281522750854,
-0.02850848250091076,
0.01414912473410368,
-0.5479354858398438,
-0.5127198100090027,
-0.3931329548358917,
0.6296208500862122,
-0.1100928857922554,
-0.179976582527160... | |
SPACE UNLESS RAM APPLESOFT IS IN USE
8192-16383 $2000-$3FFF HI-RES PAGE 1 OR FREE SPACE
16384-24575 $4000-$5FFF HI-RES PAGE 2 OR FREE SPACE
24576-38999 $6000-$95FF FREE SPACE AND STRING STORAGE
38400-49151 $9600-$BFFF DOS
49152-53247 $C000-$CFFF I/O HARDWARE (RESERVED)
53248-57343 $D000-$DFFF A... | [
-0.322200745344162,
0.41724029183387756,
0.5603514313697815,
0.053024835884571075,
0.22413308918476105,
0.3546474277973175,
0.27858880162239075,
-0.032218582928180695,
-0.4559556841850281,
-0.446323037147522,
-0.5577297210693359,
0.25419458746910095,
-0.27435630559921265,
-0.31155195832252... | |
DECIMAL
NUMBER 0-65535. TO PEEK AT A TWO-BYTE NUMBER AT CONSEQUTIVE LOCATIONS L AND
L+1, PRINT PEEK (L) + PEEK (L+1) * 256
POKE: TO ASSIGN A VALUE X (0-255) TO LOCATION L; POKE L,X. TO POKE A TWO-BYT
NUMBER (NECESSARY IF X>255), POKE L,X-INT(X/256)*256, AND POKE L+1,INT(X/256).
CALL: TO EXECUTE A MACHINE LANGUAGE... | [
-0.11179138720035553,
-0.09843847155570984,
0.22611573338508606,
-0.2567344605922699,
-0.08296000957489014,
0.46600285172462463,
0.06695317476987839,
-0.23680682480335236,
-0.08315210789442062,
-0.28020936250686646,
-0.16030098497867584,
0.3421931564807892,
-0.277606338262558,
-0.181249260... | |
THE LAST BLOADED FILE USE: PEEK(-21902)+PEEK
(-21901)*256 (RESULT IS IN HEX)
TO DETERMINE THE LENGTH OF THE LAST BLOADED FILE USE: PEEK(-21920)+PEEK(-21919
*256 (RESULT IS IN HEX)
TO DETERMINE THE LINE NUMBER THAT CAUSED AN ERROR TO OCCUR, SET X TO: PEEK(218
+PEEK(219)*256
-------------------------------------------... | [
-0.12200511991977692,
-0.12586215138435364,
0.39880919456481934,
0.26790788769721985,
-0.22069670259952545,
0.23775528371334076,
0.237953320145607,
-0.1234806478023529,
-0.30663934350013733,
-0.175797238945961,
-0.21705102920532227,
0.3729696273803711,
-0.5090656876564026,
-0.1261797696352... | |
I'm now in search for a Java Text to Speech (TTS) framework. During my investigations I've found several JSAPI1.0-(partially)-compatible frameworks listed on [JSAPI Implementations page](http://java.sun.com/products/java-media/speech/reference/codesamples/index.html), as well as a pair of Java TTS frameworks which do n... | [
0.2009812444448471,
0.07635252177715302,
0.3514465093612671,
-0.0626382902264595,
-0.31563299894332886,
0.1077912375330925,
0.6541903614997864,
0.06754780560731888,
0.01643601432442665,
-0.4860331416130066,
-0.15933673083782196,
0.5735785365104675,
-0.030908456072211266,
0.0345160067081451... | |
you used?
2. Which ones, by your opinion, are capable of reading the largest wordbase?
3. What about their voice quality?
4. What about their performance?
5. Which non-Java frameworks with Java bindings are there on the scene?
6. Which of them would you recommend?
Thank you in advance for your comments and suggestions... | [
0.491074800491333,
-0.0744791030883789,
-0.07987752556800842,
0.22430159151554108,
-0.27465692162513733,
0.022154029458761215,
0.44601115584373474,
-0.11989039927721024,
-0.1963244080543518,
-0.7599613070487976,
-0.16618183255195618,
0.8835269808769226,
-0.21726055443286896,
-0.32507017254... | |
Going back to my previous question on OCSP, does anybody know of "reliable" OCSP libraries for Python, Java and C?
I need "client" OCSP functionality, as I'll be checking the status of Certs against an OCSP responder, so responder functionality is not that important.
Thanks
Have you check pyOpenSSL.. am sure openssl ... | [
-0.01745971105992794,
0.2312237024307251,
0.13046026229858398,
0.07803145796060562,
-0.34837695956230164,
-0.4230254292488098,
0.249459370970726,
0.19068045914173126,
-0.24551419913768768,
-0.5450277924537659,
-0.1958368569612503,
0.648108184337616,
-0.2930600941181183,
-0.1668187528848648... | |
I'm having a problem with my compiler telling me there is an 'undefined reference to' a function I want to use in a library. Let me share some info on the problem:
* I'm cross compiling with gcc for C.
* I am calling a library function which is accessed through an included header which includes another header, which c... | [
0.53703373670578,
0.3639526963233948,
0.004919720813632011,
-0.07690054178237915,
-0.059674687683582306,
-0.262783944606781,
0.02916356548666954,
0.09946631640195847,
-0.26466235518455505,
-0.6068628430366516,
0.01194710936397314,
0.5053085684776306,
-0.3168150782585144,
0.2424252778291702... | |
library files, but i'm not sure what is the correct way to order them. I tried with including the headers folder both before and after the .o file.
Some suggests would be great, and maybe and explanation of how the linker does its thing.
Thanks!
---
Response to answers
* there is no .a library file, just .h and .c... | [
0.5748194456100464,
0.14813736081123352,
0.3055914044380188,
0.5139517784118652,
-0.12096583098173141,
-0.03841886669397354,
0.030952902510762215,
0.22804629802703857,
-0.33124104142189026,
-0.6853380799293518,
-0.20879119634628296,
0.2087506800889969,
0.008980445563793182,
0.3209982216358... | |
maybe there should be?? Yes seems I don't understand the difference between includes and libraries...i'll work on that :-)
Thanks for all the responses! I learned a lot about libraries. I'd like to put all the responses as the accepted answer :-)
It sounds like you are not compiling the .c file in the library to produ... | [
0.8230953812599182,
-0.022585676982998848,
-0.026113837957382202,
0.5911411046981812,
-0.025420721620321274,
-0.019504917785525322,
0.03867311030626297,
-0.06306664645671844,
-0.22928237915039062,
-0.3723013699054718,
0.20949895679950714,
0.48902907967567444,
-0.20448796451091766,
0.303411... | |
This may seem like a programming 101 question and I had thought I knew the answer but now find myself needing to double check. In this piece of code below, will the exception thrown in the first catch block then be caught by the general Exception catch block below?
```
try {
// Do something
} catch(IOException e) {
... | [
0.05778969079256058,
0.15814805030822754,
0.2059633731842041,
-0.04978729784488678,
-0.007056758273392916,
-0.15118151903152466,
0.21835209429264069,
-0.03836844488978386,
-0.26027965545654297,
-0.5791811347007751,
-0.19649586081504822,
0.28619834780693054,
-0.4722049832344055,
0.096834108... | |
same for most languages but I'm working in Java.
No, since the new `throw` is not in the `try` block directly. | [
0.1948554664850235,
0.24850799143314362,
-0.2508385181427002,
-0.3267625570297241,
-0.25426459312438965,
-0.22269722819328308,
0.5059885382652283,
0.2771068811416626,
-0.12997950613498688,
-0.5397703051567078,
-0.07943268120288849,
0.4323512017726898,
-0.07833047211170197,
-0.1231888234615... | |
It seems that most of the installers for Perl are centered around installing Perl modules, not applications. Things like ExtUtils::MakeMaker and Module::Build are very well suited for modules, but require some additional work for Web Apps.
Ideally it would be nice to be able to do the following after checking out the ... | [
0.5590791702270508,
0.05129111558198929,
0.352759450674057,
-0.12234218418598175,
0.032778289169073105,
-0.3041956126689911,
0.30660295486450195,
-0.12894031405448914,
-0.35251331329345703,
-0.46838852763175964,
-0.3724402189254761,
0.6153128743171692,
-0.28207191824913025,
0.0723288357257... | |
only the perl modules, but also things like template (.tt) files, and CGI scripts, JS and image files that should be web-accessible.
* Make sure proper permissions are set on installed files (and SELinux context if necessary).
Right now we have a system based on **Module::Build** that does most of this. The work was d... | [
0.6083614230155945,
0.044240664690732956,
0.593966543674469,
0.07730048149824142,
0.07894100993871689,
-0.2799871861934662,
0.1729826182126999,
-0.10271798819303513,
-0.5047573447227478,
-0.5180737972259521,
-0.250716894865036,
0.7808857560157776,
-0.2922389805316925,
-0.24860654771327972,... | |
particular system you've used that's been particularly successful? Do you have to write an installer based on **Module::Build** or **ExtUtils::MakeMaker** that's particular to your application, or is something more general available?
**EDIT:** To answer brian's questions below:
* We can log into the machines
* We do ... | [
0.6386091113090515,
0.17591430246829987,
-0.07890169322490692,
0.2277003824710846,
0.304849237203598,
-0.028091687709093094,
0.3344796299934387,
0.15477514266967773,
-0.4640095829963684,
-0.546909511089325,
-0.1565457582473755,
0.4873470664024353,
-0.13890692591667175,
0.0309519711881876,
... | |
organization, to be installed by their programmers or systems people.
* We install by checking out from the repository, though we'd like to have the option of using a distributed archive (see above).
What are your limitations for installing web apps? Can you log into the machine? Are all of the machines running the sam... | [
0.6827959418296814,
0.3519156277179718,
-0.06800148636102676,
0.3681212067604065,
0.28961777687072754,
-0.3677602708339691,
0.23902830481529236,
0.09584033489227295,
-0.6809940934181213,
-0.6604341864585876,
-0.10597990453243256,
0.396047979593277,
-0.22142109274864197,
-0.1564829647541046... | |
sysadmins familiar with Perl installing in control environments, I just use [MakeMaker](http://search.cpan.org/dist/ExtUtils-Makemaker). It's easy to get it to do all the things you listed if you know a little about `MakeMaker`. If you want to know more about that, ask a another question. ;) [Module::Build](http://sear... | [
0.10127252340316772,
-0.16545914113521576,
0.5233338475227356,
-0.14546741545200348,
0.09446724504232407,
-0.31184884905815125,
0.2113029658794403,
-0.14934073388576508,
-0.23763379454612732,
-0.45460641384124756,
-0.2753039002418518,
0.6214590072631836,
-0.33766433596611023,
-0.3030097186... | |
more work. And, the `cpan` tool (which comes with Perl), can install from the current directory and handle dependencies for you. Just tell it to install the current directory:
```
$ cpan .
```
If you only have to install on a single platorm, you'll probably have an easier time making a package in the native format.... | [
0.27277445793151855,
0.16107018291950226,
0.33411601185798645,
-0.021356062963604927,
0.11314573138952255,
-0.15396800637245178,
0.10470569878816605,
0.09254647046327591,
-0.38101255893707275,
-0.6286014318466187,
-0.21438369154930115,
0.917768657207489,
-0.21216899156570435,
0.13249534368... | |
tool.
If the people installing the web application really have no idea about command lines, CPAN, and other things, you'll probably want to use a packager and installer that doesn't scare them or make them think about what is going on, and can accurately report problems to you automatically.
As Dave points out, using... | [
0.7123103737831116,
-0.059959448873996735,
0.3878254294395447,
0.3567243814468384,
0.0728476345539093,
-0.41687050461769104,
0.024225829169154167,
-0.09319949150085449,
-0.16703353822231293,
-0.48630958795547485,
-0.08598337322473526,
1.0599124431610107,
-0.21962469816207886,
-0.2166337370... | |
thumb drives are good now too). With a simple "run me" script everything gets installed in exactly the versions they need. See, for instance, my Making my own CPAN talk if you're interested in that. Again, consider the audience when you think about that. It's not something you'd hand to the general public.
Good luck, ... | [
0.4452190101146698,
0.17188768088817596,
0.5442408919334412,
0.39884740114212036,
0.5181014537811279,
-0.1646786481142044,
0.21305862069129944,
0.5270124077796936,
-0.3171640932559967,
-0.5013354420661926,
-0.059191327542066574,
0.8893976211547852,
0.006324362475425005,
-0.1592425256967544... | |
Is it possible that Microsoft will be able to make F# programs, either at VM execution time, or more likely at compile time, detect that a program was built with a functional language and automatically parallelize it better?
Right now I believe there is no such effort to try and execute a program that was built as si... | [
0.21449464559555054,
0.2644170820713043,
-0.05119691789150238,
0.23479531705379486,
-0.02581784687936306,
0.08037468045949936,
0.14619797468185425,
-0.006926536560058594,
-0.39407822489738464,
-0.20719128847122192,
-0.05530045926570892,
0.7100958824157715,
-0.5756058096885681,
-0.009579691... | |
visible in task manager in the process thread count, or would it be lower level than that?
I think this is unlikely in the near future. And if it does happen, I think it would be more likely at the IL level (assembly rewriting) rather than language level (e.g. something specific to F#/compiler). It's an interesting que... | [
0.26433736085891724,
-0.07898610085248947,
0.22586515545845032,
0.058041639626026154,
-0.21618196368217468,
-0.0863167867064476,
-0.023052195087075233,
0.2093075066804886,
-0.6043228507041931,
-1.0095431804656982,
0.06739836186170578,
0.428659051656723,
-0.22749565541744232,
0.090660154819... | |
rather than just having it all happen as if by magic.
(Language features like [F# async workflows](http://blogs.msdn.com/dsyme/archive/2007/10/11/introducing-f-asynchronous-workflows.aspx), and libraries like the [task-parallel library and others](http://blogs.msdn.com/pfxteam/default.aspx), are good examples of near... | [
0.1293066143989563,
-0.23480486869812012,
0.10039225220680237,
0.10035896301269531,
0.07862922549247742,
-0.1945025771856308,
0.39550715684890747,
0.19926297664642334,
-0.5316545963287354,
-0.5109020471572876,
-0.22224047780036926,
0.5492246747016907,
-0.07675587385892868,
-0.0993694514036... | |
of it happen). :) | [
0.46903371810913086,
0.04287310317158699,
0.5450416207313538,
-0.1533339023590088,
0.3918814957141876,
-0.07031159847974777,
0.5303052663803101,
-0.005972870625555515,
-0.0014395280741155148,
-0.394901305437088,
-0.014709391631186008,
0.6190124750137329,
-0.4651046097278595,
0.670031368732... | |
How do you do your own fonts? I don't want a heavyweight algorithm (freetype, truetype, adobe, etc) and would be fine with pre-rendered bitmap fonts.
I do want anti-aliasing, and would like proportional fonts if possible.
I've heard I can use Gimp to do the rendering (with some post processing?)
I'm developing for a... | [
0.492017924785614,
0.055329255759716034,
0.3557090759277344,
0.09782431274652481,
-0.2291431725025177,
0.403695672750473,
-0.06397411227226257,
0.07137094438076019,
-0.264578253030777,
-0.9098212122917175,
0.19299271702766418,
0.3811649680137634,
-0.055600956082344055,
-0.32093945145606995... | |
demo-scene days I often drew all characters in the font in one big bitmap image. In the code, I stored the (X,Y) coordinates of each character in the font, as well as the width of each character. The height was usually constant throughout the font. If space isn't an issue, you can put all characters in a grid, that is ... | [
0.18598107993602753,
-0.12332679331302643,
0.1694575548171997,
0.12400063872337341,
0.007595020346343517,
0.5494102835655212,
-0.07473919540643692,
0.04594886675477028,
-0.05139067769050598,
-0.7670807242393494,
0.15464270114898682,
0.44775572419166565,
-0.12661732733249664,
-0.28217831254... | |
"transparent" color, but you could definitely use an alpha-channel for this today.
A simpler approach, that can be used for small b/w fonts, is to define the characters directly in code:
```
LetterA db 01111100b
db 11000110b
db 11000110b
db 11111110b
db 11000110b
db 11000... | [
0.3166413903236389,
0.26202747225761414,
0.4234306812286377,
0.0453522615134716,
-0.20909468829631805,
0.09421970695257187,
-0.049507033079862595,
-0.05687565729022026,
0.04620495066046715,
-0.589945912361145,
-0.14907494187355042,
0.42431506514549255,
-0.1164749264717102,
-0.0445758476853... | |
hybrid solution for storing the characters. | [
-0.1380075216293335,
-0.2333100438117981,
-0.15731848776340485,
0.1453809291124344,
0.18738465011119843,
0.3044529855251312,
-0.35142427682876587,
-0.28393277525901794,
-0.003377991495653987,
-0.7879037261009216,
-0.23244841396808624,
-0.1718764752149582,
-0.09233304858207703,
-0.295479863... | |
Could anyone explain with some examples when it is better to call functions by reference and when it is better to call by address?
Pass your arguments to function using reference whenever possible.
Passing arguments by reference eliminate the chance of them being NULL.
If you want it to be possible to pass NULL value t... | [
0.03437883406877518,
0.06809108704328537,
-0.08152950555086136,
0.3118073046207428,
-0.44566231966018677,
0.16312634944915771,
0.28792858123779297,
-0.030691787600517273,
0.006347651593387127,
-0.6095683574676514,
0.026305412873625755,
0.4930623173713684,
-0.3728273808956146,
0.10567332059... | |
According to this article [Silverlight 2 Beta 2](http://msdn.microsoft.com/en-us/library/cc197951(VS.95).aspx) supports the `DataContractJsonSerializer` object. But, when I try to use it VS says
> "Type 'DataContractJsonSerializer' is not defined".
I have a method marked as ScriptableMember that gets called from Jav... | [
-0.16930609941482544,
-0.16979557275772095,
0.22866253554821014,
-0.24787701666355133,
-0.27594345808029175,
-0.31649544835090637,
0.051631975919008255,
-0.21120929718017578,
0.2103496938943863,
-0.6450170874595642,
-0.11509981006383896,
0.28255388140678406,
-0.8704949021339417,
-0.2153404... | |
but you need to add a reference to System.ServiceModel.Web to your Silverlight project to use it.
I didn't realize that you still needed to add dll references in Silverlight. I thought it automatically included everything in a similar way to how ASP.NET does. | [
0.6758602857589722,
-0.09170209616422653,
0.2525629699230194,
0.21486803889274597,
-0.09761283546686172,
-0.36805370450019836,
-0.046280112117528915,
0.10611925274133682,
-0.3079319894313812,
-0.7181341648101807,
0.3607347309589386,
0.4014216661453247,
-0.19890965521335602,
0.1520786881446... | |
We have fairly large C++ application which is composed of about 60 projects in Visual Studio 2005. It currently takes 7 minutes to link in Release mode and I would like to try to reduce the time. Are there any tips for improving the link time?
Most of the projects compile to static libraries, this makes testing easier... | [
0.10067648440599442,
-0.0197493527084589,
0.5214433073997498,
0.054295849055051804,
-0.3307846784591675,
-0.18824592232704163,
0.32836228609085083,
-0.14230605959892273,
-0.3234744369983673,
-0.4206179976463318,
0.1773899495601654,
0.29906854033470154,
-0.3057931661605835,
0.05149590224027... | |
projects make any difference? I don't really want to go through all the headers and add macros to export the symbols (even using a script) but if it would do something to reduce the 7 minute link time I will certainly consider it.
For some reason using nmake from the command line is slightly faster and linking the sam... | [
0.5193837285041809,
-0.13285022974014282,
0.1352163553237915,
0.34630492329597473,
-0.016919156536459923,
-0.32146474719047546,
0.3932707607746124,
-0.08615519106388092,
-0.37312576174736023,
-0.7048339247703552,
-0.06305990368127823,
0.677574098110199,
0.07305676490068436,
-0.316680252552... | |
[`/LTCG`](http://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx) flag to enable Link Time Code Generation, turning them off will improve link times significantly, at the expense of some optimizations.
Also, if you're using the [`/Z7`](http://msdn.microsoft.com/en-us/library/958x11bc.aspx) flag to put debug symbols in ... | [
0.1116948053240776,
0.13854670524597168,
0.2885073721408844,
0.1192411482334137,
0.0249902606010437,
-0.2979026734828949,
0.36331379413604736,
0.25357794761657715,
-0.3516761064529419,
-0.6541915535926819,
-0.30020228028297424,
0.4734942615032196,
-0.3639149069786072,
0.5187925100326538,
... | |
What is the best way to find if an object is in an array?
This is the best way I know:
```js
function include(arr, obj) {
for (var i = 0; i < arr.length; i++) {
if (arr[i] == obj) return true;
}
}
console.log(include([1, 2, 3, 4], 3)); // true
console.log(include([1, 2, 3, 4], 6)); // undefined
```
As ... | [
0.11919275671243668,
0.15202642977237701,
0.2838658392429352,
-0.3192535638809204,
0.09803719818592072,
-0.17532142996788025,
0.3084794878959656,
-0.5626529455184937,
-0.26184436678886414,
-0.5777656435966492,
-0.2496163547039032,
0.47094231843948364,
-0.45565396547317505,
-0.0599565245211... | |
it's not present:
1. [Mozilla's](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf) (ECMA-262) version:
```
if (!Array.prototype.indexOf)
{
Array.prototype.indexOf = function(searchElement /*, fromIndex */)
{
"use strict";
if (this === void... | [
0.04783955588936806,
-0.2337195724248886,
0.6749959588050842,
-0.13191615045070648,
0.13356353342533112,
-0.2287115603685379,
0.1742297261953354,
-0.2265644371509552,
-0.2269139438867569,
-0.4336342215538025,
-0.25205641984939575,
0.39304080605506897,
-0.590349018573761,
0.3234462440013885... | |
0;
if (arguments.length > 0)
{
n = Number(arguments[1]);
if (n !== n)
n = 0;
else if (n !== 0 && n !== (1 / 0) && n !== -(1 / 0))
n = (n > 0 || -1) * Math.floor(Math.abs(n));
}
if (n >= len) | [
-0.08292899280786514,
-0.10773169249296188,
0.3432350158691406,
-0.12357053905725479,
0.14809301495552063,
0.10354968160390854,
0.24512848258018494,
-0.50359046459198,
-0.5540841817855835,
-0.17127254605293274,
-0.396603524684906,
0.5562636852264404,
-0.007586642634123564,
-0.0462596490979... | |
return -1;
var k = n >= 0
? n
: Math.max(len - Math.abs(n), 0);
for (; k < len; k++)
{
if (k in t && t[k] === searchElement)
return k;
}
return -1;
};
}
```
2. [Daniel James](https://stackoverflow.com/questions/143847/best-way-to-find-an-item-in-a-j... | [
-0.35150185227394104,
0.02924971468746662,
0.11823445558547974,
-0.02880488894879818,
0.2069692760705948,
-0.21799182891845703,
0.36532485485076904,
-0.38048848509788513,
-0.48605549335479736,
-0.22616729140281677,
-0.5402434468269348,
0.3626747131347656,
-0.41385766863822937,
-0.019858542... | |
(!Array.prototype.indexOf) {
Array.prototype.indexOf = function (obj, fromIndex) {
if (fromIndex == null) {
fromIndex = 0;
} else if (fromIndex < 0) {
fromIndex = Math.max(0, this.length + fromIndex);
}
for (var i = fromIndex, j = this.length; i < j; i++) {
if (this[i] ... | [
-0.2502102851867676,
-0.0901319608092308,
0.34739792346954346,
-0.29616981744766235,
0.026394374668598175,
0.5299370884895325,
0.4898301064968109,
-0.3188256621360779,
-0.09664753824472427,
-0.3892323076725006,
0.036897871643304825,
0.32087644934654236,
-0.23017901182174683,
0.083885081112... | |
return i;
}
return -1;
};
}
```
3. [roosteronacid](https://stackoverflow.com/questions/143847/best-way-to-find-an-item-in-a-javascript-array#144664)'s version:
```
Array.prototype.hasObject = (
!Array.indexOf ? function (o)
{
var l = this.length + 1;
while (l -= 1)
{
if (t... | [
0.012409440241754055,
-0.020545214414596558,
0.062048424035310745,
-0.2906440496444702,
0.237492635846138,
0.17529134452342987,
0.2652413845062256,
-0.4135856628417969,
-0.1401517242193222,
-0.516156792640686,
-0.11197104305028915,
0.3075319826602936,
-0.2812403738498688,
0.187095299363136... | |
}
}
return false;
} : function (o)
{
return (this.indexOf(o) !== -1);
}
);
``` | [
-0.22073623538017273,
-0.01181104313582182,
0.3027886748313904,
-0.4391228258609772,
0.5242881774902344,
0.09986744821071625,
0.28794172406196594,
-0.14789357781410217,
0.034718677401542664,
-0.3312610983848572,
-0.5220815539360046,
0.803351104259491,
-0.34626737236976624,
0.25583356618881... | |
I am writing a data conversion in PL/SQL that processes data and loads it into a table. According to the PL/SQL Profiler, one of the slowest parts of the conversion is the actual insert into the target table. The table has a single index.
To prepare the data for load, I populate a variable using the rowtype of the tab... | [
0.20268315076828003,
0.27754488587379456,
0.2683524191379547,
-0.060798030346632004,
-0.09904863685369492,
0.20582561194896698,
-0.05275074765086174,
-0.23641051352024078,
0.08638357371091843,
-0.6634566783905029,
0.12879200279712677,
0.3859666883945465,
-0.3043735921382904,
0.062424745410... | |
the syntax?
It's much better to insert a few hundred rows at a time, using PL/SQL tables and FORALL to bind into insert statement. For details on this see [here](http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2181).
Also be careful with how you construct the PL/SQL tables. If at all po... | [
0.230498805642128,
-0.11332406103610992,
0.19889701902866364,
-0.0019922403153032064,
-0.2572336494922638,
0.1366683840751648,
0.34060314297676086,
-0.3266274929046631,
0.06857997179031372,
-0.7390263676643372,
-0.2558770179748535,
0.7265206575393677,
-0.3211379647254944,
-0.32550448179244... | |
also reduce the amount of logging, depending on how you use it. This also has some implications, so please read the [fine manual](http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#ADMIN01509) first.
Finally, if you are truncating and rebuilding the table it may be worthwhile to first drop (or ... | [
-0.06600029766559601,
0.09446725994348526,
0.04236351326107979,
0.09858820587396622,
-0.09124528616666794,
-0.09808634221553802,
0.21988652646541595,
-0.16235831379890442,
-0.5514228343963623,
-0.44581982493400574,
-0.17088548839092255,
0.5165454149246216,
-0.19676807522773743,
-0.21999642... | |
I have a matrix in SQL reporting and I would like it to print on an A4 page. If the matrix has less than 4 columns then it fits but for more than 4 columns I would like the matrix to wrap and show only 4 columns per page. Is this possible? I am using SQL Reporting 2005 in localmode.
I found a work around:
1. First I a... | [
0.3095760643482208,
0.16867667436599731,
0.2973744571208954,
-0.0692274197936058,
-0.4449445605278015,
-0.07575483620166779,
0.17305569350719452,
-0.32415691018104553,
-0.2945426106452942,
-0.3811555504798889,
0.40469130873680115,
0.3752143681049347,
-0.41665470600128174,
-0.15797707438468... | |
created a list on my report and moved my matrix into the list.
3. I made the group expression =Ceiling(Fields!ColumnCount.Value/4) for the list.
In short I am telling the list to break every 4 columns. This causes the matrix to be split after 4 columns.
This will not work in all scenarios and probably screws up subt... | [
0.521483302116394,
0.06824245303869247,
0.32397693395614624,
-0.13622809946537018,
-0.26968055963516235,
0.10599064826965332,
0.4466124176979065,
-0.6271634697914124,
-0.6638625860214233,
-0.2768339216709137,
0.17579685151576996,
0.29412055015563965,
-0.6570947766304016,
-0.048383716493844... | |
I'm writing a Delphi expert. I need to be able to write a value to a property on a property which is an object. E.g. I have a GroupBox on the form and I want to edit the Margins.Left property. I'm using the following procedure to do it but if gives an AV on the marked line.
The procedure takes a component from the (pr... | [
0.12358039617538452,
0.21570780873298645,
0.3304924964904785,
-0.03117498941719532,
-0.05015474185347557,
-0.21315306425094604,
0.07941777259111404,
-0.3747212290763855,
0.07189419865608215,
-0.6098076701164246,
-0.15586799383163452,
0.615723192691803,
-0.18615244328975677,
-0.045591697096... | |
any changes.
```
procedure EditIntegerSubProperty(Component: IOTAComponent;const PropName: String;NewValue: Integer);
var AnObject: TObject;
TK: TTypeKind;
At: Integer;
AClassName, APropName: String;
PropInfo: PPropInfo;
OldValue: Integer;
begin
At := Pos('.', PropName);
if At < 1 then
raise Exception.... | [
-0.34155380725860596,
-0.3098980188369751,
0.8162996768951416,
-0.20487983524799347,
0.22878943383693695,
0.39783161878585815,
0.355879545211792,
-0.51546710729599,
-0.23823145031929016,
-0.5040677785873413,
-0.6267868876457214,
0.7466592192649841,
-0.48299703001976013,
0.21548902988433838... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.