text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
<Setter Property="DockPanel.Dock" Value="Top"/> <Setter Property="Padding" Value="0,2,0,2"/> <Setter Property="Visibility" Value="Collapsed" TargetName="ArrowPanel"/> </Trigger> <Trigger Property="IsSuspendingPopupAnimation" Value="true"> <Setter Propert...
[ -0.14620262384414673, -0.03864945098757744, 0.34396451711654663, -0.024110978469252586, 0.028444675728678703, 0.5067125558853149, 0.13752159476280212, -0.3912478983402252, -0.3835794925689697, -0.6056727170944214, -0.470663845539093, 0.43226245045661926, -0.30147337913513184, -0.1981475651...
</Trigger> <!-- If no Icon is present the we collapse the Icon Content --> <Trigger Property="Icon" Value="{x:Null}"> <Setter Property="Visibility" Value="Collapsed" TargetName="Icon"/> </Trigger> <!-- The GlyphPanel contains the CheckMark -->
[ -0.09758161753416061, 0.02212364599108696, 0.6115684509277344, -0.04194483906030655, 0.06858748942613602, 0.3065634071826935, 0.09017811715602875, -0.3560901880264282, -0.0073633333668112755, -0.8241167664527893, -0.3383989930152893, 0.36611464619636536, -0.26383188366889954, -0.1045061349...
<Trigger Property="IsChecked" Value="true"> <Setter Property="Visibility" Value="Visible" TargetName="GlyphPanel"/> <Setter Property="Visibility" Value="Collapsed" TargetName="Icon"/> </Trigger> <!-- Using the system colors for the Menu Highlight and IsEnabled--> ...
[ -0.16732731461524963, -0.28239211440086365, 0.1806899756193161, -0.14057442545890808, 0.1056709811091423, 0.34910207986831665, 0.11277179419994354, -0.3514270484447479, -0.3168874979019165, -0.6786152720451355, -0.29067251086235046, 0.5476526021957397, -0.48621949553489685, -0.145947411656...
Value="{StaticResource HighlightedBackgroundBrush}" TargetName="Border"/> <Setter Property="Foreground" Value="{StaticResource HighlightedText}"/> <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}" TargetName="Border"/> </Trigger> <Trigger Prope...
[ -0.3917446434497833, -0.3060283958911896, 0.5872366428375244, -0.1686500757932663, -0.11182725429534912, 0.14588293433189392, 0.326153427362442, -0.5171641111373901, -0.17459963262081146, -0.31859999895095825, 0.027360254898667336, 0.5338310599327087, -0.3167303800582886, 0.068071216344833...
<Setter Property="BorderBrush" Value="{StaticResource MenuBackgroundBrush}" TargetName="Border"/> </Trigger> <Trigger Property="IsEnabled" Value="false"> <Setter Property="Foreground" Value="LightGray"/> </Trigger> </ControlTemplate.Triggers> </Control...
[ -0.2468232810497284, -0.2205917239189148, 0.4746427834033966, -0.03762875869870186, -0.06873368471860886, 0.18800504505634308, 0.20651976764202118, -0.6775689125061035, -0.18630923330783844, -0.6682692766189575, 0.1141987219452858, 0.35781222581863403, -0.2387462556362152, 0.16800607740879...
</Style> </Page.Resources> <Grid x:Name="mainGrid" Background="#FF252525"> <Menu x:Name="mainMenu" Grid.ColumnSpan="2" VerticalAlignment="Top"> <MenuItem x:Name="fileMenu" Header="File"> <MenuItem x:Name="fileOpenMenuItem" He...
[ -0.48936009407043457, -0.0491756796836853, 0.36874881386756897, -0.06335241347551346, -0.004627615679055452, 0.22326578199863434, -0.012017473578453064, -0.006586930714547634, -0.519422709941864, -0.7771034836769104, -0.530008852481842, 0.365141898393631, -0.2244076132774353, 0.11685462296...
<MenuItem x:Name="fileSaveMenuItem" Header="Save" /> <MenuItem x:Name="fileSaveAsMenuItem" Background="{DynamicResource menuItemBrush}" Header="Save As..." />
[ -0.36441001296043396, -0.46691688895225525, 0.10559996962547302, -0.2853769063949585, 0.2382957935333252, 0.17152464389801025, 0.1998225748538971, 0.29177436232566833, -0.32974234223365784, -0.7024575471878052, -0.49644631147384644, 0.658595085144043, -0.543369710445404, 0.1975643336772918...
</MenuItem> </Menu> </Grid> </Page> ```
[ 0.043420761823654175, 0.3853386342525482, 0.2010485678911209, -0.2148701399564743, -0.12176086008548737, 0.06125659868121147, 0.04945442080497742, 0.14065153896808624, -0.19803839921951294, -0.8492429256439209, -0.5411389470100403, 0.32146313786506653, -0.12096048891544342, 0.0956825464963...
For my asp.net website with forms authentication, I will use Windows integrated security to access a sql database. I will give DB permissions to the ASPNET or NETWORK SERVICE. Under what circumstances would I use SQL authentication instead? Use SQL Auth when you need non-Windows machines to make a DB connection. Keep ...
[ 0.3025117814540863, 0.1878308206796646, 0.2688314914703369, 0.09289997071027756, -0.19810570776462555, -0.15930791199207306, 0.40079689025878906, -0.21157975494861603, -0.17906047403812408, -0.6674299240112305, 0.0529940091073513, 0.530135989189148, -0.15695494413375854, 0.0845414027571678...
I am attempting to setup our servers to allow traffic over SSL. I am aware that SSL does not work with Name Virtual Host, but we have all of our Apache servers on virtual machines with dedicated private IPs. We have a primary virtual machine that has mod\_proxy setup to route traffic to the appropriate VMs. However, i...
[ 0.5100910663604736, 0.17374581098556519, 0.4069145619869232, 0.23840492963790894, 0.021093301475048065, -0.34784096479415894, 0.5216356515884399, 0.09674492478370667, -0.1689499318599701, -0.6278092265129089, -0.04414910823106766, 0.29856956005096436, -0.42035624384880066, 0.23412173986434...
following in the Apache logs for the proxy: [warn] Init: SSL server IP/port conflict: `host1.example.com:443` (/etc/apache2/sites-enabled/host1:1) vs. `host2.example.com:443` (/etc/apache2/sites-enabled/host2:1) There is one of these error message for each host we have setup on the proxy. Our Virtual Host setup for t...
[ -0.15954765677452087, 0.28706976771354675, 0.422972172498703, -0.010001292452216148, -0.07402404397726059, 0.1900346577167511, 0.5403806567192078, -0.1377810835838318, -0.2871958911418915, -0.8007100820541382, 0.06415200978517532, 0.43963852524757385, -0.21698299050331116, 0.25424939393997...
work? It sounds like Apache is warning you that you have multiple `<VirtualHost>` sections with the same IP address and port... as far as getting it to work without warnings, I think you would need to use something like Server Name Indication (SNI), a way of identifying the hostname requested as part of the SSL handsha...
[ 0.7850533723831177, -0.19122304022312164, 0.12104567885398865, -0.01132671907544136, -0.12789426743984222, -0.4404423236846924, 0.3983455002307892, 0.21944740414619446, -0.4222424626350403, -0.5802066922187805, 0.001354631269350648, 0.25218552350997925, -0.1286614090204239, 0.1198540851473...
you are able to access the websites properly, you'll probably be fine ignoring the warnings. These particular ones aren't very serious - they're mainly an indication of what to look at if you are experiencing problems
[ 0.6534882187843323, 0.05885004997253418, 0.44994473457336426, 0.20343591272830963, 0.1247292309999466, -0.5346720814704895, 0.7136322259902954, 0.5886226892471313, -0.5369302034378052, -0.49186739325523376, 0.08461630344390869, 0.433119535446167, -0.008813820779323578, -0.2297859489917755,...
I have a twenty byte hex hash that I would like to store in a django model. If I use a text field, it's interpreted as unicode and it comes back garbled. Currently I'm encoding it and decoding it, which really clutters up the code, because I have to be able to filter by it. ``` def get_changeset(self): return b...
[ 0.24757352471351624, 0.2894442677497864, 0.24274152517318726, -0.35767051577568054, -0.06644650548696518, 0.09624986350536346, 0.352175235748291, -0.367312490940094, -0.15808506309986115, -0.9153584837913513, -0.0045432597398757935, 0.5832260251045227, -0.49118733406066895, 0.1280908435583...
to just store twenty bytes. Maybe I'm too much of a purist, but ideally I would be able to write ``` Change.objects.get(changeset=ctx.node()) ``` The properties allow me to write: ``` change.changeset = ctx.node() ``` So that's as good as I can ask. I'm assuming if you were writing raw SQL you'd be using a Postg...
[ 0.13751019537448883, -0.0033023706637322903, 0.18846338987350464, -0.03949230536818504, -0.16501489281654358, 0.058769501745700836, -0.19985894858837128, -0.1716746687889099, -0.3616723120212555, -0.658609926700592, 0.2177930772304535, 0.49605631828308105, -0.38541069626808167, -0.07627920...
Usually when defining a DAO, you would have a setter for the datasource on the DAO object. My problem is that our datasource varies dynamically based on the request to the server. i.e. every request can access different database instance. The request holds logical properties, that later can be used to retrieve the con...
[ -0.1118006557226181, -0.10453615337610245, 0.3361038267612457, 0.07792199403047562, -0.006678976584225893, 0.015651315450668335, -0.15807080268859863, -0.11273037642240524, -0.1055409386754036, -0.7017726898193359, 0.008296056650578976, 0.3528899550437927, -0.33833274245262146, 0.222644507...
like messing with thread local variables. Another option is to have an initialize method on the business logic object that calls initialize on the DAO with the request properties. I guess it's a common problem, can you suggest a common solution? It sounds like your problem is that you are creating a single DAO insta...
[ 0.06342855840921402, -0.15926027297973633, -0.09404692053794861, 0.3849129378795624, -0.08817462623119354, -0.06794580072164536, -0.025974322110414505, 0.19400042295455933, -0.4829481244087219, -0.4614395201206207, 0.21824577450752258, 0.20855297148227692, -0.6091979146003723, 0.3250196576...
the datasource along with the data you are persisting into every method.
[ 0.07584628462791443, 0.11314897984266281, 0.5083487629890442, 0.5400593876838684, 0.23325005173683167, -0.17681270837783813, -0.30348384380340576, 0.05669477954506874, -0.1464577168226242, -0.7165382504463196, 0.03858403116464615, 0.5726535320281982, 0.23306331038475037, 0.3024885356426239...
I have a NSArray of UIImageViews that I want to loop over and quickly swap out an "on" and "off" state. I wrote the code to do so in a for loop instead a method that was called when the user tapped a UIButton ( the button's action ). Here's that loop: ``` for(int i = 0; i < [Images count]; i++) { if( i > 0 ){ ...
[ 0.3251095712184906, -0.2299533188343048, 0.8556733131408691, -0.19358961284160614, -0.02757193334400654, -0.08081547915935516, 0.4358769655227661, -0.20480091869831085, -0.0612458810210228, -0.8221033811569214, -0.052203282713890076, 0.7813058495521545, -0.41214242577552795, 0.063632488250...
as I expected as I only ever saw the last UIImageView in the "on" state. I figured that the drawing update of the views must occur in the main thread this code was also executing in. So I learned about performSelectorInBackground:withObject: . Performing the toggleImageViewOn/Off methods using this made the loop work. ...
[ 0.3077300786972046, -0.33505597710609436, 0.4485546350479126, -0.11684297025203705, -0.11624878644943237, 0.09067349135875702, 0.36276501417160034, -0.18664605915546417, -0.2685398757457733, -0.583358108997345, 0.27675941586494446, 0.6698923707008362, -0.06178202107548714, 0.22462981939315...
the action method using performSelectorInBackground:withObject: . I tried that and I'm back to not getting an updated view until the loop is over. That's a long winded way to get to my question: What's the best way to animate this to guarantee the on/off code fires in the right order and still get view updates, even...
[ -0.03326615318655968, -0.5481896996498108, 0.39905688166618347, 0.06925161927938461, -0.07834624499082565, 0.19572541117668152, 0.6002250909805298, -0.4560143053531647, -0.2963908612728119, -0.3868066668510437, -0.1067325547337532, 0.8032423257827759, -0.27077823877334595, -0.3431175947189...
[theImageView setImage:[UIImage imageNamed:@"on.png"]]; } - (void)toggleImageViewOff:(UIImageView *)theImageView { [theImageView setImage:[UIImage imageNamed:@"off.png"]]; } ``` You're on the right track with moving the loop to a background thread, but you also need to make sure that you give the main run loop a ...
[ 0.042412638664245605, -0.4384844899177551, 0.8960393667221069, -0.13244955241680145, -0.11497344076633453, -0.19196546077728271, 0.38980525732040405, -0.3226388096809387, -0.08422146737575531, -0.5748134255409241, -0.20409847795963287, 0.879076361656189, -0.24486538767814636, 0.01918744482...
same issue with things like progress bars, where they won't change until the loop ends unless you do your updates from a background thread with a UI update call like the one above.
[ 0.5666133761405945, -0.3311915397644043, 0.3945261538028717, 0.3232109546661377, 0.06406263262033463, -0.2637057304382324, 0.3832581639289856, 0.1316947042942047, -0.4580855071544647, -0.6291341185569763, 0.0004446003586053848, 0.34189411997795105, -0.15247802436351776, 0.17367731034755707...
I'm trying to get the x, y, and state of my mouse in SDL. I tried using the lines ``` int mstate, mx, my = 0; mstate, mx, my = SDL_GetCursor().SDL_GetMouseState(); ``` But it gives me the error > C:[path]\particletest2\main.cpp|107|error: request for member `SDL_GetMouseState' in`SDL\_GetCursor()', which is of non-...
[ -0.010274759493768215, -0.3407393991947174, 0.4453202486038208, -0.03551054373383522, -0.23053666949272156, 0.035997673869132996, 0.25158172845840454, -0.05948333814740181, -0.5301424860954285, -0.7417029142379761, 0.24979372322559357, 0.22117485105991364, -0.38973212242126465, 0.320522338...
post have been fixed since then. From the blog post, what rhino queues is: * XCopyable, Zero Administration, Embedded, Async queuing service * Robust in the face of networking outages * System.Transactions support * Fast * Works over HTTP
[ 0.11529573053121567, -0.20569825172424316, 0.48996028304100037, 0.2500198483467102, -0.34358805418014526, 0.31785866618156433, 0.13484974205493927, 0.33246394991874695, -0.8436169028282166, -0.22260186076164246, 0.09931521117687225, 0.14699995517730713, -0.4015193283557892, 0.1944747865200...
I have an iphone simulator running on my Mac. I have a .ipa file, can you please tell me how can I install it on the simulator? You can't. If it was downloaded via the iTunes store it was built for a different processor and won't work in the simulator.
[ 0.41525715589523315, 0.1716536581516266, 0.1315317004919052, 0.424824059009552, 0.5193594098091125, 0.23420211672782898, 0.12354748696088791, 0.13317053020000458, 0.0970892682671547, -0.9086999297142029, 0.25192204117774963, 0.509173572063446, -0.3656683564186096, -0.3053559958934784, 0....
I recently had a discussion on another forum with another developer and the topic was Code Reuse in ASP.NET. The stated scenario was that he needs to update code frequently on Production servers during server uptimes, and this results in Session getting reset for all users. He is avoiding putting shared code or classes...
[ 0.5102062225341797, 0.2078900784254074, 0.07583192735910416, 0.10282281786203384, -0.07491181045770645, -0.06997653096914291, 0.3176051080226898, -0.0722300261259079, -0.2964077591896057, -0.8023016452789307, -0.025488467887043953, 0.5915680527687073, -0.3815779685974121, 0.137840926647186...
files which would be recompiled dynamically on next request without forcing a Session restart. Note that the Usercontrols are not intended to have any UI, they probably only house some business logic. I tried to convince him against this because it felt intrinsically wrong to me - but I could not provide any hard fact...
[ 0.2772945761680603, 0.07879874110221863, 0.297119140625, 0.47160300612449646, 0.21080294251441956, -0.22386334836483002, 0.47415870428085327, 0.013059592805802822, -0.17325013875961304, -0.21891142427921295, 0.01191781647503376, 0.5690242648124695, -0.4959403872489929, 0.1596837192773819, ...
not be done? Links or examples would be helpful. Note: *Using out-of-process Session state is not an option at present, nor have they been able to decide on scheduled downtimes. Also, since this is a site under active development, they don't seem to be using any sort of professional deployment model yet.* Thanks in a...
[ 0.6052144169807434, -0.061205584555864334, 0.08611968904733658, 0.32890141010284424, 0.268575519323349, -0.37300682067871094, 0.6860820651054382, 0.15435545146465302, -0.48736876249313354, -0.4452710449695587, -0.19293516874313354, 0.5521878600120544, -0.04839937016367912, 0.26691597700119...
go with whatever works. I'd make a point of clearly documenting in the source files the unusual use of usercontrols and live with it. To answer the why does session get reset edit. With in process session all the session data is in memory as part of your application. Various changes to the web site (e.g. web.config an...
[ 0.24841363728046417, -0.0061150225810706615, 0.3917645812034607, 0.17932318150997162, 0.32552051544189453, -0.3890990614891052, 0.4704843759536743, -0.09120780974626541, -0.3842204213142395, -0.6648893356323242, -0.27947863936424255, 0.9650683403015137, -0.3225160539150238, -0.044934030622...
state without affecting the session data.
[ -0.06316931545734406, 0.19093544781208038, 0.3621707856655121, 0.32739534974098206, -0.11609160155057907, -0.2703342139720917, 0.600351095199585, 0.055840637534856796, -0.09526576846837997, -0.6587749719619751, -0.41602274775505066, 0.4133640229701996, -0.17093946039676666, 0.3578302264213...
[UPDATE: MS SQL Server 2005] Hi is it possible to select a bunch of values, and then assign a column in the select statement as the primary key? ``` SELECT ID FROM HQ AS PRIMARYKEY -- this is wrong SELECT Names FROM Stores SELECT PRODUCTNAME FROM PRODUCTS ``` I ask this because I want to take advantage of the DataR...
[ -0.2190224975347519, -0.016569672152400017, 0.6348152756690979, -0.12620173394680023, -0.21275311708450317, -0.0676337406039238, -0.17356044054031372, -0.2606815993785858, -0.08196491748094559, -0.28351688385009766, -0.31926774978637695, 0.45632293820381165, -0.42726901173591614, 0.1668476...
I've read that the latest version of the Ruby interpreter (YARV) will have substantial performance improvements due to bytecode compilation. My question is has anyone tried running this against JRuby? Any noticable differences in execution on Windows? This link had some good metrics but most were run on Linux...<http:...
[ -0.04014858976006508, 0.17131148278713226, 0.675864577293396, -0.268730103969574, -0.37412160634994507, -0.07740473002195358, 0.4343825578689575, -0.06068748980760574, -0.14428143203258514, -0.6661624908447266, 0.28671008348464966, 0.6791497468948364, -0.21381796896457672, 0.12427250295877...
0.661139) 0.346000 0.000000 0.346000 ( 0.345864) 0.343000 0.000000 0.343000 ( 0.342955) 0.348000 0.000000 0.348000 ( 0.348176) 0.343000 0.000000 0.343000 ( 0.342783) jr --fast --server bench/bench_fib_recursive.rb 0.833000 0.000000 0.833000 ( 0.832847) 0.265000 0.000000 0.26500...
[ -0.3961871564388275, 0.16480745375156403, 0.4403814375400543, -0.10085020214319229, -0.2516782283782959, 0.22308602929115295, 0.5111747980117798, -0.5025779008865356, -0.18971137702465057, -0.3702924847602844, 0.17129385471343994, 0.23875798285007477, -0.4079211354255676, 0.096229933202266...
( 0.254364) ruby1.9 bench/bench_fib_recursive.rb 0.380000 0.010000 0.390000 ( 0.381058) 0.370000 0.000000 0.370000 ( 0.400535) 0.370000 0.000000 0.370000 ( 0.388423) 0.370000 0.000000 0.370000 ( 0.400368) 0.370000 0.010000 0.380000 ( 0.398530) ``` So our default mode is a bit fast...
[ 0.028238648548722267, 0.062396109104156494, 0.4035842716693878, 0.048540107905864716, -0.3605444133281708, -0.19296693801879883, 0.6317604184150696, -0.07921253889799118, -0.13350820541381836, -0.5671840906143188, 0.05462100729346275, 0.5692798495292664, -0.2963660657405853, -0.05556543171...
an ancient graph, please check the dates of these things. If it was only a week or perhaps a month or two old...then maybe...but most projects change substantially in a years time much less two.
[ 0.4879506230354309, 0.012782598845660686, 0.37725281715393066, 0.3099367320537567, 0.2147054672241211, -0.06466622650623322, -0.12575814127922058, 0.29530099034309387, -0.5246204137802124, -0.6883693337440491, 0.3665325939655304, -0.2027721256017685, 0.29127123951911926, 0.4713000953197479...
I'm working on a relatively small asp.net web application and am wondering if there is really a need to employ full n-tier architecture. For an idea of size; there are about 20 database tables. In the past I have used a 2-tier approach where business logic and data access are grouped together into a single class libra...
[ 0.13702788949012756, -0.10327527672052383, 0.10073897242546082, 0.2909231185913086, -0.08422170579433441, -0.04524528235197067, -0.041787005960941315, -0.12995916604995728, -0.32823318243026733, -0.7066624760627747, 0.10398388653993607, 0.3068971633911133, -0.05738290771842003, 0.147756040...
future? Of your course you have to be pragmatic, but if you already have natural separations of concern within your single assembly then it's fairly easy to split that into two or more assemblies. If the classes themselves combine business logic and data access then you have more work on your hands. However, I'd argue ...
[ 0.28948262333869934, -0.3196086287498474, -0.04370860010385513, 0.22133737802505493, 0.6267762184143066, 0.38600805401802063, -0.30036795139312744, 0.00026922946562990546, -0.24578243494033813, -0.8535239100456238, -0.00811881572008133, 0.4528311789035797, -0.10882708430290222, 0.243719607...
I've come across some SQL queries in Oracle that contain '(+)' and I have no idea what that means. Can someone explain its purpose or provide some examples of its use? Thanks It's Oracle's synonym for `OUTER JOIN`. ``` SELECT * FROM a, b WHERE b.id(+) = a.id ``` gives same result as ``` SELECT * FROM a LEFT OU...
[ 0.29407578706741333, 0.3700259327888489, -0.15773144364356995, -0.0990428552031517, -0.2719248831272125, 0.04538465663790703, -0.06729841232299805, -0.14477775990962982, 0.09677747637033463, 0.05004357919096947, 0.21660283207893372, 0.2548665404319763, -0.29537105560302734, 0.3080166578292...
Has anybody had any success getting Team Build to show xUnit.net test results and code coverage in the build report? The MSBuild runner is running the tests just fine and the results are in the log file, but the test results and code coverage results areas of the build report say "No test result" and "No coverage resul...
[ 0.6481201648712158, 0.2256358116865158, 0.08419571816921234, 0.01399981789290905, -0.09738782793283463, -0.5431164503097534, 0.2837485373020172, 0.23218518495559692, -0.1295425146818161, -0.6303824186325073, -0.0057426332496106625, 0.5545335412025452, 0.12344402819871902, -0.10260414332151...
currently looking at this problem for the Gallio test runner, and can offer two potential options: 1. Try wrapping the xUnit tests inside the 'Generic Test' project type that VSTS offers - this is where MSTest executes the xUnit test runner. 2. Come up with an XSLT transform (or similar) that can map the xUnit results...
[ 0.3261359930038452, -0.5148061513900757, 0.17707519233226776, 0.2802826464176178, -0.24001339077949524, -0.21373656392097473, 0.32622843980789185, -0.23641565442085266, 0.1575053483247757, -0.7143813967704773, -0.040569450706243515, 0.4739649295806885, -0.32341068983078003, -0.033558048307...
I'm trying to dig through some logs and need information before and after the line I can match on. How would I do this in PowerShell ala "grep -C 2"? In version 1, I can't wait for r2, then I get to put it on production machines :) Getting closer here- because Select-String returns MatchInfo objects which I can pull a...
[ 0.19584497809410095, -0.20303680002689362, 0.753623366355896, -0.21069219708442688, 0.10332803428173065, -0.19411228597164154, 0.09882216155529022, 0.048225533217191696, -0.2732606530189514, -0.6736106872558594, 0.0694224089384079, 0.44611242413520813, -0.5171664953231812, 0.18720358610153...
Otherwise, this solution works but obviously not quickly.
[ 0.08021979033946991, 0.3133608400821686, 0.4172669053077698, 0.40872493386268616, 0.42182695865631104, -0.14746953547000885, 0.47801148891448975, -0.1834450662136078, 0.2469494491815567, -0.7161561846733093, -0.12174612283706665, 0.34106189012527466, 0.2276918739080429, -0.0002549655619077...
I'm getting these errors while linking, both messages have to do with the same object file. ``` CALL16 reloc at 0x5f8 not against global symbol ``` and ``` could not read symbols: Bad value ``` The 2nd message seems to be the reason I'm getting the CALL16 error, but the file compiles just fine. Any tips on fixin...
[ -0.08639901876449585, 0.2180188149213791, 0.5007849931716919, -0.12006999552249908, -0.11236204952001572, 0.08616673201322556, 0.7714498043060303, 0.045210015028715134, -0.3676566779613495, -0.7210823893547058, -0.017022497951984406, 0.7522512674331665, -0.5579732656478882, -0.027370152994...
back to the source at this point and investigate more. Aha! Thanks to a colleague of mine, we found the issue. Here was the issue: There was a forward declaration/prototype of a function. ``` void FooBarIsBest(void); ``` Later on in the file the function was defined. ``` static void FooBarIsBest(void) { // do...
[ 0.02067669667303562, 0.27562111616134644, -0.09852571040391922, -0.2993397116661072, -0.17740625143051147, -0.1155625730752945, 0.30676501989364624, -0.10297679901123047, -0.1474432349205017, -0.45069053769111633, 0.03637276217341423, 0.6890838742256165, -0.5450648665428162, 0.411076426506...
this function is local. Interestingly, this code used to compile & link just fine with an older version of gcc (3.2.2). Another lessoned learned. :)
[ -0.06422480195760727, -0.16209463775157928, 0.4203122854232788, -0.004056914709508419, -0.201120987534523, -0.36175721883773804, 0.1424756795167923, 0.11362151801586151, -0.04259713366627693, -0.4846215844154358, 0.08870940655469894, 0.6881210803985596, -0.32989275455474854, 0.141864404082...
I am not very familiar with databases and the theories behind how they work. Is it any slower from a performance standpoint (inserting/updating/querying) to use Strings for Primary Keys than integers? Technically yes, but if a string makes sense to be the primary key then you should probably use it. This all depends on...
[ 0.2698880434036255, 0.2576206624507904, 0.1045117899775505, 0.2141648530960083, -0.06494570523500443, 0.0031845595221966505, -0.17242096364498138, -0.06297049671411514, -0.37086746096611023, -0.44474688172340393, 0.31830012798309326, 0.325592041015625, -0.07856859266757965, 0.2087074220180...
performance slowdown you'll get by using a string on smaller tables will be minuscule to the headaches that you can have by having an integer that doesn't mean anything in relation to the data.
[ 0.07047306001186371, -0.13630111515522003, 0.41777893900871277, 0.193792924284935, -0.06637289375066757, -0.11957226693630219, 0.2075810432434082, 0.01251817774027586, -0.3163065016269684, -0.4463615417480469, 0.17790526151657104, 0.5366589426994324, 0.10272853821516037, 0.0375672765076160...
I'm trying to P/Invoke into CryptImportKey from C# to set a known key before encrypting data that will be decrypted in a C++ Win32 service at some point. I have the method signature for the P/Invoke and that all works fine but i can't get it to accept my key blob. The C++ structs are in comments below and my C# ones fo...
[ 0.34076887369155884, 0.3882869482040405, 0.18116667866706848, -0.0875307247042656, 0.21447618305683136, 0.02550172619521618, 0.3031776547431946, -0.4602414667606354, -0.0018329557497054338, -0.39593473076820374, 0.007179175037890673, 0.5221439599990845, -0.13158777356147766, -0.01171670854...
BYTE bVersion; // WORD reserved; // ALG_ID aiKeyAlg; // } BLOBHEADER, PUBLICKEYSTRUC; [StructLayout(LayoutKind.Sequential)] public struct PUBLICKEYSTRUC { public Byte bType; public Byte bVersion; public Int16 reserved; public Int32 aiKeyAlg; } /...
[ 0.08807607740163803, -0.002309610601514578, 0.17699679732322693, -0.2633727788925171, -0.12215907871723175, 0.5225222110748291, 0.0873296707868576, -0.07078760862350464, -0.29863280057907104, -0.35824188590049744, -0.23873062431812286, 0.4180763363838196, -0.7521591186523438, 0.15791624784...
//{ // BLOBHEADER hdr; // DWORD cbKeySize; // BYTE* rgbKeyData; //} KEYBLOB; [StructLayout(LayoutKind.Sequential)] public struct KEYBLOB { public PUBLICKEYSTRUC hdr; public Int16 cbKeySize; public Byte[] rgbKeyData; } ``` I then use: ``` int l...
[ 0.11238866299390793, 0.11543185263872147, 0.17696039378643036, -0.3043676018714905, 0.10264668613672256, 0.053473100066185, 0.28475385904312134, -0.6885196566581726, -0.36697542667388916, -0.4706244468688965, -0.3482138514518738, 0.5569238066673279, -0.15149106085300446, 0.1923151910305023...
byte[] arr = new byte[len]; IntPtr ptr = Marshal.AllocHGlobal(len); Marshal.StructureToPtr(keyBlob, ptr, true); Marshal.Copy(ptr, arr, 0,len); Marshal.FreeHGlobal(ptr); ``` To get in to a byte array to pass to CryptImportKey but it never seems to take the key with it and when I encrypt with it...
[ 0.07926139235496521, 0.33771827816963196, 0.42129310965538025, 0.02391166053712368, 0.01999027095735073, -0.10734020173549652, 0.35884979367256165, -0.6662805676460266, -0.4388519525527954, -0.20583990216255188, -0.4355020225048065, 0.3394817113876343, -0.39622965455055237, 0.1020326465368...
maybe have a point about the header being included twice but the main problem I have is the value of the Byte[] rgbKeyData is not being put in to the byte array arr. I just use ``` Alias /media /home/akaihola/usr/lib/python2.4/site-packages/django/contrib/admin/media/ Alias /static /home/akaihola/mysite/public/static/...
[ 0.2818753123283386, 0.11718560010194778, 0.01817278377711773, -0.03668910264968872, -0.286135733127594, -0.25966235995292664, 0.41234830021858215, -0.30814167857170105, -0.1863522231578827, -0.4336395859718323, 0.17704841494560242, 0.5014860033988953, -0.27322500944137573, 0.08028800785541...
I'm fairly new to the DI concept, but I have been using it to some extent in my designs - mainly by 'injecting' interfaces into constructors and having factories create my concrete classes. Okay, it's not configuration-based - but it's never NEEDED to be. I started to look at DI frameworks such as Spring.NET and Castl...
[ 0.781302273273468, -0.11733713001012802, -0.2787306606769562, 0.06072685867547989, -0.3347776532173157, 0.15701629221439362, 0.043807677924633026, 0.12587134540081024, -0.098531074821949, -0.37113165855407715, 0.22356753051280975, 0.2811252474784851, -0.21414712071418762, 0.051543068140745...
loosely-couple my system but at the same time have some sort of control over dependencies. I'm a bit scared of losing this control, and it being just a free-for-all. ClassA needs ClassB = no problem, just ask and ye shall receive! Hmmm. Or is that just the point and this is the future and I should just go with it? ...
[ 0.556870698928833, -0.05842403694987297, 0.17455895245075226, 0.1865423321723938, 0.04697929322719574, -0.1657644808292389, 0.07207544147968292, -0.2715842127799988, -0.07498769462108612, -0.5086788535118103, 0.14516101777553558, 0.024520009756088257, -0.33417969942092896, 0.05688260495662...
still have to think about what interfaces you need and getting them right is not always a trivial matter. I don't see how a loosely coupled system could be considered lazily designed. If you go through all the trouble of getting to know an IoC framework, you're certainly not taking the shortcut.
[ 0.4861373007297516, 0.04067615047097206, -0.018892060965299606, 0.5388843417167664, -0.09977275133132935, -0.23862230777740479, 0.19010497629642487, 0.1588517725467682, -0.1056247130036354, -0.5372092127799988, 0.17910166084766388, 0.3215829133987427, 0.02808360569179058, -0.15645542740821...
Had a coworker ask me this, and in my brain befuddled state I didn't have an answer: Why is it that you can do: ``` string ham = "ham " + 4; ``` But not: ``` string ham = 4; ``` If there's an implicit cast/operation for string conversion when you are *concatenating*, why not the same when *assigning* it as a str...
[ -0.047712914645671844, 0.23880285024642944, -0.26604247093200684, -0.3061714172363281, -0.23106157779693604, -0.23522798717021942, 0.23231741786003113, -0.4457962214946747, -0.2405605912208557, -0.1554708480834961, -0.24328793585300446, 0.7075356245040894, -0.33878663182258606, -0.10616905...
conversion from `int` to `string`, and thus you cannot assign `4` to a `string` without explicitly converting it. In other words the two assignments are handled very differently by the compiler, despite the fact that they look very similar in C#.
[ 0.2608548104763031, 0.17212936282157898, 0.15777862071990967, -0.30937275290489197, -0.25269073247909546, 0.028436169028282166, 0.24511562287807465, -0.3864423632621765, -0.23540794849395752, -0.4178212881088257, -0.27957722544670105, 0.6176548004150391, -0.37000858783721924, -0.1278263479...
Has anyone done true enterprise reporting - if so, was it home grown or purchased? What I am talking about is creating a reporting portal that allows a single entry point to any reporting engine's results. I would like a single browser based place for my global users to go to get reports. Each locale may have a diffe...
[ 0.6271730065345764, 0.28911250829696655, 0.05295441299676895, 0.3974404036998749, -0.09771892428398132, -0.29471442103385925, 0.23758858442306519, 0.2330969125032425, -0.27346038818359375, -0.49545910954475403, 0.08329226821660995, 0.07896147668361664, 0.02092626504600048, 0.01252616848796...
BI solution to the reporting portal - and be able to use the reporting portal to view, execute and export report resuts with the same look and feel as everyone else in the organization. I think it is unrealistic of reporting vendors/industry to think a large global organization is going to standardize on a single bi ...
[ 0.45199519395828247, 0.17492318153381348, 0.08036565780639648, 0.33145734667778015, -0.2540515959262848, -0.30399009585380554, 0.07459645718336105, -0.350641131401062, -0.40410587191581726, -0.5539490580558777, 0.08442763239145279, 0.26647618412971497, -0.37707704305648804, 0.0272891335189...
- if so, was it home grown or purchased? See this question: [When should I use # and = in ASP.NET controls?](https://stackoverflow.com/questions/115159/when-should-i-use-and-in-asp-net-controls) --- Summary from those answers: There are a several different 'bee-stings': * `<%@` - Page/Control/Import/Register [di...
[ 0.30568164587020874, -0.03292284533381462, 0.25702783465385437, -0.08334549516439438, 0.026007141917943954, -0.23478291928768158, 0.4712570905685425, -0.3686007857322693, -0.061855316162109375, -0.1853480339050293, 0.13712234795093536, 0.1631372570991516, -0.6807405352592468, 0.08943441510...
I have a method like this: ``` public static <T> boolean isMemberOf(T item, T[] set) { for (T t : set) { if (t.equals(item)) { return true; } } return false; } ``` Now I try to call this method using a `char` for `T`: ``` char ch = 'a'; char[] chars = new char[] { 'a', 'b', '...
[ -0.10457045584917068, -0.08381540328264236, 0.3575996160507202, -0.06519938260316849, -0.13778015971183777, -0.03522402048110962, 0.3364735543727875, -0.3594975173473358, -0.13134808838367462, -0.329443097114563, -0.05807945132255554, 0.5446755886077881, -0.5436592698097229, 0.505089938640...
autoboxed to `Character` and `Character[]`, but that doesn't seem to happen. Any insights? There is no autoboxing for arrays, only for primitives. I believe this is your problem.
[ 0.03670875355601311, 0.14483806490898132, -0.20848794281482697, 0.04690185561776161, -0.040174148976802826, 0.13900351524353027, 0.21225103735923767, 0.2481200248003006, -0.07898922264575958, -0.4247303009033203, -0.019945809617638588, 0.8326950669288635, -0.5092469453811646, -0.4338900148...
I am working to improve performance of a function that takes an XML string and replaces certain characters (encoding) before returning the string. The function gets pounded, so it is important to run as quickly as possible. The USUAL case is that none of the characters are present - so I would like to especially optimi...
[ 0.2293592244386673, 0.22875338792800903, 0.14422176778316498, 0.08514301478862762, 0.16142277419567108, -0.04058810696005821, 0.16327673196792603, -0.08517780154943466, 0.018001049757003784, -0.6557578444480896, -0.2487615942955017, 0.34175482392311096, -0.039028409868478775, -0.2285961806...
the regexes are precompiled and I've eliminated nested functions which slowed down operation (partial milliseconds matter at this point.) ``` var objXMLToString = new XMLToStringClass(); function XMLToStringClass(){ this.tester= /\\34|\\39|\\62|\\60|\\13\\10|\\09|\\92|&amp/; this.replacements=[]; var self=...
[ -0.2840039134025574, -0.20520488917827606, 0.9249973297119141, -0.2692258656024933, -0.10797365009784698, 0.3170505166053772, 0.36699578166007996, -0.6710425615310669, -0.2298109382390976, -0.5866608619689941, -0.40993982553482056, 0.5829827189445496, -0.23481915891170502, 0.12212919443845...
regexReplacePair(/\\62/g,">"); self.replacements.push(re); re = new regexReplacePair(/\\60/g,"<"); self.replacements.push(re); re = new regexReplacePair(/\\13\\10/g,"\n"); self.replacements.push(re); re = new regexReplacePair(/\\09/g,"\t"); self.replacements.push(...
[ -0.23728640377521515, 0.028909943997859955, 0.9281557202339172, -0.6032475829124451, 0.258950412273407, 0.8633428812026978, 0.30875107645988464, -0.6816489696502686, -0.4336944818496704, -0.7627860903739929, -0.6848801970481873, 0.6863747239112854, -0.4441562592983246, 0.44874459505081177,...
self.replacements.push(re); } init(); } function regexReplacePair(regex,replacementString){ this.regex = regex; this.replacement = replacementString; } String.prototype.XMLToString = function() { newString=this; if(objXMLToString.tester.test(this)){ for (var x = 0;x<ob...
[ 0.03505710884928703, -0.07437213510274887, 0.4410647451877594, -0.2736721932888031, -0.08068272471427917, 0.31560900807380676, 0.443608820438385, -0.512818455696106, -0.09718043357133865, -0.7080459594726562, -0.13061583042144775, 0.4755477011203766, -0.3946742117404938, 0.3646235764026642...
return newString; } return this; } ``` * Is it possible that in this scenario `String.replace` functions will be better? * Currently I am replacing all characters if a single character matches - is it possible that testing and then conditionally replacing would be better? If so, might `indexOf` be qui...
[ -0.01608940400183201, -0.13502608239650726, 0.4343782663345337, 0.147394597530365, -0.03283633291721344, 0.25711557269096375, 0.10986129939556122, -0.24919696152210236, -0.2046503722667694, -0.4626002311706543, -0.09952462464570999, 0.5314441919326782, -0.2514834702014923, 0.01746887899935...
(string of 85 chars) ``` original simple hash switch ag-hash FF3 194 188 250 240 424 IE7 188 172 641 906 2203 Chrome1 161 156 165 165 225 Opera9
[ -0.38516297936439514, 0.01511258352547884, 0.2870834469795227, -0.07364660501480103, -0.24243497848510742, 0.5486466884613037, 0.3659745156764984, -0.43782839179039, -0.12163615226745605, -0.17127420008182526, -0.13958437740802765, 0.24303974211215973, -0.42166322469711304, 0.0990081578493...
640 625 531 515 734 ``` With non matching data (string of 85 chars): ``` original simple hash switch ag-hash FF3 39 4 34 34 39 IE7 125 15 125
[ -0.49703794717788696, 0.09073393791913986, 0.3313867449760437, 0.006515809800475836, -0.19255384802818298, 0.637230634689331, 0.2865835130214691, -0.5446173548698425, -0.19097468256950378, -0.22122958302497864, -0.3016366958618164, 0.2904888689517975, -0.22415219247341156, 0.14772528409957...
125 156 Chrome1 45 2 54 54 57 Opera9 156 15 156 156 156 ``` (tested on my window xp laptop, 1.7GHz, ymmv) The simple solution: ``` function XMLToString(str) { return (str.indexOf("\\")<0 && str.indexOf("&")<0) ? str : str .replace(/\\34/g,'"') .repla...
[ -0.010428938083350658, -0.04726393148303032, 1.146071434020996, -0.031080646440386772, -0.4143262505531311, 0.13895799219608307, 0.13703341782093048, -0.4546453058719635, -0.025112317875027657, -0.6510425209999084, -0.15739324688911438, 0.5482919812202454, -0.35910797119140625, -0.17271874...
.replace(/\\62/g,">") .replace(/\\60/g,"<") .replace(/\\13\\10/g,"\n") .replace(/\\09/g,"\t") .replace(/\\92/g,"\\") .replace(/\&amp;/g,"&"); } ``` Explanation: First there is a check if there is a backslash or ampersand (it was faster to use indexOf instead of a regexp in all bro...
[ -0.09082365781068802, 0.07682517915964127, 0.5149453282356262, -0.1650308221578598, 0.13945536315441132, 0.14870552718639374, 0.5366173982620239, -0.09677788615226746, -0.296904981136322, -0.7999549508094788, -0.2695586681365967, 0.631858766078949, -0.5135283470153809, -0.05478880554437637...
with the replacements, but it was not a big difference. In your original version you have a test for all combinations just to detect if you should do the replacements or not. That is expensive since the regexp engine has to compare every position with every combination. I simplified it. I improved Ates Gorals by movi...
[ 0.20213140547275543, -0.04829365760087967, 0.1819692850112915, -0.1556864231824875, -0.05556012690067291, 0.4422680735588074, 0.34011363983154297, -0.24998770654201508, -0.32277652621269226, -0.6097368597984314, 0.06399111449718475, 0.49315345287323, -0.5077465772628784, -0.267761409282684...
made me believe that you encode the string yourself, and if that is the case I suggest that you switch encoding to a standard one, so you can use the built in functions. Instead of "\dd" where dd is a decimal number, use "%xx" where xx is the hexadecimal number. Then you can use the built in decodeURIComponent that is...
[ 0.21734751760959625, 0.23184362053871155, 0.20864169299602509, 0.07106820493936539, -0.08513599634170532, 0.2777237892150879, -0.03460865840315819, -0.156904935836792, 0.07530972361564636, -0.6451221704483032, -0.2546709477901459, 0.33818328380584717, -0.3950138986110687, 0.006377054844051...
3 IE7 93 16 Chrome1 132 1 Opera9 109 16 ``` . ``` function XMLToString_S1(str) { return (str.indexOf("%")<0) ? str : decodeURIComponent(str).replace(/\x0D\x0A/g,"\n") } ``` So instead of having a string like "\09test \60\34string\34\62\13\10\" you have a string lik...
[ -0.21006104350090027, 0.08677811175584793, 0.6792483329772949, -0.6037997603416443, -0.47022971510887146, -0.08157020807266235, 0.4727656841278076, -0.3147396147251129, 0.1646018773317337, -0.550019383430481, -0.3120724856853485, 0.4849272668361664, -0.5590088963508606, -0.2115118652582168...
Let me just preface by saying it's actually my crappy code that's leaking and crashing my browser, I just thought I better make the languages being used as clear as I could from the outset. I have a test page [here](http://www.hallofbrightcarvings.com/game/grid) and the javascript can be found [here](http://www.hallof...
[ 0.16640067100524902, 0.1714511215686798, 0.17430150508880615, -0.1344814896583557, -0.3182598650455475, -0.12893971800804138, 0.40646037459373474, 0.07738864421844482, -0.2804178297519684, -0.829975962638855, 0.081603042781353, 0.7346362471580505, -0.08356679230928421, -0.03661415725946426...
to debug this. My current most likely culprit: ``` function register_draggable(ob) { ob.config.jqId.draggable({cursor: 'move', grid:[ob.config.size, ob.config.size], containment: '#chessboard',
[ -0.4231104254722595, -0.08197351545095444, 0.45496368408203125, 0.0911058783531189, 0.24544724822044373, 0.15187931060791016, 0.048844363540410995, -0.034859560430049896, -0.3602326810359955, -0.33002960681915283, -0.23217560350894928, 0.21294137835502625, -0.38235601782798767, 0.464512914...
revert: 'invalid', start: function() { check_allowable_moves(ob.config.jqLocation,
[ -0.38643118739128113, 0.031687475740909576, 0.37762072682380676, -0.3282564580440521, 0.3740510642528534, 0.15126682817935944, 0.4459439814090729, -0.3493702709674835, -0.2951999306678772, -0.2774670124053955, -0.6552700400352478, 0.5013100504875183, -0.4606155455112457, 0.2462321668863296...
ob.config.jqId, ob);
[ -0.7153804898262024, 0.13725289702415466, 0.2964296042919159, -0.36172717809677124, 0.04249675199389458, 0.46041733026504517, 0.04350736364722252, -0.21185116469860077, -0.12457481026649475, -0.6447716951370239, -0.6421567797660828, 0.3079010844230652, -0.5028882026672363, 0.22131586074829...
}, stop: function() { remove_allowable_moves();
[ -0.2140370011329651, -0.1877959817647934, 0.2679988443851471, -0.45595240592956543, 0.660619854927063, 0.01571120135486126, 0.18070043623447418, 0.17619958519935608, -0.0546860545873642, -0.17979344725608826, -0.7568689584732056, 0.5066490173339844, -0.555326521396637, 0.12913809716701508,...
} }); } ``` If anyone could take a quick look and give me any suggestions on what I should be looking for, it would be enormously appreciated. **Solution** Turns out `register_draggable()` was the culprit. I registered a new draggable every time the location of a piece updated and all t...
[ 0.13754184544086456, 0.07644730061292648, 0.4318179786205292, 0.1968800127506256, 0.1698216050863266, -0.17024672031402588, 0.45425572991371155, 0.19243651628494263, -0.21792346239089966, -0.2725048363208771, -0.0022478350438177586, 0.38818466663360596, -0.5318052172660828, 0.6303318142890...
new one. Current code is ``` function register_draggable(ob) { ob.config.jqId.draggable('destroy'); ob.config.jqId.draggable({cursor: 'move', grid:[ob.config.size, ob.config.size], containment: '#chessboard',
[ -0.38916274905204773, -0.34940582513809204, 0.5917551517486572, -0.06607352942228317, 0.1602713018655777, 0.06453169137239456, 0.1484961360692978, -0.3347526490688324, -0.49487006664276123, -0.6842515468597412, -0.2769928276538849, 0.14701542258262634, -0.6416531205177307, 0.38230553269386...
revert: 'invalid', start: function() { check_allowable_moves(ob.config.jqLocation,
[ -0.38643118739128113, 0.031687475740909576, 0.37762072682380676, -0.3282564580440521, 0.3740510642528534, 0.15126682817935944, 0.4459439814090729, -0.3493702709674835, -0.2951999306678772, -0.2774670124053955, -0.6552700400352478, 0.5013100504875183, -0.4606155455112457, 0.2462321668863296...
ob.config.jqId, ob);
[ -0.7153804898262024, 0.13725289702415466, 0.2964296042919159, -0.36172717809677124, 0.04249675199389458, 0.46041733026504517, 0.04350736364722252, -0.21185116469860077, -0.12457481026649475, -0.6447716951370239, -0.6421567797660828, 0.3079010844230652, -0.5028882026672363, 0.22131586074829...
}, stop: function() { remove_allowable_moves();
[ -0.2140370011329651, -0.1877959817647934, 0.2679988443851471, -0.45595240592956543, 0.660619854927063, 0.01571120135486126, 0.18070043623447418, 0.17619958519935608, -0.0546860545873642, -0.17979344725608826, -0.7568689584732056, 0.5066490173339844, -0.555326521396637, 0.12913809716701508,...
} }); } ``` I don't think this is actually your problem, but it seems like your making an extra method call on register and check\_ allowable\_moves ``` return { register_map: function(ob) { map = ob; }, register_piece: function(ob) { ob.config.tracker = this;
[ -0.168329656124115, -0.37678608298301697, 0.37546297907829285, -0.24829137325286865, 0.3050534725189209, -0.060203101485967636, 0.30285167694091797, -0.1828448325395584, -0.3101655840873718, -0.6466192007064819, -0.4055689871311188, 0.7529844641685486, -0.720613956451416, -0.16241656243801...
register_draggable(ob); }, register_draggable: function(ob) { register_draggable(ob); }, check_allowable_moves: function(location, jqPiece, ob) { check_allowable_moves(location, jqPiece, ob); } } ``` can be shortened to ``` return { register_map: function(ob) { map = ob; }, ...
[ 0.04293602332472801, -0.4142085611820221, 0.5963138937950134, -0.251518577337265, 0.022905562072992325, 0.30733931064605713, -0.006045555230230093, -0.22581495344638824, -0.4721933901309967, -0.5256201028823853, -0.5738340020179749, 0.3858839273452759, -0.7463485598564148, 0.05243860185146...
register_draggable(ob); }, register_draggable: register_draggable, check_allowable_moves: check_allowable_moves } ``` Also ---- you are doing a double lookup here: ``` function remove_allowable_moves() { $('.allowable').droppable('destroy'); $('.allowable').removeClass(...
[ -0.04243546724319458, -0.15896834433078766, 0.34601953625679016, -0.08000879734754562, 0.25939303636550903, -0.12131121754646301, 0.012595552951097488, -0.0007966355769895017, -0.32529187202453613, -0.10712578147649765, -0.4593116044998169, 0.5334811210632324, -0.7512926459312439, -0.05086...
Take off the parseFloat. ``` var x = parseInt(locs[1]); var y = parseInt(locs[2]); var x_min = parseFloat(x)-2; var y_min = parseFloat(y)-2; ``` Finally ------- Why are you re-registering as draggable on drop? This could be the culprit, if your registering the draggable multiple times and only destroying it once. ...
[ 0.1830897331237793, -0.13361568748950958, 0.5973881483078003, -0.14198505878448486, 0.03196655213832855, 0.16790756583213806, 0.19397197663784027, -0.14690159261226654, -0.23307664692401886, -0.07941960543394089, -0.4211885333061218, 0.5033358931541443, -0.823828935623169, 0.07736333459615...
register_draggable(ob); // why this? } }); ``` Other thoughts -------------- Another thing I don't know if its going to help your performance, but it could clean up your code. the jquery selector allows commas so instead of ``` $('#coord-1-1').doStuff(); $('#coord-1-2').doStuff();...
[ -0.14045867323875427, -0.3522232472896576, 0.4010827839374542, 0.03958098217844963, 0.09462512284517288, 0.021345946937799454, 0.5677897930145264, -0.3709258735179901, -0.1373194456100464, -0.32362866401672363, -0.16065692901611328, 0.6159965395927429, -0.6101057529449463, -0.0091086439788...
``` var map = new Map('content'); var piece1 = new Piece(map); var piece2 = new Piece(map); var tracker = new Tracker; tracker.register_map(map); map.render(); piece1.render('coord-4-4', '1'); piece2.render('coord-1-1', '2'); tracker.register_piece(piece1); tracker.register_piece(piece2); ``` I'd like to see ``` $(d...
[ 0.20165935158729553, -0.0652276873588562, 0.4655449688434601, -0.1348600536584854, 0.02413616143167019, -0.19702944159507751, 0.2002984881401062, -0.285970538854599, -0.25032445788383484, -0.7829914093017578, -0.2847836911678314, 0.49258196353912354, -0.3900953233242035, 0.0156448632478714...
and instance of your plugin easily.
[ 0.09939391911029816, 0.197273850440979, 0.14390675723552704, 0.241666778922081, -0.09438242018222809, -0.08433312177658081, 0.13571278750896454, 0.10805384069681168, -0.056197427213191986, -0.517671525478363, -0.22270798683166504, 0.39566344022750854, -0.08441902697086334, 0.04831081628799...
We're currently creating an app that needs ATG taglibs on SLING/OSGI, we have created a bundle with these taglibs and uploaded it, of course these taglibs call ATG classes, so we are including them in the bootdelegation, using sling.properties file. sling.bootdelegation.simple=atg.nucleus sling.bootdelegation.class.at...
[ -0.2643800973892212, 0.17806152999401093, 0.29456114768981934, -0.09848406910896301, -0.10759814083576202, 0.13155141472816467, 0.6999035477638245, -0.3226515054702759, -0.4334372580051422, -0.6596518754959106, -0.155283585190773, 0.36339643597602844, -0.5866250991821289, -0.13228628039360...
org.apache.sling.scripting.jsp.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:125) at org.apache.jsp.apps.mygeometrixx.components.contenpage.center\_jsp.\_jspx\_meth\_dsp\_005fimportbean\_005f0(center\_jsp.java:177) at org.apache.jsp.apps.mygeometrixx.components.contenpage.center\_jsp.\_jspService(center\_jsp....
[ 0.4365467131137848, 0.11169276386499405, 0.14830178022384644, 0.07754401862621307, -0.010781509801745415, -0.16007931530475616, 0.5272853970527649, -0.6565203666687012, 0.04668591916561127, -0.8243849873542786, 0.045348282903432846, 0.45853111147880554, -0.0027934997342526913, -0.286964327...
checkin which would slow down my overall pace of development.
[ 0.44108182191848755, 0.23039363324642181, 0.26810595393180847, -0.105526402592659, 0.0810595378279686, 0.16390368342399597, 0.4024384915828705, -0.044994886964559555, -0.027049116790294647, -0.46008098125457764, 0.3370298147201538, 0.3967624306678772, 0.21323508024215698, -0.03254757076501...
I'm a developer and I often work remotely when I can rather than commuting to work. I would like to be able to take the dev database environment with me. I know I can access the database remotely, but it slow. I sometimes work where there's no wireless connection. Any ideas? Yes, it's possible. See [this](http://socia...
[ 0.7915360331535339, 0.19418016076087952, -0.1323934942483902, 0.004549584351480007, -0.05830007418990135, -0.29287299513816833, 0.417817085981369, 0.45439839363098145, -0.43951526284217834, -0.9348299503326416, 0.22411620616912842, 0.7261695265769958, -0.0035488165449351072, 0.335284441709...
Does anyone have experience deploying Java ME apps to Windows Mobile? What are the high-level steps to getting started with this, and are there any major drawbacks? Well at first you need to install a JVM on your device (if one isn't already installed). There are currently two players for this: * [NSI Creme](http://ww...
[ 0.11246352642774582, -0.01608152501285076, 0.46244773268699646, -0.015572591684758663, 0.007716824766248465, -0.09159761667251587, 0.023806322365999222, 0.04267991706728935, -0.4314863085746765, -0.9222198724746704, 0.1878262758255005, 0.39403578639030457, -0.4251691997051239, 0.1538406312...
a download link. May be IBM has stopped supporting it. Some devices have a JVM pre-installed, but it is difficult to rely on certain profiles being present. Unless you are targeting a single device, I would say that is better to avoid J2ME for Windows Mobile.
[ 0.09790831059217453, -0.08174432814121246, 0.33003225922584534, 0.24940720200538635, 0.09746121615171432, -0.5561037063598633, 0.41014257073402405, 0.47013092041015625, -0.31165072321891785, -0.630563497543335, -0.25395843386650085, 0.3841802179813385, -0.21460068225860596, 0.3833438158035...
I've been trying to wrap my mind around DDD and how it can relate to MVC, but I'm having trouble with regards to entity identification. In particular, I'm trying to maintain strict separation between my presentation, domain, and data models. My hangup here is in how I preserve entity identification across these bounda...
[ 0.3200622498989105, 0.12884168326854706, 0.2500666379928589, 0.0018217609031125903, 0.1056879386305809, 0.11224095523357391, -0.2195763736963272, 0.08329012989997864, -0.38692739605903625, -0.7503507137298584, 0.11182519793510437, 0.5085268020629883, -0.1361415982246399, 0.7443307042121887...
'ID' property (like ShipmentRequestId) would be a violation of the separation I'm trying to achieve, since this ID property is a database concern, and not a domain concern; and I don't want to pass the same object between layers, as this would mean passing unneeded data into my presentation layer. How do I preserve th...
[ 0.3459402024745941, 0.13044311106204987, 0.5212458372116089, 0.22564542293548584, 0.1988414227962494, -0.3400781452655792, -0.23740947246551514, -0.1520313024520874, -0.14749078452587128, -0.6455140113830566, 0.12594112753868103, 0.3181997239589691, -0.28091803193092346, 0.6620915532112122...