text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}"> <Grid Margin="{Binding Converter={StaticResource lengthConverter}, RelativeSource={RelativeSource TemplatedParent}}">
[ -0.019538529217243195, -0.44108349084854126, 0.7592437267303467, 0.029684389010071754, 0.035094160586595535, 0.26207125186920166, 0.000050051803555106744, -0.5706861615180969, -0.01840689778327942, -0.6892680525779724, 0.3239773213863373, 0.3496254086494446, -0.14040793478488922, 0.1069551...
<Grid.ColumnDefinitions> <ColumnDefinition Width="19" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <ToggleButton x:Name="Expander" Style="{StaticResource ExpandCollapseToggleStyle}" IsChecked="{Binding Path=IsExpanded,
[ -0.021460220217704773, -0.513146698474884, 0.7223120331764221, -0.2630655765533447, 0.08975168317556381, -0.12878374755382538, -0.018222857266664505, -0.46508729457855225, -0.4136403501033783, -0.5782833099365234, -0.2852165400981903, 0.4558731019496918, -0.4120783805847168, -0.07991077005...
RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"/> <ContentPresenter x:Name="PART_Header" Grid.Column="1" ContentSource="Header"
[ -0.15558898448944092, -0.3648485839366913, 0.7543599605560303, 0.16543439030647278, 0.3362162709236145, -0.052663929760456085, -0.08648756891489029, -0.14145247638225555, 0.04595184326171875, -0.5487079620361328, -0.09112666547298431, 0.1819014549255371, -0.24034737050533295, 0.25060266256...
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/> </Grid> </Border> <ItemsPresenter x:Name="ItemsHost" /> </StackPanel> <ControlTemplate.Triggers> <Trigger Property="IsExpanded" Value="false">
[ -0.12483286112546921, -0.38463926315307617, 0.5276851654052734, 0.21574199199676514, 0.29192695021629333, 0.19318866729736328, 0.1336805671453476, -0.38037970662117004, -0.46698370575904846, -0.3703329861164093, -0.11801323294639587, 0.05575405806303024, -0.2139422595500946, 0.211998939514...
<Setter TargetName="ItemsHost" Property="Visibility" Value="Collapsed"/> </Trigger> <Trigger Property="HasItems" Value="false"> <Setter TargetName="Expander"
[ 0.0635639876127243, -0.24734264612197876, 0.2531055510044098, -0.15885333716869354, -0.05965326353907585, -0.09446370601654053, 0.03940645977854729, -0.539497971534729, -0.4465820789337158, -0.6320379376411438, -0.7009868621826172, 0.3384771943092346, -0.4434720575809479, -0.12232764810323...
Property="Visibility" Value="Hidden"/> </Trigger> <MultiTrigger> <MultiTrigger.Conditions> <Condition Property="HasHeader" Value="false"/>
[ -0.06022980809211731, 0.04448524862527847, -0.336835652589798, -0.1260230839252472, 0.010835452936589718, -0.1924891620874405, 0.27237510681152344, -0.6093302965164185, -0.0629841685295105, -0.5159822106361389, -0.25458189845085144, 0.5682957172393799, -0.17218907177448273, 0.0935126543045...
<Condition Property="Width" Value="Auto"/> </MultiTrigger.Conditions> <Setter TargetName="PART_Header" Property="MinWidth" Value="75"/> </MultiTrigger>
[ -0.143148735165596, -0.24565544724464417, 0.1592331975698471, -0.1818670779466629, -0.07422446459531784, 0.2522236704826355, 0.25309473276138306, -0.5432904958724976, 0.03387847915291786, -0.7399898767471313, -0.30164775252342224, 0.7153606414794922, -0.0759909525513649, -0.069095142185688...
<MultiTrigger> <MultiTrigger.Conditions> <Condition Property="HasHeader" Value="false"/> <Condition Property="Height" Value="Auto"/> </MultiTrigger.Conditions>
[ -0.08096502721309662, 0.3284633755683899, -0.04825540632009506, -0.28363654017448425, -0.15044797956943512, 0.10578809678554535, 0.2982189953327179, -0.6570864915847778, -0.3847503960132599, -0.5984526872634888, -0.19302058219909668, 0.4882325530052185, -0.3074590563774109, 0.1088795885443...
<Setter TargetName="PART_Header" Property="MinHeight" Value="19"/> </MultiTrigger> <Trigger Property="IsSelected" Value="true"> <Setter TargetName="Bd"
[ 0.022989874705672264, -0.15865373611450195, 0.12911935150623322, -0.09834989905357361, -0.23098161816596985, 0.16272523999214172, 0.15359555184841156, -0.5277208685874939, -0.042080290615558624, -0.3435809910297394, -0.4771226644515991, 0.3556026518344879, -0.4347611665725708, -0.255568951...
Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/> <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/> </Trigger> <MultiTrigger> <MultiTrigger.Conditio...
[ -0.08709283173084259, -0.491556853055954, 0.1916472315788269, 0.17835178971290588, -0.010469327680766582, 0.07730463892221451, 0.08938423544168472, -0.6320274472236633, -0.21019858121871948, -0.510678231716156, -0.19416579604148865, 0.4149983823299408, -0.37143293023109436, 0.2400574386119...
<Condition Property="IsSelected" Value="true"/> <Condition Property="IsSelectionActive" Value="false"/> </MultiTrigger.Conditions> <Setter TargetName="Bd"
[ -0.15345719456672668, -0.07650525122880936, 0.04072410240769386, -0.25473591685295105, -0.13479600846767426, 0.3453008830547333, 0.08673132956027985, -0.2684091627597809, -0.09248370677232742, -0.5231835842132568, -0.3690226674079895, 0.4547063708305359, -0.3114435076713562, -0.10775706171...
Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> </MultiTrigger> <Trigger Property="IsEnabled" Val...
[ 0.0029945403803139925, -0.4449307918548584, 0.30648916959762573, 0.16070231795310974, 0.15727996826171875, 0.07978393882513046, 0.17131143808364868, -0.7200345993041992, -0.263410747051239, -0.4888935387134552, -0.16118532419204712, 0.5483196973800659, -0.334979772567749, 0.255481898784637...
Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> ```
[ 0.011864646337926388, -0.38939592242240906, 0.4091910421848297, 0.04778154939413071, 0.13501907885074615, -0.1613759696483612, 0.006820178125053644, -0.43406400084495544, 0.0068935188464820385, -0.3817810118198395, -0.01281442679464817, 0.4820130169391632, -0.4183902442455292, 0.1376481354...
I've been refactoring Media Browser and have started to define a proper inheritance model for our domain objects so I have ``` BaseItem -> Video --> <Need a name for this> ---> Episode ---> Movie -> Folder --> Season ``` Essentially tv show episodes and movies have some attributes in common (like actor or director...
[ 0.40737468004226685, -0.05535305663943291, 0.3861534893512726, 0.351544052362442, -0.274565726518631, -0.3854445815086365, -0.03192822262644768, 0.05615744739770889, -0.31810200214385986, -0.2737288475036621, -0.11886923760175705, 0.42809736728668213, -0.0714651495218277, 0.299300312995910...
I've always just called them shows. "Going to see a show at the theater." "Did you catch that show on the History channel?"
[ 1.0521010160446167, -0.2886422574520111, 0.13903844356536865, 0.07607487589120865, 0.3060816824436188, -0.3580552041530609, 0.24672462046146393, 0.7784907817840576, -0.4438094198703766, -0.08875992894172668, 0.3275628089904785, 0.3807327449321747, 0.01774436980485916, 0.2509118318557739, ...
I'm working on an application in ASP.NET, and was wondering specifically how I could implement a `Password Reset` function if I wanted to roll my own. Specifically, I have the following questions: * What is a good way of generating a Unique ID that is hard to crack? * Should there be a timer attached to it? If so, h...
[ 0.4343397915363312, 0.29994460940361023, 0.188359797000885, 0.10386759042739868, 0.11951065808534622, -0.12277010083198547, 0.23417891561985016, -0.15943874418735504, -0.43107450008392334, -0.694541871547699, 0.19797846674919128, 0.38825541734695435, 0.26258474588394165, 0.0562338083982467...
team, puppy's name, etc) Are there any other considerations I need to be aware of? > **NB**: [Other questions](https://stackoverflow.com/questions/522967/forgot-password-what-is-the-best-method-of-implementing-a-forgot-password-functi) have [glossed over](https://stackoverflow.com/questions/270485/password-management...
[ 0.31507888436317444, 0.04495444521307945, 0.11272817850112915, 0.3373722732067108, 0.053934331983327866, -0.22409890592098236, 0.11454926431179047, -0.10655254125595093, -0.46307387948036194, -0.39937886595726013, -0.24980276823043823, 0.45590534806251526, -0.1166771650314331, -0.267638087...
repeating it all... Except for one issue, which is repeated by almost every answer here, even though its wrong: > Guids are (realistically) unique and statistically impossible to guess. This is not true, GUIDs are very weak identifiers, and should **NOT** be used to allow access to a user's account. If you exami...
[ 0.09158900380134583, -0.08776319772005081, 0.24093103408813477, 0.38263073563575745, -0.1432664543390274, 0.1721605807542801, 0.4675551652908325, -0.039488788694143295, -0.5684527158737183, -0.15106213092803955, 0.04840816184878349, -0.09959922730922699, -0.40017637610435486, 0.44488173723...
a very weak and easily bruteforced mechanism. So don't use that! Instead, simply use a cryptographically strong random number generator (`System.Security.Cryptography.RNGCryptoServiceProvider`), and get at least 256 bits of raw entropy. All the rest, as the numerous other answers provided.
[ 0.1456570327281952, -0.034709297120571136, -0.15888257324695587, 0.5012696385383606, -0.04290567710995674, -0.09398578107357025, 0.42292630672454834, -0.5328927040100098, -0.056661736220121384, -0.3802209496498108, -0.13700607419013977, 0.2712674140930176, -0.08526512235403061, 0.109144710...
I have this MySQL query: ``` SELECT DAYOFYEAR(`date`) AS d, COUNT(*) FROM `orders` WHERE `hasPaid` > 0 GROUP BY d ORDER BY d ``` Which returns something like this: ``` d | COUNT(*) | 20 | 5 | 21 | 7 | 22 | 12 | 23 | 4 | ``` What I'd really like is another column on the end to sh...
[ 0.04169541597366333, -0.00905628502368927, 0.7176076769828796, -0.2043352723121643, -0.1253233104944229, 0.13860204815864563, 0.050435781478881836, -0.07425832748413086, -0.23277874290943146, -0.3611772358417511, -0.1492415815591812, -0.03630469739437103, -0.10192541778087616, 0.3758049905...
| 5 | 21 | 7 | 12 | 22 | 12 | 24 | 23 | 4 | 28 | ``` Is this possible? Perhaps a simpler solution for you and prevents the database having to do a ton of queries. This executes just one query then does a little math on the results in a single pass. ``` SET @runtot:=0; SELECT q1.d, q1.c...
[ 0.0991879254579544, 0.012499751523137093, 0.5265579223632812, -0.20418314635753632, 0.38182273507118225, -0.04156888276338577, 0.697967529296875, -0.8994221091270447, -0.09109802544116974, -0.526423454284668, -0.03927869722247124, 0.9456228613853455, -0.40306520462036133, 0.069416485726833...
DAYOFYEAR(`date`) AS d, COUNT(*) AS c FROM `orders` WHERE `hasPaid` > 0 GROUP BY d ORDER BY d) AS q1 ``` This will give you an additional RT (running total) column. Don't miss the SET statement at the top to initialize the running total variable first or you will just get a column of NULL v...
[ 0.253187358379364, -0.09221715480089188, 0.6029198169708252, -0.36123985052108765, -0.05656028166413307, 0.043209176510572433, 0.44899824261665344, -0.3969208300113678, 0.008405221626162529, -0.3935592770576477, -0.29233136773109436, 0.5501413941383362, -0.2897394895553589, 0.3902742862701...
In my app, I have a UIImagePickerController. When a image is selected, my view controller needs to get the image and pass it to another view controller, which is pushed onto self.navigationController. But I am always getting SEGFAULTS or nil arguments, and things like that. I would appreciate it if you could tell me wh...
[ -0.24849911034107208, -0.1784006506204605, 0.9318795204162598, 0.010070606134831905, -0.04999881237745285, 0.06544528901576996, 0.1813119649887085, -0.039927586913108826, 0.00320677668787539, -1.00492262840271, -0.16034157574176788, 0.6273835301399231, -0.20549561083316803, 0.2457980364561...
I now *should* have currentpicture as some data, but it crashes every time! I have tried many different things and I cannot figure this out. Correct me if I'm wrong, but UIImage does not conform to NSCopying, therefore you can't successfully copy it. What you probably want to do is retain the image. If self.currentpic...
[ -0.05935339629650116, -0.18416529893875122, 0.7405298948287964, -0.0879865363240242, 0.288959264755249, -0.1286325305700302, -0.001771249808371067, 0.12403717637062073, -0.32245081663131714, -0.4694121479988098, -0.06276898086071014, 0.6637498140335083, -0.16423571109771729, 0.404772728681...
would do that in the 'self' object's dealloc method.
[ 0.0908992812037468, 0.10208380222320557, 0.2028672844171524, 0.11839818954467773, 0.04697806015610695, 0.051135532557964325, 0.05273038521409035, -0.3106711804866791, -0.005936235189437866, -0.3077752888202667, -0.18037419021129608, 0.5699219107627869, -0.0031929498072713614, 0.03897320851...
There is [a bug in Firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=355567#c28) (even in the new betas and in minefield releases) which prevents the caching of certain files because of the algorithm for creating a key in their cache hash. [Here is a link to the source code of the function](http://hg.mozilla.org/mo...
[ 0.2449362426996231, 0.39816972613334656, -0.09889403730630875, 0.014122262597084045, 0.0017877300269901752, -0.36201775074005127, 0.4456712603569031, 0.12104370445013046, -0.3299770951271057, -0.5508894920349121, -0.02187320776283741, 0.2218119502067566, -0.5597594380378723, 0.425697654485...
urls until this bug is fixed. --- **EDIT:** There have been some very helpful answers, however, I need more step-by-step help to create a utility to check for these cache mixups. It would be great to get some java code which can reproduce the keys that firefox is creating. Therefore, the opening of a bounty on this q...
[ 0.27837079763412476, 0.46629294753074646, 0.47459134459495544, 0.06634648889303207, -0.29690995812416077, -0.23354971408843994, 0.3237028121948242, 0.010635762475430965, -0.27249711751937866, -0.6421877145767212, -0.04512009024620056, 0.44402292370796204, -0.5776099562644958, 0.02429174073...
char * key) //250 { //251 PLDHashNumber h = 0; //252 for (const PRUint8* s = (PRUint8*) key; *s != '\0'; ++s) //253 h = PR_ROTATE_LEFT32(h, 4) ^ *s; //254 return (h == 0 ? ULONG_MAX : h); //255 } // // a java port... // String getHash( String url ) { //get the char array for the url string char[...
[ -0.00749226612970233, 0.19768281280994415, 0.7389146685600281, -0.44374582171440125, -0.06374132633209229, 0.33061742782592773, 0.42001277208328247, -0.7677854895591736, -0.17909535765647888, -0.3931310176849365, -0.38675248622894287, 0.3574090898036957, -0.33517104387283325, 0.07376110553...
^ cs[i]; } //looks like the examples above return something in hex. //if we get matching ints, that is ok by me. //but for fun, lets try to hex the return vals? String hexVal = hex( h ); return hexVal; } char[] getCharArray( String s ) { char[] cs = new char[s.length()]; for (int i=0; i<s.length(); i++) { ...
[ 0.12351354211568832, 0.0005664962227456272, 0.5655767917633057, -0.2875674366950989, -0.25591734051704407, 0.3466707766056061, 0.4022153913974762, -0.5575398206710815, -0.47360554337501526, -0.7919669151306152, -0.3289138376712799, 0.35589444637298584, -0.2407621294260025, 0.12026444822549...
is no rotate operation in the C Language, so the construct //115 ** (a << 4) | (a >> 28) is frequently used instead. Most compilers convert //116 ** this to a rotate instruction, but MSVC doesn't without a little help. //117 ** To get MSVC to generate a rotate instruction, we have to use the _rotl //118 ** or _rotr int...
[ 0.08108633011579514, -0.06955550611019135, 0.541236400604248, -0.20834435522556305, -0.10407165437936783, 0.1005583181977272, -0.11441392451524734, -0.25545868277549744, -0.2879621982574463, -0.27344778180122375, 0.10799942165613174, 0.7759991884231567, -0.34263959527015686, -0.01844371668...
'bits' parameter? ignore? int PR_ROTATE_LEFT32( int a, int bits ) { return (a << 4) | (a >> (32-bits)); } // // examples of some colliding hashes // https://bugzilla.mozilla.org/show_bug.cgi?id=290032#c5 // //$ ./hashit "ABA/xxx.aba" //8ffac222 //$ ./hashit "XyZ/xxx.xYz" //8ffac222 //$ ./hashit "CSS/xxx.css" //8...
[ -0.10756438225507736, 0.18352049589157104, 0.11192996799945831, -0.4113166332244873, -0.12719182670116425, 0.2840111255645752, 0.5158185958862305, -0.6553027629852295, -0.23614709079265594, -0.30305802822113037, -0.4077514708042145, 0.5082025527954102, -0.8134764432907104, 0.20954835414886...
getHash(f) ); //no [??] FFFFFF8C, not 15c23729 println( "-----" ); String g = "modules_newsfeeds/MenuBar/MenuBar.js"; String h = "modules_newsfeeds/ListBar/ListBar.js"; println( getHash(g) ); //yes [??] FFFFFF8C, not a15c23e5 println( getHash(h) ); //yes [??] FFFFFF8C, not a15c23e5 } ``` Here is how the algorithm ...
[ -0.07613219320774078, 0.17200911045074463, 0.6022893190383911, -0.4270239770412445, 0.08633755147457123, 0.12391247600317001, 0.31204932928085327, -0.6323020458221436, -0.36364051699638367, -0.27426615357398987, -0.6660705804824829, 0.5846567153930664, -0.4148068428039551, -0.0704479143023...
= '2' 00110011 = '3' 0100 0011 = '4' 00110101 = '5' ==================== 01000110001000010000 (and then this will be 'rotated' so that it lines up with the end) giving: 00100001000001000110 ``` What this means is that if you have strings of the same
[ 0.5060290694236755, -0.02015228569507599, 0.6034241318702698, -0.0632450059056282, -0.2627123296260834, 0.08753254264593124, 0.1067269816994667, -0.49200451374053955, -0.33215954899787903, -0.3293072283267975, -0.1512363851070404, 0.050975508987903595, -0.31880828738212585, 0.2821146249771...
length and are mostly the same, then in at least one case, the lower 4 bits of a char and upper 4 bits of the next char xor each other must be unique. However, the method of sticking the 32 bit number into a table might be ever weaker, meaning that it requires the lower4 xor upper4 of a particular location in the strin...
[ 0.10451256483793259, 0.04511968046426773, 0.11919436603784561, -0.05603983998298645, 0.01480951439589262, 0.16800715029239655, 0.2138398289680481, -0.3608195185661316, -0.35525280237197876, -0.3850100636482239, -0.16082972288131714, 0.22466474771499634, -0.010657433420419693, 0.18260987102...
I've setup a new SVN repository, running SVNServe, in the conf file, anon-access = none. SVNServe faithfully does that correctly, but when I try to browse the repos using TortoiseSVN, it just says access is not allowed. Shouldn't it ask me for the user name and password instead? How do I get TortoiseSVN to ask me for...
[ 0.14737433195114136, 0.21041379868984222, 0.5645825862884521, -0.10881813615560532, -0.19072744250297546, -0.14733679592609406, 0.7007401585578918, -0.05604805052280426, -0.43245506286621094, -0.42658886313438416, -0.12900789082050323, 0.5971044898033142, -0.11810736358165741, 0.4399845004...
I have a huge list of URLs in a MySQL InnoDB table, and worker processes that query MySQL for a set of URLs to process. The URLs should immediately be marked as being processed, so that other worker processes do not waste resources by starting to process the same ones. Currently I first do this to get some URLs: ``` ...
[ 0.24787279963493347, 0.3732886016368866, 0.41336047649383545, -0.01121747400611639, -0.0380023829638958, -0.07574193924665451, -0.04517557844519615, -0.10496807843446732, -0.24739673733711243, -0.7498890161514282, -0.030029691755771637, 0.40615877509117126, -0.1535184383392334, 0.373143255...
how silly and inefficient this is. More importantly there is no guarantee that another worker process wouldn't try to get a list in the middle of my UPDATEs. What's the beautiful way to do this? Should I make it a transaction, how? The following appears (by a quick glance at the MySQL 5 manual) to be available in MySQL...
[ 0.2928396463394165, -0.0646168664097786, 0.5119088292121887, -0.016634944826364517, 0.060404978692531586, -0.12025038152933121, 0.06431196630001068, -0.20364883542060852, -0.4578717350959778, -0.662308931350708, 0.10676128417253494, 0.654714047908783, -0.1398906707763672, 0.218742623925209...
of URLs] COLLATE utf8_bin; COMMIT; ``` Actually in PostgreSQL I would use a *single* UPDATE statement with the RETURNING clause of UPDATE taking the place of the SELECT, but that is a PostgreSQL-specific extension. One potential problem I see with your approach is duplicate URLs: if url `http://www.example.com/` app...
[ 0.3618887960910797, 0.22379226982593536, 0.4005945920944214, -0.031228939071297646, -0.11625709384679794, -0.033902522176504135, 0.11109672486782074, 0.07120872288942337, -0.5226818323135376, -0.6446070075035095, -0.08242911845445633, 0.4490516781806946, -0.6431823372840881, 0.501682400703...
happen, and then use a list of IDs, not URLs, in the `IN` clause (which ought to be faster).
[ 0.4925248324871063, 0.05027775093913078, 0.18276534974575043, -0.04220782220363617, 0.3298557996749878, -0.3949406147003174, 0.3932187855243683, 0.1663786917924881, 0.19728854298591614, -0.4916105568408966, -0.3136080801486969, 0.4072420597076416, -0.290657103061676, 0.0976957231760025, ...
I am currently using Microsoft's FOR XML PATH feature to pull data back from MS SQL Server in an XML format. I really like the feature but am always uncomfortable about using vendor specific functions. Do any of the other major database vendors have something similar? Edit ---- Let me be more specific with type of f...
[ 0.30861109495162964, 0.11585022509098053, 0.48283621668815613, 0.0933244451880455, -0.15262115001678467, 0.0752958208322525, -0.19988864660263062, 0.1255950927734375, -0.1513299196958542, -0.8171457648277283, -0.09451423585414886, 0.49951300024986267, -0.016623806208372116, 0.4139344394207...
(SELECT Item_Num AS '@Item', pa.Code AS '@PartCode' FROM tblSalesItem si LEFT JOIN tblPart pa ON pa.Id = si.Part_Id WHERE si.SalesOrder_ID = so.Id FOR XML PATH('SalesItem') , type) FROM tblSalesOrder so JOIN tblCustomer cu ON so.customer_id = cu.ID FOR XML PATH(...
[ -0.26928630471229553, -0.0756179690361023, 0.4655218720436096, 0.12041793763637543, -0.1648712009191513, 0.2846817672252655, -0.18806122243404388, -0.3706431984901428, -0.06410860270261765, -0.5691980719566345, -0.3869679570198059, 0.37852704524993896, 0.034847062081098557, 0.4078373610973...
"> <Customer Code="ROBERTS " Name="Roberts Equipment Inc." /> <SalesItem Item="1" PartCode="FP-0001" /> <SalesItem Item="2" PartCode="FP-0003" /> </SalesOrder> <SalesOrder Id="15" Code="C1004 "> <Customer Code="EXBEL-LIFTS" Name="Exbel Lifts Inc." /> <SalesItem Item="1" /> </SalesOrder>...
[ 0.11469680815935135, 0.5376495718955994, 0.6497422456741333, -0.15046632289886475, -0.11387165635824203, 0.5262201428413391, -0.16004613041877747, -0.4943351149559021, -0.3108302652835846, -0.3035247325897217, -0.1870010793209076, 0.32432353496551514, -0.09086518734693527, 0.17437118291854...
to generate trees that are arbitrary depth. `FOR XML PATH` is not in the ANSI SQL-92 standard, so it will be up to the individual vendors. I do not know of any equivalent in Oracle or MySQL.
[ 0.35258039832115173, 0.05100380629301071, 0.08080179244279861, 0.11959337443113327, -0.10327721387147903, -0.3101961016654968, 0.06026550754904747, -0.07997908443212509, -0.07226181775331497, -0.4631929099559784, -0.06551023572683334, 0.5927815437316895, -0.2889087498188019, -0.21553614735...
I have a datagrid that has two columns. The DataSource for the datagrid is "myTable" which is a DataTable. All I am trying to do is add a row to the DataTable and have the new row be displayed in the datagrid. Here is the simple code I wrote to add the item to the DataTable: ``` DataRow dRow = myTable.NewRow(); dRow.I...
[ 0.1962861567735672, 0.23624464869499207, 0.5601426362991333, -0.12774214148521423, -0.23154498636722565, 0.036924105137586594, 0.07866925746202469, -0.18412688374519348, -0.028841182589530945, -0.7401316165924072, 0.18425311148166656, 0.3901995122432709, -0.28144246339797974, 0.34300130605...
the row to the table. ``` myTable.Rows.Add(dRow); ```
[ 0.010081860236823559, 0.6304545998573303, 0.6800071001052856, -0.22213900089263916, 0.10762301087379456, 0.38864657282829285, -0.5247457027435303, 0.21031735837459564, -0.347805917263031, -0.8504178524017334, -0.35566446185112, 0.4252195358276367, -0.3379157483577728, 0.3762315809726715, ...
I am making a futsal (indoor soccer) coaching application which allows a coach to add players on the screen, set their movement direction (by drawing arrows using HTML5 canvas), and then press 'play' to move all players on the screen. A player is made up of a div with a background image of a player. Animation is being...
[ 0.16964185237884521, 0.017279693856835365, 0.6473389267921448, -0.2587534189224243, -0.1389235258102417, 0.03023896925151348, -0.1310812532901764, -0.10513661056756973, -0.1789773404598236, -0.8705747127532959, -0.029668012633919716, 0.17954279482364655, -0.2513536512851715, -0.23118345439...
it incremently as the animation takes place. I am guessing I would do this by calculating the total length of an animation before starting it? 2. I would like to move the jQuery slider above backwards and forth - to reverse the animataion and pause it when required. is that possible at all given that we are moving divs...
[ -0.10386635363101959, -0.10075780004262924, 0.694068193435669, -0.2208421677350998, -0.05229860171675682, 0.2872163653373718, -0.19041813910007477, -0.309112012386322, -0.5968180894851685, -0.5652170777320862, -0.12428710609674454, 0.43506231904029846, 0.00983603484928608, 0.12641969323158...
step option, this way you can update your slider accordingly. ``` $(playerdiv).animate({ top : targetTop, left : targetLeft, step, function(){ magic happens here }) ```
[ -0.3156834840774536, -0.6388217210769653, 0.6186208724975586, -0.12428891658782959, 0.25355616211891174, -0.004768215585500002, 0.017685292288661003, -0.3299059271812439, 0.008913533762097359, -0.8158168792724609, -0.05765470862388611, 0.6305874586105347, -0.2753916382789612, -0.3110680282...
Is it possible to have a red UIBarButtonItem? If anyone is looking for code to exactly duplicate a simple UIBarButtonItem: ``` UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setBackgroundImage:[UIImage imageNamed:@"delete.png"] forState:UIControlStateNormal]; [button setTitle:@"Delete" forSta...
[ -0.19045446813106537, -0.21428605914115906, 0.7137764692306519, 0.14497315883636475, 0.018401995301246643, -0.03712949529290199, 0.5310291051864624, -0.31985363364219666, -0.35770371556282043, -0.4217892587184906, -0.18807530403137207, 0.4564850628376007, -0.18578138947486877, -0.015250314...
I work on a fairly complex Open Source project ([opensimulator.org](http://opensimulator.org/wiki/Main_Page)). It's currently sitting around 300 KLOC of C#, and there are a number of places where code has built up to trap and ignore exceptions, which end up disguising subtle bugs. I'm wondering what tools are out ther...
[ 0.6669802069664001, 0.3985578119754791, 0.04384563863277435, 0.22232067584991455, 0.26912954449653625, -0.4688240587711334, 0.020307594910264015, 0.09572739899158478, -0.1589966118335724, -0.6118541359901428, -0.010333328507840633, 0.17228959500789642, 0.010101827792823315, 0.1574106961488...
made, but isn't a requirement. All righ, I agree with [@John Saunders](https://stackoverflow.com/questions/664935/tools-to-use-to-find-supressed-exceptions/664942#664942) but if there is a lot of code, you can write a simple analyzer or use some exisiting code to replace all the swallowed exception patterns with loggin...
[ 0.3898959457874298, 0.04952555149793625, 0.19395025074481964, 0.07782106846570969, 0.3382846415042877, -0.197576105594635, 0.35197392106056213, -0.17412419617176056, -0.40931469202041626, -0.5002028346061707, -0.09246677905321121, 0.4414658844470978, -0.48303720355033875, -0.23373098671436...
is kind of crude but simple.
[ 0.7448030114173889, 0.3193388283252716, 0.07132573425769806, 0.021290373057127, 0.2259809672832489, -0.040481142699718475, 0.3251199722290039, 0.42228418588638306, 0.508037269115448, -0.4598812460899353, 0.23948971927165985, 0.21639162302017212, 0.37353262305259705, -0.14363551139831543, ...
I have a datagrid with paging enabled. I am displaying the results in datagrid based on a filtering condition. I have filtered the data and it has now 2 pages. when i go to 2 nd page. and i am doing the seacrhing function once again to narrow down the results. Then I am getting an error like "Invalid CurrentPageIndex v...
[ -0.24400824308395386, -0.1780196726322174, 0.6537833213806152, -0.12383604794740677, -0.2017945796251297, 0.15813186764717102, 0.5062522292137146, -0.07434871047735214, -0.5050008893013, -0.800396203994751, 0.22181814908981323, 0.6272252202033997, 0.09360134601593018, 0.23360107839107513, ...
certain changes, you need to reset to page 1. That includes filtering changes. Pretty much, any time you change the number of rows that might be available to your grid, go back to page 1.
[ 0.0966421514749527, -0.2561163008213043, 0.3834194839000702, -0.09302326291799545, -0.07802547514438629, 0.053562335669994354, -0.00574392918497324, 0.20469437539577484, -0.6195309162139893, -0.9836471080780029, -0.1800234615802765, 0.18714860081672668, -0.5494800806045532, 0.0019287405302...
We have an existing Perl application that supports `mod_perl`. However, our new host (Dreamhost) does not suppport mod\_perl, only FastCGI; thus necessitating the port. The existing code does not use any Apache specific stuff and is just normal Perl code written in way that's acceptable to `mod_perl`. Reading the do...
[ 0.2822331190109253, -0.216517835855484, 0.5017980933189392, 0.15515044331550598, 0.04080500826239586, -0.3572429418563843, 0.3056253492832184, -0.27353575825691223, -0.32251012325286865, -0.39675796031951904, -0.15045331418514252, 0.3765146732330322, -0.6498088836669922, 0.0784548670053482...
#Run existing code. } ``` **Sub-Questions:** 1. Are methods **A** and **B** equivalent ways to add FastCGI support? 2. If **A** and **B** are different, what then are the pros and cons of using one over the other? 3. Are there any best practices or gotchas one should know about when porting from `mod_perl` to FastCG...
[ 0.2971374988555908, -0.28953272104263306, 0.2050950825214386, 0.360940545797348, -0.19948266446590424, -0.3847004175186157, 0.03116125427186489, 0.07282360643148422, -0.27203789353370667, -0.625649094581604, -0.09363210201263428, 0.7610505819320679, -0.4010601043701172, -0.0225156955420970...
running process. Essentially, you're changing your application into its own application server, running behind a FastCGI gateway provided by the Web server. The idea is to figure out how to make your application's means of processing applicable to a FastCGI gateway. Do you use any mod-perl specific functionality? If s...
[ 0.3524837791919708, -0.24203291535377502, 0.44602346420288086, 0.12127175182104111, 0.03226518630981445, -0.0883684977889061, 0.06368285417556763, 0.016227537766098976, -0.44055822491645813, -0.7355531454086304, -0.07226217538118362, 0.617786705493927, -0.43677371740341187, 0.0469199940562...
start thinking about POST and PUT as reading from standard input and your application's responses as writing to standard output. You may want to also just read through a library that implements a FastCGI interface for an application. You can find some of those at [fastcgi.com](http://www.fastcgi.com/). That might help...
[ 0.3561664819717407, -0.10623526573181152, 0.1864900141954422, 0.2283264547586441, -0.09139122068881989, -0.4036429226398468, 0.28221648931503296, 0.5840727686882019, -0.445812463760376, -0.7935776114463806, 0.28125664591789246, 0.5232065320014954, 0.1908295452594757, -0.03217949718236923, ...
Is this a valid (well-formed) XML document? ``` <?xml version="1.0" encoding="UTF-8" ?> <outer> <inner>&copy;</inner> </outer> ``` At issue is whether the HTML/XHTML "©" entity encoding is valid in an XML document where there is no DTD or schema to define it. An alternative way of expressing the above would be to...
[ 0.3279835283756256, 0.46742838621139526, 0.6941652297973633, 0.044231027364730835, 0.20548848807811737, -0.436767578125, -0.36337971687316895, -0.4542766511440277, -0.19027787446975708, -0.20860467851161957, -0.4014277458190918, 0.27705153822898865, -0.16709919273853302, 0.1081940680742263...
as a proper Unicode character. In that respect I find this quote a little confusing: 'New authors of XML documents often misunderstand the purpose of a CDATA section, mistakenly believing that its purpose is to "protect" data from being treated as ordinary character data during processing. [But] Character data is char...
[ 0.29463985562324524, 0.05171053856611252, 0.04113519564270973, -0.052656542509794235, -0.19788043200969696, -0.04712662845849991, -0.021130245178937912, -0.11943182349205017, -0.013624241575598717, -0.5278884172439575, -0.5653725862503052, 0.045463927090168, -0.05427691340446472, -0.311857...
help clear up the confusion on the purpose of CDATA. Thanks! A CDATA section is for the purpose of allowing literal text that would normally be interpreted in a special way in an XML document. That is, something that looks like an entity reference, or something that looks like XML tags. Anything in a CDATA section can...
[ 0.5105820894241333, -0.14039072394371033, 0.2730145752429962, 0.305175244808197, -0.26207366585731506, -0.6966407299041748, 0.08164121210575104, 0.08565983921289444, -0.04945903643965721, -0.270620197057724, -0.39421093463897705, 0.11943348497152328, -0.10763019323348999, -0.25263565778732...
valid, as long as it is what you intend: ``` <?xml version="1.0" encoding="UTF-8" ?> <outer> <inner><![CDATA[&copy;]]></inner> </outer> ``` Here, the value of the `inner` element is the value `&copy;` which will not be interpreted by the XML parser as the entity reference for the copyright symbol. You can also do...
[ 0.23178833723068237, 0.39688971638679504, 0.7029327750205994, 0.27447226643562317, 0.20749182999134064, -0.562384843826294, -0.11697044223546982, -0.6120212078094482, -0.25164124369621277, 0.0907454565167427, -0.38167521357536316, 0.4888826310634613, -0.39928218722343445, 0.058612067252397...
an XML parser is concerned. If you did this (assuming that the `inner` element is defined an a schema or DTD as containing a string and not XML) then your XML parser will complain: ``` <?xml version="1.0" encoding="UTF-8" ?> <outer> <inner><normally> this looks <like/> &amp; xml </normally></inner> </outer> ``` s...
[ -0.019984636455774307, 0.13726188242435455, 0.19244660437107086, -0.1378118395805359, -0.26436570286750793, -0.3571236729621887, 0.07148847728967667, -0.3625919222831726, -0.029052143916487694, -0.5072773694992065, -0.5540399551391602, 0.6381782293319702, -0.3891198933124542, -0.1109947264...
the element `inner` contains xsd:string or equivalent, then it is an *invalid* XML document. And no, HTML or XHTML entities that are not defined as part of XML itself are not valid XML unless they are defined. Your XML parser will return an error.
[ 0.09004062414169312, 0.15688426792621613, 0.2884896397590637, 0.10970403999090195, -0.10560033470392227, -0.3581150770187378, 0.24403299391269684, -0.14367841184139252, 0.03275926038622856, -0.542025089263916, -0.2668907642364502, 0.34993892908096313, -0.23312290012836456, -0.0070265959948...
I have a JSON object `items` which has few items that I want to show 2 of them every 2 seconds. How would I do that? So, it displays items in `division1` every few seconds instead of showing all at once. Eg. get all items every 5 seconds and show 4 items every second for 20 items. ``` <table id="division1" > <thea...
[ -0.1290532797574997, -0.21431954205036163, 0.23361614346504211, 0.05474979802966118, -0.43191900849342346, 0.24954035878181458, 0.21643298864364624, -0.3821954131126404, -0.0695318952202797, -0.9646011590957642, -0.2024991512298584, 0.015007446520030499, -0.07474008202552795, 0.40517660975...
$.each(division.items, function (i,item){ var tablerow ="<tr>" +"<td>"+item.name+"</td>" +"<td>"+item.score+"</td>" +"</tr>"; tablebody = tablebody+tablerow; //$('#test').append(division.name+' '+i+' '+robot.name+'<br>');
[ -0.022931747138500214, -0.09156891703605652, 0.4455823302268982, -0.0630854144692421, -0.11948702484369278, 0.447386771440506, 0.18867042660713196, -0.7259631156921387, -0.05315316468477249, -0.5622319579124451, -0.3237498700618744, 0.2102941870689392, -0.22670531272888184, 0.3936400115489...
} ); $('#'+division.name+" tbody").html(tablebody); } function poll(){ $.post("data.php", {getvalues: 0}, function (data, status){ $.each (data.divisions, function(i,division){ render_items(division); }); }, 'json' ); setTimeout('poll()',500...
[ -0.11567267030477524, -0.024216560646891594, 0.838262677192688, -0.08953302353620529, 0.08880026638507843, 0.3851964473724365, 0.09285159409046173, -0.5453405976295471, -0.12700968980789185, -0.5699055790901184, -0.30056193470954895, 0.3163909316062927, -0.2425507754087448, 0.1681508868932...
then show a range of them every second with something like: ``` function startShow(table) { var index = 0; var trs = table.find("tbody tr"); function update() { if (index >= trs.length) { index = 0; } trs.hide().slice(index, index + 4).show(); index += 4; ...
[ 0.3046555817127228, -0.5271508097648621, 0.6973353028297424, -0.2986288368701935, 0.0675315260887146, 0.11209217458963394, 0.09964695572853088, -0.41548049449920654, -0.009838723577558994, -0.5640248656272888, -0.5483365654945374, 0.5049858093261719, -0.2641373574733734, 0.2120644152164459...
} update(); } ``` and then call it with ``` startShow($("#division1")); ```
[ -0.013635867275297642, 0.08512013405561447, 0.29688090085983276, -0.3794155418872833, 0.18498699367046356, -0.3230859041213989, 0.21797668933868408, -0.2786220610141754, -0.07482340931892395, -0.45300838351249695, -0.5427955985069275, 0.8932539224624634, -0.43624815344810486, 0.29480963945...
I am developing a grails application which uses lot of ajax.If the request is ajax call then it should give response(this part is working), however if I type in the URL in the browser it should take me to the home/index page instead of the requested page.Below is the sample gsp code for ajax call. ``` <g:remoteFunctio...
[ -0.09173066169023514, 0.042845357209444046, 0.39114540815353394, -0.039842817932367325, -0.2732788324356079, -0.09866951406002045, 0.40181416273117065, -0.1414858102798462, 0.021209251135587692, -0.6890110373497009, 0.0059475223533809185, 0.6138273477554321, -0.12764735519886017, 0.0212672...
HttpServletRequest.metaClass.isXhr = {-> 'XMLHttpRequest' == delegate.getHeader('X-Requested-With') } ``` this allows you to test if the current request is an ajax call by doing: ``` if(request.xhr) { ... } ``` The simplest solution is to add something like this to your todo action: ``` if(!request.x...
[ 0.09056317061185837, -0.4100640118122101, 0.3011097311973572, -0.0008042221306823194, -0.24222002923488617, -0.3201082944869995, 0.41874197125434875, -0.3096889853477478, -0.05089157447218895, -0.7804670929908752, -0.06510308384895325, 0.49083638191223145, -0.5877211093902588, -0.093717083...
= { servletContext -> HttpServletRequest.metaClass.isXhr = {-> 'XMLHttpRequest' == delegate.getHeader('X-Requested-With') } } def destroy = { } } ```
[ 0.3231455683708191, 0.055590394884347916, 0.18722951412200928, 0.15247167646884918, -0.09357054531574249, -0.47609758377075195, 0.5177397131919861, -0.5588821172714233, 0.10505251586437225, -0.5809981226921082, -0.3641326427459717, 0.3907686769962311, -0.39073362946510315, 0.37497395277023...
I'm trying to use content negotiation to give both a HTML and a RDF/XML representation of a resource on a HTTP server. On the server side this works, i.e. ``` curl -H "Accept: application/rdf+xml" http://localhost:8182/ontologies/1 ``` will retrieve the correct version. I can also do the same with JavaScript/Dojo: ...
[ -0.034973450005054474, -0.20964598655700684, 0.8935019373893738, 0.1532467007637024, -0.09386756271123886, 0.03591059148311615, 0.03672738000750542, -0.17014199495315552, -0.11185793578624725, -0.7780895829200745, -0.2438768744468689, 0.47939199209213257, -0.14913788437843323, 0.2100118547...
var preNode = document.createElement("pre"); preNode.appendChild(document.createTextNode(response)); var foo = new dijit.Dialog({ title: "RDF", content: preNode, style: "overflow: auto;" });
[ 0.1533169150352478, -0.042830366641283035, 0.5427730083465576, -0.35361844301223755, 0.08128798753023148, 0.0831390842795372, 0.5240251421928406, -0.40093380212783813, 0.28105828166007996, -0.4056149125099182, -0.6821064352989197, 0.518700122833252, -0.35682213306427, 0.22732649743556976, ...
foo.show(); return response; }, error: function(response, ioArgs) { alert("Retrieving the RDF version failed: " + response); return response; } }); } ``` which will display the result in a popup dialog. The point where I am
[ 0.31360191106796265, 0.2853356599807739, 0.5750775933265686, -0.6387537121772766, 0.12738394737243652, -0.09214406460523605, 0.5506313443183899, -0.2898002862930298, 0.06312397122383118, -0.21774928271770477, -0.4659382104873657, 0.5636814832687378, -0.5373731255531311, 0.25067269802093506...
stuck is offering a way to the user to download this version. I would like to have a link on the page that either displays the RDF as a page in the browser or directly opens the save dialog. Is this possible at all without resorting to query parameters or other tricks? It's quite a common practice to add this dynamic m...
[ 0.307838499546051, 0.0805213525891304, 0.6378970742225647, 0.17305371165275574, -0.2955220937728882, -0.44828787446022034, 0.14666154980659485, -0.23199357092380524, -0.29854899644851685, -0.527866005897522, -0.008360193111002445, 0.1828746348619461, -0.4416346549987793, 0.2337840795516967...
{ ... } ``` The simplest solution is to add something like this to your todo action: ``` if(!request.xhr) { redirect(controller: 'auth', action: 'index') return false } ``` You could also use filters/interceptors. I've built a solution where I annotated all actions that are ajax-only with a custom annotat...
[ -0.0827648937702179, -0.39817050099372864, 0.30867961049079895, 0.09678588807582855, -0.19418399035930634, -0.22713160514831543, 0.46360719203948975, -0.46701791882514954, -0.2518552541732788, -0.6033870577812195, -0.07406347244977951, 0.4533853232860565, -0.6606321334838867, -0.1661004126...
} } def destroy = { } } ```
[ 0.1662042886018753, 0.2812005877494812, -0.281605988740921, -0.3215028941631317, 0.25198841094970703, -0.5845887660980225, 0.5944596529006958, -0.06964917480945587, 0.23047985136508942, -0.3352413773536682, -0.2180909663438797, 0.87022465467453, -0.5083757042884827, 0.2817748188972473, 0...
I grabbed the following code somewhere off the Internet, and I am using it to decompress gzip files, such as <http://wwwmaster.postgresql.org/download/mirrors-ftp/pgadmin3/release/v1.8.4/src/pgadmin3-1.8.4.tar.gz>, but when I run It, I get an exception, stating that the magic number doesn't match. ``` public byte[] Do...
[ -0.02468719705939293, -0.06316981464624405, 0.791893720626831, -0.04015498608350754, 0.1572493016719818, -0.0006647356785833836, 0.3782763183116913, -0.5021882653236389, -0.32314392924308777, -0.39816775918006897, -0.3165879547595978, 0.5598769187927246, -0.4388349950313568, 0.296572059392...
memStream.Position = 0; GZipStream gzStream = new GZipStream(memStream, CompressionMode.Decompress); try { gzStream.Read(uncompressedData, 0, size); } catch (Exception gzError) { throw; } gzStream.Close(); return uncompressedData; } ``` What's wrong with the code that would c...
[ 0.11933472007513046, -0.09383126348257065, 0.6761258840560913, -0.12722480297088623, 0.0010979416547343135, 0.09079601615667343, 0.4086778163909912, -0.18412193655967712, -0.20205256342887878, -0.6757528185844421, -0.07671547681093216, 0.6238104104995728, -0.40845200419425964, 0.2329092323...
method to use: ``` string text = wc.DownloadString(pUrl); Console.WriteLine(text); ``` you'll see all the HTML for mirror selection. If you use a URL which is the *actual* gz file, e.g. <http://wwwmaster.postgresql.org/redir/170/h/pgadmin3/release/v1.8.4/src/pgadmin3-1.8.4.tar.gz> then it works fine.
[ 0.13031630218029022, 0.011708701029419899, 0.8747782707214355, -0.23302742838859558, 0.08839991688728333, -0.25307178497314453, 0.185284823179245, -0.27283427119255066, -0.2875739634037018, -0.462544322013855, -0.08117979019880295, 0.8864086270332336, -0.22101615369319916, 0.22454290091991...
I'm trying to convert a string of numbers, entered by the user, into a sexy string like Phone.app on the iPhone. Here is the code I'm using, which doesn't work (no special format comes out) and after a certain number of digits it just starts adding "0" to the end of the string. ``` NSNumberFormatter *formatter = [[NSN...
[ 0.34395313262939453, -0.08247212320566177, 0.5144804120063782, -0.09882891923189163, -0.04059583693742752, 0.38914528489112854, 0.554133415222168, -0.14219871163368225, -0.03483603522181511, -0.5067354440689087, -0.06505690515041351, 0.5901479125022888, -0.36755624413490295, -0.08465029299...
output unformatted text. The general problem here is that the iPhone SDK doesn't provide a method to format phone numbers in a locale dependent way. I have raised bugs with Apple for the following (two of these were duplicates of known issues so I've included Apple's original bug # for those): ``` #6933244 - Need i...
[ 0.025705838575959206, -0.019265184178948402, 0.42716309428215027, 0.01858149841427803, -0.33877092599868774, -0.2191673070192337, 0.5255364775657654, 0.0671778991818428, -0.07305116206407547, -0.4789366126060486, -0.3143905699253082, 0.5317656993865967, -0.3877689242362976, -0.090923987329...
a nice pretty way. Unfortunately that doesn't exist on the iPhone.
[ 0.2533973157405853, 0.04463497921824455, 0.3399192690849304, 0.22000086307525635, 0.4546739459037781, 0.1797357201576233, 0.4532662630081177, 0.7723496556282043, -0.039156317710876465, -0.3700907528400421, 0.21574601531028748, 0.451149582862854, 0.22167496383190155, -0.3120982348918915, ...
I've been coding and managing Java & ASP.Net applications & servers for my entire career. Now I'm being directed towards involvement in mainframes, ie z/OS & JCL, and I'm finding it difficult to wrap my head around it (they still talk about punch cards!). What's the best way to go about learning all this after having b...
[ 0.5078128576278687, 0.3038906455039978, -0.03588658198714256, 0.17124643921852112, 0.02212539315223694, -0.025971004739403725, 0.06855103373527527, 0.30269262194633484, -0.3823017179965973, -0.7409123182296753, -0.09358352422714233, 0.05869997292757034, 0.07165755331516266, 0.2422862201929...
and so on. Plan your file contents. * No directories. There are levels of hierarchy and they're limited to 8 characters each. * The user interface is ISPF, a green-screen text-mode user interface from the seventh circle of hell for those who aren't used to it. * Most jobs will still be submitted as batch jobs and you w...
[ 0.05738896131515503, -0.16800560057163239, 0.4642411768436432, 0.0911630392074585, 0.04414670169353485, -0.045019231736660004, 0.09351937472820282, 0.5471017956733704, -0.4115145206451416, -0.8286926746368408, -0.15889428555965424, 0.134712815284729, 0.041745368391275406, -0.04021020233631...
runs DB2 (proper DB2, not that little Linux/UNIX/Windows one), it runs MQ, etc, etc. Many shops will also run z/VM, a hypervisor, under which they will run many LPARs (logical partitions), including z/OS itself (multiple copies, sometimes) and zLinux (SLES/RHEL). The mainframe is in no danger of disappearing anytime s...
[ 0.2952311336994171, 0.43068116903305054, 0.26540467143058777, 0.24683360755443573, 0.060901571065187454, -0.40779364109039307, 0.192086860537529, 0.3376431167125702, -0.17027640342712402, -0.4654233455657959, -0.1822211593389511, 0.10259030014276505, -0.22177068889141083, 0.478412836790084...
at or above 55 years of age, so expect a huge suction up the corporate ladder if you position yourself correctly. It's still used in the big corporations as it's the only thing that can be trusted with their transactions - the z in System z means zero downtime and that's not just marketing hype. The power of the mainf...
[ 0.24960505962371826, 0.19553017616271973, 0.3453032374382019, 0.3108727037906647, 0.18873231112957, -0.19671107828617096, -0.2740023136138916, 0.4013916254043579, -0.3640768527984619, -0.5006159543991089, -0.21376758813858032, 0.5039784908294678, 0.46880677342414856, 0.22885769605636597, ...
the CPU does is process instructions. *Everything* else is offloaded to specialist processors, zIIPs for DB2, zAAPs for Java workloads, other devices for I/O (and I/O is where the mainframe kills every other system, using fibre optics and *very* large disk arrays). I wouldn't use it for protein folding or genome seque...
[ 0.5309965014457703, 0.18064188957214355, 0.31698137521743774, 0.17345046997070312, -0.18201014399528503, 0.03733869269490242, -0.05215853080153465, 0.10154358297586441, -0.2786407470703125, -0.53152996301651, -0.0661146491765976, 0.33690905570983887, -0.2951110899448395, 0.4171123206615448...
puts all the PC manufacturers 'green' claims to shame and communications between the instances is blindingly fast with HyperSockets (TCP/IP but using shared memory rather than across slow network cables (yes, even Gigabit Ethernet crawls compared to HyperSockets (and sorry for the nested parentheses :-))). It runs Web...
[ 0.050133734941482544, 0.3599408268928528, 0.08259676396846771, 0.1690099835395813, 0.15915872156620026, -0.4327749013900757, 0.06199895218014717, 0.34731975197792053, -0.3614009618759155, -0.36798200011253357, 0.03750653564929962, 0.23575130105018616, -0.09190014004707336, 0.25334841012954...
IBM may be providing xSeries (i.e., PCs) plugin devices for their mainframes as well. While most mainframe people would consider that a wart on the side of their beautiful box, it does open up a *lot* of possibilities for third-party vendors. I'm not sure they'll ever be able to run 50,000 Windows instances but that's ...
[ 0.4614008069038391, 0.21889422833919525, 0.10868802666664124, 0.40482836961746216, 0.3090675473213196, -0.05451682582497597, -0.0632321834564209, 0.5303359627723694, -0.2985209822654724, -0.29881688952445984, 0.08277086913585663, 0.3502459228038788, -0.2124396413564682, 0.1698213666677475,...
enough to get a feel. Just keep in mind that MVS 3.8j is to z/OS 1.10 as CP/M is to Windows XP. To provide a shameless plug for a book one of my friends at work has written, check out [What On Earth is a Mainframe?](https://rads.stackoverflow.com/amzn/click/com/1409225356) by David Stephens (ISBN-13 = 978-1409225355)....
[ 0.3011910319328308, 0.27899059653282166, 0.23886294662952423, 0.02631637081503868, 0.25010067224502563, -0.03278335928916931, 0.0549769401550293, 0.4263193905353546, -0.4196705222129822, -0.422645628452301, 0.056601788848638535, 0.3309110701084137, -0.03921297937631607, 0.27813687920570374...
a school of thought that only one JCL file has ever been written and all the others were cut'n'paste jobs on that. Having seen the contents of them, I can understand this. Programs like IEBGENER and IEFBR14 make Unix look, if not verbose, at least understandable.
[ 0.31469494104385376, 0.09431783854961395, -0.13850842416286469, 0.026089560240507126, -0.17384079098701477, -0.25741884112358093, 0.22248823940753937, 0.7674951553344727, -0.10096979141235352, -0.6528359055519104, -0.15781573951244354, 0.47944363951683044, -0.1108708381652832, 0.1937005817...
I have a jQuery .ajax call: ``` $j.ajax({ type: "POST", url: "/Services/Cart.asmx/UpdateQuantity", data: data, contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { var d = msg.d; // etc. }, error: function(xhr, msg) { var res...
[ -0.23673073947429657, -0.14456142485141754, 0.5252937078475952, 0.034515101462602615, -0.3708157241344452, 0.1476096212863922, 0.3074777126312256, -0.06756725907325745, 0.09802431613206863, -0.7779493927955627, -0.1963176131248474, 0.46341443061828613, -0.26868411898612976, 0.2325471341609...
{ cart.before('<div class="error">' + response.Message + '</div>'); } else { cart.before(' <div class="error">An unexpected error occurred.</div> '); } }, complete: function(request, settings) { // Some other stuff. } }); // end ajax alert('Initially thought ...
[ -0.058694321662187576, -0.4031757116317749, 0.6546023488044739, -0.09343089908361435, -0.2802083492279053, -0.2066376954317093, 0.10344360023736954, 0.07418342679738998, -0.06253647059202194, -0.422470360994339, -0.530307412147522, 0.7639852166175842, -0.38591137528419495, 0.04192864522337...
called before success etc.'); ``` However, based on some data returned by this first ajax call, I want to initiate a second .ajax call. It appears though that due to how the callbacks are configured for the first one, it doesn't occur sequentially (i.e. where in the above the last alert('Initially...') line) so I'm n...
[ -0.12049165368080139, -0.2620849311351776, 0.5780385732650757, -0.14518441259860992, -0.32707422971725464, -0.26835495233535767, 0.23404516279697418, -0.13212110102176666, -0.2070082128047943, -0.51356041431427, -0.17801892757415771, 0.938920795917511, -0.08944308012723923, -0.011151451617...
time to dig through it to understand more of what's going on under the hood, but no time yet! UPDATE: Erk. When the obvious doesn't first work as expected, the problem usually lies between the chair and the monitor; I'll put this one up to an all-nighter brain fart. Turns out how I originally had it set up (calling th...
[ 0.16887761652469635, -0.09466321766376495, 0.5688675045967102, 0.1604970395565033, -0.023027926683425903, -0.32459861040115356, 0.3881881535053253, 0.18506206572055817, -0.11971717327833176, -0.5092918872833252, 0.08622781932353973, 0.46376532316207886, 0.25533896684646606, -0.122556664049...
he/she was a) first and b) provided the hilariously understated "You can configure the call to be synchronous, but this is not a recommended technique." Well the alert should go in the success callback and not after the ajax call. The default behaviour of ajax calls is asynchronous. That is, the call returns immediatel...
[ -0.07949502766132355, -0.08506819605827332, 0.397070974111557, 0.10580568760633469, -0.003882157616317272, -0.3502577841281891, 0.2970009744167328, 0.10984868556261063, -0.00883908849209547, -0.18338848650455475, -0.5586806535720825, 0.7362971901893616, -0.22264288365840912, -0.24184972047...
I'd like to set up a multidimensional list. For reference, I am working on a playlist analyzer. I have a file/file-list, which my program saves in a standard list. One line from the file in each list entry. I then analyze the list with regular-expressions to find specific lines. Some of the data/results from the line...
[ 0.3407811224460602, -0.14180424809455872, 0.405168354511261, 0.0640682727098465, -0.0844796672463417, 0.11168580502271652, -0.011122610419988632, -0.21315337717533112, -0.2589331269264221, -0.8209498524665833, 0.08876166492700577, 0.3727555572986603, -0.4263528287410736, 0.0486248284578323...
[0] => Track ID [1] => Name [2] => Artist [3] => Album [4] => Play Count [5] => Skip Count ) [1] => List
[ 0.39637425541877747, -0.1036718487739563, 0.04649750515818596, 0.33113422989845276, -0.038502857089042664, -0.1842976212501526, -0.07057511061429977, -0.608305811882019, -0.30161502957344055, -0.2373814731836319, -0.22171543538570404, 0.683590292930603, -0.19840188324451447, 0.177733391523...