text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Objects/DTO/etc** ``` public New(string txt, string val) { mText = txt; mValue = val; } ``` **this base class should also implement ILookupDTO - because this will force you to make public a Text and Value property that are used by the user object in this example** ``` public interface ILookupDTO { ...
[ 0.12602131068706512, -0.2773785889148712, 0.508944034576416, -0.13397283852100372, -0.13225425779819489, 0.012280209921300411, 0.214758038520813, -0.2842200696468353, -0.04676663503050804, -0.7988054156303406, -0.4785279333591461, 0.8484858870506287, -0.6323363780975342, 0.0040139472112059...
get; set; } } ``` **the below is the def for LookupCollection used in the bind method at the top of this answer** ``` public class LookupCollection { private readonly IEnumerable<ILookupDTO> dtos; private ILookupList mList; public LookupCollection(IEnumerable<ILookupDTO> dtos) {...
[ -0.276661217212677, -0.24352239072322845, 0.4760037660598755, -0.2586718201637268, 0.09086759388446808, 0.1255432367324829, 0.27596768736839294, -0.32621532678604126, -0.008310114033520222, -0.7974345684051514, -0.5904332995414734, 0.6092951893806458, -0.5036665201187134, -0.23387631773948...
mList = list; mList.Clear(); foreach (ILookupDTO dto in dtos) { mList.Add(dto); } } public int SelectedIndex { get { return mList.SelectedIndex; } set { mList.SelectedIndex = value; } } public
[ -0.22278918325901031, -0.68121737241745, 0.32457226514816284, -0.1722295880317688, 0.06486345082521439, 0.5707911252975464, 0.03688914701342583, -0.35187065601348877, -0.17520305514335632, -0.7310908436775208, -0.4641883075237274, 0.395285427570343, -0.4513707756996155, -0.3080387711524963...
string SelectedValue { get { return mList.SelectedValue; } set { mList.SelectedValue = value; } } } ``` **below is the interface for ILookupList - used in the implementation of each UI specific control (see the web and wpf examples below)** ``` public interface ILookupList { void Add(I...
[ -0.04574966803193092, -0.7849067449569702, 0.49136853218078613, 0.04601094499230385, -0.05729345232248306, 0.2504884898662567, -0.19214271008968353, -0.3431721031665802, -0.07524660229682922, -0.7029950618743896, -0.2679993808269501, 0.4702865779399872, -0.5558217167854309, -0.167331606149...
set; } string SelectedValue { get; set; } } ``` **now in your code-behind you will need to do something like this in your read only property for the view** Return New WebLookupList(ddlUsers) **here is an implementation for a web specific ddl** ``` public class WebLookupList : ILo...
[ 0.0918804332613945, -0.4328896701335907, 0.5077731013298035, 0.01747060753405094, -0.07273919880390167, -0.1326749175786972, -0.05237611383199692, -0.17804422974586487, -0.26916810870170593, -0.8641035556793213, -0.18394523859024048, 0.5421619415283203, -0.4306635856628418, 0.0140259815379...
this.listControl = listControl; } public void Clear() { listControl.Items.Clear(); } public void Add(Interfaces.ILookupDTO dto) { listControl.Items.Add(new ListItem(dto.Text, dto.Value)); } public int Count() { return listControl.Items.Count; ...
[ 0.07491125911474228, -0.3584554195404053, 0.5967093110084534, -0.2642393708229065, -0.048993032425642014, 0.18310798704624176, 0.18352113664150238, -0.3703712522983551, -0.4182390868663788, -0.5488322973251343, -0.6766729950904846, 0.553656280040741, -0.7033825516700745, 0.1221968084573745...
int SelectedIndex { get { return listControl.SelectedIndex; } set { listControl.SelectedIndex = value; } } public string SelectedValue { get { return listControl.SelectedValue; } set { listControl.SelectedValue = value; } } } ``` **here is the implementation for a ...
[ -0.02567349188029766, -0.7394006848335266, 0.32273563742637634, 0.06051337346434593, -0.16791072487831116, -0.02519664168357849, -0.016881123185157776, -0.3405124247074127, -0.16600827872753143, -0.7506309151649475, -0.23942196369171143, 0.4957961142063141, -0.25923117995262146, 0.11622379...
public class WPFLookupList : ILookupList { private readonly ComboBox combobox; public WPFLookupList(ComboBox combobox) { this.combobox = combobox; } public void Add(Interfaces.ILookupDTO dto) { ComboBoxItem item = new ComboBoxItem(); item.Content = dto.Text; ...
[ -0.08304213732481003, -0.485603392124176, 0.3497631549835205, 0.05812584608793259, -0.107497438788414, 0.19566544890403748, 0.18132324516773224, -0.5772122740745544, -0.13882629573345184, -0.9138596057891846, -0.6342408061027527, 0.6536083221435547, -0.5466347336769104, -0.0030747517012059...
} public void Clear() { combobox.Items.Clear(); } public int Count() { return combobox.Items.Count; } public int SelectedIndex { get { return combobox.SelectedIndex; } set { combobox.SelectedIndex = value; } }
[ 0.18750692903995514, -0.8135520815849304, 0.09238937497138977, 0.09490755945444107, 0.2507036328315735, 0.2717649042606354, 0.08662359416484833, -0.31891128420829773, -0.16156421601772308, -0.5121608972549438, -0.4048938453197479, 0.43975117802619934, -0.2561683654785156, 0.161470383405685...
public string SelectedValue { get { return combobox.SelectedValue.Tag; } set { combobox.SelectedValue.Tag = value; } } } ``` **You only need 1 of these at a time, but I thought showing both would help make clear what we are abstracting away** Because this was such a huge answer, I could post ...
[ 0.1854161024093628, -0.5619755387306213, 0.09940016269683838, 0.19674775004386902, 0.025903066620230675, -0.00694000581279397, 0.04680895060300827, -0.3702497184276581, 0.011935659684240818, -0.8105754852294922, -0.1350887268781662, 0.323813796043396, -0.284934401512146, 0.0484324693679809...
Could anyone explain to my why this is not working? In the database we have Employees with an IdEmployee column. We also have some tables with foreign keys to that one. Say we have something like this: ``` var employee = dataContext.Employees.First(<some predicate>); var someEntity = dataContext.SomeEntities.First(...
[ 0.11699648201465607, 0.03864767774939537, -0.007315737660974264, 0.07678546011447906, -0.08357386291027069, 0.02795860916376114, 0.0919494777917862, 0.39023876190185547, -0.2836657762527466, -0.5536960363388062, -0.03735865280032158, 0.41829022765159607, -0.0223594568669796, 0.338639408349...
but what I believe is happening is that when you're looking at `someEntity.SomeThings`, `SomeThings` is a collection of `Employee` entities. Thus, the `t` in your lambda expression will refer to an `Employee` object, giving you the ability to compare their properties. Try the following ``` var something = someEntity....
[ 0.2556475102901459, 0.04558480158448219, -0.20450079441070557, -0.04236634075641632, -0.13778075575828552, -0.0793837383389473, 0.1307041049003601, 0.18260037899017334, -0.29308274388313293, -0.35808315873146057, -0.1792125552892685, 0.3847365975379944, -0.32945287227630615, 0.196329161524...
are able to do the job anyway) data calls.
[ 0.3383847773075104, -0.13331905007362366, 0.3642627000808716, 0.35883277654647827, 0.30546215176582336, -0.1261867731809616, 0.3377316892147064, -0.2685665190219879, -0.04855464771389961, -0.2698099911212921, -0.47266867756843567, 0.7754901051521301, -0.09855356067419052, -0.52231037616729...
jQuery currently has `.next(filter)` and `.nextAll(filter)` but I need something that fits in the middle of these - effectively, a `.nextWhile(filter)` that repeatedly does next until the filter is no longer true, then stops (rather than continuing to the end). To demonstrate this, the following is some simplified HTM...
[ -0.2161669284105301, -0.3326585590839386, 0.6223348379135132, -0.09166904538869858, -0.19871258735656738, -0.20735712349414825, -0.019295625388622284, 0.1326959729194641, -0.17322315275669098, -0.8573787808418274, -0.26029518246650696, 0.11381552368402481, -0.18238823115825653, -0.00750291...
</thead> <tbody> <tr class="x"><td>a <button>Show/Hide</button></td></tr> <tr class="x y"><td>a1</td></tr> <tr class="x y"><td>a2</td></tr> <tr class="z"><td>b</td></tr> <tr class="z"><td>c</td></tr> <tr class="x"><td>d <button>Show/Hide</button></td></tr>...
[ -0.095955491065979, 0.06634065508842468, 0.004069365561008453, -0.15274228155612946, -0.27142778038978577, 0.29164066910743713, 0.1038268655538559, -0.6488702893257141, 0.32108598947525024, -0.585447371006012, -0.31929242610931396, 0.577353835105896, -0.19520120322704315, -0.10460431873798...
<tr class="x y"><td>d3</td></tr> <tr class="z"><td>e</td></tr> <tr class="x"><td>f</td></tr> <tr class="x"><td>g <button>Show/Hide</button></td></tr> <tr class="x y"><td>g1</td></tr> <tr class="x y"><td>g2</td></tr> </tbody> </table> ``` And against this some Ja...
[ -0.1134115532040596, -0.3496582806110382, 0.39267390966415405, 0.06675563752651215, 0.033832304179668427, 0.28011471033096313, 0.03908854350447655, -0.566444456577301, -0.06110771372914314, -0.61873459815979, -0.43001633882522583, 0.5173880457878113, -0.4782814085483551, -0.136711820960044...
$j('tr.y').hide(); $j('tr.x button').click( toggleRelated ); } function toggleRelated() { // Only toggles one row // $j(this).parents('tr').next('.y').toggle(); // Toggles unrelated ones also $j(this).parents('tr').nextAll('.y').toggle(); // Not currently a...
[ -0.07107564806938171, -0.19851960241794586, 0.7135485410690308, -0.08457690477371216, 0.46622389554977417, 0.22800830006599426, 0.1529630571603775, -0.043290264904499054, -0.23614339530467987, -0.5643194317817688, -0.24785202741622925, 0.5460417866706848, -0.4093065857887268, 0.32274225354...
an easy way to implement this `nextWhile` construct? Ideally this needs to be achieved without modifying the current HTML. In jQuery you can create `nextWhile()` equivalent using [`nextUntil()`](http://api.jquery.com/nextUntil/) method and [`:not`](http://api.jquery.com/not-selector/) selector. Simply put, *`while (co...
[ -0.14800810813903809, -0.3132916986942291, 0.3823963701725006, -0.05161815881729126, 0.010902033187448978, 0.06022043153643608, -0.17035210132598877, -0.3709825277328491, 0.010832333005964756, -1.0697553157806396, -0.015249728225171566, 0.5819291472434998, -0.053357936441898346, -0.0826189...
is roughly equivalent to *`.nextWhile(".child")`* and selects the three `.child` elements: ``` $("#test .parent:first").nextUntil(":not(.child)"); ```
[ -0.34850263595581055, -0.350625604391098, 0.03261346369981766, -0.16317357122898102, 0.48518475890159607, 0.47496047616004944, 0.017681574448943138, -0.20741906762123108, 0.2877991497516632, -0.4639698266983032, -0.3432137072086334, 0.2831432819366455, 0.08024115860462189, 0.11795687675476...
Does c# have its own version of the java "synchronized" keyword? I.e. in java it can be specified either to a function, an object or a block of code, like so: ``` public synchronized void doImportantStuff() { // dangerous code goes here. } ``` or ``` public void doImportantStuff() { // trivial stuff syn...
[ 0.5982885360717773, -0.20132817327976227, 0.3442993760108948, 0.13447768986225128, 0.2022838443517685, -0.6055731177330017, 0.21407918632030487, -0.01438521035015583, -0.37259337306022644, 0.20312775671482086, -0.08399952948093414, 0.6317701935768127, -0.6624222993850708, -0.15646019577980...
void SomeMethod() {/* code */} ``` This can also be used on accessors (properties and events): ``` private int i; public int SomeProperty { [MethodImpl(MethodImplOptions.Synchronized)] get { return i; } [MethodImpl(MethodImplOptions.Synchronized)] set { i = value; } } ``` Note that field-like event...
[ 0.19863197207450867, -0.24868489801883698, 0.25214189291000366, 0.13123948872089386, 0.17298009991645813, -0.2147471159696579, 0.2215072512626648, -0.15775372087955475, -0.3615039885044098, -0.16220994293689728, -0.22122354805469513, 0.5874089002609253, -0.3822404742240906, 0.1375097185373...
void SomeMethod() { lock(syncLock) { /* code */ } } ``` Note that for field-like events, the locking implementation is dependent on the compiler; in older Microsoft compilers it is a `lock(this)` / `lock(Type)` - however, [in more recent compilers it uses `Interlocked`](http://marcgravell.blogspot.co.uk/2010/03/r...
[ 0.0860307514667511, -0.2321169227361679, 0.16599467396736145, -0.13522648811340332, -0.2152373343706131, -0.18031156063079834, 0.38770759105682373, -0.05932474508881569, -0.4474043846130371, -0.24354659020900726, -0.26379624009132385, 0.3479055166244507, -0.5057857632637024, -0.00163215398...
We have a really strange problem. My userid is a farm administrator and it a site collection admin on the site in question. If I add a new group (to manage permissions), once I click the OK button on the create group page I get thrown to the **Error: Access Denied** page. Here's the strange part, the ***group gets c...
[ 0.5805823802947998, 0.19879962503910065, 0.21894462406635284, 0.17098020017147064, -0.08379798382520676, 0.012534336186945438, 0.3007158935070038, 0.2381354123353958, -0.23143842816352844, -0.39812150597572327, 0.2656381130218506, 0.1978108137845993, -0.2170797735452652, 0.5893962979316711...
again**. It appears to be only happening on this one site (and it's sub-sites). There is nothing in any of the sharepoint logs or the event logs. It has got to be a permission problem but I don't know what. **EDIT ------------------------------------ EDIT** After some more research I found [this BLOG post](http://...
[ 0.37565308809280396, 0.023290490731596947, 0.36731818318367004, -0.0194491408765316, -0.26792407035827637, -0.5106402039527893, 0.6802713871002197, 0.23794259130954742, -0.2414565086364746, -0.6291447877883911, -0.1207248717546463, 0.26079675555229187, -0.18932384252548218, 0.2765675187110...
concerned with the consequences of making errors. It’s a big deal to patch an embedded device. Not so much for a desktop app. **Waterfallish development** is necessary in the embedded world because you are generally building hardware at the same time as the software. You need to know as soon as possible how much memor...
[ 0.8498252034187317, -0.0824180319905281, 0.164020836353302, 0.2190622240304947, 0.24795928597450256, 0.025396771728992462, 0.2934587895870209, -0.20239681005477905, -0.3614138960838318, -0.8991216421127319, 0.006918938364833593, 0.802423894405365, 0.22063426673412323, -0.2742774188518524, ...
mess up then the software is going to have to work around any short-comings. Not usually an ideal situation. As for the **tools**, that is largely based on what the supplier provides and any biases of the developers. On some projects I have used XP Embedded and got pretty much everything that the desktop developer get...
[ 0.633266270160675, 0.4137570559978485, 0.14359402656555176, 0.17463389039039612, 0.24336931109428406, 0.23789849877357483, 0.38856250047683716, 0.037740614265203476, -0.2776474356651306, -0.7379302382469177, -0.007304785773158073, 0.7569770812988281, 0.0318036749958992, 0.01161642745137214...
about 15 seconds to open the IDE and press the compile button. **Automated Unit Testing** No reason why this shouldn't be done, but only part of the code can truly be automatically tested because the other part is either hardware dependent or has some other dependencies like timing. So you can't really tell if the co...
[ 0.4338238835334778, 0.03383079916238785, 0.31901419162750244, 0.24025148153305054, -0.05345431715250015, -0.04627996310591698, 0.13797761499881744, -0.2504526972770691, 0.11198385804891586, -0.738046407699585, -0.11354419589042664, 0.8523861169815063, 0.43847760558128357, -0.38766497373580...
add all the bells and whistles to the IDE which isn't even their product.
[ 0.7930850982666016, 0.41107553243637085, 0.2853066623210907, 0.004833010956645012, -0.07157360762357712, -0.02566448785364628, 0.41160714626312256, 0.22038696706295013, -0.004737312905490398, -0.16818936169147491, 0.2957051992416382, 0.43554168939590454, -0.07880709320306778, 0.32360500097...
I want my application to save the password encrypted in a database or in a text file. How can I do that assuming that the database or text file can be open by anyone? **Duplicate** > [Encrypting/Hashing plain text passwords in database](https://stackoverflow.com/questions/287517/encrypting-hashing-plain-text-password...
[ 0.2747372090816498, 0.35283783078193665, 0.03269819915294647, 0.11180596798658371, 0.14413148164749146, -0.17259570956230164, 0.3289601504802704, 0.18093444406986237, -0.5287519693374634, -0.7599206566810608, 0.020039191469550133, 0.49459731578826904, -0.2826820909976959, 0.127956166863441...
If you're going to do that, save time by sticking with plain text. From [Enough With The Rainbow Tables: What You Need To Know About Secure Password Schemes](http://www.matasano.com/log/958/enough-with-the-rainbow-tables-what-you-need-to-know-about-secure-password-schemes/): > Rainbow tables are easy to beat. For > e...
[ 0.007435601204633713, -0.15236198902130127, 0.2818426787853241, 0.12679755687713623, -0.21887868642807007, -0.05436810106039047, 0.3087645173072815, -0.2747909128665924, -0.4802249073982239, -0.5376409292221069, -0.11024259775876999, 0.43090587854385376, -0.11807470768690109, -0.0594397149...
“variants” of each hash, and instead > of 300 billion rainbow table entries, > you need quadrillions. The nonce in > this scheme is called a “salt”. > > > Cool, huh? Yeah, and Unix crypt —- > almost the lowest common denominator > in security systems —- has had this > feature since 1976. If this is news to > y...
[ 0.004809016827493906, -0.0657128095626831, 0.4531746506690979, 0.03208133578300476, -0.2612946629524231, -0.2928917109966278, 0.22380739450454712, 0.1456189900636673, -0.4719385504722595, -0.30090752243995667, 0.14504216611385345, 0.35798653960227966, -0.22518587112426758, 0.31792682409286...
computers get faster.
[ 0.4138410687446594, 0.2606823444366455, 0.13094811141490936, 0.6444522738456726, 0.13106568157672882, -0.3398531973361969, -0.04716780036687851, 0.7074200510978699, -0.23494863510131836, -0.9621546268463135, -0.027573419734835625, 0.4352349042892456, 0.17547355592250824, 0.0280912574380636...
I'm working on a simple copy tool to copy files off digital cameras. I've written the file copy code, I've got everything hooked up nicely. The issue I have seems to be with the FolderBrowserDialog. In Vista (I haven't checked XP yet), I can browse to the directories on the camera. However the FolderBrowserDialog will...
[ 0.437488853931427, 0.3966168761253357, 0.6317461729049683, -0.16515690088272095, 0.24961157143115997, -0.31883710622787476, 0.14864696562290192, 0.2844402492046356, -0.42195776104927063, -0.5231822729110718, 0.1276378184556961, 0.7754819393157959, -0.24289940297603607, 0.38434189558029175,...
works fine from a valid path name, but not off the camera... Does anyone have any suggestions to get around this? **Update** To confirm oefe's question the path is actually displayed as: ``` Computer\[Camera Name]\Removable storage\AnotherDirectory\ ``` ChulioMartinez's suggestion of using SHBrowseForFolder does ...
[ 0.3033314049243927, 0.2608746886253357, 0.5139554142951965, 0.022287381812930107, 0.2556770145893097, -0.3042428195476532, 0.29914501309394836, -0.20351138710975647, -0.3293561339378357, -0.661601185798645, -0.16150952875614166, 0.7809829115867615, -0.31596213579177856, -0.0336849056184291...
How to free up memory and destroy Array, is it ok to do just like this ``` myarr = null myarr = new Array ``` is all the old content of myarr now freed from memory? Assuming you haven't got another reference to the array in another variable somewhere the arrays memory will be recovered when the GC gets to it.
[ 0.14650718867778778, 0.19372929632663727, 0.04144744575023651, 0.14572419226169586, -0.05183089151978493, -0.3317785859107971, 0.33796197175979614, -0.3988375961780548, -0.2950008809566498, -0.2017499804496765, -0.12925246357917786, 0.6457000374794006, -0.5276947021484375, 0.20113132894039...
I have asked this question today already but this time I want to know if I can achieve this via PHP since Javascript wasn't up to it. I have a link to a file on another server. If i provide this link to my users the headers are pushed out to download that file from that server. Is there a way for me to capture those ...
[ 0.5977760553359985, -0.04233676940202713, 0.2711653411388397, 0.29764071106910706, -0.2133650928735733, -0.12806865572929382, 0.05338318645954132, 0.09484592825174332, -0.39258846640586853, -0.6743162870407104, 0.18748384714126587, 0.3308423161506653, -0.20561084151268005, 0.16530141234397...
for any help. You could do this, and you can do it in several ways. 1) (simple) copy the file to your server, and rename it. Point your download links to this copy. 2) (harder) Create a stub php file, called , read the file from the remote server within php, and stream the content to the script output. This will ne...
[ 0.5738381147384644, -0.17016814649105072, 0.1806027591228485, 0.35544049739837646, -0.14632724225521088, -0.3381368815898895, 0.3423399329185486, 0.11659902334213257, -0.10659267753362656, -0.6165914535522461, 0.01237454917281866, 0.5964804291725159, -0.28658580780029297, -0.04434533044695...
I am working with another colleague in C# in VS2005 in a not very complex project. However, we have no version control system, we send each other our last version and copy the changes into our own files. We now have to merge both files (most of the project is a single form file) into a last version of the project. An...
[ 0.43277785181999207, 0.25349903106689453, 0.2770756185054779, 0.05592202767729759, 0.21024763584136963, -0.21002906560897827, 0.1633220613002777, 0.10066071897745132, -0.21088707447052002, -0.6789633631706238, 0.13318218290805817, 0.4162280559539795, 0.0042853388004004955, 0.33227929472923...
use a differencing tool like [WinMerge](http://winmerge.org/) to compare the differences of the 2 files and manually merge the changes that each of you has made into a single file. If you have the common file that you both started with before you each made any changes, then you can use a 3-way merge feature to generat...
[ 0.13989081978797913, -0.15985815227031708, 0.29237037897109985, -0.018941139802336693, 0.1943499892950058, -0.07668478786945343, 0.17403072118759155, -0.18672001361846924, -0.08870977908372879, -0.8792599439620972, -0.05927160382270813, 0.6536742448806763, -0.22944478690624237, 0.079539924...
I want to get all the values associated with a key in Map. For e.g, ``` Map tempMap = new HashMap(); tempMap.put("1","X"); tempMap.put("2","Y"); tempMap.put("3","Z"); tempMap.put("1","ABC"); tempMap.put("2","RR"); tempMap.put("1","RT"); ``` How to retrieve all the values associated with key 1 ? What you can do is th...
[ 0.16611981391906738, -0.11154334247112274, 0.6835706830024719, -0.10266950726509094, 0.1509762704372406, -0.08936547487974167, 0.3335835039615631, -0.5347521305084229, -0.15007911622524261, -0.8334826827049255, -0.33862221240997314, 0.6096196174621582, -0.31135308742523193, 0.0652181431651...
Is it possible to programmatically construct a stack (one or more stack frames) in CPython and start execution at an arbitrary code point? Imagine the following scenario: 1. You have a workflow engine where workflows can be scripted in Python with some constructs (e.g. branching, waiting/joining) that are calls to the...
[ 0.12100086361169815, -0.32923513650894165, -0.14782364666461945, 0.0942460298538208, -0.10747015476226807, -0.10608859360218048, 0.12641002237796783, -0.2454834133386612, -0.22482730448246002, -0.34004130959510803, -0.06154031679034233, 0.3510363698005676, -0.3663456439971924, -0.181683436...
This sets up the listener in the event dispatching engine. 4. The workflow script's state, relevant stack frames including the program counter (or equivalent state) are persisted - as the wait condition could occur days or months later. 5. In the interim, the workflow engine might be stopped and re-started, meaning tha...
[ 0.20320501923561096, -0.05426111817359924, 0.6209696531295776, -0.16082972288131714, 0.05600922182202339, -0.09080220758914948, 0.39810940623283386, -0.3783581554889679, -0.1575920134782791, -0.1335684359073639, -0.4266614317893982, 0.7496028542518616, -0.07290510088205338, 0.1443478316068...
point where the wait service was called. **The Question** Can this be done with an unmodified Python interpreter? Even better, can anyone point me to some documentation that might cover this sort of thing or an example of code that programmatically constructs a stack frame and starts execution somewhere in the middle...
[ 0.36141055822372437, -0.02116364799439907, 0.0982513576745987, 0.18986289203166962, 0.0342017225921154, -0.03194626420736313, 0.21496811509132385, -0.14508095383644104, -0.13037557899951935, -0.3028342127799988, 0.10860008746385574, 0.34125322103500366, -0.003475378267467022, -0.0997847765...
initial investigation, one can get the execution context with `PyThreadState_Get()`. This returns the thread state in a `PyThreadState` (defined in `pystate.h`), which has a reference to the stack frame in `frame`. A stack frame is held in a struct typedef'd to `PyFrameObject`, which is defined in `frameobject.h`. `PyF...
[ -0.009890059009194374, -0.09063176810741425, 0.6248036623001099, -0.01886552944779396, 0.22321155667304993, 0.06493435800075531, 0.13767611980438232, -0.14396382868289948, -0.415907084941864, -0.5450711846351624, -0.246009960770607, 0.21843962371349335, -0.0571259930729866, 0.0801996067166...
many stack frames as necessary and re-start the code. I'd say this means that it is theoretically possible without having to make a modified python interpereter, although it means that the code is still probably going to be fiddly and tightly coupled to specific versions of the interpreter. The three remaining problem...
[ -0.1368521898984909, 0.2509758174419403, 0.04051123186945915, 0.24270281195640564, -0.08443503826856613, -0.054308630526065826, 0.3841613531112671, -0.13242797553539276, -0.2251358926296234, -0.5718700885772705, 0.015946049243211746, 0.9484133124351501, -0.13059930503368378, -0.07764353603...
arbitrary locals. This might be accomplished by reading `__locals__` (which is available from the stack frame) and programatically constructing a call to pickle. However, I don't know what, if any, gotchas there might be here. * Versioning and upgrade of workflows. This is somewhat trickier, as the system is not provid...
[ 0.05433041229844093, -0.09592270106077194, 0.35814207792282104, 0.07540031522512436, -0.08127428591251373, -0.08680128306150436, 0.14512282609939575, 0.07284992188215256, -0.3749403655529022, -0.7583921551704407, 0.03187907859683037, 0.5090996026992798, -0.35254809260368347, 0.053659509867...
This is probably the biggest obstacle if you want to support this capability. **Update 2:** `PyCodeObject` (`code.h`) has a list of addr (`f_lasti`)-> line number mappings in `PyCodeObject.co_lnotab` (correct me if wrong here). This might be used to facilitate a migration process to update workflows to a new version, ...
[ 0.24230167269706726, -0.05387743189930916, 0.33379700779914856, 0.05164195969700813, 0.0781746506690979, -0.08057171106338501, 0.2512367069721222, 0.20141296088695526, -0.6466060876846313, -0.5906887054443359, -0.17302584648132324, 0.26634395122528076, -0.2723535895347595, -0.1290111392736...
whether this will also work with the stack as well. With standard CPython this is complicated by the mixture of C and Python data in the stack. Rebuilding the call stack would require the C stack to be reconstructed at the same time. This really puts it in the too hard basket as it could potentially tightly couple the ...
[ 0.05047941207885742, -0.39479607343673706, -0.14795267581939697, 0.09351672977209091, 0.07860910892486572, -0.1484605371952057, 0.07001262903213501, -0.2404022514820099, -0.25105342268943787, -0.17168471217155457, -0.13177424669265747, 0.6769035458564758, -0.36950477957725525, -0.392013400...
I've been evaluating profilers and memory checking tools for native C++ programs on Windows and all of them want to be installed *and* run with administrator privileges. I rarely log in as admin on my machine. If I need to install something or do something that requires administrative privileges, I use runas and it wor...
[ 0.4852863550186157, 0.2644657492637634, 0.14515964686870575, -0.14674542844295502, -0.26457491517066956, -0.18085016310214996, 0.22489412128925323, -0.004492623265832663, -0.0019180290400981903, -0.6264472603797913, 0.2151285856962204, 0.8272518515586853, -0.18149439990520477, 0.1019058004...
this and I'm slowly coming to the conclusion that profiler-like tools in general do not require administrative access, but stating that you require it is an easy way for the tool makers to avoid all problems related to insufficient privileges. So, I guess they *are* being lazy but also somewhat pragmatic. Correct me ...
[ 0.6876876950263977, 0.32856136560440063, 0.23546800017356873, 0.1261267066001892, -0.09279188513755798, -0.4947779178619385, 0.2921317219734192, 0.05381932854652405, -0.0506664514541626, -0.74100661277771, 0.004591772332787514, 0.6194769144058228, 0.05685121566057205, 0.054439201951026917,...
should be added to that group. The most shocking thing I've discovered is that a lot of developers run all the time with administrative privileges.
[ 0.44334104657173157, 0.11929543316364288, -0.25825822353363037, 0.5561551451683044, 0.2033296674489975, -0.7310591340065002, -0.09787809103727341, 0.03752180188894272, -0.21205778419971466, -0.20275597274303436, -0.003749312600120902, 0.4190351068973541, 0.10481403768062592, 0.151865601539...
Is there a function to extract the extension from a filename? Use [`os.path.splitext`](https://docs.python.org/3/library/os.path.html#os.path.splitext): ``` >>> import os >>> filename, file_extension = os.path.splitext('/path/to/somefile.ext') >>> filename '/path/to/somefile' >>> file_extension '.ext' ``` Unlike mos...
[ -0.010668097995221615, -0.31466713547706604, 0.4427988827228546, -0.19297631084918976, 0.2080191820859909, 0.01904550939798355, -0.163625568151474, -0.2842475473880768, -0.3862472474575043, -0.35446012020111084, -0.38523319363594055, 0.6565149426460266, -0.25235307216644287, 0.003243397688...
I've begun playing a bit with implementing an IQueryable<T> datatype to query using LINQ. For example I've made a couple of functions like this (It is just a temporary detail that the extension method is not for the specific IQueryable implementation): ``` public static IQueryable<T> Pow<T>(this IQueryable<T> values, ...
[ -0.003502929350361228, -0.0732078030705452, 0.48250612616539, 0.0629715621471405, -0.03707440197467804, 0.11728860437870026, 0.09082972258329391, -0.10078702867031097, 0.023304834961891174, -0.6043574213981628, -0.2827661633491516, 0.6339370012283325, -0.4144132435321808, -0.16325452923774...
IQueryable<T> values, Expression<Func<T,T>> map) { Expression e = ... return values.Provider.CreateQuery<T>(e); } ``` How should I complete this method body? It seems to me that you are inventing [Select](http://msdn.microsoft.com/en-us/library/bb534638.aspx). I don't see the difference between your Map and ...
[ -0.3872968852519989, -0.12735895812511444, 0.573512077331543, 0.03216586261987686, -0.3193236291408539, 0.17162667214870453, 0.03116207756102085, -0.4251042604446411, 0.06738222390413284, -0.788404107093811, -0.15301445126533508, 0.21238327026367188, -0.3379076421260834, 0.1485608220100402...
I am working with ASP.NET 3.5, VB.NET, and I am trying to validate some inputs through a regular expression. My expression is: ``` ^[a-zA-Z'_''-''/'' ''\''@''&''.'',''ç''Ç''ö''Ö''I''ı''i''İ''ğ''Ğ''ş''Ş''ü''Ü'\s\d]{1,50}$ ``` And it works for all the special characters I included except for the "**-**". It just doesn...
[ -0.0220156442373991, 0.24174554646015167, 0.5809221863746643, -0.1225249320268631, -0.04572422057390213, 0.1097271740436554, 0.19576197862625122, -0.14936508238315582, -0.010551169514656067, -0.7324759364128113, -0.21244467794895172, 0.6372056603431702, -0.3096112310886383, -0.011065743863...
backslashes either. See the "^" marks above.
[ 0.1848343014717102, -0.12360028922557831, 0.24770784378051758, 0.1903933882713318, -0.24881693720817566, -0.07100556790828705, 0.3532768487930298, 0.5968555212020874, -0.5810678005218506, -0.4059583246707916, -0.1774592399597168, 0.6947858929634094, -0.16343799233436584, -0.129520356655120...
I love [Prototype](http://www.prototypejs.org/api) but it doesn't come with any widgets. In particular, it provides nothing for window/dialog creation. I've tried the [Prototype Window](http://prototype-window.xilinus.com/) add-on library but found it unreliable and it hasn't been maintained for a long time. Anyone h...
[ 0.3838924467563629, 0.3405516743659973, -0.009634304791688919, 0.02393246628344059, -0.14172057807445526, 0.1474764198064804, 0.3343925178050995, 0.2718742787837982, 0.13392838835716248, -1.0318632125854492, 0.3061322867870331, 0.060271985828876495, -0.38242626190185547, 0.0534380972385406...
as JQuery. For a really simple dialog, checkout this code: <http://snippets.dzone.com/posts/show/3411> Very minimal and simple - just what I wanted. The code went through a few modifications. Here's the final version that worked for me: ``` /* * Adapted from http://snippets.dzone.com/posts/show/3411 */ var Dialo...
[ 0.016046816483139992, -0.20325809717178345, 0.5959416627883911, -0.2402624785900116, -0.12578962743282318, -0.1162528321146965, 0.4848228096961975, -0.43177247047424316, -0.05034943297505379, -0.5616574883460999, 0.04262683913111687, 0.3987305760383606, -0.4445560872554779, -0.007708994671...
= Element.getDimensions(this.overlay); this.dialog_box.style.left = ((b_dims.width/2) - (e_dims.width/2)) + 'px'; this.dialog_box.style.top = this.getScrollTop() + ((this.winHeight() - (e_dims.width/2))/2) + 'px'; this.dialog_box.style.zIndex = this.overlay.style.zIndex + 1; }, createOverlay: function...
[ -0.03670996427536011, -0.10419677942991257, 1.1240314245224, -0.27885740995407104, 0.4513716399669647, -0.11331814527511597, 0.13017091155052185, -0.6380979418754578, -0.0907110646367073, -0.43464887142181396, -0.6298971772193909, 0.6698551177978516, -0.47743138670921326, -0.15604145824909...
left: 0, zIndex: 90, width: '100%', backgroundColor: '#000', display: 'none' }); document.body.insertBefore(this.overlay, document.body.childNodes[0]); } }, moveDialogBox: function(where) { Element.remove(this.dialog_box); if (where == 'back') this.dial...
[ -0.22351300716400146, -0.13770444691181183, 0.6963468194007874, -0.39958134293556213, 0.5580393075942993, 0.43036943674087524, 0.0810617133975029, -0.1954832524061203, 0.09493634849786758, -0.5420389771461487, -0.5624257922172546, 0.36343133449554443, -0.18062540888786316, 0.34925538301467...
}, show: function(optHeight/* optionally override the derived height, which often seems to be short. */) { this.overlay.style.height = this.winHeight()+'px'; this.moveDialogBox('out'); this.overlay.onclick = this.hide.bind(this); this.selectBoxes('hide'); new Effect.Appear(this.overlay, {durati...
[ -0.07947038114070892, -0.32475849986076355, 1.021722435951233, -0.6434973478317261, 0.15699638426303864, 0.1586889773607254, 0.417378306388855, -0.699937641620636, -0.08607582747936249, -0.6793593764305115, -0.5493942499160767, 0.4538145065307617, -0.4130920171737671, -0.031135188415646553...
}, getScrollTop: function() { return (window.pageYOffset)?window.pageYOffset:(document.documentElement && document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop; }, persistent_show: function() { this.overlay.style.height = this.winHeight()+'px'; this.moveDialo...
[ -0.15799567103385925, -0.254358172416687, 1.2219436168670654, -0.4584600031375885, 0.1698896735906601, 0.2654363512992859, 0.43053632974624634, -0.4519962668418884, -0.27788788080215454, -0.49750015139579773, -0.548820972442627, 0.4720374345779419, -0.3345460295677185, 0.3077405095100403, ...
$A(this.dialog_box.getElementsByTagName('input')).each( function(e) { if (e.type != 'submit' && e.type != 'button') e.value = ''; }); }, selectBoxes: function(what) { $A(document.getElementsByTagName('select')).each(function(select) { Element[what](select); }); if (what == 'hide') ...
[ -0.07813657820224762, -0.18008118867874146, 0.3325001895427704, -0.5313858389854431, 0.1296161711215973, 0.2540561556816101, 0.33206719160079956, -0.5632962584495544, 0.08675540238618851, -0.3294500410556793, -0.5804222226142883, 0.4113848805427551, -0.6081247925758362, 0.0761113315820694,...
return document.documentElement.clientWidth; return document.getElementsByTagName('body')[0].clientWidth }, winHeight: function() { if (typeof window.innerHeight != 'undefined') return window.innerHeight if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientHe...
[ -0.18681661784648895, 0.0037524602375924587, 0.7012712955474854, -0.36328625679016113, 0.2910797894001007, -0.010674968361854553, 0.30226564407348633, -0.528113842010498, -0.00883507076650858, -0.6099876761436462, -0.6540716886520386, 0.770885169506073, -0.2204435169696808, 0.1845180541276...
What Flash player version is required by Flex 3 app ? Requirement seems to be HTML WRAPPER/ACTIONSCRIPT compiler setting inside FLEX development environment; what can I choose there to allow maximum compatibility with old flash players? Will v8 player work? For a really simple dialog, checkout this code: <http://snipp...
[ 0.32405611872673035, 0.10384306311607361, 0.3719530701637268, -0.24937739968299866, -0.09779923409223557, -0.03502718359231949, 0.07270113378763199, -0.4966399371623993, -0.047819070518016815, -0.5506965517997742, 0.24431011080741882, 0.7699828743934631, -0.5968303680419922, -0.16471487283...
this.show.bind(this); this.dialog_box.persistent_show = this.persistent_show.bind(this); this.dialog_box.hide = this.hide.bind(this); this.parent_element = this.dialog_box.parentNode; this.dialog_box.style.position = "absolute"; var e_dims = Element.getDimensions(this.dialog_box); var b_dims ...
[ -0.11376257240772247, -0.25709018111228943, 1.1772786378860474, -0.4431300461292267, 0.3885919451713562, -0.05747262388467789, 0.3976801037788391, -0.3763466775417328, -0.041163451969623566, -0.5528452396392822, -0.4357483983039856, 0.8300860524177551, -0.5309814214706421, 0.24749171733856...
this.overlay = document.createElement('div'); this.overlay.id = 'dialog_overlay'; Object.extend(this.overlay.style, { position: 'absolute', top: 0, left: 0, zIndex: 90, width: '100%', backgroundColor: '#000', display: 'none' }); document.bo...
[ -0.01327419187873602, 0.07517154514789581, 0.8459369540214539, -0.0207303948700428, 0.6198669075965881, 0.16028912365436554, 0.048717692494392395, -0.3470047116279602, 0.073440782725811, -0.7643496990203857, -0.4018057882785797, 0.4017317295074463, -0.2964690923690796, 0.21209660172462463,...
moveDialogBox: function(where) { Element.remove(this.dialog_box); if (where == 'back') this.dialog_box = this.parent_element.appendChild(this.dialog_box); else this.dialog_box = this.overlay.parentNode.insertBefore(this.dialog_box, this.overlay); }, show: function(optHeight/* optionally ove...
[ -0.3366648852825165, -0.3768167793750763, 0.9548512697219849, -0.43884268403053284, 0.11787701398134232, 0.5672016143798828, 0.03358761966228485, -0.4312136471271515, -0.13795404136180878, -0.671390175819397, -0.3834647536277771, 0.1171141043305397, -0.29262471199035645, 0.1478929817676544...
var e_dims = Element.getDimensions(this.dialog_box); this.dialog_box.style.left = (this.winWidth() - e_dims.width)/2 + 'px'; var h = optHeight || (e_dims.height + 200); this.dialog_box.style.top = this.getScrollTop() + (this.winHeight() - h/2)/2 + 'px'; }, getScrollTop: function() { return (windo...
[ -0.16299088299274445, -0.35142621397972107, 1.1421098709106445, -0.3919762372970581, 0.3570695221424103, 0.09448810666799545, 0.4933067560195923, -0.6886181831359863, -0.1624600738286972, -0.6002381443977356, -0.7753368020057678, 0.7786670327186584, -0.4529760479927063, -0.0821681097149849...
this.dialog_box.style.left = (this.winWidth()/2 - e_dims.width/2) + 'px'; }, hide: function() { this.selectBoxes('show'); new Effect.Fade(this.overlay, {duration: 0.1}); this.dialog_box.style.display = 'none'; this.moveDialogBox('back'); $A(this.dialog_box.getElementsByTagName('input')).each( f...
[ 0.15055999159812927, -0.31239280104637146, 0.957830548286438, -0.48781195282936096, 0.09071826189756393, 0.15245182812213898, 0.16545560956001282, -0.6510758399963379, -0.07104647904634476, -0.5374413728713989, -0.5414775609970093, 0.3463883101940155, -0.567282497882843, 0.2127182483673095...
winWidth: function() { if (typeof window.innerWidth != 'undefined') return window.innerWidth; if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) return document.documentElement.clientWidth; ...
[ -0.29153597354888916, -0.16351185739040375, 0.6796661019325256, -0.3260008990764618, 0.1543813943862915, 0.08094867318868637, 0.35354065895080566, -0.6075283885002136, 0.1428706794977188, -0.5659182071685791, -0.6591857671737671, 0.8936496376991272, -0.17739030718803406, 0.0352075472474098...
} }); ```
[ 0.05535417050123215, 0.22359678149223328, 0.33292123675346375, -0.44429904222488403, 0.4482058882713318, -0.16275274753570557, 0.18889392912387848, 0.2862910032272339, 0.3227475583553314, -0.38386330008506775, -0.35699695348739624, 0.9355558753013611, -0.4717769920825958, 0.204942822456359...
How should I read any header in PHP? For example the custom header: `X-Requested-With`. **IF**: you only need a single header, instead of *all* headers, the quickest method is: ``` <?php // Replace XXXXXX_XXXX with the name of the header you need in UPPERCASE (and with '-' replaced by '_') $headerStringValue = $_SERV...
[ 0.25927144289016724, 0.030126042664051056, 0.5340185165405273, -0.04925569146871567, -0.3503439128398895, -0.37181857228279114, 0.26407721638679504, -0.46889492869377136, -0.12647348642349243, -0.5459279417991638, -0.1386297047138214, 0.39791205525398254, -0.1870897114276886, 0.10015477985...
foreach($_SERVER as $key => $value) { if (substr($key, 0, 5) <> 'HTTP_') { continue; } $header = str_replace(' ', '-', ucwords(str_replace('_', ' ', strtolower(substr($key, 5))))); $headers[$header] = $value; } return $headers; } $headers = getRequestHeaders(); fore...
[ -0.09683872759342194, 0.318200945854187, 0.8032946586608887, -0.6321607232093811, 0.15975363552570343, 0.1836278736591339, 0.41927462816238403, -0.6749811768531799, 0.03770654648542404, -0.46734103560447693, -0.6488585472106934, 0.5177526473999023, -0.29531019926071167, 0.1128101572394371,...
platform edition~~ Alias of `apache_request_headers()` [apache\_response\_headers()](http://www.php.net/manual/en/function.apache-response-headers.php) - Fetch all HTTP response headers. [headers\_list()](http://www.php.net/manual/en/function.headers-list.php) - Fetch a list of headers to be sent.
[ -0.25239473581314087, -0.5440851449966431, 0.6023804545402527, 0.1506156623363495, -0.1966848373413086, -0.07722093909978867, 0.1649029701948166, -0.17975032329559326, 0.10394716262817383, -0.6433225870132446, -0.4881184995174408, 0.3932191729545593, -0.006237486843019724, -0.2067046910524...
I'm having problems using the Html.DropDownList helper on a MVC RC1 form. In the controller class, I create a SelectList like this ``` SelectList selectList = new SelectList(db.SiteAreas, "AreaId", "AreaName"); ViewData["AreaId"] = selectList; ``` or like this ``` IEnumerable<SelectListItem> areaList = from a...
[ -0.033670127391815186, -0.1726343184709549, 0.902641236782074, -0.35736083984375, 0.1283530592918396, -0.13373342156410217, 0.32210248708724976, -0.39491716027259827, -0.052882399410009384, -0.9566841721534729, -0.307513952255249, 0.5859779119491577, -0.28611040115356445, 0.265780955553054...
{ %> <label for="sitearea">Site Area:</label> <span class="hint">The menu option to be highlighted when the page is open </span> <br /> <%= Html.DropDownList("sitearea", (SelectList)ViewData["AreaId"], "Select Area Id")%> <%= Html.ValidationMessage("sitearea") %> <br /> <br /> <input type="submi...
[ -0.0497392974793911, -0.0324116013944149, 0.7752018570899963, -0.23594167828559875, -0.28005173802375793, 0.015543326735496521, 0.30767759680747986, -0.5119205713272095, -0.11055098474025726, -0.48346319794654846, -0.2704962193965912, 0.33561500906944275, -0.28729888796806335, -0.180310949...
code on this drop down list to tell me I haven't chosen an option. Instead, (after attaching the MVC source code to my project), I find I'm getting an ArgumentNullException in selectextensions.cs. ``` $exception {"Value cannot be null.\r\nParameter name: selectList"} System.Exception {System.ArgumentNullException} ...
[ -0.3783796429634094, -0.09642375260591507, 0.7023511528968811, -0.25412091612815857, 0.10085450112819672, 0.0707731693983078, 0.3771902918815613, -0.3202512264251709, -0.14790314435958862, -0.4618586003780365, -0.3391880691051483, 0.5658133029937744, -0.357141375541687, 0.2289958894252777,...
null) { throw new ArgumentNullException("selectList"); } .. rest of method .. ``` Now all I've done is upgrade the code from MVC beta 1 to RC1 and suddenly this has turned up. I've seen references to this SelectInternal method before, but no concrete resolution. So can anyone help me figure out why this er...
[ 0.110911525785923, 0.06536433100700378, 0.5353386402130127, -0.2155156433582306, 0.0686667189002037, -0.07200538367033005, 0.3720253109931946, -0.05733552947640419, -0.3141424059867859, -0.5930821299552917, -0.048145778477191925, 0.7639933824539185, -0.52928626537323, 0.4624362289905548, ...
current request + 1 (i.e the post back).
[ -0.2996993064880371, -0.3391450345516205, 0.9651786088943481, 0.07208435982465744, -0.09505375474691391, 0.038506921380758286, 0.08900073170661926, -0.1740211844444275, -0.08219851553440094, -0.39138832688331604, -0.43900397419929504, -0.10317927598953247, -0.22283439338207245, 0.267298430...
sorry for asking this, but i'm runnin' out of ideas i have this table: ``` [id] [pid] [vid] 1 4 6844 1 5 6743 2 3 855 2 6 888 ... ``` how to i query this eg.table to get the following result: ``` [id] [pid]
[ 0.014874032698571682, 0.4922725558280945, 0.3275403082370758, 0.14642030000686646, 0.1719444990158081, 0.10323671251535416, -0.002116600051522255, -0.177977055311203, -0.08137006312608719, -0.6507948637008667, 0.11912856251001358, 0.04912552610039711, -0.28320997953414917, 0.25531804561614...
[vid] 1 5 6743 2 6 888 ``` i want to get the highest [pid] for an [id] with the [vid] matching to this [pid] any ideas? i'm using mssql 2008 I would use Common Table Expressions (CTE). This offers lots of possibilities like so: ``` WITH Result (RowNumber, [id], [pid], [vid]) AS ( SE...
[ -0.3293948471546173, 0.07334999740123749, 0.3978133201599121, 0.06259387731552124, -0.18215376138687134, 0.17389588057994843, -0.03821638226509094, -0.39016181230545044, -0.21021975576877594, -0.649787187576294, 0.1104339137673378, 0.4083807170391083, -0.3607513904571533, -0.04115138947963...
ORDER BY [vid] DESC) ,[id] ,[pid] ,[vid] FROM MyTable ) SELECT [id] ,[pid] ,[vid] FROM Result WHERE RowNumber = 1 ```
[ -0.41075199842453003, 0.11531962454319, 0.4175652265548706, -0.21968220174312592, 0.006430772133171558, 0.19819876551628113, 0.1012570858001709, -0.6906922459602356, -0.021268527954816818, -0.6121826171875, -0.2555980384349823, 0.43851810693740845, -0.16854682564735413, 0.31795433163642883...
I am looking for better tools than Wireshark for this. The problem with Wireshark is that it does not format the data layer (which is the only part I am looking at) cleanly for me to compare the different packets and attempt to understand the third party encoding (which is closed source). Specifically, what are some g...
[ 0.9598274827003479, -0.03028447926044464, 0.13401634991168976, 0.3727289140224457, -0.21504007279872894, -0.39330926537513733, -0.29058143496513367, -0.0648510754108429, -0.2908332347869873, -0.6746580004692078, 0.2537428140640259, 0.4090023934841156, -0.255016565322876, 0.0157213490456342...
scripting language that you're comfortable with and start hacking away at the problem. First write up a simple multiway comparison, but as soon as you start finding patterns that you think are significant (or that you think might be) go back and add them to the code--eliminate them from the output, highlight them, tran...
[ 0.375752717256546, 0.1007435992360115, -0.13229863345623016, 0.29740241169929504, -0.03488870710134506, 0.04134567081928253, 0.03192901611328125, 0.21469558775424957, 0.039957694709300995, -0.9445122480392456, -0.05532349646091461, 0.602920413017273, -0.5994398593902588, -0.451072990894317...
encoding. But the comparisons you are going to make are only part of the process you'll be using (which is essentially the scientific method)--you'll also be forming and revising guesses about what various parts of the packets mean, how they interact, etc. No pre-built tool is going to help you there, but a good scrip...
[ 0.5824169516563416, 0.12201327085494995, -0.03383716195821762, 0.5270664095878601, 0.1779729425907135, 0.1818431168794632, -0.11124022305011749, 0.2099212110042572, -0.045357126742601395, -1.051563024520874, -0.03362883999943733, 0.5703887343406677, -0.5071687698364258, -0.4343616664409637...
as you go along. -- MarkusQ P.S. Don't fall into the trap of trying to use C or Java or something to do this. You'll be playing fast and loose, and should have a tool that doesn't require variable declarations, compilation, etc. There will be plenty of opportunity to tighten it up and rewrite it *once you understand ...
[ 0.46880048513412476, -0.14169985055923462, -0.14255672693252563, 0.1652022898197174, -0.09362461417913437, -0.4088524878025055, 0.3866029977798462, 0.3142849802970886, -0.370641827583313, -0.6618782877922058, -0.2347913235425949, 0.7175058126449585, -0.11559629440307617, -0.221707537770271...
When you have a table with a Geometry type field (or Geography), you can call the `Reduce()` function to have the shapes reduced in number of vertices. Works very nicely. However, when sevral of the polygons are adjacent (they share parts of their borders), the reduced polygons do not necessarily do so. Example -----...
[ -0.5412554740905762, 0.2302098423242569, 0.53620445728302, 0.04317226633429527, -0.2880185842514038, 0.5856804251670837, 0.06279110908508301, -0.8270899653434753, -0.5418921709060669, -0.8184829950332642, 0.008619575761258602, 0.12444847077131271, -0.19452717900276184, 0.13696719706058502,...
5.1368992186617106, 52.092494247804545 5.1372492032188495, 52.092884057915427 5.13754907634854, 52.093083867570385 5.137679290259257, 52.093254011290028 5.1378082139755827, 52.093554640188813 5.1380093733314425, 52.094204571098089 5.1384683684445918, 52.094214495038614 5.1384888619650155, 52.093702809136488 5.139079156...
[ -0.20585913956165314, 0.23537282645702362, 0.25529947876930237, 0.3666481673717499, -0.14084041118621826, 0.4115642309188843, 0.23498885333538055, -0.8892345428466797, -0.734266996383667, -0.4724925458431244, 0.2508491575717926, 0.650531530380249, -0.05329182744026184, 0.5626275539398193, ...
5.1386488282587379, 52.090704361908138 5.1396187201607972, 52.09069472597912 5.1397384563460946, 52.090674098813906 5.1398086878471076, 52.090624484543433 5.1397491229489587, 52.090589968811038 5.1397359627815975, 52.090441891923547 5.140045978827402, 52.090305342804641 5.1400443047750741, 52.0902322656475 5.1397292898...
[ -0.2647315263748169, 0.21379034221172333, 0.20964547991752625, 0.30330970883369446, -0.08976177871227264, 0.3355574905872345, 0.2524476647377014, -0.7656148076057434, -0.7458564043045044, -0.42308947443962097, 0.17715486884117126, 0.6388680934906006, -0.0025568734854459763, 0.4884039163589...
5.1372292107739481, 52.087364645209163 5.1372284211684018, 52.0869538753575 5.1372190437554366, 52.085683952551335 5.1372596949804574, 52.085304662585258 5.137269108556211, 52.085084051657141 5.1370588609653955, 52.084904317976907 5.137469710316509, 52.084444417446747 5.1384497439414369, 52.084454428168293 5.1385195698...
[ -0.25021469593048096, 0.230052649974823, 0.25450870394706726, 0.3271383047103882, -0.10094499588012695, 0.2930315136909485, 0.21801882982254028, -0.8425929546356201, -0.6780989766120911, -0.40817365050315857, 0.24739369750022888, 0.6226189732551575, -0.00578573951497674, 0.5404552221298218...
5.1361672168131918, 52.084607248043845 5.1361305358165161, 52.084609296828042 5.13606852098146, 52.084609103156254 5.1360535530839115, 52.084611643842678 5.1360064989442122, 52.08461217648793 5.1359452261162533, 52.084612038685009 5.1359415214974433, 52.084614087827504 5.1358594063203782, 52.084640604443848 5.135551611...
[ -0.30705928802490234, 0.2296253889799118, 0.14767037332057953, 0.3204898536205292, -0.10317479819059372, 0.19023635983467102, 0.22680354118347168, -0.9492723345756531, -0.623187780380249, -0.40219831466674805, 0.1719098836183548, 0.5982945561408997, -0.085623599588871, 0.5063976645469666, ...
5.1309909871779382, 52.084745739819482 5.1308908765204251, 52.084737451048568 5.1308199469931424, 52.084731393493712 5.1307550501078367, 52.084726219235463 5.130682019587562, 52.084717591805187 5.130595849588774, 52.084696356672794 5.1304316397290677, 52.084744368912652 5.1304192959796637))', 1) ); insert into #Shapes ...
[ -0.6492400765419006, 0.29205751419067383, 0.46083277463912964, -0.04276418685913086, -0.031564656645059586, 0.5316218733787537, 0.33611881732940674, -0.848135769367218, -0.49332407116889954, -0.6059516668319702, -0.1013856902718544, 0.34001004695892334, 0.08480824530124664, 0.2067503035068...
52.090624607168138 5.1397489595692605, 52.090674059544682 5.1398083794509937, 52.090694529374325 5.1397384163970843, 52.090704163346672 5.1396187301667995, 52.0906239267189 5.1386488468750029, 52.090564216952771 5.1380289690569043, 52.090701825218275 5.138007998932153, 52.090686907175666 5.1381677433547006, 52.09070497...
[ -0.26918932795524597, 0.2881825864315033, 0.23554997146129608, 0.29694753885269165, -0.17265905439853668, 0.358526349067688, 0.2642486095428467, -0.8715752959251404, -0.7483353614807129, -0.4202837347984314, 0.2023109793663025, 0.6232755184173584, -0.028684820979833603, 0.5032853484153748,...
52.094364419566851 5.1384893088412067, 52.094364145770669 5.1383595434017479, 52.094394268468022 5.1381287302356213, 52.09443390479516 5.138148912037261, 52.094484106955747 5.1381194878988437, 52.094514668919146 5.1380682252347469, 52.094674076435417 5.1382088991813486, 52.095094393635229 5.1384881954232995, 52.0952940...
[ -0.19700931012630463, 0.17829333245754242, 0.1959846466779709, 0.34834030270576477, -0.13828781247138977, 0.373395174741745, 0.22704452276229858, -0.8333207964897156, -0.7609317302703857, -0.4564102292060852, 0.2068539708852768, 0.602916419506073, -0.030451294034719467, 0.538751482963562, ...
52.090953806928624 5.1464084108564867, 52.090854425442245 5.1464496781230418, 52.089684411417693 5.1471287335734814, 52.0895846124041 5.1471190678897267, 52.088994233263378 5.1476095448153067, 52.088864096673205 5.1477386702317744, 52.088784483494237 5.1475289191585034, 52.088713807872537 5.1472491544173726, 52.0886641...
[ -0.20891129970550537, 0.28506049513816833, 0.08623103052377701, 0.31471318006515503, -0.12542472779750824, 0.3724329173564911, 0.3152189254760742, -0.9059953689575195, -0.6956645250320435, -0.3991149961948395, 0.1671920269727707, 0.6146262884140015, -0.11414742469787598, 0.4901233017444610...
('Area C', Geometry::STGeomFromText('POLYGON ((52.081104027922265 5.1258389879949391, 52.081314665614627 5.1259588550310582, 52.082414517994039 5.1266395719721913, 52.082954646321014 5.1270186660112813, 52.083513987367041 5.127549389610067, 52.083794155623764 5.1278395495610312, 52.084174386574887 5.1282589976908639, 5...
[ -0.6588230729103088, 0.23857428133487701, 0.4994964599609375, 0.12202385812997818, -0.14939561486244202, 0.4523487091064453, 0.4398195147514343, -0.7991728782653809, -0.6702632308006287, -0.5812427401542664, -0.28319114446640015, 0.27036330103874207, -0.1049499437212944, 0.2915500104427337...
5.12633884719625, 52.081221418222412 5.1263384295161813, 52.081197269726545 5.126324187265709, 52.081195053295232 5.1263138890499249, 52.081184833077714 5.1262332251062617, 52.0811841667945 5.1261982778874859, 52.081168951815926 5.1261331316782162, 52.081164751928249 5.1260440781433525, 52.081066497950815 5.12593294319...
[ -0.6659472584724426, 0.2899794578552246, 0.4634665846824646, 0.11027523875236511, -0.008071121759712696, 0.682918906211853, 0.42652854323387146, -0.6854180693626404, -0.4824499785900116, -0.6644694805145264, -0.1614397168159485, 0.2556003928184509, 0.12061475962400436, 0.12923701107501984,...
52.085063869832084 5.14774867403321, 52.085103993769735 5.1475894195027649, 52.085123664481678 5.1475485048696683, 52.084903807879783 5.1472594002206034, 52.084644382136524 5.1469792136778958, 52.08418409107253 5.1464885615278035, 52.0837237383239 5.1459687419701368, 52.083234543621856 5.145409702023275, 52.08266441091...
[ -0.2299683839082718, 0.307266503572464, 0.18958280980587006, 0.3009328544139862, -0.14470916986465454, 0.36014673113822937, 0.2694666385650635, -0.9377488493919373, -0.7015682458877563, -0.43505746126174927, 0.1781962513923645, 0.5336389541625977, -0.09713383764028549, 0.5337294340133667, ...
52.081570835318416 5.1413511682767421, 52.08156742547277 5.1413547724810877, 52.081523078051127 5.1414396720759816, 52.081520885843375 5.1414458907124478, 52.0815235725604 5.1414493722841144, 52.081564587075263 5.1415304632391781, 52.081586116692051 5.1416122366208583, 52.081591385416651 5.1417623861789625, 52.08174409...
[ -0.23884353041648865, 0.295882910490036, 0.14253538846969604, 0.25781217217445374, -0.15835388004779816, 0.3478509783744812, 0.35500451922416687, -0.9613893032073975, -0.6417914628982544, -0.4899265170097351, 0.13488037884235382, 0.6073786616325378, -0.05540799722075462, 0.5251107215881348...