text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
(not to start a holy war) be structured as follows: If it's data, or something that can be changed, then it should be like this: ``` <Person> <FirstName>John</FirstName> <LastName>Smith</LastName> <Age>23</Age> </Person> ``` If it's an attribute of the thing `Person` then it should be like this: ``` <Person ...
[ 0.3003770709037781, 0.16419270634651184, 0.2542321979999542, 0.03601124510169029, -0.026476863771677017, -0.06047685071825981, 0.42594820261001587, -0.3315071761608124, -0.14265988767147064, -0.43919989466667175, -0.14604894816875458, 0.449443519115448, -0.09779182821512222, 0.077454999089...
in those holes. If you decide how you're going to change how you fill in those holes, then it becomes tougher if you've made them 'attributes' instead of 'data' when you want to Transform your XML later.
[ 0.5265197157859802, 0.14643777906894684, -0.007962419651448727, 0.4478510022163391, 0.2139153927564621, 0.0329839363694191, -0.15428093075752258, -0.09172437340021133, -0.13672861456871033, -0.745972752571106, 0.014916369691491127, 0.4043991267681122, -0.09948141127824783, -0.1554954051971...
All members are camel case, right? Why True/False but not true/false, which is more relaxed? From [Pep 285](http://www.python.org/dev/peps/pep-0285/): > Should the constants be called 'True' > and 'False' (similar to > None) or 'true' and 'false' (as in C++, Java and C99)? > > > => True and False. > > > Most rev...
[ -0.01956055499613285, 0.04304172471165657, 0.06927967816591263, 0.1189190223813057, -0.31881552934646606, 0.0666336640715599, 0.24474942684173584, -0.3350485563278198, -0.20833143591880798, 0.027954047545790672, -0.045102085918188095, 0.6575694680213928, -0.3842073678970337, -0.11972282826...
I have a 2D bitmap-like array of let's say 500\*500 values. I'm trying to create a linear gradient on the array, so the resulting bitmap would look something like this (in grayscale): [![Example gradient](https://i.stack.imgur.com/Zdn9Q.jpg)](https://i.stack.imgur.com/Zdn9Q.jpg) (source: [showandtell-graphics.com](h...
[ -0.14293964207172394, -0.08194806426763535, 0.6015416383743286, -0.1334356814622879, -0.09125532954931259, 0.3259984850883484, -0.076080322265625, -0.40311795473098755, -0.026532204821705818, -0.760517954826355, 0.4124930799007416, 0.6850394606590271, -0.07874526083469391, -0.0199248548597...
going to implement it in C++, but I would like some general algorithm. In your example image, it looks like you have a radial gradient. Here's my impromtu math explanation for the steps you'll need. Sorry for the math, the other answers are better in terms of implementation. 1. Define a linear function (like y = x + 1...
[ 0.277782142162323, -0.1743648797273636, 0.4790753722190857, -0.13732853531837463, -0.18233542144298553, 0.15591886639595032, -0.007800151593983173, -0.0018483507446944714, -0.231716126203537, -0.5075784921646118, -0.02209235168993473, 0.43570053577423096, -0.6087148785591125, -0.0299858637...
want to handle things like brightness, you'll have to do some tricks with the range (i.e. the y value). 2. Next you need to map a vector across the matrix you have, as this defines the direction that the colours will change in. Also, the colour values defined by your linear function will be assigned at each point along...
[ -0.04260794073343277, -0.5539078712463379, 0.445549875497818, -0.17333514988422394, -0.17476196587085724, 0.3374694585800171, 0.06215927377343178, -0.3865587115287781, -0.08658807724714279, -0.8126563429832458, 0.18099266290664673, 0.31187209486961365, -0.4863474667072296, 0.10486080497503...
assigned a value from the vector where a perpendicular line from the cell intersects the vector. See the diagram below where c is the position of the cell and . is the the point of intersection. If you pretend that the colour at . is Red, then that's what you'll assign to the cell. ``` | c ...
[ -0.045928604900836945, 0.15980742871761322, 0.37694135308265686, -0.08384060114622116, -0.07500983029603958, 0.27514252066612244, -0.034965988248586655, -0.47188055515289307, -0.3145168721675873, -0.47985586524009705, -0.24380537867546082, 0.12808161973953247, -0.5610265135765076, 0.217508...
| Vect:____.______________ | | ```
[ -0.25670841336250305, 0.636174738407135, 0.3375965356826782, -0.22015483677387238, -0.18476855754852295, 0.24955782294273376, 0.34141451120376587, -0.056350793689489365, 0.0830087959766388, -0.5140597820281982, -0.2266041338443756, 0.5969954133033752, -0.22306448221206665, 0.32426339387893...
I want to avoid calling a lot of `isinstance()` functions, so I'm looking for a way to get the concrete class name for an instance variable as a string. Any ideas? ``` instance.__class__.__name__ ``` example: ``` >>> class A(): pass >>> a = A() >>> a.__class__.__name__ 'A' ```
[ -0.1915026605129242, 0.05707789584994316, -0.03908444568514824, -0.14287839829921722, -0.10138329863548279, 0.05272628739476204, 0.10078823566436768, -0.07449878752231598, -0.2758486270904541, -0.5314706563949585, 0.04689626395702362, 0.46634218096733093, -0.3382336497306824, 0.19785024225...
Has anyone run into this problem... In my layout.phtml I have: ``` <head> <?= $this->headTitle('Control Application - ') ?> </head> ``` then in index.phtml I have: ``` <? $this->headTitle()->append('Client List'); ?> ``` I expect that, when I go to my index action, the title should be 'Control Application - ...
[ -0.410758912563324, 0.10980569571256638, 0.8673430681228638, -0.20143263041973114, -0.12334715574979782, 0.00012308637087699026, -0.004266333766281605, -0.19478018581867218, -0.2546525299549103, -0.41096585988998413, -0.3420024514198303, 0.6423426270484924, -0.4193826913833618, 0.055008377...
following stack: > ClientListControl Application - **The solution, in layout.phtml:** ``` <?php $this->headTitle()->prepend('Control Application -'); echo $this->headTitle(); ?> ```
[ -0.4201743006706238, 0.1500781923532486, 0.8943380117416382, -0.11524266749620438, 0.012514222413301468, 0.1576155722141266, 0.1083182618021965, -0.4248421788215637, -0.3626995086669922, -0.4562790095806122, -0.3659054934978485, 0.40983277559280396, -0.32563212513923645, 0.0695631131529808...
In other words, what's the sprintf equivalent to pprint? The [pprint](http://docs.python.org/library/pprint.html) module has a function named [pformat](http://docs.python.org/library/pprint.html#pprint.pformat), for just that purpose. From the documentation: > Return the formatted representation of object as a string...
[ -0.4737395942211151, -0.18102309107780457, 0.735664963722229, -0.27533355355262756, 0.0047402591444551945, 0.24396614730358124, -0.08451201766729355, -0.11010466516017914, -0.3816394507884979, -0.30310487747192383, -0.6219121813774109, 0.3810335397720337, -0.45533958077430725, -0.243993997...
I'm trying to display an update progress loading image whenever my update panel does it's Ajax thing. I've looked around at tutorials and it seems really straightforward but I'm having no luck. Here is pretty much what I have... ``` <div id="panelWrapper"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="...
[ -0.21115761995315552, 0.03703811392188072, 0.4843766689300537, -0.1886158436536789, -0.4060446321964264, 0.30960848927497864, 0.245695099234581, -0.25065475702285767, -0.20366518199443817, -1.002586841583252, 0.11515722423791885, 0.5436097979545593, -0.09132316708564758, -0.469324350357055...
</ProgressTemplate> </asp:UpdateProgress> <div id="UrlDiv" class="URLNotification"> <asp:Label ID="UrlLabel" runat="server" Text="URL:" AssociatedControlID="Url" /> <asp:HyperLink ID="Url" runat="server" Text="Click &quotGenerate" to create the URL." /> </div> <...
[ -0.10102444142103195, 0.18128862977027893, 0.6025251150131226, -0.1665518432855606, -0.00935219693928957, 0.10838241130113602, 0.075544573366642, -0.3838035464286804, -0.14475518465042114, -0.5098350048065186, -0.42745593190193176, 0.100266233086586, -0.28678783774375916, 0.240631580352783...
<asp:ListItem Selected="True">Include 1</asp:ListItem> <asp:ListItem Selected="True">Include 2</asp:ListItem> </asp:CheckBoxList> <br /> <div id="buttons" style="display:inline;"> <asp:Button ID="Generate" runat="server" OnClicked="Generate_Clicked" Text="Generate" /> ...
[ -0.16901594400405884, -0.20773351192474365, 0.8243269324302673, -0.27700337767601013, -0.24353916943073273, 0.08677752315998077, -0.09951642900705338, -0.49049055576324463, 0.055711548775434494, -0.5570555329322815, 0.29447078704833984, 0.5591732859611511, 0.02438966929912567, -0.538826584...
I've tried a bunch of variations of what you see here and have not found much good information as to what may be the issue. Any ideas? If you need anything else, let me know. **EDIT:** The only new information I've found is that... "In the following scenarios, the UpdateProgress control will not display automatica...
[ -0.019765270873904228, -0.07832232862710953, 0.5241378545761108, 0.22538067400455475, 0.2930910587310791, -0.15845640003681183, 0.3396351933479309, 0.15954218804836273, -0.19720908999443054, -0.7712908387184143, -0.3878377079963684, 0.8315017819404602, -0.39729928970336914, -0.166011124849...
is not inside an UpdatePanel and is not a trigger. For example, the update is performed in code." I'm pretty confident neither of these fit into my case. All that is happening is the button (which is inside the update panel) is clicked calling some code behind which set's the URL text to be reloaded for the update pan...
[ 0.25840574502944946, 0.0772276520729065, 0.6143618226051331, 0.1626340001821518, 0.07833913713693619, -0.3716309070587158, 0.21997418999671936, 0.252763956785202, -0.06339047849178314, -0.4415471851825714, -0.03251887857913971, 0.7112115621566772, -0.2356647253036499, -0.10831180959939957,...
basically what happened was that the loading icon wouldn't show up on the initial page load. I realized this because I actually waited till after everything on the page was completely loaded to fire off the button. Sure enough the loader showed up. I assumed that the update panel refresh would at least be requested t...
[ 0.0736953392624855, 0.04038483649492264, 0.4871692657470703, 0.08408469706773758, -0.21644631028175354, -0.29766014218330383, 0.38770508766174316, 0.2909795045852661, -0.46287691593170166, -0.1422305852174759, -0.10960063338279724, 0.6846413612365723, -0.19909904897212982, 0.21980860829353...
I've googled around and searched the MYSQL docs ad nauseam and couldn't find a succinct way of automating deletion of records that exceeded a given timeframe. I've been able to get a query in 5.1 to cast a value of TIMESTAMP to DATETIME within a DIFF function with the current time to see if it meets the criteria of exp...
[ 0.39889973402023315, -0.06530006229877472, 0.24602095782756805, -0.022685769945383072, 0.3168605864048004, -0.09812156856060028, 0.172909677028656, -0.08538933843374252, -0.3274737000465393, -0.4616522789001465, 0.16300439834594727, 0.17290423810482025, -0.2615802586078644, 0.6325357556343...
= { user | CURRENT_USER }] EVENT [IF NOT EXISTS] event_name ON SCHEDULE schedule [ON COMPLETION [NOT] PRESERVE] [ENABLE | DISABLE | DISABLE ON SLAVE] [COMMENT 'comment'] DO sql_statement; schedule: AT timestamp [+ INTERVAL interval] ... | EVERY interval [STARTS timestamp [+ INTERVAL interval] ...] [ENDS timesta...
[ 0.012318922206759453, -0.04937402531504631, 0.3126773238182068, -0.14108043909072876, 0.18202495574951172, -0.017651325091719627, 0.3742791712284088, 0.07584614306688309, -0.34314167499542236, -0.7096804976463318, 0.019511597231030464, 0.5821706056594849, -0.23000292479991913, 0.0501084774...
If you are having trouble getting it set up, post the query and error your are getting.
[ 0.44048482179641724, 0.00752647640183568, -0.055870767682790756, 0.2033543884754181, 0.2076222449541092, -0.38913291692733765, 0.04308689013123512, 0.43226709961891174, 0.04356062039732933, -0.7094554901123047, -0.14628662168979645, 0.47640904784202576, -0.00013591790047939867, 0.023681744...
I have a ComboBox in WPF which is databound, and has data template which controls how each of the items is displayed. I have made it so that each item is displayed with two bits of text (for the Name and Path properties) and one image (for the Icon property). At the moment when I select an item from the ComboBox the t...
[ 0.3687562644481659, -0.35578638315200806, 0.16175100207328796, 0.13648578524589539, -0.24536722898483276, 0.009073599241673946, 0.17263133823871613, -0.5033619999885559, 0.11458774656057358, -0.7744629979133606, 0.08533273637294769, 0.34403324127197266, -0.11013989895582199, 0.046510640531...
it displays the value of one of the fields there (eg. so it shows the value of the Name field rather than the name of the class)? 2. Is it possible get it to use the same DataTemplate there as in the list of items, so that once I have selected an item it displays in the closed ComboBox the same way as it looks in the l...
[ 0.0661923885345459, -0.4063096046447754, 0.2048826962709427, 0.36914750933647156, -0.20966139435768127, -0.32451364398002625, -0.18182078003883362, -0.1978912502527237, -0.18404407799243927, -0.6201762557029724, -0.10602083802223206, 0.35626986622810364, -0.060542840510606766, -0.022693056...
item in the ComboBox, but I want to get that to replace the textbox in the ComboBox. **Update:** Thanks for the first answer. I've tried using a separate ContentControl, as you've described, and it works fine. The question now is how to replace the textbox part of the ComboBox with this ContentControl. Any hints on t...
[ 0.23363268375396729, -0.20477604866027832, 0.40109413862228394, 0.47001874446868896, -0.0434618704020977, -0.10134845972061157, 0.21167214214801788, 0.18244144320487976, -0.13436484336853027, -0.8504241704940796, 0.009131146594882011, 0.5580424666404724, -0.025066010653972626, 0.0790320634...
the dropdown the rest ContentControl bit will be populated with the rest of the text and the icon. Hope that makes sense - ask questions if it doesn't! **Code:** I've been asked to post my code - so here it is. I've tried to remove things that I know are definitely not relevant, but I'm not sure exactly what is relev...
[ 0.01850268431007862, -0.10427939891815186, 0.7198601365089417, 0.1704128235578537, -0.24339762330055237, -0.051638782024383545, 0.05379188060760498, -0.2653915286064148, -0.15397848188877106, -0.10248241573572159, -0.29798969626426697, 0.17946933209896088, -0.1302555352449417, -0.040374308...
Height="32" Source="{Binding Path=Image}"/> <StackPanel Margin="5"> <TextBlock FontWeight="Bold" Text="{Binding Path=Name}"/> <TextBlock Text="{Binding Path=Path}"/> </StackPanel> </StackPanel> </DataTemplate> </Window.Resources> ...
[ -0.43413469195365906, -0.29148751497268677, 0.6161969900131226, -0.19863399863243103, -0.2984906733036041, 0.24289833009243011, -0.11772570013999939, -0.5576744675636292, -0.5025537610054016, -0.5830109715461731, -0.06409239023923874, 0.3118518888950348, 0.1779426485300064, -0.220738455653...
<Button Height="23" HorizontalAlignment="Right" Margin="0,24,166,0" Name="btnTest" VerticalAlignment="Top" Width="75" Click="btnTest_Click">Add</Button> <ComboBox StaysOpenOnEdit="True" DropDownClosed="comboBox1_DropDownClosed" PreviewTextInput="comboBox1_PreviewTextInput" SelectionChanged="comboBox1_SelectionChan...
[ -0.18699604272842407, -0.23816660046577454, 0.8143311142921448, 0.20814062654972076, -0.09928298741579056, 0.1296773999929428, -0.024673212319612503, -0.6873708963394165, 0.057503968477249146, -0.7605167031288147, -0.2974815368652344, 0.37169983983039856, 0.0755007416009903, 0.070735357701...
Replace that with the ContentControl.. This is not the right solution though.
[ -0.015339069068431854, 0.19109830260276794, 0.41895124316215515, 0.09004617482423782, -0.08994345366954803, -0.4509981870651245, 0.09323878586292267, -0.08910416811704636, 0.34514811635017395, -0.43370264768600464, -0.07120019197463989, 0.4276442527770996, -0.2909276783466339, 0.2402605265...
I'm working on an open source project. The original project contains comments in russian and is using codepage 1251. I'm using codepage 1252 and the russian comments aren't displayed correctly in Visual Studio Express 2008, not nice but anyway I can't read russian. Someone using codepage 950 (traditional chinese) tried...
[ 0.4585218131542206, 0.47267186641693115, 0.07357817888259888, -0.14778311550617218, -0.3630504012107849, -0.18898184597492218, 0.10463732481002808, 0.2724127471446991, -0.23324833810329437, -0.7712246775627136, -0.046939630061388016, 0.365740567445755, -0.15455298125743866, -0.010130266658...
have already though about: * Let Visual Studio save the source code as UTF-8. But: My computer is using codepage 1252 and I found no way to tell VS that the original code source is using codepage 1251 so that the conversion won't be correct. **Edit:** As pointed by "LicenseQ" there is a way to open a single file in ...
[ 0.4868481159210205, 0.13117597997188568, 0.45154130458831787, 0.014258202165365219, -0.25104135274887085, -0.005339744500815868, 0.3229653835296631, -0.1177370473742485, -0.17177818715572357, -0.9743863344192505, -0.1917037069797516, 0.5512128472328186, -0.24487926065921783, 0.224019169807...
global setting in Windows and you need to reboot the computer so that I'm looking for a more friendly solution. * I've found a tool called [CodePageConverter](http://www.codeproject.com/KB/files/CodePage_File_Converter.aspx) which do exactly what I need, but can't a do it as batch job. Does anyone know another tool (a...
[ -0.16264986991882324, 0.009825499728322029, 0.690842866897583, -0.07374149560928345, -0.26282718777656555, 0.07586413621902466, 0.11159716546535492, 0.16411922872066498, -0.6076065301895142, -0.8508952856063843, -0.1121194139122963, 0.7091625332832336, -0.38275954127311707, -0.011519063264...
analogous issues. In a unix world the utility is called iconv. Not sure if there is a windows equivalent.
[ 0.039644960314035416, -0.10407629609107971, 0.2877798080444336, -0.0018173711141571403, -0.22935202717781067, -0.1449047327041626, 0.27103808522224426, 0.3748088777065277, -0.48150259256362915, -0.5791124105453491, -0.06179360672831535, 0.6099578142166138, -0.3946789503097534, 0.1072730198...
Is there any disadvantage you face it when you using asp.net MVC? **EDIT** If yes can you list some of those drawbacks, It really depends on the type of project. Some people like MVC because of the SEO benefit from clean urls and allowing users to intelligently "hack" urls by making intelligent url guesses. MVC co...
[ 0.33836618065834045, 0.19995398819446564, 0.15458226203918457, 0.23535606265068054, -0.34949159622192383, -0.26685038208961487, 0.3490501344203949, 0.10916836559772491, -0.3645343482494354, -0.532221794128418, -0.12364199012517929, 0.5783675312995911, -0.294932097196579, -0.218607842922210...
app might be better off having the time used to develop other areas. Then again, if all you want is clean URLs, you can implement the same thing without MVC by means of URL rewriting, <http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx> <http://msdn.microsoft.com/en-us/library/...
[ 0.5636513829231262, -0.04738624393939972, 0.3573529124259949, 0.34452566504478455, 0.0931348130106926, -0.055655013769865036, 0.23956581950187683, -0.27020323276519775, -0.29695311188697815, -0.3874678313732147, -0.034649722278118134, 0.5764420628547668, -0.3710287809371948, -0.37274327874...
time? * If all you're looking at is SEO, is URL rewriting a better approach for your needs? I'd say the disadvantages are really relative to the developer and project.
[ 0.44062456488609314, -0.06015743315219879, 0.3766283094882965, 0.06654990464448929, -0.13477778434753418, 0.09679568558931351, 0.25595715641975403, 0.12465647608041763, -0.17224352061748505, -0.688306450843811, 0.055339451879262924, 0.45399996638298035, 0.18120808899402618, -0.094133801758...
Preamble -------- So, this question has already been answered, but as it was my first question for this project, I'm going to continue to reference it in other questions I ask for this project. For anyone who came from another question, here is the basic idea: Create a web app that can make it much easier to create o...
[ 0.787724494934082, 0.19856344163417816, 0.17530882358551025, 0.2549208104610443, 0.216821551322937, -0.021449478343129158, -0.13306225836277008, 0.008792935870587826, -0.012747982516884804, -0.4447384178638458, 0.1458280086517334, 0.32414722442626953, -0.017801590263843536, -0.160308271646...
.prototype.fn otherwise. ### Currently I am working on getting the basics down: editing CSS, creating user JavaScript functions and dynamically finding their names/inputs, and other critical technical aspects of the project. Soon I will create a rough timeline of the features I wish to create. Soon after I do this, I...
[ 0.8309129476547241, 0.3243398070335388, 0.10483343154191971, 0.04740839824080467, -0.04728774353861809, -0.34814774990081787, 0.35133808851242065, 0.3489883840084076, -0.14664226770401, -0.7977496981620789, 0.12444224208593369, 0.4021539092063904, 0.16441382467746735, -0.02460639365017414,...
a web application that can build other web applications and is actively used to build and improve itself. Think of it as sort of a webapp IDE for creating webapps. So before I start explaining it further, my question to all of you is this: **What do you think would be some of the hardest challenges along the way and w...
[ 0.7324942946434021, 0.12101224064826965, 0.38621827960014343, 0.3834245800971985, -0.16316556930541992, -0.13907597959041595, 0.0007317712297663093, 0.1088191419839859, -0.3190453052520752, -0.8104982972145081, 0.10459530353546143, 0.18441174924373627, 0.17076674103736877, 0.12228291481733...
area which shows all or part of the website as it would appear. You should be free to browse it to get to the areas you want to work on and use a JavaScript debugger/console to ask "what would happen if...?" questions. I intend for the webapps to be built up via components. In other words, the result would be a very m...
[ 0.5078622102737427, -0.1357763409614563, 0.5921937823295593, 0.14168958365917206, 0.04893175885081291, -0.22236043214797974, -0.01508480403572321, -0.05814372003078461, -0.33962106704711914, -0.7340167164802551, -0.14574921131134033, 0.2765074074268341, -0.07713377475738525, 0.074381902813...
webapp should be able to produce all the code necessary to install and run the created website/webapp (so CSS, JavaScript, PHP, and PHP installer for the database). Here are the few major challenges I've come up with so far: * Changing CSS on the fly * Implementing reflection in JavaScript * Accurate and brief DOM tr...
[ 0.41005298495292664, 0.04058542102575302, 0.4984334111213684, -0.032092977315187454, -0.46261996030807495, -0.10096132755279541, 0.2663445770740509, 0.024462325498461723, -0.26022982597351074, -1.062505841255188, 0.06777776032686234, 0.5314052700996399, -0.24106258153915405, -0.34745919704...
that this is supposed to create code that can go onto others webservers, so while AppJet might be a great way for me to develop this app more rapidly, I still think I will have to generate PHP code for my users to put on their servers. Also, when I feel this is ready for beta testers, I will certainly release it for f...
[ 0.6448005437850952, 0.3653686046600342, 0.10507601499557495, 0.3836814761161804, -0.16779057681560516, -0.09301453828811646, 0.06018216535449028, 0.1468231976032257, -0.16658999025821686, -0.3640260696411133, 0.2354002743959427, 0.5465453267097473, -0.1065387949347496, -0.1353551298379898,...
widgets, a widget factory, and a factory making factory.** So, you would have to find all the different types of interactions that could be possible in making a widget, between widgets, within a factory, and between multiple widget making factories to get an idea. Something to keep on top of how far would be too far ...
[ 0.7089430093765259, -0.04748084023594856, 0.409903883934021, 0.24292433261871338, -0.2575685381889343, 0.14145463705062866, 0.06406715512275696, -0.02185465767979622, -0.36910295486450195, -0.7928116917610168, -0.0062586343847215176, 0.30913588404655457, -0.06407294422388077, 0.13561944663...
in input.** Usually as a result of clicking, or entering something. A simple example is making dynamic web forms in a database. What would you have to store in a database about where it comes/goes from? This would probably make up the presentation layer. This would probably be the best exercise to start with to get a f...
[ 0.05053984373807907, -0.297936350107193, 0.17450159788131714, 0.05012508109211922, -0.38482344150543213, 0.03825386241078377, 0.04387194663286209, 0.09132295846939087, -0.2385147213935852, -0.9736030697822571, 0.001121276873163879, 0.36228668689727783, -0.07509956508874893, -0.158238276839...
be run, etc. From a designer perspective, I would imagine a visio type program to link these events. The events in the workflow would then drive the presentation tier. **Data:** You would have to store the data about the application as much as the data in the application. So, form, event, data structures could possibl...
[ 0.6957117319107056, -0.173910990357399, 0.19116631150245667, 0.21580368280410767, -0.1613176465034485, -0.17017650604248047, 0.2551853358745575, -0.17513802647590637, -0.21598918735980988, -0.4830683171749115, -0.1635402888059616, 0.5278083682060242, -0.10732443630695343, -0.12868893146514...
point you'd have to create a table creation routine that would maintain a table for an app to the spec. *Google has something like this with their google DB online.* Hope that helps. Share what you end up coming up with.
[ 0.632909893989563, 0.18803302943706512, 0.20016545057296753, 0.35938337445259094, -0.1727091372013092, 0.11835787445306778, 0.07069835811853409, 0.3765421211719513, -0.2150810956954956, -0.6833890080451965, 0.39685866236686707, 0.11186891794204712, 0.30920037627220154, -0.11350380629301071...
> **Possible Duplicate:** > > [When should you use 'friend' in C++?](https://stackoverflow.com/questions/17434/when-should-you-use-friend-in-c) I was brushing up on my C++ (I'm a Java developer) and I came across the `friend class` keyword which I had forgotten about for a while. Is this one of those features that'...
[ -0.15840299427509308, 0.04854828491806984, 0.09365954995155334, -0.2682836353778839, 0.16409596800804138, 0.1265023946762085, 0.26571357250213623, 0.12548935413360596, -0.28000715374946594, -0.6380561590194702, 0.09325074404478073, 0.3545208275318146, 0.08664575964212418, 0.031688883900642...
asking, is this just an advanced feature that adds no real value except to confuse people looking at you're code until they realize what you're doing? I agree with the comments that say the friend keyword can improve encapsulation if used wisely. I'd just add that the most common (legitimate!) use for friend classes ma...
[ 0.45266568660736084, 0.03560550883412361, -0.3126950263977051, 0.3062416613101959, -0.14434213936328888, -0.16326919198036194, 0.373430997133255, 0.0916186198592186, -0.12582263350486755, -0.29384753108024597, 0.1724974811077118, 0.5914101004600525, 0.1142544373869896, 0.0777227133512497, ...
Here is part of a stack-trace from a recent run of an unreliable application written in Python which controls another application written in Excel: ``` pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2146788248), None) ``` Obviously something has gone wrong ... but what?[1] These...
[ -0.03647060692310333, 0.49392402172088623, -0.00684188399463892, 0.11931385844945908, 0.12573575973510742, -0.018407098948955536, 0.3886256515979767, 0.1656721830368042, -0.23559978604316711, -0.5569103360176086, 0.11278842389583588, 0.4868820607662201, -0.3065244257450104, 0.2425391525030...
have a Name property... not all bugs are this easy to find! You are not doing anything wrong. The first item in your stack trace (the number) is the error code returned by the COM object. The second item is the description associated with the error code which in this case is "Exception Occurred". pywintypes.com\_error ...
[ 0.3795362114906311, -0.006694520823657513, 0.20705975592136383, 0.12986567616462708, 0.2561413645744324, -0.3741680085659027, 0.4000243842601776, -0.22496473789215088, -0.3490443229675293, -0.5783839821815491, -0.05889967828989029, 0.575884997844696, -0.1485651135444641, 0.0398399233818054...
That utility also calls FormatMessage for you and displays the result. Not all error codes will work with this mechanism, but many will. That's usually my first stop.* Error handling and reporting in COM is a bit messy. I'll try to give you some background. All COM method calls will return a numeric code called an HR...
[ 0.3979024291038513, -0.00997235905379057, 0.07365863025188446, 0.18034182488918304, -0.09332006424665451, -0.018934132531285286, 0.3015384078025818, 0.18148821592330933, -0.31838637590408325, -0.8576337099075317, 0.028565511107444763, 0.6304239630699158, -0.15136836469173431, -0.0960307642...
return codes for common results and problems, or the object can return custom numeric codes for special situations. For example, the value 0 (called S\_OK) universally means "No error" and 0x80000002 is E\_OUTOFMEMORY. Sometimes the HRESULT codes are returned by the object, sometimes by the COM infrastructure. A COM o...
[ -0.09478244185447693, 0.0013045482337474823, 0.4173153340816498, 0.03372286632657051, -0.14251628518104553, 0.14661075174808502, 0.27964848279953003, -0.027696100994944572, -0.014808924868702888, -0.41452544927597046, -0.39896437525749207, 0.6101049780845642, -0.11959782242774963, 0.185203...
and VBA. the `Err` object allows you to access all that information (`Err.Description`, etc). To complicate matters, late bound COM objects (which use a mechanism called COM Automation or IDispatch) add some layers that need to be peeled off to get information out. Excel is usually manipulated via late binding. Now l...
[ 0.23946250975131989, 0.07787606120109558, 0.2073207050561905, 0.06950780749320984, -0.23105597496032715, -0.10484977811574936, 0.23851816356182098, -0.13232015073299408, -0.2757757604122162, -0.4711052477359772, -0.35794293880462646, 0.7436380386352539, -0.360082745552063, 0.29431846737861...
that begin with DISP\_ are IDISPATCH error codes. The error loosely means "There was a COM exception thrown by the object", with more information packed elsewhere (although I don't quite know where; I'll have to look it up). From what I understand of pywintypes.com\_error, the last number in your message is the actual...
[ 0.07346192747354507, -0.053547002375125885, 0.43527716398239136, 0.00225829822011292, 0.049869466572999954, 0.0892171785235405, 0.5317583084106445, 0.050738375633955, -0.20010598003864288, -0.425333172082901, -0.16298574209213257, 0.5369138717651367, -0.3273948132991791, 0.0353773720562458...
centralized meaning. The same number can mean entirely different things for different programs. In this case, we have reached a dead end: > The error code is "custom", and the application needs to document what it is, except that Excel doesn't. Also, Excel (or the actual source of the error) doesn't seem to be provid...
[ 0.3268604874610901, 0.15728144347667694, 0.18398214876651764, 0.5307198166847229, -0.07665415853261948, -0.37731117010116577, 0.11513254791498184, 0.3855009377002716, -0.11093278229236603, -0.728438138961792, -0.0502745695412159, 0.3275402784347534, 0.03441280126571655, 0.1543976068496704,...
in the object"). Instead of a nice "Could not read the Name property", you get "***Run-time error '1004': Application defined or object-defined error***" (which I just got by trying to access a Name property on a Range, from VBA in Excel). That is NOT very helpful. The problem is not routed on Python or it's interface...
[ -0.22556231915950775, 0.15380612015724182, 0.25850170850753784, 0.14442063868045807, -0.08506180346012115, -0.189748153090477, 0.527472734451294, 0.13524694740772247, -0.3202792704105377, -0.5162413716316223, 0.08920227736234665, 0.7115187048912048, -0.17132538557052612, 0.1180226802825927...
``` <?php $var = NULL; var_dump(isset($var)); // bool(false) var_dump(isset($unset_var)); // bool(false) ?> ``` isset($var) should return TRUE, since it has been set to NULL. Is there any way to check for this? Thanks! use get\_defined\_vars() to get an array of the variables defined in the current sco...
[ 0.29209280014038086, 0.3894244432449341, 0.3293481171131134, -0.15954943001270294, -0.15680524706840515, -0.08504913002252579, 0.717060923576355, -0.3358412981033325, -0.07442516833543777, -0.4527246057987213, -0.21538572013378143, 0.6525550484657288, -0.4686872661113739, 0.151256427168846...
In my career I've come across two broad types of theory: physical theories and educational/management theories: Physical theories are either correct (under appropriate conditions) or incorrect, as judged by the physical world. Educational/management theories have the appearance of being like physical theories, but th...
[ 0.6861703395843506, 0.18612535297870636, -0.3558816611766815, 0.35066360235214233, 0.032313089817762375, 0.047384340316057205, 0.1745048612356186, 0.2914718985557556, -0.14591898024082184, -0.4980136752128601, 0.0906279906630516, 0.6295152902603149, -0.17488299310207367, 0.2555956244468689...
these theories to be physical-like or educational/management-like? Or have I mis-understood software engineering and find myself being in the position of "not even wrong"? Software engineering is ultimately about psychology, how humans manage complexity. So software engineering principles are far more like education a...
[ 0.32353347539901733, 0.3215366005897522, 0.08135740458965302, 0.4052978456020355, -0.06733577698469162, 0.1870894730091095, 0.2955840229988098, 0.008998382836580276, -0.03893059492111206, -0.5751417279243469, 0.015863193199038506, 0.6640833616256714, -0.1680246740579605, 0.1869910806417465...
etc. It's a branch of psychology or sociology.
[ 0.7912853360176086, 0.09576015174388885, -0.27320924401283264, 0.23455601930618286, 0.06910595297813416, 0.25771966576576233, 0.1707497537136078, 0.44180411100387573, -0.33496755361557007, -0.18280674517154694, -0.09330300986766815, 0.5414077639579773, 0.0568881593644619, -0.00775998877361...
Does anyone have any idea how it would be possible to transition from business to game programming? How would anyone get a start in game programming? It seems much more exciting and rewarding (better paying too?). But it seems like most of the jobs out of school are for business programming. Any advice or insight on ho...
[ 0.5982092022895813, -0.05658978596329689, -0.5069540143013, 0.4110047519207001, 0.17549793422222137, -0.34090447425842285, 0.08290105313062668, 0.5261762142181396, -0.37707120180130005, -0.7386593222618103, 0.26114311814308167, 0.717831015586853, 0.3416021168231964, 0.2648794651031494, -...
To back that up I'll quote some stats from the 2004 igda survey on quality of life for game developers: * 34.3% of developers expect to leave the industry within 5 years, and 51.2% within 10 years. * Only 3.4% said that their coworkers averaged 10 or more years of experience. * Crunch time is omnipresent, during which...
[ 0.2600468397140503, 0.23059092462062836, 0.06295163184404373, -0.04467003419995308, -0.03778192773461342, 0.34811538457870483, 0.2839241325855255, 0.22769398987293243, -0.5067837238311768, -0.22853483259677887, -0.10174325853586197, 0.608062744140625, 0.14570394158363342, 0.126401886343956...
enough money." (35.6%). * Contrary to expectations, more people said that games were only one of many career options for them (34%) than said games were their only choice (32%). Many years ago I created a couple of game development websites on my own and then was one of the founders of GameDev.net. One of the reasons ...
[ 0.8392601609230042, 0.039984263479709625, 0.10850085318088531, 0.3616179823875427, 0.09734363108873367, 0.021183056756854057, 0.11075735837221146, 0.263807475566864, -0.3654361665248871, -0.5975562930107117, 0.32575520873069763, 1.0366854667663574, 0.3116544485092163, 0.11600824445486069, ...
me the following things: * There is an endless supply of developers out there who believe game development would be really cool. The people hiring for the industry know this and aren't going to pay you nearly as well because they rely on this basically inexhaustible pool of people. * Many of the developers within the ...
[ 0.9945911169052124, 0.39908117055892944, -0.0989842414855957, 0.32278192043304443, -0.07864365726709366, -0.1555466651916504, 0.13333582878112793, 0.5141258239746094, -0.25049954652786255, -0.4094184339046478, 0.0700652003288269, 0.8463578820228577, 0.2504742741584778, 0.18215171992778778,...
they know better the time crunch to get stuff out the door often makes them toss good software practices in a foolish attempt to save time. * Working on a game for two years can quickly become no different than working on any other program for two years. That is, when you have to dig around in the guts of the program d...
[ 0.7572858929634094, 0.15294641256332397, -0.07225577533245087, 0.19588595628738403, 0.3738284111022949, -0.4513793885707855, 0.3455229103565216, 0.21676596999168396, -0.5261160135269165, -0.4903104901313782, -0.00014704707427881658, 0.2487686425447464, 0.4910648465156555, 0.350305318832397...
a while. * What says you are going to be working on Half-Life X or one of the few dozen cool games that come out every year anyway? Remember, somebody is out there building the game that goes with the next Will Farrell movie and it's probably going to be you. Look around at most of the dreck that comes out. That stuff ...
[ 1.0185208320617676, -0.4060615301132202, 0.12994150817394257, 0.2513151466846466, 0.06743697077035904, -0.44499197602272034, 0.14626270532608032, 0.6917616128921509, -0.1104784682393074, -0.22549712657928467, 0.31069204211235046, 0.5422022938728333, 0.13080129027366638, 0.3132920563220978,...
Our organization has a central solution for forms authentication. I am trying to implement an ASP.Net MVC app that uses this external URL - and it worked till RC! was released... Here's what's happening In an ActionAttribute Extension I check for s session var if not found check for a request data chuck if found...
[ 0.5527994632720947, 0.018102023750543594, 0.6020357012748718, 0.025485169142484665, -0.31590786576271057, -0.37355515360832214, 0.42389366030693054, -0.3162165582180023, -0.4428311884403229, -0.4046207070350647, -0.008510111831128597, 0.5599928498268127, -0.16373266279697418, 0.13934895396...
removed the redirection code and replaced it with the web.config changes for Forms Auth - and the same thing happened... Use px (pixels) instead of pt (points) for your font size units. Then you'll be dealing with pixel sizes. Beware however, depending on how your site is used. There have been lawsuits (in the US) ov...
[ 0.3920389413833618, 0.00801462959498167, 0.3785111904144287, 0.2227592021226883, -0.20748606324195862, 0.14903624355793, 0.2066376954317093, -0.01738363318145275, -0.14061816036701202, -0.7049408555030823, -0.14051856100559235, 0.1410384625196457, -0.48177915811538696, -0.02758765034377575...
You know the one I mean: ![Excel has crashed... again!](https://farm4.static.flickr.com/3429/3258031261_1149df469c_o.jpg) Is there a way to disable this? I'm writing an application to automatically test a large number of Excel spreadsheets which are used in a critical environment. Many of these sheets do crazy thin...
[ 0.2847655713558197, 0.20392002165317535, 0.0058163730427622795, 0.19238725304603577, -0.3075408637523651, -0.5347921252250671, 0.4029751718044281, 0.4316565990447998, -0.30267202854156494, -0.35955798625946045, -0.061051126569509506, 0.42241859436035156, -0.40178537368774414, 0.35802918672...
you can easily turn off [Turn off Error Reporting in Microsoft Windows XP Professional](https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-5276398.html) If that doesn't work go to Control Panel / Admin tools / Services and stop and disable the "Error Reporting Service"
[ 0.452467679977417, 0.25636035203933716, 0.3295471966266632, 0.14366614818572998, 0.10764151811599731, -0.520858108997345, 0.3543264865875244, 0.1411939114332199, -0.001229042885825038, -0.3528014123439789, -0.6259146332740784, 1.0279227495193481, -0.2111719846725464, 0.08852339535951614, ...
I have a javascript function (function1) that checks some global variables (can the user connect, is the service available, etc) before calling another (legacy) function (function2) that actually pops a window and connects the user to our service. I want to prevent function2 from being called anywhere but from function...
[ 0.14174534380435944, 0.03710317239165306, 0.07961864024400711, -0.04930799454450607, -0.0678553506731987, -0.14354513585567474, 0.2588123083114624, -0.12213501334190369, -0.10144897550344467, -0.5549009442329407, -0.04917995631694794, 0.6008029580116272, -0.4948176443576813, 0.094468891620...
caller function in JavaScript?](https://stackoverflow.com/questions/280389/javascript-how-do-you-find-the-caller-function) and this: * <https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/caller>
[ 0.02852918952703476, 0.0690593421459198, 0.36650416254997253, 0.04000989347696304, 0.28488489985466003, -0.07587363570928574, 0.015048769302666187, -0.11735927313566208, -0.33978280425071716, -0.26232635974884033, -0.21792468428611755, 0.6656678915023804, -0.517622172832489, -0.13581493496...
I'm trying to automate the build process for engineering group. As part of that automation, I'm trying to get to a point where the act of applying a specific tag that adheres to a pattern will kick off an automated process that will do the following: * Check out source code * Create a build script from a template * Bu...
[ 1.0434391498565674, 0.286075621843338, 0.0834345817565918, -0.19305922091007233, -0.06838250160217285, -0.1391960084438324, 0.44005975127220154, -0.2060452699661255, -0.06886900216341019, -0.7140516042709351, 0.06502047181129456, 0.6079222559928894, -0.15405531227588654, -0.235910281538963...
subversion repository to kick off my workflow? * Are there any decent tools that help with this (.NET would be great if possible). * Am I better off just writing an engine to do this? My preferences: * Existing product that does all or part of this * If development work needs to occur, .NET is preferable * Works with...
[ 0.3895261883735657, -0.5773565173149109, -0.09204837679862976, 0.08907310664653778, -0.30615484714508057, -0.13185793161392212, 0.2917059063911438, 0.3325231075286865, -0.19062255322933197, -0.5362659692764282, 0.2868882715702057, 0.4641730785369873, -0.3299809396266937, -0.057369902729988...
within a day. It has gone through a lot of tweaks, but I would recommend it to anyone. I have also used cruise control but am not as happy with that. I don't have any specific reasons other than cross-platform issue. EDIT I recently added a job on my hudson build server that listens for a google/gmail jabber chat. I...
[ 0.4362078309059143, 0.002178825903683901, 0.38403308391571045, -0.107045479118824, 0.19110167026519775, -0.28456971049308777, 0.19525796175003052, 0.09188707917928696, 0.09080317616462708, -0.6793075203895569, 0.2323160320520401, 0.8532083034515381, 0.03486486151814461, -0.1491084843873977...
Our web service wraps around a third party library that contains the following code. We are using an Active Directory service account in the IIS 6 app pool (no interactive login abilities). Our service fails with the error “The system cannot find the file specified”. We’ve traced the error to the `RSACryptoServicePro...
[ 0.22723233699798584, 0.36419087648391724, 0.5175514221191406, 0.138988196849823, 0.4652351438999176, -0.11618582159280777, 0.5836046934127808, 0.013571897521615028, 0.06193679943680763, -0.8844577670097351, -0.27752238512039185, 0.367605596780777, -0.3403821289539337, 0.3686547875404358, ...
Data\Microsoft\Crypto\RSA\MachineKeys”. Code: ``` StringBuilder builder = new StringBuilder(publicKeyData); builder.Replace("-----BEGIN CERTIFICATE-----", ""); builder.Replace("-----END CERTIFICATE-----", ""); X509Certificate2 certificate = new X509Certificate2( Convert.FromBase64String(builder.ToString())); string ...
[ 0.13780641555786133, 0.26342377066612244, 0.6007564067840576, -0.06899446249008179, 0.16257253289222717, -0.16344626247882843, 0.41993504762649536, -0.3719617426395416, -0.4421505331993103, -0.2821159362792969, -0.28046050667762756, 0.38265183568000793, -0.22996143996715546, 0.214306801557...
in a lock Two ways around it: 1. Use non-Microsoft RSA stack. 2. use lock() while accessing the object. I ran into the same thing and ended up writing my own RSA set of functions. You can also set a user profile affinity in ASP.NET pool; that way a user profile keystore will be used instead
[ 0.24217185378074646, -0.36614230275154114, 0.4071582853794098, 0.1907612532377243, 0.11216241866350174, -0.4603967070579529, 0.10886596888303757, -0.6360700130462646, -0.39248746633529663, -0.2811751663684845, 0.011779168620705605, 0.17403669655323029, -0.43215054273605347, -0.051410306245...
I'm developing a site right now that I've been working on for more than a year. Today, I am about one week from launching so I started going over things that I've not gone over during the last year - including loading-times. I've not noticed any loading-issues, but I still wanted to look. The following represents my i...
[ 0.3864065408706665, 0.16687151789665222, 0.5119064450263977, 0.1288011074066162, -0.09179700911045074, -0.054880108684301376, -0.14906364679336548, -0.16197626292705536, -0.4316379725933075, -0.7478699684143066, -0.21574625372886658, 0.1108565554022789, 0.15863391757011414, 0.1720128208398...
files) 23 KB ------------------------------- Total 230 KB ``` We no longer live in the world of 56k's and 28.8's, but I'm wondering what should be considered too large now today. I should mention also that Analytics reports 3.28% of my visitors having dial-up. These users currently browse an index...
[ -0.0032204999588429928, 0.43879687786102295, 0.35117727518081665, 0.44569891691207886, 0.11858213692903519, 0.1123967319726944, 0.31903016567230225, -0.04480673745274544, -0.40825867652893066, -0.5229926109313965, -0.46343058347702026, 0.201463982462883, 0.14620864391326904, 0.238850980997...
tips on front-end engineering issues such as these, which can affect the user perception of site load times. In particular, I'd suggest that it might be possible to reduce the number of HTTP requests being made - six stylesheets and 59 images, for example - perhaps some of those images could be [sprited](http://develo...
[ 0.6221003532409668, -0.32712215185165405, 0.5315675139427185, 0.38835880160331726, -0.0923248752951622, -0.07653984427452087, 0.22985343635082245, -0.20731092989444733, -0.3856392800807953, -0.4957308769226074, 0.09832707047462463, 0.40104448795318604, -0.07934368401765823, -0.338853329420...
How to print the complete stack trace of the exception using a velocity template My present template has $exception as template variable, which contains the exception. In velocity this is how i solved this problem. ``` #foreach ($i in [1..3]) #if($exception.Cause) #set($exception = $exception.Caus...
[ -0.21005231142044067, 0.07559120655059814, 0.5914880633354187, 0.04878654703497887, 0.07625320553779602, -0.12247344851493835, 0.20583510398864746, -0.27993324398994446, -0.1746695637702942, -0.7988223433494568, 0.17609000205993652, 0.4831535816192627, -0.3206052780151367, -0.1956244558095...
#end #end ```
[ 0.21891693770885468, 0.4839682877063751, 0.6996359825134277, 0.08395393937826157, -0.007504936773329973, -0.32867732644081116, 0.34052202105522156, 0.19030089676380157, 0.004035003017634153, -0.35480639338493347, -0.30835574865341187, 0.048250213265419006, -0.18655580282211304, 0.486964493...
Does javascript coding work better with any particular server language? Presuming that you mean client-side JavaScript, no. By the time that JavaScript is executing, it's in an environment where server-side code isn't visible. In fact, it would be tricky for JavaScript to even determine what server-size environment cre...
[ 0.5608446002006531, 0.017797740176320076, -0.03657568246126175, -0.12995894253253937, -0.15624867379665375, -0.27812591195106506, 0.12115021795034409, 0.09672891348600388, -0.05394666641950607, -0.793607234954834, -0.15169529616832733, 0.3088284432888031, -0.4465435743331909, -0.1527146399...
I have a `ListBox` on a form that is bound to an `ObservableCollection` of a custom type. Within each item there is a `ComboBox` bound to an enumeration type. When the window loads, all `ComboBox`es are defaulted to a certain value. When I change the `SelectedItem` for any one (from the UI, not from code), all other `C...
[ 0.15503966808319092, -0.17792360484600067, 0.5055003762245178, -0.003943025134503841, 0.1128111481666565, -0.09930165112018585, 0.06541396677494049, -0.16508498787879944, -0.02018820121884346, -0.9423396587371826, -0.1481407731771469, 0.37463483214378357, -0.5082889795303345, 0.23515757918...
MethodName="GetNames" ObjectType="{x:Type sys:Enum}"> <ObjectDataProvider.MethodParameters> <x:Type TypeName="local:SyncOperationEnum" /> </ObjectDataProvider.MethodParameters> </ObjectDataProvider> ... <DataTemplate x:Key="SyncListTemplate"> <Grid Gri...
[ -0.3712630271911621, -0.30369803309440613, 0.7503823637962341, 0.22380296885967255, 0.11313863098621368, 0.19174855947494507, 0.07936268299818039, -0.5442503094673157, 0.10500779747962952, -0.6674467325210571, 0.14315110445022583, 0.12061712890863419, -0.1965995728969574, 0.287959486246109...
<Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition />
[ -0.43770381808280945, 0.09536372125148773, 0.11769028007984161, -0.2628013491630554, -0.26436281204223633, 0.42982780933380127, -0.15767113864421844, -0.45725709199905396, -0.2557925581932068, -1.0133464336395264, 0.030760686844587326, 0.11945030093193054, -0.6763586401939392, 0.1997159421...
<RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> ... <ComboBox x:Name="SyncOp" Width="120" Height="19" Margin="4,0,10,0" IsSynchronizedWithCurrentItem="True"
[ 0.15725037455558777, -0.21095407009124756, 0.5220218300819397, 0.11526903510093689, 0.05171109735965729, 0.13639864325523376, 0.1610841602087021, -0.24465465545654297, -0.13098829984664917, -0.6902533769607544, 0.1303449422121048, 0.4493925869464874, -0.003550270339474082, 0.07114752382040...
ItemsSource="{Binding Source={StaticResource SyncOperationValues}}" SelectedItem="{Binding Operation}" VerticalAlignment="Center" /> ... ``` and the `ListBox`: ``` <ListBox x:Name="SyncList" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Item...
[ -0.180567666888237, -0.4453495740890503, 0.9640014171600342, 0.06035448610782623, 0.16544073820114136, 0.08782079815864563, -0.0537542887032032, -0.24995918571949005, -0.38718631863594055, -0.5277699828147888, -0.2835017144680023, 0.283568799495697, -0.17847231030464172, 0.1489209681749344...
have tried some different options, like binding to a `CollectionView`; however nothing seems to work. Can anyone point me to my mistake? Thanks! I have finally found a solution. I ended up writing a ValueConverter for the enumeration type. I'd been under the impression that this was not necessary, but for some reason ...
[ 0.3791799247264862, 0.04855230823159218, 0.2487068921327591, 0.019968686625361443, -0.1738024801015854, -0.15066081285476685, 0.40410315990448, -0.25555261969566345, -0.13555753231048584, -0.5243706703186035, 0.18858610093593597, 0.588391125202179, -0.1445118635892868, 0.16754521429538727,...
something like this. ``` [ValueConversion( typeof( SyncOperationEnum ), typeof( String ) )] public class SyncOperationConverter : IValueConverter { #region IValueConverter Members public object Convert( object value, Type targetType, object parameter, System.Globalization.CultureInfo culture ) { if( v...
[ 0.4175647497177124, -0.27882084250450134, 0.7746965289115906, -0.03207483887672424, 0.1705644130706787, -0.07037036120891571, 0.15092378854751587, 0.25269779562950134, 0.035016465932130814, -0.6731996536254883, -0.20335425436496735, 0.3477160930633545, -0.4937297999858856, 0.49891355633735...
) { if( value != null && targetType == typeof( SyncOperationEnum ) ) foreach( object enumValue in Enum.GetValues( targetType ) ) if( value.Equals( Enum.GetName( targetType, enumValue ) ) ) return enumValue; return null; } #endregion ``` And
[ -0.1286981701850891, -0.26196691393852234, 0.6347974538803101, -0.21887579560279846, 0.5573785305023193, -0.19242611527442932, 0.6139912605285645, -0.17523877322673798, 0.4308073818683624, -0.841921329498291, -0.4489952623844147, 0.5991156101226807, -0.48371240496635437, 0.0489965453743934...
my XAML now looks like this: ``` <Window.Resources> <local:SyncOperationConverter x:Key="SyncConverter" /> <ObjectDataProvider x:Key="SyncOperationValues" MethodName="GetNames" ObjectType="{x:Type sys:Enum}"> <ObjectDataProvider.MethodParameters> <x:...
[ -0.19208592176437378, 0.1947936862707138, 1.1003729104995728, -0.040151868015527725, 0.16446799039840698, -0.0971149429678917, -0.05936418101191521, -0.04617032781243324, -0.0817943587899208, -0.9156438708305359, 0.025625787675380707, 0.19909682869911194, -0.28618502616882324, 0.2719872593...
x:Name="olDetails" DataContext="{Binding Path=OlContact}"> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition />
[ -0.4334585666656494, 0.14227566123008728, 0.42723432183265686, -0.2005963921546936, -0.09552653878927231, 0.07234545797109604, -0.13520188629627228, -0.3747861981391907, -0.11560754477977753, -0.88419109582901, -0.0644707977771759, 0.11464487016201019, -0.7754688262939453, 0.29156911373138...
<RowDefinition /> </Grid.RowDefinitions> ... <ComboBox x:Name="SyncOp" Width="120" Height="19" Margin="4,0,10,0" IsSynchronizedWithCurrentItem="False" ItemsSource="{Binding Source={StaticResource SyncOperationValues}}" SelectedValue="{Bindin...
[ 0.014345314353704453, -0.43055883049964905, 0.5661308765411377, 0.034172020852565765, 0.10037267953157425, 0.14050696790218353, 0.35993829369544983, -0.43092355132102966, -0.04966370388865471, -0.7253448367118835, -0.062012821435928345, 0.32176047563552856, -0.3754921555519104, 0.136223882...
VerticalAlignment="Center" /> ```
[ -0.33568742871284485, 0.08463139086961746, 0.41470861434936523, -0.13815057277679443, -0.034804463386535645, 0.33553817868232727, 0.3016636073589325, 0.4031892418861389, -0.34671124815940857, -0.6965118050575256, -0.39566534757614136, 0.1055910736322403, -0.08455327153205872, 0.24772505462...
What's the best way to generate a known number of non overlapping fixed radius circles in a limited space? The way to do this with the least leftover space is to put the centers of the circles on a hexagonal grid, like the pattern you'd get if you were making a pyramid of coins.
[ 0.345472514629364, 0.0963449701666832, -0.002866955939680338, 0.53313148021698, -0.11852483451366425, 0.08441635966300964, -0.04992374777793884, -0.14682768285274506, -0.47180014848709106, -0.3883679509162903, 0.316322922706604, -0.08772563934326172, -0.10298565775156021, 0.211815461516380...
Maven 2 uses a standard directory layout for projects, documented here: <http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html> What I'm wondering is: are there recommended conventions for other projects besides the plain-vanilla Java library, Java EE and WebApp projects? Spec...
[ -0.09198297560214996, -0.07097110897302628, 0.06673093885183334, -0.24776992201805115, -0.05231139063835144, -0.36995095014572144, 0.07218214124441147, -0.3172623813152313, -0.15906782448291779, -0.7921011447906494, -0.19924893975257874, 0.3392854332923889, -0.26770663261413574, -0.2299019...
desktop applications, but this is the layout we use for ours. * src/main/config - Config files, copied and filtered to ${project.build.directory}/config. * src/main/scripts - sh, bat, README and other plain-text files that are copied and filtered to ${project.build.directory}. * src/main/bin - Binary files that are **...
[ -0.07404322922229767, 0.17575250566005707, 0.6289473176002502, -0.16074138879776, 0.060498543083667755, 0.2247956395149231, 0.24428972601890564, -0.21359194815158844, -0.4418148696422577, -0.8478580713272095, -0.3373614549636841, 0.4943775236606598, -0.38468673825263977, -0.016743894666433...
along with standard file types to share with all your projects. A good set of default file types to include is .sh, .bat, and .exe with executable permissions; .jar, .zip, .txt, .pdf, .xml, .properties, .conf, .ico, .png, .jpg with standard permissions. * Add the config directory and lib/ prefix to the classpath using ...
[ 0.39784446358680725, 0.062079478055238724, 0.35670188069343567, 0.0051299892365932465, -0.03326250612735748, -0.1252308040857315, 0.2397264540195465, -0.07379304617643356, -0.08879802376031876, -0.8502136468887329, -0.4077318608760834, 0.6495651602745056, -0.3398260772228241, 0.10528998821...
Instead put documentation inside the src/site/ directory (eg. src/site/sphinx) or src/doc if you really need to. * Put all the above configuration in a parent/corporate pom to share with all your projects. Simply reference the maven-dependency, maven-resources, maven-jar, and maven-assembly plugins in you project to bu...
[ 0.27748116850852966, 0.12988413870334625, -0.010685122571885586, -0.020304277539253235, 0.29848670959472656, -0.25155362486839294, 0.40796512365341187, 0.12941288948059082, -0.26152777671813965, -0.8577440977096558, -0.3108084499835968, 0.4552764594554901, -0.01514088548719883, -0.01343256...