text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Weird problem here, we're running a few mixed environment web applications, that use Windows or Forms authentication depending on where the user comes from.
I'm curious how everyone else might be handling expired sessions to avoid the errors you would get from someone leaving an idle session open for too long and then... | [
0.5416193604469299,
0.18660248816013336,
0.06518419086933136,
0.3775322437286377,
0.07289580255746841,
-0.35997846722602844,
0.3269505500793457,
0.20096850395202637,
-0.373002290725708,
-0.15521423518657684,
0.3049335777759552,
0.25541621446609497,
0.14968600869178772,
0.09047895669937134,... | |
an expired session, you can add code to check to see if their session is active. If it isn't, just redirect them to a login page, or display some other friendly text.
Basically something like:
```
if (Session.IsNewSession)
Response.Redirect("login.aspx");
``` | [
0.19350557029247284,
-0.027161510661244392,
0.6813345551490784,
0.15952448546886444,
0.242560014128685,
-0.3109867572784424,
0.45002925395965576,
0.08982377499341965,
-0.39552468061447144,
-0.6291840672492981,
-0.2838291823863983,
0.6260368227958679,
-0.214097797870636,
0.10779863595962524... | |
How do I configure my datagrid to use paging such that it won't pull ALL the rows from the database, but rather only the rows for the current page.
BTW, should I be using a datagrid still or is there a newer control?
Brainstorming:
* Hard-code a domain-check into the dll's main function and compile a new dll for each... | [
0.31653255224227905,
-0.048534367233514786,
0.413771390914917,
0.26814889907836914,
0.08751240372657776,
-0.2503628730773926,
0.35529282689094543,
-0.07271530479192734,
-0.38065144419670105,
-0.6298700571060181,
0.06753149628639221,
0.509453535079956,
-0.2329704910516739,
0.220666006207466... | |
the encrypted domain.
* Have the DLL "phone-home" to one of your servers over encrypted line asking your server whether the current domain the dll is running in is acceptable. Your server responds 'yes' or 'no' and the DLL either runs or doesn't. | [
0.22688448429107666,
-0.024041537195444107,
0.42236578464508057,
0.4432952105998993,
0.02493010088801384,
-0.2400132566690445,
0.22710680961608887,
0.2829861342906952,
0.05611095204949379,
-0.6038681864738464,
-0.4454687237739563,
0.15169908106327057,
-0.38409245014190674,
0.47371703386306... | |
I just finished my first iPhone app. It's a little game and I want to launch it for 99 cents.
So my concerns is, how long usually does an app stay on the new released list. ALso, is there any launching tips on timing etc?
Thank you
These days apps stay on the new app list for hours rather than days. It used to be tha... | [
0.4025783836841583,
0.17487327754497528,
0.38782620429992676,
-0.14076530933380127,
0.13788877427577972,
-0.11534833908081055,
-0.10672856867313385,
0.3733873963356018,
-0.3623782992362976,
-0.1703019142150879,
0.4015730321407318,
0.6766449213027954,
0.3034352660179138,
-0.0320025160908699... | |
sadly over. It used to be that merely being in the app store generated hundreds or thousands of sales. That is definitely not true any more. Now you need either luck or marketing.
Things you can do:
* Provide review copies to as many
sites as you can find. Most will
have limited visibility but if you
can get onto a ... | [
0.4798818826675415,
0.007816273719072342,
0.3213224709033966,
0.3392810523509979,
0.1861899197101593,
-0.019819045439362526,
0.07105844467878342,
0.5352023839950562,
-0.22087536752223969,
-0.49621933698654175,
-0.0742885172367096,
0.46240755915641785,
0.11296585947275162,
0.135531589388847... | |
I am really intrigued by the field of computer vision and the potential it has. Are there any examples (preferably implemented in .NET) which I can study along with a reference book?
OpenCV (Open Computer Vision) is the most popular library, and it has been wrapped for C#:
<http://www.codeproject.com/KB/cs/Intel_OpenC... | [
0.5068385601043701,
0.03088088519871235,
0.0816526785492897,
0.2896368205547333,
-0.1630883514881134,
-0.4058498740196228,
-0.13059872388839722,
0.12117169052362442,
-0.41060706973075867,
-0.5342615842819214,
-0.20997874438762665,
0.39208465814590454,
0.09254251420497894,
0.009735484607517... | |
I want a query that will return a row for each column in a view, and a row for the view itself.
There should be a column basetable in the result that gives the base table for the column in the current row, and a column basefield in the result that gives the name of the column in the underlying query (for renamed colum... | [
0.0493750162422657,
0.1690729558467865,
0.5120011568069458,
-0.04957674443721771,
-0.05784664303064346,
0.17163240909576416,
-0.09576907753944397,
-0.1435621678829193,
-0.10444415360689163,
-0.5261020064353943,
0.10336355865001678,
0.475122332572937,
-0.3870048224925995,
0.2988725900650024... | |
table2 as appropriate in the basetable column, and a, b, or c as appropriate in the basefield column.
```
create table table1 (a int, b int)
create table table2 (a int, c int)
go
create view view1 as select table1.a, table1.b, table2.c from table1 left join table2 on table1.a = table2.a
go
select * from
(
select '... | [
-0.35813406109809875,
0.2983810007572174,
0.6308601498603821,
-0.270111083984375,
-0.0284710880368948,
0.3488609492778778,
-0.07863598316907883,
-0.27498671412467957,
-0.3676828444004059,
-0.5452883839607239,
-0.3345926105976105,
0.5453771948814392,
-0.2776072919368744,
-0.0327654816210269... | |
sys.columns C
left join sys.types T on C.user_type_id=T.system_type_id
where C.[object_id] in (select O.[object_id] from sys.objects O where O.type='V')
) I
where viewname in ('view1')
order by viewname, column_id
drop view view1
drop table table1
drop table table2
```
Add some memory caching on your server, and yo... | [
0.022090492770075798,
-0.035967323929071426,
0.26223647594451904,
0.09820747375488281,
-0.3558688163757324,
-0.060037270188331604,
-0.004405423067510128,
-0.36433759331703186,
-0.33208876848220825,
-0.5849217772483826,
-0.04271969571709633,
0.4283159375190735,
-0.22386503219604492,
-0.0659... | |
I have an ASP.NET application that implements keep-alive by using a hidden IFRAME with a refresh header (or meta refresh tag in the page).
For many - but not all - instances of Internet Explorer (reproduced so far on IE7 and IE8 beta - but not for everyone!) if you move between two secure pages that both contain this ... | [
0.4924830496311188,
0.03563152626156807,
0.5956622958183289,
-0.061621204018592834,
-0.1699346899986267,
-0.11814441531896591,
0.45751097798347473,
-0.22353516519069672,
-0.20361849665641785,
-0.46803754568099976,
-0.07259155809879303,
0.3323281705379486,
-0.1571892648935318,
-0.2133914679... | |
frame on page1 happens; mixed content error box displayed
```
At this point the error "This page contains both secure and non-secure content" is displayed in the browser.
*page1.html:*
```
<html><head><title>Page 1</title></head><body>
<h1>This is Page 1</h1>
<p><a href="page2.html">Go to Page 2</a></p>
<iframe sr... | [
0.5841285586357117,
0.21750682592391968,
0.7317659258842468,
-0.09435457736253738,
-0.10660411417484283,
0.009625195525586605,
0.45614928007125854,
-0.7113736271858215,
-0.183828666806221,
-0.5737266540527344,
-0.07064894586801529,
0.27394387125968933,
-0.6018884181976318,
-0.1855172365903... | |
need to have a src="" tag on your IFRAME or IE will consider it insecure - by design it has to have a src tag, which is that of the keep-alive page.
If you sit on Page 1 forever, the IFRAME refreshes fine. The error only shows up the first time after you change to Page 2.
I am looking for a way to fix this with minim... | [
0.44160810112953186,
0.07891540974378586,
0.5199787020683289,
-0.03185098618268967,
0.1615249067544937,
-0.3315160572528839,
0.5095944404602051,
0.024584423750638962,
-0.4455147683620453,
-0.511983335018158,
-0.09897980093955994,
0.3094973862171173,
-0.21642720699310303,
-0.066085830330848... | |
IFRAME be a regular XMLHttpRequest to the server, instead of a meta refresh. A simpler bugfix would be even better.
---
***Update:*** I have marked Grant Wagner's answer as correct because it lead me to the actual problem: the Lenovo Password Manager add-on, CpwmIEBrowserHelper, causes this error. This neatly explain... | [
0.04705585166811943,
0.24101164937019348,
0.23802462220191956,
0.05605892837047577,
0.03576449304819107,
-0.027915438637137413,
0.26904454827308655,
0.2557244896888733,
-0.01429077424108982,
-0.5415330529212952,
0.0976732149720192,
0.4110678732395172,
-0.1715824007987976,
0.052243914455175... | |
window location, updating the keepalive.html page to look like this:
```
<html><head>
<meta http-equiv="pragma" content="no-cache">
</head><body>
<h2>This is the keep alive</h2>
<script type="text/javascript">
setTimeout ('ReloadPage()', 15000 );
function ReloadPage() {
window.location = window.location;
... | [
0.4456774890422821,
-0.05282149836421013,
1.033738374710083,
-0.18243010342121124,
-0.05956093221902847,
-0.15638703107833862,
0.5315711498260498,
-0.38440433144569397,
-0.038631945848464966,
-0.5791201591491699,
-0.1204155683517456,
0.36492621898651123,
-0.1786651611328125,
-0.21367293596... | |
sure all affected browsers are seeing the site in the same security zone (check the status bar across the bottom and ensure all instances of IE say either 'Internet' or 'Local intranet'). If browsers in one zone are working but those in another are not, you can try getting them all in the same zone.
* Start Internet Ex... | [
0.4963653087615967,
0.005472210235893726,
0.36329811811447144,
0.046758022159338,
0.0718366801738739,
-0.17487427592277527,
0.6084652543067932,
0.21926142275333405,
-0.2752964496612549,
-1.0095382928848267,
-0.40250349044799805,
0.4699789881706238,
-0.30674245953559875,
-0.0398965142667293... | |
a couple of years ago I had one user whose session (maintained by a session cookie) was not surviving in a secondary window. It turned out that a popular cursor Add-on she had downloaded and installed was preventing the sharing of cookies between two different IE windows. The point of the story is that IE Add-ons can s... | [
0.5407915711402893,
0.26988619565963745,
0.2108578383922577,
-0.057780712842941284,
-0.09834551811218262,
-0.2031128853559494,
0.43881094455718994,
0.2556614875793457,
-0.23355065286159515,
-0.6056833863258362,
0.3228771984577179,
0.48875898122787476,
0.09636691212654114,
0.292863994836807... | |
I'm concerned about the nature of the problem. You're saying that visiting page 1 sets a timer to refresh the iframe, then you navigate away from that page, and the refresh still occurs at the designated time, even though you've navigated away from the page containing the iframe which contains the META REFRESH. Navigat... | [
0.1971871703863144,
0.2918401062488556,
0.6094962358474731,
-0.05337011441588402,
0.16475866734981537,
-0.21001529693603516,
0.49657803773880005,
0.18627384305000305,
-0.38234415650367737,
-0.23532429337501526,
0.05526372417807579,
0.2051452100276947,
-0.23323367536067963,
0.12672135233879... | |
In PowerShell, if I have a list of strings containing versions, "3.0.1.1", "3.2.1.1", etc., how can I sort it the way System.Version would sort it in C#?
```
PS C:\> $ver="3.0.1.1","3.2.1.1"
PS C:\> $ver|%{[System.Version]$_}|sort
Major Minor Build Revision
----- ----- ----- --------
3 0 1 1
3 ... | [
0.08167839795351028,
0.097674161195755,
0.8562954068183899,
-0.028907474130392075,
0.6263878345489502,
-0.14151518046855927,
0.07818698137998581,
-0.37235191464424133,
-0.16182991862297058,
-0.889289915561676,
-0.2020055055618286,
0.5529862642288208,
-0.2885071933269501,
0.2271973192691803... | |
I have seen many references stating that TableAdapters are weak and silly, and that any real dev would use DataAdapters. I don't know if that is true or not, but I am exploring the matter, and stressing out over how bad this whole 'DataAdapter/TableAdapter against a Typed DataSets' smells.
Let me try to explain...
Su... | [
0.4309634864330292,
0.32537874579429626,
0.07953920215368271,
0.051500141620635986,
-0.3583962917327881,
-0.2564232349395752,
0.17595377564430237,
0.11663516610860825,
0.12163235992193222,
-0.8642610907554626,
0.11014673113822937,
0.4412643611431122,
-0.5533860325813293,
0.2883021235466003... | |
old raw tables, ready for action.)
From my studies so far, here is how I see the DataAdapter used in conjunction with a Typed DataSet. Tell me if I am wrong. (Then I have my big complaint / question at the end.)
```
public DataTable GetJobsByCustomer(string CustNo)
{
OleDbConnection conn1 = new OleDbConnection(db... | [
-0.04180219769477844,
-0.1244814470410347,
0.5213375091552734,
0.0007852984126657248,
0.047059349715709686,
0.01922687329351902,
0.05443749949336052,
-0.12687410414218903,
-0.33383050560951233,
-0.7068465948104858,
-0.1726212054491043,
0.6528857350349426,
-0.40157318115234375,
0.3320549130... | |
job_invnum, job_num, job_remark, job_start, mach_cost, mat_cost, mat_mkup,
p_o_num, priority, quote_no, quoted_by, ship_date, ship_info, shop_notes, status, total_cost
FROM job_info
WHERE (cust_num = ?) AND (status = 'A') | [
-0.052881889045238495,
-0.015716062858700752,
0.24284064769744873,
-0.03229883685708046,
-0.05375898256897926,
0.8752123713493347,
-0.30094707012176514,
0.3142634630203247,
-0.43028202652931213,
-0.43645644187927246,
-0.1836499124765396,
0.583234965801239,
0.2754059135913849,
0.42033123970... | |
ORDER BY priority";
OleDbDataAdapter JobsAdapter = new OleDbDataAdapter(sqlstring,conn1);
JobsAdapter.SelectCommand.Parameters.Add("?", OleDbType.VarChar,6).Value=CustNo;
JobsAdapter.Fill(ds1, "Jobs"); // A table schema in the Typed DataSet
return ds1.Jobs;
}
```
Is that how it goes? It does work,... | [
-0.1034376323223114,
-0.15992975234985352,
0.4691256582736969,
-0.11071602255105972,
0.05197472497820854,
0.06531339138746262,
-0.05208122730255127,
-0.17729216814041138,
-0.32926326990127563,
-0.31457754969596863,
-0.27720406651496887,
0.44894933700561523,
-0.48231518268585205,
0.11631981... | |
table in the xsd? It's crazy to have so much maintenance and dis-join between my hand-coded SQL and the xsd schema. There's no error cathing at all, since you are writing a text string!! You get to find out at run time if it will work.
When your typing all the SQL in code, it's terrible to have to look back and forth ... | [
0.23673927783966064,
0.24530208110809326,
0.3599507212638855,
0.30035123229026794,
-0.03512062877416611,
-0.3908825218677521,
0.08445518463850021,
0.2954207956790924,
-0.22206754982471466,
-0.5997074842453003,
0.3702778220176697,
0.49795839190483093,
-0.36598294973373413,
0.113535918295383... | |
to it, it's just a pain to may to write SQL that matches the Typed schema. All they've done is move the headache to a new area.
Please tell me I am missing sometehing here that will make this much better.
I don't believe you're missing anything; maintaining this type of code is never fun. Thankfully we now have LINQ t... | [
0.3155384957790375,
0.4266149401664734,
0.403704971075058,
0.25064146518707275,
-0.03841954842209816,
-0.23625825345516205,
0.38204652070999146,
0.34853217005729675,
-0.34086260199546814,
-0.44810962677001953,
0.3978188931941986,
0.7074552178382874,
0.059458959847688675,
0.1691131293773651... | |
Does anyone know of any examples or tutorials of an MVC view that shows parent/child data all on one form, and allows all the child records to be editable?
For example, say I have a table of people and another containing the vehicles they own. One one form, I want to show every vehicle for a given person, and make the... | [
0.5419039130210876,
0.5099534392356873,
0.16627870500087738,
0.2672777473926544,
0.4039381444454193,
0.2211054265499115,
-0.3731437623500824,
-0.0979357585310936,
-0.37510502338409424,
-0.4466165006160736,
0.3446170687675476,
0.3348194360733032,
0.07223757356405258,
0.12376894801855087,
... | |
display the data, but I can't get it to post back to the controller. I've tried to narrow down the problem as far as I could [here](https://stackoverflow.com/questions/709933/child-records-not-posting-on-asp-net-mvc-form), but I'm still not getting it, and I think a broader example may be in order. Any ideas?
You can t... | [
0.45208990573883057,
-0.048596303910017014,
0.5443000793457031,
0.06709776073694229,
0.10507416725158691,
0.2520845830440521,
-0.13428008556365967,
-0.050379447638988495,
-0.3425111174583435,
-0.6695547699928284,
-0.006682976149022579,
0.4890075922012329,
-0.15251581370830536,
0.1654224395... | |
you'll post the form) :
```
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult EditVehicles(int Owner, Vehicle[] vehicles)
{
//manipulate the data, then return back to the list
return RedirectToAction("YourAction");
}
```
Then you should set your form this way :
```
<!--have a form for each person, listing ... | [
0.18481549620628357,
0.2457757145166397,
0.8452945947647095,
-0.13949741423130035,
-0.13932836055755615,
0.35994088649749756,
-0.04286724328994751,
-0.5502073764801025,
-0.21063785254955292,
-0.27959901094436646,
-0.32635146379470825,
0.4524514675140381,
0.05716376379132271,
-0.09201004356... | |
value="Blue" />
<input type="submit" value="Edit" />
</form>
```
This will help the DefaultModelBinder to correctly bind the form data to your model in your controller. Thus `Response.Write(vehicles[1].Color);` on your controller, will print "Blue".
This is a very simple example, but I'm sure you get the idea. F... | [
0.31015849113464355,
-0.1090603619813919,
0.4272337853908539,
0.1792488694190979,
-0.0017656371928751469,
-0.003960706759244204,
-0.04745715111494064,
-0.31530818343162537,
-0.20697630941867828,
-0.9146436452865601,
0.1269989162683487,
0.1415870487689972,
-0.32185328006744385,
0.0115870134... | |
Are there tools for decompiling Adobe AIR applications?
I want to check how do they work on the apps I have made.
Here is what you are looking for ;)
<http://www.sothink.com/product/flashdecompiler/index.htm> | [
0.28422829508781433,
0.11847231537103653,
0.07450743764638901,
0.2726903259754181,
0.11249703913927078,
-0.05291438102722168,
-0.2247392237186432,
-0.2949979901313782,
0.10511404275894165,
-0.49351292848587036,
-0.1922760158777237,
0.29276183247566223,
-0.13787227869033813,
-0.329723775386... | |
Most git repositories have a master branch, but there's really nothing special about this name. You can delete the master branch, rename another branch to master, skip having the master branch altogether.
Is anything in git hardcoded to expect a master branch? If I have a repository that doesn't have a branch with thi... | [
0.4658379852771759,
-0.030011123046278954,
0.06497466564178467,
0.20276203751564026,
-0.04993107542395592,
-0.4831019341945648,
0.37071558833122253,
0.21298056840896606,
-0.3930593430995941,
-0.6710883975028992,
-0.3681230843067169,
0.3260987102985382,
-0.13827921450138092,
0.5232528448104... | |
will parse for a "master" branch (like this [build.pl perl script](http://www.kernel.org/pub/linux/kernel/people/jejb/build.pl))
Even though you can name or organize your branches with whatever name you want in Subversion ([you are not required to have a "trunk" for instance](https://stackoverflow.com/questions/361801... | [
0.26885777711868286,
-0.1812821328639984,
0.02306000329554081,
0.22152936458587646,
0.03278149664402008,
-0.33285385370254517,
0.3866157829761505,
0.227475106716156,
-0.5966159105300903,
-0.48314782977104187,
-0.38302865624427795,
0.03630544990301132,
-0.29126104712486267,
0.06856528669595... | |
I want to set the LIST\_SEPARATOR in perl, but all I get is this warning:
```
Name "main::LIST_SEPARATOR" used only once: possible typo at ldapflip.pl line 7.
```
Here is my program:
```
#!/usr/bin/perl -w
@vals;
push @vals, "a";
push @vals, "b";
$LIST_SEPARATOR='|';
print "@vals\n";
```
I am sure I am missing... | [
-0.05335145816206932,
-0.013439767993986607,
0.7161839604377747,
-0.1607380360364914,
-0.09257450699806213,
-0.03761401027441025,
0.377941757440567,
-0.02356921136379242,
-0.3559294641017914,
-0.4615080952644348,
-0.3983951210975647,
0.6212314963340759,
-0.44884949922561646,
-0.15342321991... | |
`use English;` in all your programs, use `$"` instead. Same variable, just with a more terse name. | [
0.2783331274986267,
0.30325794219970703,
-0.08536505699157715,
-0.20994561910629272,
-0.11113669723272324,
-0.19492869079113007,
0.3661152124404907,
0.32813844084739685,
0.008523829281330109,
-0.3473571538925171,
-0.298371285200119,
0.749671995639801,
-0.5511685609817505,
-0.08709296584129... | |
I'm building a UI for a program, and I can't figure out why my progress bar won't become visible after the convert button is clicked.
```
private void convertButton_Click(object sender, EventArgs e)
{
toolStripProgressBar.Visible = true;
...
toolStripProgressBar.Visible = false;
}
```
I ran into a simi... | [
0.4951171576976776,
0.048707351088523865,
0.4698871374130249,
-0.21569523215293884,
-0.12000618129968643,
-0.23537465929985046,
0.477617084980011,
-0.3087063729763031,
-0.04570942744612694,
-0.9261996150016785,
0.04243777319788933,
0.7970871925354004,
-0.3932209312915802,
0.112336657941341... | |
with status bar text. Is there any way to get the label on the left side and the progress bar on the other instead of right next to each other on the left?
Well, there *is* a way to do this without using threads (`Application.DoEvents`) but I *strongly* recommend against you using it. Re-entrancy is nasty, and you real... | [
0.3195696771144867,
-0.20958225429058075,
0.4056950807571411,
0.11823045462369919,
0.2643265724182129,
-0.07542746514081955,
0.25843870639801025,
0.09753265976905823,
-0.5742003321647644,
-0.59965980052948,
-0.028788795694708824,
0.4834364354610443,
-0.45958828926086426,
-0.079464212059974... | |
for `Control.Invoke` etc - it takes care of that for you.
There are [lots of tutorials for `BackgroundWorker`](http://www.google.com/search?q=backgroundworker%2Btutorial) - it shouldn't take you too long to get going with it. | [
0.3416481614112854,
-0.25527942180633545,
0.14052145183086395,
0.1380486935377121,
0.22543878853321075,
-0.278824120759964,
0.045303523540496826,
-0.07967475801706314,
-0.07865224778652191,
-0.11591585725545883,
-0.03283735364675522,
0.5716608166694641,
-0.0309221800416708,
-0.330174893140... | |
I have a `string` which needs a decimal place inserted to give a precision of 2.
```
3000 => 30.00
300 => 3.00
30 => .30
```
Given a string input, convert to integer, divide by 100.0 and use String.Format() to make it display two decimal places.
```
String.Format("{0,0:N2}", Int32.Parse(input) / 100.0)
```
S... | [
-0.08524063974618912,
0.36105263233184814,
0.5331432819366455,
-0.1630633920431137,
0.046819690614938736,
0.2005171924829483,
-0.016664082184433937,
-0.6443581581115723,
0.03043687716126442,
-0.5676620602607727,
0.192203551530838,
0.4180271625518799,
-0.06341178715229034,
0.107167974114418... | |
the extension metheod to get a leading zero.
And as an extension method, just for kicks.
```
public static class StringExtension
{
public static String InsertDecimal(this String @this, Int32 precision)
{
String padded = @this.PadLeft(precision, '0');
return padded.Insert(padded.Length - precision, ".");
... | [
-0.03647209703922272,
-0.22436077892780304,
0.6925981044769287,
-0.18820886313915253,
0.12419837713241577,
-0.11596769839525223,
0.18662676215171814,
-0.5517345666885376,
-0.04937121644616127,
-0.2527095675468445,
-0.059623878449201584,
0.7332109212875366,
-0.37558501958847046,
0.113498285... | |
In Actionscipt, Parent means the object which contains the instance. So if a car has a wheel, wheel can tell the car to move forward with
parent.moveForward
However, in Obj-C, parent refers to the super class (not sure why they have super and parent mean the same thing).
I can't find any equivalent to the Action-s... | [
-0.1025419682264328,
-0.1192641407251358,
-0.05872819945216179,
0.08261099457740784,
-0.41554728150367737,
0.2113366276025772,
0.28466475009918213,
0.032651592046022415,
-0.25241172313690186,
-0.4946635663509369,
0.0018142049666494131,
0.47634759545326233,
0.001854647765867412,
0.030095051... | |
an error, but since I'm new to Obj-C, I just wanted to make sure I'm taking the right course of action.
To follow on to the composition answer - the usual pattern would be to have the parent either create or be given the objects it's holding onto, and then set itself as some kind of delegate for each one (if they need ... | [
0.1850282847881317,
0.04925854504108429,
0.17950767278671265,
0.02002909407019615,
0.22227483987808228,
-0.013953506015241146,
-0.14688795804977417,
-0.31447896361351013,
-0.40325650572776794,
-0.4105745255947113,
-0.15216651558876038,
0.20576976239681244,
0.017432954162359238,
0.448087811... | |
the metaphor in the example is losing me a bit there!
Another approach is to update variables in the contained obejcts that the parent would poll somehow (this approach for example can work well making views that get pushed using the navigation controller, and then return where the master view has to do something base... | [
0.13977324962615967,
-0.6476814150810242,
0.35756731033325195,
0.34262025356292725,
-0.22667334973812103,
0.13489499688148499,
0.2238955795764923,
0.19319389760494232,
-0.2015061229467392,
-0.49497440457344055,
0.0419013574719429,
0.3593727946281433,
0.09111776947975159,
0.3553727865219116... | |
I have a Server application with a GUI. Written in c#.
Now I want to use the MVC pattern for the whole Application.
Normally you have 1 Model, 1 Controller and maybe n views. Okay, I have one of everything, but I'm not sure with the Model.
**My Situation:**
There are 1 server state, that can be online / offline, that... | [
0.22172172367572784,
-0.030783936381340027,
0.5732163786888123,
0.11965753883123398,
-0.1818600594997406,
0.1362857222557068,
0.207129567861557,
0.1638740450143814,
-0.4162066876888275,
-1.007542371749878,
0.033887460827827454,
0.2725854814052582,
-0.031250402331352234,
0.37855586409568787... | |
a GUI element for the new student (through the controller). Now there is a action related to a special student in my view and the controller get notices "StudentChanged" and get the student that has changed.
**The Question:**
The controller can now change the student directly OR tell the ServerModel how to change the... | [
0.14665718376636505,
-0.22898846864700317,
0.7796281576156616,
0.0732053890824318,
0.12648700177669525,
-0.0765412226319313,
-0.11461923271417618,
0.07462128251791,
-0.1635310798883438,
-0.7277206778526306,
-0.1533380150794983,
0.5169642567634583,
-0.18843120336532593,
0.07571060210466385,... | |
brings any drawbacks in later development or the flexibility of the whole code.
Greeting from Hamburg ;)
The Controller should collect the information that the user wants to change about the student and hand it off to the View.
You may want to look at using the [command pattern](http://en.wikipedia.org/wiki/Command_... | [
0.37887042760849,
-0.22088563442230225,
0.5954585075378418,
0.1785239577293396,
0.15018068253993988,
-0.15323959290981293,
-0.27580517530441284,
-0.5538643002510071,
-0.2152387946844101,
-0.734857439994812,
-0.42785346508026123,
0.11556925624608994,
-0.09054780006408691,
0.0096434410661458... | |
been registered with the View by the UI when the application started up.
5. The User interacts with the Change
Student UI. When the user is done
the command retrieves the information.
6. The command modifies the model and
closes the ChangeStudent UI.
7. The command notified the View it is
done.
8. THe view tells the UI... | [
0.1502906084060669,
-0.22079424560070038,
1.2680652141571045,
-0.16540516912937164,
0.32498258352279663,
-0.12379992008209229,
0.2241971641778946,
-0.16312554478645325,
-0.1669924259185791,
-0.6665230393409729,
-0.4114125669002533,
0.4681963324546814,
0.15575933456420898,
0.099612668156623... | |
My degree was in audio engineering, but I'm fairly new to programming. I'd like to learn how to work with audio in a programming environment, partly so I can learn C++ better through interesting projects.
First off, is C++ the right language for this? Is there any reason I shouldn't be using it? I've heard of Soundfil... | [
0.6854326725006104,
0.3528490662574768,
0.1279810518026352,
0.09256310760974884,
0.07144597172737122,
-0.21802833676338196,
0.1084480956196785,
0.27280834317207336,
-0.11024018377065659,
-0.5302760004997253,
0.15032891929149628,
0.9013229012489319,
0.03660872206091881,
0.005689169745892286... | |
bit like Max/MSP but with more control.
It really depends on what kind of audio work you want to do, If you want to implement audio for a game, C++ is sure the right language. There are many libraries around, OpenAL is great, free and multiplatform. I also used DirectSound and Fmod with great sucess. Check them out, it... | [
0.3565811514854431,
-0.1356794685125351,
0.4894227087497711,
0.24559052288532257,
-0.20493271946907043,
-0.32599154114723206,
-0.05359933525323868,
-0.17470704019069672,
0.007780901622027159,
-0.5046354532241821,
0.08664547652006149,
0.9737625122070312,
-0.3864895701408386,
0.1787530034780... | |
I've implemented MultiSampling on my XNA game, it works great on my Desktop. When I run the game in HighDefinition mode on the XBox360, I get an OOM exception. If I don't enable MultiSampling, the game runs fine, but models are not anti-aliased and look terrible.
The following chunk of code seems to be the culprit.
`... | [
0.025538640096783638,
-0.11743500828742981,
0.4811972975730896,
-0.09125612676143646,
-0.1298156976699829,
-0.19474242627620697,
0.4972348213195801,
-0.029409701004624367,
-0.16760006546974182,
-0.8903956413269043,
-0.13794344663619995,
0.6946588158607483,
-0.5949360132217407,
0.3468229770... | |
// TODO: Add your initialization logic here
graphics.PreferMultiSampling = true;
graphics.PreferredBackBufferHeight = 720;
graphics.PreferredBackBufferWidth = 1280;
graphics.PreparingDeviceSettings += _graphics_PreparingDeviceSettings;
graphics.ApplyChanges();
base.Initi... | [
0.11497101932764053,
-0.030268395319581032,
0.5369468927383423,
-0.10559824109077454,
0.05876586586236954,
0.06958073377609253,
0.30554085969924927,
-0.36568132042884827,
-0.12361976504325867,
-0.7188777327537537,
-0.08498515188694,
0.8022357821464539,
-0.010169269517064095,
-0.03376870974... | |
this, so if anyone can point me in the right direction, I would appreciate it.
I think if you just move the code from initialize into the constructor and remove the call to graphics.ApplyChanges(...) your problems should go away.
The article posted by Venesectrix states that ApplyChanges(...) is sort of a no-no for XB... | [
0.2213342934846878,
0.15411628782749176,
0.9660593271255493,
0.04918020963668823,
0.08930737525224686,
0.010890516452491283,
0.2620116174221039,
-0.003192122094333172,
0.0988396406173706,
-0.8359571099281311,
0.15286393463611603,
0.826303243637085,
-0.19907252490520477,
0.4233168065547943,... | |
a reset and again fires the event to Prepare Device Settings. If I'm not mistaken, device resets with regard to XNA aren't really supported on 360 and will barf.
Hope this helps, let me know.
-Jeff B. | [
0.7003565430641174,
0.09517581015825272,
0.015113277360796928,
0.13623148202896118,
0.1467505842447281,
-0.24376563727855682,
0.5795609951019287,
0.08559180051088333,
-0.10775314271450043,
-0.5091145038604736,
-0.1895877718925476,
0.5755736231803894,
-0.18841321766376495,
-0.21740555763244... | |
```
internal class Foo
{
public void Fee()
{
Debug.WriteLine("Fee");
}
internal void Fi()
{
Debug.WriteLine("Fi");
}
}
```
I'm thinking that Fee() and Fi() are equally accessible since the entire class is already internal. Am I overlooking something? Is there any reason to choose public or intern... | [
0.22874584794044495,
0.24639339745044708,
0.09825301170349121,
-0.21356390416622162,
0.1249430850148201,
-0.07921207696199417,
0.13119372725486755,
-0.303804874420166,
-0.0862947404384613,
-0.357712060213089,
-0.03836693987250328,
1.0039031505584717,
-0.39974260330200195,
0.223085075616836... | |
choose public methods vs. internal methods in a case like this would be to ease transitioning to a public class in a future version, should you choose to do so. | [
-0.030423546209931374,
-0.3391513228416443,
-0.4066808223724365,
0.34927791357040405,
-0.18287688493728638,
0.1344936043024063,
0.04101019725203514,
-0.15948586165905,
-0.16888338327407837,
-0.636770486831665,
-0.10406319051980972,
0.37464380264282227,
-0.13015663623809814,
-0.098618842661... | |
I am trying to specify CSS classes for the [autocomplete](http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx) control:
```
CompletionListCssClass="completionListElement"
CompletionListItemCssClass="listItem"
CompletionListHighlightedItemCssClass="highlightedListItem"
```
When I try thi... | [
-0.07131495326757431,
0.12155406922101974,
0.2392299771308899,
-0.25611233711242676,
-0.29562699794769287,
0.052272506058216095,
0.4197174310684204,
-0.09697457402944565,
-0.2193077653646469,
-0.6452210545539856,
-0.20886649191379547,
0.4461953043937683,
-0.2331812083721161,
-0.00905716046... | |
Are there any free Sybase ASE 12.5x ODBC Drivers available, or does anyone have any experience with any paid ones? I'm looking for a fast and simple solution, but don't necessarily want to pay big bucks.
Thanks in advance.
How about [FreeTDS](http://www.freetds.org/). ASE uses the TDS wire protocol for connections. Fr... | [
0.4076717793941498,
-0.14628472924232483,
0.03367449715733528,
0.3296016752719879,
-0.4004567265510559,
-0.0020878808572888374,
0.079737588763237,
-0.04517066478729248,
-0.3849971294403076,
-0.4067806601524353,
0.06299876421689987,
0.534553050994873,
-0.29306966066360474,
0.062126230448484... | |
funky.
Here's an article [comparing](http://iablog.sybase.com/paulley/2009/03/differences-between-jconnect-and-the-ianywhere-jdbc-driver-part-un/) the 2 official Sybase drivers, jConnect and iAnywhere.
Hm, I see you specified ODBC, now that I've posted this. [Heres](http://www.easysoft.com/products/data_access/odbc_... | [
0.5165414214134216,
0.04292251914739609,
0.44265052676200867,
0.15574181079864502,
-0.15060165524482727,
-0.4808588922023773,
-0.39448994398117065,
-0.009105381555855274,
-0.6581913232803345,
-0.4946204125881195,
0.23021361231803894,
0.632376492023468,
-0.3773082494735718,
-0.0381114259362... | |
you can download from Sybase are free. | [
0.8512259721755981,
0.08283355087041855,
-0.39241066575050354,
0.19285297393798828,
-0.08308704942464828,
-0.5668087005615234,
0.052482862025499344,
0.43826228380203247,
-0.13189895451068878,
-0.49301764369010925,
-0.29056328535079956,
0.32173827290534973,
-0.3697066307067871,
0.3095995187... | |
I need to simulate the Linux command "`cal -3`", which displays the calendar for 3 months side by side. What I need right now is to get my implementation, using pipes, working. I've been told that I can't use `fork()`, but rather I should use `dup2()`, `write()`, `read()` and `close()` to call `system("myCustomCommand"... | [
0.4974207878112793,
0.16292989253997803,
0.5456432104110718,
-0.361015647649765,
-0.030151648446917534,
0.13334035873413086,
0.32529324293136597,
-0.01455334760248661,
-0.11835227906703949,
-0.9687042236328125,
0.22174370288848877,
0.7058387398719788,
-0.2737523317337036,
0.123804844915866... | |
== -1) { perror("pipe"); exit(EXIT_FAILURE); }
if (p == 0)
{
d = dup2(pfd[1], 0);
close(pfd[1]);
nbytes = read (pfd[1], buf , BSIZE);
close(pfd[0]);
exit(EXIT_SUCCESS);
}
else
{
close(pfd[0]);
write(pfd[1], "test\n", BSIZE);
close(pfd[1]);
exit(EXIT_SUCCESS);
}
```
Unfortunately, t... | [
0.14633414149284363,
-0.09546477347612381,
0.35163354873657227,
-0.2424507886171341,
0.13856275379657745,
-0.0029334111604839563,
0.5118969082832336,
-0.2137633115053177,
-0.006065815687179565,
-0.7134397029876709,
-0.2096017301082611,
0.3227722942829132,
-0.3057343661785126,
0.18783752620... | |
Now store each line in an array of strings, and print out each line once you get the whole calendar read in.
3. Get it working with three calendars, storing the results of each into three separate arrays of strings, then printing out all three (not next to each other).
4. Instead of printing out all of the lines from o... | [
0.5361684560775757,
-0.17092333734035492,
0.3663540184497833,
0.005918058566749096,
-0.09279165416955948,
0.0604943186044693,
0.028376061469316483,
-0.32649022340774536,
-0.314360648393631,
-0.7873870730400085,
0.015831798315048218,
0.5191051959991455,
-0.05772659555077553,
-0.185689851641... | |
I just moved my site to a new web host, and after changing the database-login file, it still can't connect. I get the following error:
Warning: mysql\_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/www/users/simpleof/index.php on line 91
I changed the ... | [
0.2774108946323395,
0.32657474279403687,
0.11945284903049469,
-0.12981678545475006,
0.019621970131993294,
-0.10140208899974823,
0.8847454190254211,
0.1764729917049408,
-0.35495713353157043,
-0.5999772548675537,
0.1182720959186554,
0.4270789623260498,
-0.482331246137619,
0.5918151140213013,... | |
sure your log-in info is correct. | [
0.34364748001098633,
0.3949241042137146,
0.10824398696422577,
-0.10401878505945206,
0.33704710006713867,
-0.4201091527938843,
0.2916485667228699,
0.5373126268386841,
-0.2311842441558838,
-0.33365312218666077,
0.1332695037126541,
0.37831398844718933,
0.10249510407447815,
-0.1749528050422668... | |
I have several places in my facelets web app where we are using custom facelet functions. For some reason they feel dirty and I can't quite peg why. What is StackOverflow's view of custom facelet functions?
I can see how you might think that. I think excessive use of such functions is probably poor design. However, the... | [
0.6521047949790955,
0.32201579213142395,
0.2855569124221802,
0.1241263598203659,
-0.0794382244348526,
0.0032438302878290415,
0.1525392383337021,
0.2504830062389374,
-0.3579128086566925,
-0.502824604511261,
0.46803826093673706,
0.7087693810462952,
-0.22656360268592834,
0.21901190280914307,
... | |
I'm working on a windowing application for a website of mine. Right now, I have each individual window set up as a in the body of the site. I add new windows by literally adding the appropriate code to the end of the body element, and delete them by removing that div. (I'm using jQuery for the underlying JavaScript arc... | [
0.4995696246623993,
0.3246285021305084,
0.35632193088531494,
0.006630083546042442,
-0.020253440365195274,
0.1677999049425125,
-0.0031735904049128294,
-0.023440491408109665,
-0.06542371213436127,
-0.9038481712341309,
0.11123303323984146,
0.18697036802768707,
-0.05703384801745415,
0.26013255... | |
returns to its old position and not just to somewhere random. So my real question here is, would it be legal to create custom CSS attributes (knowing full well that the browser would ignore them) with the sole purpose of keeping information like this on a per-div basis? Or would this be illegal, and should I look at an... | [
0.4310482442378998,
0.0918121412396431,
0.1596086621284485,
0.31742388010025024,
-0.05852993577718735,
-0.09497017413377762,
-0.07901003956794739,
0.18450817465782166,
-0.5830338001251221,
-0.4047033190727234,
0.06487039476633072,
0.3701517581939697,
0.1176978275179863,
0.01417366228997707... | |
has a little-known feature for this called [`data`](http://docs.jquery.com/Data). With it, you can do this:
```
$('#mydiv').data('position', {x: 150, y: 300});
// later
var position = $('#mydiv').data('position');
```
If you don't like this (although I find it quite handy) it is certainly not wrong to have custom a... | [
0.1761014610528946,
-0.05429987981915474,
0.30512040853500366,
0.1802360862493515,
0.1562327742576599,
-0.09634467959403992,
0.06058793142437935,
-0.10224602371454239,
-0.2110552191734314,
-0.43146461248397827,
0.07975871860980988,
0.593877911567688,
0.0635979026556015,
0.18182645738124847... | |
i feel like im trying to do something super simple, but just being stupid about it.
all i want to do is see if a variable has been set previously, and if it has NOT, set it with a default value....here is a sample:
```
if(!embed_BackgroundColor) {
var embed_BackgroundColor;
embed_BackgroundColor = "#F4F4F4";
... | [
0.4118383526802063,
0.15061545372009277,
0.29436713457107544,
-0.11254999786615372,
0.13711151480674744,
-0.13339585065841675,
0.4114885926246643,
-0.12043332308530807,
-0.3603399395942688,
-0.4577159285545349,
0.01955355331301689,
0.6473489999771118,
-0.46830281615257263,
0.02746233344078... | |
I'm trying to create some functionality that keeps an audit trail of how data in a given user form has been changed over time, with a dated audit at the foot of that page. For example:
02/04/09 21:49 Name changed from "Tom" to "Chris".
I'm doing this by storing the data in it's present format in the session and then... | [
0.5543593168258667,
0.3521360456943512,
0.6612717509269714,
-0.19341078400611877,
-0.08168084919452667,
0.009068694896996021,
0.3809049427509308,
0.3353484869003296,
-0.7470003366470337,
-0.5336139798164368,
-0.04523943364620209,
0.25199094414711,
-0.016317512840032578,
0.17563161253929138... | |
table.
Is this the best approach to be taking?
One suggestion; this would be relatively easy to do in a database trigger. In that case, you would never have to worry about whether the code running the update remembers to add a history record. | [
0.39927956461906433,
0.05772167816758156,
0.21923407912254333,
0.0909142941236496,
0.1822250485420227,
-0.14900614321231842,
-0.36545073986053467,
-0.0667991191148758,
-0.44886425137519836,
-0.38812345266342163,
0.3176399767398834,
0.35358545184135437,
-0.23028285801410675,
0.0334799140691... | |
Do you ever face the problem that there are a bunch of programmers in your organization that you met at the coffee machine one day, but you have no idea what the heck they're up to?
Are you ever faced with a problem you're pretty certain someone in your company has solved before, but you don't know who, and how to fin... | [
0.8460020422935486,
0.12030050158500671,
-0.34047773480415344,
0.5652986168861389,
0.15028999745845795,
-0.4057571589946747,
0.07150936126708984,
0.37256374955177307,
-0.5496589541435242,
-0.2597419321537018,
0.014245249330997467,
0.48729830980300903,
0.02374514564871788,
-0.21466462314128... | |
base and more? We have Sharepoint and I do not feel it qualifies.
Any idea? Recommendations? I would think someone must have solved that problem before, but how do I find out?
### Related:
> [Online collaborative environment (not only dev oriented)](https://stackoverflow.com/questions/575007/online-collaborative-env... | [
0.5968796014785767,
0.0384594090282917,
0.027698686346411705,
0.31908729672431946,
-0.05529651418328285,
-0.2483825981616974,
0.15874503552913666,
-0.06745287775993347,
-0.16238835453987122,
-0.3671204745769501,
0.18585354089736938,
0.5779644846916199,
0.16972002387046814,
-0.1203936338424... | |
meet one, the experience is great, and I learn a lot of good tips - but I want that to happen more often.
My company also has SharePoint, so it's good to hear that other people have the same problem connecting with this tool that is theoretically about connecting and sharing info.
I'm trying a collection of things to... | [
0.2652297616004944,
-0.10495901852846146,
0.548297107219696,
0.18361294269561768,
0.19020408391952515,
-0.26243194937705994,
0.2674357295036316,
0.3649330735206604,
-0.24101634323596954,
-0.6307750344276428,
0.20011653006076813,
0.39175450801849365,
0.23816420137882233,
-0.0613372065126895... | |
since anything public involves a certain amount of care and tact, and the things I want to connect with others on do not lend themselves to the necessary level of corporate diplomacy needed to blog.
* **SharePoint site** - for a topic area - our company has a few, we'll see how well they work. It seems best when there ... | [
0.9487556219100952,
-0.10986305773258209,
0.1536405235528946,
0.20281949639320374,
-0.23838546872138977,
-0.5403405427932739,
0.07551874220371246,
0.6954043507575989,
-0.1566072702407837,
-0.4339112639427185,
-0.1946483850479126,
0.6329486966133118,
0.2904437780380249,
-0.21175125241279602... | |
But one thing we have are "lunch and learn" sessions about specific technical topics. A similar session for a roundtable on an issue or technical area might be valuable - although it will only catch people in the local campus. I started doing a lightwieght version - I have lunch monthly with a friend who is a peer, and... | [
0.671726405620575,
-0.02886423096060753,
0.2095019370317459,
0.5152927041053772,
-0.06677758693695068,
-0.3910197913646698,
0.163859561085701,
0.5036652088165283,
-0.23965385556221008,
-0.7955162525177002,
-0.06143758445978165,
0.5213229060173035,
0.4357292950153351,
-0.06650307774543762,
... | |
(to no avail) to suggest that the difficulty with SharePoint is the lack of human connection. Social networks like LinkedIn, LiveJournal, Tribe, and Facebook all have the concept that you have "friends", "connections", etc. Through connections, people form traversible webs based on interests and shared friends. This is... | [
0.4395342767238617,
0.04281158372759819,
0.09448955208063126,
0.40206095576286316,
0.025144927203655243,
-0.12103819102048874,
0.34663599729537964,
0.5108231902122498,
-0.21849779784679413,
-0.7661536931991577,
0.15856105089187622,
0.2803400158882141,
-0.020190607756376266,
0.0614892914891... | |
need, but also being able to judge it against what we know about the source of information. A Wiki is great for factual answers, but the reason to interface with other humans to have that particular quality of interaction that is much messier than bare facts. To get that in an online context you need connection to othe... | [
0.5116087794303894,
-0.016686975955963135,
0.002244386589154601,
0.5836842060089111,
-0.13688094913959503,
-0.1942690759897232,
0.31308579444885254,
0.07386121153831482,
-0.12902027368545532,
-0.7992917895317078,
-0.05101689323782921,
0.7746280431747437,
0.01138184405863285,
-0.13558998703... | |
In one of our applications I've used some of the MFC classes to allow docking a sidebar window, approximately like so:
```
CDialogBar* bar = new CDialogBar;
bar->Create(this, IDD, WS_CHILD | WS_VISIBLE | CBRS_RIGHT | CBRS_TOOLTIPS, IDD));
bar->EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_RIGHT | CBRS_ALIGN_... | [
0.09456469118595123,
0.22786177694797516,
0.8541309833526611,
-0.32472339272499084,
0.17002533376216888,
0.14212870597839355,
-0.0827573612332344,
-0.1649751365184784,
-0.3313366174697876,
-1.01417076587677,
0.03389345109462738,
0.618082582950592,
-0.3828420639038086,
0.19447776675224304,
... | |
having quite a bit of trouble figuring out what I'm supposed to do. I've tried what seems to be the "new" approach:
```
CPaneDialog* pane = new CPaneDialog;
pane->Create("pane", this, TRUE, IDD, WS_VISIBLE | WS_CHILD, IDD);
EnableDocking(CBRS_ALIGN_RIGHT | CBRS_ALIGN_LEFT);
AddPane(pane);
DockPane(pane);
``... | [
0.6821777820587158,
0.4518742561340332,
0.39276134967803955,
-0.27502503991127014,
0.29092514514923096,
0.3707663118839264,
0.20933233201503754,
-0.6853629946708679,
-0.2639109492301941,
-0.784387469291687,
0.20080280303955078,
0.617843508720398,
-0.23683786392211914,
-0.3467039465904236,
... | |
for [CDockablePane](http://msdn.microsoft.com/en-us/library/bb984433.aspx) (the parent class of CPaneDialog), I notice a method called [EnableGripper](http://msdn.microsoft.com/en-us/library/bb984118.aspx). Try that. | [
0.15311460196971893,
-0.1406923085451126,
0.38627082109451294,
-0.3118239939212799,
0.1749390810728073,
-0.18622878193855286,
0.05261880159378052,
-0.0010662584099918604,
-0.2300163060426712,
-0.6008668541908264,
-0.09733860194683075,
0.4957066476345062,
-0.355055034160614,
-0.133972585201... | |
I am a long time Microsoft developer and I am new to iPhone development using Xcode. So, I am reading a book and going through examples trying to teach myself how to write an iPhone application using Objective-C. All has been good so far, however, once in a while I run into the generic '`objc_exception_throw`' message ... | [
0.39093226194381714,
0.5833120346069336,
0.1708282232284546,
-0.3918743431568146,
0.01930084265768528,
-0.14071878790855408,
0.5112501382827759,
-0.002088612876832485,
0.014214428141713142,
-0.5641903281211853,
0.01979638822376728,
0.572772204875946,
-0.3992256224155426,
0.1294125467538833... | |
second 't' in button.
```
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Date and Time Selected"
message:message
delegate:nil | [
-0.1716012805700302,
-0.2192964404821396,
0.3840130865573883,
-0.14494886994361877,
0.13584376871585846,
0.16014769673347473,
0.2013653665781021,
0.10900745540857315,
-0.2504149079322815,
-0.7701219916343689,
-0.30860644578933716,
0.02303885482251644,
-0.013815130107104778,
0.3486698269844... | |
cancelButtonTitle:@"Cancel"
otherButonTitles:nil];
```
The reason this took me time to find is that the code built successfully. Is this normal behavior for the Objective-C compiler? I am used to having the build fail in the .NET compiler when I make a common syntax error like this. Is there a c... | [
0.6243289709091187,
0.016463978216052055,
0.2729058861732483,
-0.14812229573726654,
0.05695785582065582,
-0.18397629261016846,
0.4233085811138153,
0.15638968348503113,
-0.11143114417791367,
-0.31917843222618103,
-0.1061386689543724,
0.8616801500320435,
-0.5206848382949829,
0.03283119946718... | |
starts with a dot) and put this in it:
```
fb -[NSException raise]
fb objc_exception_throw
fb malloc_error_break
```
That'll initialize GDB with three default breakpoints, when they occur, GDB will halt your application and show you the stack trace. This is very well integrated with Xcode so you'll be able to nicely... | [
0.23879407346248627,
-0.0012769148452207446,
0.6866236925125122,
-0.1106584370136261,
0.23528100550174713,
-0.11968264728784561,
0.18336686491966248,
-0.2876172363758087,
-0.15491828322410583,
-0.6900160312652588,
-0.40710318088531494,
0.371070921421051,
-0.38812968134880066,
-0.1120661273... | |
`Device - iPhone OS [someversion]`. Scroll all the way to the bottom and find the `GCC 4.0 - Warnings` section. There; turn on as many warnings as you feel comfortable with, but make sure to turn on `Treat Warnings as Errors` (this is the equivalent of `GCC_TREAT_WARNINGS_AS_ERRORS`). Personally, I have it set to this:... | [
0.044722676277160645,
0.48313459753990173,
0.4946047067642212,
-0.25006142258644104,
0.24570505321025848,
-0.2190237045288086,
0.4176521897315979,
0.19952857494354248,
-0.2965684235095978,
-0.5481166839599609,
-0.30899468064308167,
0.700009822845459,
-0.4644562602043152,
-0.163926005363464... | |
able to find the problem easily with GDB breaking at a convenient spot.
You should also look into `NSZombie*`. These are environment variables that are very handy for early breaking on bad memory allocation or access situations. For instance; wih `NSZombieEnabled` nothing will truly be released; on dealloc it'll get o... | [
0.31352725625038147,
-0.16336897015571594,
0.26071250438690186,
-0.04496658593416214,
-0.05479907989501953,
-0.7394008040428162,
0.33782410621643066,
0.2403738796710968,
-0.640770673751831,
-0.5765914916992188,
-0.3281448781490326,
0.6973753571510315,
-0.4349859952926636,
0.310521095991134... | |
see [<http://www.cocoadev.com/index.pl?NSZombieEnabled>](http://www.cocoadev.com/index.pl?NSZombieEnabled). | [
-0.2949211001396179,
0.058530762791633606,
-0.02996167540550232,
-0.10683203488588333,
-0.2877068817615509,
-0.004326315131038427,
0.15876783430576324,
0.6391587257385254,
-1.2262322902679443,
-0.14916132390499115,
-0.4792753756046295,
-0.16541261970996857,
0.020890913903713226,
0.19737577... | |
I know there are different methods in the System.Web namespace for decoding html entities (such as "%20" for space). I'm building a Winforms application however, but needs to deal with html encoded strings. Basically I have the iTunes Library XML file and need to decode the URLs in there to check the files.
Is this po... | [
0.21976511180400848,
0.03372165560722351,
0.4253426194190979,
-0.01179366186261177,
-0.03780684620141983,
-0.02470395900309086,
0.13978615403175354,
-0.1235080137848854,
-0.08645268529653549,
-0.8558172583580017,
0.12937577068805695,
0.5639569759368896,
-0.08189287781715393,
0.057695943862... | |
is in
> System.dll (System.dll is in NET4 Client Profile).
> System.Net.WebUtility includes HtmlEncode and HtmlDecode. Url encoding
> can be accomplished using the System.Uri class (also in System.dll).
From <http://blogs.msdn.com/b/jgoldb/archive/2010/04/12/what-s-new-in-net-framework-4-client-profile-rtm.aspx> | [
0.03448260575532913,
-0.36579960584640503,
0.8210561275482178,
0.11519839614629745,
-0.0027420506812632084,
-0.13280506432056427,
0.18741357326507568,
-0.2484024167060852,
-0.41775885224342346,
-0.9923295378684998,
-0.36354222893714905,
0.38886573910713196,
-0.15218132734298706,
-0.0001159... | |
I am just getting back into game development and I am really impressed with XNA. My only problem is that I want a *free* community based 2d game engine so that I can harness the power of the community. **Does anybody know of a good XNA 2d game engine that is currently being supported or Do I just have to write one myse... | [
0.6661126017570496,
0.016678785905241966,
-0.12476901710033417,
0.0012458903947845101,
-0.44543397426605225,
-0.3727250099182129,
0.041063372045755386,
0.46460843086242676,
-0.22440053522586823,
-0.7234925627708435,
0.2134782373905182,
0.5809445381164551,
-0.029424915090203285,
0.136463657... | |
it looks like that is still in an alpha stage.
For certain types of games (e.g. tile-based RPG) there are starter kits, such as the [RPG starter kit](http://creators.xna.com/en-US/starterkit/roleplayinggame) and [spaceship game starter kit](http://creators.xna.com/en-US/starterkit/netrumble). If you happen to be deve... | [
0.17959994077682495,
-0.3191886246204376,
0.09586703032255173,
0.23070745170116425,
0.02848435938358307,
-0.20181122422218323,
-0.29523205757141113,
-0.057124849408864975,
-0.38821616768836975,
-0.6694543957710266,
-0.16795462369918823,
0.34039849042892456,
0.09968452900648117,
-0.03997767... | |
I've currently got CC.Net setup for doing builds and it's awesome. But now I want to go all the way and use it for deployment as well. I was thinking about installing CC.Net on staging and after a build completes and it's autouploaded fire the forcebuild trigger to staging and have it use msbuild and the necessary exte... | [
0.902984082698822,
-0.1870763599872589,
0.4513319134712219,
0.08635249733924866,
0.002643485087901354,
-0.3085818588733673,
0.05440202355384827,
-0.308042049407959,
-0.48975539207458496,
-0.7390305399894714,
0.2931812107563019,
0.6254668235778809,
-0.060033660382032394,
-0.2336230129003524... | |
network which eliminates the possibility of psexec. The reason it is disabled is we wanted the network to be locked down and when I asked about opening I was told too many ports need to be opened. Something to do with the authentication?
+ It may be the case that this port argument is bunk. I've setup Samba shares be... | [
0.22610685229301453,
-0.058615442365407944,
0.4462856650352478,
0.21196331083774567,
0.1499904990196228,
-0.13289117813110352,
-0.022966165095567703,
-0.14319123327732086,
-0.7475163340568542,
-0.5594310164451599,
0.08068728446960449,
0.557876706123352,
-0.04436609894037247,
-0.02968691103... | |
CC tasks which stop IIS (sites and app-pools), copy the new site across and restart IIS stuff.
For DMZ deployments (ie. internet stuff, no AD-auth'd connections possible) we do as much of the build as we can internally and ZIP up the results, including a NAnt script which does the 'final steps'. There is an internal C... | [
0.5390172600746155,
-0.00948415044695139,
0.1236208900809288,
0.2025412917137146,
0.2194046527147293,
-0.3640829622745514,
-0.09219834953546524,
-0.17467008531093597,
-0.4994237422943115,
-0.1633228212594986,
-0.3030259311199188,
0.46568939089775085,
-0.055625710636377335,
-0.0810014680027... | |
controllable via .VBS files
```
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:\\devserver.local\root\WebAdministration")
' Specify the application pool.
Set oAppPool = oWebAdmin.Get("ApplicationPool.Name='ProjectName'")
' Stop the application pool.
oAppPool.Stop
' now website;... | [
-0.17652322351932526,
0.08688913285732269,
0.6379584670066833,
0.03967513516545296,
0.2942594289779663,
-0.030265377834439278,
0.5349534153938293,
-0.41804972290992737,
-0.22771716117858887,
-0.2640095353126526,
-0.7940160632133484,
0.6652924418449402,
-0.5458672046661377,
0.20086181163787... | |
<exec program="${Remote.Executor}">
<arg line="\\${Deploy.TargetServer} ${Deploy.TargetFolder}\${Service.Name} /${Service.Install.Action}" />
</exec>
</target>
```
Anyway there's probably dozens of ways to approach this - the internally-automated/external-manual-step-required setup works for us. | [
0.3680756390094757,
-0.09469293802976608,
0.43599164485931396,
-0.19674068689346313,
0.022119445726275444,
-0.1819559931755066,
-0.07469991594552994,
-0.11374007910490036,
-0.13658924400806427,
-0.4682556390762329,
-0.09425358474254608,
0.55828857421875,
-0.2129364311695099,
-0.29970327019... | |
What is the difference between eventOne (with keyword 'event') and eventTwo (w/o keyword)?
```
class Program
{
public event EventHandler eventOne;
public EventHandler eventTwo;
public void RaiseOne()
{
if (eventOne != null)
eventOne(this, EventArgs.Empty);
}
public void Ra... | [
0.06697779148817062,
-0.21362848579883575,
0.12137197703123093,
-0.43546807765960693,
0.04307355359196663,
0.17163793742656708,
0.26097041368484497,
-0.49180349707603455,
-0.2309543639421463,
-0.3132997751235962,
-0.5279536843299866,
0.8149988651275635,
-0.10235363990068436,
0.157801687717... | |
}
static void Main(string[] args)
{
var p = new Program();
p.eventOne += (s, e) => Console.WriteLine("One");
p.eventTwo += (s, e) => Console.WriteLine("Two");
p.RaiseOne();
p.RaiseTwo();
}
}
```
* `eventOne` is a public *event* backed by a private field of type `Eve... | [
-0.12647682428359985,
-0.3517095744609833,
0.147660031914711,
-0.2631995677947998,
0.15469743311405182,
0.16770562529563904,
-0.0650009959936142,
-0.27426159381866455,
-0.3430081009864807,
-0.35684147477149963,
-0.5458556413650513,
0.5728961229324341,
-0.3851493000984192,
0.103213861584663... | |
"subscribe" and "unsubscribe" in the same way that a property only encapsulates the ideas of "get" and "set" rather than the actual storage. (As far as the CLR is concerned an event can also expose a "raise" method, but C# never uses this. Ignore it.)
See [my article on events](http://pobox.com/~skeet/csharp/events.ht... | [
0.11101460456848145,
-0.18083983659744263,
0.12126164138317108,
0.3459009528160095,
-0.19008053839206696,
-0.43347737193107605,
-0.03344925865530968,
-0.20587752759456635,
-0.655697226524353,
-0.11339188367128372,
-0.2159023880958557,
0.17740291357040405,
-0.0582868866622448,
0.11950347572... | |
I have a header table that has a list of web pages in it. Each record has a page URL field which I am looking to parse out into a hierarchy (TreeView). I am not sure of the best way to go about it and I am having a problem getting it to work.
Here's an example of URLS:
```
/file1.aspx
/file2.aspx
/aFolder/file.aspx
/... | [
0.3674449026584625,
0.3377712070941925,
0.6593183875083923,
-0.022382361814379692,
-0.19779859483242035,
-0.15913346409797668,
-0.09066973626613617,
-0.07346758246421814,
-0.4376831650733948,
-0.6786183714866638,
0.20398172736167908,
0.14678813517093658,
-0.298755407333374,
0.4181202948093... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.