text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
#Shapes drop table #Shapes ``` This returns two sets of polygons. First the unreduced set: ![alt text](https://www.xs4all.nl/~teund/stackoverflow/areas1.png) Then the reduced set: ![alt text](https://www.xs4all.nl/~teund/stackoverflow/areas2.png) These shapes are much simpler and they do have the rough shape cor...
[ 0.11802675575017929, 0.15475192666053772, 0.5644634962081909, 0.02483968622982502, -0.36263957619667053, 0.24886001646518707, -0.06359104812145233, -0.37677302956581116, -0.2372789829969406, -0.8706681728363037, -0.11116696894168854, 0.11520327627658844, -0.15359438955783844, -0.0519560873...
me, but alphadogg has certainly put in the most effort and I really appreciate any sharing of thoughts. So the bounty goes to him. I will follow-up with a self-answer later if I find a satisfying method. **Follow-up**: I e-mailed with Isaac Kunen, Program Manager on the SqlServer Geo team. His helpfull response is b...
[ 0.2300584465265274, 0.3746466636657715, -0.04676292836666107, 0.23898331820964813, -0.07250509411096573, -0.18025363981723785, 0.3713162839412689, 0.18430839478969574, -0.15942305326461792, -0.706272542476654, -0.2756921052932739, 0.17588591575622559, -0.31053319573402405, 0.14967893064022...
to store > separate polygons for each > neighborhood. Rather, you want to > store curves representing portions of > boundaries, and reuse these boundaries > for multiple polygons. When you > generalize, you generalize the shared > boundary, and all dependent polygons > are affected. > > > You could build this...
[ 0.29926759004592896, -0.22868771851062775, 0.08366373181343079, 0.46653860807418823, -0.25395941734313965, 0.055409062653779984, -0.0023462397512048483, -0.043982941657304764, -0.23702166974544525, -1.1666336059570312, 0.3852314352989197, 0.2627747356891632, -0.5178895592689514, 0.08959325...
use a > package like the FME from Safe > Software (<http://www.safe.com>). The > FME doesn't do general-purpose > topology, but I believe it has enough > functionality to do what you're > looking for. See: > <http://www.safe.com/products/desktop/under-the-hood.php#3b>. > > > I hope this helps. > > > Cheers, ...
[ 0.5141292214393616, -0.059554751962423325, 0.24886950850486755, -0.12487664818763733, -0.17078715562820435, -0.1866811215877533, 0.13048431277275085, -0.47213566303253174, 0.175160750746727, -1.0145490169525146, 0.15641550719738007, 0.5478259921073914, -0.2469911128282547, -0.0441079027950...
boolean operations to play with the reduced shapes. First, do what you do, namely create a temporary table of reduced shapes (called `#ReducedShapes`). Then, I would create a second temp table and find the areas of overlap (using `STIntersection`) between all shapes. In this table, I would basically have columns `na...
[ -0.4081106185913086, -0.04421113803982735, 0.3193083703517914, -0.38748934864997864, -0.32741856575012207, 0.38397398591041565, 0.0363435223698616, -0.5113258361816406, -0.25811806321144104, -0.5410597920417786, -0.13869614899158478, 0.16799184679985046, -0.20930945873260498, -0.1830180138...
if A and B overlap you'd have and . I would make a pass and delete one of the two for each occurence. Lastly, for each overlap, I would subtract (`STDifference`) the intersection **from only one of the two** regions in the pair from the `#ReducedShapes` table. Imagine you have two squares A and B, half-overlapping. Th...
[ -0.06207449361681938, -0.20467378199100494, 0.29346320033073425, -0.2858295440673828, -0.5413113236427307, 0.4093896746635437, 0.23570720851421356, -0.4016823470592499, -0.4571133553981781, -0.8420799970626831, -0.08266553282737732, -0.020451687276363373, -0.5464576482772827, 0.08133012056...
you'll get one of two possible reductions depending on how you deal with who "wins". b) a more complicated form of the problem is that, depending on the complexity of the initial shapes, you may get overlap between three or more regions. You'll have to determine your own way to establish which one shape "wins" in that ...
[ 0.13530606031417847, -0.22688673436641693, 0.42702919244766235, 0.2597721815109253, 0.06405208259820938, 0.33705440163612366, -0.21249860525131226, -0.40983742475509644, -0.5122009515762329, -1.0594909191131592, 0.1948220282793045, 0.11122127622365952, -0.23385970294475555, 0.1509732455015...
a little more complicated and I am not 100% sure how to resolve it. But, if you create a third table that subtracts (`STDifference` again) all the modified shapes `#ModifiedShapes` from all the original shapes in `#Shapes` (testing for overlap before actually subtracting, of course), you'd be left with the remainder sh...
[ 0.167868509888649, -0.06217800825834274, 0.3450714647769928, 0.009276694618165493, -0.0808606818318367, 0.24287819862365723, -0.015498235821723938, -0.2948409616947174, -0.08483293652534485, -0.7799251675605774, 0.03383011743426323, 0.11424791067838669, -0.19404281675815582, 0.204625442624...
add to the post.
[ 0.3723723590373993, 0.10532943159341812, 0.007695766631513834, 0.01085983868688345, -0.1229327842593193, 0.04368436336517334, 0.05817297101020813, 0.21614496409893036, -0.004411773290485144, -0.3176056444644928, 0.08528566360473633, 0.15421722829341888, -0.08095443993806839, -0.11842808872...
The following regular expression works if there is no space character, but if the input has a space character, it doesn't work (it seems like a link but JavaScript doesn't work). How can I change it? The regular expression should work for both `World` and `The World`. ``` Dim makebkz As String Dim pattern A...
[ 0.07203958928585052, -0.1185835748910904, 0.9538074731826782, -0.3169673681259155, -0.07897354662418365, 0.06776338815689087, 0.45945265889167786, -0.29506954550743103, -0.24268026649951935, -0.6040973663330078, -0.39064714312553406, 0.5332503318786621, -0.5642284154891968, 0.0749080330133...
= regex.Replace(str, "(bkz: <a href=javascript:" & myAnchor.HRef & "><font color=""#CC0000"">$1</font></a> )") makebkz = str Return makebkz ``` I think this line should be changed: ``` str = regex.Replace(str, "(bkz: <a href=javascript:" & myAnchor.HRef & "><font color=""#CC0000"">$1</font></a> )") ``` If I...
[ 0.241993710398674, 0.22719891369342804, 0.962165117263794, -0.2709119915962219, 0.16396082937717438, -0.006018507294356823, 0.2413870096206665, -0.3891455829143524, -0.22362221777439117, -0.5098419785499573, -0.48366233706474304, 0.45968353748321533, -0.5606852173805237, -0.164950549602508...
<a href=""javascript:" & myAnchor.HRef & """><font color=""#CC0000"">$1</font></a> )") ``` I.e. wrap the javascript call in quotes, and your world will be good.
[ 0.39034974575042725, 0.3437204658985138, 0.6886571049690247, -0.2136951982975006, 0.1710072010755539, -0.3381296396255493, 0.3563334345817566, -0.04446754604578018, -0.0429946593940258, -0.4435012638568878, -0.3056897521018982, 0.730620265007019, -0.07036695629358292, 0.061231065541505814,...
My co-worker is challenged with taking user input in Flex and using that data to execute commands on a USB device. We figured we would need to have a socket server running on the machine in order to do this. We want to send objects with byte arrays etc, not just strings. Is there anything out there that could help us?...
[ 0.5612642168998718, -0.0654669851064682, -0.03887628763914108, 0.34096232056617737, -0.050264813005924225, 0.02860507182776928, -0.20969563722610474, 0.09290261566638947, -0.31412217020988464, -0.7595268487930298, 0.3306100368499756, 0.21128728985786438, -0.15611900389194489, 0.45811712741...
the serialization perhaps by hosting them as a Windows service? Checkout Merapi (<http://www.merapiproject.net/>) Java-to-AIR bridge.
[ -0.13201569020748138, -0.0436752587556839, 0.2257997989654541, 0.02619791403412819, -0.12063389271497726, 0.2454339563846588, 0.14103151857852936, -0.22716745734214783, -0.1298103630542755, -0.5014570951461792, -0.25411859154701233, 0.22941219806671143, -0.4392991364002228, -0.046728868037...
Ex : I want something like abc.hyd.mycompany.com. My requirement is to parse this name and initialize appropriate service. ``` using System.Net; Dns.GetHostName() // doesn't return fully qualified name it just gives "abc" ``` You may be able to get the whole DNS string like this: ``` System.Net.Dns.GetHostEntry(""...
[ 0.37123215198516846, 0.18460939824581146, 0.4891718029975891, -0.1370847076177597, 0.02562635764479637, -0.10947003215551376, 0.48499661684036255, -0.021385902538895607, -0.20377497375011444, -0.5817572474479675, 0.00038500010850839317, 0.5360462069511414, -0.4571674168109894, 0.3746446073...
Currently I got this type of query generated by programmation (c#) ``` INSERT INTO TableName (Field1, Field2, Field3) SELECT Field1, Field2, Field3 FROM TableName2 ``` The problem is that the SELECT can have a result of many records (like a million), so it's take many times and the result is an connection timeout. ...
[ -0.19226202368736267, 0.15345852077007294, 0.3229464292526245, 0.02347453683614731, -0.03867093473672867, -0.04571560025215149, 0.06566214561462402, -0.24663054943084717, -0.24186526238918304, -0.6299726366996765, 0.24269109964370728, 0.5496342778205872, -0.15692031383514404, 0.26004600524...
INSERT statements that are executed in sequence, you can improve performance by adding a 'GO' statement after each xxxx number of insert statements: ``` ... INSERT INTO Table ( ... ) VALUES ( ... ) INSERT INTO Table ( ... ) VALUES ( ... ) INSERT INTO Table ( ... ) VALUES ( ... ) GO INSERT INTO Table ( ... ) VALUES ( ....
[ 0.0923856720328331, -0.05159405991435051, -0.09317585080862045, 0.1352776288986206, 0.06667795777320862, 0.012388970702886581, 0.09693411737680435, -0.0710410326719284, -0.22615499794483185, -0.44124338030815125, -0.23975317180156708, 0.6994344592094421, -0.39671438932418823, -0.1034254357...
WHERE Id > x and Id < y ```
[ -0.07462421804666519, 0.2704162299633026, -0.06568808108568192, -0.09144259989261627, -0.035320818424224854, -0.030234839767217636, -0.21943099796772003, -0.12830357253551483, 0.3093641996383667, -0.4152802526950836, -0.2179020792245865, 0.3257361650466919, -0.15024028718471527, 0.26338279...
I've been tasked with setting up a wiki for our developers to share project information (Server IPs, Interface Documentation, Architecture Diagrams, etc). My manager has suggested Deki and I've also heard of MediaWiki and Twiki. One project here uses Trac but we don't need it's SVN capabilities and we'd like to have a ...
[ 0.5658609867095947, 0.12385433912277222, -0.03461384400725365, 0.1516501009464264, -0.05168668553233147, -0.23851680755615234, 0.13316227495670319, 0.17111697793006897, -0.168473020195961, -0.6617357730865479, 0.08385484665632248, 0.4901733696460724, 0.060854487121105194, 0.228523701429367...
terrible? Requirements: * WYSIWYG * Clean interface * Easy to use * Attach Files to pages * User Management Hierarchy (Users / Groups) * Open source * Hosted Locally If not duplicate, pretty similar: [Coding Standard Wiki](https://stackoverflow.com/questions/472882/coding-standard-wiki/472925#472925) **Update:** W...
[ 0.8439454436302185, 0.19170822203159332, 0.055827438831329346, 0.09121258556842804, -0.43119603395462036, -0.14073285460472107, 0.6429809331893921, -0.06351223587989807, -0.12223900854587555, -0.645607590675354, -0.06748300790786743, 0.5388845205307007, -0.03481036424636841, 0.403962016105...
Most programmers agree that garbage collection is a great thing, and in most applications is well worth the overhead. However, my personal observation is that memory management for most objects is trivial, and maybe 10%-20% of them account for the need for kludges such as reference counting and really complicated memor...
[ 0.19590602815151215, 0.29608944058418274, -0.13172833621501923, 0.32611536979675293, -0.04942985996603966, -0.39032238721847534, 0.4050755798816681, 0.07570237666368484, -0.429432213306427, -0.3281717300415039, -0.3048718273639679, 0.5302965641021729, -0.2432306706905365, 0.055545397102832...
supports such a thing. This would allow the GC to run much less frequently, and consume less excess memory, while still avoiding cases that are actually hard to manage manually. Even more interesting would be if the compiler inserted deterministic delete statements automatically where lifetimes were obvious: ``` int m...
[ 0.34413084387779236, 0.13458703458309174, 0.335287481546402, -0.10872237384319305, 0.1025918647646904, -0.2649904489517212, 0.5467625856399536, -0.056855931878089905, -0.2545078992843628, 0.029657181352376938, -0.22787579894065857, 0.42554497718811035, -0.6566802859306335, -0.1040269210934...
someInteger; } ``` Of course, this might not work well with a copying GC, but for the sake of this post let's assume our GC isn't copying. Why are such hybrid memory management schemes apparently so rare in mainstream programming languages? Because this case is too rare. Almost no method is isolated. They all accept ...
[ 0.28294098377227783, 0.08985159546136856, 0.08874528855085373, 0.24684058129787445, -0.11055895686149597, -0.13321168720722198, 0.00017442098760511726, 0.23976565897464752, -0.17082534730434418, -0.32395708560943604, -0.224798321723938, 0.28398144245147705, -0.4713722765445709, 0.379814773...
check. This means that in the common case, you have fewer objects to check and the rest doesn't matter that much. Next, you use an incremental sweep (so you can run in little sprints which interrupt only for a short moment). I once tried to come up with a better GC algorithm and failed miserably. They use an approach ...
[ 0.5854603052139282, -0.07392849028110504, 0.12404287606477737, 0.13085179030895233, -0.2778623700141907, -0.5612463355064392, 0.27805522084236145, -0.11449027806520462, -0.363540381193161, -0.4732871949672699, 0.030612880364060402, 0.6105948686599731, -0.1935710459947586, -0.09722986817359...
traditional memory allocation and freeing schema. Think of the classic algorithm which just locates any reachable object and copies it to a new place. If you have just forgotten about a whole lot of objects (say, 90% of all allocated objects), this algorithm just needs to check the rest (10%). Anything that it can't re...
[ 0.08727550506591797, -0.006530254613608122, 0.02111443132162094, 0.3896830677986145, 0.1113288551568985, -0.15324877202510834, 0.06846555322408676, -0.2047182321548462, -0.4480449855327606, -0.5521426200866699, -0.15290771424770355, 0.6462448835372925, -0.1303727775812149, 0.23028168082237...
it is actually a *good thing*.
[ 0.30867353081703186, 0.4293554425239563, 0.3838844299316406, -0.2055259793996811, 0.06511662900447845, -0.4391956031322479, 0.40360838174819946, 0.4811866879463196, 0.002284898655489087, -0.21140789985656738, -0.07175402343273163, 0.1471453756093979, 0.45290425419807434, 0.2033719718456268...
I'm writing an asp.net mvc app and I've get a list of service calls that I display in a table. When the user clicks the table header I want to tell my controller to sort the list by that column. ``` public ActionResult Index(int? page, string sortBy, string sortDirection) { int pageIndex = page == null ? ...
[ -0.15891744196414948, -0.24333491921424866, 0.9750015139579773, -0.31031540036201477, -0.02666957676410675, 0.15995804965496063, 0.3952084481716156, -0.44029828906059265, -0.36023277044296265, -0.7621285319328308, -0.4406532049179077, 0.37459850311279297, -0.508955717086792, 0.087220869958...
return View("List", serviceCalls); } ``` How do I incorporate the sortBy and sortDirection. I think I could do something like: ``` IPagedList<ServiceCall> serviceCalls = sc.Service.GetOpenServiceCalls("").OrderBy(sortBy).ToPagedList(pageIndex, 2); ``` But that doesn't work because I assume OrderBy wants a lam...
[ -0.05141707882285118, -0.16287291049957275, 0.5462700128555298, -0.34513434767723083, -0.25390133261680603, 0.24051415920257568, 0.43499693274497986, -0.28272753953933716, -0.16171440482139587, -0.5402723550796509, -0.14308205246925354, 0.8587489128112793, -0.36462631821632385, -0.12041833...
object at run time.
[ 0.03225795179605484, 0.0020495739299803972, 0.04850257933139801, 0.30641379952430725, -0.41818711161613464, -0.21067963540554047, 0.1984320729970932, 0.06367135792970657, 0.07678423821926117, -0.4205811619758606, -0.25607651472091675, 0.44411230087280273, -0.1554250419139862, -0.0045244419...
Currently how I do this is I poll for a masked list of USB devices (masked specifically for the device I'm working with) and if it's there, I continue, if not then I notify the user that the device is not connected. The method for getting a list of USB devices is provided for me through a USB peripheral controller chip...
[ 0.45348748564720154, -0.008654022589325905, 0.42025622725486755, -0.0022317187394946814, 0.08683175593614578, -0.39344778656959534, -0.017949935048818588, -0.18312980234622955, -0.42230722308158875, -0.5460472702980042, -0.06554527580738068, 0.5148654580116272, -0.13320516049861908, 0.3460...
Assume that I have a dropdownlist with 2 items and, by default, the first item is selected. If I select the click the first item in the dropdownlist, is there a way I can get the SelectedIndexChanged() event to still fire? I thought I could do it by setting the SelectedIndex of the dropdownlist to -1, but that didn't ...
[ -0.11958663910627365, -0.28415387868881226, 0.22743448615074158, 0.015619602054357529, -0.10313922166824341, -0.008195143193006516, 0.1535300463438034, -0.3908716142177582, -0.17794662714004517, -0.4274348020553589, -0.051580265164375305, 0.42632007598876953, -0.37216848134994507, -0.01209...
sort in ascending order for example, but if I want to sort in descending order now using the second item, I have to select another item and then go back to the second item. Even if I add a Select By, I think the best solution to sorting is to just have more items in the dropdownlist like: Sort Numbers (Asc) Sort Num...
[ -0.15164192020893097, -0.3743712604045868, 0.4317719638347626, 0.1986238658428192, -0.19707460701465607, 0.11328472942113876, -0.0006049175863154233, -0.2839684784412384, -0.5143612623214722, -0.7434766888618469, -0.2980607748031616, 0.09751175343990326, -0.15722383558750153, -0.0388100743...
as such: ``` dropdownlist1.items.insert(0, "----Select Sort Method----") dropdownlist1.items.insert(1, new ListItem("Alphabetic Ascending", "AlphaAsc")) dropdownlist1.items.insert(2, new ListItem("Alphabetic Descending", "AlphaDesc")) dropdownlist1.items.insert(3, new ListItem("Numeric Ascending", "NumAsc")) dropdownl...
[ -0.1994379162788391, -0.34132352471351624, 0.5786995887756348, -0.12337072938680649, 0.008972967974841595, 0.2051461786031723, 0.027073074132204056, -0.6158950924873352, -0.41899895668029785, -0.48817649483680725, -0.5708103179931641, 0.43831419944763184, -0.378246933221817, -0.08535395562...
case "NumAsc" Insert code to sort ListBox1 Numerically in ascending order case "NumDesc" Insert code to sort ListBox1 Numerically in descending order end select end if ``` Note: You would want to make sure that your dropdownlist1's AutoPostBack property is set to true if you want th...
[ -0.2826630175113678, -0.2251732498407364, 0.10477554053068161, -0.005527277942746878, 0.1223190426826477, 0.012843608856201172, -0.11313461512327194, -0.17408791184425354, -0.28269243240356445, -0.39212337136268616, -0.3066960871219635, 0.31267645955085754, -0.2287028580904007, 0.063953161...
I'm using Qt Jambi 4.4 for a project I'm working on (and designing the windows in the Qt Designer eclipse plugin). One of the windows I'd like to use is a preview window which is basically just a window with a QWebView on it. How can I make it so that the QWebView resizes as the window does? I've set the sizePolicy to ...
[ 0.6583148837089539, 0.0035528079606592655, -0.05491819232702255, -0.016642767935991287, -0.1640714406967163, -0.19492647051811218, 0.29120659828186035, 0.1702675074338913, -0.19162337481975555, -0.8955551981925964, 0.3290862441062927, 0.43633943796157837, -0.22016622126102448, 0.0946666970...
both of those subjects) **UPDATE** Just to illustrate the point, here are a couple of screenshots (I've made the window background bright just to illustrate my point): [alt text http://img13.imageshack.us/img13/2103/screenshot2oi7.jpg](http://img13.imageshack.us/img13/2103/screenshot2oi7.jpg) [alt text http://img15...
[ 0.18000271916389465, -0.19782264530658722, 0.30994823575019836, -0.05144152417778969, -0.1034802719950676, 0.08686425536870956, 0.15152674913406372, -0.10032374411821365, -0.25681987404823303, -0.5599255561828613, -0.017949890345335007, 0.5959253311157227, -0.1430296152830124, -0.284608304...
IE 6.0 is giving me the message "This page contains both secure and nonsecure items" because I have iframes on my page (for the combo box bug). I have tried pointing to a few different things in the src but I can't seem to get rid of this message without putting in a blank html page, which I would like to avoid so ther...
[ 0.17558802664279938, 0.19390738010406494, 0.2834663689136505, -0.015851764008402824, -0.1725248247385025, -0.44192561507225037, 0.586601197719574, 0.07053937762975693, 0.05912556126713753, -0.8315576314926147, 0.09895172715187073, 0.3339273929595947, -0.49883654713630676, 0.155566826462745...
server trip? If I set the src to javascript:false; it works. I found this by examining what the yui library uses.
[ 0.18753811717033386, -0.2217707484960556, 0.049724649637937546, 0.11570538580417633, -0.26780933141708374, -0.34729689359664917, 0.2569449245929718, 0.08001641929149628, -0.1320628970861435, -0.4237034320831299, 0.11305901408195496, 0.36616140604019165, -0.07469014823436737, -0.17292658984...
What are your favourite plugins in VIM for Latex editing? Is there some ready variant of VIM for Latex? Actually, I think the default support that Vim includes for `filetype=tex` is already quite good. So strictly, no plugins are necessary. However, I do recommend a few settings that you can cherry-pick from and adapt...
[ 0.21164895594120026, -0.18620768189430237, 0.7590323686599731, 0.014358400367200375, -0.08476007729768753, -0.05985420197248459, -0.0012919958680868149, -0.09927262365818024, -0.1048644408583641, -0.6710608005523682, 0.16180945932865143, 0.9773236513137817, -0.36265140771865845, -0.0259088...
global settings that I keep in `~/.vimrc`: ``` let g:tex_flavor = "latex" set suffixes+=.log,.aux,.bbl,.blg,.idx,.ilg,.ind,.out,.pdf ```
[ -0.20721036195755005, 0.13359719514846802, 0.6350302696228027, 0.04371456056833267, 0.2528154253959656, 0.12419763952493668, 0.06122351065278053, 0.05717972666025162, 0.04068636894226074, -0.5287764072418213, -0.4170975685119629, 0.9128164649009705, -0.2896890342235565, 0.13227301836013794...
I'm creating a document viewing web application. You log in and it takes you to a screen where you have all your docs listed on the left. I want to make it so that when you roll over a document a preview of the document shows up on the right. From there you can click on it for a full view and printing capabilities. I'm...
[ 0.639241635799408, 0.2632480263710022, 0.48872339725494385, 0.07878011465072632, 0.04476633295416832, -0.14752671122550964, -0.3078741729259491, 0.3442957401275635, -0.20070648193359375, -0.8937868475914001, 0.2275284230709076, 0.6019583940505981, 0.12299102544784546, 0.4760463833808899, ...
on a server. I'm working in asp.net 3.5 mvc in visual studios 2008. For creating the PDF preview, first have a look at some other discussions on the subject on StackOverflow: * [How can I take preview of documents?](https://stackoverflow.com/questions/175528/how-can-i-take-preview-of-documents) * [Get a preview jpeg o...
[ 0.23802219331264496, -0.013071773573756218, 0.4388328492641449, 0.02902374044060707, -0.41741809248924255, -0.032314732670784, 0.1400887817144394, -0.1311606466770172, -0.1713489294052124, -0.7495667338371277, 0.03250209987163544, 0.514435887336731, 0.015368486754596233, -0.105122782289981...
be out of date, easily broken by new releases and its legality is murky. * Install GhostScript on the server and request rendered thumbnails of any page from it. I did a small project that you will find on the [Developer Express forums](http://community.devexpress.com/forums/p/55582/188207.aspx#188207) as an attachm...
[ 0.5242536664009094, 0.2135305404663086, 0.32189521193504333, 0.03907500579953194, 0.006548854522407055, -0.5008089542388916, 0.7451592683792114, 0.43185195326805115, -0.21139532327651978, -0.797232449054718, 0.06101801246404648, 0.36060217022895813, -0.15429744124412537, 0.1059606224298477...
I want to show a list of Customer objects in a WPF ItemsControl. I've created a DataTemplate for this: ``` <DataTemplate DataType="{x:Type myNameSpace:Customer}"> <StackPanel Orientation="Horizontal" Margin="10"> <CheckBox"></CheckBox> <TextBlock Text="{Binding Path=Number}"></TextB...
[ -0.063352070748806, -0.057789575308561325, 0.6710690259933472, -0.23379574716091156, -0.12092480063438416, 0.15945595502853394, -0.19864949584007263, -0.5878428220748901, -0.32627809047698975, -0.7272754311561584, 0.09666222333908081, 0.27985382080078125, -0.060384318232536316, -0.12479419...
</DataTemplate> ``` So what I want basically is a simple list (with checkboxes) that contains NUMBER - NAME. Isn't there a way in which I can concat the number and name directly in the Binding part? There is StringFormat property (in .NET 3.5 SP1), which you probably can use. And usefull WPF binding cheat sheat can f...
[ 0.2844228148460388, 0.07434367388486862, 0.42641857266426086, -0.036603230983018875, -0.2502649426460266, -0.3594222068786621, 0.05793122202157974, -0.55906742811203, -0.14844971895217896, -0.4834209382534027, 0.21705882251262665, 0.6566182374954224, -0.2401275634765625, 0.0477096773684024...
<Binding Path="Number"/> <Binding Path="Name"/> </MultiBinding> </TextBlock.Text> </TextBlock> ``` I had to start format string with space, otherwise Visual Studio wouldn't build, but I think you will find way get around it :) **Edit** The space is needed in the StringFormat to keep the parser from ...
[ -0.16489659249782562, 0.05310920625925064, 0.4661026895046234, -0.0401378832757473, -0.37239399552345276, -0.17648433148860931, 0.2751791179180145, -0.8429542183876038, -0.26164335012435913, -0.727027952671051, -0.09499332308769226, 0.3348560631275177, -0.4546946585178375, 0.09358515590429...
Most OO languages prefix their interface names with a capital I, why does Java not do this? What was the rationale for not following this convention? To demonstrate what I mean, if I wanted to have a User interface and a User implementation I'd have two choices in Java: > 1. Class = User, Interface = UserInterface > ...
[ -0.14537744224071503, 0.14730939269065857, 0.273742139339447, -0.17568449676036835, -0.31849634647369385, 0.1581554263830185, -0.05780930444598198, 0.18244034051895142, -0.11491582542657852, -0.7013311386108398, 0.03645208850502968, 0.3076632618904114, -0.32854610681533813, -0.127490013837...
and most IOC containers use DynamicProxies extensively. These two things together mean that you'll have lots of interfaces with a single POJO implementation. So, I guess my question boils down to: **"Is it worth following the broader Interface naming convention especially in light of where Java Frameworks seem to be h...
[ 0.21929094195365906, -0.03868779540061951, -0.27768608927726746, 0.020259328186511993, -0.3932115435600281, -0.3672463595867157, 0.1898258775472641, 0.10689139366149902, -0.2491992861032486, -0.7101771235466003, -0.06834114342927933, 0.45991095900535583, -0.22162210941314697, -0.1763649880...
an interface a coding convention with prefix I implies renaming all the occurrences of the class --- not good!
[ 0.29402434825897217, 0.32875755429267883, -0.07116878032684326, 0.0532967671751976, -0.17527879774570465, 0.0477028489112854, 0.7236000299453735, 0.08257594704627991, 0.09742098301649094, -0.5380038619041443, -0.4873940944671631, 0.29577934741973877, -0.31274500489234924, 0.248205110430717...
I have a small code example I want to include in the Javadoc comment for a method. ``` /** * -- ex: looping through List of Map objects -- * <code> * for (int i = 0; i < list.size(); i++) { * Map map = (Map)list.get(i); * System.out.println(map.get("wordID")); * System.out.println(map.get("word")...
[ -0.1790269911289215, -0.12040378153324127, 0.3829211890697479, -0.037648629397153854, -0.2046588957309723, 0.10639630258083344, 0.2555556297302246, -0.38417330384254456, -0.3133886158466339, -0.8378210067749023, -0.01172507181763649, 0.1765650510787964, -0.3258112072944641, 0.0645905211567...
hard to read. ``` -- ex: looping through List of Map objects -- for (int i = 0; i list.size(); i++) { Map map = (Map)list.get(i); System.out.println(map.get("wordID")); System.out.println(map.get("word")); } Parameters query - - select statement Returns: List of Map objects ``` I guess I am wrong in assuming the...
[ 0.0121743343770504, -0.05849699303507805, 0.34208086133003235, 0.009714070707559586, -0.3360672891139984, -0.036241333931684494, 0.29812517762184143, -0.2711491882801056, -0.3748345971107483, -0.9213061928749084, -0.3291231393814087, 0.5378527641296387, -0.38420218229293823, 0.145306959748...
s; * System.out.println(s); * } * </pre> ``` Will give correct HTML output: ``` Set<String> s; System.out.println(s); ``` While omitting the `@code` block (or using a `<code>` tag) will result in HTML like this: ``` Set s; System.out.println(s); ``` For reference, a full list of tag descriptions available in Ja...
[ 0.048992738127708435, 0.0052353087812662125, 0.5405290126800537, -0.2933995723724365, 0.05585617199540138, -0.07756055891513824, 0.3537357747554779, -0.4187314212322235, -0.3520268201828003, -0.7327114343643188, -0.6643089652061462, 0.5654281973838806, -0.49938222765922546, -0.120498649775...
Installing third-party components always take a long time specially if you have large ones, but also it take more time if you setup the environment in more than one computer. And I'm thinking to add them to the Version Control (Subversion), so it will be always easy to checkout the project with all it's required compo...
[ 0.759537398815155, 0.00939291249960661, 0.02208258956670761, 0.20178480446338654, 0.13799051940441132, -0.42486587166786194, 0.01399108674377203, -0.06314735114574432, -0.27167242765426636, -0.5774073004722595, -0.3366363048553467, 0.6436097621917725, -0.14651285111904144, -0.1215626746416...
have the source, then we just keep the most recent binaries (bpl, dll, whatever) in the repository, and include installation / usage instructions in a setup document. It looks like this: ``` \root \third_party_stuff \vendor1 --we *do* have the source for this \src \bin \ve...
[ 0.5232604146003723, 0.1916445940732956, 0.23424187302589417, 0.10527198761701584, 0.42690014839172363, -0.5007879734039307, -0.2755401134490967, 0.029209865257143974, 0.00912146270275116, -0.6547126770019531, -0.412173867225647, 0.3188827633857727, -0.1003977581858635, -0.06474518775939941...
\src \bin \vendor3 --we don't have the source for this one \bin \our_stuff \project1 \src \bin \project2 \src
[ 0.12149596959352493, 0.27707013487815857, 0.213586688041687, 0.20611976087093353, 0.3535810708999634, -0.2827788293361664, 0.12192557007074356, 0.14717306196689606, 0.1590469628572464, -0.43575841188430786, -0.1802629828453064, -0.02633182518184185, -0.2288026362657547, 0.02598191425204277...
\bin ```
[ 0.044324278831481934, 0.5481187701225281, 0.018293937668204308, -0.2545742690563202, 0.22833582758903503, -0.09000322222709656, 0.2705720365047455, 0.06436290591955185, 0.15005704760551453, -0.8835774660110474, -0.43222010135650635, 0.20989249646663666, -0.37017640471458435, 0.228972390294...
In many languages (and places) there is a nice practice of creating local scopes by creating a block like [this](https://stackoverflow.com/questions/541705/is-iftrue-a-good-idea-in-c). ``` void foo() { ... Do some stuff ... if(TRUE) { char a; int b; ... Do some more stuff .....
[ 0.5717492699623108, 0.21748052537441254, 0.15957772731781006, -0.1608843058347702, 0.11558935791254044, -0.5350003838539124, 0.49050840735435486, -0.3239489793777466, -0.30665865540504456, -0.17248797416687012, -0.21706146001815796, 0.6046299338340759, -0.522680401802063, -0.02978619001805...
indent error and without using some sort of [*if True:*](https://stackoverflow.com/questions/541705/is-iftrue-a-good-idea-in-c) tricks In Python, scoping is of three types : global, local and class. You can create specialized 'scope' dictionaries to pass to exec / eval(). In addition you can use nested scopes (defining...
[ 0.16457612812519073, -0.16233552992343903, -0.03654806688427925, 0.0057232677936553955, -0.07084422558546066, -0.18050727248191833, 0.3196009695529938, -0.029947277158498764, -0.274156779050827, -0.40253496170043945, -0.050375912338495255, 0.4780791401863098, -0.47224003076553345, -0.42252...
something like if-true tricks (Which you say you want to avoid). In that case, I think the best bet is to refactor your code into multiple functions, or use a single scope. I think that the available scopes in Python are sufficient to cover every eventuality, so local scoping shouldn't really be necessary.
[ 0.4230620861053467, -0.07384426146745682, -0.17126885056495667, 0.13461188971996307, -0.02091948129236698, -0.12788653373718262, 0.448062002658844, -0.15768566727638245, -0.18570969998836517, -0.3503292500972748, -0.10839687287807465, 0.7157935500144958, -0.27916690707206726, -0.3636985123...
I would like to open external URLs from within my Flash project. I typically use something like this: ``` getURL("javascript:newwin=window.open('http://someurl.com','','');"); ``` But, if Javascript isn't available (in cases where the SWF is not embedded in HTML) then this will fail. How can I detect whether Javascr...
[ 0.4122214615345001, 0.34816595911979675, 0.3476851284503937, -0.34372785687446594, -0.3609521985054016, -0.29709160327911377, 0.3790102005004883, 0.08432473242282867, -0.04627901688218117, -0.641152560710907, -0.22965706884860992, 0.4232052266597748, -0.3267900049686432, 0.1308997422456741...
consistently. If there is the ability to call JavaScript, that means that there has to be a window property, which will have a non-null location.href. ExternalInterface is also available for both AS2 and AS3.
[ -0.08110552281141281, -0.11678106337785721, 0.4874138832092285, -0.14454145729541779, -0.2792545557022095, 0.29296597838401794, 0.5809604525566101, -0.18061809241771698, -0.3072648048400879, -0.6290370225906372, -0.27849602699279785, 0.6458777189254761, -0.23226365447044373, -0.23413026332...
I am doing something where I realised I wanted to count how many `/`s I could find in a string, and then it struck me, that there were several ways to do it, but couldn't decide on what the best (or easiest) was. At the moment I'm going with something like: ``` string source = "/once/upon/a/time/"; int count = source...
[ 0.5150566101074219, -0.03251165151596069, 0.2733509838581085, -0.35091298818588257, -0.12764354050159454, -0.02203746885061264, 0.25000128149986267, -0.07386362552642822, -0.21914558112621307, -0.45851293206214905, 0.10301607847213745, 0.3872084617614746, -0.2896198034286499, 0.35811385512...
> 1**, ``` string haystack = "/once/upon/a/time"; string needle = "/"; int needleCount = ( haystack.Length - haystack.Replace(needle,"").Length ) / needle.Length; ``` If you're using .NET 3.5 you can do this in a one-liner with LINQ: ``` int count = source.Count(f => f == '/'); ``` If you don't want to use LINQ yo...
[ 0.2927547097206116, -0.43029528856277466, 0.5030015110969543, -0.06071782857179642, 0.0865510031580925, 0.03120986744761467, 0.2874925434589386, -0.6493891477584839, -0.2927223742008209, -0.6182296276092529, 0.3704569935798645, 0.6183208227157593, -0.019015302881598473, -0.1022761985659599...
source.Split = 17s > > foreach ([from bobwienholt's answer](https://stackoverflow.com/a/541976/662581)) = 10s (The times are for 50,000,000 iterations so you're unlikely to notice much difference in the real world.)
[ 0.1813334971666336, -0.14697039127349854, 0.41826242208480835, -0.11461551487445831, 0.41162189841270447, 0.2947149872779846, 0.6104305982589722, -0.3135477602481842, -0.4099487066268921, -0.3977482318878174, -0.08282157778739929, 0.1379999965429306, 0.09255034476518631, 0.1228475719690322...
I was asking myself if there are examples online which covers how you can for instance detect shapes in touch gestures. for example a rectangle or a circle (or more complex a heart .. ) or determine the speed of swiping (over time ( like i'm swiping my iphone against 50mph )) For very simple gestures (horizontal vs. ...
[ 0.10538381338119507, -0.13890910148620605, 0.6316440105438232, -0.15685312449932098, -0.322547048330307, 0.3284761309623718, 0.1517440527677536, -0.36420801281929016, -0.02226199582219124, -0.6062374711036682, 0.2750478982925415, 0.08794897794723511, -0.06110035255551338, -0.27982425689697...
a vertical swipe (keep in mind that dx could be zero, so the above won't yield valid results for all x and y). If you're interested in speed, pythagoras can help. The length of the distance travelled between two touches is: ``` l = sqrt(dx*dx + dy*dy) ``` If the touches happened at times t1 and t2, the speed is: `...
[ -0.10053671151399612, -0.41092175245285034, 0.8833554983139038, 0.07728160917758942, -0.39546138048171997, 0.595975399017334, 0.3029729127883911, -0.3836459815502167, -0.35977238416671753, -0.6976253986358643, 0.04262564331293106, 0.3227789103984833, 0.08239754289388657, -0.286384493112564...
stopped. For more complex figures, it's probably better to work with an idealized shape. One could consider a polygon shape as the ideal, and check if a range of touches 1. don't have too high a distance to their closest point on the pologyon's outline, and 2. all touches follow the same direction along the polygon's...
[ 0.0005824288236908615, -0.1388106495141983, 0.5184780955314636, 0.158023864030838, -0.16532953083515167, 0.22143498063087463, 0.13986244797706604, -0.22995427250862122, -0.33173611760139465, -0.6665815711021423, -0.0912269800901413, 0.03931664675474167, 0.12783001363277435, -0.050324726849...
How can I automatically replace all C style comments (`/* comment */`) by C++ style comments (`// comment`)? This has to be done automatically in several files. Any solution is okay, as long as it works. This tool does the job: <https://github.com/cenit/jburkardt/tree/master/recomment> > RECOMMENT is a C++ program w...
[ 0.34523695707321167, 0.22177883982658386, 0.35790762305259705, 0.012073283083736897, -0.16654016077518463, 0.22289404273033142, 0.008427213877439499, -0.4497449994087219, -0.12232419848442078, -0.8123155236244202, -0.20649008452892303, 0.3285938501358032, -0.16348481178283691, 0.0091676004...
begin or end > comments), to handle lines of code > with trailing comments, and to handle > comments with trailing bits of code.
[ -0.16434819996356964, -0.11854995787143707, 0.349310964345932, 0.12219539284706116, -0.374727338552475, 0.09945669025182724, 0.2089981883764267, -0.29918015003204346, -0.10152139514684677, -0.47620031237602234, -0.6384337544441223, 0.01033179834485054, -0.17633596062660217, -0.018505858257...
Is there a way to format a date to have mmm:ss instead of hh:mm:ss? Basically, 7:15:28 should show up instead as 435:28 instead. The SimpleDateFormat class does not support this format is there one that does or will I have to implement a variation myself? You'll have to implement it yourself, but you should bear in mi...
[ 0.39234459400177, -0.041546523571014404, 0.8097620010375977, -0.06081297621130943, 0.13070617616176605, -0.042828891426324844, 0.31895267963409424, -0.25552648305892944, -0.4317990839481354, -0.6430253982543945, 0.0348140187561512, 0.24422675371170044, -0.15967091917991638, 0.1919279098510...
How can I "delete" a file which is already in the SVN repository without deleting it from my file system? TortoiseSVN or command line instructions are welcome. The following works, but I am hoping for something nicer: 1. Copy the file to some other location outside the repository. 2. SVN Delete the file. 3. Commit 4...
[ 0.3447267413139343, 0.16101422905921936, 0.536506175994873, 0.005108199082314968, 0.15329435467720032, -0.2834061086177826, 0.5968508124351501, 0.001769163180142641, -0.5141527652740479, -0.5681204199790955, -0.47345149517059326, 0.8476422429084778, -0.01056415494531393, 0.3139833211898803...
So I am utilizing CollectionBase as an inherited class for custom collections. I am utilizing CollectionBase through an abstract class so that I don't repeated knowledge (following the DRY principle). The abstract class is defined as a generic class also. Here is how I am implementing my class: ``` public abstract c...
[ 0.18341359496116638, -0.0660293847322464, 0.09583503007888794, 0.15404604375362396, -0.1653028279542923, -0.09123889356851578, 0.037471894174814224, -0.11500246077775955, -0.21070848405361176, -0.46052634716033936, 0.11928519606590271, 0.5165401697158813, -0.31955790519714355, 0.2765929698...
this: ``` public override bool Equals(object obj) { if (obj is C) { GenericCollectionBase<T, C> collB = obj as GenericCollectionBase<T, C>; if (this.Count == collB.Count) {
[ -0.19852817058563232, 0.028188008815050125, 0.7612057328224182, -0.24157151579856873, 0.10089217871427536, -0.22487673163414001, 0.2871543765068054, -0.3661763668060303, 0.00607229582965374, -0.14248895645141602, -0.27778875827789307, 0.4998493194580078, -0.5416419506072998, 0.183532372117...
for (int i = 0; i < this.Count; ++i) { if (!this[i].Equals(collB[i])) return false; }
[ -0.08515757322311401, -0.07355380803346634, 0.5357629656791687, -0.4921158254146576, 0.15138332545757294, 0.006445569451898336, 0.5040364861488342, -0.6025719046592712, 0.11675378680229187, -0.33820152282714844, -0.10269788652658463, 0.4428360164165497, -0.49759185314178467, -0.01252545975...
return true; } } return false; } ``` Am I trying to accomplish too much with my abstract, or doing this the correct way? EDIT: This is written for .Net 2.0 and do not have access to 3.5 to utilize things like LINQ I don't believe you are trying to accomplish too much. If an abstract c...
[ 0.3581240475177765, 0.0016413928242400289, -0.056412871927022934, -0.05954666808247566, -0.02285539172589779, -0.5205606818199158, 0.5138679146766663, 0.10183139890432358, 0.13015787303447723, -0.4566819965839386, 0.30943745374679565, 0.6394221186637878, -0.4968961477279663, -0.25524961948...
at all, or other methods which define functionality, then they would be interfaces. The only thing I would change is to use `EqualityComparer<T>` instead of equals for the comparison of `this[i]` and `collB[i]`.
[ 0.09719733148813248, -0.06120933219790459, 0.14789949357509613, 0.04088243097066879, -0.09545015543699265, -0.2463637739419937, 0.149485781788826, -0.16738702356815338, 0.12576130032539368, -0.7219151258468628, 0.08532199263572693, 0.6395238637924194, -0.3522598445415497, -0.03089629113674...
I was thinking on ways that functional languages could be more tied directly to their hardware and was wondering about any hardware implementations of garbage collection. This would speed things up significantly as the hardware itself would implicitly handle all collection, rather than the runtime of some environment....
[ 0.17184583842754364, 0.007519146893173456, 0.12548038363456726, 0.36811238527297974, -0.26905983686447144, -0.13851234316825867, 0.2822321355342865, 0.22838443517684937, -0.3473930060863495, -0.3760914206504822, 0.06720557808876038, 0.4018109142780304, -0.5865098237991333, -0.0443988107144...
pauses when doing stack scans and marking the heap. Azul Systems has done this: <http://www.azulsystems.com/products/compute_appliance.htm> They gave a presentation at JavaOne on how their hardware modifications allowed for completely pauseless GC. Another improvement would be hardware assisted write barriers for kee...
[ 0.014859695918858051, -0.28160858154296875, 0.33812960982322693, -0.08806692063808441, -0.2739458382129669, 0.05167899653315544, 0.28338512778282166, 0.3142774999141693, -0.505823016166687, -0.5662173628807068, -0.24230754375457764, 0.19046923518180847, -0.03279980644583702, 0.039585877209...
you have (small) overhead even when you're not GCing. If you can reduce this, you'd reduce both the pause times neccessary for GCing, and overall program performance.
[ 0.28789547085762024, 0.02631441131234169, -0.09655900299549103, 0.2720915973186493, 0.23411309719085693, 0.11771885305643082, -0.027760569006204605, -0.20544232428073883, -0.22539231181144714, -0.9878093600273132, -0.0009455266990698874, 0.7197604179382324, 0.13590693473815918, -0.34868383...
I have a query to a database on a seperate thread and on the return I invoke a threadsafe call. But an exception is created - what am I doing wrong? Note I also populate the list view but have left it out for clarity ``` private void ThreadSafeListView() { if (this.listView1.InvokeRequired) { ...
[ 0.1433749794960022, -0.26134976744651794, 0.23049476742744446, -0.13996194303035736, 0.12137606739997864, -0.2267833948135376, 0.5695136785507202, -0.23301184177398682, -0.13640223443508148, -0.44049522280693054, 0.049717050045728683, 0.5686114430427551, -0.24871864914894104, 0.41406321525...
ThreadSafe Operation d = new ThreadSafeOperation(ThreadSafeListView); this.Invoke(d ); } catch { } } else { listView1.Columns[0].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
[ -0.02703246846795082, -0.5240842700004578, 0.5538873076438904, -0.2614591121673584, 0.20345495641231537, 0.21125198900699615, 0.39655330777168274, -0.5096373558044434, -0.28833597898483276, -0.4377356171607971, -0.23613931238651276, 0.5764487385749817, -0.42848244309425354, 0.3194544315338...
listView1.Columns[1].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); listView1.Columns[2].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); listView1.Columns[3].AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); listView1.Columns[4].AutoResize(ColumnHeaderAutoResizeStyle...
[ 0.16493622958660126, -0.05464940518140793, 0.5752933621406555, -0.32031384110450745, -0.07590406388044357, -0.12665955722332, 0.519982099533081, -0.5526768565177917, -0.30080321431159973, -0.41881078481674194, -0.26950690150260925, 0.6714815497398376, -0.5825426578521729, 0.056654490530490...
the form, so it should work, but without more information about the exception this is my only guess.
[ 0.6460311412811279, 0.1924993395805359, 0.21882034838199615, 0.12299051880836487, 0.3551017642021179, -0.044260866940021515, 0.20483572781085968, -0.11786497384309769, -0.03691466152667999, -0.34134745597839355, 0.1882486492395401, 0.323600172996521, -0.028856515884399414, -0.2460065186023...
I put a TLinkLabel on my form, filled it in with a caption including a valid HTML link, and got some nice blue underlined text. When I ran the program, I expected it to invoke Firefox (my default browser) and open the link automatically. Apparently that's not the case. The helpfile says I have to code this in an OnLin...
[ 0.36047348380088806, -0.1417730450630188, 0.35635897517204285, -0.19403481483459473, -0.11251915991306305, -0.25695574283599854, 0.44694533944129944, 0.37490010261535645, -0.05977494642138481, -0.6663512587547302, -0.08714307844638824, 0.4970739781856537, -0.5393931269645691, 0.30443897843...
calls, and should works in your case. ``` procedure ShellOpen(const Url: string; const Params: string = ''); begin ShellAPI.ShellExecute(0, 'Open', PChar(Url), PChar(Params), nil, SW_SHOWNORMAL); end; ``` In your code you should call this ``` procedure TForm1.LinkLabelClick(Sender: TObject); begin ShellOpen(Lin...
[ -0.09530923515558243, -0.05555073171854019, 0.6151254177093506, -0.26710882782936096, 0.3889186978340149, 0.0028763709124177694, 0.4295705556869507, -0.22650949656963348, -0.04847200587391853, -0.32607412338256836, -0.5695241689682007, 0.9058900475502014, -0.5715550780296326, 0.11695589870...
I switched from NAnt to using Python to write build automation scripts. I am curious if whether any build frameworks worth using that are similar to Make, Ant, and NAnt, but, instead, are Python-based. For example, Ruby has Rake. What about Python? Try [SCons](http://www.scons.org/) Or are you looking for something j...
[ 0.46550676226615906, -0.2601556181907654, -0.34224942326545715, 0.03452135622501373, -0.26440808176994324, -0.03638802096247673, 0.34239277243614197, 0.23420846462249756, -0.5173547863960266, -0.44467082619667053, 0.24354049563407898, 0.577298641204834, -0.17786411941051483, -0.25874182581...
I want to backup a table saving the copy in the same database with another name. I want to do it programatically using .NET 2.0 (preferably C#). Someone can point me what should I do? Just send this query to the server: ``` SELECT * INTO [BackupTable] FROM [OriginalTable] ``` This will create the backup table from s...
[ 0.38081660866737366, 0.2503572702407837, 0.06728219240903854, -0.0572073832154274, 0.20531781017780304, -0.1405361443758011, 0.13730546832084656, -0.001476347097195685, -0.2822083830833435, -0.7479153871536255, -0.045205872505903244, 0.7569653391838074, -0.30339205265045166, -0.08373650163...
the database, that's a different issue.
[ 0.4103914797306061, 0.2076636403799057, -0.11880382895469666, 0.3484407365322113, -0.034425947815179825, -0.03872165456414223, -0.27700331807136536, 0.1763053685426712, -0.36350253224372864, -0.2646080553531647, 0.2602238357067108, 0.6010071635246277, 0.09050193428993225, 0.072692319750785...
I have a view which would like to be notified about all the currently opened editors. Where can I add a listener to achieve this? I was expecting WorkbenchPage or EditorManager to have some appropriate listener registry, but I couldn't find it. Does your view uses a [`org.eclipse.ui.IPartListener2`](http://help.eclips...
[ -0.2094760537147522, 0.11523272097110748, 0.49915623664855957, -0.42059069871902466, -0.477178156375885, 0.007512517739087343, 0.1954108029603958, -0.34878143668174744, -0.06544318795204163, -0.7138201594352722, -0.18071921169757843, 0.7387991547584534, -0.5323631167411804, 0.0150770209729...
/** * @see org.eclipse.ui.IPartListener2#partOpened(org.eclipse.ui.IWorkbenchPartReference) */ public void partOpened(IWorkbenchPartReference partRef) { view.handlePartVisible(partRef.getPart(false)); } ``` --- Now if your `ViewPart` directly implements an `IPartListener2`, it can register ...
[ -0.029604315757751465, 0.12472592294216156, 0.68339604139328, -0.18946439027786255, -0.06866826862096786, 0.22972211241722107, 0.3516049087047577, -0.3692711889743805, -0.19803790748119354, -0.5768425464630127, -0.09290928393602371, 0.21209266781806946, -0.32135552167892456, 0.218596577644...
+ "empty.selection.text")); final IWorkbenchWindow workbenchWindow = getSite().getWorkbenchWindow(); workbenchWindow.getPartService().addPartListener(this); [...] ```
[ -0.0704815462231636, 0.14585566520690918, 0.549899160861969, -0.2600633203983307, 0.07915383577346802, 0.01949775591492653, 0.4332726299762726, -0.5485191345214844, -0.1366433948278427, -0.5737037658691406, -0.6801064610481262, 0.41297516226768494, -0.3553861379623413, 0.1017903983592987, ...
My (C#, .NET 3.5) application generates files and, in addition to raising events that can be caught and reacted to, I want to display the target folder to the user in a form. The file-list is being shown within the same form as other information. I'm using an instance of the `WebBrowser` control (`System.Windows.Forms...
[ 0.48406413197517395, 0.08159221708774567, 0.6074705123901367, -0.10526739060878754, 0.08757489174604416, -0.22264491021633148, 0.1480674147605896, -0.033144284039735794, 0.009329953230917454, -1.0318641662597656, -0.1466526836156845, 0.4469760060310364, -0.2651633024215698, 0.0456698834896...
Details view. The user can get to this via a right-click, context menu, but I'd like it to come up automatically. I'd rather not have to build my own TreeView, DataGridView or whatever; the WebBrowser control does all the updating and re-sorting and whatnot 'for free'. Is there a better way? A different control to us...
[ 0.10459092259407043, -0.4274475872516632, 0.5032986998558044, 0.39516207575798035, -0.2791217565536499, -0.20992057025432587, 0.2366839349269867, -0.021880652755498886, -0.12457559257745743, -0.6029568910598755, 0.18288572132587433, 0.7716369032859802, -0.2971915304660797, 0.36567902565002...
for your needs. It's just a wrapper over ActiveX component. You should check [this codeproject article](http://www.codeproject.com/KB/miscctrl/FileBrowser.aspx). It contains an implementation of file explorer. There are few more samples of file browser: [one](http://www.c-sharpcorner.com/UploadFile/satisharveti/e...
[ -0.18330813944339752, -0.16517098248004913, 0.2032928466796875, -0.030538689345121384, -0.1431877464056015, 0.2936023771762848, 0.2897971570491791, -0.3644576966762543, -0.16096174716949463, -0.6176213026046753, 0.15483303368091583, 0.5733733773231506, -0.17240212857723236, 0.0491929352283...
I am trying to set a variable that I will refer to in a custom JSP tag, so I have something like this in my JSP: ``` <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <c:set var="path" value="test"/> ``` However, I am getting this error when The JSP runs: ``` java.lang.AbstractMethodError: javax.serv...
[ 0.3303490877151489, 0.22514083981513977, 0.33941027522087097, -0.18160869181156158, -0.038745392113924026, -0.07514860481023788, 0.5587607622146606, -0.07523585855960846, -0.17812861502170563, -0.6096422672271729, 0.06626041233539581, 0.6109778881072998, -0.4766578674316406, -0.03354704752...
I pull data from a table in a database and assign it as a datasource to a listbox. If there is a blank item in the listbox, it shows up as something like this: 1. All 2. 3. Red 4. Green 5. Blue What is the best way to remove the blank in the listbox. If there is a blank, it is always in the second position. I was go...
[ 0.2751990258693695, 0.015876436606049538, 0.3803977370262146, 0.17449325323104858, 0.059608928859233856, 0.07250997424125671, -0.2124166041612625, 0.11377813667058945, -0.2608868479728699, -0.7012726068496704, -0.07462283968925476, 0.1457212269306183, -0.33866721391677856, -0.0457050204277...
your datasource before you bind it to the listbox. How you do this depends on where your data's coming from and how much control you have over it. You could add a view to the database that only returns non-blank items; if you're using LINQ to SQL you could modify your query so that it only returns non-blank items; yo...
[ 0.21031725406646729, -0.14074242115020752, 0.6414624452590942, 0.45226284861564636, 0.2312307208776474, 0.016639919951558113, -0.0591183640062809, -0.22019009292125702, -0.21305987238883972, -0.5613383650779724, 0.03415429964661598, 0.572267472743988, 0.054093215614557266, 0.16052339971065...
I have two tables involved in this query I need to create, and I'm not exactly sure how to join these two tables in order to update. I have a ITEM and CONSUMER\_ITEMS table. The ITEM table has a distinct code for each item and a UPC code. I need to concatenate a string with the ITEM.UPC\_CODE to CONSUMER\_ITEMS.NEW\_I...
[ 0.14017736911773682, 0.11654426157474518, 0.7861960530281067, -0.059071820229291916, -0.10056222975254059, 0.6942144632339478, -0.2673361003398895, -0.5440942049026489, -0.2738266885280609, -0.671487033367157, 0.2806079685688019, 0.5697818398475647, -0.17005619406700134, 0.4691257476806640...
to be updated. Sounds like you want: ``` UPDATE consumer_items ci SET new_item_code = (SELECT 'string' || item.upc_code FROM item WHERE item.item_code = ci.item_code ) WHERE ci.item_code IN ('a','b','c'); ``` Alternatively, assuming
[ 0.40388980507850647, -0.10985542833805084, 0.6825617551803589, -0.10582879185676575, 0.3206065893173218, 0.09550955146551132, -0.23914633691310883, -0.2259642630815506, -0.26751193404197693, -0.7532232999801636, -0.2334252893924713, 0.7398495078086853, -0.36607083678245544, 0.2778851091861...
there is a foreign key relationship between the tables and that consumer\_items has a primary key, this should work: ``` UPDATE (SELECT ci.id, ci.new_item_code, item.upc_code FROM consumer_items ci JOIN item ON item.item_code = ci.item_code WHERE ci.item_code IN ('a','b','c') )...
[ 0.2336398959159851, 0.10537032783031464, 0.7833265066146851, -0.07535393536090851, 0.1151900514960289, 0.24982891976833344, -0.20998354256153107, -0.46510645747184753, -0.2653806805610657, -0.6985543370246887, -0.35679009556770325, 0.569845974445343, -0.22828064858913422, 0.456136226654052...