text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have two dynamic tables (tabx and taby) which are created and maintained through a php interface where columns can be added, deleted, renamed etc. I want to read all columns simulataneously from the two tables like so;- select \* from tabx,taby where ... ; I want to be able to tell from the result of the query whet...
[ -0.06018773093819618, 0.07999121397733688, 0.4818118214607239, 0.047753602266311646, -0.23382438719272614, 0.2309187799692154, 0.03443615511059761, -0.006644385866820812, -0.2744886577129364, -0.41670915484428406, 0.06868662685155869, 0.25881174206733704, -0.39334824681282043, 0.0565284416...
wrote long ago): ``` /* Similar to mysql_fetch_assoc(), this function returns an associative array given a mysql resource, but prepends the table name (or table alias, if used in the query) to the column name, effectively namespacing the column names and allowing SELECTS for column names that would otherwise have coll...
[ -0.28509554266929626, -0.058441318571567535, 0.42448097467422485, -0.1485820710659027, -0.10959010571241379, 0.24091659486293793, 0.06644419580698013, -0.47330114245414734, 0.013235245831310749, -0.4098159670829773, 0.03435288742184639, 0.4279427230358124, -0.4213121235370636, 0.2943817079...
$size = count($row); for($i = 0; $i < $size; $i++) { // now fetch the field information $info = mysql_fetch_field($resource, $i); $table = $info->table; $name = $info->name; // and make an associative array, where the key is $table.$name $result["$table.$name"] = ...
[ -0.169148787856102, -0.15467947721481323, 0.6107805371284485, -0.30438023805618286, 0.1741846352815628, 0.3995319604873657, -0.14950843155384064, -0.42513787746429443, -0.25538837909698486, -0.3157689571380615, -0.20745638012886047, 0.48647022247314453, -0.45071420073509216, 0.071682326495...
} return $result; } ``` Then you can use it like this: ``` $resource = mysql_query("SELECT * FROM user JOIN question USING (user_id)"); while($row = mysql_fetch_assoc_with_table_names($resource)) { echo $row['question.title'] . ' Asked by ' . $row['user.name'] . "\n"; } ``` So to answer your question dire...
[ 0.006858754437416792, 0.015630995854735374, 0.40428033471107483, -0.11336369812488556, -0.12157924473285675, -0.004795133601874113, 0.09290152043104172, -0.30384761095046997, -0.22864854335784912, -0.3212784230709076, -0.1716531366109848, 0.5338625907897949, -0.33321163058280945, 0.2371034...
I need a list of all the users common to a known collection of groups, using a single LDAP query of our Active Directory. It would seem, from the our reading so far, that such is not possible, but I thought it best to ask the hive mind. Yes it's possible with an attribute scoped query. It requires W2K3 AD or later but ...
[ 0.5443769693374634, 0.253711462020874, -0.377852201461792, 0.1253388524055481, -0.009903057478368282, -0.23974297940731049, 0.1450285017490387, -0.24254998564720154, -0.30886873602867126, -0.45849135518074036, 0.04178636148571968, 0.22441913187503815, -0.5146377086639404, -0.23526017367839...
Dunns book "The .NET Developers Guide to Directory Services Programming" for AD work it's hard to beat look at page 179 for a good walk through. **Caveat**:At this point you are past trivial searches in AD and a number of things are becoming important like the search root, scope and the effect of searching through so...
[ 0.587992787361145, 0.23853768408298492, 0.41330429911613464, 0.1605987250804901, -0.26389163732528687, -0.29319140315055847, 0.14160196483135223, -0.21194055676460266, -0.29543888568878174, -0.38260185718536377, 0.17582504451274872, 0.30585935711860657, -0.1258775293827057, -0.049533948302...
Kaplan/Ryan do an excellent job of down to earth work to get you where you need to be. That said, I have used them on two AD projects with great success. Being able retrieve the data from AD without recursive queries is VERY worth while and I found that it is fast as long as I control the size of my dataset.
[ 0.4117664396762848, 0.16980484127998352, 0.25077903270721436, 0.06616262346506119, -0.14099977910518646, 0.02210562489926815, -0.1419222205877304, 0.06856967508792877, -0.07431724667549133, -0.9147031903266907, 0.4000634253025055, 0.5445724129676819, 0.619388222694397, 0.1602420061826706, ...
Currently I have a rich tree which works as expected; however the tree itself is not appropriate for small devices where you use your finger for navigation. The arrow that represents the child nodes, and their expansion, is too small. Is there any way to change that graphic, or increase its size? I downloaded this [SQL...
[ 0.20598913729190826, 0.050148431211709976, 0.5691699981689453, 0.00793816801160574, 0.4024316370487213, 0.14459292590618134, 0.22865788638591766, -0.13533081114292145, -0.3512474000453949, -0.8647702932357788, 0.20446214079856873, 0.3863835632801056, -0.10019296407699585, 0.120169408619403...
// If the installation worked you should find it under // the .Net tab of the "Add Reference"-dialog namespace sqlite_test { class Program { static void Main(string[] args) { var path_to_db = @"C:\places.sqlite"; // copied here to avoid
[ 0.585753858089447, 0.07436027377843857, 0.4845999479293823, -0.2474149614572525, 0.12746113538742065, -0.03299646079540253, 0.4207298755645752, 0.00944305770099163, -0.1437695175409317, -0.3607913553714752, 0.13128603994846344, 0.3318137526512146, -0.3842407464981079, 0.3307638168334961, ...
long path SQLiteConnection sqlite_connection = new SQLiteConnection("Data Source=" + path_to_db + ";Version=3;New=True;Compress=True;"); SQLiteCommand sqlite_command = sqlite_connection.CreateCommand(); sqlite_connection.Open(); sqlite_command.CommandText = "select * f...
[ 0.11556143313646317, -0.17672914266586304, 0.6797334551811218, -0.14065170288085938, 0.33605650067329407, 0.0289241261780262, 0.2723231613636017, -0.20367400348186493, -0.05214785411953926, -0.5591195821762085, -0.40078210830688477, 0.340623140335083, -0.3480347692966461, 0.459841966629028...
{ // Prints out the url field from the table: System.Console.WriteLine(sqlite_datareader["url"]); } } } } ```
[ -0.1257634162902832, 0.31793829798698425, 0.4967308044433594, -0.11990015208721161, 0.34961414337158203, -0.09095790982246399, 0.0031284799333661795, -0.07119332998991013, 0.055944789201021194, -0.38147541880607605, -0.3016384541988373, 0.4276348650455475, -0.2800741195678711, 0.2570758461...
is there a way to create my own custom superglobal variables like $\_POST and $\_GET? Static class variables can be referenced globally, e.g.: ``` class myGlobals { static $myVariable; } function a() { print myGlobals::$myVariable; } ```
[ -0.012111959978938103, -0.13760735094547272, 0.4507019817829132, 0.2914760112762451, -0.09316965192556381, 0.06352964043617249, -0.012643551453948021, 0.5587629079818726, -0.30776622891426086, -0.34970489144325256, -0.1450474113225937, 0.3731827735900879, -0.38653382658958435, 0.4237030148...
We recently started providing a data extract to clients via an XML. We have a schema (XSD) that defines the structure of this XML. I would like to include the documentation of the elements and attributes in the schema itself. The only thing I am finding is the very cumbersome "annotation" and "documentation" tags. So ...
[ 0.33773869276046753, 0.22703543305397034, 0.45674648880958557, 0.24874024093151093, -0.05336768180131912, -0.2838318943977356, -0.22722305357456207, -0.11383356153964996, -0.2556578814983368, -0.595176100730896, -0.14135834574699402, 0.41313913464546204, -0.16224919259548187, 0.10641605406...
Type of transaction </xs:documentation> </xs:annotation> </xs:element> ``` Is there anything better? Say something like this: ``` <xs:element name="TransactionType" type="xs:string" description="Type of transaction" /> ``` PS: We already provided this extract as a simple fixed length file and as a CSV...
[ 0.0723511353135109, -0.06785499304533005, 0.527284562587738, 0.23764343559741974, -0.16941693425178528, -0.1426430642604828, -0.37627875804901123, -0.25206053256988525, -0.4054775536060333, -0.5387701988220215, -0.020839156582951546, 0.2691621780395508, -0.30517247319221497, 0.035688228905...
elements. No, there is not. `<xs:annotation><xs:documentation>` is all there is.
[ 0.041000209748744965, 0.37946075201034546, -0.0771203339099884, 0.27147817611694336, 0.21257846057415009, -0.17002332210540771, -0.017674831673502922, -0.21034997701644897, 0.0220901258289814, -0.5829643607139587, -0.39616894721984863, 0.08220244944095612, -0.2744219899177551, -0.211525917...
I've just been setting up a new 10" netbook and have just installed Eclipse for some development. Even on large screens I've found Eclipse's GUI to be very bulky and awkward to work with, and now on a small screen, the real estate left for actual coding is ludicrously small. Is it possible to apply a theme or skin to E...
[ 0.47896403074264526, 0.09030182659626007, 0.15521188080310822, 0.1372629851102829, -0.07954082638025284, 0.14749276638031006, -0.2524552345275879, 0.18425725400447845, -0.19824761152267456, -0.6995100378990173, 0.3306027948856354, 0.7551388144493103, 0.021500268951058388, -0.19248387217521...
I'm trying to open a JMX connection to java application running on a remote machine. The application JVM is configured with the following options: * com.sun.management.jmxremote * com.sun.management.jmxremote.port=1088 * com.sun.management.jmxremote.authenticate=false * com.sun.management.jmxremote.ssl=false I'm abl...
[ 0.04659104347229004, 0.1883118748664856, 0.2071651816368103, -0.029603689908981323, -0.005131595768034458, -0.20203636586666107, 0.5725322365760803, -0.016745977103710175, -0.24155713617801666, -0.7488747835159302, 0.042372506111860275, 0.6370316743850708, -0.29419171810150146, 0.088940888...
*localhost is the loopback interface*, you need to application to bind to your *network interface*. You can use the netstat to confirm that it is not bound to the expected network interface. You can make this work by invoking the program with the system parameter `java.rmi.server.hostname="YOUR_IP"`, either as an e...
[ -0.1374220848083496, -0.1509101539850235, 0.33818739652633667, -0.05013807490468025, -0.13007456064224243, -0.28298476338386536, 0.2410375475883484, 0.22550161182880402, -0.4046717882156372, -0.8703176975250244, 0.046320803463459015, 0.5300775766372681, -0.3460862338542938, 0.1786793321371...
So, trying to find some utility(ies) to give us statistical information on this thing. For example, what files were created in the last 30, 60, 90 days, 6 months, etc. What are their sizes? Something with sortable reports would be nice. I know we can do some things with a variety of command line switches for ls and ...
[ 0.6465423703193665, -0.01978198252618313, 0.421696275472641, 0.20510295033454895, 0.2801976799964905, -0.3428274393081665, -0.12224465608596802, -0.046963199973106384, -0.5219524502754211, -0.7649180293083191, 0.06292732805013657, 0.49160027503967285, -0.11093475669622421, 0.28766360878944...
port); Stream stm = tcpclnt.GetStream(); stm.Write(cmdBuffer, 0, cmdBuffer.Length); MemoryStream ms = new MemoryStream(); byte[] buffer = new Byte[2048]; int length; while ((length = stm.Read(buffer, 0, buffer.Length)) > 0) ms.Write(buffer, 0, length); tcpclnt.Close(); byte[] response = ms.ToArray(); ``` As menti...
[ -0.28902584314346313, -0.32620084285736084, 1.1571153402328491, -0.2798863351345062, 0.22718733549118042, 0.20715872943401337, 0.17122481763362885, -0.15210716426372528, -0.40487971901893616, -0.6128731369972229, -0.1870843917131424, 0.6819893717765808, -0.308959424495697, 0.46766382455825...
I have a background thread that performs I/O operations (keeping an index up to date). But in addition to that several clients access the server's hard disk and I want these accesses as fast as possible. So I thought, it would be nice, if the indexing thread is only running when the I/O load is low. Is there a way to ...
[ 0.4862235188484192, 0.07064507156610489, 0.24132825434207916, 0.30446359515190125, 0.13235285878181458, -0.17906245589256287, 0.14706870913505554, 0.09313217550516129, -0.29917997121810913, -0.7688043117523193, 0.19923876225948334, 0.7867778539657593, 0.0012645896058529615, 0.1119274869561...
own I/O load you'll be adding when deciding what your high-end is for the stopping threshold.
[ 0.3335629403591156, 0.05507446452975273, 0.33781540393829346, 0.12903326749801636, -0.01441225316375494, 0.13788862526416779, -0.23378321528434753, -0.3175837993621826, -0.11569813638925552, -0.4034404456615448, 0.3615991771221161, 0.49876976013183594, 0.08276215940713882, -0.2593006193637...
Its been one of those days can someone help me out with this. I have 2 Stock Objects which I want to compare properties of at runtime. One instance is the cached instance, the other is a new stock instance which has just been delivered to my system, which may or may not equal the cached instance. See below where m is ...
[ 0.14279372990131378, -0.08801586180925369, 0.14803670346736908, -0.08996272087097168, 0.2436469942331314, 0.261640340089798, 0.14761853218078613, -0.18486101925373077, -0.13330447673797607, -0.6834450364112854, 0.33532750606536865, 0.5874342918395996, -0.05581885576248169, 0.37558391690254...
vary but is known at runtime Class returnType = m.getReturnType(); // I assume I need to cast before .equals() will work correctly if(result.equals(cacheResult)) { // Will this work or do I need to cast } }catch (Exception ex) { } ``` EDIT: For those who have asked about why I am using reflection, I am using...
[ 0.3419564366340637, -0.16226020455360413, 0.5927923321723938, -0.18854986131191254, -0.19455821812152863, 0.09415088593959808, 0.408458948135376, -0.48319679498672485, 0.007159827277064323, -0.7054466009140015, 0.2658624053001404, 0.7233750820159912, -0.2444741129875183, 0.0156092895194888...
properties that have changed and not the whole object. You shouldn't need to cast. Java will automatically choose the correct `equals` method. I recommend you debug that line to see what `Class` each object is.
[ 0.11367986351251602, -0.06904393434524536, 0.12912793457508087, -0.02349105104804039, -0.19881771504878998, -0.23915886878967285, 0.28190287947654724, 0.04087363928556442, -0.014981516636908054, -0.7278590202331543, 0.1329217106103897, 0.6395440101623535, -0.2644038498401642, 0.15367707610...
I am trying to explain to a non-developer the difference between an API an SDK. I need to explain why a commercial fingerprint software vendor will likely not provide an SDK, although they may certainly have used one. Both device vendors and software vendors can and should expose a well-defined API. This API allows ot...
[ 0.7664931416511536, 0.4210274815559387, -0.07102834433317184, 0.23782193660736084, 0.08929774910211563, -0.15904919803142548, 0.018903270363807678, -0.06832823157310486, 0.02645333670079708, -0.5925635099411011, 0.07474855333566666, 0.46233266592025757, -0.09403222799301147, -0.10048792511...
who does not know developer lingo**. Specifically, in the context of a fingerprint sensor versus software to do enrollment/verification, here is how I attempted to explain it: > If I am a fingerprint device/sensor manufacturer and not in the > business of writing software, the ways I could better market my > produc...
[ 0.668504536151886, 0.35206830501556396, 0.2582359313964844, 0.052345577627420425, 0.28510287404060364, -0.42065638303756714, 0.18430127203464508, -0.15282444655895233, 0.35012388229370117, -0.5259169340133667, 0.14326708018779755, 0.5439949035644531, -0.011647203005850315, -0.0909477248787...
step beyond an API) to make it easier and faster for software developers to write programs that work > with my device. SDKs may provide helper code libraries, reference > applications, documentation etc. Piece of cake: * an API is an **interface**. It's like the specification of the telephone system or the electrica...
[ 0.6793378591537476, 0.03216876462101936, 0.20165906846523285, 0.21615208685398102, 0.04133347049355507, -0.11418656259775162, 0.28255942463874817, -0.1845337450504303, -0.0014134955126792192, -0.7169756889343262, 0.027182627469301224, 0.3272722363471985, -0.06272619217634201, 0.07531181722...
SDK is **implementation tooling**. It's like a kit that allows\*\* you to build something custom to hook up to the telephone system or electrical wiring. \*Anything can use an API. Some APIs have security provisions to require license keys, authentication, etc. which may prohibit complete use of the API in particular ...
[ 0.8303692936897278, 0.08482502400875092, 0.026217838749289513, 0.2865961790084839, -0.08434979617595673, -0.6877498030662537, 0.2598128616809845, -0.2838153541088104, -0.0638372078537941, -0.6670880317687988, -0.26996108889579773, 0.3606032133102417, -0.15921922028064728, 0.013881299644708...
easier.
[ 0.13287656009197235, 0.04601530730724335, -0.07879495620727539, 0.23600803315639496, -0.12922464311122894, -0.12486393749713898, 0.1642729490995407, -0.0955478847026825, 0.09703628718852997, -0.7332139611244202, -0.1905672401189804, 0.4792012572288513, -0.048364873975515366, -0.22314128279...
I have recently installed Team Explorer on one of my machines that has Visual Studio 2008 SP1 installed. But know whenever I click a work item or trying to open a team query I get the following error: **Could not load type 'Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeDeniedOrNotExistException' from as...
[ 0.2599446177482605, 0.08165839314460754, -0.07826942205429077, -0.22693772614002228, -0.562328577041626, -0.14720776677131653, 0.673694372177124, 0.02080727368593216, -0.125629723072052, -0.6919664740562439, 0.1321875900030136, 0.6598424315452576, -0.3666190207004547, -0.029249345883727074...
installing Team Explorer. Found [the link to the blog post](http://blogs.msdn.com/kristol/archive/2009/05/04/installing-the-visual-studio-2008-development-stack-in-the-right-order.aspx).
[ -0.019002119079232216, -0.05293555185198784, 0.10738535225391388, -0.18922753632068634, -0.28516867756843567, -0.33081308007240295, 0.2540929317474365, 0.06637062132358551, -0.019671058282256126, -0.5177876949310303, -0.33939558267593384, 0.512359619140625, 0.056759607046842575, -0.5501872...
Guys i have tried to refresh my page with a button.. `<input type="reset" value="Refresh" />` but it not refreshing, not to refresh the textboxes jst to refresh the entire page. Try this: ``` <INPUT TYPE="button" VALUE="Reload Page" onClick="history.go(0)"> ```
[ 0.24441714584827423, 0.28971609473228455, 0.35977903008461, -0.20511974394321442, -0.2820034921169281, -0.15363483130931854, 0.2403145432472229, 0.10811259597539902, -0.6591281294822693, -0.6525478959083557, -0.08081918954849243, 0.8172762989997864, -0.1694299429655075, -0.0202417299151420...
I have my current location fixed via CoreLocation. Now I want to get those locations (from an existing database), which are in the near (about 100 feet) of it. How do I start? --- Update: Here is a implementation of the Haversine formula: <http://www.jaimerios.com/?p=39> (very useful) `CLLocation` provides a method ...
[ 0.28554126620292664, 0.22739072144031525, 1.2265101671218872, 0.06878577917814255, 0.7075434923171997, -0.033867109566926956, -0.29129284620285034, 0.029155176132917404, -0.22146819531917572, -0.30224764347076416, 0.10028105974197388, 0.18623670935630798, 0.18591974675655365, 0.18681532144...
I have an issue cropping up in a form I'm trying to post. In the scenario where the form doesn't validate, I'm taking the standard route of calling `ModelState.AddModelError()` then returning a View result. The thing is, the HTML.\* helpers are supposed to pick up the posted value when rendering and I'm noticing that ...
[ 0.042508240789175034, -0.002216577995568514, 0.7540616989135742, -0.16901661455631256, -0.3275144100189209, 0.08836454898118973, 0.24460949003696442, -0.24189060926437378, -0.24929273128509521, -0.6200968623161316, -0.10304071754217148, 0.3550928235054016, -0.2746029198169708, 0.0165554005...
name) { var dataDefinition = ... // do some validation stuff if (!ModelState.IsValid) { // manually set checkbox fields via ViewData seeing as this STILL doesn't work in MC 1.0 :P // ... return View(dataDefinition); } } ``` Now, dataDefinition (which is a LINQ to SQL enti...
[ 0.04470805078744888, -0.1422879844903946, 0.8812098503112793, 0.009807689115405083, 0.04827107489109039, 0.0044195628724992275, 0.1042734682559967, -0.47719985246658325, -0.1976577192544937, -0.3732450604438782, -0.3160824775695801, 0.47010737657546997, -0.12785470485687256, 0.435683816671...
when the view is rendered after a failed ModelState validation, the value typed into it on the original page we posted is not preserved UNLESS I include it as a parameter in the postback method. Literally, I can "solve the problem" by doing this: ``` [AcceptVerbs(HttpVerbs.Post)] public ActionResult EditDataDefinition...
[ 0.25335028767585754, -0.13914868235588074, 0.7311589121818542, -0.1085742935538292, -0.181671142578125, 0.04415396600961685, 0.45564934611320496, 0.13791155815124512, -0.08713552355766296, -0.6312109231948853, -0.06919553130865097, 0.7430111765861511, -0.1198209673166275, 0.313950896263122...
= 5 })%> ``` ..has the `null` for the default value param? Maybe if you change the `null` to `Model.MinVolume` it will persist the value. Like this: ``` <%= Html.TextBox("MinVolume", Model.MinVolume, new { size = 5 })%> ``` I'm not sure if your action returns the value `MinVolume` in the model tho. If it does, th...
[ -0.12966911494731903, -0.27352428436279297, 0.5934621691703796, -0.27186986804008484, -0.030685361474752426, 0.48246029019355774, 0.48451846837997437, -0.2908550798892975, -0.46422654390335083, -0.3731292486190796, -0.1663244515657425, 0.5384164452552795, -0.2272515743970871, 0.12765258550...
I have a MDB (Message driven bean) that receives messages with String which represent a word. Also I have a table in the database. The MDB should store in the table, the words and the number of times each word was received (counter). The problem is that to get better performance the MDB started in many instances and w...
[ 0.007895604707300663, 0.25122183561325073, 0.2101261019706726, -0.2621324956417084, -0.49423766136169434, 0.07659801095724106, 0.10623621195554733, -0.23367442190647125, -0.11770091950893402, -0.6774488091468811, 0.24112743139266968, 0.29553478956222534, -0.566692590713501, 0.5736463069915...
work, but may be problematic. Is it a good practice ? Another solution is to merge these lines afterwards summing the counter. But what if another instance will increase the counter in the middle of the update. What if two instances try to increase the counter ? `@Version` should be enough? I'm not sure what is the ...
[ 0.5757943391799927, -0.05036325007677078, 0.25882479548454285, 0.07816444337368011, -0.20990630984306335, -0.25664228200912476, 0.4338715374469757, -0.15512984991073608, -0.5197192430496216, -0.573058545589447, 0.22041386365890503, 0.5775706768035889, -0.30286911129951477, -0.1603159755468...
suppose I want something like an locking entity. For example I can create a new table with only id and key columns and data like this: ``` ID | KEY 1 | WORDS_CREATE_LOCK ``` So that when I need to handle a new word I will do something like this (not exact code, not sure it will even compile): ``` // MAIN FUNCTION ...
[ -0.11661431938409805, -0.029967978596687317, 0.45534422993659973, -0.14043591916561127, 0.10987116396427155, -0.034331079572439194, 0.430436372756958, -0.4875054359436035, -0.05839904770255089, -0.6271195411682129, -0.38216066360473633, 0.5141307711601257, -0.33299338817596436, 0.178429871...
= null; Query query = em.createQuery("select w from words as w where w.string = :wordStr order by w.id asc"); query.setParameter("wordStr", wordStr); List<Word> words = query.getResultList(); if (words.getSize() > 0) w = words.get(0); return w; } // Handles locking to prevent duplicate word creation p...
[ -0.056185342371463776, -0.19802948832511902, 0.7719999551773071, -0.06789636611938477, 0.3417756259441376, 0.2621318995952606, 0.7138303518295288, -0.5878594517707825, -0.28671228885650635, -0.6361451745033264, -0.7439141869544983, 0.49693426489830017, -0.2215949445962906, 0.46818339824676...
work that way? And can I do the same without maintaining a DB Table with locking rows? May be some Java EE container locking mechanism ?** If it helps I'm using JBoss 4.2. --- I have a new idea for this. I can create two MDBs: 1st MDB with many instances allowed, that will handle all the messages and if the word is...
[ 0.32131439447402954, 0.010658828541636467, 0.27373677492141724, -0.12656189501285553, -0.27848660945892334, -0.17622601985931396, 0.5054742097854614, -0.34811148047447205, -0.03870772570371628, -0.9382009506225586, 0.07482554018497467, 0.593322217464447, -0.35656189918518066, 0.01612428203...
is that ? Thanks. If you are looking for performance, no locking, etc. I would suggest to have another table: (word, timestamp). Your MDBs will just insert the word and the timestamp. Another process will count and update the table with the totals.
[ 0.302109956741333, 0.09824766218662262, 0.36924049258232117, 0.14829561114311218, 0.11284033954143524, -0.06896480917930603, -0.1705988496541977, 0.05710800737142563, -0.24127280712127686, -0.6882543563842773, 0.20509059727191925, 0.4224754273891449, -0.07700639963150024, 0.109145268797874...
I need to recursively cast a PHP SimpleXMLObject to an array. The problem is that each sub element is also a PHP SimpleXMLElement. Is this possible? ``` json_decode(json_encode((array) simplexml_load_string($obj)), 1); ```
[ 0.0021062123123556376, 0.1708083301782608, 0.4277286231517792, -0.23464445769786835, 0.16086961328983307, -0.17259880900382996, 0.3675020933151245, -0.357146292924881, -0.0021982351318001747, -0.3063693344593048, -0.09967675060033798, 0.4230985641479492, -0.629109799861908, 0.0062107597477...
I have a control which inherits from (you guessed it) Control. I want to receive a notification whenever the `FontSize` or `Style` properties are changed. In WPF, I would do that by calling `DependencyProperty.OverrideMetadata()`. Of course, useful things like that have no place in Silverlight. So, how might one receiv...
[ 0.4844399094581604, 0.037931691855192184, 0.301702618598938, -0.08192213624715805, 0.04798747971653938, -0.09107252210378647, 0.1998201310634613, -0.1742308884859085, 0.06828128546476364, -0.5867151021957397, -0.10457056015729904, 0.6356539726257324, -0.29943132400512695, 0.332368135452270...
depedency property Binding b = new Binding(propertyName) { Source = element }; var prop = System.Windows.DependencyProperty.RegisterAttached( "ListenAttached"+propertyName, typeof(object), typeof(UserControl), new System.Windows.PropertyMetadata(callback))...
[ -0.06972294300794601, -0.445544570684433, 0.3764525055885315, 0.09539187699556351, 0.14737582206726074, 0.026428578421473503, 0.43323996663093567, -0.6818323135375977, -0.1966470181941986, -0.4418244957923889, -0.29059910774230957, 0.7852561473846436, -0.4390665292739868, 0.273524463176727...
a change notification of a property of an element, like . ``` RegisterForNotification("Text", this.txtMain,(d,e)=>MessageBox.Show("Text changed")); RegisterForNotification("Value", this.sliderMain, (d, e) => MessageBox.Show("Value changed")); ``` See my post here on the same <http://amazedsaint.blogspot.com/2009/12/...
[ 0.2788534462451935, -0.0060456544160842896, 0.35285356640815735, -0.12750166654586792, 0.19414865970611572, -0.10174403339624405, 0.4939207136631012, -0.5235310196876526, -0.06829611212015152, -0.32489368319511414, 0.01814253441989422, 0.5911900401115417, -0.329140305519104, 0.037777610123...
Every time I experiment with a new language, compiler, interpreter, tool, or whatever, and I want to run that from the command line, I would have to go to System and change my PATH variable. However, the box to put the monster string in consists of only a 1-line text box. I frequently find myself having to copy/paste t...
[ 0.47576573491096497, 0.10958833992481232, 0.16581900417804718, 0.298604279756546, -0.0290452279150486, -0.019674578681588173, 0.5738565325737, 0.10402226448059082, -0.2518254816532135, -0.6329659819602966, 0.09707040339708328, 0.1322011947631836, -0.34340935945510864, 0.17901113629341125, ...
thinking of using SUSE for development since my PATH is so messed up. If you always start the command line from one or a few shortcuts, you can run a batch file when it starts. For example: ``` cmd /k autoexec_console.cmd ``` where the batch file could have ``` set path=c:\foo;%path% ``` or anything else, and thi...
[ 0.036170843988657, -0.147352397441864, 0.34941500425338745, 0.006628663279116154, 0.05105762928724289, -0.13091173768043518, 0.2510432302951813, 0.052446939051151276, -0.1539573073387146, -0.8061663508415222, -0.2832634150981903, 0.3130582869052887, -0.23015621304512024, 0.0106598651036620...
Okay, this might be a very silly beginner question, but: I've got an ClassA, which will create an child object from ClassB and assign that to an instance variable. In detail: ClassA will alloc and init ClassB in the designated initializer, and assign that to the childObject instance variable. It's header looks like th...
[ 0.056947942823171616, 0.03567557781934738, 0.06228962913155556, -0.03780898451805115, 0.11695905029773712, 0.04208634793758392, -0.053930118680000305, -0.1751105934381485, -0.05489308014512062, -0.6900786757469177, 0.0013080351054668427, 0.2567026615142822, -0.2615194320678711, 0.294575095...
the ClassA object will call the designated initializer of the ClassB object, where it has to pass itself (self). I feel that there is something wrong, but for now I don't get exactly what it is. One think I know is that this does not work. They can't bove import eachother. The compiler just tells me: "error: syntax er...
[ -0.13402962684631348, -0.05057428032159805, -0.020548107102513313, -0.28057605028152466, -0.1834132969379425, 0.06413064897060394, 0.46080565452575684, -0.16592687368392944, 0.2668054401874542, -0.7169015407562256, -0.03694044053554535, 0.567199170589447, -0.39806652069091797, 0.3623746931...
some very special and complex behavior in an UIScrollView. So I decided to subclass it. Because the main part is going to be done inside the delegate methods, I decided to create an "generic" delegate object for my subclass of UIScrollView. My UIScrollView subclass then creates automatically that special delegate objec...
[ 0.191371351480484, -0.05582202225923538, 0.37335672974586487, 0.11308606714010239, -0.12375333905220032, -0.11891575157642365, 0.1063230112195015, -0.22562521696090698, -0.30659160017967224, -0.5721642374992371, 0.0885043814778328, 0.4310131371021271, -0.34829482436180115, 0.27401816844940...
know how I could do it that way with two "interdependent" objects that need eachother. Any suggestions are welcome! You don't need to import those classes in the header files. Use `@class` in the header files, and then use #import only in the .m files: ``` // ClassA.h: @class ClassB; @interface ClassA : NSObject { ...
[ 0.005286091472953558, 0.026356156915426254, 0.2350025773048401, -0.06265702098608017, 0.16968443989753723, 0.18026034533977509, 0.04587709158658981, -0.27772057056427, -0.09027376770973206, -0.9531587362289429, 0.06308047473430634, 0.5173994898796082, -0.24975179135799408, 0.15153531730175...
How do I determine which service pack (if any) Visual Studio is running? Right now I'm trying to determine if a machine is running VS2008 or VS2008 SP1. Found it. It's not the version number as I initially expected. Go to Help > About Microsoft Visual Studio and it's under Installed Products: > Microsoft Visual Stud...
[ 0.2035338133573532, -0.05529918149113655, 0.2210606187582016, -0.08371751755475998, -0.2654345631599426, -0.3094814419746399, 0.39031562209129333, -0.06782588362693787, -0.12003208696842194, -0.48461946845054626, -0.06850346177816391, 0.6208813786506653, -0.029105478897690773, -0.067631244...
For instance, in VB.NET: ``` Dim strArray(5) As String ``` As I understand it, because this is an array, the computer will allocate contiguous memory locations for each of the 5 elements. But how much space is allocated for each of the five elements? What if I decide to put a 5MB block of text in position 2 of the...
[ 0.30666786432266235, -0.05274101719260216, -0.0011276918230578303, -0.06048109382390976, -0.13105830550193787, -0.02770129218697548, 0.15786652266979218, -0.19398778676986694, -0.3886629343032837, -0.4498516321182251, -0.1380031555891037, 0.35023820400238037, -0.35007601976394653, 0.246328...
feature. In .NET: * Arrays are usually stored on the heap (unless you use something like `stackalloc` in C#) * If you create an array of reference type values (e.g. strings) the array *only* contains the references * A reference is 4 bytes when running the 32-bit CLR, and 8 bytes when running the 64-bit CLR * Although...
[ 0.4697343409061432, -0.20873577892780304, 0.396731972694397, -0.12427090108394623, -0.049990177154541016, -0.10880625247955322, 0.10707738250494003, -0.18923382461071014, -0.42997148633003235, -0.7621744871139526, -0.262888103723526, 0.5849394202232361, -0.1858942061662674, -0.222151979804...
references within the array may refer to any string anywhere in memory, or `Nothing`. For value types, the array holds the value directly - so an array of `Int32`s will take up: ``` normal object overhead + 4 bytes for the length + 4 bytes per element ``` An array of `Int64`s will take: ``` normal object overhead ...
[ 0.12818768620491028, 0.3523402512073517, 0.3520151674747467, 0.12518474459648132, -0.04322725534439087, 0.231228768825531, 0.1679319441318512, -0.2221185564994812, -0.15682806074619293, -0.21392904222011566, -0.09645219147205353, 0.21267905831336975, -0.28056350350379944, 0.257122069597244...
In MS-DOS, if I enter `dir *.pdf`, I'll get all the PDF files in a directory. Is there a way to get everything *but* PDF files? Something like `dir !*.pdf`? Thanks! I think there's a /v option for findstr which is equivalent to grep -v (include all lines that *don't* contain the text. So I'd be looking at: ``` dir | ...
[ -0.10729363560676575, 0.10121837258338928, 0.642582893371582, 0.08516421914100647, -0.08352813124656677, -0.41807377338409424, 0.2986680865287781, 0.18552415072917938, 0.035943418741226196, -0.9852675795555115, -0.2059568166732788, 0.9762657880783081, -0.17000027000904083, 0.03841654211282...
sort of stuff), you can just use grep itself: ``` ls -al | grep -vi '\.pdf$' ``` **Addendum:** I actually didn't realize this but apparently findstr also support regexes so you can use: ``` dir | findstr /vi "\.pdf$" ``` just the same as grep (I haven't tested this, I only just found it on [TechNet](http://techn...
[ 0.07560555636882782, -0.10700027644634247, 0.6660235524177551, 0.17411063611507416, 0.1009562537074089, -0.060425832867622375, 0.0004126930143684149, 0.15672190487384796, -0.2287721186876297, -0.6487107276916504, -0.20414045453071594, 0.45826464891433716, -0.20741893351078033, 0.0417068675...
It looks like the lists returned by `keys()` and `values()` methods of a dictionary are always a 1-to-1 mapping (assuming the dictionary is not altered between calling the 2 methods). For example: ``` >>> d = {'one':1, 'two': 2, 'three': 3} >>> k, v = d.keys(), d.values() >>> for i in range(len(k)): print d[k[i]]...
[ 0.037809159606695175, -0.001138961990363896, 0.20997193455696106, -0.08991510421037674, -0.060206685215234756, 0.17381422221660614, 0.2999107241630554, -0.5141211748123169, 0.02222343347966671, -0.4997101128101349, -0.16873067617416382, 0.8098598122596741, 0.022791661322116852, 0.055695395...
no > intervening modifications to the > dictionary, the lists will directly > correspond. On [2.x documentation](https://docs.python.org/2/library/stdtypes.html#dict.items) and [3.x documentation](https://docs.python.org/3/library/stdtypes.html#dictionary-view-objects).
[ 0.15881289541721344, -0.013698231428861618, 0.49230262637138367, 0.06757310777902603, -0.32556915283203125, -0.05744972452521324, 0.08280767500400543, -0.2866555154323578, -0.1089249774813652, -1.0051697492599487, -0.43302878737449646, 0.3769702613353729, -0.4766959846019745, -0.2008903622...
I have a Projects table, which lists the client info. Then I have four related jobs tables, for jobs within that project - Roofing, Siding, Gutters and Misc. The four tables have a projectID field to link them to the Projects table, and they all have a 'status' field. A project can have any combination of jobs. I want...
[ 0.4884278178215027, 0.24674470722675323, 0.44212257862091064, -0.012405411340296268, 0.24882246553897858, 0.5171408653259277, -0.09542174637317657, -0.26705053448677063, -0.27174079418182373, -0.8050783276557922, -0.13299669325351715, 0.3612227439880371, 0.2750019431114197, 0.2417906224727...
JOIN Gutters ON (projectID) LEFT JOIN Misc ON (projectID) WHERE (Roofing.status IS NULL OR Roofing.status="completed") AND (Siding.status IS NULL OR Siding.status="completed") AND (Gutters.status IS NULL OR Gutters.status="completed") AND (Misc.status IS NULL OR Misc.status="completed") ```
[ 0.23150211572647095, -0.017478372901678085, 0.4653410315513611, -0.13614533841609955, 0.17109419405460358, 0.4551783800125122, 0.31337305903434753, -0.20540010929107666, -0.2743777334690094, -0.620009183883667, -0.4531674385070801, 0.09240596741437912, -0.07081630080938339, 0.3601576387882...
I just want to know how [DeviantArt.com](http://browse.deviantart.com/?order=24&offset=24) implemented the shadowing on each images. If you look at the thumbnails, you'll see that the images are shadowed a bit. I think they done it with Javascript because when I turned off my Javascript the shadows were gone. And they...
[ 0.9169037938117981, -0.1195237934589386, 0.5358859300613403, 0.06968925148248672, -0.03275584802031517, 0.39302751421928406, -0.15062257647514343, 0.20331402122974396, -0.3749557435512543, -0.400808185338974, 0.43953993916511536, 0.35352617502212524, 0.0414249524474144, 0.11587381362915039...
Is there any browser I could embedd in C++ application on Windows? I need all features typical browser has (HTTP client, cookies support, DOM style HTML parser, JavaScript engine) **except** rendering. Because I don't need rendering capability (and that's rather big part of a browser) I would prefer a browser with non...
[ 0.06397548317909241, 0.24960288405418396, 0.12056538462638855, 0.25545036792755127, -0.38726434111595154, 0.07936225086450577, 0.21575605869293213, 0.17878369987010956, -0.07524492591619492, -0.8740279078483582, -0.09353707730770111, 0.6973754167556763, -0.15925121307373047, -0.03630446270...
know any, please answer [Library Recommendation: C++ HTML Parser](https://stackoverflow.com/questions/489522/library-recommendation-c-html-parser) SO question or at least vote on it to increase a chance someone will give a good answer. I'm a bit confused by your question regarding embedding a web browser for which you ...
[ 0.49244529008865356, 0.12126779556274414, 0.2709391117095947, 0.24619260430335999, 0.025433825328946114, -0.24630962312221527, 0.012385299429297447, 0.3885416090488434, -0.015755297616124153, -0.7037851810455322, -0.07978151738643646, 0.4783625304698944, -0.05402420088648796, 0.15782026946...
and has a very nice IDE (Qt Creator). I tried Qt with Qt Creator on unix (Ubuntu) and it was very impressive. The debugger is a bit light but it is just the first version. The adapter of Qt into visual c++ 2008 is now free.
[ 0.10898410528898239, 0.09507282078266144, 0.2049727737903595, -0.0740160197019577, -0.5003093481063843, -0.3024837076663971, 0.19489365816116333, 0.30113181471824646, 0.30848944187164307, -0.614402711391449, 0.18809941411018372, 0.8277872800827026, -0.2696855068206787, 0.045416779816150665...
I know there's a way to call [WebMethod] via jQuery `($.ajax(...))` I was wondering if it's possible to call [ScriptableMember] via jQuery. Here's the strategy that I would probably use. Create a base controller from which your other controller's will derive and have it derive from Controller. Override the ActionExecut...
[ 0.11730000376701355, -0.3019391894340515, 0.3442186713218689, 0.25746622681617737, 0.031018201261758804, 0.04734407365322113, 0.01764589548110962, -0.1529296487569809, -0.17765185236930847, -0.6762738227844238, 0.05528324842453003, 0.6190006136894226, -0.31566405296325684, 0.10645003616809...
strongly-typed partial view that implements the global menu markup using the menu model class. Include this in the MasterPage definition via RenderPartial. Pass the ViewData item corresponding to the key as the Model to the partial view so that you can use the model's properties in your menu.
[ -0.3914503753185272, -0.2818807065486908, 0.2362366020679474, -0.10213854908943176, -0.37284889817237854, 0.013832775875926018, 0.09740536659955978, 0.03528214991092682, 0.2090497463941574, -0.5761571526527405, -0.2788792848587036, 0.5258508920669556, -0.34421342611312866, 0.01423981506377...
I am trying to show and hide a few form fields depending on the value of one of my select fields. I am looking to use arrays to hold what should be shown and what should not be shown for each select value, to save me from a massive switch statement, but cannot figure out how to do it. I am using PHP and jQuery. Any h...
[ 0.15190643072128296, -0.3951094448566437, 0.3003225326538086, -0.04913411661982536, -0.48249393701553345, 0.06840983033180237, -0.15212693810462952, 0.07860731333494186, -0.07598155736923218, -0.8248415589332581, 0.15072843432426453, 0.667953372001648, -0.09624090790748596, -0.280556261539...
value="view3">view3</option> </select> <div id="view1"> <!-- content --> </div> <div id="view2a"> <!-- content --> </div> <div id="view2b"> <!-- content --> </div> <div id="view3"> <!-- content --> </div> ``` then in the jQuery: ``` $(document).ready(function() { $.viewMap = { '0' : $([]), 'vi...
[ -0.04332388564944267, -0.15919558703899384, 0.8854493498802185, -0.37511464953422546, -0.12101451307535172, 0.23610326647758484, -0.07172856479883194, -0.48742347955703735, -0.0654534250497818, -0.45884692668914795, -0.4080483615398407, 0.617197573184967, -0.2564435303211212, -0.0719994232...
My hibernate versioning is issuing an update statement for no apparent reason. In my BankAccount mapping file: ``` <version type="dbtimestamp" name="modified" column="Modified"/> ``` inthe AvailableBalance mapping file: ``` <many-to-one name="bankAccount" class="model.businessdomain.orm.BankAccount" fetch="select...
[ -0.003595439251512289, 0.28266507387161255, 0.8089622259140015, -0.17191782593727112, -0.07657504081726074, 0.19523382186889648, 0.41821518540382385, -0.7071871757507324, 0.25638988614082336, -0.7383042573928833, -0.10947520285844803, 0.6526069641113281, -0.2854311466217041, 0.074628569185...
of the drop-down component of a list, except for the text inside it (ie. red text). IE actually uses a Windows-level control, not a browser-based one, so it is rather limited. **Edit**: When this post was originally made, a stable version of IE8 wasn't released yet. According to comments, IE8 supports border styling....
[ 0.49137550592422485, -0.12203401327133179, 0.8326267600059509, -0.015038840472698212, -0.02787228487432003, -0.3260570764541626, 0.6315732002258301, 0.17046256363391876, -0.28731587529182434, -0.4958958029747009, 0.11373524367809296, 0.1814594864845276, -0.2995133399963379, -0.115316741168...
I am tracking page views within modules using the following table: ``` id | page_id | user_id | session_id | created ``` Every page is unique to a certain module; so page 14 only exists in module 2, for instance. I am trying to write a query that tells me when a viewing session began (GROUP BY session\_id) for a pa...
[ 0.46141260862350464, 0.33049002289772034, 0.6319222450256348, -0.12566888332366943, -0.16766269505023956, -0.026979537680745125, 0.048375453799963, -0.4698898494243622, -0.39532381296157837, -0.6546317338943481, 0.0400567464530468, 0.2506397068500519, -0.1137923151254654, 0.181989759206771...
accomplish this? I think you'll need to utilise sub-queries in the select: ``` SELECT a.session_id, MIN(a.created) as start_time, b.page_id AS last_page, b.end_time FROM table a INNER JOIN (SELECT b.session_id, MAX(b.created) as end_time, MAX(b.page_id) FROM table b GROUP BY b.session_id) ON a.session_id = ...
[ -0.01853972114622593, 0.22100470960140228, 0.42072975635528564, -0.14891326427459717, 0.16618739068508148, 0.2877320349216461, 0.06804748624563217, -0.4997020661830902, -0.28769633173942566, -0.7019535303115845, -0.19605761766433716, 0.5497138500213623, -0.12258497625589371, -0.09074693918...
I've got multiple classes that, for certain reasons, do not follow the official `Equals` contract. In the overwritten `GetHashCode()` these classes simply return 0 so they can be used in a Hashmap. Some of these classes implement the same interface and there are Hashmaps using this interface as key. So I figured that ...
[ 0.07135442644357681, 0.13349223136901855, 0.09033956378698349, -0.06422846019268036, -0.2298150360584259, 0.00461828988045454, 0.24688975512981415, 0.05401480942964554, -0.020527120679616928, -0.4947924017906189, 0.06948628276586533, 0.3168849050998688, -0.24993066489696503, 0.244157657027...
public overwrite int GetHashCode() { return "SomeClass".GetHashCode(); } } ``` so the hash is distributed more evenly? (Do I have to cache the returned value myself or is Microsoft's compiler able to optimize this?) **Update:** It is not possible to return an individual hashcode for each object, because ...
[ -0.1945408284664154, 0.14098112285137177, 0.03813350945711136, -0.09776252508163452, 0.008132357150316238, -0.2633102238178253, 0.37519770860671997, -0.22378943860530853, -0.029331732541322708, -0.3983173668384552, 0.07322945445775986, 0.4796171188354492, -0.5443306565284729, 0.11106860637...
a bad idea unless your implementation is symmetric, reflexive, and transitive. Other classes are going to assume equals has those properties, and so will classes using those classes, and so you can end up in weird cases. For example a list might enforce uniqueness, but end up with two elements which evaluate as equal ...
[ 0.08820243179798126, 0.020862026140093803, -0.33667227625846863, -0.02277090586721897, 0.1111999899148941, -0.29105067253112793, 0.5413601994514465, -0.036426104605197906, -0.16803307831287384, -0.5403251647949219, -0.003286594059318304, 0.42854663729667664, -0.5658550262451172, 0.18582814...
a Set: ``` //Assume a == b, b == c, but a != c var T = new HashSet<YourType>() T.Add(a) T.Add(c) if (T.contains(b)) then T.remove(b) //surely T can't contain b anymore! I sure hope no one breaks the properties of equality! if (T.contains(b)) then throw new Exception() ``` I suggest using another method, with a name ...
[ 0.15772919356822968, 0.10817358642816544, 0.08053670823574066, 0.04116690903902054, -0.14943581819534302, -0.14979277551174164, 0.3333904445171356, -0.38157886266708374, -0.1246585100889206, -0.6666149497032166, -0.07034904509782791, 0.6546928286552429, -0.6654163002967834, -0.038403138518...
class, and add an extension method GetApprox to Dictionary which enumerates the keys looking for an approximately equal one, and returns the associated value. You could also write a custom dictionary especially for 3-dimensional vectors, or whatever you need.
[ -0.2534031569957733, -0.381744384765625, 0.07589386403560638, 0.4291110932826996, 0.00023095418873708695, 0.13892680406570435, 0.006137609947472811, 0.08953636139631271, 0.026610104367136955, -0.45432916283607483, -0.17130441963672638, 0.5261980891227722, -0.23374882340431213, -0.114749640...
I have a BindingList of type User, the User object has several properties (UserName, Password, etc). So I tied an event handler to the BindingList.ListChanged event, and it works fine when adding or deleting a user, BUT, if a user property changes, it does not raise the event, is there any way to achieve this? ``` bin...
[ -0.08937371522188187, 0.007405847776681185, 0.48049429059028625, -0.2110750377178192, -0.07694227248430252, -0.24276314675807953, 0.22246107459068298, -0.3910005986690521, -0.2152397185564041, -0.6553796529769897, 0.07552913576364517, 0.4098173975944519, -0.4124237895011902, 0.286513537168...
The code below seemingly executes the web service and returns values, but ignores the where clause (thus returning all items in the list). This is the simplest form of the problem that I've come up with. The TestQuery list is a simple custom list with no user defined fields. Can anyone see why the filter is not worki...
[ 0.16617511212825775, -0.03320217505097389, 0.3437620997428894, -0.0696902722120285, -0.2699985206127167, 0.016137856990098953, 0.07665945589542389, -0.8271293044090271, 0.352843701839447, -0.675060510635376, -0.02617708593606949, 0.3852687478065491, -0.29100504517555237, -0.129242032766342...
$.ajax({ url: "_vti_bin/lists.asmx", type: "POST", dataType: "xml", data: soapEnv, complete: processResult, contentType: "text/xml; charset=\"utf-8\"" }); }); function processResult(xData, status) { $('#WSResponse').text(status); $(xData.responseXML)....
[ -0.24389459192752838, -0.41267162561416626, 0.5349699854850769, -0.04394833743572235, -0.22211705148220062, 0.1292104572057724, 0.2972070872783661, -0.250566691160202, -0.13537396490573883, -0.7877573370933533, -0.3645186722278595, 0.711915135383606, -0.40701809525489807, 0.057872563600540...
$("#tasksUL").append(liHtml); }); //} } </script> <ul id="tasksUL"/> <div id="WSResponse"/> </body> ``` You're missing a <query>. The formatting of those parameters is somewhat counterintuitive. There's a post on my blog with a working example: <http://tqcblog.com/2007/09/24/sharepoint-blog-content-ratin...
[ 0.3241683542728424, 0.15286965668201447, 0.3326655924320221, -0.14452773332595825, -0.27207550406455994, -0.12047942727804184, 0.08163222670555115, -0.2307330071926117, -0.31632521748542786, -0.3767487108707428, 0.12108952552080154, 0.5748504400253296, -0.0673404186964035, 0.15038000047206...
In my current project I have a custom ViewData that has (amongst others) the following properties: ``` CustomViewData + IList <Language> siteLangauges + Language CurrentLanguage + T9nProvider ``` All my URL's go like this: <http://someUrl.com/>{siteLanguage}/{restOfUrlIncludingcontrollersAndACtions} I want ...
[ 0.01172506995499134, -0.1426471620798111, 0.693541407585144, -0.3286410868167877, -0.05049582198262215, 0.08766281604766846, 0.43358901143074036, -0.24882745742797852, -0.2260819375514984, -0.7165278196334839, -0.2060086727142334, 0.37776750326156616, -0.3545369505882263, 0.016087712720036...
(viewData as CustomViewData).Language = new Language(filterContext.ActionParameters["siteLanguage"] as string)); } base.OnActionExecuting(filterContext); } void IActionFilter.OnActionExecuted(ActionExecutedContext filterContext) { base.OnActionExecuted(filterContext); } } ``` ...
[ 0.1303035020828247, -0.24522541463375092, 0.4087204933166504, -0.18393702805042267, -0.2048429399728775, -0.09946281462907791, 0.46310877799987793, -0.351472407579422, -0.24185971915721893, -0.595183253288269, -0.28684601187705994, 0.4814205765724182, -0.8082422018051147, 0.011436885222792...
I'm trying to debug something and I'm wondering if the following code could ever return true ``` public boolean impossible(byte[] myBytes) { if (myBytes.length == 0) return false; String string = new String(myBytes, "UTF-8"); return string.length() == 0; } ``` Is there some value I can pass in that will re...
[ 0.17207032442092896, 0.24888475239276886, 0.06588895618915558, -0.15552428364753723, 0.12031380087137222, -0.23273104429244995, 0.5529127717018127, -0.1351480633020401, -0.014177773147821426, -0.3074248433113098, -0.1280217468738556, 0.5378056168556213, -0.4157930910587311, 0.1521266251802...
are off. I'm mostly wondering if Java's 'normal' behaviour, or Java's spec made any promises. According to the javadoc for java.util.String, the behavior of new String(byte[], "UTF-8") is not specified when the bytearray contains invalid or unexpected data. If you want more predictability in your resultant string use <...
[ 0.3953309953212738, -0.06088883429765701, 0.31453296542167664, -0.33567893505096436, 0.07921622693538666, -0.19476200640201569, 0.21281000971794128, -0.009658530354499817, -0.3238837718963623, -0.25392091274261475, -0.3871046006679535, 0.5491981506347656, -0.3594757914543152, 0.15361356735...
What is the syntax to rename a table or view in Oracle? ``` ALTER TABLE mytable RENAME TO othertable ``` In `Oracle 10g` also: ``` RENAME mytable TO othertable ```
[ -0.22982481122016907, 0.456790030002594, 0.25248268246650696, -0.06158061325550079, 0.026441890746355057, -0.1529664546251297, -0.28756245970726013, 0.3007441759109497, -0.0954713299870491, -0.5280274152755737, -0.22685015201568604, 0.33342182636260986, -0.09016124159097672, 0.084036432206...
Can I download my App Engine source code from Google? **Update:** Google appengine now allows you to download the code [Documentation here](http://code.google.com/appengine/docs/python/tools/uploadinganapp.html#Downloading_Source_Code). (Duplicating answer from [the duplicate thread](https://stackoverflow.com/questi...
[ 0.11068878322839737, 0.325787752866745, 0.37098267674446106, 0.25590330362319946, 0.2065182328224182, 0.10452858358621597, 0.6496452689170837, -0.2957392930984497, -0.31706443428993225, -0.7514228224754333, -0.4545416533946991, 0.7800087332725525, -0.12585242092609406, -0.01689371466636657...
I'm trying to subclass `str`, but having some difficulties due to its immutability. ``` class DerivedClass(str): def __new__(cls, string): ob = super(DerivedClass, cls).__new__(cls, string) return ob def upper(self): #overridden, new functionality. Return ob of type DerivedClass. Grea...
[ -0.10561960190534592, -0.0215875543653965, 0.4860791862010956, -0.3118615746498108, 0.20012792944908142, 0.09470058232545853, 0.26526546478271484, -0.3548238277435303, -0.3483630418777466, -0.6284419894218445, -0.14297518134117126, 0.6722424626350403, -0.2720434069633484, 0.184147849678993...
methods that don't require any new functionality, such as `derived.lower()`, is there a simple, pythonic way to return an object of type `DerivedClass` (instead of `str`)? Or am I stuck manually overriding each str.method(), as I did with `derived.upper()`? Edit: ``` #Any massive flaws in the following? class Derive...
[ -0.16582682728767395, -0.05445316806435585, 0.4532366991043091, -0.13987408578395844, 0.047707173973321915, 0.12944161891937256, 0.2869555354118347, -0.41155511140823364, -0.29284778237342834, -0.35937419533729553, -0.004895426798611879, 0.7486345171928406, -0.46029919385910034, -0.0614383...
def __getattribute__(self, name): att = super(DerivedClass, self).__getattribute__(name) if not callable(att): return att def call_me_later(*args, **kwargs): result = att(*args, **kwargs) if isinstance(result, basestring): return DerivedClass...
[ -0.3407179117202759, -0.3866397738456726, 0.42153316736221313, -0.3246834874153137, -0.06866754591464996, 0.05749053508043289, 0.6055703163146973, -0.46172183752059937, -0.07586642354726791, -0.44124606251716614, -0.45623499155044556, 0.8385758996009827, -0.126699298620224, 0.0144851040095...
return result return call_me_later ``` You can do this by overriding `__getattribute__` as Zr40 suggests, but you will need to have getattribute return a callable function. The sample below should give you what you want; it uses the `functools.partial` wrapper to make life easier, though you could implement it...
[ -0.24360570311546326, -0.3586897552013397, 0.3165426552295685, -0.36646249890327454, -0.044422514736652374, 0.06168822571635246, 0.05019531399011612, -0.32039251923561096, 0.07719605416059494, -0.42468035221099854, -0.3131667971611023, 0.7198260426521301, -0.3335297107696533, -0.0087358606...
upper(self): #overridden, new functionality. Return ob of type DerivedClass. Great. caps = super(DerivedClass, self).upper() return DerivedClass(caps + '123') def __getattribute__(self, name): func = str.__getattribute__(self, name) if name == 'upper': return fun...
[ -0.2585373818874359, -0.13208463788032532, 0.4712941646575928, -0.22658959031105042, 0.08578360080718994, 0.056273166090250015, 0.21031388640403748, -0.5016629099845886, -0.21087536215782166, -0.44773271679878235, -0.2930033206939697, 0.6878144145011902, -0.20460210740566254, -0.2609562873...
return func def call_me_later(*args, **kwargs): result = func(*args, **kwargs) # Some str functions return lists, ints, etc if isinstance(result, basestring: return DerivedClass(result) return result return partial(call_me_later) ```
[ -0.20170001685619354, -0.3375169336795807, 0.44124701619148254, -0.2356005311012268, -0.31411242485046387, 0.06201198697090149, 0.2398817241191864, -0.3461405634880066, -0.08462364226579666, -0.43455007672309875, -0.3647262454032898, 0.6525139212608337, -0.024310072883963585, 0.19441294670...
I'm using .net 2.0. I'd like to place one of my C# methods in an inline server script block inside my ascx file because I need to update it a lot while designing. This way I don't have to compile my large project everytime. I would like to call the method from inside my code behind file. I use to do this by inserting ...
[ 0.584703803062439, 0.08962153643369675, 0.1294296532869339, -0.19841071963310242, -0.23338888585567474, -0.20330214500427246, 0.15607315301895142, 0.02473379299044609, -0.1879502236843109, -0.7300350666046143, 0.14945226907730103, 0.35974952578544617, -0.2942802608013153, 0.281440079212188...
possible? Thanks You can do this by overriding `__getattribute__` as Zr40 suggests, but you will need to have getattribute return a callable function. The sample below should give you what you want; it uses the `functools.partial` wrapper to make life easier, though you could implement it without partial if you like: ...
[ -0.14717327058315277, -0.051239170134067535, 0.19804438948631287, -0.0219496451318264, 0.23333263397216797, 0.10583227127790451, 0.3273272216320038, -0.37112686038017273, 0.006993754301220179, -0.5427195429801941, -0.28981706500053406, 0.642844021320343, -0.33515188097953796, -0.2040244787...
Great. caps = super(DerivedClass, self).upper() return DerivedClass(caps + '123') def __getattribute__(self, name): func = str.__getattribute__(self, name) if name == 'upper': return func if not callable(func): return func def call_me_later(...
[ 0.1525406539440155, -0.10480204969644547, 0.5334514379501343, -0.42157870531082153, 0.13541120290756226, -0.23693405091762543, 0.42519620060920715, -0.35390281677246094, -0.36791229248046875, -0.6234898567199707, -0.1946377456188202, 0.782247006893158, -0.07827465236186981, 0.1321224570274...