text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
most often overkill to use a presentation model, especially if what your are trying to achieve is hide some properties. I think separation of concerns is mostly driven by the bounded context. For example, your Person, PersonView and Person table all seem the relate to a transaction processing context. In such a contex...
[ 0.1331258863210678, 0.10338879376649857, 0.19254186749458313, 0.42043742537498474, -0.14252710342407227, -0.20931340754032135, -0.04490542784333229, -0.22203120589256287, -0.3350871801376343, -0.6755044460296631, 0.23838944733142853, 0.6747975945472717, -0.2155359536409378, -0.015337933786...
of a natural key in your person entity, it could mean that Person is not really an entity. For exemple, in any real life application, there is always a number associated with the person: an employee has a employee number, a client as an account number, etc. This business id is definitely part of the domain.
[ 0.07333792746067047, 0.005930375773459673, 0.24939924478530884, 0.33756721019744873, 0.3423706293106079, -0.1574239879846573, 0.06098654493689537, 0.1569013148546219, -0.2052130252122879, -0.28015902638435364, -0.25350838899612427, 0.3433028757572174, -0.05903166905045509, 0.35931763052940...
I have a Delphi DLL that I did not write, but need to call from a C# ASP.NET 3.5 app. Here is the function definition I got from the developers: ``` function CreateCode(SerialID : String; StartDateOfYear, YearOfStartDate, YearOfEndDate, DatePeriod : Word; CodeType,RecordNumber,StartHour,EndHour : Byte) : PCh...
[ 0.27739080786705017, 0.034619029611349106, 0.6668959259986877, -0.2893562912940979, 0.11425869166851044, -0.009564639069139957, 0.16361278295516968, -0.26627272367477417, -0.018491121008992195, -0.5015037655830383, -0.12853211164474487, 0.28402191400527954, -0.16513706743717194, 0.26553991...
UInt16 StartDateOfYear, UInt16 YearOfStartDate,
[ -0.0734391063451767, 0.3831217288970947, 0.35362356901168823, -0.17923206090927124, -0.207488551735878, -0.05474548786878586, 0.52631676197052, 0.10515359044075012, -0.3685200810432434, -0.42947354912757874, -0.008676918223500252, -0.09618209302425385, 0.44695714116096497, 0.24853631854057...
UInt16 YearOfEndDate, UInt16 DatePeriod, Byte CodeType,
[ -0.06251464039087296, 0.07852334529161453, 0.16617858409881592, -0.15683020651340485, -0.06710159778594971, 0.16080129146575928, -0.06980578601360321, 0.24169740080833435, -0.23865407705307007, -0.4101739823818207, -0.07413601875305176, -0.3053799271583557, -0.09651315957307816, 0.39129981...
Byte RecordNumber, Byte StartHour,
[ -0.09238161146640778, 0.03651804104447365, 0.06569056212902069, 0.030102021992206573, 0.17574283480644226, 0.17828714847564697, -0.4280315935611725, -0.04227810353040695, -0.40568843483924866, -0.1528938114643097, -0.0879630595445633, 0.6183774471282959, -0.22412563860416412, 0.12604755163...
Byte EndHour); ``` And finally, my call to this method: ``` //The Inputs String serialID = "92F00000B4FBE"; UInt16 StartDateOfYear = 20; UInt16 YearOfStartDate = 2009; UInt16 YearOfEndDate = 2009; UInt16 DatePeriod = 7; Byte CodeType = 1; Byte RecordNumber = 0; Byte StartHour = 15; Byte EndHour = 14; ...
[ -0.2198840230703354, 0.07883193343877792, 0.9441810250282288, -0.3642320930957794, 0.2272070199251175, 0.1795041263103485, 0.14348922669887543, -0.22472020983695984, -0.28222572803497314, -0.3084801733493805, -0.3409368693828583, 0.3633979558944702, 0.007501514628529549, 0.5261620879173279...
RecordNumber, StartHour, EndHour); // Take the pointer and extract the code in a string String code = Marshal.PtrToStringAnsi(codePtr); ``` Every time I re-compile this exact code and run it, it returns a different value. The expected value is a 10-digit code comprised of numbers. The returned value is actually 12...
[ 0.405109703540802, 0.15196602046489716, 0.4288647770881653, 0.018950480967760086, 0.23457694053649902, -0.16206452250480652, 0.43968239426612854, -0.40750929713249207, -0.3250821828842163, -0.44653958082199097, 0.11449788510799408, 0.7549070119857788, -0.20229387283325195, 0.16434238851070...
Thoughts? Delphi uses the so called ***fastcall*** calling convention by default. This means that the compiler tries to pass parameters to a function in the CPU registers and only uses the stack if there are more parameters than free registers. For example Delphi uses (EAX, EDX, ECX) for the first three parameters to a...
[ 0.16156430542469025, -0.15330582857131958, 0.393359899520874, -0.0054430291056632996, -0.19564004242420197, 0.14258478581905365, -0.021914083510637283, -0.1818964034318924, -0.1635999232530594, -0.6190364956855774, -0.1633213311433792, 0.46442413330078125, -0.40729808807373047, -0.56186771...
by C/C++ compilers forces the caller to cleanup the stack. Just make sure you're using the same calling convention on both sides. Stdcall is mostly used because it can be used nearly everywhere and is supported by every compiler (Win32 APIs also use this convention). Note that ***fastcall*** isn't supported by .N...
[ 0.33237987756729126, -0.027256229892373085, 0.22490714490413666, -0.024472953751683235, -0.023916153237223625, -0.4203595221042633, 0.2676551342010498, -0.027386285364627838, -0.44912242889404297, -0.5797358155250549, -0.1515960395336151, 0.558203399181366, -0.4361642599105835, 0.042715724...
I've upgraded to Rails 2.2.2 and installed the MySQL 2.7 gem and am seeing this error when I try to run a migration or start the server: ``` dlopen(/Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle, 9): Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib Referenced from: /Library/Ruby/Gems/1.8/...
[ -0.24091018736362457, 0.1740294098854065, 0.28714999556541443, 0.062479618936777115, 0.07006624341011047, 0.12447291612625122, 0.5088613033294678, 0.01949452795088291, -0.3500211536884308, -0.447563111782074, -0.24174439907073975, 0.8479905128479004, -0.6078649759292603, -0.197381630539894...
I am using SQL 2005 reporting services (SSRS) with the web report viewer control. It is showing the report inside an IFRAME on the web page. If I implement a drill down functionality, by attaching a URL action to a chart elements, the navigation will happen only inside the IFRAME. I know how to set the target frame for...
[ 0.19182844460010529, 0.1804482489824295, 0.6830853819847107, -0.0723603144288063, -0.1938338279724121, -0.569854736328125, 0.32379549741744995, -0.20101864635944366, -0.1985064446926117, -0.5564868450164795, 0.17745861411094666, 0.39149710536003113, -0.33666449785232544, 0.3222454488277435...
the IFRAME src. I use "&rc:LinkTarget=\_blank" on some charts displayed in an IFRAME and they open the full report correctly. <http://msdn.microsoft.com/en-us/magazine/cc188712.aspx>
[ 0.009492157027125359, 0.30072081089019775, 0.4518992602825165, 0.04183504730463028, 0.24445928633213043, -0.08163483440876007, 0.08986526727676392, 0.15146175026893616, -0.4131210744380951, -0.6710394620895386, -0.263256311416626, 0.2236863523721695, -0.3399861752986908, -0.057289019227027...
In [Python](http://en.wikipedia.org/wiki/Python_%28programming_language%29), is the following the only way to get the number of elements? ``` arr.__len__() ``` If so, why the strange syntax? ``` my_list = [1,2,3,4,5] len(my_list) # 5 ``` The same works for tuples: ``` my_tuple = (1,2,3,4,5) len(my_tuple) # 5 ```...
[ 0.08151981979608536, 0.16698406636714935, 0.17142632603645325, -0.10808705538511276, -0.4112260043621063, -0.0017766907112672925, 0.4224552810192108, -0.05091536417603493, -0.49748682975769043, -0.22606581449508667, -0.31396254897117615, 0.17321403324604034, -0.4273641109466553, -0.1994971...
to see one collection type use a `.length()` method while another type uses a `.length` property, while yet another uses `.count()`. Having a language-level keyword unifies the entry point for all these types. So even objects you may not consider to be lists of elements could still be length-checked. This includes stri...
[ 0.03675954043865204, -0.0808943510055542, -0.05688909813761711, 0.243580624461174, -0.14799953997135162, -0.19732818007469177, 0.09859117865562439, -0.17751826345920563, -0.4629974067211151, -0.5094310641288757, -0.3475607931613922, 0.076829694211483, -0.1914108842611313, 0.206566259264945...
What is the best "rule of thumb" to determine when to use method overloads and when to use a separate "request" class? for example: ``` MakePancakes(int size) MakePancakes(int size, bool addBlueBerries) MakePancakes(int size, bool addBlueBerries, ...) ``` As opposed to: ``` MakePancakes(PancakeOptions options) ```...
[ -0.02637956477701664, -0.30370190739631653, 0.09492434561252594, 0.41646337509155273, 0.1408546268939972, 0.12869204580783844, 0.13999277353286743, -0.13323156535625458, -0.3722703158855438, -0.6217490434646606, 0.002230855170637369, 0.557121992111206, 0.01170746423304081, -0.4324735701084...
can be helpful when the number of parameters can change or are optional. It does make sense to represent configuration/properties/options this way. But I don't think it is a replacement for overloading methods. Some rule of thumb: * if a method has more than 5 arguments, then it is probably doing more than 1 thing....
[ 0.12536635994911194, -0.017303606495261192, 0.028651393949985504, 0.44282758235931396, -0.10614427924156189, -0.0387895442545414, 0.43524298071861267, -0.2242305725812912, -0.2860390245914459, -0.3616361618041992, 0.06297135353088379, 0.5304160118103027, -0.1878032088279724, -0.17897696793...
Does anyone know of a utility for \*\*\*\*ahem\*\*\*\* stringing together static pages. **For instance:** Say I wrote a header and a footer of a page, and I only wanted to change the content without \*\*\*\*sigh\*\*\*\* dynamically generating the content of the page. (I.E. the page is dynamically generated, but th...
[ 0.24313168227672577, -0.1109713464975357, 0.3923635482788086, 0.09946829825639725, -0.1642880141735077, -0.3673856556415558, 0.20389515161514282, 0.25468558073043823, -0.5845689177513123, -0.5983461737632751, 0.10679259151220322, 0.2785641849040985, -0.2977679669857025, 0.12667472660541534...
I can > do to change their minds. (C++ > Programmers) The closest thing to what I am describing here that I have found would be a utility called [cook](http://www.jonrobson.me.uk/?workspace=#tag:[[tiddlywiki%20tools]]) that's used to *build* [tiddlywiki](http://www.tiddlywiki.com). **Right, so a utility that can ta...
[ 0.4500645101070404, -0.21793894469738007, 0.34531131386756897, -0.21775461733341217, -0.06918570399284363, 0.1129530742764473, 0.07823183387517929, -0.11143224686384201, -0.0821661427617073, -0.864493727684021, -0.04834679141640663, 0.28308477997779846, -0.08488671481609344, 0.152718693017...
Update: I'm going to leave it as is: The performance hit of a exception (very rare) is better than the probably performance hit for checking on each operation (common) --- I'm trying to support an "EstimatedRowCount" that in one case would be the product of two sub-cursors that are joined together: ``` estimatedRowC...
[ -0.15564244985580444, 0.24466271698474884, 0.756669282913208, -0.10926975309848785, 0.2550075650215149, -0.01739354059100151, 0.013364939950406551, -0.13547904789447784, -0.07560938596725464, -0.7179874181747437, 0.11516354233026505, 0.8649812936782837, -0.1664913296699524, -0.126193776726...
0; try { estimRowCount = leftRowCount * rightRowCount; } catch (OverflowException) { // Ignore overflow exceptions estimRowCount = Int64.MaxValue; } return estimRowCount; ``` Is there a better way to test for overflow operations so I don't have to do the try{}catch to guard? This sounds like a good use c...
[ -0.1834629625082016, -0.28797030448913574, 0.3928510248661041, -0.2158675640821457, 0.14108476042747498, -0.1557735651731491, 0.334077388048172, -0.38822370767593384, -0.028912603855133057, -0.4157983362674713, -0.2829826772212982, 0.4773068130016327, -0.27900782227516174, 0.00724228797480...
neither leftRowCount nor rightRowCount can be negative, but given the context I don't think that'll occur.
[ 0.0028021540492773056, -0.09793314337730408, 0.3223591446876526, -0.08844178915023804, -0.059145789593458176, -0.07927516102790833, -0.030779609456658363, 0.11572719365358353, -0.1125527024269104, -0.4758327007293701, 0.2671104669570923, 0.45040324330329895, 0.10440992563962936, 0.09699634...
I want to design a 2D game idea with C#/XNA. Between school, project inexperience, limited resources, and other things that may cause me to bail on the project I am going to try to plan it out before I jump in: * What are some key aspects you've noticed in a successful personal project? * How did you (successfully) dr...
[ 0.6666344404220581, -0.06603648513555527, 0.05223025754094124, 0.44456103444099426, -0.06784792989492416, -0.09242358803749084, -0.03628918156027794, 0.05406802520155907, -0.16392327845096588, -0.629216730594635, 0.139393612742424, 0.4091102182865143, 0.36245620250701904, -0.10704278945922...
abstract idea of a game and making into a real product. What tools do you use in your sketching and planning? * With limited resources (artistic talent and money), how do I create some of the art resources I need (besides stock art)? Or should I not worry about that until I have a finished product? * Finally, how do yo...
[ 0.512698233127594, 0.2388938069343567, -0.14628928899765015, 0.36278462409973145, 0.05040177330374718, 0.11292591691017151, 0.04984099417924881, 0.0787200778722763, -0.34241873025894165, -0.6442725658416748, 0.1990034282207489, 0.6643794178962708, 0.2337871938943863, -0.1836480051279068, ...
Enough that I want to play it after I've finished. * I learn something in the process of making it. * I actually complete the project, where complete is defined as having art, audio, and any other assets adequate for the style of game that I'm making. * It works under 'field conditions', rather than simply on my own ma...
[ 0.7144815325737, 0.3020603656768799, 0.2165479212999344, 0.229074627161026, 0.3005164861679077, 0.031222399324178696, 0.25176361203193665, 0.14068160951137543, -0.2428676038980484, -0.6299572587013245, -0.24396757781505585, 0.5307305455207825, 0.5139345526695251, -0.10873156040906906, -0...
a bored weekend usually won't get finished. **How did you (successfully) draw revenue the project (besides asking for donations)? (Note: this is not the main purpose of my project but would be nice!)** Heh. Haven't managed this yet. But then, that hasn't been a concern of mine enough to do the work required to suppor...
[ 0.8312243819236755, -0.07971125096082687, 0.40861594676971436, 0.39973318576812744, 0.09546224772930145, -0.43003663420677185, 0.0076863206923007965, 0.21861673891544342, -0.382544606924057, -0.28717726469039917, -0.018318312242627144, 0.48096221685409546, 0.43858420848846436, -0.063970036...
far. **How do you plan non-programming aspects like window layouts (UI), flow of game, and look and feel?** Pen. And paper. I draw a lot of screenshots as guides and I'll usually have some kind of artistic theme in mind to go along with the gameplay. Rapid prototypes help here too; everything from making mockups of m...
[ 0.4096354842185974, 0.07357818633317947, 0.13843508064746857, 0.2691414952278137, 0.15876834094524384, 0.01579386368393898, -0.24035480618476868, 0.31364378333091736, -0.07760931551456451, -0.8193356990814209, 0.0780506357550621, 0.4885738492012024, 0.4660485088825226, -0.17386947572231293...
me the trouble of alt-tabbing away from my code to type a quick note on what I'm doing. Some great ideas come out of the process of trying to make other things work and if you don't write it down, it didn't happen. **How do you bring an abstract idea of a game and making into a real product. What tools do you use in ...
[ 0.6922647953033447, 0.24673210084438324, -0.1460510790348053, 0.17354868352413177, 0.009591943584382534, 0.354830801486969, 0.15722866356372833, 0.03964807838201523, -0.27224063873291016, -0.6566344499588013, 0.39995449781417847, 0.7000874876976013, 0.3548842966556549, -0.14892953634262085...
to make a game in the first place and get that working in code. Maybe it's a single mechanic that you want to build puzzles/levels around or maybe it's more of a look/feel that you can capture in a single environment/level/whatever. Either way, if you can get a single example of it working right, it becomes a good chec...
[ 0.7213143110275269, -0.010372375138103962, -0.1565319448709488, 0.5335811376571655, 0.17194098234176636, -0.17787949740886688, 0.0768059492111206, 0.020760737359523773, -0.2428201138973236, -0.4819470942020416, 0.14422325789928436, 0.38893961906433105, -0.05948192998766899, 0.0530677922070...
choice of genre, audience, the specific ideas you have in mind, etc.). **With limited resources (artistic talent and money), how do I create some of the art resources I need (besides stock art)? Or should I not worry about that until I have a finished product?** Peter Molyneux of Lionhead has said that he used to pro...
[ 0.5033212304115295, -0.08202879130840302, -0.02731630578637123, 0.17965011298656464, -0.023102348670363426, 0.284464955329895, -0.2408800721168518, -0.07669688761234283, -0.3916715383529663, -0.5202764868736267, -0.1607065200805664, 0.4494314193725586, 0.15897990763187408, -0.2713282704353...
own sake...), certainly worrying about finished art, audio, or other assets is something that can be saved for much later. In the end, if the game is fun to play, then getting an artist willing to work with you becomes a lot more trivial. I have, on many occasions, used copyrighted assets during my prototyping phase wh...
[ 0.729561984539032, 0.4810599684715271, 0.23376323282718658, 0.17368854582309723, 0.10429578274488449, 0.15977652370929718, 0.25260069966316223, -0.19967257976531982, -0.11457696557044983, -0.6304011344909668, 0.20576700568199158, 0.6537073850631714, 0.17555227875709534, -0.0809919238090515...
sure exactly what you're thinking about here, but breaking barriers is what writing code is all about really. You're finding creative solutions to interesting problems. The web is a great resource for general knowledge, but in the end, it's your own time and perseverance that will create something interesting. Best of...
[ 0.5471211075782776, 0.14885756373405457, -0.30613741278648376, 0.6633918285369873, -0.01577121764421463, -0.16531513631343842, 0.6853812336921692, 0.3130088746547699, -0.38520076870918274, -0.7722583413124084, 0.002766425721347332, 0.5889744162559509, 0.297048419713974, -0.2182791084051132...
I have an object *Dog* which holds a set of *DogMetadata*. Each DogMetadata has two values: a String ("*desc*") and an int ("*rank*"). Descriptions of dogs have different rankings such as: "small" is 5, "furry" is 2, "friendly" is 9, "dalmation" is 11, "mutt" is 22. I need to search for dogs based on **any** of thei...
[ 0.1299280971288681, 0.14906974136829376, 0.2336663454771042, 0.013445163145661354, -0.39805838465690613, 0.5321216583251953, 0.22594021260738373, -0.6794548630714417, -0.020030539482831955, -0.8148757219314575, -0.2918364107608795, 0.2966366112232208, -0.04919455945491791, 0.37271770834922...
objects by the total "rank" values of any matching DogMetadatas? I've been working like a dog on this all day (trying "Group By" and "Order By") but I think I have been barking up the wrong tree. This query won't work: ``` select d from Dog as d left join fetch d.dogMetadata as dMeta where ( (dMeta.desc = 'furry') OR...
[ -0.22169336676597595, 0.07841429114341736, 0.25100988149642944, 0.2497626096010208, -0.5799818634986877, 0.16347500681877136, 0.4811696410179138, -0.7227073311805725, -0.33957111835479736, -0.5221560597419739, -0.34089797735214233, 0.23438739776611328, -0.337062269449234, 0.328960716724395...
I have a project that needs to access resources within its own JAR file. When I create the JAR file for the project, I would like to copy a directory into that JAR file (I guess the ZIP equivalent would be "adding" the directory to the existing ZIP file). I only want the copy to happen after the JAR has been created (a...
[ 0.4255926311016083, 0.43597984313964844, 0.09881795942783356, -0.2060333639383316, 0.025993257761001587, -0.20590336620807648, 0.22475983202457428, -0.09352996200323105, 0.004934928845614195, -0.8522989153862, 0.005221371538937092, 0.4250742197036743, -0.03720745071768761, 0.54048717021942...
<property name="project.path" value="my/project/dir/foobar" /> <patternset id="project.include"> <include name="${project.path}/**" /> </patternset> <patternset id="project.jar.include"> <include name="${project.path}/**" /> </patternset> <import file="common-tasks.xml" /> <pr...
[ 0.5181639194488525, 0.19727398455142975, -0.14747637510299683, -0.21343202888965607, -0.02528533525764942, 0.10015548020601273, 0.22075757384300232, -0.6672930717468262, -0.2368493229150772, -0.8447872400283813, -0.03992773965001106, 0.29089877009391785, -0.09743089973926544, 0.05317203700...
in your Jar task: ``` <jar destfile="${jar.file}" basedir="..."> <zipfileset dir="${project.path}" includes="*.jar" prefix="libs"/> </jar> ``` I've also seen that you define a separate manifest file for inclusion into the Jar. You can also use a nested `manifest` command: ``` <jar destfile="@{destfile}" basedir...
[ 0.11106150597333908, 0.19213317334651947, 0.1529339700937271, -0.13141140341758728, -0.30284827947616577, 0.05811246111989021, 0.18020892143249512, -0.40849173069000244, -0.26654496788978577, -1.0039187669754028, -0.06049521267414093, 0.6428382992744446, -0.09947706758975983, 0.32531708478...
Soon Windows 7 will use ribbon as default interface in any Windows programs, like Paint or WordPad, leaving to back default toolbars and menus. Will you migrate your UI to using ribbons for Windows 7? The main thing with the new ribbon in Office is NOT the different look and feel. It's the effort and research that wen...
[ -0.02092171087861061, -0.37296974658966064, 1.0673449039459229, 0.17585183680057526, 0.2223750799894333, 0.12750305235385895, 0.04348410293459892, 0.2640986740589142, -0.4304437041282654, -0.9353953003883362, 0.0200548954308033, 0.2947133481502533, -0.0648537427186966, 0.0839504674077034, ...
I'm working as a MS developer working to provide bridging products between MS technology and SAP. I'm used to the MS space which seems to have an absolutely different philosophy than SAP. And this is starting to be an issue - I can't "get" SAP. So, what are good materials to "grok" SAP? - understand why people buy it...
[ 0.5538920760154724, 0.4897823929786682, 0.18555192649364471, 0.13495664298534393, -0.13642071187496185, 0.1280440390110016, 0.053248487412929535, 0.07250513881444931, -0.05630442500114441, -0.7668155431747437, 0.00768547086045146, 0.5137662291526794, 0.38701555132865906, 0.2525500059127807...
SAP to do my job - I know the runes to incant in SAP. But that isn't enough, and SAP SDN and Help is really not enough for the big picture view (it also isn't great for small picture view, but that is another discussion for somewhere else). Thanks in advance. First, SAP is so vast you will never be able to know every ...
[ 0.32940977811813354, 0.1291709989309311, -0.10688406974077225, 0.17875833809375763, -0.2977716028690338, -0.22483043372631073, 0.4943137466907501, 0.1634642332792282, 0.0204691831022501, -0.3884097933769226, -0.060861967504024506, 0.44021880626678467, 0.4394814372062683, -0.410991579294204...
a full environment. The code for most of the content is available. Thus, checking how SAP has done something can/may/will help you understand the technology or the subject. (Btw, a lot of comments are in German...) in-system transaction se80 is particularly useful in this aspect, as it show all related data to a progra...
[ 0.2839711308479309, -0.014448392204940319, -0.18945351243019104, 0.18717533349990845, -0.19627979397773743, -0.6673126220703125, 0.21047601103782654, 0.09382130205631256, -0.15087009966373444, -0.3201908767223358, -0.6162019968032837, 0.2784469425678253, 0.1367015391588211, -0.326714694499...
MSDN says that the function [SetDllDirectory()](http://msdn.microsoft.com/en-us/library/ms686203.aspx) can be used to insert a directory into the [DLL Search Path](http://msdn.microsoft.com/en-us/library/ms682586.aspx). Can this function be accessed from a batch file or cmd script, perhaps using via [cscript](http://te...
[ -0.05243714153766632, -0.24231277406215668, 0.6913485527038574, 0.050747547298669815, 0.09756119549274445, -0.15465237200260162, -0.1618044376373291, -0.13183756172657013, -0.09376320242881775, -0.733832597732544, -0.33197030425071716, 0.22386683523654938, -0.2034328579902649, 0.2477774322...
and Windows will then find the DLL there. ``` set PATH=C:\path to your dll;%PATH% ```
[ -0.25389260053634644, 0.10935673117637634, 0.4291737377643585, -0.22457139194011688, 0.21085427701473236, -0.10851706564426422, 0.24613690376281738, 0.0919555202126503, 0.043252550065517426, -0.9097467064857483, -0.32387641072273254, 0.6492207646369934, -0.29651036858558655, 0.172158166766...
I've been reading up on this topic for the past few hours, and I think I've got a handle on it, but I'd like some confirmation. **Situation** I want a user in, say, California to be able to post a comment that will be stored in MySQL. I then want a user in, say, Texas to be able to view the comment with the post date...
[ 0.48888784646987915, -0.1242213100194931, 0.8172378540039062, 0.07292304188013077, 0.3549163341522217, 0.05099280923604965, -0.11534477770328522, 0.33246153593063354, -0.17882417142391205, -0.747982919216156, -0.23405787348747253, 0.27043265104293823, -0.4340965151786804, 0.035427745431661...
the current date and time in UTC. 3. Use `$Date->format()` to get the value to insert into the datetime type column in MySQL. *Displaying* 1. Get the user's timezone information from JavaScript and store it in a cookie. 2. Run a MySQL SELECT query to retrieve the datetime column value. 3. `$Date = new DateTime($row['...
[ 0.27606117725372314, -0.2713017165660858, 0.7771373391151428, 0.048523593693971634, 0.2798977494239807, -0.1513119339942932, 0.07519464194774628, -0.06116865202784538, -0.10226892679929733, -0.8671321272850037, -0.2882051169872284, 0.5990439057350159, -0.2555929720401764, 0.081418983638286...
are using JavaScript then why not use JavaScript to adjust the time zone on the client as well? 1. Store all times on the server as UTC 2. Serve them to the client as UTC 3. Client uses JavaScript adjust time to local time zone Not only does this make things simpler but it also overcomes a problem with your model. If...
[ 0.5642822980880737, -0.14108778536319733, 0.3373555839061737, 0.06577757745981216, 0.01610066182911396, 0.07620967924594879, 0.44001081585884094, -0.07061586529016495, -0.29194051027297974, -0.9788013696670532, 0.14403145015239716, 0.225825697183609, -0.3440806567668915, -0.057865291833877...
can avoid the overhead of storing the user's time zone. That said, if you want your design to degrade to non-JavaScript browsers then you are better off taking a full server side approach relying on HTTP cookies (as opposed to relying on JS to fetch cookies).
[ 0.2870250344276428, -0.1817305088043213, -0.04123517870903015, 0.060708560049533844, 0.11028310656547546, -0.15833143889904022, 0.501776397228241, 0.14669881761074066, -0.006349670700728893, -1.0712995529174805, -0.15807557106018066, 0.07810230553150177, -0.012387041002511978, 0.0208227504...
When Jeremy & Chad [posted about their FubuMvc project](http://codebetter.com/blogs/jeremy.miller/archive/2008/10/23/our-opinions-on-the-asp-net-mvc-introducing-the-thunderdome-principle.aspx), one of the differentiators they mentioned was their "Thunderdome Principal": > The “Thunderdome Principle” – All > Controlle...
[ 0.21370775997638702, -0.1968969702720642, 0.33065828680992126, 0.3430325984954834, -0.34378427267074585, -0.03085389733314514, 0.4285750091075897, 0.0932324230670929, -0.01339827198535204, -0.3694697618484497, 0.10052680224180222, 0.3535582423210144, -0.24150772392749786, 0.340443342924118...
ViewResult > objects and are generally decoupled > from all MVC infrastructure. We > adopted this strategy very early on as > a way to make Controller testing > simpler mechanically. It’s definitely > achieved that goal, but it’s also made > the Controller code very streamlined > and easy to read. We’ll explain...
[ 0.08358539640903473, -0.28579118847846985, 0.5035995244979858, 0.2639086842536926, -0.25029200315475464, -0.3464868664741516, -0.003190893679857254, -0.1231137067079544, -0.049818702042102814, -0.6712985038757324, -0.0060508958995342255, 0.5011286735534668, -0.16544753313064575, 0.12180214...
the environment in an integration testing scenario. In most cases, Conventions == Rapidity as it removes a lot of "what if" scenarios from your design considerations. Since all our controller actions follow the same pattern, we can assume many things and it accelerates and streamlines our controller integrated testing...
[ 0.23117300868034363, -0.09479248523712158, 0.01528305746614933, 0.5648428797721863, 0.25612619519233704, -0.05588965862989426, 0.2434450089931488, -0.24877405166625977, -0.1316971331834793, -0.7602277398109436, 0.07850591838359833, 0.6311529874801636, -0.5759836435317993, -0.06111412495374...
basically, this is the argument for having any rich model and isn't unique to the Thunderdome/OMIOMO pattern.
[ 0.6667882204055786, 0.20776033401489258, 0.021570228040218353, 0.21120674908161163, 0.2608092725276947, -0.21791505813598633, 0.20362623035907745, 0.3072165846824646, -0.23670047521591187, -0.5133882164955139, 0.12545350193977356, 0.3021824359893799, -0.2478484809398651, 0.3474981486797333...
Has anyone tried to interact with a Microsoft Geneva Server from Java? Can it be done easily, using some combination of generally available libraries? If so: What are the important Java libraries/frameworks to look into? Check out [Mario Szpuszta's blog and this article in particular](https://web.archive.org/web/20140...
[ 0.20264500379562378, 0.12850189208984375, 0.19110888242721558, -0.07587987929582596, 0.09382078796625137, -0.3108389675617218, 0.37131467461586, -0.14617875218391418, -0.6120515465736389, -0.28043481707572937, -0.014418698847293854, 0.24612727761268616, -0.12627442181110382, -0.27976056933...
I have an existing enum with numerous items in it. I also have existing code which does certain things with this enum. I would now like a way to view only a subset enum members. What I'm looking for is a way to divide my enum into groups. I need to preserve the (int) value of each member and I need to preserve the ab...
[ 0.40816524624824524, 0.19824868440628052, 0.021572591736912727, 0.021932655945420265, -0.12857666611671448, 0.05010871961712837, 0.03503003716468811, 0.03984682634472847, -0.21812860667705536, -0.8135796189308167, -0.007579133380204439, -0.16962216794490814, -0.15222764015197754, 0.4880930...
works but violates the whole no repetition principle. I don't expect anyone to have a better alternative but I thought I'd ask just in case someone had a fancy trick to show me. Thanks, as always. In the end, I had to rewrite much of the code but the following "trick" was derived: I trashed C# enums and use static ...
[ 0.265417218208313, 0.06909925490617752, -0.07360067218542099, 0.03799642249941826, -0.12697122991085052, -0.02865101769566536, 0.6700634956359863, -0.1625950038433075, -0.12654170393943787, -0.4634970426559448, 0.02950291894376278, 0.46269533038139343, -0.3035977780818939, 0.29832786321640...
and indexes them based on several properties. These indexes are stored in hashtables which are also members of the singleton. I thus get: a singleton object which: * has static members which can be easily accessed during design time. * can be used during run-time to lookup certain static members (based on "group" an...
[ 0.0620875246822834, 0.10962697118520737, -0.020045863464474678, 0.19535775482654572, -0.1962638944387436, -0.012876249849796295, 0.2096717804670334, 0.02215181477367878, -0.10156632959842682, -0.6461551189422607, -0.11357345432043076, 0.35414159297943115, -0.21429334580898285, 0.2292934358...
I'm developing a website with a custom search function and I want to collect statistics on what the users search for. It is not a full text search of the website content, but rather a search for companies with search modes like: * by company name * by area code * by provided services * ... How to design the databas...
[ 0.36907267570495605, 0.338479220867157, 0.28111740946769714, 0.13113510608673096, -0.10694039613008499, 0.10688526183366776, -0.15469971299171448, -0.023541977629065514, -0.34650522470474243, -0.48623859882354736, 0.08908087760210037, 0.2434210628271103, -0.1675569862127304, 0.135259032249...
SearchValue Count ``` Whenever someone does a search, say they search for "Company Name: Initech", first query to see if there are any rows in the table with SearchType = "Company Name" (or whatever enum/id value you've given this search type) and SearchValue = "Initech". If there is already a row for this, UPDATE...
[ -0.1738467961549759, 0.17934465408325195, 0.6832262873649597, 0.0019462172640487552, 0.11866159737110138, -0.1768501102924347, -0.15104703605175018, 0.038428377360105515, -0.30659323930740356, -0.6295743584632874, -0.13052348792552948, 0.450690358877182, -0.2287740707397461, 0.077589944005...
most popular searches for each type are: ``` ... ORDER BY Count DESC WHERE SearchType = 'Some Search Type' ``` You can figure out the most popular search types: ``` ... GROUP BY SearchType ORDER BY SUM(Count) DESC ``` Etc.
[ -0.42173561453819275, 0.14079652726650238, 0.3724350929260254, 0.06793662905693054, -0.2635851204395294, 0.08126863837242126, 0.15222379565238953, -0.011605699546635151, -0.32120901346206665, -0.7256836891174316, -0.3412603437900543, 0.4551350474357605, -0.42110124230384827, 0.141974985599...
I'm showing a popup menu to select some values in a QTableWidget. The lowest item is a "Modify list" entry, when I select it a new window should automatically appear and the QComboBox should vanish and the cell return to a Qt::DisplayRole state. Now Qt has all those nice API-calls like `QTableWidget.edit()` and `QTabl...
[ -0.07863985002040863, 0.14652280509471893, 0.36926203966140747, -0.1553649753332138, -0.10277517139911652, -0.06031637266278267, 0.18824262917041779, -0.01944088190793991, -0.21114224195480347, -0.7529604434967041, 0.21596483886241913, 0.5057448148727417, -0.47213634848594666, 0.3458019495...
to close those kind of editors? ![Popup menu](https://i.stack.imgur.com/esRER.png) [QTableWidget](https://doc.qt.io/qt-4.8/qtablewidget.html) inherits 19 public slots from QWidget. One of those is setDisabled(), which should disable input events for that widget and all of its children. I would try: ``` table.setDisa...
[ -0.20487692952156067, 0.18646535277366638, 0.5564303994178772, -0.056778546422719955, 0.08270581066608429, -0.10498405992984772, 0.25796571373939514, 0.1302192062139511, -0.14000530540943146, -0.4310617446899414, -0.4508361220359802, 0.5449941158294678, -0.5143017768859863, 0.2890208959579...
I've long thought (but never practiced for some reason) that a dropdown menu that is dynamically generated and only contains one item, should automatically select that item. This would opposed to the typical approach that I've observed where a blank entry is made at the top and you still have to interact with the menu ...
[ 0.3515886962413788, -0.049291908740997314, 0.04543371498584747, 0.0392901636660099, 0.15869618952274323, 0.20384179055690765, 0.07811280339956284, 0.12780281901359558, -0.40260881185531616, -0.23659832775592804, -0.03511675447225571, 0.24145318567752838, 0.10256116837263107, -0.03467191755...
single account to proceed. In this case, by implementing the solution above, it would take one less click to select the account and proceed to viewing it. Even better in this case would be to eliminate the dropdown menu step altogether and go right to the statement. Can you think of a case where auto-select of a singl...
[ 0.2603524327278137, -0.12283986806869507, 0.06668518483638763, 0.2051958590745926, 0.0028093098662793636, 0.2057095319032669, 0.24126370251178741, -0.13105817139148712, -0.3848106861114502, -0.40877553820610046, -0.09548000246286392, 0.5089962482452393, -0.34296244382858276, 0.006421052385...
makes sense. But if you have e.g. some kind of form where users can provide voluntary information, they will need the possiblity to leave that field blank or otherwise give a possible incorrect answer. So it really should depend on the nature of the data in that dropdown whether pre-selection is a good idea or not.
[ 0.5905880928039551, -0.30066514015197754, -0.10981141775846481, 0.4359123408794403, 0.006863825488835573, -0.17052195966243744, 0.14064815640449524, -0.06199827417731285, -0.22110940515995026, -0.09387998282909393, 0.07079502940177917, 0.2669474184513092, 0.03495512902736664, 0.00098552636...
Is there a regular expression tutorial that doesn't use a designer? I learned the basics of RegEx with [this tutorial](http://www.regular-expressions.info/tutorialcnt.html) It talks about what happens behind the scenes and doesn't depend on a certain platform.
[ 0.5680205225944519, -0.5312286019325256, 0.06774551421403885, 0.4280492067337036, 0.03756428137421608, -0.08684322237968445, 0.06642121821641922, 0.3000335395336151, -0.024861931800842285, -0.49710914492607117, -0.02313748560845852, 0.7040733695030212, -0.30358001589775085, -0.474009692668...
I seem to be running into an issue (Cannot access a property or method of a null object reference) binding events in actionscript to a viewstack layer not currently showing. Are those objects not created until that layer is visible for the first time? I remember something about a creation policy, if this is the case, c...
[ 0.016586150974035263, -0.1441681981086731, 0.11990903317928314, 0.28886470198631287, 0.15421569347381592, -0.07384692877531052, -0.040179379284381866, 0.09587708115577698, -0.5007522702217102, -0.7046453356742859, -0.03708876296877861, 0.5526990294456482, -0.14529000222682953, 0.1835968494...
to create all of the ViewStack container's children up front, consider using the **creationPolicy** property common to all `mx.core.Containers`: > A creationPolicy of > ContainerCreationPolicy.ALL means that > the navigator containers immediately > create deeper descendants for each > child, rather than waiting un...
[ 0.1874593049287796, -0.10340207815170288, 0.4018983840942383, 0.4662923812866211, 0.2541377544403076, 0.2539390027523041, -0.2672925293445587, 0.16243192553520203, -0.025735415518283844, -1.0815167427062988, -0.15740138292312622, 0.40519535541534424, -0.07210717350244522, 0.279551923274993...
how do you make a default table and then use it when making other tables? example ``` --default table Button = { x = 0, y = 0, w = 10, h = 10, Texture = "buttonimg.png", onClick = function() end } newbutton = Button { onClick = function() print("button 1 pressed") end } newbutton2 = Button { x = 12, onC...
[ 0.16592760384082794, -0.19614273309707642, 0.526965856552124, -0.021514376625418663, 0.18115250766277313, 0.2430604249238968, 0.07716678828001022, -0.2812564969062805, -0.4568648040294647, -0.6290512084960938, -0.17835064232349396, 0.6230898499488831, -0.3125480115413666, -0.21400900185108...
x = 0, y = 0, w = 10, h = 10, Texture = "buttonimg.png", onClick = function() end } setmetatable(Button, { __call = function(self, init) return setmetatable(init or {}, { __index = Button }) end }) newbutton = Button { onClick
[ -0.3748480975627899, -0.6000186204910278, 0.7125387191772461, -0.15300649404525757, 0.18507787585258484, 0.4156551957130432, -0.0305288415402174, -0.20797410607337952, -0.2103545367717743, -0.7969496250152588, -0.1834995597600937, 0.5155970454216003, -0.3029726445674896, 0.0023814067244529...
= function() print("button 1 pressed") end } newbutton2 = Button { x = 12, onClick = function() print("button 2 pressed") end } ``` (I actually tested this, it works.) **Edit**: You can make this a bit prettier and reusable like this: ``` function pro...
[ 0.17125900089740753, -0.4917476177215576, 0.39168182015419006, -0.09991081058979034, 0.23864470422267914, 0.21440240740776062, 0.16975145041942596, -0.19138407707214355, 0.014829178340733051, -0.7567310333251953, 0.10757353156805038, 0.5699799656867981, -0.11736728996038437, 0.083561398088...
{ __call = function(self, init) return setmetatable(init or {}, { __index = class })
[ -0.1734582483768463, -0.3431234657764435, 0.30774760246276855, 0.04040072485804558, 0.07494667172431946, 0.07702736556529999, 0.08047161251306534, -0.17058154940605164, 0.04734085872769356, -0.6108496189117432, -0.2546493113040924, 0.7300997376441956, -0.43589547276496887, -0.0404249392449...
end }) end Button = prototype { x = 0, y = 0, w = 10, h = 10, Texture = "buttonimg.png", onClick = function() end } ... ```
[ -0.5093428492546082, -0.25859710574150085, 0.6810309886932373, -0.24749718606472015, 0.347965806722641, 0.2317013293504715, 0.17333145439624786, -0.1425885409116745, -0.12226007133722305, -0.776005744934082, -0.21418608725070953, 0.1987219899892807, -0.3276180028915405, 0.18187583982944489...
I have some UI code that needs to be updated from my background presenter thread. So, I do the following: from my background thread, I set my property in the UI: ``` _ui.ConnectionStatus = "A"; ``` then, my set is as follows: ``` public string ConnectionStatus { set { if (Dispatcher.CheckAccess()) ...
[ 0.1246211975812912, -0.2447301596403122, 0.7367734313011169, -0.0899803563952446, 0.054040852934122086, 0.16098682582378387, 0.14669841527938843, -0.24774453043937683, -0.28732430934906006, -0.8948718309402466, -0.1702987551689148, 0.5581732392311096, -0.32881903648376465, 0.18003587424755...
{ConnectionStatusTxt.Content = value;})); } } } ``` I get the following error: `The calling thread cannot access this object because a different thread owns it.` My understanding was that `Dispatcher` takes care of invoking on different threads, so this error puzzles me a little. Thanks! Another questi...
[ 0.10786325484514236, -0.018271658569574356, 0.21055488288402557, 0.06167314201593399, 0.01598084717988968, -0.25598618388175964, 0.3568830192089081, 0.0714433416724205, -0.3437318503856659, -0.3757191300392151, 0.10638958215713501, 0.46819454431533813, -0.40036168694496155, 0.5359780788421...
UIElement (maybe a Label?) that you create in which case the exception refers to the value object and not to your user control.
[ 0.17987917363643646, -0.05486002191901207, 0.30490827560424805, 0.277889221906662, 0.15149828791618347, -0.1410214900970459, 0.04925663396716118, 0.04912204295396805, -0.11179527640342712, -0.40647852420806885, -0.4835602939128876, 0.12582558393478394, -0.24752658605575562, 0.2267890423536...
Here is what the Wikipedia [article](http://en.wikipedia.org/wiki/Scrum_(development)) on Scrum has to say about the Daily Scrum: > The meeting starts precisely on time. Often there are team-decided punishments for tardiness (e.g. money, push-ups, hanging a rubber chicken around your neck). Do you feel that it is a g...
[ 0.5252546072006226, 0.08819041401147842, 0.041827209293842316, -0.9348124861717224, -0.2848884165287018, -0.21516917645931244, 0.4240599572658539, 0.07127555459737778, -0.49102357029914856, -0.7582625150680542, 0.1924130767583847, 0.39419955015182495, 0.04551217332482338, -0.04894428700208...
experience, it only takes one or two times for that to happen and the team self polices - people know we start on time, finish on time, and if you're not there you miss out - no punishment needed, it's all done by peer pressure. BTW set your scrum time the same time every day, and allow for people's work patterns ie -...
[ 0.5613574981689453, -0.1751382052898407, 0.1172102764248848, -0.24142010509967804, -0.12890253961086273, -0.4981136620044708, 0.6371351480484009, 0.0611240491271019, -0.27743425965309143, -0.5322986245155334, 0.26335808634757996, 0.644542396068573, 0.3148954212665558, -0.36856186389923096,...
I almost have the same problem as the guy in this thread: [Convert Float that has period instead of comma?](https://stackoverflow.com/questions/359298/convert-float-that-has-period-instead-of-comma) So that my ``` double x = 234.4; string y = x.ToString(); ``` I get `y == "234,4"`; Even worse ... `Double.Parse("2...
[ 0.22931340336799622, 0.03105844557285309, 0.4239479601383209, -0.07955107092857361, -0.0750621110200882, 0.11658011376857758, 0.08557486534118652, -0.04610150307416916, -0.1930469274520874, -0.5227590799331665, 0.01853260211646557, 0.24584846198558807, -0.007011712063103914, 0.361564010381...
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US"); ``` They kind of work. They work for most part of the application, but **all controls that reside in the tabs of my TabControl still wants to use my computers Localized CultureInfo**. Any Ideas on how to solve this? Thanks to Florin Sabaus comment I f...
[ 0.3027837574481964, -0.02963942289352417, 0.8058366179466248, 0.09021121263504028, 0.09277865290641785, 0.10363815724849701, 0.1117105633020401, 0.1081579253077507, -0.31779083609580994, -0.5700463652610779, -0.03551536053419113, 0.12992708384990692, -0.23350751399993896, 0.405334860086441...
I've got a console program written in C# which runs under user foo. The program creates a file. In some situations a web application running under the IUSR needs to be able to delete the files created by the console app. I'd like to grant DELETE (or anything equivalent) to IUSR when the file is created. How can I do t...
[ 0.2993696928024292, 0.20949746668338776, 0.5935356020927429, 0.050940897315740585, 0.3198305666446686, -0.1644466370344162, 0.07754834741353989, 0.0983385369181633, -0.12215156108140945, -0.5296766757965088, -0.13009701669216156, 0.6747056245803833, -0.06317651271820068, 0.3132669627666473...
I realise that in some circs granting the IUSR DELETE rights on any files would be a reasonably dodgy thing to do but in this case the nature of the files involved means I'm happy to grant these rights to IUSR] Use the Windows Explorer -> select the directory where the file resides -> right-click -> Properties -> Secur...
[ 0.23170526325702667, 0.3684394955635071, 0.5815771818161011, -0.07473050057888031, 0.37471529841423035, -0.25503602623939514, 0.3071613013744354, -0.014758078381419182, -0.10954677313566208, -0.6241176724433899, -0.5235188603401184, 0.7640348076820374, -0.12917058169841766, 0.2347039282321...
the **System.Security.AccessControl.FileSecurity** class and the **File.SetAccessControl** method. Hope it helps.
[ 0.24321576952934265, -0.02258979342877865, 0.3429289162158966, 0.2666662931442261, 0.403931200504303, 0.03110402822494507, 0.15640023350715637, 0.20328187942504883, -0.05454205349087715, -0.7607969641685486, -0.02156955935060978, 0.5920695066452026, -0.03141028434038162, -0.079771272838115...
In the computer algebra system [Sage](http://www.sagemath.org/), I need to multiply a list by 2. I tried the code ``` sage: list = [1, 2, 3]; sage: 2 * list ``` which returns ``` [1, 2, 3, 1, 2, 3] ``` How can I just multiply each element by two? Do you want to multiply each element by 2? That would be: ``` [...
[ 0.03789112716913223, 0.09084675461053848, 0.17865301668643951, -0.3569440543651581, -0.11205951124429703, -0.0010642281267791986, 0.20877660810947418, -0.6722396612167358, -0.1661987602710724, -0.42902353405952454, 0.1726517528295517, 0.342021644115448, -0.379769504070282, -0.3493968844413...
So I am diving into Ruby (and Rails) and back-end web development in general, and it seems to me there is a huge ecosystem of Ruby projects that seem to be totally essential. I am thinking of projects like Rake, Rack, Mongrel, Gems, Capistrano specifically. Besides these apps' own documentation on their respective pr...
[ 0.7038924098014832, 0.19012241065502167, -0.3281461298465729, 0.3653278350830078, 0.020855838432908058, 0.07169894874095917, 0.3493177592754364, 0.3999432623386383, -0.2843168377876282, -0.30732089281082153, 0.17276214063167572, 0.6355202794075012, 0.048912521451711655, 0.10267483443021774...
that addresses the "Ruby world"? The Pragmatic Programmers have a [Deploying Rails](http://www.pragprog.com/titles/fr_deploy/deploying-rails-applications) book that covers some of this. One tool I would add to your list is [Phusion Passenger](http://www.modrails.com/) (aka mod\_rails). Also, see my answer to [Ethan's ...
[ 0.030855102464556694, 0.04979074373841286, -0.22493764758110046, 0.3628612756729126, 0.015509285032749176, -0.10309311747550964, 0.4405898153781891, -0.03373997285962105, -0.06344838440418243, -0.5415335893630981, -0.06458690017461777, 0.48207738995552063, -0.023402176797389984, -0.1437143...
I know this is an easy one, but it's driving me nuts... I have a users table, comments table, and pictures table. I want a list of the top 10 users based on submissions (total of their comments and their submitted photos). That's it. Shame me. --- UPDATE: based on Ed's answer. here's my setup: * users table (us...
[ 0.24962380528450012, 0.25607407093048096, 0.6177592277526855, 0.06669825315475464, -0.24441686272621155, 0.07118676602840424, 0.007925551384687424, -0.31211307644844055, -0.2252543419599533, -0.6532203555107117, 0.21624775230884552, 0.5256384015083313, -0.19256797432899475, 0.1530879288911...
union select submittedby_id, count(id) as total from comments group by submittedby_id ) as x group by submittedby_id order by sum(total) desc limit 10; ``` Maybe something kind of like this: ``` select username, sum(submissions) from (select username, count(picture_id) from ...
[ 0.31583958864212036, -0.01846393384039402, 0.49532365798950195, 0.11628497391939163, -0.16323590278625488, 0.2750036120414734, -0.3435550034046173, -0.7577788233757019, -0.4234617352485657, -0.5601150989532471, -0.18555085361003876, 0.3013400435447693, -0.33366578817367554, 0.4502289593219...
comments group by username ) group by username order by sum(submissions) desc limit 10; ``` To overview conceptually: 1. Count the submissions of the user in each table 2. Union those, so each user will have between 0 and 2 counts from the subquery. 3. Group one more time, summing the two counts, and then ord...
[ 0.07317732274532318, 0.13719391822814941, 0.4875601530075073, 0.062013816088438034, -0.45461153984069824, 0.21055011451244354, 0.10787662118673325, -0.5895991921424866, -0.3386123776435852, -0.6831863522529602, -0.05694444850087166, 0.24930548667907715, 0.046610236167907715, -0.04396838694...
Does anyone know of any good websites on the upcoming "Grand Central" technology from Apple (in Snow Leopard) and how it compares to the Parallel Extensions (and the native parallel computing stuff) coming from Microsoft? Snow Leopard is now out of NDA: [GCD Conceptual Documentation](http://developer.apple.com/mac/lib...
[ -0.31569021940231323, 0.10950232297182083, 0.28403812646865845, 0.22153261303901672, 0.032696839421987534, -0.042819879949092865, 0.28979218006134033, 0.056900087743997574, -0.516949474811554, -0.34918397665023804, -0.12431786954402924, 0.0260764230042696, -0.30911144614219666, 0.342844337...
How can I specify my app to not overwrite the app.config on the client machines when the app is updated by clickonce? if i am not mistaken you need something like this [Persisting app.config variables in updates via Click once deployment](https://stackoverflow.com/questions/622764/persisting-app-config-variables-in-up...
[ 0.16975244879722595, -0.12119336426258087, 0.5333433151245117, 0.15202215313911438, 0.2669598162174225, -0.014757421799004078, 0.42178991436958313, -0.08029753714799881, -0.43708914518356323, -0.4780588746070862, 0.0887942761182785, 0.8212324976921082, -0.3912122845649719, 0.03732546418905...
You can obtain the width of a string in the current font with `stringwidth` and although this actually pushes offset coordinates on the stack, the y-value always seems to be useless. Is there a way to determine the exact height of a string, that may or may not include descenders? `stringwidth`, as it says, doesn't retu...
[ -0.25079140067100525, -0.18715956807136536, 0.7471593022346497, -0.07076285034418106, -0.17845234274864197, 0.26192939281463623, 0.07268606126308441, -0.14551085233688354, -0.17004607617855072, -0.5344783663749695, 0.005106656812131405, 0.4121263325214386, 0.14387260377407074, -0.056663870...
say about `stringwidth`: > Note that the width returned by **stringwidth** is defined as movement of the current > point. It has nothing to do with the dimensions of the glyph outlines. So what would work to take into account the string's height? The magic words to read up about in PRLM are `charpath` and `pathbbox`...
[ -0.09391851723194122, -0.16291368007659912, 1.0080335140228271, -0.09372981637716293, -0.10852808505296707, 0.268062561750412, 0.057870399206876755, -0.6706072092056274, -0.2864057421684265, -0.519555389881134, 0.06623765826225281, 0.3492852449417114, 0.07167578488588333, -0.18953104317188...
string's (printed in red) height and uses that info to try and center a small filled circle (printed in black) into the center of its bounding box: [![Sample PostScript visualized](https://i.stack.imgur.com/epfuo.jpg)](https://i.stack.imgur.com/epfuo.jpg)
[ 0.018042566254734993, -0.26260310411453247, 0.5547065734863281, 0.05872272327542305, -0.1607629358768463, 0.1384684145450592, -0.15707582235336304, -0.37941092252731323, -0.4414929449558258, -0.10330555588006973, -0.3517402410507202, -0.0600789375603199, -0.4646381139755249, 0.030173225328...
I'm developing a website which to begin with will have three clear sub sites: Forum, News and a Calendar. Each sub site will have it's own database and common to all of these databases will be a user table which needs to be in each database so that joins can be done. How can I synchronize all the user tables so that ...
[ 0.507266640663147, 0.06129191443324089, 0.6101857423782349, 0.18156202137470245, 0.04039732739329338, -0.040574315935373306, 0.0032294602133333683, 0.21217072010040283, -0.3022650480270386, -0.5345866084098816, 0.1336798518896103, 0.30494019389152527, -0.03912755846977234, 0.06081639975309...
simple as possible. I was over complicating the problems/solution. Since the databases will (for the time being) exist on the same server, I can use a very simple [View](http://dev.mysql.com/doc/refman/5.1/en/create-view.html).
[ 0.4654538631439209, -0.06440312415361404, 0.33383724093437195, -0.015675630420446396, 0.14728036522865295, -0.2046324759721756, 0.24785390496253967, 0.12338374555110931, -0.14314499497413635, -0.7567764520645142, -0.03766735643148422, 0.7470409274101257, -0.09902258962392807, 0.00531797902...
First and foremost, I apologize for any vagueness in this question. At this point, I'm simply trying to get some new ideas of things to try in order to diagnose this bug. Anyway, the problem I'm having is with an application that's using a custom moduleloader. That moduleloader has been compiled into an swc and the mo...
[ 0.3686833381652832, -0.05198242515325546, 0.3019688129425049, -0.02169884741306305, -0.006776838563382626, 0.13190391659736633, 0.12032683193683624, 0.14491695165634155, -0.6671318411827087, -0.5580435991287231, -0.09402614831924438, 0.1618376523256302, -0.5902976393699646, 0.1022689789533...
... After quite a bit of fooling around I have been able to establish the following: 1. This problem only seems to occur within modules. If a button control is used in the main mxml, the label does not get truncated. 2. The button control whose label is being truncated does not have a width specified (setting its wid...
[ 0.35851675271987915, -0.041489943861961365, 0.626395583152771, 0.023090722039341927, 0.16249500215053558, -0.2551973760128021, 0.20776745676994324, -0.17501260340213776, -0.3869783580303192, -0.5254859924316406, -0.11549247056245804, 0.4676801860332489, -0.5764487385749817, -0.045709904283...
fonts so I've ruled that out as a possibility as well. 5. mx:CheckBox and mx:LinkButton are equally impacted by this problem although mx:CheckBox also seems to not want to show its checkbox, it just shows the truncated label. A potential side affect of this is that attaching a dataprovider to mx:ComboBox causes the co...
[ 0.37868866324424744, 0.023057570680975914, 0.42368367314338684, 0.06414429843425751, -0.25767549872398376, -0.0068056620657444, 0.25317075848579407, -0.006846468895673752, -0.1359420269727707, -0.8008304238319397, -0.027034103870391846, 0.40306514501571655, -0.39575448632240295, 0.18149754...
of moduleloader so I'm not entirely certain if this could be the issue. In any case, if anyone has any ideas, it would be hugely appreciated. On the other hand, if you know exactly what ails me and can provide me with an answer, I might just wet myself with excitement. It's late. I'm tired. I NEED my Flex app to play n...
[ 0.596326470375061, -0.25599971413612366, 0.28126853704452515, -0.07342364639043808, 0.23893681168556213, -0.23504427075386047, 0.603009819984436, 0.03935795649886131, -0.35563692450523376, -0.6837718486785889, -0.022625183686614037, 0.6680576801300049, -0.0735812708735466, 0.01395331323146...
labels if no CSS has been implemented? 3. Has anyone encountered a problem with inheritance being lost while using a custom implementation of moduleloader? 4. Has anyone encountered this problem or a similar problem with or without using moduleloader? I'm not sharing any code with this question simply because I'd have...
[ 0.7340648174285889, 0.25553247332572937, 0.07597355544567108, 0.0439685583114624, -0.2515307366847992, -0.377881795167923, 0.33661994338035583, -0.14771966636180878, -0.2934814691543579, -0.49454620480537415, 0.17594558000564575, 0.6910821795463562, -0.3020040988922119, 0.2207978516817093,...
and while I haven't figured out just what's causing it yet, there's clearly a mismeasurement happening somewhere along the line. What I have been able to to, though, is work around it, essentially by subclassing button-type controls (in my case, Button, LinkButton, PopUpButton, et. al.) and assigning their textField m...
[ 0.0006321463733911514, -0.20236589014530182, 0.3424437344074249, -0.253129780292511, 0.07754258066415787, -0.12272241711616516, 0.5155476331710815, -0.1388189196586609, -0.06203697249293327, -0.40169939398765564, -0.38289016485214233, 0.7655667066574097, -0.46899133920669556, 0.28480657935...