text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
entire display so it's not a good idea unless your app is fullscreen.
The portable alternative is to either draw the entire scene brighter or dimmer (which is a hassle), or to slap a fullscreen alpha-blended quad over the whole scene to brighten or darken it as desired. Neither of these approaches can affect the gamma... | [
0.21097254753112793,
-0.2915218472480774,
0.5072316527366638,
0.08830345422029495,
-0.1156475692987442,
-0.2179151177406311,
0.3310752213001251,
0.0016875226283445954,
-0.2401503473520279,
-0.6243097186088562,
-0.006750809494405985,
0.5798242092132568,
-0.3608989119529724,
-0.0797915980219... | |
a quad with blending set up to darken or brighten everything underneath it. Eg.
```
if( brightness > 1 )
{
glBlendFunc( GL_DEST_COLOR, GL_ONE );
glColor3f( brightness-1, brightness-1, brightness-1 );
}
else
{
glBlendFunc( GL_ZERO, GL_SRC_COLOR );
glColor3f( brightness, brightness, brightness );
}
glEna... | [
0.14993470907211304,
-0.4133727252483368,
0.638550877571106,
-0.07762079685926437,
-0.07270307093858719,
-0.14118614792823792,
0.648816704750061,
-0.5338884592056274,
0.19571727514266968,
-0.7526859641075134,
-0.5086237192153931,
0.6505651473999023,
-0.4637850224971771,
0.12423401325941086... | |
I have a bunch of PDF files and my Perl program needs to do a full-text search of them to return which ones contain a specific string.
To date I have been using this:
```
my @search_results = `grep -i -l \"$string\" *.pdf`;
```
where $string is the text to look for.
However this fails for most pdf's because the file... | [
0.17809557914733887,
0.22086669504642487,
0.36353039741516113,
0.14826756715774536,
-0.08970631659030914,
-0.15074262022972107,
-0.08472394943237305,
0.1683020442724228,
-0.04739624261856079,
-0.8540551066398621,
-0.06666342169046402,
0.34454935789108276,
-0.16001427173614502,
0.3391678035... | |
names of the pdf's, I can't find the right syntax yet.
Final solution using Adam Bellaire's suggestion below:
```
@search_results = `for i in \$( ls ); do pdftotext \$i - | grep --label="\$i" -i -l "$search_string"; done`;
```
The PerlMonks thread [here](http://www.perlmonks.org/?node_id=582868) talks about this pro... | [
-0.21316345036029816,
0.10441853106021881,
0.6650509834289551,
0.26628997921943665,
-0.022631095722317696,
-0.06734636425971985,
-0.00017352442955598235,
-0.030611135065555573,
-0.18395355343818665,
-0.5402272939682007,
-0.25757884979248047,
0.519809365272522,
-0.4207760989665985,
0.313070... | |
I'd like my application to have a full-screen mode. What is the easiest way to do this, do I need a third party library for this or is there something in the JDK that already offers this?
Try the [Full-Screen Exclusive Mode API](http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html). It was introduced in ... | [
0.19881418347358704,
-0.2957536280155182,
0.7542158961296082,
0.14474520087242126,
-0.36450985074043274,
-0.33133941888809204,
-0.2686363160610199,
0.07593414187431335,
-0.4757593870162964,
-0.47904491424560547,
-0.32822778820991516,
0.7067355513572693,
-0.30379602313041687,
-0.06466324627... | |
pixel), and refresh rate (how frequently the monitor updates itself).
> * **Passive vs. Active Rendering** - painting while on the main event loop using the paint method is passive, whereas rendering in your own thread is active.
> * **Double Buffering and Page Flipping** - Smoother drawing means better perceived perfo... | [
0.18697713315486908,
-0.36760804057121277,
0.34758684039115906,
0.09112709015607834,
-0.3226761221885681,
0.5387361645698547,
0.022267909720540047,
-0.19346235692501068,
-0.17504996061325073,
-0.879477858543396,
0.05214863643050194,
0.6114868521690369,
-0.13502366840839386,
-0.282503545284... | |
exclusive mode examples in the linked tutorial. | [
0.4274851083755493,
-0.7751681208610535,
0.07303585112094879,
0.3244958817958832,
0.10242751240730286,
-0.504965603351593,
0.26530635356903076,
0.07884062081575394,
-0.14931724965572357,
-0.4234667420387268,
-0.750769853591919,
0.4912314713001251,
-0.07923334091901779,
-0.13742411136627197... | |
when i use setDefaultLookAndFeelDecorated(true) method in Java
why is the Frame appear FullScreen when i maximize the Frame ?
and how can i disaple the FullScreen mode in this method ?
Setting `setDefaultLookAndFeelDecorated` to true causes the decorations to be handled by the look and feel; this means that a System lo... | [
0.3535362780094147,
0.0905715674161911,
0.6657973527908325,
-0.224545419216156,
-0.0868195965886116,
-0.01344149187207222,
0.5270165801048279,
-0.31052452325820923,
-0.13744784891605377,
-0.7661698460578918,
0.006640683859586716,
0.7581672072410583,
-0.059041596949100494,
0.010116044431924... | |
entire screen, making it look like a full-screen window. On Mac, the OS refuses to give away its own titlebar, and draws a complete Metal frame (including the title bar) in a Mac-native window.
So, in short, if you want to make sure the taskbar gets respected, use the Windows system look-and-feel on Windows. You can s... | [
0.18454568088054657,
0.12341087311506271,
0.7207533717155457,
0.014748383313417435,
0.17617222666740417,
0.00930120050907135,
0.1655779480934143,
-0.09999459981918335,
-0.26564711332321167,
-0.6385209560394287,
-0.30698591470718384,
0.4972449839115143,
-0.06666704267263412,
0.3367453813552... | |
i have a number of jsp files under web-inf folder. Inside my web.xml i specify an errorppage for 404 amd 403 and java.lang.exception. Do i need to include a page directive for each of my jsp's or will they automatically get forwarded to the exception handling page because they are under web-inf?
If this is true does t... | [
0.13893140852451324,
0.22525335848331451,
0.11007250845432281,
0.20428957045078278,
-0.20516499876976013,
-0.25442713499069214,
0.2288169413805008,
-0.03458981215953827,
-0.34665781259536743,
-0.6014926433563232,
-0.10772474110126495,
0.4388946294784546,
-0.2905927300453186,
-0.09718205779... | |
errorpage you would like to use in your app available with all the other jsps. So in the following example you would just need to have the error pages in the root of the context path(where all of the other jsps are). Anytime the webapp receives a 404 or 403 error it will try to display one of these pages. .
```
<error... | [
-0.17767639458179474,
0.34924766421318054,
0.22193244099617004,
0.12007319182157516,
-0.28870660066604614,
0.0692354366183281,
0.570905327796936,
0.11014088243246078,
-0.11961179971694946,
-0.7451271414756775,
-0.005105684045702219,
0.508246660232544,
-0.373968243598938,
-0.220876783132553... | |
static html) | [
-0.20263947546482086,
-0.0865846574306488,
0.46794402599334717,
-0.060502272099256516,
-0.06967072188854218,
-0.05500168725848198,
0.20020917057991028,
0.17187274992465973,
-0.4712824821472168,
-0.2576524317264557,
-0.6823153495788574,
0.26210033893585205,
-0.589716911315918,
0.21064588427... | |
I am building a menu in HTML/CSS/JS and I need a way to prevent the text in the menu from being highlighted when double-clicked on. I need a way to pass the id's of several divs into a function and have highlighting turned off within them.
So when the user accidentally (or on purpose) double clicks on the menu, the m... | [
0.6308004856109619,
0.1619793325662613,
0.17408627271652222,
-0.07952352613210678,
-0.05846041068434715,
-0.04135669395327568,
0.005544582381844521,
0.08332594484090805,
-0.15394483506679535,
-0.9283782839775085,
-0.03600044175982475,
0.565700888633728,
-0.49938681721687317,
-0.16272015869... | |
{
-moz-user-select: none; /* mozilla browsers */
-khtml-user-select: none; /* webkit browsers */
}
```
For IE there is no CSS option, but you can capture the ondragstart event, and return false;
**Update**
Browser support for this property has expanded since 2008.
```
div.noSelect {
-webkit-user-select: none... | [
-0.17340439558029175,
0.051867417991161346,
0.38297560811042786,
-0.06463706493377686,
-0.045588359236717224,
-0.081740602850914,
0.7223348617553711,
0.034171972423791885,
-0.3672260046005249,
-0.5604044795036316,
-0.4217877984046936,
0.5598669052124023,
-0.38816574215888977,
0.00220021163... | |
I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it.
I want to call the `help` function on each one. In Ruby I can do something like `ClassName.methods` to get a list of all the methods available on that class. Is there something similar in Py... | [
0.1417149305343628,
0.3016071915626526,
0.09882435947656631,
-0.13978850841522217,
-0.1583944857120514,
0.03175581619143486,
0.24483852088451385,
-0.2674857974052429,
0.039643723517656326,
-0.6590946912765503,
-0.26380062103271484,
0.7266421914100647,
-0.3456111550331116,
-0.18455336987972... | |
which generates the documentation you are after. You can just give them the class you wish to see the documentation of. They can also generate, for instance, HTML output and write it to disk. | [
0.3805718719959259,
-0.12141875177621841,
0.13897867500782013,
0.2314441055059433,
0.014254353940486908,
-0.4716762900352478,
-0.1734347641468048,
-0.13974116742610931,
-0.3260250687599182,
-0.5633970499038696,
-0.2366069108247757,
0.5046842694282532,
-0.09109478443861008,
-0.0786516740918... | |
I realize that parameterized SQL queries is the optimal way to sanitize user input when building queries that contain user input, but I'm wondering what is wrong with taking user input and escaping any single quotes and surrounding the whole string with single quotes. Here's the code:
```
sSanitizedInput = "'" & Repla... | [
0.3876533508300781,
0.24716489017009735,
-0.03509139269590378,
-0.04601918160915375,
-0.12228870391845703,
-0.020920932292938232,
0.36231526732444763,
-0.19555145502090454,
0.15989255905151367,
-0.3146689832210541,
-0.1505875289440155,
0.48654064536094666,
-0.4229784905910492,
0.1822583079... | |
command.
We are using Microsoft SQL Server 2000, for which I believe the single-quote is the only string delimiter and the only way to escape the string delimiter, so there is no way to execute anything the user types in.
I don't see any way to launch an SQL injection attack against this, but I realize that if this ... | [
0.534930408000946,
0.1738608479499817,
-0.01632355898618698,
0.23647107183933258,
0.09414166212081909,
-0.2600749135017395,
0.3510339558124542,
-0.1030765026807785,
-0.021078379824757576,
-0.41175976395606995,
0.01795135624706745,
0.7419998645782471,
-0.3804064095020294,
-0.038533814251422... | |
user input that exploits this technique would be very helpful.
---
UPDATE:
I still don't know of any way to effectively launch a SQL injection attack against this code. A few people suggested that a backslash would escape one single-quote and leave the other to end the string so that the rest of the string would be ... | [
0.19378291070461273,
0.17730632424354553,
0.16231253743171692,
-0.09869522601366043,
-0.20517773926258087,
-0.17999319732189178,
0.5249219536781311,
-0.1258617639541626,
-0.13097816705703735,
-0.30223819613456726,
0.10308919847011566,
0.642508864402771,
-0.5865190029144287,
0.0689195841550... | |
it.
And unless there is a way to stop the escaping of the single-quote, none of the rest of the user input will be executed because it will all be taken as one contiguous string.
I understand that there are better ways to sanitize input, but I'm really more interested in learning why the method I provided above won't... | [
0.5908648371696472,
0.14316606521606445,
0.16329024732112885,
0.4197841286659241,
-0.09153670817613602,
-0.37098532915115356,
0.30798259377479553,
0.2249322235584259,
-0.04192154109477997,
-0.3955226242542267,
0.11008362472057343,
0.5820299386978149,
-0.4954913854598999,
0.3082506358623504... | |
blacklist validation is always problematic, it's much better to explicitly and strictly define what values/formats you accept. Admittedly, this is not always possible - but to some extent it must always be done.
Some research papers on the subject:
* <http://www.imperva.com/docs/WP_SQL_Injection_Protection_LK.pdf>
... | [
0.483308881521225,
-0.034881360828876495,
0.1531820297241211,
0.018205489963293076,
-0.14568157494068146,
-0.4092715084552765,
0.18979331851005554,
-0.3387800455093384,
-0.42716532945632935,
0.12318447977304459,
0.22953297197818756,
0.4523449242115021,
-0.2145153284072876,
0.20854048430919... | |
idea. Moreover, unless your app is trivially small, you're going to have to deal with maintenance, and maybe a certain amount of governance: how do you ensure that its done right, everywhere all the time?
The proper way to do it:
* Whitelist validation: type, length, format or accepted values
* If you want to blackli... | [
0.321737676858902,
0.08449015021324158,
0.21039560437202454,
0.33155524730682373,
-0.019013093784451485,
-0.12084732949733734,
0.28749629855155945,
-0.12943552434444427,
-0.3830784261226654,
-0.4694906771183014,
-0.16125541925430298,
0.6278435587882996,
-0.35239338874816895,
0.086940303444... | |
SPs, you can also limit permissions in the database to executing the needed SPs only, and not access tables directly.
* you can also easily verify that the entire codebase only accesses the DB through SPs... | [
0.3335495889186859,
0.159720316529274,
0.07457869499921799,
0.1716451495885849,
-0.19694991409778595,
-0.3149409592151642,
0.4304320216178894,
-0.26722943782806396,
-0.41592860221862793,
-0.40158411860466003,
-0.32165536284446716,
0.3387203514575958,
-0.2833431661128998,
0.0148744871839880... | |
I've added cookie support to SOAPpy by overriding HTTPTransport. I need functionality beyond that of SOAPpy, so I was planning on moving to ZSI, but I can't figure out how to put the Cookies on the ZSI posts made to the service. Without these cookies, the server will think it is an unauthorized request and it will fail... | [
0.21403053402900696,
0.1842065155506134,
0.29779717326164246,
-0.13171763718128204,
-0.07795968651771545,
-0.11244462430477142,
0.1755230873823166,
-0.15122529864311218,
-0.23384110629558563,
-0.6604489088058472,
0.17470715939998627,
0.5492359399795532,
-0.3243829011917114,
0.1966969370841... | |
example](http://docs.python.org/lib/cookie-example.html) that is how it should work:
```
b = Binding(url='/cgi-bin/simple-test', tracefile=fp)
b.cookies['foo'] = 'bar'
``` | [
0.35803526639938354,
0.41226860880851746,
0.3578512370586395,
-0.26143983006477356,
0.35213711857795715,
-0.4229409992694855,
0.1564636081457138,
-0.3482869863510132,
-0.3307188153266907,
-0.4786412715911865,
0.04563475772738457,
0.4728793799877167,
-0.5530670881271362,
-0.1666229814291000... | |
what is an efficient way to get a certain time for the next day in Java?
Let's say I want the long for tomorrow 03:30:00.
Setting Calendar fields and Date formatting are obvious.
Better or smarter ideas, thanks for sharing them!
Okami
I take the brute force approach
```
// make it now
Calendar dateCal = Calendar.getI... | [
0.325208455324173,
-0.37479040026664734,
0.7468454241752625,
-0.057579245418310165,
0.16007159650325775,
-0.09113924950361252,
0.009530479088425636,
-0.17946374416351318,
0.10457917302846909,
-0.7237858176231384,
-0.007439471315592527,
0.7139652371406555,
-0.017199218273162842,
-0.01486726... | |
Can you create websites with Chinese characters in PHP?
UPDATE: Perhaps I should have said - is it straight forward. Because some languages like Java make it extremely easy. Perhaps localisation in PHP isn't as easy as Java???
Yes on both counts. Read [this guide](http://www.herongyang.com/PHP-Chinese/) on building C... | [
0.23654018342494965,
-0.07625675201416016,
-0.21441374719142914,
0.23468232154846191,
-0.32081085443496704,
-0.08814931660890579,
0.270143985748291,
0.6019296646118164,
-0.2956697344779968,
-0.520699679851532,
0.08106254786252975,
0.26585930585861206,
0.07333867996931076,
-0.80357086658477... | |
I was wondering if there was somewhere I could get some starter kit / theme sample for ASP.NET.
I am not a designer, but I need to build a prototype for a project, and if I do it myself it'll certainly be awful
Do you know where I could find that (ASP.NET specific)?
Check <http://asp.net>. There are quite a few start... | [
0.7437650561332703,
-0.06894189119338989,
-0.19875723123550415,
0.27611321210861206,
0.11617705971002579,
-0.15091918408870697,
0.025967588648200035,
0.313417911529541,
-0.43421491980552673,
-0.434558629989624,
0.2083503007888794,
-0.09772435575723648,
0.2389696091413498,
0.221760973334312... | |
I have an Xtext/Xpand (oAW 4.3, Eclipse 3.4) generator plug-in, which I run together with the editor plug-in in a second workbench. There, I'd like to run Xpand workflows programmatically on the model file I create. If I set the model file using the absolute path of the IFile I have, e.g. with:
```
String dslFile = fi... | [
0.06100812554359436,
-0.0865691602230072,
0.6862094402313232,
0.0815519466996193,
0.05966991186141968,
-0.016423504799604416,
0.14052732288837433,
-0.4550853669643402,
-0.048775944858789444,
-0.8024783730506897,
0.002528842305764556,
0.7230931520462036,
-0.15513812005519867,
0.055621374398... | |
dslFile);
```
I also tried leaving the properties empty and referencing the model file relative to the workflow file (inside the workflow file), but that yields a FileNotFoundException. Running all of this in a normal app (not in a second workbench) works fine.
I found help at the [openArchitectureWare forum](http://... | [
0.17456193268299103,
-0.24683664739131927,
0.6713207960128784,
0.10991045087575912,
-0.09422443807125092,
-0.13295912742614746,
0.28048843145370483,
-0.4567056894302368,
-0.21692894399166107,
-0.6345545053482056,
-0.10098271071910858,
0.8235519528388977,
-0.2378716915845871,
0.082197882235... | |
What's the difference between `TRUNCATE` and `DELETE` in SQL?
If your answer is platform specific, please indicate that.
Here's a list of differences. I've highlighted Oracle-specific features, and hopefully the community can add in other vendors' specific difference also. Differences that are common to most vendors c... | [
0.14285679161548615,
0.19432860612869263,
0.17836961150169373,
0.1962643265724182,
-0.01145559549331665,
0.07569669932126999,
-0.004423629026859999,
-0.11614233255386353,
-0.06822402775287628,
-0.3737117052078247,
-0.03312656655907631,
0.5956037044525146,
0.00025495761656202376,
-0.0167188... | |
issues have to be considered, as detailed below.
---
Statement type
==============
Delete is DML, Truncate is DDL ([What is DDL and DML?](https://stackoverflow.com/q/2578194/276052))
---
Commit and Rollback
===================
Variable by vendor
**SQL\*Server**
Truncate can be rolled back.
**PostgreSQL**
Trun... | [
-0.2875140905380249,
0.027836916968226433,
0.3093212842941284,
0.09370981156826019,
-0.1858537644147873,
0.16082817316055298,
0.24979713559150696,
-0.19364167749881744,
-0.18758247792720795,
-0.22316160798072815,
-0.5456944108009338,
0.691183865070343,
0.13332970440387726,
0.20447158813476... | |
is to be reloaded with data. The high water mark is reset.
---
Row scope
=========
Delete can be used to remove all rows or only a subset of rows. Truncate removes all rows.
**Oracle**
When a table is partitioned, the individual partitions can be truncated in isolation, thus a partial removal of all the table's da... | [
-0.3160189390182495,
-0.049862802028656006,
0.11735881119966507,
-0.010108978487551212,
0.058303914964199066,
0.12203039973974228,
-0.03864239156246185,
-0.19559261202812195,
-0.067979596555233,
-0.3971467912197113,
-0.42436787486076355,
0.22328586876392365,
-0.31772783398628235,
0.3155073... | |
insert against the table since its creation Even a single insert that is rolled back will cause a new data object id to be assigned upon truncation.
---
Flashback (Oracle)
==================
Flashback works across deletes, but a truncate prevents flashback to states prior to the operation.
However, from 11gR2 the F... | [
-0.6686328649520874,
-0.07346218824386597,
0.1986381709575653,
0.050460558384656906,
0.024740921333432198,
0.2216322422027588,
0.1326484978199005,
-0.20929640531539917,
-0.2972088158130646,
-0.25827187299728394,
-0.31563204526901245,
0.6227316856384277,
0.11746686697006226,
-0.061933934688... | |
operation renders unusable indexes usable again. Delete does not.
---
Foreign Keys
============
A truncate cannot be applied when an enabled foreign key references the table. Treatment with delete depends on the configuration of the foreign keys.
---
Table Locking
=============
**Oracle**
Truncate requires an ex... | [
-0.3524905741214752,
-0.03177957981824875,
0.6069276332855225,
-0.04478153586387634,
0.12160702794790268,
0.016243742778897285,
0.2691097855567932,
-0.25795620679855347,
-0.10075724869966507,
-0.309091180562973,
-0.593001663684845,
0.8130277991294861,
-0.33242037892341614,
0.30964466929435... | |
rows that were deleted.
e.g. in an Oracle PL/SQL subprogram you could:
```
DELETE FROM employees_temp
WHERE employee_id = 299
RETURNING first_name,
last_name
INTO emp_first_name,
emp_last_name;
``` | [
-0.2138097733259201,
0.1088733971118927,
0.2668447494506836,
-0.14057298004627228,
0.11984444409608841,
0.5118404030799866,
-0.18759767711162567,
0.04320118948817253,
-0.15766002237796783,
-0.36089763045310974,
-0.0775221735239029,
0.25151368975639343,
-0.45257696509361267,
0.3444601893424... | |
I am working with Reporting Services and Sharepoint, I have an application that leverages reporting services however a client would like our application integrated into sharepoint. Currently we are tightly coupled to the ReportService.asmx webservice which exposes various methods for performing operations. Reporting Se... | [
0.6436008810997009,
0.03882893919944763,
0.21058736741542816,
0.20949997007846832,
-0.22119015455245972,
-0.2878915071487427,
0.1099669560790062,
-0.206339031457901,
-0.3360004127025604,
-0.5163676738739014,
0.26973840594291687,
0.6358677744865417,
-0.1038602888584137,
-0.045323695987463,
... | |
the same objects but they are obviously in a different namespace e.g I have 2 web references - 1 to each service so there is an object MyApplication.ReportService.CatalogItem and another MyApplication.ReportService2006.CatalogItem.
I've tried to use dependency injection to absract the Service out of our application co... | [
-0.005929082632064819,
0.23772983253002167,
0.43001461029052734,
-0.17057782411575317,
-0.2647079825401306,
0.17140212655067444,
0.414413720369339,
-0.1541946530342102,
-0.31711283326148987,
-0.894397497177124,
-0.04221286252140999,
0.3413071036338806,
-0.40949946641921997,
0.4905700087547... | |
Overwrite, DataSourceDefinition Definition, Property[] Properties);
void DeleteItem(string Item);
DataSourceDefinition GetDataSourceContents(string DataSource);
byte[] GetReportDefinition(string Report);
CatalogItem[] ListChildren(string Item);
}
}
```
So I have 2 implementatio... | [
0.13112382590770721,
-0.014153784140944481,
0.46661895513534546,
-0.11755768209695816,
-0.18506886065006256,
0.10863466560840607,
0.47446373105049133,
-0.4374680817127228,
-0.25175338983535767,
-0.5285714268684387,
-0.24327044188976288,
0.5458064675331116,
-0.4607040286064148,
0.3939695954... | |
{
ReportingService _service = new ReportingService();
}
/* SNIP */
}
}
```
and
```
namespace MyApp.Service.Implementation
{
class ReportingService2006Impl : IReportingService
{
ReportingService2006 _service = null;
public ReportingService2006Impl()
... | [
-0.19303512573242188,
0.03410271927714348,
0.4876459538936615,
-0.31130391359329224,
-0.14776581525802612,
-0.0918240025639534,
0.5206127762794495,
-0.12518295645713806,
-0.22861850261688232,
-0.5612879395484924,
-0.22779804468154907,
0.576984703540802,
-0.40692248940467834,
0.407494693994... | |
}
/* SNIP */
}
}
```
So the plan is I can inject these into my ServiceWrapper at run time. However - if you'll notice the interface is tied to the ReportService and some of the methods return objects that are from the web reference e.g. CatalogItem. Thus my project won't build because my implementation... | [
0.43246278166770935,
0.25231537222862244,
0.04458310827612877,
0.11744615435600281,
-0.05516474321484566,
-0.21420052647590637,
0.1961386650800705,
0.07088226079940796,
-0.05571707710623741,
-0.6262083649635315,
0.13496918976306915,
0.6894126534461975,
-0.2313697785139084,
0.06829497963190... | |
the community can add in other vendors' specific difference also. Differences that are common to most vendors can go directly below the headings, with differences highlighted below.
---
General Overview
================
If you want to quickly delete all of the rows from a table, and you're really sure that you want ... | [
-0.15339256823062897,
-0.011563465930521488,
0.6502115726470947,
0.1241159439086914,
-0.06422135978937149,
-0.12142331153154373,
0.254294753074646,
-0.05762043222784996,
-0.22354654967784882,
-0.5033299922943115,
-0.30232301354408264,
0.5879318714141846,
-0.09436671435832977,
0.13623254001... | |
can be rolled back.
**Oracle**
Because a TRUNCATE is DDL it involves two commits, one before and one after the statement execution. Truncate can therefore not be rolled back, and a failure in the truncate process will have issued a commit anyway.
However, see Flashback below.
---
Space reclamation
================... | [
-0.15293367207050323,
0.023914558812975883,
0.14920148253440857,
0.02720087394118309,
-0.07112018764019012,
0.3250545859336853,
0.3711429536342621,
-0.28653982281684875,
-0.12236712127923965,
-0.2525955140590668,
-0.42047926783561707,
0.5629661083221436,
-0.023583007976412773,
0.1735901385... | |
removes all rows.
**Oracle**
When a table is partitioned, the individual partitions can be truncated in isolation, thus a partial removal of all the table's data is possible.
---
Object types
============
Delete can be applied to tables and tables inside a cluster. Truncate applies only to tables or the entire clu... | [
-0.27795079350471497,
0.0198329146951437,
-0.09758001565933228,
0.0744379535317421,
-0.05968023091554642,
0.24167710542678833,
0.1138235330581665,
-0.05513164401054382,
-0.17376041412353516,
-0.3748326003551483,
-0.3485981822013855,
0.2360701858997345,
0.0038168795872479677,
0.267492562532... | |
(Oracle)
==================
Flashback works across deletes, but a truncate prevents flashback to states prior to the operation.
However, from 11gR2 the FLASHBACK ARCHIVE feature allows this, except in Express Edition
[Use of FLASHBACK in Oracle](https://stackoverflow.com/questions/25950145/use-of-flashback-in-oracle... | [
-0.7819847464561462,
-0.03841182217001915,
0.11756937950849533,
0.16189396381378174,
0.07106298208236694,
0.10897067189216614,
0.3991997539997101,
-0.22580190002918243,
-0.2085254043340683,
-0.1203436404466629,
-0.48840048909187317,
0.6470772624015808,
0.12220757454633713,
-0.0645121559500... | |
the configuration of the foreign keys.
---
Table Locking
=============
**Oracle**
Truncate requires an exclusive table lock, delete requires a shared table lock. Hence disabling table locks is a way of preventing truncate operations on a table.
---
Triggers
========
DML triggers do not fire on a truncate.
**Ora... | [
-0.23053161799907684,
-0.11734969168901443,
0.38013508915901184,
0.08681469410657883,
0.16081543266773224,
-0.051267001777887344,
0.07189137488603592,
-0.3037072718143463,
-0.24323545396327972,
-0.25351375341415405,
-0.4691067934036255,
0.7124294638633728,
-0.2578856945037842,
0.3549286425... | |
last_name
INTO emp_first_name,
emp_last_name;
``` | [
-0.24944579601287842,
0.283318430185318,
0.33730435371398926,
-0.3657665252685547,
0.2553214132785797,
0.26821625232696533,
-0.0012227194383740425,
0.2788766622543335,
-0.15288019180297852,
-0.5789378881454468,
-0.5300881862640381,
0.25285568833351135,
-0.13435494899749756,
0.3261040449142... | |
Under what circumstances will the Win32 API function OleGetClipboard() fail and return `CLIPBRD_E_CANT_OPEN`?
More background: I am assisting with a Firefox bug fix. Details here:
[bug 444800 - cannot retrieve image data from clipboard in lossless format](https://bugzilla.mozilla.org/show_bug.cgi?id=444800#c19 "canno... | [
-0.06484976410865784,
0.4685511589050293,
0.38533660769462585,
-0.17202100157737732,
0.3664860129356384,
-0.19257259368896484,
0.6350851655006409,
-0.0800664871931076,
-0.2163141518831253,
-0.5622150897979736,
-0.46222177147865295,
0.7321940660476685,
-0.5714245438575745,
0.105420589447021... | |
it says:
"**OpenClipboard** fails if another window has the clipboard open."
It's an exclusive resource: only one window can have the clipboard open at a time. Basically, if you can't do it, wait a little while and try again. | [
0.2928853929042816,
0.0980638787150383,
0.3689587116241455,
0.06943307816982269,
0.21868321299552917,
-0.17645715177059174,
0.5363661050796509,
0.19313794374465942,
-0.1954478919506073,
-0.5485331416130066,
-0.19832494854927063,
0.22425659000873566,
-0.045600056648254395,
0.101630687713623... | |
I'm dealing with huge glassfish log files (in windows, eek!) and well ... Wordpad isn't cutting it.
Are there any tools out there that can handle these log files in a more intelligent manner? Functionality that would be welcome:
* View all lines of a certain log level (info, warning, severe)
* Show logs between two ... | [
0.3622678816318512,
-0.07836626470088959,
0.26667359471321106,
0.0732739269733429,
-0.01082414761185646,
-0.04810419678688049,
0.6516036987304688,
0.2599700391292572,
-0.6113299131393433,
-0.7517321705818176,
0.0280655138194561,
0.29904624819755554,
0.026500536128878593,
0.1089492365717887... | |
Does the latest version of the enterprise library (<http://msdn.microsoft.com/en-us/library/cc512464.aspx>) come with the updater application block?
Looks like it doesn't:
<http://msdn.microsoft.com/en-us/library/cc511823.aspx>
It's now in the 'Archived Application Blocks' section of the MSDN docs.
<http://msdn.micr... | [
-0.1853625774383545,
-0.08898920565843582,
0.37297871708869934,
0.25171661376953125,
0.42544931173324585,
-0.26180046796798706,
0.04507161304354668,
-0.025804942473769188,
-0.40858665108680725,
-0.605254590511322,
-0.40165582299232483,
0.11497771739959717,
-0.1907351166009903,
0.1321013271... | |
if I call php's `parse_ini_file("foo.ini")`, in what paths does it look for foo.ini ?
the include path? the function's documentation doesn't mention it.
The filename argument for parse\_ini\_file is a standard php filename, so the same rules will apply as opening a file using [fopen](http://us3.php.net/manual/en/funct... | [
-0.14065071940422058,
0.13508790731430054,
0.4604512155056,
-0.4581986367702484,
0.114491768181324,
-0.15413734316825867,
0.295858770608902,
-0.13397657871246338,
-0.07062839716672897,
-0.6058332324028015,
-0.15485577285289764,
0.648803174495697,
-0.5068352818489075,
0.1096750944852829,
... | |
I've been using various javascript frameworks including mootools, jquery, prototype and scriptaculous and have found them all good, but difficult to extend to more complex ideas.
If I am going to knuckle down and learn one, which is the simplest to extend and use whilst staying powerful enough to use in a variety of d... | [
-0.006595176178961992,
-0.09131583571434021,
0.5310378074645996,
-0.06468465924263,
-0.4564260244369507,
0.008147135376930237,
-0.03475954011082649,
0.2826559245586395,
-0.11392664164304733,
-0.6558133363723755,
0.19417980313301086,
0.2192593514919281,
0.1748921275138855,
0.185882642865180... | |
out of nowhere in 2006 searches fro "jquery" shoot up to double the number of the other libraries. The community is actually converging on a single leading product, and it's jQuery.
2. jQuery is very very succinct and readable. I conducted an experiment in which I took existing code (selected at random) written in YUI,... | [
-0.01799195259809494,
-0.01952601969242096,
0.17233692109584808,
0.028277719393372536,
-0.519887387752533,
-0.5207093358039856,
0.2118992954492569,
0.2655986547470093,
0.0796554908156395,
-0.6687453389167786,
-0.07427997887134552,
0.19781595468521118,
-0.035895898938179016,
-0.184991046786... | |
key for selecting items is a brilliant trick which helps to meld together the highly diseparate worlds of HTML, CSS and JavaScript.
4. Documentation: jQuery has excellent documentation, with clear specifications and working examples of every method. It has excellent books (I recommend "jQuery in Action".) The only comp... | [
0.24887433648109436,
-0.23070943355560303,
0.252106636762619,
0.3982781767845154,
-0.5178206562995911,
0.13450081646442413,
0.12139009684324265,
-0.21861492097377777,
-0.25969889760017395,
-0.5787619948387146,
-0.13261878490447998,
0.49989986419677734,
0.24781255424022675,
-0.2421314716339... | |
easy to learn, even for people with experience as a designer, but no experience in coding.
7. Performance. Check out [this](http://mootools.net/slickspeed/), which is published by mootools. It compares the speed of different frameworks. jQuery is not always the VERY fastest, but it is quite good on every test.
8. Plays... | [
0.023317353799939156,
-0.20952582359313965,
0.2701970636844635,
0.20419593155384064,
-0.33366659283638,
-0.3276252746582031,
0.2537793815135956,
-0.024246852844953537,
-0.22361797094345093,
-0.8948389291763306,
0.14961360394954681,
0.6010246276855469,
0.09792077541351318,
-0.60051959753036... | |
is that functions are first-class objects; jQuery makes extensive use of this feature.
10. Plug-ins. jQuery is designed to make it *easy* to write plugins. And there is an enormous community of people out there writing plugins. Anything you want is probably out there. Check out things like [this](http://ui.jquery.com/r... | [
0.5414073467254639,
-0.170071542263031,
0.3681999742984772,
-0.07360371202230453,
0.0076184701174497604,
0.02192016690969467,
0.142973855137825,
0.1452019214630127,
-0.36064040660858154,
-0.6247077584266663,
-0.1412692368030548,
0.7159320116043091,
-0.08341320604085922,
-0.4249823093414306... | |
Is there any way to list all the files that have changed between two tags in CVS?
Every time we do a release we apply a tag to all the files in that release. I want to find all the files that changed between releases.
It would also work if I could find all files that had changed between two dates.
I suppose this comm... | [
0.6550191044807434,
-0.30071115493774414,
0.7582202553749084,
-0.1120191216468811,
0.0840514600276947,
-0.257846474647522,
-0.21527467668056488,
-0.022980812937021255,
-0.38653111457824707,
-0.41328635811805725,
-0.0041989427991211414,
0.7260532975196838,
-0.38498321175575256,
0.1953946799... | |
a script to make report more suitbable for your needs, ex: number of files changed, created deleted etc. As far as I know the most common cvs GUI tools (wincvs and tortoise) do not provide something like this out of the box.
Hope it helps `;)` | [
0.4939025640487671,
-0.25650495290756226,
0.04725281894207001,
0.11151102185249329,
0.01585783064365387,
-0.42510437965393066,
0.38346582651138306,
0.22619982063770294,
0.006357642821967602,
-0.5071790814399719,
-0.14449016749858856,
0.8215128779411316,
-0.2694896161556244,
-0.161692991852... | |
What is the bare minimum I need to put in web.config to get WCF working with REST? I have annotated my methods with [WebGet], but they are not getting the message.
I discovered that you can add the following to the ServiceHost directive in the \*.svc file, and it will automatically setup WebHttpBinding and WebHttpBehav... | [
0.6039807796478271,
-0.015950748696923256,
0.48861637711524963,
-0.2811553180217743,
0.005924424156546593,
-0.33641722798347473,
0.6672561764717102,
-0.2550364136695862,
-0.19979418814182281,
-0.8955586552619934,
0.03938145563006401,
0.703230619430542,
-0.2350544035434723,
0.10091250389814... | |
I'm witting a WCF service for a customer to send part information to our application. We have multiple customers that will have one or many locations, and part information is scoped to each location for the customer. When the customer calls our service they will need to specify the location.
Options that we have cons... | [
0.40413200855255127,
-0.10553406924009323,
0.722436249256134,
0.024917488917708397,
0.26454266905784607,
0.10886471718549728,
0.0777120441198349,
-0.2453952580690384,
-0.0016078210901468992,
-0.6079334020614624,
-0.08242294937372208,
0.08120517432689667,
-0.015779688954353333,
0.3269171118... | |
would contain the part information. Each location would have it's own list of parts.
I'm looking for best practice/standards help in determining how this should be handled. We will have to create other services that will have the customer/location scope as well, and would like to handle this in a consistent manor.
I ... | [
0.44825324416160583,
-0.21869133412837982,
0.23667436838150024,
0.3051934242248535,
0.29633352160453796,
0.1850178837776184,
-0.267480731010437,
-0.3613471984863281,
0.04766787588596344,
-0.2705439329147339,
-0.08586643636226654,
0.26563769578933716,
0.1891327053308487,
0.15104588866233826... | |
username, roles, tenant, or other authentication information - sort of like something you'd put in a request context (e.g., HttpContext). | [
-0.0787280723452568,
-0.111362986266613,
0.350441038608551,
0.24996905028820038,
-0.009808813221752644,
-0.06104642525315285,
0.09770850092172623,
0.20909617841243744,
-0.10234450548887253,
-0.7205151915550232,
-0.32542189955711365,
0.06996799260377884,
0.015026917681097984,
0.119254954159... | |
Google results on this one are a bit thin, but suggest that it is not easily possible.
My specific problem is that I need to renumber the IDs in two tables that are related to each other such that table B has an "table\_a\_id" column in it. I can't renumber table A first because then its children in B point to the old... | [
0.1371636986732483,
0.11229269206523895,
0.5233669877052307,
0.06491227447986603,
0.21611346304416656,
0.1861204355955124,
0.11080343276262283,
0.08405882120132446,
-0.2808709442615509,
-0.7377051711082458,
0.14750553667545319,
0.19595904648303986,
-0.2805633544921875,
0.37008464336395264,... | |
when I could just "start transaction; disable ref integrity; sort IDs out; re-enable ref integrity; commit transaction". Mysql and MSSQL both provide this functionality IIRC so I would be surprised if Postgres didn't.
Thanks!
It does not seem possible. Other suggestions almost always refer to dropping the constraints ... | [
0.05086490511894226,
-0.02542288415133953,
0.3501514792442322,
0.08514361828565598,
-0.03866175562143326,
-0.6141861081123352,
0.22191612422466278,
-0.05457295849919319,
-0.39760032296180725,
-0.6352527141571045,
-0.07045061886310577,
0.3606463670730591,
-0.16574154794216156,
0.11377659440... | |
This question is not so much programming related as it is deployment related.
I find myself conversing a lot with the group in my company whose job it is to maintain our production Windows servers and deploy our code on them. For legal and compliance reasons, I do not have direct visibility or any control over the ser... | [
0.7164926528930664,
0.3080466389656067,
0.012381929904222488,
-0.02697797864675522,
0.10221420973539352,
-0.08851363509893417,
0.14152507483959198,
-0.0013976352056488395,
-0.2115609347820282,
-0.652489960193634,
-0.10253055393695831,
0.5713128447532654,
0.0037593524903059006,
0.0181038863... | |
Administrative Tools matching 1.1 or 2.0, check for the entries in the "Add/Remove Programs" list, check for the existence of the directories under c:\Windows\Microsoft.NET) are flawed (I've seen at least one machine with 2.0 but no 2.0 entries under Administrative Tools - and that method tells you nothing about 3.0+, ... | [
0.26817625761032104,
0.3543729782104492,
0.2343633770942688,
0.27020326256752014,
0.2946780323982239,
-0.33171942830085754,
0.25269120931625366,
0.06714434176683426,
-0.1504839062690735,
-0.6708980202674866,
-0.09111148864030838,
0.5246842503547668,
-0.15930701792240143,
-0.015687569975852... | |
really work well with short maintenance windows) and I have to do the checking "by proxy" since I can't get on the servers directly, what's the foolproof way to tell which version(s) of .NET are installed on a production Windows Server? Preferably some intrinsic way to do so using what the framework installs since it w... | [
0.49028635025024414,
0.041176870465278625,
0.17532828450202942,
0.11282968521118164,
-0.13408403098583221,
-0.3980391323566437,
0.5033208131790161,
-0.030859077349305153,
-0.03731539472937584,
-0.6560492515563965,
0.007449163123965263,
0.6939979195594788,
-0.032237958163022995,
-0.09025314... | |
version of the framework is not really "installed")
**EDIT:** In the absence of a good foolproof intrinsic way to do this built into the Framework(s), does anyone know of a good, lightweight, no-install-required program that can find this out? I can imagine someone could easily write one but if one already exists, tha... | [
0.3490241765975952,
-0.19034920632839203,
0.4366247057914734,
0.10978285223245621,
-0.13403548300266266,
-0.3386531472206116,
0.6842341423034668,
-0.11444613337516785,
-0.14945687353610992,
-0.9050654768943787,
0.1248282641172409,
0.4607798755168915,
-0.1500839740037918,
-0.183198764920234... | |
you have (or don't have) installed, and displays it automatically (then calculates the total size if you chose to download the .NET Framework). | [
0.4730002284049988,
-0.17173245549201965,
0.1237151250243187,
0.022954674437642097,
0.25357285141944885,
-0.3674464523792267,
0.03701690956950188,
-0.011504017747938633,
-0.4202510416507721,
-0.6481620669364929,
-0.3872801959514618,
0.391318142414093,
-0.1565389186143875,
-0.08520846813917... | |
I have a problem with setting the TTL on my Datagram packets. I am calling the setTTL(...) method on the packet before sending the packet to the multicastSocket but if I capture the packet with ethereal the TTL field is always set to 0
Basically you have to set an special system property telling the JVM to use an IPv4 ... | [
0.3091517686843872,
-0.15479429066181183,
0.6614444255828857,
-0.024806885048747063,
-0.152346670627594,
-0.38066133856773376,
0.2813105881214142,
-0.03941360116004944,
-0.23991473019123077,
-0.5655556321144104,
-0.0212402306497097,
0.6649631857872009,
-0.4175514280796051,
0.18065640330314... | |
I'm using the document.form.submit() function for a rather large input form (hundreds of fields, it's an inventory application). I'm calling this after the user has been idle for a certain amount of time and I would like to save any data they've typed. When I try this the page reloads (the action is #) but any new text... | [
0.47867631912231445,
0.007583038881421089,
0.2814338505268097,
-0.24970386922359467,
-0.3119850158691406,
-0.1829996407032013,
0.3283079266548157,
-0.2966194748878479,
0.09197266399860382,
-0.9265429973602295,
0.029567355290055275,
0.5258215665817261,
-0.26831597089767456,
0.18501076102256... | |
view to show the form and a library for tracking idle time)?
Thanks,
Robert
I guess I put the answer here. What I found was that doing this:
setTimeout('frm.submit();', 2000);
caused the page to reload but didn't submit the form. When I did this:
frm.submit();
The form was submitted and the data was passed. I don't k... | [
0.06758210808038712,
-0.06600869446992874,
0.42388784885406494,
0.01803714781999588,
0.024434804916381836,
-0.13912785053253174,
0.3754744827747345,
-0.20585283637046814,
-0.45125895738601685,
-0.25761154294013977,
0.3284916579723358,
0.8600277304649353,
-0.18110594153404236,
-0.1351583153... | |
I have several projects where I need to append strings to a BSTR/CComBSTR/\_bstr\_t object (e.g. building a dynamic SQL statement). Is there an out-of-the-box type in the WinAPI to buffer the concatenation (like StringBuilder in .NET), or do I have to write my own? From what I know about the append methods, they perfor... | [
0.21068121492862701,
0.0073797148652374744,
0.05755127593874931,
0.17078852653503418,
-0.41152864694595337,
-0.24092167615890503,
0.30990132689476013,
0.08727047592401505,
-0.18382644653320312,
-0.5468346476554871,
-0.019072316586971283,
0.5597710013389587,
-0.5267307162284851,
0.104517564... | |
Kind of a newbie question, but I am having problems using SNVKit.
I am using SVNKit in an application to commit changes to files. I have it successfully adding the files and folders to the working copy, but I am having problems committing it to the respository.
The command I am trying to run is 'commit -m "Test Add"... | [
0.31382685899734497,
0.09275485575199127,
0.3112356662750244,
-0.12516963481903076,
0.13726042211055756,
-0.29662835597991943,
0.23634202778339386,
-0.21531148254871368,
-0.4967148005962372,
-0.731932520866394,
-0.015414169989526272,
0.4092029929161072,
-0.23242732882499695,
0.141275554895... | |
part of the commit, yet its child is part of the commit."
What might I be doing wrong?
EDIT: Fixed the directories.
I have it tracked down to a possible bug somewhere. If I don't add a message it works. Time for more digging. Thanks for the pointers. | [
0.4715856611728668,
-0.14999186992645264,
-0.05739234760403633,
0.3786793351173401,
0.3667057454586029,
0.12307581305503845,
0.32511574029922485,
0.22918729484081268,
-0.33518171310424805,
-0.23224091529846191,
0.1690121740102768,
0.2766074240207672,
-0.23781460523605347,
0.067982412874698... | |
I have a C# interface with certain method parameters declared as `object` types. However, the actual type passed around can differ depending on the class implementing the interface:
```
public interface IMyInterface
{
void MyMethod(object arg);
}
public class MyClass1 : IMyInterface
{
public void MyMethod(obj... | [
0.11704953759908676,
0.24801534414291382,
0.3998781442642212,
-0.2737903296947479,
-0.2457277625799179,
0.20225398242473602,
0.28744468092918396,
-0.24984899163246155,
0.16835346817970276,
-0.7823518514633179,
0.0002551318902987987,
0.4360426366329193,
-0.7732856869697571,
0.21376846730709... | |
byte[] obj = (byte[]) arg;
// do something with obj...
}
}
```
The problem with MyClass2 is that the conversion of `byte[]` to and from `object` is [boxing and unboxing](http://msdn.microsoft.com/en-us/library/yz2be5wk.aspx), which are computationally expensive operations affecting performance.
Would sol... | [
-0.2743719816207886,
0.21349044144153595,
0.3064347505569458,
-0.22822485864162445,
-0.3515901267528534,
0.0992286205291748,
0.30133646726608276,
-0.31161466240882874,
-0.12615564465522766,
-0.6835834980010986,
-0.19420942664146423,
0.5775920152664185,
-0.5779450535774231,
0.17233316600322... | |
(MyObject) arg;
// do something with arg...
}
}
public class MyClass2 : IMyInterface<byte[]>
{
public void MyMethod(byte[] arg)
{
// typecast no longer necessary
//byte[] obj = (byte[]) arg;
// do something with arg...
}
}
```
How is this implemented in .NET vs Mono? W... | [
0.10061600804328918,
0.1685303896665573,
0.2574775218963623,
-0.09257212281227112,
-0.2274715006351471,
-0.20782367885112762,
0.3705892264842987,
-0.08850462734699249,
-0.13286347687244415,
-0.7599150538444519,
-0.04531426727771759,
0.4543967545032501,
-0.723717212677002,
0.207819908857345... | |
interfaces will help because the compiler creates a new function of the specific type for each different type used (internally, there are a few cases where it can utilize the same generated function). If a function of the specific type is generated, there is no need to box/unbox the type.
This is why the Collections.... | [
0.01823893003165722,
-0.3759221136569977,
0.05375363677740097,
0.29553377628326416,
-0.5655986666679382,
-0.22146959602832794,
0.061975713819265366,
-0.2260204255580902,
-0.16589029133319855,
-0.8065667152404785,
0.13607768714427948,
0.5181962251663208,
-0.5907224416732788,
-0.180485263466... | |
What advice would you have for someone who wants to start in the BI (Business Intelligence) domain?
I where and what I should start with: Books, Blogs, WebCasts...
What I should pay attention to and what I should stay away from.
Are the Microsoft technologies worth while ?
The MS technology stack is quite good and i... | [
0.6148783564567566,
0.15981632471084595,
0.16713790595531464,
0.4099116921424866,
0.22810344398021698,
-0.20618176460266113,
0.17069591581821442,
0.29297173023223877,
-0.034634169191122055,
-0.6279025673866272,
0.1614113599061966,
0.6422268152236938,
0.4097644090652466,
-0.168968066573143,... | |
quite hard to come up with a realistic toy scenario for this sort of thing.
This means that you have to overcome the chicken-and-egg problem that this poses. One option would be to try to get a job as a B.I. developer somewhere like a government department or other place that has trouble recruiting due to salary const... | [
0.634103000164032,
0.06202623248100281,
-0.3933887183666229,
0.5224636197090149,
0.3908056318759918,
0.29952487349510193,
0.11215481907129288,
0.28232133388519287,
-0.36815059185028076,
-0.5519269704818726,
0.09858837723731995,
0.48282870650291443,
0.09165589511394501,
0.1996878683567047,
... | |
not the lack of technical skills (the technology isn't rocket science). Instead, I think it is the aforementioned chicken-and-egg problem and the fact that the B.I. domain involves customer intimacy to do it well. It lends itself to working in an analyst/programmer mode with direct customer contact (one of the reasons ... | [
0.5109155178070068,
0.23754312098026276,
0.0647425651550293,
-0.09011433273553848,
0.40727439522743225,
-0.1743636578321457,
0.22243057191371918,
0.0659109354019165,
-0.21988633275032043,
-0.4422319233417511,
-0.06301218271255493,
0.6074437499046326,
0.4902263879776001,
-0.1519343107938766... | |
I have two functions, `f` and `g`, which call each other recursively. Unfortunately, when `f` calls `g`, it has not yet been declared, so I get an "unbound variable" error. How can I prototype (or whatever the equivalent vocabulary is) this function in SML/NJ?
Use `and`:
```
fun f x = ...
and g x = ...
```
More inf... | [
0.1046789139509201,
-0.2465561032295227,
0.32452529668807983,
-0.37915903329849243,
-0.12314334511756897,
-0.046464383602142334,
0.376081258058548,
-0.11150457710027695,
-0.015984993427991867,
-0.41532233357429504,
-0.1952093243598938,
0.5774753093719482,
-0.05544276162981987,
0.2120804339... | |
I have a Serializable object which is supposed to hold a java.awt.Image as its member. How should I go about serializing it?
*(Edited from a not so clear first version, sorry.)*
ImageIcon implements Serializable and it can be used to wrap an Image class
<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/ImageIcon.ht... | [
0.3735189139842987,
-0.26618409156799316,
0.4132143557071686,
-0.019033310934901237,
-0.39036938548088074,
-0.23698222637176514,
0.18270394206047058,
-0.054996807128190994,
-0.3807189166545868,
-0.40257659554481506,
0.17240752279758453,
0.4597751796245575,
-0.33348822593688965,
0.114671528... | |
I'm trying to return a dictionary from a function. I believe the function is working correctly, but I'm not sure how to utilize the returned dictionary.
Here is the relevant part of my function:
```
Function GetSomeStuff()
'
' Get a recordset...
'
Dim stuff
Set stuff = CreateObject("Scripting.Dictionary")
... | [
0.28917428851127625,
0.09124398231506348,
0.6128740310668945,
-0.26032349467277527,
0.1585943102836609,
-0.1805194765329361,
0.24112141132354736,
-0.20400884747505188,
0.01156871672719717,
-0.49078628420829773,
-0.14242863655090332,
0.6526369452476501,
-0.26549696922302246,
0.2191455215215... | |
get an error:
```
Microsoft VBScript runtime error: Object required: 'GetSomeStuff'
```
EDIT 2: Trying this in the function:
```
Set GetSomeStuff = stuff
```
Results in this error:
```
Microsoft VBScript runtime error: Wrong number of arguments or invalid property assignment.
```
I wasn't too sure of what was y... | [
0.19934561848640442,
0.44759601354599,
0.41457462310791016,
0.017080694437026978,
0.14923377335071564,
-0.23471282422542572,
0.47370290756225586,
-0.11929436028003693,
-0.12198618054389954,
-0.47615307569503784,
-0.2348397821187973,
0.6016834378242493,
-0.612618088722229,
0.166824117302894... | |
Function
Set d = GetSomeStuff
Wscript.Echo d.Item("A")
Wscript.Echo d.Exists("B")
items = d.Items
For i = 0 To UBound(items)
Wscript.Echo items(i)
Next
``` | [
0.0871858298778534,
-0.059516679495573044,
0.399972140789032,
-0.2526393532752991,
-0.21326999366283417,
0.168436199426651,
0.5079836249351501,
-0.7996086478233337,
0.006074411794543266,
-0.47668376564979553,
-0.5056388974189758,
0.1963915079832077,
-0.48252129554748535,
0.1493975222110748... | |
Which family should I start to learn? (Never did any programming on microcontroller)
Today AVR and PIC are probably the most common microcontrollers among hobbyists. Both have a very wide range of device variants and both can be used to achieve similar results.
For a beginner I would suggest AVR due to various reasons... | [
0.41936013102531433,
0.13264478743076324,
0.240705206990242,
0.3600512444972992,
0.05474785715341568,
-0.09396348148584366,
-0.19101069867610931,
0.052188433706760406,
-0.1910829395055771,
-0.5912503600120544,
-0.050351954996585846,
0.47657880187034607,
0.19963619112968445,
0.4530426859855... | |
ubiquitous GCC is ported to AVR and called [avr-gcc](http://www.avrfreaks.net/wiki/index.php/Documentation:AVR_GCC).
* For getting started all you really need is a handful of basic components, the AVR chip itself and a [breadboard](http://en.wikipedia.org/wiki/Breadboard). Even the programming cable between PC and AVR ... | [
0.4234064817428589,
0.1802217811346054,
0.6141294836997986,
0.1365249902009964,
-0.015843162313103676,
-0.1278185397386551,
-0.4899881184101105,
0.10244371742010117,
-0.46091127395629883,
-0.16796299815177917,
-0.19240301847457886,
0.33503884077072144,
-0.500110387802124,
0.081629827618598... | |
community](http://www.avrfreaks.net/).
PIC is notorious for its peculiar architecture. Many love PIC for this, some hate it. AVR is more straightforward and doesn't seem to cause as much extreme and polar opinions.
Both AVR and PIC are used in many serious commercial applications. However, they are not the only optio... | [
0.47528204321861267,
0.16991671919822693,
-0.10483137518167496,
0.5105193257331848,
-0.2944636046886444,
-0.05663435533642769,
-0.16511185467243195,
0.05463750660419464,
-0.3068723678588867,
-0.48838508129119873,
0.019309064373373985,
0.6170061826705933,
0.12880472838878632,
0.171111539006... | |
with it. Microcontrollers are, really, surprisingly easy to master once you just decide to get going! | [
0.32412710785865784,
0.031576432287693024,
0.0012042408343404531,
0.7757308483123779,
0.006403145845979452,
-0.3781929910182953,
-0.023065656423568726,
0.15411938726902008,
-0.27441713213920593,
0.19884222745895386,
-0.0157877616584301,
0.756477952003479,
0.21482084691524506,
-0.1409277617... | |
When creating a class library in C++, you can choose between dynamic (`.dll`, `.so`) and static (`.lib`, `.a`) libraries. What is the difference between them and when is it appropriate to use which?
Static libraries increase the size of the code in your binary. They're always loaded and whatever version of the code you... | [
0.1439938247203827,
-0.35295331478118896,
0.011174787767231464,
0.28228330612182617,
-0.04079349339008331,
0.06836456805467606,
-0.03682477027177811,
0.068995401263237,
-0.2933174669742584,
-0.5075764656066895,
-0.32622310519218445,
0.38546639680862427,
-0.5814241766929626,
0.1792092323303... | |
the original version.
Additionally dynamic libraries aren't necessarily loaded -- they're usually loaded when first called -- and can be shared among components that use the same library (multiple data loads, one code load).
Dynamic libraries were considered to be the better approach most of the time, but originally ... | [
-0.3749537467956543,
-0.3671421706676483,
0.3065321743488312,
0.3227878212928772,
-0.08094658702611923,
-0.1603003889322281,
0.4350728690624237,
0.3522515892982483,
-0.2718917727470398,
-0.4292607307434082,
-0.3469385504722595,
0.4800108075141907,
-0.6835063695907593,
0.25054532289505005,
... | |
If something goes wrong in a WCF REST call, such as the requested resource is not found, how can I play with the HTTP response code (setting it to something like HTTP 404, for example) in my OperationContract method?
There is a [`WebOperationContext`](http://msdn.microsoft.com/en-us/library/system.servicemodel.web.webo... | [
0.049179449677467346,
-0.13555879890918732,
0.4630524218082428,
0.02439028024673462,
0.3393309712409973,
-0.38475242257118225,
0.2945484220981598,
-0.19576677680015564,
-0.3768560290336609,
-0.7421673536300659,
-0.44975152611732483,
0.5265019536018372,
-0.22232586145401,
0.2290130406618118... | |
Linux supports sending an arbitrary Posix-Signal such as `SIGINT` or `SIGTERM` to a process using the `kill`-Command. While `SIGINT` and `SIGTERM` are just boring old ways to end a process in a friendly or not-so-friendly kind of way, `SIGQUIT` is meant to trigger a core dump. This can be used to trigger a running Java... | [
0.11624635756015778,
-0.4010797441005707,
0.41259875893592834,
-0.0025974162854254246,
-0.1550181806087494,
-0.6308148503303528,
-0.0758378654718399,
0.4131299555301666,
-0.29751673340797424,
-0.48334410786628723,
-0.23177289962768555,
0.6188940405845642,
-0.7319884300231934,
-0.1081354916... | |
priority. (You can try this out yourself by using `kill -3 <VM-PID>`.)
Note that you can also register your own signal handlers using the (unsupported!) `Signal` and `SignalHandler` classes in the `sun.misc`-package, so you can have all kinds of fun with it.
*However, I have yet to find a way to send a signal to a Wi... | [
0.11081302911043167,
-0.4347553849220276,
0.21382811665534973,
0.29143282771110535,
-0.11319677531719208,
-0.22245916724205017,
0.0594901517033577,
-0.22217097878456116,
-0.48768138885498047,
-0.41852226853370667,
-0.17479868233203888,
0.4366840124130249,
-0.11813536286354065,
0.0008550522... | |
the Cygwin `kill` executable, but while it can end Windows processes using the appropriate Windows API, I could not send a `SIGBREAK` (the Windows equivalent to `SIGQUIT`) with it; in fact I think the only signal it is able to send to Windows processes is `SIGTERM`.
So, to make a long story short and to repeat the hea... | [
0.3028269112110138,
-0.08434275537729263,
-0.01437199953943491,
0.060024600476026535,
-0.23500856757164001,
-0.5226033926010132,
0.2669300138950348,
0.1915816068649292,
0.03826335072517395,
-0.4967089891433716,
-0.026445195078849792,
0.4860217273235321,
-0.39414480328559875,
0.300684809684... | |
you want something else, keep reading (though I may be wrong on some of the specifics below - it's been eons since I last developed a Windows program in C using only the WinAPI and Charles Petzold's excellent books "Programming for Windows" as a guide).
On Windows you don't properly have "signals", what functions WinM... | [
0.44284045696258545,
-0.13983793556690216,
0.4133906662464142,
0.026953017339110374,
0.157918781042099,
-0.34916073083877563,
0.25828656554222107,
0.08088060468435287,
-0.17058901488780975,
-0.6222198605537415,
-0.19063211977481842,
0.5985636711120605,
-0.4601519703865051,
0.13185682892799... | |
out of the main message processing loop, WinMain (not WinProc) receives WM\_QUIT. Your program should respond to all these as expected - you can actually develop an "unclosable" application by not doing what it should upon receiving a WM\_CLOSE.
When user selects the task from Windows Task Manager and clicks "End Task... | [
0.055087052285671234,
0.01654372736811638,
0.5476729869842529,
0.08725271373987198,
0.24351361393928528,
-0.29333290457725525,
0.34637171030044556,
-0.1259622722864151,
-0.2966209352016449,
-0.5831392407417297,
-0.25225627422332764,
0.5689714550971985,
-0.20728737115859985,
0.4791836738586... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.