text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Is there a way to make a DataGridView have no cell selected? I notice even when it loses focus() it has a at least one active cell. Is there another mode that allows this? or some other trick?
DataGridView.CurrentCell property can be used to clear the focus rectangle.
> You can set this property
> (DataGridView.Curre... | [
0.17870073020458221,
-0.6435399055480957,
0.72231525182724,
0.10584665834903717,
0.0356515534222126,
-0.04867513105273247,
-0.1634874939918518,
-0.33359187841415405,
-0.2930905818939209,
-0.6973572969436646,
-0.2017454355955124,
0.49176687002182007,
-0.45283645391464233,
0.0742539539933204... | |
What would be the simplest way to create some graphical representations of the usage of electricity by month?
The best way is to use [JFreeChart](http://www.jfree.org/jfreechart/) to produce an image from your data, and then display the image in the jsp. | [
0.7893224954605103,
-0.3829715847969055,
0.6094557046890259,
0.4382489025592804,
-0.21275918185710907,
-0.38222044706344604,
-0.014201577752828598,
-0.1919044405221939,
-0.04816592484712601,
-0.1508757323026657,
0.05054333060979843,
0.21440285444259644,
-0.06372369825839996,
-0.45257556438... | |
My app (winforms .net 2.0 / vs2008) works fine on my dev machine but on one of test machines i'm getting this exception.
Has anybody encountered something similar?
```
************** Exception Text **************
Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ... | [
-0.05105360224843025,
0.18899114429950714,
0.5086148977279663,
0.04908505454659462,
-0.09957694262266159,
-0.13736100494861603,
0.6580843329429626,
-0.06103425472974777,
-0.15115214884281158,
-0.9041987657546997,
-0.1831425130367279,
0.731533944606781,
-0.1768830567598343,
0.00565094733610... | |
context)
at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.ReadReport()
at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.Phase1(CatalogItemContext reportContext, Byte[] definition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, String& descript... | [
-0.2777872085571289,
0.3407566547393799,
0.4918821454048157,
-0.12299162149429321,
-0.07530580461025238,
0.32437801361083984,
0.23105350136756897,
-0.5057265758514404,
-0.14633183181285858,
-0.6009620428085327,
-0.41592881083488464,
0.42610305547714233,
-0.24294711649417877,
0.089699223637... | |
reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions)
at Microsoft.Reporting.ReportCompiler.CompileReport(CatalogItemContext context, Byte[] reportDefinition, Boolean generateEx... | [
-0.1127592995762825,
0.16300009191036224,
0.2872034013271332,
0.19551223516464233,
-0.16038872301578522,
-0.0100990766659379,
0.38487565517425537,
-0.3738071322441101,
-0.1222253143787384,
-0.6320534944534302,
-0.4020535945892334,
0.3910715878009796,
-0.1551087200641632,
-0.034903421998023... | |
XXX.Helpers.Report.PrintFavs(List`1 list, String header, String filename) in C:\Data\projects\workdir_cpv\Src\Classes\Helpers\Report.cs:line 112
```
The value after the hash is not transmitted to the server. There's another SO question about that somewhere, but I'm having trouble finding it. Likewise it's taken me a w... | [
-0.10513772070407867,
0.12483616918325424,
0.2401074767112732,
0.22324471175670624,
-0.14042630791664124,
-0.053334612399339676,
0.050523824989795685,
0.041375380009412766,
-0.16418442130088806,
-0.6915848851203918,
-0.4334140717983246,
0.052147407084703445,
-0.17271138727664948,
0.3988869... | |
URI
> to the server, but does not send the
> fragment.
I assume you want to respond to it on the server side rather than the browser side? (Given that you're asking about doing it in C#...) | [
0.10966465622186661,
0.12588812410831451,
0.1508537381887436,
0.1149095818400383,
-0.3911176323890686,
-0.038759563118219376,
0.2078757882118225,
0.2960035502910614,
0.17449966073036194,
-0.7025872468948364,
-0.18532486259937286,
0.14657270908355713,
-0.2042984962463379,
0.4398378431797027... | |
In [CAML](http://msdn.microsoft.com/en-us/library/ms462365.aspx) I can query SharePoint Listitems using the "Contains"-element, but there is no "does not contain"-element I could use.
So what is the best way to get the items that do not contain a string? Is there a better way than to loop through each and every item?
... | [
0.27152156829833984,
-0.15709835290908813,
0.5246552228927612,
0.3204285800457001,
-0.009868821129202843,
-0.6395823359489441,
-0.11008642613887787,
0.06094787269830704,
-0.32382312417030334,
-0.5149825811386108,
0.02632439322769642,
0.477120578289032,
-0.1950809806585312,
0.17270661890506... | |
I know, that should have a smaller impact on the database, but it still smells really bad.
For small list it does not matter, for larger lists i'd use the SQL Server Profiler to see what the impact is. | [
0.7571350932121277,
0.3363310694694519,
0.11584370583295822,
-0.01944085955619812,
-0.12207049131393433,
-0.39795300364494324,
0.07582114636898041,
0.3478110134601593,
-0.3115219473838806,
-0.5878278613090515,
0.5307803750038147,
0.29054611921310425,
-0.30450138449668884,
0.288416415452957... | |
I am attempting to get a DropDownList to AutoPostBack via an UpdatePanel when the selected item is changed. I'm going a little stir-crazy as to why this isn't working.
Does anyone have any quick ideas?
ASPX page:
```
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" ChildrenAsTriggers="true" > ... | [
0.10655161738395691,
-0.2955634891986847,
0.5516365766525269,
0.17497998476028442,
0.1677609235048294,
0.32534605264663696,
0.3103533387184143,
-0.25720372796058655,
-0.32728004455566406,
-0.5742713809013367,
-0.30138856172561646,
0.4164523184299469,
-0.33901748061180115,
-0.23346114158630... | |
I have it working now. Very weird. All it took was a restart of Visual Studio. This is the kind of thing that frightens me as a developer ;) I think I've seen similar before, where VS gets "out of sync" wrt the assembly it's running.**
**FYI I am running VS 2008 Web Developer Express.**
**Thanks to those that answere... | [
0.2601452171802521,
-0.12485294044017792,
0.5528398752212524,
-0.023696398362517357,
-0.2135588377714157,
-0.17044049501419067,
0.5286850333213806,
-0.08948979526758194,
-0.2538015842437744,
-0.8076134324073792,
0.10889515280723572,
0.6707175374031067,
0.020422184839844704,
-0.063305325806... | |
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem>item 1</asp:ListItem>
<asp:ListItem>item 2</asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:Updat... | [
0.019444046542048454,
-0.26962998509407043,
0.5691747665405273,
0.016674736514687538,
-0.2445824146270752,
0.12338921427726746,
0.18764571845531464,
-0.4944360852241516,
-0.31094902753829956,
-0.42197754979133606,
-0.24028083682060242,
0.4478934705257416,
-0.2700763940811157,
-0.0280075073... | |
there was something off, but the exception was thrown every time.
You might want to try the exception route to see if the postback is happening and this isn't a debugger issue.
* One issue might be with Vista and not running Visual Studios as administrator. I know that has a tendency to not allow debugging.
* Maybe... | [
0.7242271900177002,
0.11274810135364532,
0.129474475979805,
0.024611474946141243,
-0.3819969594478607,
-0.28092002868652344,
0.17754507064819336,
0.15634797513484955,
-0.6656768321990967,
-0.5444127917289734,
0.04825162515044212,
0.49967890977859497,
-0.06447065621614456,
0.441134899854660... | |
I need advice regarding subselect performance in MySQL. For a reason that I can't change, I am not able to use JOIN to create quesry filter, I can only add another AND clause in WHERE.
What is the peformance of:
```
select tasks.*
from tasks
where
some criteria
and task.project_id not in (select id from project ... | [
-0.012866663746535778,
-0.10230762511491776,
0.1051969826221466,
0.047095105051994324,
-0.17320077121257782,
0.005131942685693502,
0.21451181173324585,
-0.2138948291540146,
0.03276032581925392,
-0.9725551605224609,
0.14527903497219086,
0.5186349153518677,
-0.19556917250156403,
-0.116649441... | |
way to achieve the same result without subselects if I can't change anything but and filter?
I believe that the second is more efficient as it requires only one select, but to be sure, you should EXPLAIN each query and check the results.
```
EXPLAIN select tasks.*
from tasks
where
some criteria
and task.project_i... | [
-0.17907746136188507,
-0.190252885222435,
-0.0420650914311409,
0.32902055978775024,
0.04682207852602005,
-0.010540963150560856,
0.2899249494075775,
-0.45905375480651855,
0.015206106007099152,
-1.0196278095245361,
-0.20091380178928375,
0.45799124240875244,
-0.3343089520931244,
-0.1161029860... | |
I'm working on an "analytics" page for a rails app. The analytics page does not persist any data of its own (it's very primitive at this point) but does utilize metrics that I'm grabbing from the DB (via the aggregate expressions built into ActiveRecord). Aside from gathering and presenting the metrics the only other r... | [
0.30436331033706665,
0.23404526710510254,
0.0009096496505662799,
0.07085099816322327,
-0.08242099732160568,
-0.0670599713921547,
0.3777775168418884,
0.04668549448251724,
-0.018173037096858025,
-0.6183732748031616,
0.29411596059799194,
0.3279384970664978,
-0.00820358470082283,
0.01374843623... | |
the start and end filter dates I begin thinking that I should put this data into its own model. If I do move all of my "data" into a model should I just use a plain object with attr\_accessors or is there a more appropriate base class I could use for non-persistent data? I'm familiar enough with a MVC architecture to k... | [
0.08421206474304199,
-0.2001284956932068,
0.28385916352272034,
0.2774086892604828,
-0.10169254243373871,
-0.24369066953659058,
-0.11362858861684799,
0.2616552710533142,
-0.3320850729942322,
-0.5647442936897278,
0.39074060320854187,
0.3054124116897583,
-0.13783028721809387,
0.37929454445838... | |
model. There's a good Railscast about that :
<http://railscasts.com/episodes/121-non-active-record-model>
Hope that helps, | [
0.05616198107600212,
-0.6785366535186768,
0.3441137671470642,
0.5750914812088013,
0.21131008863449097,
-0.4020426273345947,
0.47263598442077637,
0.19379325211048126,
-0.3654332160949707,
-0.6908199787139893,
0.02404482662677765,
0.3391297459602356,
0.11321963369846344,
-0.12154471129179001... | |
My installer build "signs" a DLL using a Code Signing certificate during the build process.
I've noticed that if I try to build twice in succession, the second build fails because the DLL is already signed so signcode chokes. Obviously I can fix this by signing a copy of the DLL in the build, but the problem intrigue... | [
0.33512669801712036,
0.16125532984733582,
0.5912567973136902,
-0.49411508440971375,
0.14057336747646332,
-0.30313313007354736,
0.4294981062412262,
-0.08231353759765625,
-0.1852203607559204,
-0.583407998085022,
-0.3081330358982086,
0.5080615878105164,
-0.3612474799156189,
0.1471907347440719... | |
OK - I have an interesting one here. I'm working on a tetris clone (basically to "level-up" my skills). I was trying to refactor my code to get it abstracted the way I wanted it. While it was working just fine before, now I get a segmentation fault before any images can be blitted. I've tried debugging it to no avail.
... | [
0.5370309352874756,
0.14892816543579102,
0.21875180304050446,
-0.1010582372546196,
-0.1549423187971115,
-0.1819480061531067,
0.19708913564682007,
0.20050737261772156,
-0.24399009346961975,
-0.6920049786567688,
0.014865572564303875,
0.4279811978340149,
-0.1344689130783081,
0.149622350931167... | |
to the person that can tell me what I'm doing wrong.
Edit: As far as I can tell, what I have now and what I had before are logically the same, so I wouldn't think that what I have now would cause a segmentation fault. Just run an svn revert on the working copy, recompile and you can see that it was working...
Look at ... | [
0.21024082601070404,
0.07085195928812027,
0.6445159316062927,
-0.02474549040198326,
-0.12112902849912643,
0.06618937849998474,
0.2680996060371399,
-0.05424976348876953,
-0.31144317984580994,
-0.8207129836082458,
-0.15574197471141815,
0.45642727613449097,
-0.23609358072280884,
-0.0483193993... | |
tempSurface because of this line:
```
surface = tempSurface;
```
and not the surface returned by SDL\_DisplayFormatAlpha(). Since you free tempSurface, surface is now pointing to invalid memory. To fix, simply remove the second line in the else block. | [
-0.18156778812408447,
0.22687236964702606,
0.610072910785675,
-0.1682821810245514,
0.13420134782791138,
0.059118811041116714,
0.3758530020713806,
0.14317587018013,
-0.17861248552799225,
-0.8876431584358215,
-0.33167722821235657,
0.36071282625198364,
-0.42263728380203247,
0.1006126105785369... | |
Here is some sample VBA code:
```
Sub Macro1()
Dim pt As PivotTable
Set pt = ActiveSheet.PivotTables("SomePivotTable")
'Set colOfFields = pt.PivotFields
End Sub
```
The third line is incomplete/broken. What is the correct way to get access to collection of all the fields in a PivotTable? I need to be a... | [
-0.11150726675987244,
-0.06470294296741486,
0.5597196817398071,
-0.3156623840332031,
-0.24449588358402252,
0.08827430009841919,
0.023900961503386497,
-0.5517029762268066,
-0.2897382974624634,
-0.07273407280445099,
-0.07672100514173508,
0.3192058801651001,
-0.4503186345100403,
-0.3164055049... | |
' Name of the pivot table comes from right clicking on the pivot table,
' Table Options..., Name field.
Set pt = ActiveSheet.PivotTables("PivotTable1")
Set col = pt.PivotFields
For Each c In col
Debug.Print c.Name
Next
End Sub
``` | [
-0.23183873295783997,
0.02088969200849533,
0.8939439058303833,
-0.22261685132980347,
-0.142283633351326,
0.2125621736049652,
-0.17022806406021118,
-0.19416850805282593,
-0.28869619965553284,
-0.14937837421894073,
-0.2289561629295349,
0.017102347686886787,
-0.625534176826477,
0.071862123906... | |
Ok let me be honest, I haven't written more than 10 unit tests in my life probably.
I am embarking on a new project, and being the sole programmer means **I should be scared ... very scared**.
The idea that I can **pseudo guarantee** that my software works brings about a sense of joy.
Sure I will miss a ton of case... | [
0.8603200912475586,
0.4480809271335602,
0.08888302743434906,
-0.001596636138856411,
0.1293785721063614,
-0.0900040939450264,
0.9173632264137268,
0.012429987080395222,
-0.3752720057964325,
-0.42751309275627136,
0.25757840275764465,
0.6232815384864807,
0.3027544617652893,
0.14917469024658203... | |
idea when it will**.
How has unit testing made your life better (or has it?), despite the rest of your team **not jumping on the bandwagon**?
The far biggest value that unit test have on my project is **confidence**. With that confidence it's much easier to add new features that weren't planned at the beginning and to... | [
0.7118495106697083,
-0.15678970515727997,
-0.060513678938150406,
0.2081616073846817,
0.08643676340579987,
-0.07666745036840439,
0.31550684571266174,
-0.236851304769516,
-0.15340688824653625,
-0.9618614912033081,
0.18316225707530975,
0.5336209535598755,
0.4634932577610016,
-0.04201113432645... | |
My previous job involved maintenance and programming for a very large database with massive amounts of data. Users viewed this data primarily through an intranet web interface. Instead of having a table of user accounts, each user account was a real first-class account in the RDBMS, which permitted them to connect with... | [
0.5347620248794556,
0.32197102904319763,
-0.29575780034065247,
0.20305116474628448,
0.2752990424633026,
-0.04489031061530113,
0.023936083540320396,
0.024776017293334007,
-0.25094953179359436,
-0.1974395215511322,
0.04173672944307327,
0.7113980054855347,
-0.12578366696834564,
-0.00672394735... | |
it always better to define your own means of handling user accounts, your own permissions, your own application security logic, and only hand out RDBMS accounts to power users with special needs?
I don't agree that using the database for user access control is as dangerous others are making it out to be. I come from th... | [
0.5088977813720703,
0.3969740867614746,
-0.22771815955638885,
0.09307283163070679,
-0.03945709019899368,
-0.21394109725952148,
-0.15141844749450684,
-0.165119469165802,
-0.18062002956867218,
-0.3507252037525177,
0.30485638976097107,
0.5910468697547913,
-0.1083112359046936,
-0.0236894134432... | |
the database. On one system we had 4 different applications (managed by different teams and in different languages) hitting the same database tables. We were able to declare that only users with the Manager role were able to insert/update/delete data in a specific table. If we didn't manage it through the database, the... | [
-0.2079041302204132,
0.1664588749408722,
0.06985080242156982,
0.4447444975376129,
0.1175810918211937,
0.09089925140142441,
0.16563619673252106,
-0.1021588072180748,
-0.5321740508079529,
-0.42741554975509644,
-0.015021168626844883,
0.5226298570632935,
-0.3688853085041046,
-0.033727269619703... | |
is that we did not need to worry about storing user passwords in a database table (and all the restrictions that come with it).
I don't agree that "Database user accounts are inherently more dangerous than anything in an account defined by your application". The privileges required to change database-specific privileg... | [
-0.049685537815093994,
0.194102942943573,
-0.1619855910539627,
0.56280916929245,
0.3529932498931885,
-0.08943295478820801,
0.26126211881637573,
0.03327012434601784,
-0.3348902463912964,
-0.2483808398246765,
0.2278418242931366,
0.5589066743850708,
-0.04846430942416191,
-0.13513998687267303,... | |
that we had that many users).
Application authorization is not a trivial problem. Many custom solutions have holes that hackers can easily exploit. The big names like Oracle have put a lot of thought and code into providing a robust application authorization system. I agree that using Oracle security doesn't work for... | [
0.5296505093574524,
0.42055001854896545,
0.01218249648809433,
0.2874852418899536,
0.21532905101776123,
-0.15717999637126923,
0.2113322764635086,
0.051632560789585114,
-0.22479967772960663,
0.03045886941254139,
0.15828754007816315,
0.5323255062103271,
-0.14719755947589874,
0.059491645544767... | |
I'm trying to create a function which takes an array as an argument, adds values to it (increasing its size if necessary) and returns the count of items.
So far I have:
```
int main(int argc, char** argv) {
int mSize = 10;
ent a[mSize];
int n;
n = addValues(a,mSize);
for(i=0;i<n;i++) {
//Pr... | [
-0.02442760579288006,
-0.0651835948228836,
0.3218769431114197,
-0.33827969431877136,
-0.040175434201955795,
0.5306947231292725,
0.321338415145874,
-0.42070120573043823,
-0.3208467662334442,
-0.4828041195869446,
-0.13120760023593903,
0.4777471721172333,
-0.3781687915325165,
0.27151548862457... | |
{ //Loop to add items to array
if(i>=size-1) {
size = size*2;
a = realloc(a, (size)*sizeof(ent));
}
//Add to array
i++;
}
return i;
}
```
This works if mSize is large enough to hold all the potential elements of the array, but if it needs | [
0.03934023529291153,
-0.28864586353302,
0.1750570833683014,
-0.31108859181404114,
0.05070541799068451,
0.33417075872421265,
0.4206947684288025,
-0.6923118829727173,
-0.31789031624794006,
-0.32700517773628235,
-0.25805148482322693,
0.2677558362483978,
-0.4415079355239868,
0.0129934754222631... | |
resizing, I get a Segmentation Fault.
I have also tried:
```
int main(int argc, char** argv) {
...
ent *a;
...
}
int addValues(ent *a, int mSize) {
...
a = calloc(1, sizeof(ent);
//usual loop
...
}
```
To no avail.
I assume this is because when I call realloc, the copy of 'a' is pointe... | [
-0.028271829709410667,
-0.12750563025474548,
0.5414406657218933,
-0.20061877369880676,
0.007164808455854654,
0.2613719403743744,
0.38460496068000793,
-0.08595576137304306,
-0.4737224876880646,
-0.518309473991394,
-0.27481457591056824,
0.6297507286071777,
-0.24876338243484497,
0.59395480155... | |
in C? Should I be implementing a linked list to deal with these?
The main problem here is that you're trying to use realloc with a stack-allocated array. You have:
```
ent a[mSize];
```
That's automatic allocation on the stack. If you wanted to use realloc() on this later, you would create the array on the heap usin... | [
0.049571312963962555,
0.0979914665222168,
0.24257023632526398,
-0.16943152248859406,
0.03481511026620865,
-0.23281149566173553,
-0.05993765965104103,
-0.22510913014411926,
-0.3382881283760071,
-0.27719077467918396,
-0.347515732049942,
0.8939497470855713,
-0.5788689255714417,
-0.19728775322... | |
fix this.
Really, though, if you are writing dynamic arrays in C, you should try to use OOP-ish design to encapsulate information about your arrays and hide it from the user. You want to consolidate information (e.g. pointer and size) about your array into a struct and operations (e.g. allocation, adding elements, rem... | [
-0.15582536160945892,
-0.2651103734970093,
0.12987588346004486,
0.1634310483932495,
0.045490752905607224,
0.22553113102912903,
-0.24831733107566833,
-0.11808574199676514,
-0.11499310284852982,
-0.6509802341461182,
-0.1775262951850891,
0.4627971947193146,
-0.5123485922813416,
-0.03630845621... | |
dynarray
dynarray *dynarray_create();
// add an element to dynarray and adjust its size if necessary
void dynarray_add_elt(dynarray *arr, elt value);
// return a particular element in the dynarray
elt dynarray_get_elt(dynarray *arr, int index);
// free the dynarray and its data.
void dynarray_free(dynarray ... | [
0.03885912522673607,
-0.2133297324180603,
-0.03142591565847397,
0.025900164619088173,
0.30338287353515625,
0.10495618730783463,
-0.14890174567699432,
-0.4570460915565491,
-0.20861904323101044,
-0.6076358556747437,
-0.2788333594799042,
0.4085562229156494,
-0.27847856283187866,
0.38809105753... | |
My first question on StackOverflow...
Does anybody know a way of viewing the reference/documentation manual of a language through CodeBlocks? Specifically for C/C++.
Example:
Say I want to look up the reference for strncpy(). In a very old Borland system (which we use at school) I would write the word and middle-c... | [
0.23159050941467285,
0.21142932772636414,
0.09946779906749725,
0.1923658847808838,
-0.02829032391309738,
-0.31763219833374023,
0.11613183468580246,
-0.10541439056396484,
-0.4963702857494354,
-0.3037083148956299,
0.30660825967788696,
0.5199489593505859,
-0.08934511244297028,
0.1128246039152... | |
being online?
Regards!
Yes, it is possible. I'm not sure about the help files themselves though.
The procedure seems to be documented [here.](http://wiki.codeblocks.org/index.php?title=Using_devhelp_as_a_help_viewer)
from the forums.
Re: F1 - help and function reference
« Reply #1 on: September 15, 2008, 02:07:59 p... | [
-0.09947750717401505,
0.1239517480134964,
0.9376410841941833,
0.2435864806175232,
-0.37903687357902527,
-0.02514282986521721,
0.49002984166145325,
0.0062347836792469025,
-0.22547516226768494,
-0.6037911176681519,
-0.24097079038619995,
0.9121940732002258,
0.028935333713889122,
-0.1789754033... | |
cppreference.com web pages.
Regards,
starmaker | [
0.34560543298721313,
0.0028699098620563745,
0.640903890132904,
0.385428786277771,
0.07265050709247589,
-0.1982312798500061,
0.29417094588279724,
0.16762050986289978,
-0.3528037965297699,
-0.14954516291618347,
-0.20994555950164795,
0.40567171573638916,
0.13563236594200134,
0.146623551845550... | |
I need to add some intervals and use the result in Excel.
Since
```
sum(time.endtime-time.starttime)
```
returns the interval as "1 day 01:30:00" and this format breaks my Excel sheet, I thought it'd be nice to have the output like "25:30:00" but found no way to do it in the PostgreSQL documentation.
Can anyone... | [
0.0864519402384758,
-0.09884888678789139,
0.706597626209259,
0.022671375423669815,
0.18629488348960876,
0.07661125063896179,
-0.06345639377832413,
-0.12203942239284515,
0.005196201149374247,
-0.72740638256073,
-0.20651623606681824,
0.5973069667816162,
-0.09857774525880814,
-0.0104580856859... | |
I'm writing a Linux module and getting:
```
Unable to handle kernel NULL pointer dereference
```
What does it mean?
Sounds like a pointer which currently has the NULL value (zero) is being dereferenced. Assign an address to the pointer before dereferencing it.
e.g.
```
int x = 5;
int * x_ptr = NULL;
x_ptr = &x; /... | [
0.1927737593650818,
0.10706353932619095,
0.14928627014160156,
-0.2005711942911148,
-0.027714600786566734,
-0.10019489377737045,
0.4622292220592499,
0.01980426348745823,
-0.08859517425298691,
-0.5175197720527649,
-0.23849640786647797,
0.6442326903343201,
-0.3439961075782776,
0.2640565335750... | |
Are there any alternatives to JSTL? One company I worked for 3 years ago used JSTL and custom tag libraries to separate presentation from logic. Front-end developers used EL to do complex presentation logic, generate layouts in JSP pages and it worked out great. Perhaps new technologies have come out. Anything better t... | [
0.18306012451648712,
-0.19230395555496216,
0.2611479163169861,
0.2688232362270355,
-0.45445531606674194,
-0.3338398039340973,
-0.343872606754303,
-0.15529808402061462,
-0.14009591937065125,
-0.6624023914337158,
0.16929621994495392,
0.8012655973434448,
-0.3503108620643616,
-0.10629131644964... | |
that it was designed by the authors of JSP, with a solid understanding of JSP and servlets. Third-party taglibs are often created by some guy who didn't want to RTFM and decided to "start from scratch" and come up with "something simpler". However, JSTL wasn't intended to do everything. It can be used very successfully... | [
0.32357436418533325,
0.0769277885556221,
0.16813988983631134,
-0.016514481976628304,
-0.03757575899362564,
-0.5038520693778992,
0.09899608045816422,
-0.07384032011032104,
0.17582201957702637,
-0.3883982002735138,
-0.049101028591394424,
0.518292248249054,
-0.7231483459472656,
-0.28047075867... | |
lot of logic to get stuffed into the presentation layer. Being part of the Java EE spec, it also enjoys wide tool support. For example, many IDEs can refactor dependent EL expression when you rename a property.
Struts2 introduced OGNL to a wider audience. OGNL is a throwback to the evil days of scriptlets. It is more ... | [
0.21758711338043213,
0.0785389393568039,
0.20148736238479614,
-0.10468551516532898,
-0.5599876046180725,
-0.47811225056648254,
0.18913142383098602,
-0.04528306424617767,
-0.008679209277033806,
-0.4465574026107788,
0.1443115770816803,
0.6118082404136658,
-0.48424991965293884,
0.029162669554... | |
and my greatest disappointment in Struts2 was the failure to jettison this dreck. Even WebWork founder, Patrick Lightbody, [acknowledges that adoption was a mistake.\*](https://news.ycombinator.com/item?id=6081428) Luckily, it can only be used in limited contexts, like OGNL-aware tags (and some other surprising places)... | [
0.3204303979873657,
0.08819201588630676,
0.09019023925065994,
-0.01803123764693737,
-0.2055513560771942,
-0.29894542694091797,
0.32416832447052,
-0.2362983077764511,
-0.051488008350133896,
-0.3183803856372833,
-0.1693078726530075,
0.4328354299068451,
-0.5039737820625305,
-0.156974703073501... | |
attack on the Struts2-based Apple Developer site, Patrick Lightbody said, "Sadly, I feel some responsibility for this pretty major security hole. There have been a few like this and they are all rooted in the fact that almost 9 years ago I made the (bad) decision to use OGNL as WebWork's expression language. I did so b... | [
0.48971644043922424,
0.22306036949157715,
-0.18145139515399933,
-0.28946056962013245,
-0.4474479854106903,
0.15896184742450714,
0.6475930213928223,
-0.09388714283704758,
0.03445196896791458,
0.0017475252971053123,
-0.39949819445610046,
0.14372968673706055,
-0.5745071768760681,
0.1100305020... | |
I'm using Office Automation in .NET. It is leaving behind the excel.exe program. I know the fix - it is all about explicitely defining the variables. Once defined, I can properly de-allocate the ram and the GC will clean them up.
The problem is, I have literally thousands of lines of code to go through. So I'm wonderi... | [
0.32317373156547546,
0.2871846854686737,
-0.024476872757077217,
0.1098058894276619,
-0.0004152210894972086,
0.1489809900522232,
0.39262086153030396,
0.17167943716049194,
-0.3574647605419159,
-0.7516319155693054,
-0.19456619024276733,
0.6066609025001526,
-0.04559580609202385,
-0.01485959067... | |
Although I know how to build a DOM the long, arduous way using the DOM API, I'd like to do something a bit better than that. Is there a nice, tidy way to build hierarchical documents with, say, an API that works something like Hibernate's Criteria API? So that I can chain calls together like this, for example:
```
Doc... | [
0.46084684133529663,
0.024018341675400734,
0.37199485301971436,
0.06822443753480911,
-0.007443631999194622,
-0.23075181245803833,
0.3689957857131958,
-0.41526806354522705,
-0.0449281707406044,
-0.6083643436431885,
-0.3114035129547119,
0.6059236526489258,
-0.09808515012264252,
0.21809698641... | |
.addAttribute ("attr-name","attr-value"),
doc.newElement ("other_subnode"));
```
Ideally, this would result in XML like this:
```
<root>
<subnode>
<sub-subnode attr-name = "attr-value">some element text</sub-subnode>
<other_subnode />
</root>
```
Basically, I'd like something where the Java itself isn'... | [
0.14821095764636993,
0.02448611706495285,
0.27868226170539856,
-0.12991118431091309,
-0.1316574513912201,
-0.17774270474910736,
0.04275302588939667,
-0.3769075870513916,
-0.2519710958003998,
-0.6390948295593262,
-0.025830887258052826,
0.29125308990478516,
-0.403014600276947,
-0.23228752613... | |
<adresse>
<vorname> Hugo </vorname>
<nachname> Meier </nachname>
<telefon typ="mobil">0160/987654 </telefon>
</adresse>
</adressbuch>
```
Code:
```
new Document(
new Element ("adressbuch")
.setAttribute("aktualisiert", "1.4.2008")
.addContent(
(Element) new Element... | [
-0.21351273357868195,
0.40113094449043274,
0.6609259247779846,
-0.30679085850715637,
-0.13721638917922974,
0.3570099174976349,
0.8226181268692017,
-0.9363839626312256,
0.015586546622216702,
-0.6290502548217773,
-0.5342141389846802,
0.2265949547290802,
-0.43005961179733276,
0.02394867315888... | |
.addContent("Hugo"))
.addContent(
(Element) new Element("nachname")
.addContent("Meier"))
.addContent( | [
-0.24910807609558105,
0.18744872510433197,
0.5151604413986206,
-0.028907323256134987,
0.062155064195394516,
-0.12494919449090958,
0.3965979218482971,
-0.5230052471160889,
-0.06598564237356186,
-0.5594326257705688,
-0.6650833487510681,
0.14936096966266632,
-0.32149603962898254,
-0.032419327... | |
(Element) new Element("telefon")
.setAttribute("typ", "mobil")
.addContent("0160/987654"))));
```
From the API manual, it looks like the casts he did aren't necassary. Maybe he just did it for documentation purposes. | [
0.4289248287677765,
-0.03581051528453827,
0.16210775077342987,
-0.03931611403822899,
0.10760640352964401,
0.0854501724243164,
0.3786558508872986,
-0.44449156522750854,
-0.08505578339099884,
-0.4890746772289276,
-0.4265308976173401,
0.5904930830001831,
-0.5900188088417053,
-0.04939189553260... | |
I'm using the `AsyncOperation` class to avoid having to write tons of "if (control.InvokeRequired) then/else" methods (as opposed to its traditional role in the Event-Based Asynchronous Pattern). In some cases, I don't really care about getting a notification when the worker thread is complete. Because of this, I'd lik... | [
0.15157710015773773,
-0.019068311899900436,
0.20757289230823517,
-0.16315099596977234,
0.14051225781440735,
-0.2445976436138153,
0.4280449151992798,
0.2568930387496948,
-0.1512574702501297,
-0.48769959807395935,
-0.3921087980270386,
0.3490789830684662,
-0.11125873774290085,
0.4598981738090... | |
it clear whether there is internal behavior associated with this call that is vital. It does somewhat hint that there might be internal consequences for omitting the call, but in the end I don't see any strong recommendations to always call it.
So, should I consider it bad practice to omit the call, or is it no big de... | [
0.33194446563720703,
0.04539652541279793,
-0.06876900047063828,
-0.014315559528768063,
0.35726505517959595,
-0.15264339745044708,
0.21938446164131165,
-0.029854856431484222,
-0.6045570373535156,
-0.23156853020191193,
-0.08928422629833221,
0.6024952530860901,
-0.47855010628700256,
0.2147858... | |
will not be a problem if you know that once your operation has ceased, it is not used from the rest of your application. While this is ok actually, from a programmatic perspective, it has the following things to consider:
1. First of all, someone coming to the code with the experience of how to use this construct will... | [
-0.07299784570932388,
-0.01841157115995884,
0.37288957834243774,
0.06733937561511993,
0.04107882082462311,
-0.2684308588504791,
0.576048731803894,
-0.10607492178678513,
-0.30697354674339294,
-0.41026628017425537,
-0.5933022499084473,
0.5875951647758484,
-0.11198748648166656,
0.006518181879... | |
list. For one or two instances this might not be a problem, but you would certainly take a performance hit if the number of these operations is large since you would be allowing all of this AsyncOperation instances to get promoted and the GC has to do more work. So you should at least call OperationCompleted to avoid t... | [
0.41525301337242126,
-0.2700904905796051,
0.32333600521087646,
-0.06742114573717117,
-0.12452030181884766,
-0.37040671706199646,
0.43992912769317627,
0.11581118404865265,
-0.6977233290672302,
-0.6494377851486206,
-0.10692132264375687,
0.6325589418411255,
-0.5323006510734558,
-0.05598149821... | |
avoid it, especially if point 2 is valid...though for good practice its best to call the appropriate version.
HTH
Nick. | [
0.24609443545341492,
0.48625877499580383,
0.27752214670181274,
0.028800277039408684,
-0.337659627199173,
-0.5796133875846863,
0.66240394115448,
-0.2229972779750824,
-0.18600203096866608,
-0.45903125405311584,
-0.47838836908340454,
0.27563217282295227,
-0.09961049258708954,
-0.1498001962900... | |
We are working on a Java EE Web Application, and the people from marketing need some really detailed stats for our site. Something similar to Google Analytics, gathering the user's information, and their navigation through the site (where they come from, what they click, where they go, etc.).
Depending on a third part... | [
0.7436936497688293,
0.10135025531053543,
0.24096480011940002,
0.41612446308135986,
0.06232625991106033,
-0.10728097707033157,
-0.11703190952539444,
0.20357492566108704,
-0.11608193069696426,
-0.4705508351325989,
0.4152388572692871,
0.38612085580825806,
0.11083463579416275,
0.01822496764361... | |
do you know if there's any API, framework or other kind of libraries to add to the project for this goal?
Check out Open Symphony Clickstream it can help | [
0.4294895529747009,
-0.06617368012666702,
-0.009447655640542507,
0.36531752347946167,
0.15207239985466003,
-0.2819488048553467,
0.08732853829860687,
0.3654378652572632,
-0.28811487555503845,
-0.4081725478172302,
0.22365035116672516,
0.04122926667332649,
0.24172641336917877,
0.2301811724901... | |
I'm trying to get information like OS version, hard disk space, disk space available, and installed RAM on a Linux system in C++. I know I can use `system()` to run different Linux commands and capture their output (which is what I'm currently doing) but I was wondering if there's a better way? Is there something in th... | [
0.37634995579719543,
0.23297657072544098,
0.04876619949936867,
0.259676456451416,
-0.13282522559165955,
-0.13256745040416718,
0.08276820182800293,
-0.0626462772488594,
-0.2951907217502594,
-0.6812769770622253,
0.10722088813781738,
0.6573286652565002,
-0.07579796016216278,
0.356613039970397... | |
system calls are related.
```
Example: man uname:
SEE ALSO
uname(2), getdomainname(2), gethostname(2)
Explanation of numbers:
(1): User UNIX Command
(2): Unix and C system calls
(3): C Library routines
(4): Special file names
(5): File formats
(6):
(7):
(8): System admin commands
```
So if you are using s... | [
-0.17520400881767273,
0.0862649604678154,
0.2636467218399048,
0.1260867714881897,
-0.15955346822738647,
0.2086748480796814,
0.08220453560352325,
-0.2877695858478546,
-0.4348609745502472,
-0.7587416768074036,
-0.3296082615852356,
0.6264861226081848,
-0.2530152499675751,
0.35482069849967957,... | |
I'm using MS Sql 2005.
Why does this give me the correct results (returns 169 rows)...
```
select
*
from
[import_Data]
where
[import_Data].name not in
(
select
[import_Data].name
from
[import_Data]
inner join [resource] on [import_Data].name = [resource].name
where
... | [
-0.28922906517982483,
-0.01123060379177332,
0.6807489395141602,
-0.498623788356781,
-0.11323754489421844,
0.09218252450227737,
0.3431267738342285,
-0.49408605694770813,
0.05644277483224869,
-0.6037023067474365,
0.021775368601083755,
0.4907994568347931,
-0.2678598463535309,
-0.0024945766199... | |
rows)...
```
select
*
from
[import_Data]
where
[import_Data].name not in
(
select
[resource].name
from
[resource]
where
IsDeleted = 0
)
and [import_Data].ProviderTypeID = 4
```
The only difference between the `name` columns is that `[resource].name` is `varchar(5... | [
-0.10653647780418396,
0.18550270795822144,
0.5564675331115723,
-0.12193930149078369,
-0.05809423699975014,
0.3819253444671631,
0.05976000055670738,
-0.49781209230422974,
-0.14429393410682678,
-0.7140393257141113,
0.08460099250078201,
0.5815449953079224,
-0.2095399796962738,
0.2772551476955... | |
problem? Per "Guru's Guid to TSQL" and I'm paraphrasing "ANSI guidelines state that an expression that compares a value for equality to NULL always returns NULL." So any null in the list throws the whole thing off.
In your first query your inner join is excluding those nulls.
So you have three options
* Don't use NO... | [
-0.05131480097770691,
0.052213795483112335,
0.26569101214408875,
-0.027142221108078957,
-0.05252639204263687,
0.018480487167835236,
0.46640217304229736,
-0.3430786430835724,
-0.3676631450653076,
-0.42289629578590393,
-0.18174882233142853,
0.626770555973053,
-0.7534594535827637,
0.054976403... | |
[resource] where IsDeleted = 0 AND [resource].name = [import_Data].name
)
AND [import_Data].ProviderTypeID = 4
``` | [
0.047919001430273056,
0.04008418694138527,
0.24085547029972076,
-0.2845394015312195,
0.16208995878696442,
0.33553627133369446,
0.10402165353298187,
-0.0059237126260995865,
0.1269160956144333,
-0.7753065824508667,
-0.2801104187965393,
0.5740688443183899,
-0.32476934790611267,
0.400939106941... | |
All objects in my program inherit from a Container class. The Container class has a `virtual BaseNode* getParent() const;` method and a `virtual void setParent(BaseNode *p);` method.
I have a `Set` class (Set in a tennis match, not a data structure) which has the `Match` class as it's parent (via `setParent()`) but s... | [
0.022149378433823586,
0.14283952116966248,
0.11754245311021805,
0.09703237563371658,
0.23253954946994781,
-0.2146734744310379,
0.08952353894710541,
-0.11536207050085068,
0.201168030500412,
-0.45492976903915405,
0.04846295341849327,
0.4310002624988556,
-0.6281505227088928,
0.367380589246749... | |
‘Match*’` shows up in the method below when I try to compile my program. (`Player* getPlayer1() const;` only exists in the `Match` class)
```
Player* Set::getPlayer1() const{
return getParent()->getPlayer1();
}
```
This is my inheritance structure for Match. (Note that `TreeNode` is a template)
```
Match -> Tre... | [
-0.187079057097435,
-0.03826211765408516,
0.4345760643482208,
-0.21660509705543518,
0.020966628566384315,
-0.2190520316362381,
0.1347464621067047,
-0.3454170227050781,
0.12045751512050629,
-0.5612359642982483,
-0.07693306356668472,
0.7577584981918335,
-0.6109359860420227,
0.065932668745517... | |
is not pointer or reference)
```
**Edit 2**
I just realized I need `dynamic_cast<Match*>` which works.
The problem is that `getParent()` returns a `BaseNode*`, which could be a pointer to any type of `BaseNode` - it might point to an unrelated class that also derives from `BaseNode`. If you're 100% sure that the par... | [
-0.20005367696285248,
-0.2844710946083069,
0.3329911231994629,
-0.16966107487678528,
0.047057170420885086,
-0.33719757199287415,
0.10532820969820023,
-0.22076913714408875,
-0.05072582885622978,
-0.39610716700553894,
-0.18022745847702026,
0.7802989482879639,
-0.5626174211502075,
0.102682046... | |
I'm an email n00b but I am working on an application that sends HTML email with Unicode characters (as my friend noted "enjoy encoding hell").
The `Subject:` header comes from user input and therefore may contain Unicode characters. Some mail clients (like GMail and Outlook 2007) are OK with this, but from my reading ... | [
0.5050822496414185,
0.4632051885128021,
0.051507946103811264,
-0.1422269195318222,
-0.33714333176612854,
-0.1454598307609558,
0.3803147077560425,
0.25782862305641174,
0.0167083740234375,
-0.7460935711860657,
0.04039813205599785,
0.19250722229480743,
-0.22131751477718353,
0.0248186606913805... | |
are sending multipart email so our `Content-Type` is `multipart/mixed`. Apple Mail.app in particular is not using the right encoding, even though it's specified in the individual parts as being UTF-8.
Ahah! `ActionMailer::Quoting` has a `quoted_printable` method.
So here's what I did:
```
def my_email(foo)
...
@s... | [
0.40044650435447693,
0.18758918344974518,
0.47500184178352356,
-0.19031594693660736,
-0.2596004009246826,
0.08026129007339478,
0.45233675837516785,
-0.1451789289712906,
-0.35118386149406433,
-0.48991602659225464,
-0.22910238802433014,
0.5336832404136658,
-0.6467254757881165,
-0.05494742467... | |
I'm working with a bit of html and Javascript code that I've taken over from someone else. The page reloads a table of data (via an asynchronous request) every ten seconds, and then re-builds the table using some DOM code. The code in question looks something like this:
```
var blah = xmlres.getElementsByTagName('blah... | [
0.4521152973175049,
-0.24770395457744598,
1.0388727188110352,
-0.13034875690937042,
0.04994826391339302,
0.11960367113351822,
0.2816714346408844,
-0.5790337324142456,
-0.12162015587091446,
-0.6852908730506897,
-0.35359275341033936,
0.3940454423427582,
-0.2620180547237396,
0.246038973331451... | |
td.appendChild(select);
}
```
When the `onchange` event is fired for a `<select>` element however, it seems like the same values are being passed to the `onStatusChanged()` method for every `<select>` in the table (I've verified that in each iteration of the loop, `callid` and `anotherid` are being given new, distinc... | [
0.19961783289909363,
-0.2625924348831177,
0.29969537258148193,
-0.23559243977069855,
0.10998323559761047,
0.07681989669799805,
0.25661906599998474,
-0.32327502965927124,
0.0734490305185318,
-0.38153162598609924,
0.3241780400276184,
0.8416242599487305,
-0.6507809162139893,
0.196531906723976... | |
which end up having a final value of whatever they are set to on the last iteration of the loop. When the event fires, the value referenced by `callid` and `anotherid` is the value set in the last iteration, not the value set at the individual iteration.
Is there a way that I can copy the value of the parameters I am ... | [
0.25569948554039,
-0.14285404980182648,
0.6884763836860657,
-0.060577988624572754,
0.2211603820323944,
-0.24513480067253113,
0.4546109735965729,
-0.3233412206172943,
-0.1073070541024208,
-0.3475583493709564,
-0.439745157957077,
0.48505765199661255,
-0.33385494351387024,
0.21223184466362,
... | |
0; i < blah.length; i++) {
var td = document.createElement('td');
var select = document.createElement('select');
select.setAttribute("...", "...");
select.onchange = function(s,c,a)
{
return function()
{
onStatusChanged(s,c,a);
}
}(select, callid, anotherid);
... | [
0.38106346130371094,
-0.348830908536911,
0.8047392964363098,
-0.34863489866256714,
0.21238753199577332,
0.4308682382106781,
0.4467313885688782,
-0.7340724468231201,
-0.0795053020119667,
-0.42143452167510986,
-0.24966955184936523,
0.5726114511489868,
-0.3695831596851349,
0.24036841094493866... | |
When I am creating a test project in Visual Studio, do I just create a C# console project type, then import Nunit?
Does the GUI then hook into this project somehow?
There seems to be tons of nunit related .dll's, which ones do I need?
Just create a class library (i.e. a DLL). You only need to import nunit.framework.d... | [
0.3972735106945038,
-0.1312166154384613,
-0.06079469993710518,
0.09816848486661911,
-0.3384253978729248,
-0.040416255593299866,
0.2570843994617462,
-0.1760188639163971,
0.11557342857122421,
-0.5633214712142944,
-0.02316792495548725,
0.7012733221054077,
-0.2387866973876953,
-0.0364511646330... | |
Does anybody know how I can close all modal dialogs created by Dojo ? Apparently there used to be a dojo.popup.closeAll function, but this is no longer available in the latest version of the Dojo API that comes with Spring JS.
That's right.... the reason that method isn't there anymore is that from 1.0, whoever opens a... | [
0.21543119847774506,
0.07483472675085068,
0.8865318894386292,
-0.08925774693489075,
-0.2570685148239136,
-0.05654812231659889,
-0.008720679208636284,
0.19468902051448822,
-0.2415139377117157,
-0.399770587682724,
-0.17581972479820251,
0.312679648399353,
-0.10172079503536224,
0.1868134886026... | |
to some random node. Of course that's a workaround.
Bill | [
0.39798587560653687,
-0.1712401807308197,
0.3246026635169983,
0.17489808797836304,
0.3002147674560547,
0.16996830701828003,
0.016925564035773277,
0.06891120225191116,
-0.40555500984191895,
-0.2700960040092468,
-0.03166784718632698,
0.2977980077266693,
-0.1485709547996521,
0.213989213109016... | |
Our company has for many years had multiple domain names to protect our product name. When our webiste was first set up we had all these domain names resolving to on IP address which worked fine until now. We rewrote the site with ASP.NET MVC and now use Recaptcha. The Recaptcha keys are registered to "www.example.com"... | [
0.8548984527587891,
-0.14128722250461578,
0.3669603168964386,
0.1816226989030838,
0.19366033375263214,
0.20471827685832977,
-0.16619254648685455,
0.05953007936477661,
-0.4579513370990753,
-0.6164558529853821,
0.240634948015213,
0.4818178713321686,
-0.24623577296733856,
0.2945806086063385,
... | |
like to redirect eveything that comes in from "www.examples.com" to "www.example.com".
I have read that you can set up the sites in IIS and use a permanent redirect, but will this work if the domains all point to the same IP address?
We also have installed the Rewrite Module for IIS 7 because a lot of our pages moved... | [
0.575305700302124,
0.020496241748332977,
0.22829391062259674,
0.10740548372268677,
-0.33204641938209534,
-0.35176530480384827,
0.4796767234802246,
-0.034566234797239304,
-0.5723855495452881,
-0.6101135611534119,
0.2046944499015808,
0.5974587202072144,
-0.41846129298210144,
0.21105699241161... | |
will this work if the domains all point to the same IP address? If I go to www.example.com (192.168.1.1) will it ever end up at www.examples.com (192.168.1.1) which redirects to www.example.com and cause an infinate loop because they are on the same IP address?
---
How would CNAME be done in a Windows 2003 DNS Server... | [
0.27602919936180115,
0.10098908841609955,
0.38970842957496643,
0.28955963253974915,
0.03314352035522461,
-0.0784723088145256,
0.04608287662267685,
0.18462860584259033,
-0.4818512499332428,
-0.6515076160430908,
0.42339029908180237,
0.416094571352005,
-0.3276207745075226,
0.5595927834510803,... | |
server so that browsers will allow multiple domains to look at a single cookie, in this case, www.example.com, then when www.examples.com and www.ex-ample.com try to read www.example.com's recaptha session info, it will work. This would allow you to still have multiple url's in the browser, and support shared sessions.... | [
0.7052403092384338,
0.29283061623573303,
0.224773108959198,
0.03333231061697006,
-0.0649123415350914,
0.22513359785079956,
0.12853753566741943,
-0.01229806151241064,
-0.5956444144248962,
-0.9033994674682617,
0.33613836765289307,
0.4632863700389862,
-0.2257084846496582,
0.16059119999408722,... | |
when I wrote this. This is only part of the solution, I posted the remainder of it below. | [
0.1625714749097824,
0.33381667733192444,
0.3306155204772949,
0.025429682806134224,
0.16290226578712463,
0.009799182415008545,
0.12782378494739532,
-0.0024873812217265368,
0.20702660083770752,
-0.4792661964893341,
0.018251212313771248,
-0.12159975618124008,
-0.184696763753891,
-0.0402982905... | |
I am working on a course leaflet system for the college I work at, leaflets are stored in a database with primary key course\_code. I would like the leaflets ideally to get indexed by google how would I achieve this assuming i develop the system in asp.net 2.0.
I understand part of getting it indexed is to pass the v... | [
0.8210148811340332,
0.317402720451355,
0.3478304147720337,
0.36533501744270325,
0.07331732660531998,
-0.2829385995864868,
-0.15973953902721405,
0.029673412442207336,
-0.0634472668170929,
-0.5682809948921204,
0.3188324272632599,
0.21461419761180878,
0.12409358471632004,
0.13914215564727783,... | |
Given that Decimal.MaxValue = 79228162514264337593543950335m
Why does the next line give me 7922816251426433759354395034M in the Local window instead of 7922816251426433759354395033.5m as expected?
Decimal target = Decimal.MaxValue / 10m;
I suspect this is a compiler error, actually.
Here's a short but complete prog... | [
-0.03494376689195633,
0.052256397902965546,
0.2792898416519165,
-0.10543777048587799,
0.1486535221338272,
0.11125238984823227,
0.3259528875350952,
0.19391211867332458,
-0.04610032960772514,
-0.5458228588104248,
-0.0003095073625445366,
0.5151854157447815,
0.07776299118995667,
0.215028464794... | |
Console.WriteLine (calculated);
}
}
```
Output:
```
7922816251426433759354395034
7922816251426433759354395033.5
```
I'll dig into the spec to see what guarantees are given.
EDIT: In the spec, section 7.18 claims:
> The compile-time evaluation of
> constant expressions uses the same
> rules as run-t... | [
0.06318820267915726,
0.2580091953277588,
0.6999877095222473,
0.08178778737783432,
0.3865470886230469,
-0.09372851997613907,
0.2884838879108429,
0.05744451284408569,
0.17163227498531342,
-0.7475606203079224,
-0.24586622416973114,
0.9898557066917419,
-0.14723041653633118,
0.00832662917673587... | |
By default when viewing an account in edit mode you have access to Opportunities, Invoices, and Quotes which contain the products being shopped by the account and/or the sales department.
I'm trying to determine where to store, display, and use the products that an account has a subscription too.
I may not understan... | [
0.8699701428413391,
-0.02045208029448986,
0.319715291261673,
0.1883687824010849,
0.23147203028202057,
-0.14594565331935883,
0.18375535309314728,
0.37704381346702576,
-0.3623555898666382,
-0.6604606509208679,
-0.029899675399065018,
0.7718397974967957,
0.15885035693645477,
0.1190460771322250... | |
that will not flow through CRM first. This product subscription does not fit into the Opportunity, Quote, or Invoice model because they are confirmed recurring sales that were automatically purchased via tools like a Public Website, Portal, etc.
By enabling this tracking in CRM we can use the advanced find feature to... | [
0.5893483757972717,
0.1557607203722,
0.921470046043396,
0.29331764578819275,
-0.13625510036945343,
-0.2504889965057373,
0.1882273405790329,
0.061861634254455566,
-0.3387293815612793,
-0.11006082594394684,
-0.011593680828809738,
0.242766335606575,
0.13040387630462646,
0.023268721997737885,
... | |
how to approach this within the world of Microsoft CRM.
Thank you in advance.
I suspect this is a compiler error, actually.
Here's a short but complete program to show why I think that:
```
using System;
class Test
{
static void Main()
{
decimal constant = decimal.MaxValue / 10m;
decimal cal... | [
-0.03072451241314411,
0.017361339181661606,
0.1539505422115326,
-0.06625226885080338,
0.2092941701412201,
-0.004688361193984747,
0.31896811723709106,
0.05147859826683998,
0.049569010734558105,
-0.38849157094955444,
-0.17943982779979706,
0.4592900574207306,
-0.07872996479272842,
0.065513156... | |
}
}
```
Output:
```
7922816251426433759354395034
7922816251426433759354395033.5
```
I'll dig into the spec to see what guarantees are given.
EDIT: In the spec, section 7.18 claims:
> The compile-time evaluation of
> constant expressions uses the same
> rules as run-time evaluation of
> non-constant expression... | [
0.28910574316978455,
0.3000911474227905,
0.4424610137939453,
0.1259312629699707,
0.3541203439235687,
-0.22011716663837433,
0.2965088486671448,
0.103496253490448,
0.14472566545009613,
-0.7865442037582397,
-0.19776010513305664,
0.8908408880233765,
-0.13588063418865204,
-0.03348467871546745,
... | |
I'm starting a project that will be public facing using asp.net mvc. I know there are about a billion php, python, and ruby html sanitizers out there, but does anyone have some pointers to anything good in .net? What are your experiences with what is out there? I know stackoverflow is a site done in asp.net that allows... | [
0.6863351464271545,
0.09795071929693222,
0.11861705034971237,
0.035660270601511,
-0.07178245484828949,
-0.3153393566608429,
0.11686931550502777,
0.0796562135219574,
-0.5066556930541992,
-0.4855814576148987,
0.303043931722641,
0.46821126341819763,
-0.021569279953837395,
0.09027643501758575,... | |
I'm selecting 1 field from 1 table and storing it into a temp table.
Sometimes that table ends up with 0 rows.
I want to add that field onto another table that has 20+ fields
Regular union won't work for me because of the field # mismatch.
Outer wont work for me because there is nothing to compare.
NVL doesn't work ... | [
0.3195287883281708,
-0.11413917690515518,
0.3991594910621643,
-0.1648963987827301,
-0.15223145484924316,
-0.00414125295355916,
0.21726664900779724,
-0.35015955567359924,
-0.39787304401397705,
-0.8323994874954224,
0.05838370323181152,
0.5504942536354065,
-0.40820008516311646,
0.039684716612... | |
TEMP grabname with no log;
SELECT biglist.*, grabname.resp_name<br>
FROM biglist, grabname<br>
ORDER BY prnt_item, account_amt<br>
INTO TEMP xxx with no log;
```
What field would it match with? BTW, here's how to line them up:
```
SELECT NULL, NULL, NULL, NULL, MySingleField, NULL, NULL, NULL... FROM #temp
UNION ALL... | [
-0.19262677431106567,
-0.09696607291698456,
0.5704686045646667,
-0.036579009145498276,
0.04243454709649086,
0.46557626128196716,
-0.22763729095458984,
0.014350726269185543,
-0.35802093148231506,
-0.444918692111969,
-0.31271684169769287,
0.2166120857000351,
-0.5558286309242249,
-0.039786390... | |
Let's say I have a split view, and I want to fill half of it with a table view (a fairly common use case, I would think). Is there any way to tell the table view to size itself to fit the split view or do I really have to size it manually?
As far as I know, doing it manually is the only way to go. However, if you turn ... | [
0.5081049799919128,
-0.1044805571436882,
0.4288429617881775,
-0.03799591213464737,
0.03277252987027168,
0.07570333033800125,
-0.23691007494926453,
-0.03674626350402832,
-0.889907717704773,
-0.2918386161327362,
0.04630441218614578,
0.9139379262924194,
-0.10371153056621552,
-0.30017384886741... | |
mouse the edges into place, or manually edit the sizes to match. | [
-0.0300286915153265,
0.2605386972427368,
-0.06448138505220413,
0.22179076075553894,
0.26352763175964355,
-0.06703151017427444,
-0.20609980821609497,
-0.039917461574077606,
-0.030961239710450172,
-0.8898895978927612,
-0.5975310802459717,
0.41744065284729004,
0.0460609570145607,
-0.251474916... | |
I have a Guid.NewGuid() call that is creating an Empty Guid.
What would cause such a problem and how can I fix it?
**Edit:** The code:
```
<WebMethod()> _
Public Function CreateRow(rowValue As String) as String
Dim rowPointer As Guid = System.Guid.NewGuid()
Dim rowPointerValue As String = rowPointer.ToStr... | [
-0.03695685788989067,
0.02560517005622387,
0.6855025887489319,
-0.14511559903621674,
0.1551579385995865,
-0.06498448550701141,
0.2311197817325592,
-0.2991040349006653,
-0.20144768059253693,
-0.7164308428764343,
0.08139830827713013,
0.5384936332702637,
-0.20680035650730133,
0.47816339135169... | |
End Try
End Function
```
**Edit:** Turns out that rowPointer was originally being passed to the SqlHelper and not rowPointerValue - This of course is passed as empty, as pointed out in the answers. Changing it to rowPointerValue/rowPointer.ToString() fixed the problem.
This is an old problem in VB.NET. It is only the... | [
-0.05191871523857117,
-0.03616996109485626,
0.5281648635864258,
-0.21059346199035645,
0.08741652220487595,
-0.19485723972320557,
0.5846869945526123,
-0.04913932830095291,
0.08026211708784103,
-0.34235700964927673,
-0.06397315859794617,
0.47201672196388245,
-0.4471111297607422,
0.3619733750... | |
ok, ive a class and i pass an object as property.
the object that i pass is a `List<X>`
in my class im trying to access the Object index by reflection BUT I CAN'T!!!
Example:
this class works i just wrote down the part i want to show you and i need help.
```
class MyClass
{
private object _recordSet;
publ... | [
0.12228073179721832,
0.17180238664150238,
0.2811630666255951,
0.08651398122310638,
-0.016871215775609016,
-0.18960002064704895,
0.45043501257896423,
-0.16565294563770294,
-0.26637911796569824,
-0.7768901586532593,
-0.05226139351725578,
0.49921369552612305,
-0.11206396669149399,
0.354737192... | |
string Draw()
{
system.reflection.Assembly asem = system.reflection.Assembly.getAssembly(_dataSource.GetType());
object instance;
instance = asem.CreateInstance(_dataSource.GetType().UnderlyingSystemType.FullName);
//to access de Count of my List
int recordcount = int.Pars... | [
-0.056392744183540344,
-0.05400035157799721,
0.5826818346977234,
-0.38923540711402893,
0.1398298144340515,
0.30332109332084656,
0.4963147044181824,
-0.6927474141120911,
-0.2020423263311386,
-0.3714441657066345,
-0.06693241745233536,
0.5345502495765686,
-0.3110925853252411,
0.13375434279441... | |
_dataSource[cont].Name; // <-- THIS PART IS NOT WORKING!!! because i cant access the Index Directly.... WHAT TO DO!! ???
}
}
}
```
If you are using reflection (and hence lots of `object`), why not just cast as an `IList` (non-generic) instead?
i.e.
```
IList list = (IList)actualList;
object foo = list[17... | [
0.10227950662374496,
-0.05554609373211861,
0.1900562196969986,
0.009678621776401997,
-0.08049679547548294,
-0.08456625789403915,
0.24200919270515442,
-0.37897443771362305,
-0.10246755182743073,
-0.46553710103034973,
-0.008361871354281902,
0.6236922144889832,
-0.5315073132514954,
-0.0552601... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.