text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
handle this properly? The event handler for the user control that is embedded directly in the page is not being called. Here is the button for the login control: ``` <asp:ImageButton ID="ibtnLoginButton" runat="server" CommandName="Login" ImageUrl="~/images/sign-in.png" ValidationGroup="ctl00$Login1" OnClick="Log...
[ 0.12752127647399902, -0.06040118634700775, 0.5496365427970886, -0.025047391653060913, -0.21106886863708496, -0.13291138410568237, 0.20255047082901, -0.46319469809532166, -0.3840005099773407, -0.4924464821815491, -0.08655774593353271, 0.6395277976989746, -0.3006553053855896, -0.089885339140...
unit.
[ -0.15410563349723816, 0.28012213110923767, 0.14873793721199036, -0.09056788682937622, 0.030018290504813194, -0.08413898944854736, 0.3359836935997009, -0.6667707562446594, -0.4014158844947815, -0.2764854431152344, -0.46513065695762634, 0.13515722751617432, -0.03068128228187561, -0.068546853...
I'd like to override Django's administrative "Change Password" page (change\_password.html). As such, I've placed Django's "/contrib/admin/templates/registration/password\_change\_form.html" in my project's "/templates/admin/registration/password\_change\_form.html" directory. Unfortunately, this doesn't seem to do the...
[ 0.23011882603168488, 0.5255182981491089, 0.20907346904277802, -0.23099133372306824, -0.23966380953788757, -0.23351144790649414, 0.05580923333764076, 0.20603495836257935, -0.16932089626789093, -0.6824899315834045, 0.11979100108146667, 0.7352133393287659, -0.23787765204906464, 0.293838202953...
I need to check a double value for infinity in a C++ app on Linux. On most platforms this works by comparing with `std::numeric_limits<double>::infinity()`. However, on some old platforms (RedHat 9 for example, with gcc 3.2.2) this is not available, and `std::numeric_limits<double>::has_infinity` is false there. What ...
[ 0.3748624622821808, 0.030425049364566803, 0.022087741643190384, -0.05398309975862503, 0.10677997767925262, -0.20536093413829803, 0.172593355178833, 0.08326264470815659, -0.18721529841423035, -0.5052316188812256, 0.2688230574131012, 0.8047780394554138, -0.2985486090183258, 0.080162748694419...
In SQL one can write a query that searches for a name of a person like this: ``` SELECT * FROM Person P WHERE P.Name LIKE N'%ike%' ``` This query would run with unicode characters (assuming that the Name column and database were setup to handle unicode support). I have a similar query in HQL that is run by Hibernat...
[ 0.09232381731271744, 0.03692813590168953, 0.035895936191082, -0.19259174168109894, -0.508931577205658, 0.09208814054727554, 0.09036798775196075, -0.16665682196617126, 0.1440826654434204, -0.48113784193992615, 0.09177505224943161, 0.4134877026081085, -0.30249521136283875, 0.1724402606487274...
no success. The database is accepting and saving unicode characters from Hibernate. I've been able to successfully populate an object with a unicode string, save it with Hibernate, and verify it in the database. It would seem to me as a little odd that I cannot use unicode strings in custom queries (or I'm also assumi...
[ 0.12887588143348694, 0.003993283957242966, 0.23684950172901154, -0.054028045386075974, -0.43077966570854187, 0.040803421288728714, 0.48359641432762146, -0.12833738327026367, -0.14211055636405945, -0.6308339238166809, 0.024830661714076996, 0.647378146648407, -0.2543800473213196, 0.092518493...
.CreateQuery("from Person p where p.Name like :name") .SetParameter("name", "%カタカ%") .List<Person>(); ``` They also have the advantage to protect your query against SQL injection.
[ 0.19398678839206696, -0.04490680247545242, -0.08703991025686264, 0.1775621622800827, -0.2909536361694336, 0.030105577781796455, 0.16915106773376465, -0.1978442370891571, 0.04720552638173103, -0.5263325572013855, -0.10172170400619507, 0.4119330942630768, -0.2833097279071808, 0.2816528379917...
I have been given the task of refactoring an existing stored procedure so that the results are paginated. The SQL server is SQL 2000 so I can't use the ROW\_NUMBER method of pagination. The Stored proc is already fairly complex, building chunks of a large sql statement together before doing an sp\_executesql and has va...
[ -0.391636461019516, 0.1385933756828308, 0.4642324149608612, -0.12578126788139343, -0.20406749844551086, -0.17416368424892426, 0.04391975328326225, -0.05264858528971672, -0.26538050174713135, -0.7097553610801697, 0.18263742327690125, 0.2690676748752594, -0.14826542139053345, 0.2525117993354...
on that page also seems like a good method but the SP is taking a pageNumber rather than the start record. And the whole temp table thing seems like it would be a performance drain. I am making progress going down this path but it seems slow and confusing and I am having to do quite a bit of REPLACE methods on the Sor...
[ 0.5212451815605164, 0.0224514901638031, 0.360640287399292, 0.16491353511810303, -0.22093245387077332, -0.1605907529592514, 0.17346841096878052, -0.15502968430519104, -0.35646259784698486, -0.6918073892593384, 0.7019886374473572, 0.5397798418998718, -0.10878830403089523, -0.0251056049019098...
parameters) and that's with the temp table. My final solution was to **not** use the @start parameter and instead use a @page parameter and then use the ``` SET @sql = @sql + N' SELECT * FROM ( SELECT TOP ' + Cast( @length as varchar) + N' * FROM ( SELECT TOP ' + Cast( @page*...
[ -0.1440831869840622, -0.016365181654691696, 0.5819149017333984, 0.0018407742027193308, -0.1774415820837021, 0.29458144307136536, 0.31391897797584534, -0.32818281650543213, -0.04698534309864044, -0.38503724336624146, 0.12503674626350403, 0.6531876921653748, -0.4133200943470001, 0.1304758638...
field1, field2 From Table1 order by field1 ASC ) as Result Order by Field1 DESC
[ -0.4201318621635437, 0.0412166602909565, 0.2533152401447296, -0.33552464842796326, -0.028731435537338257, 0.21608510613441467, 0.03171468898653984, -0.5860752463340759, -0.499135285615921, -0.308353066444397, -0.7987074851989746, 0.5136880874633789, -0.028935175389051437, -0.04974390566349...
) as Result Order by Field 1 ASC' ``` The original query was much more complex than what is shown here and the order by was ordered on at least 3 fields and determined by a long CASE clause, requiring me to use a series of REPLACE functions to get the fields in the right order.
[ -0.12971198558807373, 0.3257749080657959, 0.5689071416854858, -0.22802424430847168, -0.3902902901172638, 0.24913959205150604, 0.2881368398666382, -0.7905980944633484, -0.05986965820193291, -0.15967917442321777, -0.3190848231315613, 0.3676988184452057, -0.4957958161830902, 0.190311133861541...
Ok, have a bunch of questions that I have been thinking about the past few days. Currently I have a site that is just a bunch of PHP files with MySQL statements mixed in with PHP, HTML and CSS, basically a huge mess. I have been tasked with cleaning up the site and have made for myself, the following requirements: * T...
[ 0.663956344127655, 0.5599762797355652, 0.08600594103336334, 0.08070426434278488, -0.012632056139409542, -0.2066759467124939, 0.3943362236022949, 0.14453119039535522, -0.33339163661003113, -0.5407817959785461, 0.036670759320259094, 0.3017497956752777, -0.051999859511852264, 0.33767497539520...
I can't use a framework and need to keep the code maintainable and "simple" as there will be future developers working with it. * There needs to be an admin section for at least a few pages. Saying that, this is what I know about the site as it is now: * Consists of 10-12 pages, a few are completely static, most are ...
[ 0.5571112036705017, 0.10721960663795471, 0.3186839520931244, -0.014410974457859993, -0.20869313180446625, -0.23511819541454315, 0.5370168089866638, 0.2905556559562683, 0.04171060398221016, -0.5608859658241272, -0.04180488362908363, 0.10634113103151321, 0.12218311429023743, 0.16702432930469...
knowing those things I wanted to know if anyone had any tips/suggestions as to how to go about doing this with the least amount of headaches. * Would an OO approach be best in this situation? * Since there are many static pages and the dynamic pages just need the content filled in would it be best to use some kind of...
[ 0.6465811729431152, 0.39979425072669983, 0.014994557946920395, 0.32062843441963196, -0.14083729684352875, -0.020373502746224403, 0.3378449082374573, 0.2763928472995758, -0.26597100496292114, -0.4392588436603546, 0.248055100440979, 0.527056097984314, 0.11157114803791046, -0.1937024742364883...
an article about how to organize your PHP project, from Rasmus Lerdorf, the architect who created the language: <http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html> Despite the popularity of OO frameworks for PHP, Rasmus advocates a less OO approach. He knows more than anyone about PHP intend...
[ 0.553139865398407, -0.023587234318256378, -0.11468221992254257, 0.2225552350282669, -0.10124263167381287, -0.3388860523700714, 0.15731431543827057, -0.04395627602934837, -0.284219354391098, -0.43595707416534424, -0.14304983615875244, 0.010514193214476109, -0.3170849084854126, -0.3228197991...
We're using the standard ASP.NET authentication provider (AspNetSqlMembershipProvider as it happens) and the defualt password strength requirement is a little excessive for our needs. We require our users to enter a password that is alphanumeric at least (i.e, letters and at least one number mandatory, mixed case and ...
[ 0.02651403844356537, 0.166784405708313, 0.24996580183506012, 0.016154436394572258, -0.010620652697980404, -0.25256386399269104, 0.5668625831604004, -0.12179841846227646, 0.13677477836608887, -0.491148442029953, -0.11818554252386093, 0.5977200865745544, -0.010542433708906174, -0.03046992607...
any regular expression that is used Here is a regex that allows all characters and requires at least one number and requiring at least 6 characters. ``` ^.*(?=.{6,})(?=.*\d).*$ ``` If you want more or less characters defined simply change `(?=.{6,})` to reflect the number of characters you want as a minimum.
[ -0.06727951020002365, 0.08203854411840439, 0.4476301074028015, -0.1273045539855957, 0.06087994948029518, 0.21068736910820007, 0.19410449266433716, -0.238458514213562, -0.11796737462282181, -0.5462685823440552, -0.36127394437789917, 0.5372321605682373, -0.29032233357429504, -0.1480956375598...
I'm doing a `hlookup` against a value that spans multiple columns. My data is similar to this: ``` A B C D --------------------------- 1| Col1 Col2 2| x y z w 3| 4| ``` In rows 3 and 4 (A3, B3, C3, D3, etc.), I'd like to put formulas
[ -0.0913100615143776, 0.4802347421646118, 0.22593240439891815, 0.021564966067671776, -0.09965956956148148, 0.14870573580265045, -0.014733587391674519, -0.29585474729537964, -0.08629492670297623, -0.519978404045105, -0.07606225460767746, 0.25387218594551086, -0.2401483952999115, 0.0384641885...
that will do an hlookup somewhere else in the workbook. The trick is, I'd like it to look up "Col1" for columns A and B and "Col2" for columns C and D. "Col1" is in A1, but is really A1 and B1 merged. When I reference A1, "Col1" appears, but when I reference B1, the return value is blank. Any ideas? To get access to t...
[ -0.08984081447124481, 0.15867948532104492, 0.33247458934783936, -0.18365025520324707, -0.07822533696889877, 0.2992008924484253, -0.07774299383163452, -0.318164199590683, -0.39943981170654297, -0.8101327419281006, -0.1775142401456833, 0.12505339086055756, -0.45921024680137634, -0.1233323514...
formula to a 3, and so on. **Edit:** Here's how it works: INDEX($1:$1,1, x ) returns the value of the cell in row 1, column x. If your table is not actually located in the top left corner of the worksheet, you can change this to the actual range that includes all of your merged labels. In this case, it would be: INDE...
[ 0.12790174782276154, 0.12893208861351013, 0.6766036152839661, -0.2509276568889618, 0.16153797507286072, 0.12152998894453049, 0.08370169997215271, -0.6872020363807678, 0.07888213545084, -0.408979594707489, -0.0004407961096148938, 0.5777480602264404, -0.4499504268169403, 0.16161340475082397,...
Developing server side code i finally got my eyes X-crossed trying to write - and then understand, of course - forms or other html code in which text strings (attributes) within double quotes must occur in tagged string (markup) opening and closing properly; but often javascript text within apostophes must be instantia...
[ 0.2942282259464264, 0.22257079184055328, 0.28783780336380005, -0.032675303518772125, -0.04819978028535843, -0.09556321054697037, 0.35051438212394714, 0.1502165049314499, 0.07138072699308395, -0.4532910883426666, 0.06575834006071091, 0.3830645680427551, -0.09837173670530319, -0.121998928487...
cell in a table is rendered before the table caption - sure, I missed an apostrophe in a string of 512 characters. After trying to reinvent the wheel crafting some API to manage the unmanageable, I have seen this possible solution: well, the damned xhtml is, in facts, XML. So why not use a XMl parser (on server) to cre...
[ -0.2292022854089737, 0.40464815497398376, 0.09323839843273163, 0.24260638654232025, 0.10427087545394897, -0.05358380451798439, 0.09714044630527496, 0.17538602650165558, -0.37627363204956055, -0.5858462452888489, -0.1032419428229332, -0.141418918967247, -0.21761929988861084, 0.0280330888926...
stuff? Using it only in the backoffice side should keep low workload on the server - only few people in this planet could authenticate and access the serious stuff, so object creation and release is kept acceptable. My question is: is this in your opinion a good solution to the problem mentioned above? Maybe there are...
[ 0.46108755469322205, -0.013586127199232578, 0.4730633795261383, 0.3826044201850891, -0.09290499240159988, -0.6908748149871826, 0.3746185004711151, 0.18025843799114227, -0.5135223865509033, -0.06537646055221558, -0.3298497498035431, 0.45478078722953796, -0.022743644192814827, 0.020916691049...
do. Perhaps they don't do it with raw XML--perhaps they have their own class structure/API that they use to do this, but that's the basic paradigm they follow. As for "congrats, you finally got it", I'd say you're on the right path. You didn't mention specific technology, but I'd guess you've been messing around with...
[ 0.6521803736686707, 0.12305309623479843, 0.21783417463302612, 0.4518279433250427, -0.20966067910194397, -0.32033050060272217, 0.29651787877082825, 0.12748749554157257, -0.40307703614234924, -0.29235029220581055, -0.024456392973661423, 0.33548977971076965, 0.5788403153419495, -0.04390851408...
Rails, Struts, or Twisted.
[ 0.32838743925094604, -0.3049851059913635, -0.1650463342666626, 0.7781965732574463, 0.11077053099870682, 0.22931914031505585, -0.0867573618888855, 0.13897304236888885, -0.5335928797721863, -0.4135681986808777, 0.04988151788711548, 0.10894764959812164, -0.30129945278167725, 0.422359317541122...
Confused/inspired by a comment to my question [Do search engines respect the HTTP header field “Content-Location”?](https://stackoverflow.com/questions/438413/do-search-engines-respect-the-http-header-field-content-location), I’d like to know, what the exact purpose of the [`Content-Location` header field in HTTP](http...
[ 0.1002059355378151, -0.21033136546611786, 0.14466555416584015, 0.23935450613498688, -0.14539040625095367, -0.013998525217175484, 0.20983804762363434, 0.07167369872331619, -0.12259382009506226, -0.46159008145332336, -0.48340409994125366, 0.30581313371658325, -0.23222094774246216, 0.25252276...
POST request, * If the Content-Location URI is different than the requested URI, then the cache entry at the indicated URI is invalidated. (see <https://www.rfc-editor.org/rfc/rfc7234#section-4.4> and <https://www.rfc-editor.org/rfc/rfc2616#section-13.10>) * If the Content-Location URI is the same as the requested URI...
[ 0.15679286420345306, 0.009596739895641804, 0.1739444136619568, 0.021847618743777275, -0.23582886159420013, 0.10770070552825928, 0.5010418891906738, -0.07135196030139923, -0.11586605757474899, -0.7251218557357788, -0.7178640961647034, 0.1610344797372818, -0.3733951151371002, 0.3731414079666...
I have written an application in ASP.net, that is designed to let the user add records to a database. The page is set up that when a user adds a record, the ID number of the newly added record is set in session, the page Response.Redirects to a "Thank you for submitting" page, then redirects back to the original page t...
[ 0.6038507223129272, 0.28121793270111084, 0.33532705903053284, 0.13776494562625885, -0.07047003507614136, -0.24694053828716278, -0.07323399186134338, -0.10741207748651505, -0.3540622889995575, -0.6393001079559326, 0.2454700469970703, 0.2025160789489746, 0.031755849719047546, 0.1193871423602...
session isn't a terribly good solution, as a user might try to create two documents in different tabs or windows. I have also tried setting the ID in a literal control, but this causes the problem that when the user uses the Back button, the literal control isn't set to the ID, and new records get added instead of one ...
[ 0.38883379101753235, -0.035006094723939896, 0.29929789900779724, 0.3007277548313141, -0.3140040338039398, -0.4221239686012268, 0.3727862238883972, -0.036285314708948135, -0.27135685086250305, -0.649451732635498, 0.14715860784053802, 0.5919950604438782, -0.2625196874141693, 0.23345938324928...
to a page when the data is accepted that lets them edit it. Then if the hit the back button they would be going back to the original "clean" insert/add new data page. This would give the following flows Add->[Post]->Edit->..... Add->[Post]->Edit->[Back button]->Add->[Post]->Edit->[Post]->Edit....
[ 0.1468086540699005, -0.19170884788036346, 0.7691437005996704, 0.16219697892665863, -0.09901764243841171, -0.11895918846130371, 0.20321328938007355, -0.34262868762016296, -0.13826651871204376, -0.794934868812561, -0.20012331008911133, 0.3899281322956085, -0.44830769300460815, 0.125391736626...
Basic premise: I have a Room which publishes an event when an Avatar "enters" to all Avatars within the Room. When an Avatar leaves the Room I want it to remove all subscriptions for that room. How can I best unsubscribe the Avatar from all events in the room before I add the Avatar to a new Room and subscribe to the...
[ -0.03263016417622566, 0.020939912647008896, 0.32233917713165283, 0.02626010961830616, 0.09929054975509644, -0.09446312487125397, 0.2508009672164917, -0.1052493304014206, 0.014550933614373207, -0.4625709652900696, -0.1197613924741745, 0.4482417702674866, -0.3816443383693695, 0.2519400119781...
AvatarEntersRoom(this, new EnterRoomEventArgs()); AvatarEntersRoom += new EventHandler<EnterRoomEventArgs>(theAvatar.HandleAvatarEntersRoom); AvatarLeavesRoom += new EventHandler<EnterRoomEventArgs>(theAvatar.HandleAvatarEntersRoom); AnotherOfManayAvatarEvents += new EventHandler<EnterRoomEventArg...
[ -0.4454943835735321, -0.023545974865555763, 0.7590622901916504, 0.014366721734404564, 0.16254238784313202, 0.4604566693305969, 0.6223483085632324, -0.34665969014167786, -0.29851260781288147, -0.675212562084198, -0.40238285064697266, 0.5582455396652222, -0.25908365845680237, 0.5542386770248...
sender, AnotherOfManyEventArgs e) { Log.Write("another avatar event has occurred"); } } ``` Each delegate has a method named `GetInvocationList()` that returns all the actual delegates that have been registered. So, assuming the delegate Type (or event) is named say `MyDelegate`, and the handler instance ...
[ -0.07712080329656601, -0.1360592097043991, 0.5024510025978088, -0.005536994431167841, 0.021494247019290924, 0.16594398021697998, 0.08673345297574997, -0.3016187250614166, -0.40937739610671997, -0.5824939012527466, -0.2908032536506653, 0.20123447477817535, -0.4545469284057617, 0.28185603022...
myDlgHandler -= (d as MyDelegate); ```
[ -0.24313023686408997, 0.1486019343137741, 0.4757726192474365, -0.3949604034423828, -0.646390974521637, 0.47063854336738586, 0.2772218883037567, 0.07793805748224258, -0.32956090569496155, -0.7372844219207764, -0.43806588649749756, 0.09239397197961807, -0.14097850024700165, 0.217374294996261...
I think this must be a stupid question, but why do the results of urlsafe\_b64encode() always end with a '=' for me? '=' isn't url safe? ``` from random import getrandbits from base64 import urlsafe_b64encode from hashlib import sha256 from time import sleep def genKey(): keyLenBits = 64 a = str(getrandbits(key...
[ -0.034367721527814865, 0.34401223063468933, 0.3594808876514435, -0.10161405801773071, 0.04054442048072815, -0.14137902855873108, 0.3208697438240051, -0.4467739164829254, -0.1982310563325882, -0.5191051363945007, -0.2872789800167084, 0.6480280756950378, -0.07356902211904526, 0.2308712005615...
too.
[ 0.24611297249794006, 0.07223199307918549, 0.322197824716568, 0.38085925579071045, 0.39072713255882263, -0.08894086629152298, 0.1624954342842102, 0.01575363799929619, -0.09311041235923767, -0.06448973715305328, -0.038010139018297195, 0.3332498371601105, -0.10347301512956619, 0.2218738794326...
Drupal is very much a "Do Everything" CMS. There are modules that allow you to add almost any functionality, which is great. However, it feels like a lot of the features (v5 and v6) seem scattered around and unintuitive for the user. As a developer, I'm left with the feeling of having patched a site together using bubb...
[ 0.15379340946674347, -0.07912871241569519, 0.4989720582962036, 0.053167782723903656, -0.3809811770915985, -0.3560424745082855, -0.02013653703033924, 0.3430856466293335, -0.15663543343544006, -0.4458337128162384, -0.10274948179721832, 0.4982781410217285, -0.13426977396011353, 0.165918990969...
only one with this opinion? What things (if any) would you change about Drupal's core? The lack of true object oriented design means that you frequently have to rely on other developers' foresight to leave "hook" functions to let you alter a certain behavior. Using Drupal 5 I've also run in to situations where the onl...
[ 0.28987690806388855, 0.10141801089048386, -0.05305257812142372, 0.02690780535340309, -0.055389851331710815, -0.22264637053012848, 0.539167582988739, 0.0905301421880722, -0.28216469287872314, -0.3112274706363678, -0.09276817739009857, 0.6417161822319031, -0.5080379843711853, 0.0318816863000...
take the time to identify a bug or quirk in the current production version of Drupal, I submit a patch, and the patch is never committed because, basically only security bugs get fixed in the current stable release.
[ 0.43511348962783813, 0.22105365991592407, 0.4184233844280243, 0.15441164374351501, 0.1833304911851883, -0.23973405361175537, 0.26545965671539307, 0.227918803691864, 0.2087363302707672, -0.3861423432826996, -0.3382510840892792, 0.5098309516906738, -0.25776708126068115, -0.07408079504966736,...
What is meant by "object serialization"? Can you please explain it with some examples? Serialization is the conversion of an object to a series of bytes, so that the object can be easily saved to persistent storage or streamed across a communication link. The byte stream can then be deserialized - converted into a repl...
[ 0.3268907070159912, -0.09718088805675507, 0.13134326040744781, 0.45377790927886963, -0.0420718789100647, -0.0190114863216877, -0.17296536266803741, 0.31819236278533936, -0.5865678787231445, -0.4149802327156067, -0.24795794486999512, 0.1263328194618225, -0.42489662766456604, 0.7312051057815...
In [this question](https://stackoverflow.com/questions/392657/md5-hashing-in-delphi-2009) is mentioned the wcrypt2. What I need is simply calculate the MD5 of a file. It would be perfect if I could calculate it without having to save it because it is a downloaded file in stream format. I would like to have the most s...
[ -0.2136387974023819, 0.07026419043540955, 0.5948660373687744, -0.1085873544216156, 0.084951251745224, -0.4354693293571472, 0.28571125864982605, -0.3655461072921753, -0.0858004242181778, -0.35394078493118286, 0.057268667966127396, 0.764983057975769, -0.2695012390613556, -0.23389361798763275...
I'm trying to access a large Oracle database through SQL Server using OPENROWSET in client-side Javascript, and not having much luck. Here are the particulars: * A SQL Server view that accesses the Oracle database using OPENROWSET works perfectly, so I know I have valid connection string parameters. However, the new r...
[ 0.10630979388952255, 0.22253888845443726, 0.03208192437887192, -0.03304505720734596, -0.24658407270908356, -0.08244607597589493, 0.28424951434135437, 0.07000523805618286, -0.16349422931671143, -0.5937196016311646, -0.039298657327890396, 0.660971462726593, -0.07113728672266006, 0.1986229419...
count on clients having any Oracle client software. Therefore, access to the Oracle database has to be through the SQL Server database, using views, stored procedures, or dynamic queries using OPENROWSET. * Because the SQL Server database is on a shared server, I'm not allowed to use globally-linked databases. My idea...
[ 0.4006105065345764, 0.19386117160320282, 0.22496506571769714, -0.15315766632556915, -0.27021658420562744, 0.11731617152690887, 0.16004836559295654, -0.2607165277004242, -0.07407153397798538, -0.36497557163238525, 0.11193080246448517, 0.4910541772842407, -0.6089337468147278, 0.3383043110370...
Server DB // rs is a global variable containing an ADODB.Recordset . . . ss = "SELECT myfield FROM mytable WHERE {param0} ORDER BY myfield;"; OracleQuery(ss,["somefield='" + somevalue + "'"]); . . . function OracleQuery(sql,params) { var s = sql; var i; for (i = 0; i < params.length; i++) s = s.replace("{param" +...
[ -0.019624441862106323, -0.07971090078353882, 0.7434682250022888, -0.27030232548713684, -0.3010460138320923, 0.21968288719654083, 0.4761427044868469, -0.5310737490653992, -0.2798950672149658, -0.3531738817691803, -0.12270668148994446, 0.0903492346405983, -0.5295489430427551, 0.3924284279346...
+ e); } } ``` The SQL error that I'm getting is `Ad hoc access to OLE DB provider 'MSDAORA' has been denied. You must access this provider through a linked server.` which makes no sense to me. The Microsoft explanation for this error relates to a registry setting (`DisallowAdhocAccess`). This is set correctly on my...
[ 0.14632464945316315, 0.5117276310920715, 0.3712379038333893, -0.07754620909690857, -0.03050159476697445, -0.3253258168697357, 0.5484830737113953, 0.12643539905548096, 0.021492233499884605, -0.5621055364608765, -0.1831926852464676, 0.5808982849121094, -0.47669845819473267, 0.670920133590698...
the same error. I also tried putting the OPENROWSET in a stored procedure. This works perfectly when executed from within SQL Server Management Studio, but fails with the same error message when the stored procedure is called from Javascript. Is what I'm trying to do possible? If so, can you recommend how to fix my ...
[ 0.3707067668437958, 0.28025516867637634, -0.022030547261238098, 0.2157016545534134, 0.13347089290618896, 0.0069266087375581264, 0.4244588613510132, 0.03189273178577423, -0.07435556501150131, -0.5976436734199524, -0.02507156878709793, 0.5172627568244934, -0.3169179856777191, -0.019251266494...
I have db-owner privileges. For the *ad hoc* access to work, I need to either set the `DisallowAdhocAccess` registry setting to 0, or give db-owner privileges to the user id used in the web access. Because this is a shared server with tight security, I won't be allowed to change the registry setting, which would affect...
[ 0.12248952686786652, 0.3364076316356659, 0.1685032844543457, -0.10530475527048111, -0.016437726095318794, -0.2565801739692688, 0.23824802041053772, -0.04900336638092995, 0.05693503096699715, -0.4053693115711212, -0.10205360502004623, 0.5623677968978882, -0.1737269163131714, 0.3759297430515...
Javascript. I will still welcome any alternative thoughts on this.
[ 0.30052462220191956, 0.17453210055828094, -0.12277278304100037, 0.1478310376405716, -0.2319091558456421, -0.10903490334749222, 0.23888394236564636, 0.3692570626735687, -0.02961593307554722, -0.8635644912719727, -0.20632192492485046, 0.4971033036708832, -0.260030061006546, -0.12501432001590...
I'm using google app engine, and am having trouble writing querys to filter ReferenceProperties. eg. ``` class Group(db.Model): name = db.StringProperty(required=True) creator = db.ReferenceProperty(User) class GroupMember(db.Model): group = db.ReferenceProperty(Group) user = db.ReferenceProperty(Use...
[ -0.17205561697483063, 0.31613263487815857, 0.5057585835456848, 0.006307440809905529, -0.10300251841545105, 0.15452459454536438, 0.2693234384059906, -0.26039859652519226, -0.2798352837562561, -0.6709163784980774, -0.0677548348903656, 0.4653504192829132, -0.5176194906234741, 0.09250751882791...
can write: ``` # get the group entity somehow group = Group.get(group_key) # do something with the members, such as list the nicknames nicknames = [x.user.nickname for x in group.groupMembers] ```
[ -0.0844903513789177, 0.1506180316209793, 0.13657307624816895, 0.16830116510391235, 0.14119508862495422, -0.09263814240694046, 0.23708173632621765, -0.21001212298870087, -0.025266051292419434, -0.43784523010253906, -0.2428000420331955, 0.2992205321788788, -0.10336265712976456, -0.0506419427...
I have a UIImage (Cocoa Touch). From that, I'm happy to get a CGImage or anything else you'd like that's available. I'd like to write this function: ``` - (int)getRGBAFromImage:(UIImage *)image atX:(int)xx andY:(int)yy { // [...] // What do I want to read about to help // me fill in this bit, here? // [...] ...
[ 0.21054178476333618, 0.08585524559020996, 0.7052839398384094, -0.05613390728831291, -0.21579934656620026, 0.29672667384147644, 0.026574518531560898, -0.13019497692584991, -0.11118718981742859, -0.793799877166748, -0.28253263235092163, 0.4151228070259094, -0.27738499641418457, -0.0459386408...
thing to compile. Here is the result: ``` + (NSArray*)getRGBAsFromImage:(UIImage*)image atX:(int)x andY:(int)y count:(int)count { NSMutableArray *result = [NSMutableArray arrayWithCapacity:count]; // First get the image into your data buffer CGImageRef imageRef = [image CGImage]; NSUInteger width = CG...
[ 0.19658207893371582, -0.47634801268577576, 0.6846785545349121, -0.19330674409866333, 0.10329852253198624, 0.20741282403469086, 0.4044938087463379, -0.7106451392173767, -0.2758191227912903, -0.6245648860931396, -0.16827388107776642, 0.5372403264045715, -0.043646711856126785, 0.0468398332595...
CGContextRef context = CGBitmapContextCreate(rawData, width, height, bitsPerComponent, bytesPerRow, colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); CGColorSpaceRelease(colorSpace); CGContextDrawImage(context, CGRectMake(0, 0, width, height), imageR...
[ -0.043200794607400894, -0.13617633283138275, 0.5271539092063904, 0.050065312534570694, -0.19306054711341858, 0.3249278962612152, -0.0640614852309227, -0.18300937116146088, -0.3057957887649536, -0.6985889673233032, -0.11819714307785034, 0.47806504368782043, -0.059707943350076675, 0.29756772...
for (int i = 0 ; i < count ; ++i) { CGFloat alpha = ((CGFloat) rawData[byteIndex + 3] ) / 255.0f; CGFloat red = ((CGFloat) rawData[byteIndex] ) / alpha; CGFloat green = ((CGFloat) rawData[byteIndex + 1] ) / alpha; CGFloat blue = ((CGFloat) rawData[byteIndex + 2] ) / alpha; ...
[ -0.10957136750221252, -0.37499698996543884, 0.12660573422908783, -0.3073985278606415, 0.11122264713048935, 0.3079867362976074, 0.11109194159507751, -0.5774964094161987, -0.31648656725883484, -0.34141430258750916, -0.3971794545650482, 0.2543564438819885, -0.6678470373153687, -0.365590989589...
UIColor *acolor = [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; [result addObject:acolor]; } free(rawData); return result; } ```
[ -0.11387131363153458, -0.4724583625793457, 0.15770967304706573, 0.08162861317396164, -0.04641580581665039, 0.1121947169303894, 0.08598661422729492, -0.2931114733219147, -0.04280032962560654, -0.3624103367328644, -0.4689587354660034, 0.5028476715087891, -0.5103588700294495, 0.07422258704900...
Is there a way to implement/use lambda functions in bash? I'm thinking of something like: ``` $ someCommand | xargs -L1 (lambda function) ``` I don't know of a way to do this, however you may be able to accomplish what you're trying to do using: ``` somecommand | while read -r; do echo "Something with $REPLY"; done ...
[ 0.24424344301223755, 0.08763397485017776, 0.2561023533344269, -0.1300400048494339, -0.34107303619384766, 0.04538743197917938, 0.28497427701950073, -0.19621695578098297, -0.4369887113571167, -0.23839198052883148, -0.13193033635616302, 0.89754718542099, -0.3297414481639862, -0.37314134836196...
variable name (such as `X`) as a parameter to `read`, we let `read` assign to its default variable, `REPLY`. This has the pleasant side-effect of preserving leading and trailing spaces, which are stripped otherwise (even though internal spaces are preserved). From my observations, together these changes preserve every...
[ -0.13182348012924194, 0.160897895693779, 0.1818343997001648, -0.14579685032367706, -0.06860464066267014, 0.010473774746060371, 0.06909437477588654, 0.029889347031712532, -0.08794082701206207, -0.3158405125141144, -0.3629152774810791, 0.4432915449142456, -0.3864378035068512, 0.4492134153842...
I have a main C++ app built in Visual Studio 2005, called A.exe. It spawns a child process, B.exe. I run process A in the debugger by hitting F5 -- the only way I know to hit breakpoints in process B is to wait for A to kick it off, then run Debug -> Attach to Process, and manually select B.exe. This doesn't work very ...
[ 0.143249973654747, 0.15184514224529266, 0.1409367173910141, -0.30406245589256287, -0.1547517329454422, 0.1107846349477768, 0.3427787125110626, -0.0486595593392849, -0.03618645295500755, -0.36767134070396423, 0.17185376584529877, 0.542288601398468, -0.25123700499534607, -0.01107248570770025...
native code, by the way. Thanks, Nathan You can tell Windows to automatically attach the debugger when a certain process is started (by specifying the process name in a registry setting). The details are here: <http://msdn.microsoft.com/en-us/library/a329t4ed(v=vs.100).aspx>
[ 0.1867585927248001, 0.189704030752182, 0.013772149570286274, 0.17551447451114655, -0.0310920812189579, -0.2657504081726074, 0.411342978477478, 0.017718059942126274, -0.18488682806491852, -0.573087215423584, -0.30859488248825073, 0.5725542306900024, -0.16078296303749084, 0.1524040400981903,...
Code snippet: ``` Dim target As Object ' target gets properly set to something of the desired type Dim field As FieldInfo = target.GetType.GetField("fieldName", _ BindingFlags.Instance Or BindingFlags.Public Or BindingFlags.NonPublic) field.SetValue(target,newValue) ``` This snippet works perfectly IF target is se...
[ 0.37277138233184814, -0.2645907700061798, 0.5187795758247375, -0.17074404656887054, -0.09497475624084473, -0.12324035912752151, 0.49334168434143066, -0.1769673228263855, -0.11811002343893051, -0.719530463218689, -0.26867032051086426, 0.5750001072883606, -0.3390055000782013, -0.147353380918...
going on and how to actually change the field IN CODE? Edit: Per request from Jon Skeet, actual code: ``` Private Shared Function XmlDeserializeObject(ByVal objectType As Type, _ ByVal deserializedID As String) As Object Dim result As Object result = CreateObject(objectType) mXmlR.ReadStartEleme...
[ 0.33532893657684326, -0.23972029983997345, 0.43339359760284424, 0.04926607012748718, 0.06392785161733627, 0.03868250921368599, 0.11619959771633148, -0.192457914352417, -0.2354329526424408, -0.19777464866638184, -0.30425822734832764, 0.5712671875953674, -0.3351205587387085, 0.11013856530189...
field.SetValue(result, XmlDeserialize(field.FieldType)) Loop Return result End Function ``` External variables and called routines: \* mXmlR is an XmlTextReader, and is properly initialized and positioned (else this would not work on classes) \* CreateObject works (ditto) \* XmlDeserialize mostly wo...
[ 0.18693135678768158, -0.10747294872999191, 0.2838689386844635, -0.13117781281471252, -0.2594892978668213, -0.3187870383262634, 0.24111153185367584, -0.38806265592575073, -0.032455820590257645, -0.602969229221344, -0.2617679238319397, 0.6642082929611206, -0.2833292484283447, -0.304717242717...
failing because of this problem - while the equivalent test with a class, rather than a structure, passes. Here's the test. ``` <Serializable()> Private Structure SimpleStructure Public MemberOne As Integer End Structure <Test()> Sub A016_SimpleStructure() Dim input As New SimpleStructure input.MemberOne...
[ -0.3557015359401703, -0.03774265572428703, 0.5174597501754761, -0.21613746881484985, 0.057566944509744644, 0.20790162682533264, 0.7435469031333923, -0.9666195511817932, 0.06238868832588196, -0.7678398489952087, -0.05837281793355942, 0.36098402738571167, -0.25173547863960266, 0.145844787359...
If you use Reflector or ILDasm you will see that the call to Field.SetValue(target, ...) is actually compiled (in VB) as: ``` field.SetValue(RuntimeHelpers.GetObjectValue(target), ...) ``` GetObjectValue "Returns a boxed copy of obj if it is a value class; otherwise obj itself is returned." I.e. the value is being s...
[ 0.3157108426094055, -0.15947413444519043, 0.44185951352119446, -0.2887735068798065, -0.11117810010910034, -0.13569892942905426, 0.19225941598415375, -0.1602391004562378, -0.11397728323936462, -0.5828720927238464, -0.23027783632278442, 0.5277385711669922, -0.5866640210151672, 0.131633341312...
Is there a way to determine the device running an application. I want to distinguish between `iPhone` and `iPod Touch`, if possible. You can use the [`UIDevice`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/model) class like this: ``` NS...
[ -0.14518216252326965, -0.06944967806339264, 0.5131157636642456, 0.025815604254603386, 0.4094810485839844, 0.03317371383309364, -0.1387183517217636, -0.08442191779613495, -0.46179065108299255, -0.5754585266113281, -0.06888687610626221, 0.5513569116592407, -0.017560364678502083, -0.086376033...
I'm having trouble discovering exactly what I need to implement in order to use a custom authentication method with my web application using Spring Security. I have a Grails application with the Spring Security plugin that currently uses the standard user/password authentication with a browser form. This is working cor...
[ 0.06766104698181152, 0.24034488201141357, 0.35262754559516907, -0.09552730619907379, -0.06294584274291992, -0.037566836923360825, 0.5401613116264343, -0.06215247884392738, -0.21099424362182617, -0.28413158655166626, -0.08301106095314026, 0.5024167895317078, 0.23120427131652832, -0.03043062...
where to start with this. What Spring Security classes do I need to extend/implement? I have read the [Reference Documentation](http://www.acegisecurity.org/guide/springsecurity.html) and have an okay understanding of the concepts, but am not really sure if I need a Filter or Provider or Manager, or where/how exactly t...
[ 0.48631948232650757, -0.04815833270549774, 0.31998831033706665, 0.024490494281053543, -0.04052618145942688, -0.024407334625720978, -0.022203559055924416, -0.48416730761528015, -0.33475005626678467, -0.4758583605289459, -0.041870009154081345, 0.44652384519577026, -0.1590934693813324, -0.215...
configuration snippet: ```xml <bean id="myAuthenticationProvider" class="com.example.MyAuthenticationProvider"> <security:custom-authentication-provider /> </bean> ``` 2. This step is optional, if you can find a suitable one from standard implementations. If not, implement a class extending the `Authentication` ...
[ -0.0006525839562527835, -0.0023591574281454086, 0.6061000823974609, -0.1228371262550354, 0.04919711500406265, -0.12254079431295395, -0.0705745741724968, -0.3789485692977905, -0.4488392174243927, -0.7060564160346985, -0.06380999088287354, 0.5227569937705994, -0.0019227415323257446, 0.114561...
or replace the standard `AUTHENTICATION_PROCESSING_FILTER`. For Spring Security Filter orders, see <http://static.springsource.org/spring-security/site/docs/3.0.x/reference/ns-config.html#filter-stack> Here is a configuration snippet for how to replace it with your implementation: ```xml <beans:bean id="myFilter" cla...
[ 0.0795656144618988, -0.2995727062225342, 0.5493023991584778, -0.1596856415271759, -0.10123623162508011, -0.07636474072933197, -0.19694092869758606, -0.42170703411102295, -0.6736485958099365, -0.5054243206977844, -0.21500569581985474, 0.34821030497550964, -0.5029775500297546, -0.12941791117...
Simply put, if you had to use a IoC/DI container, thats easy to deploy (not a big fan of using config/xml file for everything), stable, good documentation and supports .net, which one would it be? It could just be me but too many xml files like one for the app, a few for ORM, a few for another component kinda gets ove...
[ 0.6235976815223694, 0.04555727541446686, 0.132582888007164, 0.2980573773384094, -0.002857642015442252, -0.37068331241607666, 0.2006329596042633, 0.13447457551956177, -0.3518493175506592, -0.6621454358100891, -0.10043817013502121, 0.3404792249202728, -0.07418174296617508, 0.0134312929585576...
of deployment. I use [Ninject](http://ninject.org/) and [StructureMap](http://structuremap.sourceforge.net/Default.htm) -- both allow you to wire up your configuration without XML. Not to be shamelessly promoting my site but I wrote a tutorial on using Ninject available [here](http://frickinsweet.com/ryanlanciaux.com...
[ 0.17375805974006653, -0.4829803705215454, 0.37694796919822693, 0.05771174654364586, 0.1951400488615036, -0.22509491443634033, 0.2482854127883911, -0.1929645538330078, -0.26186275482177734, -0.600507378578186, -0.21040749549865723, 0.8910179734230042, -0.025484999641776085, -0.3141449987888...
What is [`__init__.py`](https://docs.python.org/3/tutorial/modules.html#packages) for in a Python source directory? It used to be a required part of a package ([old, pre-3.3 "regular package"](https://docs.python.org/3/reference/import.html#regular-packages), not [newer 3.3+ "namespace package"](https://docs.python.org...
[ 0.22209617495536804, -0.10463573783636093, -0.239024356007576, -0.06542397290468216, -0.15581797063350677, -0.07281213253736496, 0.0988958328962326, -0.25157448649406433, -0.22195416688919067, -0.22091582417488098, -0.5600963830947876, 0.32908904552459717, -0.38545045256614685, -0.13262847...
that any other module can contain, and Python will add some additional attributes to the module when it is imported. But just click the link, it contains an example, more information, and an explanation of namespace packages, the kind of packages without `__init__.py`.
[ 0.37083446979522705, 0.003472890006378293, 0.03148733451962471, 0.21103668212890625, 0.21488900482654572, -0.36167898774147034, -0.06125374510884285, -0.07161148637533188, -0.33488911390304565, -0.3064826726913452, -0.4589731991291046, 0.487587571144104, -0.2717211842536926, -0.12110988795...
I'm iterating through a HashMap (see [my earlier question](https://stackoverflow.com/questions/448122/how-do-i-use-a-foreach-loop-in-java-to-loop-through-the-values-in-a-hashmap) for more detail) and building a string consisting of the data contained in the Map. For each item, I will have a new line, but for the very l...
[ 0.10766161233186722, -0.10021195560693741, 0.5319561958312988, -0.23885591328144073, -0.08959074318408966, -0.0876934751868248, 0.4110777676105499, -0.3236573338508606, -0.42438286542892456, -0.5579835772514343, -0.13656730949878693, 0.09022212028503418, 0.09796107560396194, 0.059800777584...
the first time": ``` boolean first = true; StringBuilder builder = new StringBuilder(); for (Map.Entry<MyClass.Key,String> entry : data.entrySet()) { if (first) { first = false; } else { builder.append("\n"); // Or whatever break you want } builder.append(entry.key()) .appen...
[ -0.02915998362004757, -0.1929055005311966, 0.32074105739593506, -0.2800509035587311, 0.16498886048793793, -0.010944228619337082, 0.5499507784843445, -0.49599409103393555, -0.29094070196151733, -0.8380265235900879, -0.21778346598148346, 0.38627803325653076, -0.4684921205043793, 0.0665242373...
I can set the minimum version required (for example XP SP3) in Inno-Setup by going ``` MinVersion=0,5.01.2600 ``` However, that leads to the rather unfriendly Message Box: **`This program requires Windows NT version 5.1.2600 or later.`** Is there any way to have this say instead: **`This program requires WindowsX...
[ 0.2982126474380493, 0.031844425946474075, 0.7435876727104187, -0.2412218302488327, -0.1768197864294052, -0.3459347188472748, 0.22406795620918274, 0.02047145925462246, -0.07890569418668747, -0.5853534936904907, -0.1419094204902649, 0.6088155508041382, -0.1288437694311142, 0.1715985536575317...
I get a .pdf complete with images, fancy fonts, styles, gradients and what have you. Basically it's handed off to me with the message, "Make me a web page that looks exactly like this." I've tried a few pdf to html tools and they all look terrible. I figure I've only got 2 options and i hate them both. 1. convert the ...
[ 0.41164833307266235, -0.18839694559574127, 0.5020230412483215, 0.3396620750427246, -0.26599225401878357, 0.07757648825645447, -0.19497548043727875, 0.15274988114833832, -0.042146626859903336, -0.6536120176315308, -0.10913552343845367, 0.3426845073699951, -0.11625057458877563, 0.32190775871...
I've never used it, but I hear it is very popular. Are these really my only two options? Someone tell me I'm wrong, please. Grab what text you can out of the PDF and clean it up. Pull the PDF into Photoshop and slice out the graphical elements you want to use. Rebuild the page using the images and put your text in HTML...
[ 0.6895269155502319, 0.046472955495119095, 0.2772601246833801, 0.17085935175418854, -0.054350346326828, -0.13673976063728333, 0.045280128717422485, -0.05617227777838707, -0.17015379667282104, -0.6998850703239441, 0.16632038354873657, 0.543778121471405, -0.18784746527671814, -0.1021239757537...
might as well just put the PDF up in the first place. At least people can zoom in.
[ 0.3988010585308075, -0.11327164620161057, 0.24252255260944366, 0.5848796963691711, 0.09754949063062668, -0.4643969237804413, -0.005917747039347887, 0.5705590844154358, -0.14433428645133972, -0.2681176960468292, 0.21946007013320923, 0.4247055947780609, 0.26942819356918335, -0.12317555397748...
I'm trying to test a proposition that one of our vendors presented to us for accessing their product database and it regards to queries and transactions that span multiple servers. I've never done this directly on the database before and to be frank, I'm clueless, so I'm trying to mock up a proof that this works at lea...
[ 0.07433632761240005, 0.39309462904930115, 0.34639230370521545, 0.11069363355636597, -0.14837320148944855, -0.05782845616340637, 0.009239641949534416, 0.07106967270374298, -0.42481285333633423, -0.21168816089630127, 0.5111554861068726, 0.36895713210105896, 0.020755469799041748, 0.0944772735...
things simple. The databases each hold a single table called Input and Output respectively, so the structure is quasi explained like so: * Server1.Source.dbo.Input * Server2.Destination.dbo.Output I have a stored procedure on Server2 called WriteDataToOutput that receives a single Varchar argument and writes it's con...
[ 0.105403833091259, -0.1347658783197403, 0.3939228355884552, 0.08741476386785507, -0.1579265147447586, -0.2156674712896347, 0.34103888273239136, -0.23449194431304932, -0.34797656536102295, -0.418714314699173, 0.1702759563922882, 0.7093105912208557, -0.5059124827384949, 0.12633836269378662, ...
here endeth my knowledge of what to do. Can anyone point me in the right direction? I tried this on two different databases on the same server, and it worked just fine, leading me to assume that it will work on different servers, the question is, how do I go about doing such a thing? Where do I start? As others have no...
[ 0.33353230357170105, 0.14726635813713074, 0.04195864126086235, 0.15889175236225128, 0.06129211187362671, -0.05497237667441368, 0.21128033101558685, 0.09467922151088715, -0.10554562509059906, -0.7768804430961609, 0.4339257776737213, 0.37219592928886414, 0.14860403537750244, 0.24341842532157...
bracket the name. For example [SERVERNAME\INSTANCENAME]. * Use an alias for the table or view from the linked server or you will get a "multi-part identifier cannot be bound" error. There is a limit of a 4 part naming convention. For example SERVER.DATABASE.dbo.TABLE.FIELD has five parts and will give an error. However...
[ 0.2870210111141205, -0.11554011702537537, 0.3352605104446411, 0.21165356040000916, -0.08169620484113693, -0.20262303948402405, 0.02112177386879921, -0.3671463429927826, -0.045013222843408585, -0.36051416397094727, -0.03462303429841995, 0.48858124017715454, -0.20523284375667572, 0.219199836...
I am developing a software which require to print receipts. What is the most common type of receipt printer? Are there any industry standards for receipt printer API? Are there any .net library for that? Tried to find but didn't find anything. UnifiedPOS is the most common API today for communicating with Point-Of-...
[ 0.20422887802124023, -0.12042971700429916, 0.7645143270492554, 0.09152766317129135, 0.012078100815415382, 0.2853395640850067, -0.5942909717559814, -0.13820302486419678, -0.5144289135932922, -0.4795020520687103, 0.08015712350606918, 0.3161409795284271, -0.09362737089395523, -0.0075913043692...
As stated [here](http://msdn.microsoft.com/en-us/library/ms473257.aspx) custom field types (and any dlls they have a reference to?) must be deployed to the global assembly cache. Why, and what problems may arise by deploying to the bin directory? I’m trying to secure my code by writing CAS-policies and since my field c...
[ 0.26715606451034546, 0.06482239067554474, 0.2671959698200226, 0.0307930801063776, 0.23118218779563904, -0.25086691975593567, 0.27936938405036926, -0.019296418875455856, -0.374716192483902, -0.6465269923210144, -0.3367387652397156, 0.4769725799560547, -0.27202335000038147, 0.264171779155731...
installed properly. Using the –force switch or activating through the GUI seems to be working just fine. I personally use [AutoComplete](http://www.emacswiki.org/emacs/AutoComplete) It gives you a nice dropdown box. You can select how many letters you want to type before it activates and customise what you want to show...
[ 0.1721688061952591, -0.28206419944763184, 0.4886222779750824, -0.001404034555889666, 0.3433360159397125, -0.048597272485494614, 0.32416701316833496, 0.07210958749055862, -0.20046643912792206, -0.6412468552589417, -0.20997251570224762, 0.9164292216300964, -0.24760136008262634, -0.5231024026...
Why in Windows, can't you name a folder 'con'? Whenever I try to name a folder as "con" (without the quotes) it defaults to its original name. Why does it do this? Back in the MS-DOS days, "con" had a special meaning. It referred to the console, and allowed you to treat it like any other file. For example, you might ...
[ 0.2598513662815094, -0.008683345280587673, 0.32128480076789856, 0.08644168823957443, -0.14087466895580292, -0.30012449622154236, -0.297868937253952, 0.3629695773124695, -0.23810452222824097, -0.5350873470306396, 0.017034437507390976, 0.7610278725624084, -0.28727662563323975, 0.559753715991...
out there named `con`. There are [other reserved names](https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247) as well, but I see that while typing this those names have been provided already in other answers.
[ 0.3836648762226105, 0.16629663109779358, 0.16256476938724518, 0.07292591780424118, 0.05594842880964279, -0.1905660778284073, 0.06288009881973267, 0.35355132818222046, -0.15805478394031525, -0.42807939648628235, -0.13246430456638336, 0.2975136339664459, -0.018004028126597404, 0.244314387440...
So I have an Application Sandbox HTMLLoader object which I create in [AIR](http://en.wikipedia.org/wiki/Adobe_Integrated_Runtime) and simply want to call [ActionScript](http://en.wikipedia.org/wiki/ActionScript) methods from [JavaScript](http://en.wikipedia.org/wiki/JavaScript). In Flash, this is accomplished through o...
[ 0.5895792841911316, 0.22233633697032928, 0.20177830755710602, -0.1827659159898758, -0.31377270817756653, -0.009908591397106647, 0.4863370656967163, -0.6760826110839844, 0.03136686980724335, -0.5382001399993896, -0.07395680993795395, 0.37036964297294617, -0.3932376801967621, -0.154124721884...
public function Main() { NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke); } protected function onInvoke(e:InvokeEvent):void { NativeApplication.nativeApplication.removeEventListener(InvokeEvent.INVOKE, onInvoke ); var app = new App(); addChild(...
[ -0.3757305443286896, 0.16114208102226257, 0.5938164591789246, -0.336341917514801, 0.1705474555492401, 0.4936126470565796, 0.7227139472961426, -0.25210142135620117, -0.3148109018802643, -0.6500213146209717, -0.5222597122192383, 0.6573609113693237, -0.5018199682235718, 0.32744449377059937, ...
_html.load(new URLRequest("sandbox/AirRoot.html")); _html.width = 800; _html.height = 600; App.ref.addChild(_html); } ``` And at last, here is my snippet of JavaScript in my **AirRoot.html** file which is trying to call the public method **as3Function()** declared in my Main class: ``` Exposed.testAs3 = ...
[ 0.3072711229324341, 0.20555996894836426, 0.52318274974823, -0.23638740181922913, 0.0360138900578022, -0.12769736349582672, 0.6172062158584595, -0.7157628536224365, 0.06717564910650253, -0.9231790900230408, -0.3220038115978241, 0.39233797788619995, -0.24503913521766663, -0.18541207909584045...
/* This works fine. */ air.trace("seeing if I can get to AS3 params..."); /* This works fine. */ /* This doesn't work - get the following error: TypeError: Value undefined does not allow function calls. */ air.NativeApplication.nativeApplication.as3Function(); } ``` What am I missing? OK, I am going to ...
[ 0.3901076018810272, 0.3171398937702179, 0.37507256865501404, 0.009095821529626846, -0.09086254239082336, -0.3718382716178894, 0.6591342687606812, -0.3724914789199829, 0.03832258656620979, -0.6772591471672058, -0.14194777607917786, 0.5439382791519165, -0.19465330243110657, -0.05566621944308...
HTMLLoader object contains a magical property, `HTMLLoader.window`, which is a proxy to the JavaScript window object. So setting `HTMLLoader.window = AS3Function;` is one way - or in relation to my previously included example (assuming I setup a static property called Main which pointed to the Main class): ``` _html.w...
[ -0.21224060654640198, 0.09843304008245468, 0.6003537178039551, -0.1286611407995224, -0.5459673404693604, -0.09178970754146576, 0.3679293394088745, 0.0280869472771883, -0.31174856424331665, -0.9127963185310364, -0.06009519845247269, 0.22567124664783478, -0.15735019743442535, 0.2380972802639...
For a given form in a database, is there a quick/easy way to find all other forms in an Access database use it as a subform? Note: I am only concerned with main forms that have it defined using the property sheet, it is easy enough to do a code search for any form that dynamically sets it as a subform at runtime. Rig...
[ 0.48436814546585083, -0.2553234398365021, 0.4512988030910492, 0.24138127267360687, 0.03822445496916771, -0.42230647802352905, 0.13429395854473114, 0.050981663167476654, -0.1801440566778183, -0.7771871089935303, -0.11250580847263336, 0.4977778196334839, -0.24674205482006073, 0.1198426634073...
I'm currently re-using a partial on two different views. > View A > > > View B The partial belongs to Model A but has an association with Model B so it is applicable to Model B as well. It contains a form and when data is submitted, it always redirects the user to View A. However, when I submit the form from View ...
[ 0.3412928581237793, -0.18091727793216705, 0.7287435531616211, 0.08858559280633926, -0.4737846553325653, 0.21007823944091797, -0.01842845231294632, 0.039885714650154114, -0.13483333587646484, -0.6747448444366455, 0.08402206748723984, 0.08968082070350647, -0.29444411396980286, 0.461354464292...
and uses a redirect take the user to a\_url. How can I tell my form (or more so that controller action) to redirect the user back to where they came from? Thanks! Solved. I added a hidden field to my form that contained the controller name of where the partial was rendered and then my respond\_to block determined wh...
[ -0.16218598186969757, -0.22582536935806274, 0.832714855670929, 0.23996515572071075, -0.3198372721672058, 0.192777618765831, 0.14385771751403809, -0.3255603611469269, -0.27262717485427856, -0.6396213173866272, -0.2482353001832962, 0.3402717113494873, -0.08432109653949738, 0.1950535178184509...
I've got a web application that controls which web applications get served traffic from our load balancer. The web application runs on each individual server. It keeps track of the "in or out" state for each application in an object in the ASP.NET application state, and the object is serialized to a file on the disk w...
[ 0.4364183247089386, 0.005161002743989229, 0.5539023280143738, 0.23387150466442108, 0.037943363189697266, -0.12058224529027939, 0.17550210654735565, 0.23390837013721466, -0.3122445344924927, -0.5722811818122864, -0.028198808431625366, 0.3010246157646179, -0.3529928922653198, 0.4766981303691...
get collisions while attempting to read from or write to the file. This mechanism needs to be extremely reliable, because we have an automated system that regularly does rolling deployments to the server. Before anyone makes any comments questioning the prudence of any of the above, allow me to simply say that explain...
[ -0.03481751307845116, 0.23816433548927307, 0.3541453182697296, 0.200550377368927, 0.1634633094072342, -0.3426849842071533, 0.23860123753547668, -0.019903844222426414, -0.45343726873397827, -0.3253292441368103, -0.18690542876720428, 0.48857662081718445, -0.4587976932525635, 0.00005418652654...
delegate on /// the filesystem copy of the <see cref="ServerState" />. /// The work done on the file is wrapped in a lock statement to ensure there are no /// locking collisions caused by attempting to save and load the file simultaneously /// from separate requests. /// </summary> /// <param name="action">The logic...
[ 0.24211585521697998, -0.21863965690135956, 0.4594060778617859, 0.37934350967407227, 0.13437819480895996, 0.18191282451152802, -0.07302773743867874, -1.0375659465789795, -0.41850119829177856, -0.385431170463562, -0.3363420367240906, 0.2508947551250458, -0.29444384574890137, 0.22415739297866...