text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
the result I want: [mountains http://chakrit.net/files/stackoverflow/so\_gradient\_descent.png](http://chakrit.net/files/stackoverflow/so_gradient_descent.png) The gradient ascent algorithm is not of my interest. What I'm interested in; is the algorithm to calculate the original function in that picture in the first ...
[ -0.12387505918741226, 0.15993891656398773, 0.4749659597873688, -0.03382159397006035, -0.0922689214348793, 0.06968127191066742, 0.1729946732521057, -0.28607702255249023, -0.2100735902786255, -0.35664886236190796, 0.190045565366745, 0.2190008908510208, -0.04210127890110016, -0.06845669448375...
to supply the height map. Your interpolation function ``` Sqrt((x1 - x2) ^ 2 + (y1 - y2) ^ 2) ``` Is similar to [Inverse Distance Weighted](http://www.ems-i.com/smshelp/Data_Module/Interpolation/Inverse_Distance_Weighted.htm) methods except you are applying an arbitrary filter and discarding many of the other dat...
[ 0.09561124444007874, -0.33185577392578125, 0.6016914248466492, -0.04912925511598587, -0.2856356203556061, 0.4056136906147003, -0.024817993864417076, -0.6499884128570557, -0.2622695565223694, -0.6081419587135315, -0.019740384072065353, 0.5616779327392578, -0.0052545275539159775, -0.22154249...
you can blend the colours of the samples in those ratios to also colour the point. Use the intensity (roughly speaking the grayscale in simple RGB space) to display the height or add contour lines in black like the example image does.
[ 0.19651195406913757, -0.2979700267314911, -0.05343889445066452, 0.21940256655216217, -0.07469908893108368, 0.13603341579437256, 0.08759555220603943, -0.40010809898376465, -0.11269504576921463, -0.6082131862640381, 0.12159503996372223, 0.36294087767601013, -0.002951286733150482, 0.134631618...
Curious, how does an NSMutableArray mutate into a type of UIButtonContent? I'm currently working with an instance variable of type NSMutableArray which crashes upon receiving an error with: \*\*\* -[UIButtonContent count]: unrecognized selector sent to instance 0x393ed0 Wasn't even aware of UIButtonContent, so not ex...
[ 0.13534113764762878, -0.12770380079746246, 0.1524534821510315, 0.05161032825708389, -0.13788175582885742, -0.12052001804113388, 0.5284543037414551, 0.026351671665906906, -0.38305166363716125, -0.8279329538345337, 0.08496803790330887, 0.2571244239807129, -0.46198466420173645, 0.677547395229...
deallocated by accident, and a UIButtonContent object is put into memory in its old location. The pointer won't know the difference unless you manually change it.
[ -0.11189887672662735, -0.18189255893230438, 0.7005519866943359, -0.06296272575855255, 0.4587944447994232, 0.039813023060560226, -0.23704171180725098, -0.1667284518480301, -0.3149256110191345, -0.5453450679779053, -0.4132682979106903, 0.08964937180280685, -0.31826937198638916, 0.07707335054...
I am struggling with a sensible logic loop for stripping out nodes from an XML file too large to use with XPath supporting .NET classes. I am attempting to replace the single line of code I had (that called SelectNodes with an XPath query string) with code that does the same but uses an XmTextReader. I have to go sev...
[ 0.3531789481639862, 0.04169877618551254, 0.33461645245552063, -0.07679516077041626, 0.09616625308990479, -0.09560545533895493, 0.18853037059307098, -0.024574026465415955, 0.05750299245119095, -0.9936466217041016, 0.06048969551920891, 0.44463053345680237, -0.15291167795658112, 0.18511985242...
see if the value matches a target string and then walk down further if it does or skip that branch if it does't. In fact, I think my problem is that I don't know how to ignore a branch if I'm not inetersted in it. I can't allow it to walk irrelevant branches as the element names are not unique (as illustrated by the X...
[ 0.210647314786911, 0.007739332038909197, 0.21870045363903046, -0.09467882663011551, 0.008616827428340912, -0.2130838930606842, 0.6130136251449585, -0.14587509632110596, -0.3842187225818634, -0.10116832703351974, 0.11121316999197006, 0.4113389551639557, -0.23831439018249512, 0.0833505913615...
that branch. So...hopefully this makes sense to someone...I've been staring at the problem for a couple hours and may just be missing something obvious..... I'd like to post a portion of the file up but can't figure out how so the structure is roughly: ``` ConfigRelease > Profiles > Profile > Name > Screens > Screen...
[ 0.2903217375278473, -0.035434793680906296, 0.6389578580856323, -0.06985416263341904, 0.2587380111217499, -0.22708843648433685, 0.23104988038539886, -0.03924695402383804, -0.3801021873950958, -0.739356517791748, 0.009280729107558727, 0.5753494501113892, -0.21079909801483154, 0.0477800257503...
over what generates the xml file so cannot change it to say, produce multiple smaller files. Any tips will be greatly appreciated. UPDATE I have re-opened this. A poster suggested XPathDocument which should have been perfect. Unfortunatley, I didn't mention that this is a mobile app and XPathDocument is not supporte...
[ 0.1972573846578598, 0.03770391270518303, 0.6157190203666687, 0.22115088999271393, 0.11451118439435959, -0.28643637895584106, 0.11749674379825592, 0.08446163684129715, -0.5485999584197998, -0.5819938778877258, -0.06320714950561523, 0.5492261648178101, -0.04986194148659706, 0.283751308917999...
to get much bigger. Anyway, I am now trying the DataSet suggestion but am still open to other ideas. UPDATE 2 I got suspiscious because quite a few people have said they would not expect a file this size to crash the system. Further experiments have shown that this is an intermittent crash. Yesterday it crashed every...
[ 0.1689220368862152, 0.17101337015628815, 0.2356879860162735, 0.0575752891600132, 0.08363489806652069, -0.2636498808860779, 0.36082324385643005, 0.03290725126862526, -0.38618847727775574, -0.5752692818641663, 0.12778043746948242, 0.45373931527137756, -0.1771376132965088, 0.35856860876083374...
it because if the app can't access this file, it is useless and I don't think can tell my users that they can't run anything else on their devices when my app is running....... I'm adding this as the issue is now dead but the selected solution doesn't match anything listed so far. Our technical architect took this iss...
[ 0.18835999071598053, 0.27083373069763184, 0.44645941257476807, 0.39141982793807983, 0.23410995304584503, -0.18795450031757355, 0.1970253735780716, -0.07843953371047974, -0.1565488576889038, -0.3810562491416931, -0.08751228451728821, 0.47106510400772095, -0.24338142573833466, 0.187815472483...
custom file format (with indexing) optimised for size and speed of query. So, the issue is on hold until that work is approved and properly specced. The end for now.
[ 0.5052776336669922, -0.08815724402666092, 0.5791453123092651, 0.32470837235450745, 0.20069552958011627, -0.33064156770706177, -0.12702152132987976, -0.1931583732366562, -0.48978540301322937, -0.39869704842567444, -0.32491210103034973, 0.47004425525665283, 0.1411190778017044, 0.339613676071...
Our Operations department is getting twitchy about too many monitoring tools so are there any tools that can handle SNMP, JMX and TIBCO Hawk all in one application? SNMP & JMX are monitored by a product Manage Engine Applications Manager. You can give it a try.Regarding Tibco Hawk am also in search of a tool.Do let me ...
[ 0.41714176535606384, -0.05638277530670166, -0.019463058561086655, 0.19995537400245667, 0.20394015312194824, -0.20408698916435242, 0.03182884678244591, 0.2196359485387802, -0.4232746958732605, -0.5064300298690796, 0.23048602044582367, 0.7598277926445007, -0.029268432408571243, -0.3335493505...
Is there a method/pattern/library to do something like that (in pseudo-code): ``` task_queue.push_back(ObjectType object1, method1); task_queue.push_back(OtherObjectType object2, method2); ``` so that I could do the *something* like: ``` for(int i=0; i<task_queue.size(); i++) { task_queue[i].object -> method();...
[ 0.12953779101371765, 0.19622358679771423, 0.1571599245071411, 0.02081621252000332, 0.05922316387295723, 0.00461672805249691, 0.28378671407699585, -0.2372627854347229, -0.243830606341362, -0.5213351845741272, 0.022145628929138184, 0.3489702045917511, -0.458838552236557, -0.20335012674331665...
i, float f) { std::cout << "CClass1::AMethod(" << i <<");\n"; } }; class CClass2 { public: void AnotherMethod(int i) { std::cout << "CClass2::AnotherMethod(" << i <<");\n"; } }; int main() { boost::function< void (int) > method1, method2; CClass1 class1instance; CClass2 class2instance; method1 = b...
[ -0.37017086148262024, -0.07250663638114929, 0.37259846925735474, -0.28945261240005493, 0.11380884051322937, 0.2945668399333954, 0.1845596432685852, -0.6937696933746338, -0.20893535017967224, -0.28128495812416077, -0.12226893752813339, 0.568608820438385, -0.18872320652008057, 0.058410249650...
std::vector< boost::function<void(int)> > functionVec; functionVec.push_back(method1); functionVec.push_back(method2); for ( int i = 0; i < functionVec.size(); ++i) { functionVec[i]( 5); }; return 0; }; ```
[ -0.2614390254020691, -0.3789070248603821, 0.8031845688819885, -0.6007607579231262, -0.021621230989694595, 0.43509048223495483, 0.14507535099983215, -0.5608919858932495, -0.2127840518951416, -0.45115792751312256, -0.46607518196105957, 0.6593404412269592, -0.2769142687320709, 0.1947604864835...
In python-mode (for emacs), hitting Control-C\Control-C will execute the current buffer. However, when execution is finished, the output buffer springs up and splits my editing window in half. This is a *complete* pain, especially given that there's generally no output in the buffer anyway! Is there a way to stop the ...
[ 0.07892350852489471, 0.1802072376012802, 0.1950654685497284, -0.2775398790836334, -0.3618412911891937, 0.09678244590759277, 0.7302878499031067, 0.0024559625890105963, -0.35281044244766235, -0.2033546417951584, -0.09757738560438156, 0.585349977016449, -0.35791635513305664, -0.04584551602602...
there's no output (as in the program with which I'm tinkering), it is *really* dumb to cut my buffer in half with a blank window. What python-mode are you using? Unfortunately, there are *several*. Type C-h k and then C-c C-c .. what does it say in the modeline? Does it say "py-execute-buffer" or does it say "python-s...
[ 0.29483869671821594, 0.152750164270401, 0.13122861087322235, -0.11097728461027145, -0.09915456175804138, 0.1554705649614334, 0.27155670523643494, 0.21460849046707153, -0.2958966791629791, -0.5329213738441467, -0.03502615541219711, 0.4779059588909149, -0.4371349513530731, -0.305434584617614...
buffer when you run C-c C-c, you have to explicitly switch to the \*Python\* buffer if you want to see it. If you're really intent on sticking with Tim Peters' version, you could always put something like the following in your .emacs and you'll never see the output buffer again unless explicitly moved to. ``` (defadv...
[ 0.1372755467891693, 0.3154045045375824, 0.4138861894607544, -0.3191779851913452, 0.27828744053840637, 0.21167415380477905, 0.3586493730545044, 0.08825066685676575, -0.44417324662208557, -0.37137535214424133, -0.3111153542995453, 0.5057884454727173, -0.6341478824615479, 0.04612534120678902,...
I need to draw an image on a panel, containing some child controls. I dont want to let it hide behind those controls, which is the case right now when I'm drawing the image in the `Paint` event. Here is the code I used to override the `OnPaint` method of my panel: ``` protected override void OnPaint(PaintEventArgs e)...
[ 0.02329910732805729, -0.15157730877399445, 0.5429131984710693, -0.081366628408432, 0.42092159390449524, 0.3821236491203308, 0.2518681585788727, -0.19780778884887695, 0.06761258095502853, -0.9651519060134888, 0.25108474493026733, 0.6026721596717834, -0.12114686518907547, 0.04309342801570892...
System.Drawing.Drawing2D.SmoothingMode.HighQuality; if (_viewButton != ViewButton.None) { Brush menuBrush = new SolidBrush(_viewButton == ViewButton.Highlighted ? Color.Black : Color.Gray);
[ -0.39687061309814453, -0.5378503203392029, 0.8673142790794373, -0.26275500655174255, 0.11785093694925308, 0.5093733072280884, 0.3465498387813568, -0.4955236315727234, -0.258795827627182, -0.7174735069274902, -0.049339912831783295, 0.5572783946990967, -0.38201045989990234, 0.221752390265464...
e.Graphics.FillPolygon(menuBrush, new Point[] { new Point(this.Width - 29, 03), new Point(this.Width - 19, 03), new Point(this.Width - 24, 09) }); menuBrush.Dispose(); //Draw border of the panel.
[ -0.12881381809711456, -0.25265368819236755, 0.773730993270874, -0.14599327743053436, 0.16268768906593323, 0.3696419298648834, -0.14267157018184662, -0.37241119146347046, -0.05445573851466179, -1.0907328128814697, -0.2524401843547821, 0.44167792797088623, 0.015183374285697937, -0.0508933663...
Rectangle borderRect = new Rectangle(0, 0, this.Width - 1, this.Height - 1); GraphicsPath borderPath = GetRoundPath(borderRect, 8); e.Graphics.DrawPath(new Pen(Color.LightGray), borderPath); } } catch (Exception ex) {
[ 0.03262130171060562, -0.49683907628059387, 0.9196310639381409, -0.11843173950910568, 0.00969367939978838, 0.1275041252374649, -0.11140131950378418, -0.4232407510280609, -0.2571379840373993, -0.6334781646728516, -0.1066712886095047, 0.3239443898200989, -0.3747316300868988, 0.057494234293699...
throw new IDSException(ex); } } ``` --- ``` protected override void OnPaint(PaintEventArgs e) { try { base.OnPaint(e); //Draw icon for views at top right corner of the panel. e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; if...
[ -0.19918212294578552, -0.22728578746318817, 0.5744439363479614, -0.215340718626976, 0.18401378393173218, 0.2805289924144745, 0.3667905926704407, -0.37840500473976135, -0.05505334213376045, -0.7078604698181152, -0.2880029082298279, 0.7229130864143372, -0.2830546498298645, 0.0084232408553361...
Brush menuBrush = new SolidBrush(_viewButton == ViewButton.Highlighted ? Color.Black : Color.Gray); e.Graphics.FillPolygon(menuBrush, new Point[] { new Point(this.Width - 29, 03),
[ -0.28647130727767944, -0.39218613505363464, 1.210425853729248, -0.21937206387519836, 0.05366440489888191, 0.6215905547142029, 0.23883062601089478, -0.7272629141807556, -0.19374187290668488, -0.6763662099838257, 0.18863600492477417, 0.43149423599243164, -0.09000357985496521, 0.3024885356426...
new Point(this.Width - 19, 03), new Point(this.Width - 24, 09) }); menuBrush.Dispose(); //Draw border of the panel. Rectangle borderRect = new Rectangle(0, 0, this.Width - 1, this.Height - 1);
[ -0.23874744772911072, -0.36291632056236267, 0.9664947390556335, -0.43734437227249146, 0.27699604630470276, 0.30616092681884766, 0.03323858976364136, -0.5371987819671631, -0.141313835978508, -0.8178516626358032, -0.31218037009239197, 0.5303450226783752, -0.08611738681793213, 0.1505283862352...
GraphicsPath borderPath = GetRoundPath(borderRect, 8); e.Graphics.DrawPath(new Pen(Color.LightGray), borderPath); } } catch (Exception ex) { throw new IDSException(ex); } } ``` The [`Paint` event](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.paint.asp...
[ 0.2999397814273834, -0.4100516140460968, 0.6989697217941284, -0.1870907098054886, 0.032005675137043, -0.07443733513355255, 0.23323489725589752, -0.2301865965127945, -0.3372345268726349, -0.7828865051269531, -0.007136035710573196, 0.394875168800354, -0.42062416672706604, -0.1095568016171455...
access to the parent control, override the `OnPaint` method, and then call the base implementation. **Then** draw your image, and it will be drawn on top of everything else.
[ 0.36710748076438904, -0.05763401836156845, 0.5682387948036194, 0.2496005743741989, 0.22308216989040375, -0.08151210844516754, 0.11690245568752289, 0.03239917755126953, 0.16011425852775574, -0.9475333094596863, -0.34724682569503784, 0.6182886362075806, -0.11800713837146759, -0.0951265543699...
If we look at the Java Object class then we can find some of the methods like: ``` public native int hashCode() protected native Object clone() ``` What are these natives and how do these methods work? These methods are either *Intrinsic* or written outside Java in "native" code, that is, specific to the given machi...
[ 0.33375048637390137, 0.22037522494792938, -0.295042484998703, 0.0501556359231472, -0.1858067661523819, -0.1814410239458084, 0.16440081596374512, -0.17201796174049377, -0.3062046468257904, -0.6351973414421082, 0.250495970249176, 0.4343234598636627, -0.2586960196495056, 0.12565977871418, -...
fairly easily. Code is written this way either for performance, or because it needs to access platform specific infrastructure which cannot be done in plain java. In the case of `hashcode()`, this is implemented by the JVM. This is because often the hashcode will be related to something only the JVM knows. On early JV...
[ -0.09232936054468155, 0.15400268137454987, 0.15262679755687714, 0.10692745447158813, 0.00385664077475667, -0.39422497153282166, 0.18225349485874176, -0.06640753149986267, -0.322287917137146, -0.6602292656898499, -0.34816619753837585, 0.3490833342075348, -0.16560740768909454, -0.20373322069...
I am creating a web application that acts as a priority list, allowing a user to re-arrange a set of items in a list and storing that arrangement in a MySQL database via a PHP backend. At the moment, when the user has finished arranging their items and saves the configuration, I am calling a seperate UPDATE statement ...
[ 0.38514313101768494, -0.004813432693481445, 0.3767075836658478, 0.05842975527048111, 0.08015958219766617, 0.24986015260219574, -0.19827397167682648, -0.3296473026275635, -0.3756313621997833, -0.4193266034126282, -0.012014839798212051, 0.3208482563495636, -0.26460158824920654, 0.28373709321...
nature of foreach loop in PHP, this makes $order be the key value, // in this case, 0, 1, 2, 3, 4 respectively foreach ($items as $order => $item) { $database->query("UPDATE `table` SET `priorityLevel` = {$order} " . "WHERE `ID` = {$item}"); } ?> ``` This works well enough, but it see...
[ 0.047522544860839844, -0.09168881922960281, 0.3149278163909912, -0.20832639932632446, -0.11258742213249207, 0.17349661886692047, 0.3018167018890381, -0.25327062606811523, -0.15538634359836578, -0.14052733778953552, -0.09879571199417114, 0.3166835308074951, -0.39877626299858093, 0.076517313...
way to dynamically create the order within the UPDATE command, something like this: ``` <?php $database->query("UPDATE `table` SET `priorityLevel` = ORDER_NUMBER " . "WHERE `ID` IN (12, 17, 27, 26, 5)"); ?> ``` ... where ORDER\_NUMBER was a dynamic number determined perhaps by the position of th...
[ -0.21017569303512573, -0.39562729001045227, 0.49725955724716187, 0.2349555343389511, 0.08617391437292099, 0.026146331802010536, 0.04238332435488701, -0.05064937472343445, -0.4262155294418335, -0.3573310971260071, -0.011170754209160805, 0.4929666817188263, -0.4205625653266907, 0.09982222318...
possible in a MySQL 5 / PHP 5 environment? The table is using the MyISAM engine so it does not support transactions. (PS - I know some of the basics of MySQL well enough, but I am far from an expert, so if there is anything involved here beyond simple CREATE,INSERT,UPDATE,DELETE commands, please be descriptive) (PPS ...
[ -0.04492240771651268, -0.05829176306724548, 0.14617504179477692, 0.33860936760902405, 0.15338732302188873, -0.1410210281610489, 0.09201599657535553, 0.07273240387439728, -0.2386789321899414, -0.8503502011299133, -0.09347587823867798, 0.49123111367225647, -0.00632568821310997, -0.0330575965...
programmers would think of as a pointer to an object. Use `NULL` for non-object pointers. Look at the declaration of that method: ``` - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context ``` Context is a `void *` (ie a C-style pointer), so ...
[ -0.021465281024575233, -0.16389945149421692, -0.04849008470773697, -0.024392379447817802, -0.033256225287914276, -0.179636150598526, 0.2609405517578125, -0.015963217243552208, -0.22020545601844788, -0.5459216237068176, -0.13700151443481445, 0.4844568967819214, -0.3713504374027252, 0.115199...
The solution to this is probably very simple, but I'm not sure what I'm missing. Here's what I have, and `PropertyPlaceholderConfigurer` won't replace the `${...}`. ``` /* ---- org/company/springtest/Test.java: ---- */ package org.company.springtest; import org.springframework.beans.factory.xml.XmlBeanFactory; import...
[ 0.3103109896183014, 0.08632497489452362, 0.11545606702566147, -0.11542221903800964, -0.0607130229473114, 0.17735004425048828, 0.5344681739807129, -0.4663057029247284, 0.08698441088199615, -0.7432005405426025, -0.1331917941570282, 0.3686668574810028, -0.3902716636657715, 0.3514329493045807,...
app.print(); } } /* ---- org/company/springtest/TestApp.java: ---- */ package org.company.springtest; import org.springframework.beans.factory.annotation.Required; public class TestApp { private String m_message; public void setMessage( String message ) { m_message = message; } publi...
[ 0.14064788818359375, 0.33960023522377014, 0.14624308049678802, -0.17380118370056152, -0.03883172199130058, 0.3308071196079254, 0.3334031105041504, -0.5719709396362305, -0.42347121238708496, -0.5925923585891724, -0.4190879762172699, 0.2992151379585266, -0.4722132682800293, 0.056060820817947...
</bean> <bean id="testApp" class="org.company.springtest.TestApp"> <property name="message" value="${test.message}"/> </bean> </beans> /* ---- conf/xml/test.properties: ---- */ test.message=Hello world! ``` The following is the output when running Test: ``` Feb 17, 2009 11:23:06 AM org.springframew...
[ 0.18825273215770721, 0.43789517879486084, 0.3874951899051666, -0.2181769460439682, -0.09823008626699448, -0.27313098311424255, 0.5950822234153748, -0.1499251425266266, -0.05946460738778114, -0.6291343569755554, -0.04260697215795517, 0.41362226009368896, -0.31086254119873047, 0.099671438336...
I've done it both ways, and to be honest other than the ability to give the code and webform to two different people (which doesn't happen where I work), I see very little advantage of one method over the other. I can understand how it is nice to have your code in one file, and markup in the other, but I can also under...
[ 0.8303943276405334, 0.3152875006198883, -0.28531673550605774, 0.10752062499523163, -0.05798663571476936, -0.005600490607321262, 0.35524940490722656, 0.08513551205396652, -0.19323302805423737, -0.7333577871322632, 0.0854729562997818, 0.4289841055870056, 0.12929339706897736, -0.0402202419936...
with in-line. So my real questions, what method are you using? and is there *anything* you can do programatically with code-behind that simply cannot be done with in-line code? or does it all really come down to the simple matter of "personal preference". Microsoft seems to not take a real stand on one way or the othe...
[ 0.619825541973114, 0.053231075406074524, -0.08334242552518845, 0.2882520854473114, -0.19060109555721283, 0.1439180076122284, 0.10515058785676956, -0.07310988008975983, -0.05787842348217964, -0.5674351453781128, 0.09706965833902359, 0.4800075888633728, -0.17173117399215698, -0.3103726506233...
mostly code then code behind (and as Jeff notes VB's XML support could really help here). When you are setting a few values you may find you make a different choice to cases where the structure of the HTML is lost in the code (e.g. when the created HTML is very much determined on the fly). Where is the right balance?...
[ 0.5620759129524231, -0.33998847007751465, 0.011217347346246243, 0.21000830829143524, -0.08714642375707626, -0.18675963580608368, 0.0007691803039051592, -0.13666778802871704, -0.17537537217140198, -0.5108878016471863, 0.003420177847146988, 0.4560626149177551, -0.24944385886192322, -0.481040...
Given 2 interfaces: ``` public interface BaseInterface<T> { } public interface ExtendedInterface<T0, T1> extends BaseInterface<T0> {} ``` and a concrete class: ``` public class MyClass implements ExtendedInterface<String, Object> { } ``` How do I find out the type parameter passed to the BaseInterface interface? ...
[ -0.19457365572452545, 0.022519176825881004, 0.455630898475647, 0.020005177706480026, -0.21889813244342804, -0.030291788280010223, 0.18143168091773987, -0.3640216886997223, 0.07950156927108765, -0.7318704724311829, 0.07860539108514786, 0.5670392513275146, -0.3574086129665375, 0.020401360467...
just what Java itself provides, I wrote a library that does the hard work: gentyref. See <http://code.google.com/p/gentyref/> For your example, using gentyref, you can do: ``` Type myType = MyClass.class; // get the parameterized type, recursively resolving type parameters Type baseType = GenericTypeReflector.getExac...
[ -0.25778090953826904, -0.1518532633781433, 0.5993025302886963, -0.10033239424228668, -0.13065828382968903, 0.18372781574726105, 0.39149561524391174, -0.41289451718330383, -0.21686798334121704, -0.6674124002456665, 0.04867207631468773, 0.6419085264205933, -0.3325827419757843, -0.05394900217...
I'm currently working on redesigning an application which is building a model from input data, and displaying that data to the user. The current system has a thread for building the model, a thread for building a visualization of the model, and a thread which displays the visualization. The problem I have is that point...
[ 0.25282034277915955, 0.1976775825023651, 0.3642108738422394, 0.25243452191352844, 0.08050776273012161, 0.2059561163187027, 0.15269486606121063, -0.06740113347768784, -0.38552549481391907, -0.6426292061805725, 0.357676237821579, 0.45118170976638794, -0.4762970507144928, 0.39429160952568054,...
for resources. So, given that those three threads will exist, what is the best way to share data between the modeling and visualization threads in a manner which is efficient and thread safe? Some of the data structures are large and will change every cycle of the modeling thread, so I'm somewhat loath to make a copy ...
[ 0.3522682785987854, -0.1290505826473236, 0.4468241333961487, 0.36478111147880554, 0.24628692865371704, 0.005690729711204767, 0.3396930694580078, 0.01828981749713421, -0.35264116525650024, -0.8511529564857483, 0.27675604820251465, 0.618768036365509, 0.055303629487752914, 0.03148402646183967...
it to be consistent - right now we see huge variability in the cycle times, due to the mutex contention. The data moving from modeling to visualization are dominated by 2D height maps - ~18000 cells worth of data. The actual number of cells updated in model update is significantly less though - perhaps only a few hundr...
[ 0.02307157963514328, -0.14524881541728973, 0.542495608329773, 0.22926726937294006, 0.09233222156763077, 0.11953506618738174, -0.23463338613510132, -0.41308489441871643, -0.5359528660774231, -0.39362409710884094, 0.19225168228149414, 0.5943754315376282, -0.12678642570972443, -0.057912282645...
I'm trying to search a document for data on a specific column. I am trying to use: ``` ^.{x}[data to find] ``` where x is the number of columns I want - 1. I'm not sure if I am doing something wrong, or if my regex engine does not support that syntax. I am trying to use Notepad++, if that is helpful. Update 2013-20...
[ -0.4062367379665375, 0.12530599534511566, 0.6786227822303772, 0.023973913863301277, -0.21159164607524872, 0.20669762790203094, 0.15053048729896545, -0.2579253613948822, -0.49144434928894043, -0.37931129336357117, -0.07897931337356567, 0.26812416315078735, -0.35539111495018005, -0.048844572...
feature](http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Regular_Expressions). I confirm it does not have any [repetition operator](http://www.regular-expressions.info/repeat.html) `{min,max}` which would have allowed you to specify how many times a token can be repeated. ![http://1.bp.blogspot.com...
[ -0.1267513632774353, -0.37738317251205444, 0.5952355265617371, -0.12277957051992416, -0.0650220438838005, 0.03875112906098366, 0.33411863446235657, -0.2554541826248169, -0.6377633810043335, -0.35757309198379517, -0.3172881007194519, 0.4282539486885071, -0.18729303777217865, 0.0153709733858...
by line. This implies that you can set it otherwise, but to the best of my knowledge (and please, I beg you, prove me wrong!), there's no way to make multi-line regexes. (I agree, and that is a *major* limitation) > Another limitation of Scintilla, the `^` operator is actually important, as it anchors the regex to th...
[ -0.007262062281370163, -0.38563960790634155, 0.5648156404495239, -0.0010620696702972054, -0.3285486102104187, 0.08046481013298035, 0.2413664013147354, -0.029418496415019035, -0.15049129724502563, -0.2900536060333252, -0.22439908981323242, 0.23881925642490387, -0.5375425815582275, -0.180544...
I've developed a .net 3.0 application, which is deployed using clickonce. I'd like to move from full trust to partial trust to ease deployment. I've tried the "Calculate Permissions" tool in the "Security" tab of my project under visual studio, and the answer is quite clear : ``` --------------------------- Microsof...
[ 0.1578388512134552, 0.14434278011322021, 0.3810281455516815, -0.18607425689697266, 0.03390641510486603, -0.24352115392684937, 0.5331927537918091, -0.19161561131477356, 0.22942684590816498, -0.5840322971343994, 0.0655934289097786, 0.7864906787872314, -0.0649196207523346, -0.1387278437614441...
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel) at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly() at System.Runtime.Hosting.Applicatio...
[ -0.0353381410241127, 0.16622382402420044, 0.3982442319393158, -0.06624491512775421, -0.03139020502567291, -0.01808362454175949, 0.7226085662841797, -0.18349392712116241, -0.16268953680992126, -0.9674597978591919, -0.3543824553489685, 0.528593897819519, -0.411986768245697, 0.079207502305507...
filesystem only upon user request, for importation/exportation purposes) How can I figure out why my application requires full trust? Adding the requirePermission='false' attribute in the app.config's configsections helps a lot : ``` <sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, Sys...
[ 0.17865164577960968, 0.21683983504772186, 0.7162069082260132, 0.2171602100133896, 0.11904067546129227, -0.24514687061309814, 0.6677104830741882, -0.49135148525238037, 0.04951809346675873, -0.5004079937934875, -0.11278603225946426, 0.9938315749168396, -0.24624326825141907, -0.22080782055854...
I am currently deploying my application built using RC of MVC ASP.NET on the production server which is showing nothing now. The routes in my global.ascx are typical i.e. ``` routes.MapRoute( "Default", // Route name
[ 0.09830126911401749, 0.06841184198856354, 0.7457942366600037, -0.13104847073554993, -0.02157091721892357, -0.2638324499130249, 0.22165466845035553, 0.4083786904811859, -0.47340381145477295, -1.0262715816497803, 0.12780794501304626, 0.0787896066904068, -0.24814549088478088, 0.15399816632270...
"{controller}.aspx/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = "" } // Parameter defaults ); routes.MapRoute( "Root", "",
[ -0.2579592764377594, -0.483879029750824, 0.6414488554000854, 0.05684443935751915, 0.07938229292631149, 0.20579659938812256, 0.04952261969447136, -0.003080642083659768, -0.34058448672294617, -1.0867727994918823, -0.3473946154117584, -0.009544547647237778, -0.514556348323822, 0.1753607392311...
new { controller = "Home", action = "Index", id = "" } ); ``` Can any one figure out why it is showing me only blank pages Sorry i forget to mention the it is IIS 6 **Interestingnly it is also working on my local IIS (i.e. both local built in with VS & standard with XP) as well** I solved the issue, the ma...
[ 0.16758525371551514, -0.19227483868598938, 0.8148579001426697, -0.11950036883354187, -0.30662116408348083, -0.2707180678844452, 0.09624400734901428, -0.17888431251049042, -0.5362489223480225, -0.832935631275177, 0.15013360977172852, 0.46871280670166016, -0.28848910331726074, 0.606628596782...
on the server as well as run the mvc extension registeration scripts, everything worked Thanks for your help guys
[ 0.5035101771354675, 0.180458202958107, 0.047811105847358704, 0.2947446405887604, -0.1906910091638565, -0.01715860329568386, 0.39707303047180176, 0.4509551227092743, -0.04467153176665306, -0.5221545100212097, 0.20005136728286743, 0.48066505789756775, 0.05544721335172653, -0.1214158982038497...
I'm building this report in a system for a Billboard company. They have a table that stores all their billboards, and among other data, billboards have a Start Date and a Finish Date (both can be null). If for some reason a billboard has to stop beeing used, they set a finish date and it will become unnavaiable to b...
[ 0.931681752204895, 0.2886160612106323, 0.6354387998580933, 0.3058619797229767, 0.11060363054275513, -0.0816827192902565, -0.25509265065193176, 0.1677231639623642, -0.3402630090713501, -0.4708028733730316, 0.8501226305961609, 0.332358181476593, -0.2419079691171646, 0.29025015234947205, -0...
advertising spots in a given period of time. So, lets say that for the period I chose (4 weeks, for exemple) \* In week 1 there are 500 avaiable boards \* In week 2 one board became unavaiable (making 498 boards avaiable) \* In week 3 two boards became avaiable (making 501 boards avaiable) \* In week 4...
[ 0.24231240153312683, -0.10269046574831009, 0.9401010870933533, 0.11167918890714645, 0.0943288579583168, 0.5368878841400146, 0.028390051797032356, -0.05735231563448906, -0.24398083984851837, -0.8554644584655762, 0.08685372769832611, 0.49783751368522644, -0.4639464020729065, -0.0230928082019...
this in a single query? The weeks will come from a HTML form and I have to convert them to dates before the query, so I'll just have the dates I want to know how many boards are avaiable at. The query to get the amount of boards for ONE specific date is like this: ``` SELECT COUNT(IdBillboard) FROM tB...
[ 0.40576431155204773, -0.2487480342388153, 0.5367926955223083, 0.12193721532821655, -0.17501573264598846, 0.0007608475279994309, 0.11161138117313385, -0.2444814294576645, -0.5858145356178284, -0.5021368861198425, 0.2805934548377991, -0.16843096911907196, -0.13961590826511383, 0.351037412881...
`OR` conditionals for each date because I kinda need a new recount for the separate dates. I thought about using a `WHILE` but couldn't figure out exactly how to do it for this case. So that's where I'm stuck... I'll post more details if anyone needs them. Thanks, Gabe Don't know if this is what you're looking for, bu...
[ 0.08745235204696655, -0.1425843983888626, 0.24807973206043243, 0.11205049604177475, -0.07296543568372726, 0.12186955660581589, 0.3355572521686554, -0.00035811279667541385, -0.06876321136951447, -0.6346437335014343, -0.14204460382461548, 0.4353516399860382, -0.07750142365694046, 0.265560686...
1 ELSE 0 END)) Week1Count, SUM(CASE WHEN (StartDate IS NULL OR StartDate <= '2009-01-12 00:00:00') AND (FinishDate IS NULL OR FinishDate >= '2009-01-12 00:00:00') THEN 1 ELSE 0 END)) Week2Count FROM tBillboards ```
[ -0.039816487580537796, -0.2852148115634918, 0.6472978591918945, -0.11441540718078613, 0.043996382504701614, 0.16020363569259644, 0.5730670690536499, -0.22859308123588562, -0.37087804079055786, -0.277206152677536, -0.22504201531410217, 0.3326304852962494, -0.27419188618659973, 0.30915245413...
I have this java swing application that I intend to sell over the internet. At the moment I'm leaning towards deploying the application using java webstart. The product will be licensed for the user to use the program on one computer at a time only. I am concerned about piracy with this model. I would like to install s...
[ 0.6857764720916748, -0.12457539141178131, 0.3656780421733856, -0.07419701665639877, -0.15485930442810059, -0.4270227551460266, -0.004812117666006088, -0.4031559228897095, -0.19475355744361877, -0.3201867341995239, 0.027117658406496048, 0.7664996385574341, -0.2504426836967468, 0.04139130190...
the user to authenticate to the mother ship with a username/password each time the program is launched. 2. Simply install a license key somewhere (hidden?) on the users PC after they have registered and paid. At runtime, verify that there is a valid license key installed. 3. Use/build a security package that is based o...
[ 0.1886543482542038, 0.1719784140586853, 0.43669018149375916, 0.26011818647384644, 0.1506883203983307, -0.0218974482268095, 0.2483988255262375, -0.2904045879840851, -0.12479028850793839, -0.5520761013031006, -0.38104313611984253, 0.6489906311035156, -0.03588402643799782, -0.2042346149682998...
here is that once this application is installed, there isn't any runtime need for the application to contact the mother ship, other than checking for application updates using java webstart. Everything the app does it does locally and displays the results to the user using swing. So any solution involving a mother ship...
[ 0.4918506145477295, 0.2875347435474396, 0.1147383376955986, 0.17144368588924408, 0.19441655278205872, -0.24912860989570618, -0.03178232163190842, -0.10785391181707382, -0.523480236530304, -0.4085879325866699, 0.002382325241342187, 0.4860461354255676, -0.10896358639001846, -0.02392012812197...
should add that I am not necessarily looking for a silver bullet to prevent absolutely everyone from defeating security. There will always be someone with enough time on their hands to find ways to get it done. I'm not so concerned with these guys. I'm basically looking to make it difficult for a casual user to simply ...
[ 0.7953565120697021, 0.39779743552207947, -0.022282052785158157, 0.20788860321044922, 0.2184792011976242, -0.23089386522769928, 0.302586168050766, -0.20197317004203796, 0.09289945662021637, -0.11796366423368454, 0.3077359199523926, 0.6621007919311523, -0.11147043108940125, -0.15138268470764...
problems if the user, say, bought a new motherboard. (2) won't be much protection against a reasonably computer-savvy user, but it shouldn't cause too many problems either. But in the end, nothing you can do will stop a determined user from pirating your software. > In fact, the most effective anti-piracy software de...
[ 0.5630995631217957, 0.23322999477386475, 0.17855630815029144, 0.07730995118618011, 0.46264374256134033, -0.25689181685447693, 0.34877803921699524, 0.21597610414028168, -0.17463409900665283, -0.45680737495422363, -0.33236464858055115, 0.6639134287834167, -0.4729920029640198, 0.0577418804168...
I've been doing research on how to enable source analysis for the project I'm working on and plan to use StyleCop. The setup I have is a TFS Server for source control, using TFS Continuous Integration. I want to enable source analysis for CI builds and daily builds run on the build machine, and not only for those run o...
[ 0.7325640916824341, -0.0007917736656963825, 0.45223480463027954, -0.05401057377457619, -0.035749323666095734, -0.37322330474853516, -0.17146649956703186, -0.05649189278483391, -0.20809127390384674, -0.8230589628219604, -0.011543177999556065, 0.5357581973075867, -0.2250262349843979, -0.1625...
the same thing using build tasks: <http://blog.newagesolution.net/2008/07/how-to-use-stylecop-and-msbuild-and.html> <http://freetodev.spaces.live.com/blog/cns!EC3C8F2028D842D5!400.entry>. What are you opinions? Have you had similar projects and done something like this? Some points for using StyleCop in general: * Y...
[ 0.5521945953369141, -0.01895703375339508, 0.25323885679244995, 0.17994441092014313, -0.06854954361915588, -0.2227037101984024, 0.14644606411457062, -0.13137425482273102, -0.07155375927686691, -0.636712372303009, -0.003873639041557908, 0.6764335632324219, -0.21380218863487244, -0.3021448552...
set all existing source files to ignore. * You can put the StyleCop settings file (`Settings.StyleCop`) in the root directory where your VS solution is (and of course place it under the source control). StyleCop knows how to find this file automatically (by loooking up the directory tree). This way you can have custom ...
[ 0.7565637230873108, -0.2541213631629944, 0.6441532373428345, 0.2297193855047226, 0.1420569121837616, -0.4262440800666809, -0.038634806871414185, 0.06785206496715546, -0.07514451444149017, -1.0690820217132568, -0.0635438859462738, 0.5421097874641418, -0.35724395513534546, -0.001711617805995...
I am adding "Tagging" functionality in my web app. My applications table structures are as following; `Tag:` ``` (TagId INT IDENTITY, TagName VARCHAR(60)) ``` `TaggedRecords:` ``` (TaggedId INT IDENTITY, TagId, TaggedRecordId) ``` Now, I want when anyone adds a tag to any record then following action should be ...
[ 0.2540990710258484, 0.1955156773328781, 0.6730078458786011, -0.030365530401468277, 0.11817042529582977, -0.28478294610977173, -0.06509093195199966, -0.247811958193779, -0.23660321533679962, -0.9774978756904602, -0.08337082713842392, 0.5621057748794556, -0.3719407320022583, 0.19466851651668...
a record in "TaggedRecord" table Basically, I am more interested in doing these actions using a single query or at max two sql queries. I don't wanna make multiple If-Else conditions in sql stored procedure. Thanks, How about this... ``` CREATE PROC TagMe(@TagName VARCHAR(100),@TaggedRecordId INT) AS DECLARE @TagId...
[ 0.03888712078332901, -0.004985662177205086, 0.33143091201782227, -0.10883626341819763, 0.03330498933792114, -0.15018971264362335, 0.12550008296966553, -0.3735259175300598, -0.19913643598556519, -0.5353672504425049, 0.15038159489631653, 0.5418552756309509, -0.47234272956848145, 0.0092238681...
INSERT INTO Tag (TagName) OUTPUT inserted.id INTO @TagId VALUES(@TagName) INSERT INTO TaggedRecords (TagId, TaggedRecordId) VALUES(@TagId,@TaggedRecordId) RETURN END ``` Not tested this but the theory should be sound :) For another example of the OUTPUT usage see my post at [this link](https://stackoverf...
[ 0.005721356254070997, -0.1081778034567833, 0.499494343996048, 0.0013375193811953068, 0.07332029938697815, -0.3074781000614166, -0.0584568977355957, -0.6075817346572876, -0.25682950019836426, -0.32738256454467773, -0.12806649506092072, 0.5581344366073608, -0.41486284136772156, 0.01085872203...
INSERT INTO TaggedRecords (TagId, TaggedRecordId) VALUES(@TagId,@TaggedRecordId) RETURN END ELSE -- New tag BEGIN INSERT INTO Tag (TagName) OUTPUT inserted.id INTO @TagId VALUES(@TagName) INSERT INTO TaggedRecords (TagId, TaggedRecordId) VALUES(@TagId,@TaggedRecordId) RETURN END ```...
[ 0.24016927182674408, -0.183136448264122, 0.36205214262008667, 0.06079410761594772, 0.29141727089881897, -0.1581912636756897, -0.1373065859079361, -0.5325689911842346, 0.16098390519618988, -0.493213027715683, 0.06507232040166855, 0.6405795216560364, -0.43703651428222656, -0.1480272859334945...
only perform the EXISTS once and then continue whereas for an existing tag it would perform an EXISTS and then a SELECT. Hmm, take your pick - or test both approaches under volume :)
[ 0.2558732330799103, -0.4244299829006195, 0.42152878642082214, 0.14069873094558716, 0.15506908297538757, -0.1514788717031479, 0.2897709012031555, -0.4236571490764618, -0.0053706844337284565, -0.3188846707344055, -0.04701503366231918, 0.4726349711418152, -0.41169536113739014, 0.0151028474792...
I have some problem. I need to convert Google Desktop Gadget (**not** iGoogle gadget) to Vista Sidebar Gadget Do you know any way to do this? Thanks for any answers I am actually writing this to ask why the above three posts which speak about **browser-consistence** and **well formed** html have been voted down? As it...
[ 0.4571121335029602, 0.14383946359157562, 0.6334845423698425, 0.1617582142353058, -0.22796323895454407, -0.2005079686641693, 0.4042026996612549, -0.0006036614067852497, -0.08322248607873917, -0.9130878448486328, 0.1678820550441742, 0.499629944562912, -0.2231045514345169, 0.08866538852453232...
if a referred image is not found? some browsers use the 'alt' tag to have a place holder text item and some browsers display the 'alt' tag as a tool tip. The famous 'quirks' mode of browsers is a result of this lack of clarity. Because of this, it became quite possible that the same web page would display differently o...
[ 0.2082434445619583, -0.12289296090602875, 0.4661046266555786, 0.2169806957244873, -0.4947526752948761, -0.48572254180908203, 0.3156529366970062, -0.02949669025838375, -0.20539484918117523, -0.4409737288951874, -0.1412096917629242, 0.4417760670185089, -0.28432807326316833, -0.00622108066454...
standard for web browsers XHTML has well defined rules about the structure and these can be programatically enforced. Check the various online "XHTML Validators". They will tell if your XHTML is well formed or not (and highlight the problem areas). Because of these strict rules your page is more or less guaranteed to ...
[ 0.6686945557594299, 0.23185403645038605, 0.4192083477973938, -0.009632340632379055, -0.2947204113006592, -0.7471412420272827, 0.04725876823067665, 0.010493742302060127, -0.30910685658454895, -0.6269330382347107, -0.3478575646877289, 0.2479947805404663, -0.3230648636817932, -0.0877199694514...
I have a service that is responsible for reading and writing from a server. The reading and writing is done in different threads. The reader thread is active all the time whereas write thread only activates to send message and dies once message is written to server and response is received. The service runs for 4 day...
[ 0.4590442180633545, 0.05007927492260933, 0.32423511147499084, -0.1640104055404663, -0.07241813838481903, 0.10509443283081055, 0.637651264667511, 0.1104617565870285, -0.13156317174434662, -0.8900495171546936, 0.16938987374305725, 0.3418661057949066, -0.06523769348859787, 0.5399234890937805,...
you establish a large number of outgoing connections very quickly and run out of local ports. You can read about the "ephemeral port range" [here](http://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html). Or, you may simply be running out of sockets. Make sure you [close](http://msdn.microsoft.com/en-us/library/wahs...
[ 0.10266309231519699, -0.1403488963842392, 0.47606176137924194, 0.24172060191631317, 0.3465491533279419, -0.13614864647388458, 0.454823762178421, 0.23387330770492554, -0.4212125837802887, -0.6245162487030029, -0.27303361892700195, 0.34061768651008606, -0.029305629432201385, 0.33267822861671...
I plan to create a method that would format a Time in a specific way (specialized formatting in Russian). I would like to reuse this helper method in multiple models, controllers and possibly views. Also I would like to call this helper method on instance of Time class like follows: ``` t=Time.now t.my_super_shiny_he...
[ 0.25008663535118103, 0.06755711883306503, 0.6042141318321228, 0.04558349773287773, -0.08085831254720688, 0.18698370456695557, -0.011699922382831573, -0.03099956549704075, -0.19780471920967102, -0.7851071953773499, -0.07943280041217804, 0.4719681441783905, -0.3169816732406616, 0.34323540329...
end end ``` And in an initializer file in `config/intitializers` ``` require 'time_extensions' ``` If the extensions grow a bit and are something you want to reuse think of putting it into a plugin for easy inclusion. Or even a gem.
[ 0.2653334438800812, -0.06574955582618713, 0.4201250374317169, 0.023267554119229317, 0.20125079154968262, -0.20268505811691284, -0.032238904386758804, -0.008813351392745972, 0.21475531160831451, -0.6139432191848755, -0.28003573417663574, 0.5181336998939514, 0.10289714485406876, 0.1773578375...
I have a pretty usual requirement with procmail but I am unable to get the results somehow. I have procmailrc file with this content: ``` :0 * ^To.*@myhost | /usr/bin/python /work/scripts/privilege_emails_forward.py ``` Wherein my custom python script(privilege\_emails\_forward.py) will be scanning through the email...
[ -0.0025688698515295982, 0.33277177810668945, 0.3160410225391388, -0.22475923597812653, -0.12291468679904938, 0.028202036395668983, 0.2264823466539383, -0.12256652861833572, -0.43125802278518677, -0.6293966770172119, -0.09060783684253693, 0.5613919496536255, -0.2417651265859604, -0.07906712...
stdin???? That is just fine, just put `fw` after `:0` (`:0 fw`). Your python program will receive the mail on `stdin`. You have to 'echo' the possibly transformed mail on `stdout`. `fw` means: * `f` Consider the pipe as a filter. * `w` Wait for the filter or program to finish and check its exitcode (normally ignored)...
[ 0.22841893136501312, -0.030997760593891144, 0.4242717921733856, -0.30627742409706116, -0.2694768011569977, 0.01257494930177927, 0.4078764021396637, 0.08815499395132065, -0.09705081582069397, -0.7013832926750183, 0.12998785078525543, 0.4762859046459198, -0.6163011789321899, 0.28021225333213...
Each product in my database can have at least three and sometimes four or five different prices, and which one is displayed is based on several factors. How should I attempt to tackle this scenario? Each product can have the following prices: * List Price (MSRP) * Cost (what we pay for it) * Retail Price - shown on "...
[ 0.8651487231254578, -0.08766435831785202, 0.6402390003204346, 0.03515080735087395, 0.16135351359844208, 0.3855099081993103, -0.19770492613315582, 0.14718171954154968, -0.33116641640663147, -0.3676333427429199, -0.2914201617240906, 0.20098979771137238, 0.12994979321956635, 0.459530442953109...
loaded onto government sites The list price is provided in the vendor's quarterly data file and kept in the `Products` table, since it's a finite part of a product entity. How should I handle the other prices though? I'm thinking the best (only?) course of action is to have a separate table with the different price ...
[ 0.9514800906181335, 0.018364010378718376, 0.6328774094581604, 0.3247675895690918, 0.08250783383846283, -0.003521866863593459, -0.17004984617233276, -0.021594954654574394, -0.3340884745121002, -0.5175938606262207, 0.21001781523227692, 0.5998799800872803, 0.11501335352659225, 0.3343904018402...
but same cost) as our company does the processing (all the work, really) for a different company that's in the same business as us; the products are identical but customers/orders/specific prices are different. The current implementation has a duplicate database with everything repeated (same with the code) and I want ...
[ 0.7667536735534668, 0.1315983384847641, 0.6780659556388855, 0.1488807648420334, 0.14000241458415985, -0.0004442174395080656, 0.12265846878290176, 0.10299184173345566, -0.5734876990318298, -0.2879610061645508, 0.2280617505311966, 0.5565749406814575, 0.057675138115882874, 0.34264007210731506...
prices manually changed independently of the margin, however this is handled manually via Excel and only once per quarter (3 months); when the data is loaded into the database the price is finite and isn't changed until the following quarter; the "sale" price is on perpetually forever, but it expires (not on our site, ...
[ 0.4239961802959442, -0.260213702917099, 1.0313125848770142, 0.13728003203868866, 0.46901851892471313, 0.06761585175991058, -0.28102031350135803, 0.20219817757606506, -0.31892162561416626, -0.3765649199485779, -0.1738731414079666, 0.712283194065094, 0.3114708662033081, 0.3308069109916687, ...
pricing as they would on Advantage. RE: The other company, that might be a way to go, although it would be insanely annoying to have to do everything multiple times; the products are exactly the same, the cost is exactly the same (we basically do everything for them, it's another company in name only and the fact they...
[ 0.7006683945655823, -0.1555861532688141, 0.4038756489753723, 0.29812294244766235, 0.02036980539560318, 0.26276159286499023, -0.40490639209747314, 0.21277323365211487, -0.2546185255050659, -0.35311925411224365, 0.3238196074962616, 0.9273888468742371, 0.11772752553224564, 0.39067739248275757...
The current system is a mess largely because **everything** (database, code files, images, everything) is duplicated, so refactoring the code in our website requires an identical change made to the other website. **EDIT (2/17/2009 @ 4:52PM):** Some very good ideas so far. One of the issues is that, apart from reportin...
[ 0.6512057781219482, 0.19015082716941833, 0.6897006630897522, 0.16777710616588593, 0.2714695334434509, -0.011320846155285835, 0.06488093733787537, 0.13424238562583923, -0.46513113379478455, -0.4061300754547119, -0.0051252953708171844, 0.7277673482894897, 0.14791634678840637, 0.4907856881618...
customer is ordering for a BPA (this will be determined by our order processing system and/or manual override by a user), the price is automatically the BPA price. The list price might be shown to display the discount you are getting, and it's required for reports, but nothing else. Also, I'm unsure of how badly norma...
[ 0.48151883482933044, 0.03904830291867256, 0.5487643480300903, -0.11515261232852936, 0.20207776129245758, 0.42988869547843933, -0.25553151965141296, 0.22801047563552856, -0.20131845772266388, -0.26367032527923584, 0.034992579370737076, 0.7076345086097717, 0.07231920212507248, 0.058062154799...
related tables are linked via the SKU. With a separate price table it becomes even more unwieldy, although I could still use the SKU as the reference (it's going to be a unique index for a product) but a lot more would have to be done manually. * My first question is, can all of the prices be calculated from one of the...
[ 0.5715413689613342, -0.1472577452659607, 0.7343401312828064, 0.38307613134384155, -0.15516315400600433, -0.029398459941148758, -0.4515779912471771, -0.11655951291322708, -0.5016602873802185, -0.42492619156837463, 0.048293352127075195, 0.417392760515213, 0.23171362280845642, 0.3709737360477...
remain the same or does it change? If it stays the same, this is easier than if it changes. You're on the right lines with having a start and end date set for product prices as this will be fundamental for historical price reporting. **EDIT:** I was thinking that you could use [persisted computed columns](http://ms...
[ 0.44883379340171814, -0.14947408437728882, 0.5961076617240906, 0.08177098631858826, 0.21939717233181, 0.31965938210487366, -0.14538945257663727, -0.024079859256744385, -0.4259908199310303, -0.4185941517353058, 0.08374857157468796, 0.6983712315559387, 0.06115304306149483, 0.5300071239471436...
the info so far, I think you're best option would be to have a separate `PRICE` table from your `PRODUCT` table and a product\_id foreign key in your `PRICE` table referencing a primary key id of the `PRODUCT` table - **PRODUCT table** ``` id | name | image | description | etc... ``` **PRICE table** ``` id | prod...
[ 0.43587303161621094, 0.19609346985816956, 0.5588271617889404, -0.02748042158782482, 0.2217666506767273, 0.06896714866161346, -0.6795718669891357, 0.003921989351511002, -0.03859919682145119, -0.5435922145843506, -0.25710347294807434, 0.7101561427116394, 0.1153194010257721, 0.646719157695770...
above structure, now when you have a price change, you would need to insert a new record in the PRICE table for the product. Set up indexes on start and end dates, then you would query products and prices as follows ``` SELECT product.name, price.list_price, price.cost_price, price.retail_price /*, ETC... */ FROM pro...
[ 0.4538005292415619, 0.11258447915315628, 0.48012739419937134, 0.05482237786054611, 0.10047703236341476, 0.2356344312429428, -0.3743385374546051, -0.3927670121192932, -0.3601451516151428, -0.7132703065872192, 0.0010027071693912148, 0.4998430013656616, -0.08929577469825745, 0.80436772108078,...
for each product. To handle the other company situation, provided the proper permissions and restrictions are put in place, I see *few* \* problems with storing their prices in the same database. You say they use different markup - are you referring to their prices? If so, you could handle this with a company\_id with...
[ 0.7148818969726562, 0.30508995056152344, 0.11353950202465057, 0.12751168012619019, 0.16014179587364197, 0.06977856904268265, -0.43932396173477173, 0.02557450346648693, -0.22438612580299377, -0.3497985899448395, 0.08178061991930008, 0.5716041922569275, -0.011997416615486145, 0.4889747202396...
would imagine the logic to be similar for other platforms).
[ -0.06562526524066925, -0.03269228711724281, 0.3280941843986511, 0.261152446269989, 0.2315472662448883, 0.07891897857189178, 0.02922157756984234, -0.15261054039001465, -0.030354153364896774, -0.2460176646709442, -0.02468550205230713, 0.46088847517967224, -0.04850820451974869, 0.033776067197...
I've gotten pretty used to step-through debuggers over the years, both in builder, and using the pydev debugger in Eclipse. Currently, I'm making something in Python and running it on Google App Engine, and I should add that I'm pretty new to developing any real web app; I've never really done much beyond editing HTM...
[ 0.43690308928489685, 0.17733587324619293, 0.20288752019405365, -0.011733544990420341, -0.2418128103017807, 0.09408494085073471, 0.3151819705963135, -0.16415904462337494, -0.3229480981826782, -0.6496180891990662, 0.04459857940673828, 0.7986828684806824, -0.17215284705162048, -0.265611082315...
a better technique for dealing with this? The dev\_appserver is just a python script, you can simply use the pydev debugger on that script with the proper arguments as far as I know. Here is a very detailed guide on how to do that: <http://www.ibm.com/developerworks/opensource/library/os-eclipse-mashup-google-pt1/ind...
[ 0.44206148386001587, 0.03705276921391487, 0.1243307963013649, 0.0864751860499382, -0.19654394686222076, -0.11223980039358139, 0.20226116478443146, -0.015555090270936489, -0.3378550410270691, -0.5892598628997803, 0.012007303535938263, 0.8426810503005981, -0.2553561329841614, -0.278914272785...
I Have a string that is equal to a date, represented as the number of milliseconds since the Unix epoch. I am trying to output it into d-m-Y. The string I was given was "1227643821310", and I am told that the result should be equal to *2-12-2008*, but I keep getting a result of *25-11-2008* My code is as follows: `...
[ 0.1320759505033493, 0.27979138493537903, 0.6421610713005066, -0.18171845376491547, -0.06755556911230087, 0.1847115159034729, 0.124522864818573, -0.1743757277727127, -0.2823050916194916, -0.33075201511383057, 0.3090551197528839, 0.234495609998703, 0.25462520122528076, 0.6107983589172363, ...
I know this is not related to programming but I am curious to know about which Framework or tool (like we use .NET Framework to develop desktop application interface) mozilla uses to develop their products like "Firefox", "Thunderbird" etc. I like the interface of their applications the buttons especially looks cool a...
[ 0.4706200957298279, -0.022579414770007133, 0.025353334844112396, 0.18764008581638336, -0.20915374159812927, 0.12353894114494324, -0.2677036225795746, -0.07337880879640579, -0.3250071704387665, -0.6780257821083069, 0.17032787203788757, 0.5026306509971619, -0.22129827737808228, -0.0877466797...