text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
scoped outside of the nested select within the nested select? Any thoughts? P.S. The identifier is indeed valid in the database table. The problem appears to be scope, but I want to make sure that is indeed an issue. I don't believe you can JOIN on a column (i.e. use it in the ON clause) that's not in one of the table...
[ 0.5087064504623413, 0.12379150092601776, 0.44370678067207336, -0.15770597755908966, 0.0682952031493187, -0.2705036401748657, 0.10249096155166626, -0.2647775709629059, -0.14923985302448273, -0.4986259639263153, 0.10319843143224716, 0.5554519891738892, -0.3805174231529236, -0.029128931462764...
INNER JOIN myschema.tableB tableB ON SDO_ANYINTERACT( tableB.shape, src.shape ) = 'TRUE' WHERE update_tableA.id = tableB.id ); ```
[ -0.1326563060283661, 0.13641317188739777, 0.5759577751159668, -0.2583308815956116, 0.17650391161441803, -0.04768729954957962, 0.4909350872039795, -0.09122765064239502, 0.3432038426399231, -0.8651405572891235, -0.13289377093315125, 0.42667677998542786, -0.02584969624876976, 0.13636855781078...
It has to be simple, here's my CSS: ``` .progressImage { position:relative; top:50%; } .progressPanel { height:100%; width:100%; text-align:center; display:none; } <asp:Panel ID="pnlProgress" runat="server" CssClass="progressPanel"> <asp:Image ID="Image1" runat="server" CssClass="progressImage" ImageUrl="~/Ima...
[ -0.5289905071258545, 0.04119795188307762, 0.9287073612213135, -0.25880321860313416, -0.000420297437813133, 0.3157951533794403, 0.2630023658275604, -0.38956964015960693, -0.26993611454963684, -0.7409729361534119, -0.36154472827911377, 0.5860620737075806, -0.127962127327919, -0.5075591802597...
The following works for me in FF, IE, Safari. Set the negative margins to half the width/height of your image for perfect centering. Note that some parent of the progressPanel (body in this case) needs a height so that the progressPanel can fill it. ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "htt...
[ 0.3048834204673767, 0.02758919820189476, 0.8953779935836792, -0.1476289927959442, -0.282512366771698, 0.20749233663082123, -0.1719685047864914, -0.5686245560646057, -0.16609357297420502, -0.6194190382957458, 0.08498424291610718, 0.34730568528175354, 0.15750031173229218, -0.2655541896820068...
} .progressImage { position:absolute; top:50%; left:50%; margin-left:-16px; margin-top:-16px; } .progressPanel { position:relative;
[ -0.6850372552871704, -0.30695870518684387, 0.48683735728263855, 0.07098987698554993, 0.13558241724967957, 0.5468113422393799, -0.3537119925022125, -0.022480232641100883, 0.08956331759691238, -0.32629522681236267, -0.38840410113334656, 0.16005679965019226, -0.02784104458987713, -0.042587623...
height:100%; width:100%; text-align:center; background:red; } </style> </head> <body> <div class="progressPanel"><img class="progressImage" src="pic.jpg"/></div> </body> </html> ```
[ -0.09996053576469421, -0.19592367112636566, 0.6999640464782715, 0.07737082988023758, -0.09425648301839828, 0.4031422734260559, 0.031495265662670135, -0.4131494462490082, -0.24047693610191345, -0.43753620982170105, -0.21747608482837677, 0.2557123899459839, 0.44942507147789, -0.0652185976505...
I'm running Windows XP SP3 and I do have the latest .NET libraries installed, as well as Visual Studio 2008. I'm also running (and would like to continue to run) Apache HTTP Server as well, if that matters. Perhaps someone can provide a list of software that I need and then I can look up configuration or ask here if I...
[ 0.4998481571674347, 0.24530763924121857, 0.37876954674720764, -0.0037385744508355856, 0.0805656686425209, -0.07093996554613113, 0.03446777164936066, 0.13643454015254974, -0.44052332639694214, -0.437275230884552, -0.11272593587636948, 0.6237380504608154, 0.14956429600715637, 0.1097768619656...
(Press F5) If you have the professional version of XP you can install IIS 5 via Control Panel -> Add/Remove Windows Components and use that to host your website instead. To configure vs.net to use IIS instead, In Solution Explorer, right-click the name of the Web site for which you want to specify a Web server, and t...
[ 0.33157142996788025, -0.08649903535842896, 0.9631770849227905, -0.08539360761642456, -0.17688186466693878, -0.13745538890361786, 0.21873539686203003, -0.3300183117389679, -0.04342866316437721, -0.5887432098388672, -0.16586381196975708, 0.8187617659568787, -0.05959121510386467, 0.3446158170...
Is there a simple attribute or data contract that I can assign to a function parameter that prevents `null` from being passed in C#/.NET? Ideally this would also check at compile time to make sure the literal `null` isn't being used anywhere for it and at run-time throw `ArgumentNullException`. Currently I write somet...
[ -0.038553185760974884, 0.1333947479724884, 0.1761663258075714, -0.2989068031311035, -0.11182956397533417, -0.24238848686218262, 0.3153388500213623, 0.024511869996786118, -0.18923187255859375, -0.4983609914779663, -0.09889739751815796, 0.6693059802055359, -0.367031067609787, 0.1161872148513...
a bit of a [hacky solution](https://web.archive.org/web/20081231232311/http://msmvps.com/blogs/jon_skeet/archive/2008/10/06/non-nullable-reference-types.aspx) which I posted on my blog recently, which uses a new struct and conversions. In .NET 4.0 with the [Code Contracts](http://research.microsoft.com/contracts/) stu...
[ 0.31766989827156067, -0.2279123067855835, 0.35295918583869934, -0.022862764075398445, -0.3610559105873108, -0.09128806740045547, 0.641372799873352, -0.08602272719144821, -0.10981916636228561, -0.3786632716655731, -0.12076154351234436, 0.18126538395881653, -0.28757649660110474, 0.0405636839...
solves in C doesn't apply to C#.
[ -0.7024742364883423, 0.3701976537704468, 0.24114364385604858, 0.15125206112861633, -0.05586990341544151, -0.09320342540740967, 0.37052685022354126, 0.05522649735212326, -0.13493488729000092, -0.17491084337234497, -0.5261175036430359, 0.308098703622818, -0.5313142538070679, -0.3824630677700...
Thanks for reading this. I am dynamically generating some data which includes a select drop-down with a text box next to it. If the user clicks the select, I am dynamically populating it (code below). I have a class on the select and I was hoping the following code would work. I tested it with an ID on the select and ...
[ 0.3010946214199066, -0.40608710050582886, 0.062055110931396484, 0.42207589745521545, 0.13691715896129608, -0.17601634562015533, 0.009752909652888775, 0.30899348855018616, -0.25487229228019714, -0.646752119064331, -0.004977974575012922, 0.3548694849014282, -0.07964770495891571, 0.0494528599...
I could not get it to work. Any ideas would be helpful. Thanks The relevance of the text box next to the select is the second part of the code...to update the text box when an option is selected in the select `.one` is so the select is updated only once, then the `.bind` allows any options selected to be placed in th...
[ 0.0058950381353497505, -0.37905752658843994, 0.5710628032684326, -0.038933079689741135, 0.34346771240234375, 0.08253069967031479, 0.004094539675861597, -0.0519094355404377, -0.02450900338590145, -0.9324144721031189, -0.14951907098293304, 0.5320943593978882, -0.21644815802574158, 0.08057934...
'param' : myParams }, success: function(request) { $(this).html(request); // populate select box } // End success }); // End ajax method $(this).bind("click", function() { $(this).next().val($(this).val()); }); // End BIND }); // End One <select id="mySelect" class="classSelect">...
[ -0.2932780683040619, -0.2570131719112396, 0.6607436537742615, 0.018941232934594154, -0.17095345258712769, 0.02265315316617489, 0.22489650547504425, -0.2885685861110687, -0.2176268845796585, -0.5896559357643127, -0.4271289110183716, 0.509977400302887, -0.3070317506790161, 0.0852925404906272...
$(this); // does not refer to $('.classSelect') }); }); ``` a better way to handle this may be: ``` $('.classSelect').one("click", function() { var e = $(this); $.ajax({ ... success : function(request) { e.html(request); } }); // end ajax $(this).bind('click', funct...
[ -0.017367616295814514, -0.18547435104846954, 0.21734267473220825, -0.03105892613530159, 0.06418963521718979, -0.32441142201423645, 0.32011500000953674, 0.02573079988360405, -0.1429847925901413, -0.7356370687484741, -0.14626720547676086, 0.6607252955436707, -0.408324658870697, -0.0342295467...
familiar with the [`load()`](http://docs.jquery.com/Ajax/load) method? i find it easier for basic ajax (as it acts on the wrapped set, instead of it being a standalone function like `$.ajax()`. here's how i would rewrite this using `load()`: ``` $('.classSelect').one('click', function() { var options = { ty...
[ 0.05088274925947189, -0.2577512562274933, 0.30181702971458435, -0.15962623059749603, 0.011003104969859123, -0.12099266797304153, 0.1603577435016632, -0.0454268679022789, -0.08435561507940292, -0.7930148839950562, -0.19551733136177063, 0.6567937731742859, -0.2515581548213959, -0.04451024532...
'param' : myParams } } // end options // load() will automatically load your .classSelect with the results $(this).load(myUrl, options); $(this).click(function() { // etc... }); // end click }); // end one ```
[ -0.1802467554807663, -0.17930170893669128, 0.6158961653709412, -0.2229779064655304, 0.2521040737628937, 0.2510141134262085, 0.22994491457939148, -0.15413394570350647, -0.2067631185054779, -0.6165617108345032, -0.3565177917480469, 0.4932365417480469, -0.445708304643631, 0.1839294731616974, ...
I have an XSD file that is encoded in UTF-8, and any text editor I run it through doesn't show any character at the beginning of the file, but when I pull it up in Visual Studio's debugger, I clearly see an empty box in front of the file. ![Box in file](https://i294.photobucket.com/albums/mm93/geostock/bom3.jpg) I a...
[ 0.35911738872528076, 0.36237722635269165, 0.24226225912570953, 0.07830272614955902, -0.09324284642934799, -0.15075477957725525, 0.10209202021360397, 0.11614593863487244, -0.3223709166049957, -0.663569450378418, -0.13875655829906464, 0.3506585359573364, -0.28536364436149597, 0.0825361087918...
Order Mark](http://en.wikipedia.org/wiki/Byte_Order_Mark), which is a character that tells whatever is loading the document what it is encoded in. In my case, it's encoded in utf-8, so the corresponding BOM was `EF BB BF`, as shown below. To remove it, I opened it up in [Notepad++](http://notepad-plus.sourceforge.net/u...
[ -0.11956445127725601, 0.2262350171804428, 0.3842484652996063, -0.40758439898490906, 0.008474869653582573, 0.3574537932872772, 0.1423352211713791, -0.13411976397037506, -0.36125728487968445, -0.4412727653980255, -0.3890686333179474, 0.11069978028535843, -0.4034036099910736, 0.09313907474279...
thought I'd share this with everyone. **Update**: If I had read Joel Spolsky's blog post: [*The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)*](http://www.joelonsoftware.com/articles/Unicode.html), then I might not have had this problem.
[ 0.13508130609989166, 0.0902620404958725, 0.054238211363554, 0.1168496161699295, -0.2777132987976074, -0.24177494645118713, 0.26610493659973145, 0.20759737491607666, -0.15948283672332764, -0.3009164035320282, -0.3712013363838196, 0.21171733736991882, 0.22602620720863342, -0.0235416032373905...
I am using jQuery to make an AJAX request to a remote endpoint. That endpoint will return a JSON object if there is a failure and that object will describe the failure. If the request is successful it will return HTML or XML. I see how to define the expected request type in jQuery as part of the `$.ajax()` call. Is th...
[ 0.23583903908729553, -0.06968256086111069, 0.327667236328125, 0.04001597687602043, -0.16010010242462158, -0.3609843850135803, 0.17956218123435974, 0.2872109115123749, 0.16079644858837128, -0.6047176122665405, -0.17388078570365906, 0.4264640510082245, -0.0037398478016257286, 0.0283562652766...
//dataType: "html", data: { "Param2": param0val, "Param1": param1val }, success: function(data) { //data could be JSON or XML/HTML
[ -0.2589789032936096, -0.12868961691856384, 0.25434133410453796, 0.2702089250087738, -0.14998365938663483, 0.5875551104545593, 0.39773809909820557, -0.6286202669143677, -0.2861326336860657, -0.48263636231422424, -0.4165039360523224, 0.3539271652698517, 0.15548408031463623, -0.35190549492836...
}, error: function(res, textStatus, errorThrown) { alert('failed... :('); } } ); ``` Have you application generate correct Content-Type headers (application/json, text/xml, etc) and handle those in your success callback. Maybe something like this will work? ``` xhr = $.ajax( ...
[ 0.30051395297050476, -0.13324427604675293, 0.14017756283283234, 0.1982223093509674, 0.11570119112730026, -0.2802240550518036, 0.27859798073768616, 0.09514576196670532, -0.14537207782268524, -0.6084880232810974, -0.2910321056842804, 0.5667811632156372, -0.19697609543800354, -0.1717894822359...
success: function(data) { var ct = xhr.getResponseHeader('Content-Type'); if (ct == 'application/json') { //deserialize as JSON and continue } else if (ct == 'text/xml') {
[ -0.09736094623804092, 0.05103055015206337, 0.5805403590202332, 0.08855175971984863, 0.1884211152791977, -0.040530841797590256, 0.36347290873527527, -0.3042915463447571, -0.13327743113040924, -0.29981961846351624, -0.7828454375267029, 0.6692519783973694, -0.07025440782308578, 0.052998214960...
//deserialize as XML and continue } }, //SNIP ); ``` Untested, but it's worth a shot.
[ 0.21465212106704712, -0.16596464812755585, 0.18264852464199066, 0.1982765644788742, 0.07385354489088058, -0.25268563628196716, 0.24266384541988373, 0.02031785063445568, 0.14026562869548798, -0.5798993110656738, -0.3968300521373749, 0.5122119784355164, -0.12604331970214844, 0.01226557977497...
In the Windows registry, how does `CurrentControlSet` differ from `ControlSet001` and `ControlSet002`? Which should be set when installing for all users? We are trying to add an environment variable for all users. Is this correct? ``` HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Envinronment ``` Yes, you on...
[ -0.30963650345802307, -0.04153940826654434, 0.3808826506137848, 0.2976803481578827, 0.32227566838264465, -0.19236107170581818, 0.261481910943985, -0.11150365322828293, -0.2473764270544052, -0.49916186928749084, -0.22992448508739471, 0.5592153668403625, -0.45667731761932373, 0.0782710611820...
see [archive.org backup page](https://web.archive.org/web/20150217152952/http://support.microsoft.com/kb/100010) instead.
[ 0.09258188307285309, 0.2197154015302658, -0.2983696162700653, 0.2045994997024536, -0.0025729869958013296, 0.13214388489723206, 0.1422112137079239, 0.122874416410923, -0.37877026200294495, -0.2855614721775055, -0.6944043040275574, 0.07715218514204025, -0.14628680050373077, 0.263234645128250...
I have a simple WPF application with a menu. I need to add menu items dynamically at runtime. When I simply create a new menu item, and add it onto its parent MenuItem, it does not display in the menu, regardless of if UpdateLayout is called. What must happen to allow a menu to have additional items dynamically added ...
[ 0.14832133054733276, -0.1826232671737671, 0.4970445930957794, -0.2796160578727722, 0.21695202589035034, -0.009400437586009502, 0.30998724699020386, -0.2664204239845276, -0.20382560789585114, -0.6300334930419922, -0.12600615620613098, 0.5290189385414124, -0.5293747186660767, 0.2738642990589...
mi.Visibility = Visibility.Visible; //addTest is a menuitem that exists in the forms defined menu addTest.Items.Add(mi); addTest.UpdateLayout(); ``` At the moment, the default menu items are defined in the xaml file. I want to add additional menu items onto this menu and its existi...
[ 0.10683365166187286, 0.028813008219003677, 0.3049449026584625, -0.2142122983932495, 0.359046995639801, 0.22597567737102509, 0.44494444131851196, -0.10415815562009811, -0.00035050761653110385, -0.8604065179824829, -0.2900800108909607, 0.33882784843444824, -0.24728377163410187, 0.20584538578...
"Test 123"; this.MainMenu.Items.Add(newMenuItem1); //Add to a sub item MenuItem newMenuItem2 = new MenuItem(); MenuItem newExistMenuItem = (MenuItem)this.MainMenu.Items[0]; newMenuItem2.Header = "Test 456"; newExistMenuItem.Items.Add(newMenuItem2); ```
[ 0.41571134328842163, -0.17069019377231598, 0.13723492622375488, -0.18566903471946716, 0.27761295437812805, 0.1246018186211586, 0.5027493834495544, -0.5189788937568665, -0.09623570740222931, -0.4194081127643585, -0.4664549231529236, 0.37330639362335205, -0.3062857985496521, 0.06025503203272...
I'm currently using the Yahoo YUI javascript library in a couple of my projects. However, I'm a little concerned about three things. First, they laid off 10% of their employees. Second, their stock price keeps falling: especially after ignoring the MS takeover earlier this year. Third, what if someone does buy them? ...
[ 0.6225952506065369, 0.12076549977064133, 0.014760030433535576, 0.12029818445444107, -0.15212382376194, -0.2359757274389267, 0.2460019439458847, 0.1271113008260727, -0.16347433626651764, -0.3313802182674408, 0.09037482738494873, 0.25747135281562805, -0.05218666046857834, 0.21956774592399597...
have other people to continue to improve it IF Yahoo would go bankrupt. No technology is 100% safe for 10 years perspective, I think you aren't in danger with it. In 10 years Javascript will be completely difference and most framework will not be the same so I think whatever you choose you will need to change a lot o...
[ 0.6144381761550903, 0.053016841411590576, -0.06277643889188766, 0.2153083086013794, -0.03337574750185013, -0.1876368522644043, 0.5084874629974365, 0.3957504332065582, -0.09273543208837509, -0.7713523507118225, 0.24097923934459686, 0.6139430999755859, -0.015956461429595947, -0.2408695667982...
I moved a bunch of projects to Solution Folders to chop up our list of projects into manageable folders, now each of the folders projects are not in alphabetical order. This only occurs on machines other than my own. Any ideas how to alleviate this? See the following bug information on MS Connect: <https://connect.mic...
[ 0.3263660669326782, -0.13758908212184906, 0.2742277681827545, 0.06196470558643341, 0.037833403795957565, 0.3665158748626709, 0.2582852244377136, 0.05250663310289383, -0.36543041467666626, -0.9249951243400574, 0.015296862460672855, 0.13249088823795319, -0.26766833662986755, 0.19274385273456...
and put the projects in the order you wish.
[ 0.601382851600647, 0.37258127331733704, -0.06052381545305252, -0.03152003139257431, 0.15696777403354645, 0.00751229515299201, -0.17343756556510925, 0.32725968956947327, -0.17287923395633698, -0.5574100017547607, -0.13845565915107727, 0.47076180577278137, 0.2110264152288437, -0.148914933204...
I'm building a project along with a Dll. The Dll must support native code so I declared it as a /clr. My project was initialy also a /clr project and everything was fine. However I'd like to include some NUnit testing so I had to switch my main project from /clr to /clr:pure. Everything still compiles but any Dll cal...
[ 0.38580065965652466, 0.13434040546417236, 0.42451655864715576, -0.32446974515914917, -0.27385032176971436, -0.13783404231071472, 0.3438473641872406, 0.07615616172552109, -0.1479315459728241, -0.46488192677497864, -0.10352475196123123, 0.7670247554779053, -0.3612186014652252, 0.273583620786...
real names of all the exported functions ``` LIBRARY "Controller" EXPORTS DisplayScan ``` From my main project my imports are declared as follow : ``` #define _DllImport [DllImport("Controller.dll", CallingConvention = CallingConvention::Cdecl)] static _DllImport bool DisplayScan(bool bShow, bool bAllPasses) ``` ...
[ 0.19011403620243073, -0.016722390428185463, 0.5576707124710083, 0.04436321556568146, -0.0002096947719110176, -0.16821955144405365, 0.26432520151138306, 0.2570931911468506, -0.369451105594635, -0.44777634739875793, -0.08752630650997162, 0.6361217498779297, -0.4976145625114441, 0.43179309368...
Using strictly SQL (no PHP or anything else), is it possible to create a table **and insert default data into that table** only if that table doesn't exist? Use the CREATE TABLE ... SELECT format: ``` create table if not exists tablename as select * from defaultdata; ```
[ 0.08953361958265305, -0.05354471132159233, 0.25327014923095703, 0.14658217132091522, 0.2988646626472473, -0.24998469650745392, 0.031447798013687134, -0.017201444134116173, -0.04055782034993172, -0.582822322845459, -0.28269127011299133, 0.4218152165412903, -0.3482142388820648, -0.0550192892...
I am trying to design a location lookup in which the user can specify a location to any desired level of accuracy. eg. one of Country, State, City, Borough etc, I have a used a common location table, which will then be used in a lookup with the table name selected dynamically, but was wondering if there is a feasible ...
[ 0.1654612272977829, 0.012341698631644249, 0.4482251703739166, 0.19223950803279877, 0.12719544768333435, -0.14330844581127167, 0.0698300302028656, 0.1815042942762375, -0.2212744653224945, -0.8879531025886536, 0.06373728811740875, 0.12641431391239166, -0.17984223365783691, 0.2026104778051376...
location with any level depth.
[ -0.5349633693695068, 0.17472238838672638, 0.37967902421951294, 0.08563931286334991, 0.04855570197105408, -0.31411999464035034, 0.3672249913215637, 0.2810378670692444, -0.18162670731544495, -0.6246057748794556, -0.40878286957740784, -0.05331457033753395, -0.06053731590509415, -0.31593081355...
Someone posted a great little function here the other day that separated the full path of a file into several parts that looked like this: ``` Function BreakDown(Full As String, FName As String, PName As String, Ext As String) As Integer If Full = "" Then BreakDown = False Exit Function End If If InStr(Full, "\")...
[ -0.20235790312290192, -0.26571381092071533, 0.26723164319992065, -0.19175152480602264, 0.2970168888568878, -0.002515330445021391, 0.8062707185745239, 0.26458191871643066, -0.22779101133346558, -0.0585850328207016, -0.48381465673446655, 0.7446212768554688, -0.2589569687843323, 0.29200223088...
End If Dot% = InStr(Full, ".") If Dot% <> 0 Then Ext = Mid$(Full, Dot%) Else Ext = "" End If BreakDown = True End Function ``` However if the line continues past that point it counts it as part of the extension, is there anyway to make this only count to 3 characters after the last period in a string? ``` Dot% = I...
[ -0.29854026436805725, -0.26694074273109436, 1.009047031402588, -0.5251789689064026, 0.028533123433589935, 0.2467813789844513, 0.5563238263130188, -0.11704709380865097, -0.009518538601696491, -0.4082566499710083, -0.7712675333023071, 0.5146047472953796, -0.15020234882831573, 0.0548689216375...
I have a huge text file (~1GB) and sadly the text editor I use won't read such a large file. However, if I can just split it into two or three parts I'll be fine, so, as an exercise I wanted to write a program in python to do it. What I think I want the program to do is to find the size of a file, divide that number ...
[ 0.1536509245634079, 0.23273628950119019, 0.005512011703103781, -0.1887494921684265, -0.05766201764345169, 0.06796996295452118, 0.17832297086715698, 0.15979602932929993, -0.39907944202423096, -0.58060622215271, 0.08823753148317337, 0.3811412453651428, 0.22526121139526367, 0.1517193466424942...
the output file, etc. Obviously the last output file just copies to the end of the input file. Can you help me with the key filesystem related parts: filesize, reading and writing in chunks and reading to a line-break? I'll be writing this code test-first, so there's no need to give me a complete answer, unless its a...
[ 0.24533098936080933, 0.04171260446310043, 0.318244606256485, 0.3501441180706024, 0.17872899770736694, -0.11701496690511703, 0.12467003613710403, 0.039693910628557205, -0.2461622655391693, -0.595199465751648, -0.12207470834255219, 0.704556405544281, 0.05536389723420143, -0.18152640759944916...
I've created a windows forms control, which is hosted in a web page viewable with Internet Explorer. My control reads from a com port and it writes to the event log. Both of these operations by default fail when the framework requests proper permissions. This web application will always be running in the intranet zone...
[ -0.05276074633002281, 0.18307814002037048, 0.7893396019935608, -0.05145878344774246, 0.3073175549507141, 0.005717884283512831, 0.3068840801715851, -0.325249582529068, 0.027136066928505898, -0.7769196033477783, -0.06080656498670578, 0.38438013195991516, -0.22603808343410492, 0.4359010457992...
System.Diagnostics.EventLogEntryType.Error); //Exception Here ``` > Request for the permission of type > 'System.Diagnostics.EventLogPermission,System, > Version=2.0.0.0, > Culture=neutral,PublicKeyToken=b77a5c561934e089 > failed. Code to embed my control in the browser: ``` <object width="600px" height="300px"...
[ 0.2272077202796936, 0.030881600454449654, 0.5417131185531616, 0.2916855812072754, 0.26022353768348694, -0.05096111819148064, 0.5139418840408325, -0.386392742395401, -0.12323114275932312, -0.4221334457397461, -0.0587817020714283, 0.3308739960193634, -0.25764352083206177, 0.2409779578447342,...
I am creating my textbox with these options. I can Copy / Cut / Paste / Undo, but when I hit **Select All** it doesn't select all. I can right click and click **Select All** but `CTRL` + `A` doesn't do anything. Why? ``` wnd = CreateWindow("EDIT", 0, WS_CHILD | WS_VISIBLE | ES_MULTILINE | WS_HSCROLL | WS_VSCROLL |...
[ 0.17846228182315826, 0.0934005081653595, 0.5726009011268616, -0.1040983498096466, 0.007485660724341869, 0.07437969744205475, 0.4505034387111664, -0.11091601848602295, -0.08488669246435165, -0.8331781029701233, -0.33723995089530945, 0.48376035690307617, -0.3474094867706299, 0.18211252987384...
to a page on an MS site concerning talking with an Edit control (a simple editor within the Edit control): > The edit control uses `WM_CHAR` for > accepting characters, not `WM_KEYDOWN` > etc. You must `Translate()` your > messages or you ironically won't be > able to edit the text in the edit > control. I don't know...
[ -0.10569663345813751, 0.12519000470638275, 0.4418015778064728, -0.17488420009613037, -0.11478855460882187, 0.02368369698524475, 0.5847328901290894, 0.03934144228696823, -0.06917734444141388, -0.5278237462043762, -0.5170440673828125, 0.5095133185386658, -0.5602573156356812, 0.19900180399417...
Is there a way to recursively add all "non added" files to SVN? I want to do something like ``` svn add trunk/ ``` to add all new files, without getting: ``` svn: warning: 'trunk' is already under version control ``` If this is not possible, is there a way to get a list of all files that are not under version co...
[ 0.27282583713531494, -0.09657846391201019, 0.3827827572822571, -0.05831833556294441, 0.02381156012415886, -0.34303492307662964, 0.29240676760673523, 0.08193089067935944, -0.5827964544296265, -0.4891490042209625, -0.26411768794059753, 0.7210708260536194, -0.48829203844070435, 0.103495948016...
Is it possible to programmatically either via the win32API (python) or via a command line option set the processor affinity for a process? Given a process handle, you can call the [SetProcessAffinityMask](http://msdn.microsoft.com/en-us/library/ms686223(VS.85).aspx) Win32 API function to set the processor affinity for ...
[ 0.26832637190818787, -0.1373027265071869, 0.2771567106246948, -0.1292383372783661, 0.11569342762231827, 0.009417341090738773, -0.04108532518148422, -0.19886671006679535, -0.3171123266220093, -0.47082602977752686, 0.025694353505969048, 0.45238617062568665, -0.3317091763019562, -0.1070975959...
Doesn't an ORM usually involve doing something like a select \*? If I have a table, MyThing, with column A, B, C, D, etc, then there typically would be an object, MyThing with properties A, B, C, D. It would be evil if that object were incompletely instantiated by a select statement that looked like this, only fetch...
[ 0.03797967731952667, 0.06293656677007675, 0.2139052152633667, 0.040895916521549225, -0.16968020796775818, 0.09605927765369415, 0.012428052723407745, -0.37951281666755676, -0.3755408525466919, -0.3701792359352112, -0.1922650784254074, 0.25500231981277466, -0.29748207330703735, 0.04403166845...
we can completely instantiate the MyThing object \*/ Does ORM make an assumption that database access is so fast now you don't have to worry about it and so you can always fetch all the columns? Or, do you have different MyThing objects, one for each combo of columns that might happen to be in a select statement? **...
[ 0.2583865225315094, -0.007085223216563463, 0.04301585257053375, 0.40557312965393066, 0.028383901342749596, -0.027229754254221916, 0.09691508859395981, -0.44610023498535156, -0.2502796947956085, -0.33036133646965027, -0.17458991706371307, 0.3808757960796356, -0.1424466073513031, -0.41025725...
we need entity objects?](https://stackoverflow.com/questions/18655/why-do-we-need-entity-objects) <http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx>, especially the section "The Partial-Object Problem and the Load-Time Paradox" <http://groups.google.com/group/comp.object/browse_thread/thread...
[ 0.41233766078948975, 0.30097874999046326, 0.552960991859436, 0.24082043766975403, 0.258583128452301, 0.1070370227098465, -0.08737868070602417, -0.031774554401636124, -0.03317667171359062, -0.12267099320888519, -0.020102720707654953, 0.724574089050293, -0.024003909900784492, 0.3529390990734...
properties, most notably a `Description` property that can contain a substantially large amount of text about the `Brand`. No two ways about it, loading all of that extra information about the brand just to spit out its name in an unordered list is (1) measurably and significantly slow, usually because of the large tex...
[ 0.21761742234230042, 0.30481070280075073, -0.03806701675057411, 0.3718126118183136, -0.1772250384092331, -0.3017483949661255, 0.31238222122192383, -0.05176094174385071, -0.16086611151695251, -0.4788065254688263, -0.237321138381958, 0.559269905090332, -0.0028391489759087563, 0.4405350089073...
but that time-consuming and memory-wasting `Description` field is not until we try to invoke its `get` accessor. At that point, the proxy object will intercept our call and suck down the description from the database just in time. This is sometimes good enough but has burned me enough times that I personally don't reco...
[ 0.2987504005432129, 0.19211557507514954, 0.42874932289123535, 0.18689966201782227, 0.16289865970611572, -0.2542094588279724, 0.379093736410141, -0.05095500871539116, -0.28275394439697266, -0.5185665488243103, -0.21396608650684357, 0.5548580288887024, -0.0791027620434761, 0.1853664815425872...
I can almost guarantee that any code that is doing something as innocuous as `string desc = brand.Description` was not expecting that simple call to toss a `DataAccessException`. Now you've just crashed in a nasty and unexpected way. (Yes, I've watched my app go down hard because of just that. Learned the hard way!) S...
[ 0.15157175064086914, 0.35431692004203796, -0.21484006941318512, 0.24702468514442444, 0.07485673576593399, -0.2238762527704239, 0.20089668035507202, 0.27564746141433716, -0.37076887488365173, -0.4575066566467285, 0.014105918817222118, 0.6337274312973022, 0.20212368667125702, 0.2803068459033...
plans carefully examined. The architecture ends up looking kind of like this (forgive the ASCII art): ``` Web Site: Controller Classes | |---------------------------------+ |
[ 0.41807469725608826, -0.3218539357185364, 0.47592785954475403, 0.40581005811691284, 0.31332847476005554, -0.1475953459739685, -0.06573974341154099, 0.10756207257509232, -0.31188759207725525, -0.7863297462463379, -0.23286302387714386, 0.2032269835472107, -0.1278619021177292, 0.3228048086166...
| App Server: IDocumentService IOrderService, IInventoryService, etc (Arrays, DataSets) (Regular OO objects, like Brand)
[ 0.05104736238718033, 0.15529318153858185, 0.38876739144325256, 0.04305095225572586, -0.005821782164275646, 0.5501322746276855, 0.055080924183130264, 0.10352027416229248, -0.12992040812969208, -0.7618327736854553, -0.49129006266593933, 0.39464542269706726, -0.4604472219944, -0.1376286447048...
| | | |
[ -0.18206581473350525, 0.2749342918395996, 0.46267056465148926, -0.512140691280365, 0.0756695419549942, 0.014543266966938972, 0.5250948667526245, 0.16347238421440125, -0.15377552807331085, -0.4539424479007721, 0.1049787625670433, 0.22494570910930634, -0.35328975319862366, -0.056681960821151...
| | Data Layer: (Raw ADO.NET returning arrays, ("Full cream" ORM like NHibernate) DataSets, simple classes) ``` I used to think that this was cheating, subverting the OO object model. But in a practical sense,
[ 0.09060526639223099, 0.06712241470813751, -0.01729658432304859, -0.04092283174395561, -0.40252983570098877, -0.21651113033294678, 0.0896696224808693, 0.13912267982959747, 0.031086765229701996, -0.5252405405044556, -0.29040563106536865, 0.15976890921592712, -0.34433606266975403, 0.343792319...
as long as you do this shortcut for displaying data, I think it's all right. The updates/inserts and what have you still go through the fully-hydrated, ORM-filled domain model, and that's something that happens far less frequently (in most of my cases) than displaying particular subsets of the data. ORMs like NHibernat...
[ 0.405020534992218, -0.1150411069393158, 0.4733361303806305, 0.21920689940452576, -0.09140774607658386, -0.16904297471046448, 0.11291512846946716, 0.285297691822052, -0.1957005113363266, -0.5083842873573303, 0.3363443613052368, 0.4847894012928009, -0.08620791882276535, 0.01364679355174303, ...
Currently, I'm using a strategy found on many blog posts. Basically, the URL contains the page number (e.g. /Users/List/5 will give you the users on page 5 of your paged list of users). However, I'm not running into a situation where one page must list two separate paged lists. How do I go about doing this using ASP.NE...
[ 0.4682484567165375, 0.02943040244281292, 0.6712796688079834, 0.11093350499868393, -0.34761783480644226, -0.048680566251277924, 0.35575541853904724, -0.030214497819542885, -0.45532214641571045, -0.8858076333999634, 0.05272192880511284, 0.28857749700546265, -0.04650315269827843, 0.5176383256...
the data/pagers accordingly. The pager links will just update the url. You can get creative with routes to create more friendly URLs, but I think querystring params are perfectly acceptable here.
[ 0.21929046511650085, 0.07067900896072388, 0.7737083435058594, 0.48317158222198486, -0.30490800738334656, -0.26439398527145386, 0.18243993818759918, -0.04423200711607933, -0.3196929395198822, -0.46780458092689514, -0.15279428660869598, 0.5833050608634949, -0.05037510022521019, 0.11337213218...
I would like to match "approximate" matches in Web.SiteMap The Web.Sitemap static sitemap provider works well, except for one thing. IT'S STATIC! So, if I would have to have a sitemapnode for each of the 10,000 articles on my page like so : * site.com/articles/1/article-title * site.com/articles/2/another-article-ti...
[ 0.1128072664141655, 0.014789489097893238, 0.48548954725265503, 0.2313956767320633, -0.001197009114548564, -0.2962193191051483, 0.163596972823143, 0.1636614203453064, -0.3706468939781189, -0.60285484790802, 0.3115899860858917, 0.3971293866634369, 0.08373381942510605, -0.019839923828840256, ...
solution for Webforms. I think what I'm going to have to do is create a custom SiteMap Provider This is in response to the comment above. I can't post the full code, but this is basically how my provider works. Suppose you have a page article.aspx, and it uses query string parameter "id" to retrieve and display an ar...
[ -0.07460902631282806, -0.15561558306217194, 0.7056846618652344, 0.11965377628803253, 0.06555834412574768, 0.03406078740954399, 0.21119792759418488, -0.42309868335723877, -0.24471259117126465, -0.8540825247764587, 0.0074497708119452, 0.37997397780418396, -0.34087786078453064, 0.185872375965...
string url = item.SiteMapNode.Url; string param = item.SiteMapNode["param"]; // get parameter value int id = System.Web.HttpContext.Current.Request.QueryString[param]; // retrieve article from database using id <write your own code> // override node link HyperLink link = new...
[ -0.35507985949516296, 0.05455264449119568, 0.9518364071846008, -0.04229988530278206, -0.15259483456611633, 0.13672997057437897, 0.2798287570476532, -0.4503210186958313, -0.6367777585983276, -0.4824274182319641, -0.45069628953933716, 0.22711387276649475, -0.4888128340244293, 0.5038032531738...
from the database>; link.ToolTip = <the article title from the database>; item.Controls.Add(link); } else { // if current node is a separator, initialize as usual base.InitializeItem(item); } } } ``` Finally, you use this provider in your code just like you would use the stat...
[ -0.2301676720380783, -0.43343570828437805, 0.6040632724761963, 0.20853036642074585, 0.01921803131699562, -0.14075593650341034, 0.08927358686923981, -0.3581100404262543, -0.22618702054023743, -0.5397322773933411, 0.09992969781160355, 0.2522055506706238, -0.3836977481842041, 0.26799473166465...
the friendly url you're using, and use that instead to retrieve the correct content. To minimize the additional db lookups with every request, you can add a caching mechanism to the provider (article title usually won't change often). Hope this helps.
[ 0.5041921734809875, -0.019957158714532852, 0.525366485118866, 0.330107718706131, -0.4558630585670471, -0.7674203515052795, 0.5176987648010254, 0.36289629340171814, 0.022757602855563164, -0.5865070223808289, -0.340727299451828, 0.5974259972572327, -0.1356634944677353, 0.13940349221229553, ...
I have a nested function to show/hide paragraphs news-ticker-style. The problem is that when the loop starts over (line 4), the opacity effects stop working correctly so the paragraphs appear abruptly. Any jquery masters know about this? Am I making this too hard? ``` $('#special-ticker p').hide(); var a=0; functio...
[ 0.35154515504837036, -0.064326211810112, 0.32386624813079834, -0.35331058502197266, -0.09948181360960007, 0.1291777789592743, 0.4063265323638916, -0.17935259640216827, -0.12237497419118881, -0.46435314416885376, -0.12923596799373627, 0.43548208475112915, -0.4107697010040283, 0.086912333965...
$(this).animate({opacity:100},10000,null,function(){ $(this).hide(800,function(){ a++; outer(); }); }); }); }
[ 0.33287447690963745, -0.20552411675453186, 0.08007501810789108, -0.42412513494491577, 0.2345075011253357, 0.3434607684612274, 0.4915483891963959, -0.45942816138267517, 0.11593490093946457, -0.5848055481910706, -0.132826030254364, 0.5249173045158386, -0.4573434293270111, 0.04116138815879822...
return inner(); } $(function(){ outer(); }); ``` the problem is line 9: ``` $(this).animate({opacity:100},10000,null,function(){ //... ``` opacity should be "1" (opacity is a value between 0 and 1) ``` $(this).animate({ opacity : 1 }, 10000, null, function() { ```
[ -0.5252352952957153, -0.01980612240731716, 0.48754414916038513, -0.3371444642543793, 0.11836061626672745, 0.3900802433490753, 0.04676615819334984, -0.17900043725967407, -0.17277957499027252, -0.5406076312065125, -0.21155565977096558, 0.6328551769256592, -0.5115916132926941, -0.062744379043...
i did this in msvc 2005. ``` typedef void (*cleanup_t)(); void func(cleanup_t clean) { cleanup_t(); } ``` Why does this compile? and not give me a warning? ok, it gave me a unreferenced formal parameter warning but originally i did this when clean was in a class no there was no unreferenced formal parameter whe...
[ 0.19312319159507751, -0.11580121517181396, 0.0590423084795475, -0.2097150832414627, -0.11114365607500076, -0.3627949357032776, 0.47559836506843567, 0.007178985048085451, -0.19462339580059052, -0.5716547966003418, 0.09116487950086594, 0.7696625590324402, -0.5934223532676697, 0.0763029456138...
like a constructor call, the "MyClass()" part of "MyClass c = MyClass();", except that pointer-to-function types don't actually have constructors. Of course in my code snippet here, "MyClass()" doesn't necessarily create a temporary, because it's an initializer expression. The "MyClass()" in "MyClass().some\_method();"...
[ -0.07984034717082977, -0.1796707808971405, 0.048967499285936356, -0.08618011325597763, -0.09521621465682983, -0.2583010494709015, 0.27355656027793884, 0.19403287768363953, -0.17572171986103058, -0.3423570990562439, -0.357003778219223, 0.3010140061378479, -0.30580875277519226, 0.20394007861...
has no effect". The code a person doing this might have meant to type, "clean();", wouldn't produce that warning because of course it would have the effect of calling the function. Yet another reason to switch warnings on, and fix 'em properly ;-)
[ 0.41715583205223083, 0.15209946036338806, 0.2502678632736206, -0.058475833386182785, 0.21051177382469177, -0.02891862578690052, 0.6231730580329895, -0.015799300745129585, -0.19514048099517822, -0.2475322186946869, -0.4011401832103729, 0.8056406378746033, -0.5213624835014343, 0.079307191073...
Howdy... here on my local LAN, I have a Windows Server 2k8 box with SQL Server 2k8 installed. I can connect to the database engine using the SSMS tool on the server, but attempting to connect to the database engine from a remote machine (also on the same LAN), the connection fails with the usual generic message about n...
[ 0.09577389061450958, 0.4672032594680786, 0.3688772916793823, 0.1831861138343811, 0.21498088538646698, -0.15291056036949158, 0.3764522671699524, -0.08519104868173599, -0.0274805910885334, -0.6076079607009888, 0.3444700539112091, 0.48576927185058594, -0.21580727398395538, 0.16818493604660034...
running, and verified that neither the Windows Firewall on the server nor on the client is getting in the way (tested with both completely disabled). I've even attempted to connect via the servers IP address on the LAN rather than it's Windows hostname. :) Does anyone know of any "uncommon" reasons (or even common on...
[ 0.04897889867424965, -0.08417827636003494, 0.44574806094169617, 0.2941323220729828, 0.06421227008104324, -0.3074397146701813, 0.2792426347732544, 0.3001461923122406, -0.2797287106513977, -0.8988552689552307, 0.05310610681772232, 0.7923144698143005, -0.17573505640029907, -0.0177894830703735...
Say I have the following in my `models.py`: ``` class Company(models.Model): name = ... class Rate(models.Model): company = models.ForeignKey(Company) name = ... class Client(models.Model): name = ... company = models.ForeignKey(Company) base_rate = models.ForeignKey(Rate) ``` I.e. there are mult...
[ 0.27961987257003784, 0.2520206570625305, 0.3914671838283539, -0.24402505159378052, 0.2707788646221161, 0.3775387406349182, -0.4854511618614197, 0.06226212903857231, -0.16482698917388916, -0.47948217391967773, -0.05512583255767822, 0.42736196517944336, -0.1398104876279831, 0.603695034980773...
`Company` page) and limit the `Rate` choices to that `Company` as well. How do I go about this in Django 1.0? My current `forms.py` file is just boilerplate at the moment: ``` from models import * from django.forms import ModelForm class ClientForm(ModelForm): class Meta: model = Client ``` And the `...
[ 0.28729239106178284, 0.13029922544956207, 0.7658106684684753, -0.277581125497818, -0.10470867902040482, -0.10608159005641937, -0.18400341272354126, -0.24051795899868011, -0.2773312032222748, -0.6035119891166687, -0.04277067258954048, 0.749850332736969, -0.2237120121717453, 0.11488711088895...
form.save() return HttpResponseRedirect(the_company.get_clients_url()) else: form = ClientForm() return render_to_response('addclient.html', {'form': form, 'the_company':the_company}) ``` In Django 0.96 I was able to hack this in by doing something like the following before rendering the ...
[ 0.2645206153392792, 0.18438656628131866, 0.6902923583984375, -0.5267401933670044, -0.13114680349826813, -0.05558042600750923, 0.11915306746959686, -0.3648908734321594, -0.019775377586483955, -0.5581091642379761, -0.11933008581399918, 0.7954466938972473, -0.3283320665359497, 0.0516768060624...
pretty basic request but if I should redesign something I'm open to suggestions.) ForeignKey is represented by django.forms.ModelChoiceField, which is a ChoiceField whose choices are a model QuerySet. See the reference for [ModelChoiceField](http://docs.djangoproject.com/en/dev/ref/forms/fields/#modelchoicefield). So,...
[ -0.016974778845906258, 0.19214005768299103, 0.3628721535205841, -0.2922421097755432, -0.10397570580244064, -0.13045531511306763, -0.08079458773136139, -0.0834311991930008, -0.09058692306280136, -0.5808390974998474, -0.09310354292392731, 0.6191694736480713, -0.40931692719459534, 0.009799031...
Having a relative path, how do I turn it into an absolute one from the location where the elisp file that I'm loading is. That is, I have an elisp file that I'm loading, it has an relative path and I need an absolute one. ``` 'file-truename ``` From the documentation: > Return the truename of FILENAME, which > shou...
[ -0.2871769368648529, -0.14103245735168457, 0.7594943046569824, 0.24169747531414032, 0.3236389756202698, 0.0461595393717289, 0.1982860416173935, 0.055938199162483215, -0.10225702822208405, -0.7797058820724487, -0.12337692081928253, 0.8819795846939087, -0.2505040466785431, 0.0523363910615444...
proffered ('expand-file-name) leaves symbolic links in place, which may or may not be what you want. 'file-truename uses 'expand-file-name, so they both will determine the path relative default-directory for the buffer (which is what you're asking for). After seeing the comment/question to a different answer, the prob...
[ -0.02668808586895466, -0.08804044127464294, 0.677405834197998, -0.11159472912549973, -0.06996436417102814, -0.09828747063875198, -0.033041566610336304, -0.3445470631122589, -0.03404352441430092, -0.40783196687698364, -0.2676541209220886, 0.5664887428283691, -0.3641856908798218, -0.02271471...
I'm trying to highlight the search results but I want to include the surrounding text that is limited by the enclosing tags. So if the $term is "cool" the preg\_replace should end up with: ``` <div><span style="background: #f00">My hair cut so cool!</span></div> ``` Unfortunately my regex doesn't seem to capture th...
[ 0.5927591323852539, -0.01343797892332077, 0.6454330086708069, 0.03807739168405533, 0.05015479400753975, 0.09858851879835129, 0.29349616169929504, -0.08837515115737915, -0.29012492299079895, -0.22026528418064117, -0.3008059561252594, 0.38906657695770264, -0.029619969427585602, 0.14223231375...
echoing results here 12: echo '<div>' . $item->text . '</div>'; 13: } 30: $content = ob_get_contents(); 31: ob_clean() ; 32: 33: $pattern = "/(?<!<[^>])($term)/i"; 34: $replace = "<span style=\"background: #f00\">$1</span>"; 35: echo preg_replace($pattern, $replace, $content); 36: ...
[ -0.111869215965271, 0.03520653024315834, 0.6147880554199219, -0.25325486063957214, -0.1694418042898178, 0.34332990646362305, 0.38228267431259155, -0.6498912572860718, -0.3571355938911438, -0.14628636837005615, -0.16871768236160278, 0.3291422426700592, -0.577484667301178, 0.1072253510355949...
instead of each loop over the data. Finding a term and everything up to the HTML tags before and after it is the same as finding the term an all characters before and after it that aren't angular brackets. This is trivial with a regex: ``` $pattern = "/[^<>]*$term[^<>]*/i"; $replace = "<span style=\"background: #f00\"...
[ 0.2104916125535965, -0.348884642124176, 0.5916777849197388, -0.08702316135168076, -0.19638045132160187, -0.17409949004650116, 0.20744304358959198, -0.43545976281166077, -0.28221988677978516, -0.6202594637870789, -0.35338443517684937, 0.606611430644989, -0.3470294773578644, -0.2830174565315...
I'd like to add a custom title to one of the predefined UITabBarItems. Whenever I select the particular instance I like in Interface Builder -- if I modify the the title it gets preset back to a 'custom' identifier. Ideally I'd like the book icon from the 'Bookmarks' identifier with my own custom title. Is this level ...
[ 0.42693138122558594, 0.2505507171154022, 0.4751834571361542, 0.14121724665164948, -0.41741102933883667, -0.1846921592950821, 0.1628270447254181, 0.14223861694335938, -0.1172255352139473, -0.5653998851776123, -0.0435618981719017, 0.655113160610199, -0.138972669839859, 0.1660754382610321, ...
supplied and described entirely by the OS (ie, it assigns them icons and titles), and those described entirely by the app, as you've discovered. By far the simplest solution is to pull the icon out of somewhere else and use it with `-initWithTitle:image:tag`. <http://img369.imageshack.us/img369/8388/openbookwp4.png>
[ 0.24292422831058502, 0.08946018666028976, 0.5796915888786316, 0.279230535030365, 0.4059255123138428, 0.18971958756446838, 0.13419310748577118, 0.08110130578279495, -0.3547520637512207, -0.5670671463012695, -0.6499977111816406, 0.4486824572086334, -0.18066872656345367, -0.06858257204294205,...
I have an idea for a web-based service. The implementation is very complex. There will be very few users, and the traffice will be fairly low, but the server-side code could require a lot of resources. Ideally I'd need to have as much control over the servers as possible. How should I arrange hosting for this, when it...
[ 0.5337843298912048, 0.13791126012802124, 0.22480030357837677, 0.11677788197994232, 0.22490210831165314, -0.19563940167427063, 0.03520752489566803, 0.10567915439605713, -0.14458337426185608, -0.5286491513252258, 0.08037643879652023, 0.5157090425491333, -0.07202724367380142, 0.24627713859081...
using a hosting company is, they might steal my idea, or else, it might cost a lot. Since I'm an un-funded startup I don't have a lot of money to throw at this. Most reputable hosters have no real interest in their customer's business ideas because they're in the business of hosting. Any hoster stealing business ideas ...
[ 1.0984498262405396, 0.254493772983551, 0.24535322189331055, 0.23885124921798706, 0.16020968556404114, -0.2680302858352661, 0.1512562483549118, 0.40266531705856323, -0.1505676656961441, -0.3569565713405609, 0.21251936256885529, 0.5923792719841003, -0.054325830191373825, 0.20002327859401703,...
luck getting qualified answers on SO. So maybe an overview of what you're doing without giving away the crown jewls would be in order. **Update:** Right....there's a lot of FUD here about hosters stealing customer business ideas. I work in the hosting business and have done so for over 10 years.... Professional host...
[ 0.8748198747634888, 0.1706179827451706, 0.3732219636440277, 0.24759478867053986, -0.20938514173030853, -0.3885360658168793, 0.09720195829868317, 0.28918200731277466, -0.3850911259651184, -0.2315908521413803, 0.43798232078552246, 0.3548065423965454, 0.5726836323738098, 0.17806914448738098, ...
the project idea? No...they do hosting. Many professional hosters have reseller programmes, and those hosters that do take great care not to step on their reseller's businesses with shoddy practices like contacting reseller customers directly to steal their business. Professional hosters have enough on their plate ma...
[ 0.7748593091964722, 0.16777344048023224, 0.45497390627861023, 0.3592972457408905, 0.14461888372898102, 0.055158764123916626, 0.2664158046245575, -0.02341928333044052, -0.40930280089378357, -0.29759863018989563, -0.2429487258195877, 0.45097479224205017, 0.29218941926956177, 0.15093857049942...
support to help *you* the customer get your business idea off the ground, and as fascinating as your business ideas may be, that's all their guys are employed to do. If you're really that worried get them to sign an NDA before you speak to them. I've signed plenty in my time and have seen some fantastic businesses get ...
[ 0.5598735213279724, 0.14152121543884277, 0.7004832625389099, -0.019342197105288506, -0.12657564878463745, -0.20333231985569, 0.07400563359260559, 0.2354019284248352, -0.20664094388484955, -0.11297570914030075, 0.3174628019332886, 0.4097031056880951, 0.27163368463516235, 0.2891383767127991,...
at the time we had 10 dedicated servers with them 3 of which were shared and raked in a pile of cash @ $15 a month per site with around 600 sites a server. The profit margin was very lucrative....did they steal our business?...nope. So my advice to Jonathon is go speak to a good hoster and talk things over, get expert...
[ 0.6826398372650146, 0.6251522302627563, 0.7587738037109375, -0.09303015470504761, -0.10134433209896088, 0.08429592102766037, 0.2891513705253601, 0.23093920946121216, -0.15447251498699188, -0.13306891918182373, 0.31657546758651733, 0.556420624256134, 0.32136011123657227, -0.1251898407936096...
I need to find whether the user clicking the browser back button or Refresh button. I need to redirect the page to Error page when he clicks the back or refresh button. How to do this. I need to do this in javascript for my ASP.net page First of all, giving error messages if users use Back or have to refresh a page f...
[ 0.3602583706378937, -0.006103578954935074, 0.11846919357776642, 0.22461387515068054, -0.27226364612579346, -0.15871894359588623, 0.4828891456127167, 0.08363252878189087, -0.19919320940971375, -1.0977469682693481, 0.18129462003707886, 0.6148433685302734, -0.15737389028072357, -0.14846809208...
or go back. To answer your question, you have to keep track of the user's navigation yourself, that means on the server side. Forget about java-script here. If the user visits a website, you can store that information in a Session associated to the user (there are several methods of keeping these unique sessions, and ...
[ 0.06021401658654213, -0.0075187417678534985, 0.4060329496860504, 0.12917198240756989, -0.029052799567580223, -0.017570436000823975, 0.2529577314853668, 0.09724762290716171, -0.3977794647216797, -0.7285637855529785, 0.1316903829574585, 0.620620846748352, 0.01922657899558544, 0.0280643999576...
for example against users jumping wildly between urls, or going back more than one step at once) by building a graph of "allowed" navigation and traversing it while the user is visiting websites. The correct behaviour then if the user is doing a "wrong" navigation (like stepping back, reloading == visiting twice) is t...
[ -0.09642352163791656, -0.28286030888557434, 0.12766632437705994, 0.3029135465621948, 0.08572175353765488, -0.2851126492023468, 0.7855958342552185, -0.15764112770557404, -0.6691405773162842, -0.4176592230796814, -0.2062368541955948, 0.48327961564064026, -0.3736337721347809, -0.1241386011242...
I always see the code like this in the blogs: ``` $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebService.asmx/HelloWorld", data: "{}",
[ 0.14904536306858063, 0.041134756058454514, 0.3373528718948364, -0.07888752222061157, 0.009566438384354115, -0.4059247076511383, 0.37188825011253357, 0.5315243005752563, -0.18193292617797852, -0.687396228313446, -0.033552322536706924, 0.453864187002182, -0.14501655101776123, 0.1558861285448...
dataType: "json", success: function(msg) { alert(msg.d); } }); ``` But I
[ -0.031454525887966156, -0.30882179737091064, 0.3423277735710144, -0.28412339091300964, 0.29170751571655273, -0.02605637162923813, 0.5355095863342285, -0.04956291615962982, -0.08952515572309494, -0.48177918791770935, -0.7838755249977112, 0.6627635359764099, -0.5610300302505493, 0.1307495385...
think this is run only with asp.net 3.5. I couldn't run it with 2.0. How can I use such these codes in my Applications? You need to add this attribute to your webserver class ``` [System.Web.Script.Services.ScriptService] public class Service : System.Web.Services.WebService ``` and this attribute to your functions ...
[ 0.16482172906398773, -0.19864918291568756, 0.5680648684501648, 0.01191622018814087, 0.18476177752017975, 0.08292499929666519, 0.2055017501115799, -0.29404333233833313, -0.10380968451499939, -0.8022708296775818, 0.0731373056769371, 0.6642594933509827, -0.11884071677923203, -0.15595094859600...
At work I work closely with MS-Office. I have managed to generate some scripts that perform various tasks. While I can port functions to VBA with some difficulty, I do not fully understand the foundations of the VBA language. Items for which I seek basic syntax and examples include: 'hello world' program, loops, flow ...
[ 0.21090267598628998, 0.32945123314857483, -0.022977814078330994, -0.328532338142395, -0.24008861184120178, 0.03190264850854874, 0.1626940220594406, -0.30860134959220886, -0.05557890236377716, -0.5742826461791992, 0.02033700980246067, 0.6209962964057922, -0.18029849231243134, -0.03408902511...
to VB6. This [MSDN site](http://msdn.microsoft.com/en-us/vbasic/ms789086.aspx) is a great place to start. The [VB6 resource center](http://msdn.microsoft.com/en-au/vbrun/default.aspx) might also be of use.
[ 0.5515778660774231, 0.03841413930058479, 0.08060744404792786, 0.007443973328918219, -0.12153037637472153, -0.12454871088266373, 0.13112296164035797, 0.22152860462665558, -0.4608524441719055, -0.4146774411201477, -0.2701657712459564, 0.19796320796012878, 0.0882578194141388, 0.34768497943878...