text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
How best would I exclude results from #other\_section, given a structure like this? ``` <form> <input id=one> <div id=other_section> <input id=two> </div> </form> ``` Here's a possible API: ``` inputs = @find(":input").exclude("#other_section :input") ``` ``` $(':input:not(#other_section > :input)'); ``...
[ 0.02980675920844078, 0.12678438425064087, -0.20356234908103943, -0.037478189915418625, -0.1073618158698082, -0.19653725624084473, 0.23563773930072784, -0.546038031578064, -0.06628947705030441, -0.5335692167282104, 0.04158260300755501, 0.24990583956241608, -0.23152120411396027, -0.003173494...
So I have the following group by SQL ``` select count(*) as NO_OF_MSGS,FROM_USER,PROFILE_IMG,MSG from MESSAGES group by FROM_USER order by NO_OF_MSGS desc,DATE_SENT limit ?,? ``` How can I replicate this group by in MongoDB. I came across this excellent write up - <http://kylebanker.com/blog/2009/11/mongodb-count-gr...
[ 0.035646483302116394, 0.24081307649612427, 0.18683283030986786, -0.20733655989170074, -0.5044696927070618, 0.059906210750341415, 0.16499608755111694, -0.4303368926048279, -0.37484294176101685, -0.5043549537658691, 0.32380518317222595, 0.4042498767375946, -0.30885621905326843, 0.10092868655...
is a 2-year old write-up. Those operators (`count`, `group`, `distinct`) are still functional but they are quite slow. Using any of those operators amounts to running a Map/Reduce. And I'm not sure that sharding was ever implemented for those operators (*note that the blog post pre-dates sharding*). The modern way to ...
[ 0.01598874107003212, 0.08447664231061935, 0.12762734293937683, -0.15887978672981262, -0.2721923589706421, -0.19314274191856384, 0.39978381991386414, -0.3318771719932556, -0.14823971688747406, -0.5367022156715393, 0.29829034209251404, 0.13186591863632202, -0.3862539529800415, 0.027179075405...
a group. The query you are converting is a simple query in SQL, but this is not a simple query in MongoDB. The problem you are likely having with Mongoid is simply that you are doing something that MongoDB simply does not support (*outside of the new Aggregation Framework*). If you do not have access to the Aggregati...
[ 0.11489523202180862, -0.1492854803800583, 0.013087915256619453, 0.06467676907777786, -0.23689492046833038, -0.17336222529411316, 0.22330120205879211, -0.5498524904251099, -0.38111498951911926, -0.5016791820526123, -0.08543866872787476, 0.32256221771240234, -0.6746994853019714, -0.073379270...
sort (~1M users), you may need to index the output of the M/R for the sort to work.
[ 0.11517255753278732, -0.06634829193353653, 0.5871557593345642, -0.08649376779794693, 0.17857997119426727, 0.2323034405708313, 0.15338464081287384, -0.379787415266037, -0.2683016061782837, -0.6302098631858826, -0.389392614364624, 0.4634256362915039, -0.12746305763721466, -0.1698008328676223...
I'm trying to get a boolean which if equals 1, an image is inserted. I viewed a tutorial, and made this as a starter to test if it works: ``` AND IF(IF_DRAFT_BEER = '1', 5, 2) = 1 ``` I tried to say that *if* **IF\_DRAFT\_BEER** *=* 1, then set the value to 5, otherwise 2. If that worked, I would try implementing t...
[ 0.17231343686580658, 0.2090943306684494, 0.6193292140960693, -0.10092982649803162, -0.13754233717918396, 0.286405473947525, 0.002642023377120495, -0.14814577996730804, -0.09764853119850159, -0.8097701668739319, 0.10563813894987106, 0.17197547852993011, -0.20946624875068665, -0.014360725879...
compare it to `1`. Since neither `5` or `2` is equal to `1`, the comparison will never be true and the query won't return any rows. I'm not quite sure why you'd have this kind of calculation in a `where` clause though, I suspect you'll want to move your calculation up to the select and actually get it as a result, a'l...
[ -0.04647156596183777, 0.410395085811615, 0.4953007400035858, -0.2355470508337021, 0.05850331485271454, 0.254581093788147, -0.03557952493429184, -0.42875227332115173, 0.17136745154857635, -0.6805090308189392, 0.18058811128139496, -0.03991343453526497, -0.07134009152650833, 0.39288330078125,...
I have a server whose files are modified every so now and again. We want to have a script or cron job that runs every 7 days and finds any php files that have been modified or created in the last 14 days and puts them in a tar or a zip file on the server so it can be downloaded. This command finds the right files: `...
[ 0.731099545955658, 0.08926190435886383, 0.17035043239593506, 0.008531972765922546, -0.031320225447416306, -0.07435465604066849, 0.2754584848880768, -0.011522910557687283, -0.05110657960176468, -0.6661415100097656, 0.1194385513663292, 0.8867247104644775, -0.2244042456150055, -0.020933102816...
cvf backup.tar ``` You should check tar options in man. You might want use for example -p (preserve permissions), just look for useful options in man and use whatever you need. [Addendum] if your files might contain spaces or newlines, prefer the -print0 and xargs -0 to use null characters as separators: ``` find ....
[ -0.09839433431625366, 0.05227137356996536, 0.24877773225307465, -0.10755530744791031, 0.12376432865858078, -0.05002743750810623, 0.11409049481153488, 0.042303550988435745, -0.1493198275566101, -0.44659802317619324, -0.3041898012161255, 1.232163906097412, -0.2732047736644745, -0.17889900505...
script at 3am every saturday, the last script is day of the week, 0 or 7 is sunday. man 5 crontab: ``` field allowed values ----- -------------- minute 0-59 hour 0-23
[ 0.04311760142445564, 0.34023213386535645, 0.7344724535942078, -0.14476534724235535, 0.1371646374464035, 0.08975712209939957, 0.6723191142082214, -0.13415125012397766, 0.04830664396286011, -0.6741281151771545, -0.25538384914398193, 0.5477923154830933, 0.3251667618751526, 0.06505225598812103...
day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 is Sun, or use names) ```
[ 0.3199218213558197, 0.2759314179420471, 0.21822097897529602, -0.2538779675960541, -0.2577644884586334, 0.19912146031856537, 0.3962912857532501, 0.3183494508266449, -0.28182917833328247, -0.3245408535003662, -0.3849015533924103, 0.4028458893299103, -0.20197761058807373, 0.1770317703485489, ...
i want to call a method that placed in tag in master page like this ``` <script runat="server"> protected void usernameTextBox_TextChanged(object sender, System.EventArgs e) { } </script> ``` inside a form that uses this master page. note: that i will use this method for example by a textbox inside formview ...
[ 0.1435171365737915, -0.12499149143695831, 0.5923559069633484, -0.0318523533642292, -0.22260130941867828, -0.2059529423713684, 0.2147749364376068, -0.4554804563522339, -0.1291218101978302, -0.7172415256500244, -0.2309398204088211, 0.5049785375595093, -0.28765106201171875, 0.2211616188287735...
In underscore.js the for each method starts with the following: ``` var each = _.each = _.forEach = function(obj, iterator, context) { ``` How is it able to do something = something = something? I didn't think you could do that? See: <http://documentcloud.github.com/underscore/docs/underscore.html#section-12> Than...
[ 0.20317654311656952, -0.0890803411602974, 0.3304043710231781, -0.03325125575065613, 0.06657665222883224, -0.17160148918628693, 0.4650045335292816, -0.2444147765636444, -0.136914923787117, -0.2708783745765686, -0.13640499114990234, 0.45936065912246704, -0.20586374402046204, 0.16806139051914...
all reference the same function.
[ 0.37894198298454285, 0.723640501499176, 0.39437150955200195, 0.15411320328712463, -0.09109487384557724, -0.01155912596732378, 0.011780661530792713, -0.006157837342470884, 0.1588367372751236, -0.6782430410385132, -0.06531089544296265, 0.40271857380867004, -0.38931697607040405, 0.04008653387...
I have many MPEG-4 files transcoded from various digital camera formats for which the file system modified date is correct. I'd like to set the "Media Created" tag to match. This can be done manually in Windows Explorer via the Details tab of the Properties window. Setting Media Created is useful because Windows Live P...
[ 0.7328708171844482, 0.02266118675470352, 0.39450258016586304, -0.01654032990336418, -0.041987866163253784, -0.4083322286605835, -0.10295276343822479, -0.1829727739095688, -0.24146559834480286, -0.7439979910850525, -0.127907395362854, 0.46940863132476807, -0.08556537330150604, 0.28254795074...
basic tags is unclear. Another angle is the Windows shell. Presumably, Windows Explorer is using it to write the tags. There is an [example for reading](http://todd.ropog.com/2011/organize-media-files-with-powershell/) via the shell, but there doesn't appear to be an API for writing. Use the [Windows Property System](h...
[ 0.3802510201931, -0.09219849109649658, 0.5521670579910278, 0.16655175387859344, 0.11069489270448685, -0.48902809619903564, 0.0011648937361314893, -0.6345140933990479, -0.38200515508651733, -0.6243451237678528, 0.04484852775931358, 0.3483857214450836, -0.3457641899585724, 0.1211896017193794...
Should you always create accesssors (for reading and/or writing) in ruby? If you have a class that's not meant to be reused outside, can't I just use instance variables directly? One of the problems I ran into is that it's problematic to stub out `@instance_vars` in tests. Instance variables don't matter when it comes...
[ 0.4740486145019531, 0.3067134618759155, -0.3306998610496521, 0.31570324301719666, -0.3065721392631531, -0.038660142570734024, 0.6214462518692017, -0.12316746264696121, -0.24693696200847626, -0.5616415739059448, 0.18182511627674103, 0.5810363292694092, -0.41641488671302795, 0.08905614912509...
database, a file, runtime computation or whatever. People can just call the method to obtain the value. Similarly, when you define a writer method for an attribute, you are letting everybody know that they can set it, if they need to. It doesn't matter where the value goes to. Only your methods define your public API...
[ 0.2794487774372101, 0.09096814692020416, -0.11037176102399826, 0.43786904215812683, -0.10458634048700333, -0.2560320198535919, 0.22924062609672546, -0.07291316986083984, -0.2728552222251892, -0.4126282334327698, 0.11090495437383652, 0.5448704361915588, -0.5384813547134399, 0.17544037103652...
@variable ||= :value end # ... variable.to_s ``` If your method is for internal use only, you should not include it in your public API. Mark it as private: ``` private :variable ``` To be honest, though, nothing is really locked down in Ruby. Even without setter methods, people can easily tamper with your object...
[ 0.18660154938697815, 0.011882181279361248, 0.5263142585754395, 0.1770884394645691, -0.22245702147483826, -0.250415176153183, 0.7172966599464417, -0.3272692561149597, -0.10250115394592285, -0.1899939328432083, -0.04605473205447197, 0.8066495656967163, -0.5708085894584656, 0.3520126640796661...
EDIT: My xCode project (called PROJECT1) contains another xCode project as a dependency (in Build Phases) (called LIB1) The problem I have is that LIB1 needs a macro and some defines defined at compile time by PROJECT1 in an include (depending on what target is selected in PROJECT1) I thought that a Run script actio...
[ 0.5106036067008972, 0.16146081686019897, -0.007419290952384472, -0.30225178599357605, -0.08104976266622543, -0.1013948917388916, 0.2334468513727188, -0.14719688892364502, -0.15158799290657043, -0.538554310798645, 0.04903301224112511, 0.5229471325874329, -0.7823212146759033, -0.027244495227...
a lot. Do you have an idea? Thanks for your help. Thierry Remove \* (dereference), ``` strcat(palavra2, pont); ``` strcat expects a `char*` not a `char` but this version appends the whole rest. you have to create a nul-terminated string. And the \* is useless ``` *pont++; ``` This does the job ``...
[ -0.08428504317998886, 0.13051897287368774, 0.3684704899787903, -0.3041413724422455, 0.07621439546346664, 0.604561448097229, 0.4534536600112915, -0.0536944679915905, -0.17918682098388672, -0.49587762355804443, -0.49866992235183716, 0.204029381275177, -0.2888975143432617, 0.18175733089447021...
strcat(palavra2, c2); } pont++; }while (*pont != '\0'); printf("\nThe number is:\n%s\n", palavra2); return 0; ``` However, this is too complicated ``` int main() { char palavra[SIZE]; char palavra2[SIZE]; printf("Insert the string\n"); scanf("%s", palavra); char *pont = palavra; char *pont2 = ...
[ -0.10425347089767456, 0.22669951617717743, 0.7127125859260559, -0.6535409092903137, -0.026758162304759026, 0.6384621262550354, 0.2166868895292282, -0.3396456241607666, -0.15869075059890747, -0.28584614396095276, -0.5725487470626831, 0.33343732357025146, -0.3884671926498413, 0.1900380253791...
I have this python string: ``` string = '"/dev/null" "" "19/1333329478.9381399" 0 1 "cam-foo" 64 900.0 "Foo x rev scan of test" "/usr/bin/env ""PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:$PATH"" python app.py" 60.145855 2.034689' ``` I need a regex that gives me a list of every element in this string. Element...
[ 0.5468311309814453, 0.4037509262561798, 0.3889106512069702, -0.21730999648571014, -0.06306181848049164, 0.01443262118846178, 0.3934365510940552, -0.16927053034305573, -0.09403269737958908, -0.2316543310880661, 0.002091062255203724, 0.3788146376609802, -0.4869755208492279, 0.086201667785644...
the string. **Double-quote inside an element should be ignored.** I'd like to have this result: ``` ['"/dev/null"', '""', '"19/1333329478.9381399"', '0', '1', '"cam-foo"', '64', '900.0', '"Foo x rev scan of test"', '"/usr/bin/env ""PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:$PATH"" python app.py"', '60.145855',...
[ 0.15796993672847748, 0.31442418694496155, 0.2937442362308502, 0.08168606460094452, 0.17690154910087585, 0.09047979861497879, 0.3362078368663788, -0.37666383385658264, -0.038905587047338486, -0.40585675835609436, -0.16788291931152344, 0.6657227873802185, -0.31539779901504517, -0.23981559276...
<http://miche.com/> This is the strangest thing. We're using two web fonts and their varying weights on the above page: Benton Sans and Jubilat, both of which we have licenses for. The h2 ("Interested in joining Miche?" "Already a Miche Representative?") is set to be Jubilat Regular, and is properly showing up in Fire...
[ 0.18062542378902435, 0.2095789909362793, 0.40669071674346924, -0.04555422440171242, -0.290691614151001, 0.2913132905960083, 0.26750293374061584, -0.009313652291893959, -0.049805935472249985, -0.8285388350486755, -0.09395293146371841, 0.1843014359474182, -0.31088101863861084, 0.082262568175...
I have tried Bulletproof. Why is Regular showing up when Light isn't? I wonder if I'm just not using the right combination of CSS. ``` @font-face { font-family: 'JubilatLight'; src: url('https://bc.miche.com/FileUploads/CMS/Documents/jubilatlightwebfont.eot'); src: url('https://bc.miche.com/FileUploads/CM...
[ 0.20284996926784515, 0.4660622477531433, 0.42339804768562317, -0.2674643397331238, -0.33547139167785645, 0.2735300064086914, 0.4566631615161896, -0.2880210280418396, 0.24439673125743866, -0.5991281270980835, -0.5827698707580566, 0.5357428193092346, -0.1935400366783142, 0.10995227098464966,...
color: #701271; text-align: center; } ``` I figured it out. Firefox wasn't accepting absolute links, and instead wanted relative. Coupled with Mo'Bulletproof, I was able to get it to show up like so: ``` @font-face{ /* for IE */ font-family:JubilatLight; src:url(/FileUploads/CMS/Documents/jubilatlightwebfont.eot)...
[ -0.12782570719718933, 0.3077867329120636, 0.6040287017822266, -0.20267505943775177, -0.1830388605594635, 0.1576228141784668, 0.29388153553009033, -0.2057332992553711, 0.0753924548625946, -0.856552004814148, -0.36645272374153137, 0.782447338104248, -0.24855318665504456, -0.06850598752498627...
Is objects enqueued to a ConcurrentQueue are copied to the queue or just their references? I don't understand any scenario. Explanation: I defined a ConcurrentQueue like this: ``` // BufferElement is a class I created private ConcurrentQueue<BufferElement> _bufferQueue; ``` I have a function which is called a lot...
[ -0.11293204128742218, -0.24504205584526062, 0.3796781301498413, 0.06605754792690277, 0.06641247123479843, 0.15795393288135529, 0.01715853624045849, 0.33577924966812134, -0.5139204263687134, -0.30804377794265747, 0.22730249166488647, 0.2305143177509308, -0.527198851108551, 0.599872529506683...
it might be because the garbage collector does not collect the `bufferElement` because it is still has referenced in the `bufferQueue`, so I changed the function to this: ``` private void EnqueueElementToBuffer(string data, int moreData) { // _bufferElement is now a filed of the class _bufferElement.Data = dat...
[ -0.07660272717475891, -0.051246874034404755, 0.3789038360118866, -0.12793806195259094, 0.27310889959335327, 0.11316902935504913, 0.15823231637477875, -0.0008555881795473397, -0.39574533700942993, -0.5055738091468811, -0.0103090675547719, 0.3631410598754883, -0.5680442452430725, 0.560596466...
the objects is cpoied to the queue, but I was afraid that all the elements in the queue are referencing to the same object, so I checked another function I have in another thread which what it does is: ``` // while bufferQueue is not empty do the following BufferElement bufferElement = null; bufferQueue.Tr...
[ -0.02335538901388645, 0.0505661778151989, 0.38950181007385254, 0.06107274070382118, 0.22705236077308655, -0.004378394689410925, 0.12937936186790466, 0.15118308365345, -0.6265220046043396, -0.40751051902770996, 0.20723269879817963, 0.1388670802116394, -0.4192485213279724, 0.4874902367591858...
call `Enqueue` only a copy of the reference is stored in the `ConcurrentQueue<T>`. But this reference is strongly held which means it does keep the actual referred to object in memory. The element won't be eligible for collection until the reference is removed from the `ConcurrentQueue<T>` The reason you didn't see an...
[ -0.14818143844604492, -0.12990954518318176, 0.34179165959358215, 0.2733497619628906, 0.12683111429214478, -0.12592215836048126, 0.19920779764652252, 0.14117594063282013, -0.31069958209991455, -0.42270129919052124, -0.16008919477462769, 0.3364652693271637, -0.5450406074523926, 0.47049942612...
in memory This significantly reduced the amount of memory the `ConcurrentQueue<T>` object graph was holding in memory and prevented the exception. It seems like the problem here is you are simply equeuing elements much faster than you are processing them. So long as this holds true you will eventually run out of mem...
[ -0.10179738700389862, -0.0528533048927784, 0.1645401269197464, 0.16215093433856964, 0.07529488950967789, -0.024100471287965775, 0.28267863392829895, 0.026775874197483063, -0.3235945701599121, -0.4581296443939209, 0.09288691729307175, 0.2734595835208893, -0.2796778380870819, 0.3584000468254...
has a few throttling capabilities which may help you. * <http://msdn.microsoft.com/en-us/library/dd267312.aspx>
[ 0.2341601848602295, -0.04501883313059807, 0.35279402136802673, 0.20515169203281403, 0.18425536155700684, -0.26125970482826233, 0.18859128654003143, 0.05728946626186371, -0.12446077167987823, -0.2994965612888336, -0.07983709126710892, 0.405376672744751, 0.10408992320299149, 0.24384732544422...
I'm using Bootstrap and Bootstrap Carousel in a project. I would like to know if there's any way to make the Carousel navigate to a specific slide. For example, something like: ``` $('myCarousel').to(2); ``` Does anybody know a way to do this? From the documentation: > .carousel(number) Cycles the carousel to a...
[ 0.427948921918869, 0.06941261142492294, 0.5525229573249817, 0.36066436767578125, 0.17358028888702393, 0.05661163479089737, -0.24716317653656006, -0.1115524098277092, -0.5886212587356567, -0.5117248296737671, 0.309304416179657, 0.3031313121318817, -0.2609234154224396, -0.14670278131961823, ...
I have a number of "library" modules in OCaml (mainly utility and helper functions) where I've added the following kind of code at the end for trivial unit-testing: ``` let main () = ... main ``` or ``` let () = ... ``` This being code that mainly prints to the console (for simple testing purposes). The problem ...
[ 0.34176382422447205, 0.16293965280056, 0.15594621002674103, -0.04513324052095413, 0.07063796371221542, -0.2893468737602234, -0.03832807019352913, -0.01065464410930872, -0.09329979866743088, -0.4280696511268616, -0.09737948328256607, 0.752519428730011, -0.46867817640304565, -0.0671969056129...
when used as a "library"? I 've read posts in SO to the effect that OCaml has no notion of a "main" module and that all modules are equal however it seems to me that the order of the object files given to the linker could be construed to indicate that the last module is the "main" one (since it's at the top of the "dep...
[ 0.27393218874931335, -0.2095283567905426, 0.26136696338653564, -0.11322090029716492, -0.13424816727638245, -0.6589680910110474, 0.0189795084297657, 0.15650954842567444, -0.5414440631866455, -0.24455510079860687, -0.3979114890098572, 0.4620717465877533, -0.5100682973861694, 0.04150113835930...
plugin architecture. Anyway, a library is nothing else than a module (probably with sub-modules). If you statically link a module, all "main" routines will get executed in the order of the modules being linked in your executable. So if you don't do anything about it, a module does not know into which executable it is...
[ 0.3338319659233093, -0.20491521060466766, 0.019118530675768852, 0.19046321511268616, 0.18016500771045685, -0.31315940618515015, 0.24823735654354095, -0.32394281029701233, 0.005726393777877092, -0.665752112865448, -0.0986977070569992, 0.4899348318576813, -0.6631044745445251, -0.137239634990...
from all of your modules. *addendum:* If you do that in other languages, there seems to be no free cake either: In Java you if you have multiple mains in your code, you must explicitly select the one you want the executable to run. In C you could use the C preprocessor to do something like ``` #ifdef TEST_1 int ma...
[ 0.42400479316711426, 0.12771783769130707, 0.09576760977506638, 0.047645993530750275, -0.04522087797522545, -0.3152884244918823, 0.09100038558244705, -0.12082971632480621, -0.2003677487373352, -0.25831133127212524, -0.009802248328924179, 0.7454047203063965, -0.2739299237728119, -0.101523078...
in Java, C & OCaml).
[ -0.4555421769618988, 0.1374046504497528, 0.03407801315188408, -0.3600632846355438, 0.05480425804853439, -0.06157059967517853, 0.10240450501441956, -0.06958822906017303, -0.2795632481575012, -0.37676742672920227, -0.5275180339813232, 0.27307215332984924, -0.4093107581138611, -0.170507147908...
Is it possible to Navigate back in the WebBrowser Control? I couldnt find any method to do this. Every Image needs a description of what the content is of the byte array. This description is called Header. If you now want to exchange the bytes, you need to avoid changing the header. <http://en.wikipedia.org/wiki/BMP_f...
[ 0.34565773606300354, 0.0987827256321907, 0.5479257106781006, 0.3397047221660614, -0.30015483498573303, -0.03345462307333946, -0.026244424283504486, -0.43803590536117554, -0.34870854020118713, -0.3975370228290558, 0.04326506331562996, 0.2094060480594635, -0.24365228414535522, 0.172204270958...
http://software.goldengel.ch, 2012</remarks> Public Function ArrayToBitmapData(ByVal ArrSrc() As Byte, ByVal ImageSize As System.Drawing.Size, ByVal SourceArrayPixelFormat As System.Drawing.Imaging.PixelFormat) As System.Drawing.Bitmap 'Kopiert ein ByteArray in ein Bitmap Dim m As Integer Dim bmTemp As Sys...
[ -0.16555501520633698, 0.004642436280846596, 0.4614473581314087, -0.24182666838169098, -0.48539867997169495, 0.21490512788295746, 0.2859038710594177, -0.392423540353775, -0.3709929585456848, -0.27818921208381653, -0.41249433159828186, 0.37994617223739624, -0.2551107704639435, 0.104553900659...
= ImageSize 'Helfer für die Bildverarbeitung erzeugen Dim bts As System.Drawing.Imaging.BitmapData 'Bitmap erzeugen um damit zu arbeiten bmTemp = New System.Drawing.Bitmap(S.Width, S.Height, SourceArrayPixelFormat) 'Farbtiefe berechnen '24Bit und 32Bit Bilder werden unterstützt 'Kann beli...
[ 0.17193515598773956, 0.08097085356712341, 0.6246702075004578, 0.10472399741411209, -0.3639535903930664, 0.38721922039985657, 0.35799601674079895, -0.6913409233093262, -0.22563301026821136, -0.4991658627986908, -0.23145166039466858, 0.19147497415542603, -0.29904574155807495, -0.202200695872...
'Speicherplatz reservieren 'MemorySize = S.Height * S.Width * m 'Nur zur Kontrolle ScanLine = GetScanline(S, SourceArrayPixelFormat) MemorySize = S.Height * bts.Stride If ArrSrc.Length >= MemorySize Then 'Bilddaten aus dem Array laden Global.System.Runtime.InteropServices.Marshal.Co...
[ -0.1967579871416092, 0.0891762301325798, 0.5436840057373047, -0.06162407994270325, -0.41163986921310425, 0.2656446695327759, 0.17460156977176666, -0.5933616757392883, -0.3650186061859131, -0.4469914734363556, -0.4125927686691284, 0.20282620191574097, -0.14995281398296356, -0.19458928704261...
Umrechnung auf das Pixelformat ''' <summary> ''' Get an Array of the data of any image. ''' Bitmap header execluded. ''' </summary> ''' <param name="bmSrc">Source image</param> ''' <param name="NeededDestinationPixelFormat">Pixelformat, like 24Bit or 32Bit</param> ''' <returns>Image content</returns> ''' <remarks>copy...
[ -0.2866935431957245, -0.022517407312989235, 0.7806174755096436, 0.16951556503772736, -0.32722634077072144, 0.26239821314811707, 0.20805756747722626, -0.6638345718383789, -0.38074561953544617, -0.20104803144931793, -0.4138588309288025, 0.21832901239395142, -0.15738946199417114, 0.1913537681...
prüfen If bmSrc Is Nothing Then Return A 'Bildgrösse definieren 'Bei unterschiedlichen Grössen, wird muss die kleinere Grösse verwendet werden S = bmSrc.Size 'Helfer für die Bildverarbeitung erzeugen Dim bts As System.Drawing.Imaging.BitmapData 'Farbtiefe berechnen '24Bit und 32Bit Bi...
[ 0.17072641849517822, 0.041562195867300034, 0.48198696970939636, 0.034874774515628815, -0.35947152972221375, 0.355744332075119, 0.18222886323928833, -0.46298667788505554, -0.16171017289161682, -0.15375500917434692, -0.3795969486236572, 0.3644823729991913, -0.0884069874882698, 0.059069119393...
<> bmSrc.PixelFormat Then 'Bitmap erzeugen um damit zu arbeiten bmTemp = New System.Drawing.Bitmap(S.Width, S.Height, NeededDestinationPixelFormat) Using gr As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(bmTemp) gr.DrawImage(bmSrc, 0, 0) End Using 'Im...
[ 0.046613097190856934, -0.09500177949666977, 0.8345298767089844, 0.0059606097638607025, -0.2542653977870941, 0.3010503947734833, 0.3186202347278595, -0.6787261962890625, -0.22888466715812683, -0.6332592368125916, -0.3808295428752899, 0.2994944751262665, -0.3017750382423401, 0.06678450107574...
0, S.Width, _ S.Height), System.Drawing.Imaging.ImageLockMode.ReadOnly, NeededDestinationPixelFormat) 'Speicherplatz reservieren MemorySize = S.Height * bts.Stride ReDim A(MemorySize - 1) '28.2.2010. wichtige Änderung. 1 Byte zuviel wurde reserviert. Das konnte bei Wiederholung von Graphics.Drawing...
[ -0.006302997935563326, -0.08617528527975082, 0.5159371495246887, -0.18346945941448212, -0.16975900530815125, 0.13887031376361847, 0.2613692879676819, -0.4668046534061432, -0.380589097738266, -0.27757126092910767, -0.47583407163619995, 0.3016375005245209, -0.18164454400539398, -0.1134176328...
I wrote a code that retrieve data from server and display them in a simple list and it work successfully,but when I use a custom list view "in which each row consist of textviews and checkbox" it doesn't work.. this is my classes: ``` public class ItemInList { private String name; private float Description; private b...
[ 0.10473870486021042, -0.21667438745498657, 0.2326425462961197, 0.008647343143820763, 0.05074755474925041, 0.1079566553235054, 0.2098592221736908, -0.408173531293869, -0.1351703554391861, -0.5804113149642944, -0.18332786858081818, 0.6170958280563354, -0.33771848678588867, 0.5859493613243103...
setDescription(float Description) { this.Description = Description; } public boolean isSelected() { return selected; } public void setSelected(boolean selected) { this.selected = selected; } ``` this is the adapter class ``` public class DataAdapter extends ArrayAdapter<ItemInList> { public ArrayList<...
[ 0.08846491575241089, -0.5523101091384888, 0.6644079089164734, -0.1748458445072174, -0.03500274941325188, -0.021616211161017418, 0.1682366281747818, -0.6881396174430847, -0.09705724567174911, -0.4987025558948517, -0.612023115158081, 0.49541035294532776, -0.4811023473739624, 0.10322654992341...
return list.size(); } @Override public ItemInList getItem(int position) { // TODO Auto-generated method stub return list.get(position); } @Override public long getItemId(int position) { // TODO Auto-generated method stub return 0; } @Override public View getView(int position, View convertView, ViewGr...
[ 0.13749291002750397, -0.17324736714363098, 0.7179698944091797, -0.4615693986415863, -0.12740059196949005, 0.41128429770469666, 0.2802737057209015, -0.5327261090278625, 0.08052241802215576, -0.48212701082229614, -0.48780515789985657, 0.7447307705879211, -0.12961751222610474, 0.3272719681262...
holder.name.setTextColor(Color.BLACK); holder.Description = (TextView) convertView.findViewById(R.id.food_description); holder.Description.setTextColor(Color.GRAY); holder.checkbox = (CheckBox) convertView.findViewById(R.id.add_food_item); //viewHolder.checkbox //.setOnChec...
[ 0.13860981166362762, -0.08325422555208206, 0.5651331543922424, -0.30388858914375305, 0.3611067533493042, 0.2945089638233185, 0.3010697662830353, -0.7413461804389954, -0.18234194815158844, -0.8712320923805237, -0.10700367391109467, 0.5153325796127319, -0.25747767090797424, 0.338476419448852...
//boolean isChecked) { //ItemInList element = (ItemInList) viewHolder.checkbox.getTag(); //element.setSelected(buttonView.isChecked());
[ -0.3055613934993744, -0.6378342509269714, 0.4321236312389374, -0.09246145188808441, 0.23242498934268951, 0.06940849870443344, 0.30514606833457947, -0.3317577540874481, -0.31723880767822266, -0.4275561571121216, -0.5025925636291504, 0.3530226945877075, -0.6546809077262878, -0.15632814168930...
//System.out.println("Checked : " + element.getName()); //} //}); convertView.setTag(holder); } else { holder=(ViewHolder)convertView.getTag(); ItemInList bean = (ItemInList) list.get(position); holder.name.setText( bean.getName());
[ -0.3392588794231415, -0.412471741437912, 0.6644946336746216, -0.3985840380191803, 0.009990835562348366, 0.05680835247039795, 0.1069648265838623, -0.30007293820381165, -0.29935720562934875, -0.5320450067520142, -0.5337657332420349, 0.41915035247802734, -0.46847444772720337, 0.11597564071416...
holder.Description.setText( bean.getDescription()+""); holder.checkbox.setChecked( bean.isSelected()); return convertView; } holder.name.setText(list.get(position).getName()); holder.Description.setText(list.get(position).getDescription()+""); holder.checkbox.setChecked(list....
[ 0.23809270560741425, 0.2027987390756607, 0.47516119480133057, -0.3688533902168274, 0.15295830368995667, 0.131410613656044, 0.24582020938396454, -0.1987258493900299, -0.049674663692712784, -0.7894862294197083, -0.4809330403804779, 0.8000215291976929, -0.46921682357788086, 0.3589987158775329...
I am trying to write a vbscript that will write the date and time into a config file in specific way. I have been researching the web and have not been able to locate how to format the seconds function correctly. Not even sure if it is possible. Any help or references would be greatly appreciated. My question is, Is th...
[ 0.48063576221466064, 0.23222970962524414, 0.8547373414039612, 0.13750587403774261, 0.054095081984996796, 0.03414065018296242, 0.018629716709256172, -0.024005847051739693, -0.45271486043930054, -0.5394506454467773, 0.18012571334838867, -0.15123486518859863, -0.1287750005722046, 0.4834866821...
(Year(Now) & "-" & Month(date) & "-" & day(date) & "T" & Hour(Time) & ":" & Minute(time) & ":" & Second(time) ' Displays as YYYY-MM-DDTHH:MM:SS second = FormatNumber(Second, 3) write.write(myDate) ``` I need it to display as YYYY-MM-DDTHH:MM:SS.SSS. Thanks in advance. Use a pad function to pad with extra zero's. Us...
[ 0.07951044291257858, -0.0898347795009613, 0.9705716371536255, -0.025393852964043617, 0.19183526933193207, 0.39016756415367126, 0.2195703238248825, -0.36350584030151367, -0.11854758113622665, -0.7346377372741699, 0.02368411421775818, 0.3655525743961334, 0.3121369183063507, 0.365220487117767...
zeroPad(Second(myNow),2) & "." & _ left(split(timerNow, ".")(1),3)) ' Displays as YYYY-MM-DDTHH:MM:SS.SSS Private Function zeroPad(byval strInput, byval padCount) If len(strInput) < padCount Then zeroPad = string(padCount - len(strInput), "0") & strInput Else zeroPad = strInput End If E...
[ -0.28238290548324585, -0.39362043142318726, 0.7338691353797913, -0.14724232256412506, -0.002804179210215807, 0.4490867555141449, 0.03610289841890335, -0.2830750346183777, -0.15957091748714447, -0.624626100063324, 0.2824523448944092, 0.6979219913482666, 0.06778008490800858, 0.09600981324911...
the reader.
[ -0.4506599009037018, 0.03900064155459404, -0.1337174028158188, -0.007046734914183617, -0.26688361167907715, 0.3014751076698303, -0.20029830932617188, 0.09141286462545395, -0.15826056897640228, -0.6197435259819031, -0.25121811032295227, 0.25611311197280884, -0.12245354056358337, -0.07611334...
I have an image inside a div.. the div has a background picture..and I am trying to move the image so that it is centered and have 3px margin from each side. My css: ``` #user_avatar_background { float:left; margin:5px 15px 5px 0px; margin-right: 10px; width:...
[ 0.08661284297704697, 0.1313493549823761, 0.737957775592804, -0.15605193376541138, 0.024449855089187622, 0.2671268582344055, -0.03298645839095116, -0.01894833892583847, 0.11115581542253494, -0.770592451095581, 0.08368372917175293, 0.4399060308933258, -0.09104668349027634, 0.0395405851304531...
height:200px; background-image: url('image_files/avatar-background.gif'); background-repeat: no-repeat; overflow: hidden; } #user_avatar_background image{ position:relative; margin:3px 3px 3px 3px; } ``` My html: ``` <div id="user_avatar...
[ -0.2988968789577484, -0.13168877363204956, 0.7381988763809204, -0.08053673058748245, 0.0449582114815712, 0.3641777038574219, 0.006152278743684292, -0.1325409859418869, -0.28492820262908936, -0.5638027787208557, -0.08475327491760254, 0.6562898755073547, 0.12786458432674408, -0.0124845188111...
<image src="Images/user_pics/cypher.jpg" width="150px" height="150px" /> </div> ``` The picture wont move.. no matter how much margin, I give it.. You are using an `image` tag which is not a valid html tag. Try using `img`. CSS: ``` #user_avatar_background { float:left; margin:5px 15px 5px 0px;...
[ -0.05633072182536125, 0.01844155043363571, 0.8540710806846619, -0.09104840457439423, -0.0006323775742202997, 0.2605854868888855, 0.04273686930537224, -0.2031421661376953, -0.23008164763450623, -0.6336325407028198, -0.1720910668373108, 0.4354226887226105, -0.05723382532596588, 0.06704923510...
overflow: hidden; } #user_avatar_background img{ position:relative; margin:3px 3px 3px 3px; } ``` HTML: ``` <div id="user_avatar_background"> <img src="Images/user_pics/cypher.jpg" width="150px" height="150px" /> </div> ```
[ -0.3915277123451233, -0.09170367568731308, 0.5909731388092041, -0.012257594615221024, -0.0846073254942894, 0.3230538070201874, 0.045766960829496384, -0.1217920109629631, -0.28602007031440735, -0.6636855006217957, -0.15130364894866943, 0.4206915497779846, -0.12196927517652512, 0.07681694626...
I'm trying to get a UIScrollView that contains a few UIScrollViews of PDFs. The same idea as this view in the App Store (just with PDFs and the ability to zoom): ![App Store Screenshot Viewer](https://i.stack.imgur.com/6ancn.png) I'm having difficulty getting the zoom to work correctly. How can I have them zoom toge...
[ 0.12876276671886444, -0.04301127418875694, 0.5598244071006775, 0.10528073459863663, -0.322816401720047, -0.005986898206174374, 0.37039345502853394, -0.34723803400993347, -0.31479737162590027, -0.6524478197097778, 0.14787708222866058, 0.8382846117019653, 0.12611337006092072, -0.148785263299...
images. Adopting an pdf view (from another tutorial) shouldn't be a big deal. In your `viewForZoomingInScrollView:` method you can call the other `scrollView` and set a zoom scale programmatically ``` - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { if (scrollView == firstSV) { return v...
[ 0.14408449828624725, -0.4132724106311798, 0.8986493945121765, -0.0370720736682415, -0.22892983257770538, -0.42587366700172424, 0.17927153408527374, -0.40126538276672363, -0.026040351018309593, -0.9767763018608093, -0.2659096121788025, 0.9086264371871948, -0.2954346835613251, -0.13800424337...
I have a big `<div />` container that has an image as a background. When the user moves the cursor over that element I need to show an another `<div />` that has information. I want this second one relative to the position of the cursor. This is how far I am, I don't know how to exactly fit it on the mouse pointer: <h...
[ -0.05519578233361244, -0.025341790169477463, 0.5650015473365784, -0.16290682554244995, 0.11487285047769547, -0.025698797777295113, -0.02574962005019188, 0.06379261612892151, -0.1776900738477707, -0.6275023221969604, -0.0060136402025818825, 0.6171110272407532, -0.16375133395195007, -0.17455...
PageX/Y: ``` $("#big-area").bind("mousemove", function(e) { var x = e.pageX - this.offsetLeft; var y = e.pageY - this.offsetTop; $("#data").html('e.pageY: ' + y + ', e.pageX: ' + x); $("#helper").css('top', y).css('left', x).show(); }); ``` [**Updated fiddle**](http://jsfiddle.net/cyX2m/4/)
[ 0.06951200217008591, 0.05525451898574829, 0.7950968742370605, -0.26182836294174194, -0.06855805218219757, 0.2467481791973114, 0.18111678957939148, -0.39370912313461304, -0.23275184631347656, -0.7486801743507385, -0.22542645037174225, 0.35564249753952026, -0.3371741473674774, 0.298886984586...
I'd like to implement this little code in Clojure, but I am struggling: ```cpp struct mystruct { int id; int price; }; mystruct mydata[10]; for (int i=0; i<10; i++) { myfunction(mydata[i].id, mydata[i].price); //other things... } ``` I am a beginner with Clojure and it's really complicated for me to do s...
[ 0.17904670536518097, -0.1291414350271225, 0.354061096906662, 0.11581170558929443, -0.061109453439712524, -0.1639227420091629, 0.4456382691860199, -0.15426725149154663, 0.16422265768051147, -0.5540962815284729, -0.16243331134319305, 0.6266404390335083, -0.3176479637622833, -0.46954742074012...
`for` macro. ``` (for [i (range 10)] (inc i)) ``` The above function will return all the numbers from 0 to 9 incremented by 1. However, it appears you simply want to iterate over a sequential collection and use each item. If that's all that you need, then you don't need to reference an index value, instead you can r...
[ -0.28134316205978394, 0.1534404158592224, 0.5851556062698364, -0.1070391833782196, 0.040495775640010834, 0.3932822048664093, -0.07209333777427673, -0.2649397850036621, -0.3377908170223236, -0.734664797782898, -0.26288527250289917, 0.6535503268241882, -0.4352242946624756, 0.0815845951437950...
`map` and `for` return a collection of values made up of the values returned by `my-function`. This is because Clojure's data structures are immutable, so it's necessary to have a new collection returned. If that isn't what you need or if your function has side effects, you could use `doseq` instead of `for`, which ret...
[ 0.18318027257919312, -0.15127860009670258, 0.3871978521347046, 0.07574792206287384, 0.027961835265159607, -0.22724094986915588, -0.026321792975068092, -0.25434771180152893, 0.3185562789440155, -0.6074233651161194, -0.011761649511754513, 0.47635892033576965, -0.4576900601387024, 0.148239880...
I have found many similar posts and even tried to find out how to handle negative values within MySQL, but to no avail. I have a site that I'm using Google Maps on and as a performance enhancement I'm limiting the markers that are drawn on the map to those that are within the map boundaries. I would like to develop a...
[ 0.2614213824272156, 0.3540549874305725, 0.7589422464370728, 0.1984018087387085, 0.013755875639617443, 0.1925942450761795, 0.12951788306236267, -0.11330181360244751, -0.003442994086071849, -0.7230514287948608, 0.24505320191383362, -0.06150224432349205, -0.12973156571388245, 0.34910023212432...
`BETWEEN` clause for `longitude` I get results, albeit incorrect with no `longitude` constraint. I have tried this: ``` AND -`longitude` BETWEEN ABS( -97.077303 ) AND ABS( -97.083997 ) ``` Which does work, but only for negative `longitude` values. Do I need to check `longitude` if its negative? You can also use ...
[ 0.12596972286701202, 0.12540696561336517, 0.39937537908554077, -0.0522773414850235, 0.346015065908432, 0.4286361038684845, -0.05300008878111839, -0.12447662651538849, 0.019040293991565704, -0.5500010251998901, -0.1484423279762268, 0.25724777579307556, 0.04091460257768631, 0.241779565811157...
I have `array of strings, String[] data` and it's 10 elements has value `P` and so `data[10]={java.lang.String@587}"P"` When I do inspect on `data[10]`, i get `data[10].value[0] = 'P' 80`, am not sure what that `80` is referring too. In my program, am trying to check ``` if (data[10] == "P") { lookUp = data[7]...
[ -0.17163066565990448, 0.3216489553451538, 0.37112900614738464, -0.34412938356399536, 0.0787217766046524, 0.22089773416519165, 0.27491632103919983, -0.7528008222579956, -0.23536545038223267, -0.5793372392654419, -0.07426808774471283, 0.4160965085029602, -0.3398638665676117, -0.1741044223308...
even if `data[10]="P"` even then i hit last `else` and not first `if` loop, any suggestions? You need to compare strings by value, not by reference: ``` if ("P".equals(data[10])) ```
[ -0.1571461409330368, 0.1259445995092392, 0.3206453323364258, -0.054763276129961014, -0.04066513106226921, 0.1008559986948967, 0.03517473116517067, -0.11286771297454834, -0.20025992393493652, -0.20232902467250824, -0.1599801629781723, 0.4274420440196991, -0.2796281576156616, -0.006940586026...
I'm trying to produce a PDF report with Prawn, I can get it to do a report on a show action easily enough by passing the single ID but I want to produce one with every record in it. Like a standard rails scaffold index page. Using rails it would look like this: ``` <% @customer.each do |customer| %> <%= customer.id %>...
[ 0.17703433334827423, -0.03073710761964321, 0.5044582486152649, -0.02483215369284153, -0.4571094214916229, -0.1068940982222557, -0.05397294834256172, -0.4042409360408783, -0.13783299922943115, -0.47782421112060547, 0.3401128947734833, 0.3749484121799469, -0.12787620723247528, 0.049468290060...
end end end ``` Which clearly isn't right. Any ideas? Thank you. It's easy to do with **Prawn**, **Gemfile** => gem 'prawn', **bundle** lets say you have **Customer** model: **customers\_controller.rb** ``` def show @customer = Customer.find(params[:id]) respond_to do |format| format.html form...
[ 0.01845991611480713, -0.06305204331874847, 0.9374775290489197, 0.10926451534032822, -0.02850492298603058, -0.12870359420776367, -0.08661721646785736, -0.3490990102291107, -0.16818459331989288, -0.33809757232666016, -0.24201993644237518, 0.5414684414863586, 0.16866815090179443, 0.3020723760...
type: "application/pdf", disposition: "inline" end end end ``` then just create **pdfs** folder under the **apps** directory, and create file **customer\_pdf.rb** ``` class CustomerPdf< Prawn::Document def initialize(customer) super() @customer = customer text "Id...
[ -0.2785249948501587, 0.1550554484128952, 1.1997698545455933, -0.29984554648399353, -0.05904627591371536, 0.11804832518100739, -0.045946698635816574, -0.30394670367240906, -0.14979463815689087, -0.5442900061607361, -0.5762596726417542, 0.6344221830368042, -0.09907115250825882, -0.0476553663...
don't forget to include pdf to **config/initializers/mime\_types.rb** ``` Mime::Type.register "application/pdf", :pdf ```
[ -0.23256967961788177, 0.381894588470459, 0.5485195517539978, 0.20592911541461945, 0.3658157289028168, -0.2966420352458954, 0.20967835187911987, -0.050055116415023804, 0.028038041666150093, -0.8040454387664795, -0.6300592422485352, 0.6271318197250366, -0.2257925122976303, -0.329832643270492...
I have tried using `#include <generic>` and `#include <generic.h>` but these are not recognised. I have tried consulting the manual but it does not help me. So anyone know the correct name for this header file using Bloodshed Dev-C++? C++ doesn't have generics like Java and C# do. C++ has a similar feature called *tem...
[ 0.47949692606925964, 0.04347062110900879, -0.043129973113536835, 0.05113818123936653, -0.6615228056907654, -0.1392795890569687, 0.30209046602249146, -0.3582637310028076, -0.17788845300674438, -0.6262838244438171, 0.3059372007846832, 0.6779764890670776, -0.4357527196407318, 0.21009503304958...
the compiler about the `std::vector` template class, not to tell the compiler how to use templates in general. You can define new template types and functions with the `template` keyword: ``` // declare a function accepting and returning a type to be determined later template <typename T> T add_one(T x) { return x ...
[ 0.3580247759819031, -0.024298937991261482, 0.08509861677885056, -0.14236503839492798, -0.22443661093711853, -0.10933162271976471, 0.007420610636472702, -0.25969216227531433, 0.09751595556735992, -0.6245425343513489, -0.12416991591453552, 0.587813138961792, -0.6002580523490906, -0.171199157...
ok, im using Jquery (edge) version, and bootstrap 2.0, and i have this code: ``` <div id="leftcol"> <div id="ppl" class="tabbable tabs-left"> <ul id="tabppl"> <li class="active"><a class="bl" href="#1" data-target="#1" data-toggle="tab"> 1<span class="arroright"> </span></a> </li> <li><...
[ -0.17137372493743896, 0.06868154555559158, 0.6241551041603088, -0.23212255537509918, -0.353691965341568, 0.23834149539470673, -0.00419611344113946, -0.6730578541755676, -0.16766582429409027, -0.6619975566864014, -0.09490516781806946, 0.4738861620426178, -0.4889181852340698, 0.0255502387881...
</span></a> </li> <li><a class="bl" href="#5" data-target="#5" data-toggle="tab"> 5<span class="arroright"> </span></a></li> <li><a class="bl" href="#6" data-target="#6" data-toggle="tab"> 6<span class="arroright"> </span></a> </li> <li><a class="bl" href="#7" data-target="#7" data-toggle="tab...
[ 0.03884394094347954, 0.2656470239162445, 0.251329630613327, 0.0012660120846703649, -0.23373818397521973, 0.33475905656814575, -0.11644725501537323, -0.7683250904083252, -0.31435707211494446, -0.35571959614753723, -0.11959242075681686, 0.4349084198474884, -0.21095316112041473, 0.08921316266...
and a simple code like this only works if i put "data-toggle="tab"" in each -a- tag but the #Direction doesnt appear on the navigation bar, it only changes the content, the url <http://twitter.github.com/bootstrap/javascript.html#tabs> does not explain this, is like a nav, but with the tabs. I need all this information...
[ 0.5564353466033936, -0.10023538023233414, 0.5833063721656799, 0.14849701523780823, 0.1085551306605339, 0.03753037005662918, -0.013519229367375374, -0.11117321997880936, 0.0946524515748024, -0.5729750394821167, -0.09818116575479507, 0.42735016345977783, -0.4652557373046875, 0.17496505379676...
FROM products WHERE state = 'NJ' GROUP BY zip_code ) AS tm JOIN products as t ON tm.zip_code = t.zip_code AND tm.price = t.price WHERE t.state = 'NJ' ```
[ 0.39081594347953796, -0.16055616736412048, 0.373357355594635, -0.20724990963935852, 0.17289185523986816, 0.31291186809539795, -0.1595667004585266, -0.3408016264438629, -0.07853757590055466, -0.5145062208175659, -0.6321559548377991, 0.421119749546051, 0.06133892387151718, 0.5710779428482056...
I am using fullcalendar ([fullcalendar by adam shaw](http://arshaw.com/fullcalendar/)) I am wondering what I would need to do so that my fullcalendar dynamically changes size depending on the size of the browser window? I have looked into his 'render' function a little bit but have been having trouble figuring this ou...
[ 0.16625112295150757, -0.20825037360191345, 0.5678565502166748, -0.32601702213287354, -0.1808677464723587, 0.12784260511398315, 0.2650812268257141, 0.09169783443212509, -0.02877427637577057, -0.7959282994270325, -0.07153123617172241, 0.5533318519592285, -0.15855178236961365, -0.136611834168...
height property $(document).ready(function() { $(window).resize(function() { $('#calendar').fullCalendar('option', 'height', get_calendar_height()); }); //set fullcalendar height property $('#calendar').fullCalendar({ //options height: get_calendar_height }); }); ...
[ 0.20894601941108704, -0.3015422224998474, 0.8177331686019897, -0.3423196077346802, 0.16565072536468506, 0.20040887594223022, -0.23232917487621307, -0.029839953407645226, -0.295771062374115, -0.5918450951576233, -0.28388985991477966, 0.8201104402542114, 0.14673791825771332, -0.0312293879687...
Im trying to generate a color gradient using ColdFusion. My current code below works but it basically will only display the start color till the very last line then it will show the end color. No gradient. Just a big block of red then one line of blue. What am i not seeing wrong with my code? ``` <cfset BoxNumber = R...
[ -0.025781571865081787, 0.060858022421598434, 0.5777986645698547, -0.1644347608089447, -0.09267032146453857, 0.11133084446191788, 0.29633164405822754, -0.3799075484275818, 0.22449298202991486, -0.9260392189025879, 0.15980203449726105, 0.3884548842906952, -0.410092294216156, 0.07265895605087...
\ (BoxNumber - 1) > <cfset Red = int(((End_Red - Start_Red) * Percent) + Start_Red) > <cfset Green = int(((End_Green - Start_Green) * Percent) + Start_Green) > <cfset Blue = int(((End_Blue - Start_Blue) * Percent) + Start_Blue) > <div style="background-color:rgb(<cfoutput>#Red#</cfoutput>, <cfoutput>#Green# </cfoutp...
[ -0.1860460340976715, 0.25593775510787964, 0.5931509137153625, -0.19274471700191498, 0.29804307222366333, -0.02592659182846546, 0.2435745745897293, -0.30139029026031494, 0.20502832531929016, -0.5820149779319763, -0.15844577550888062, 0.4449889361858368, -0.10712309926748276, 0.0807471573352...
code is just adding `0` to the starting value. I think the color formula is off as well. Unless this is a learning exercise, you might want to look for an existing function or method rather than reinventing the wheel. *(Edit:* For example, take a look at Craig's suggestion). Otherwise, you might take a look at cflib.o...
[ 0.08072099834680557, -0.16722331941127777, 0.19705064594745636, 0.05732009932398796, -0.1490751951932907, 0.08310513943433762, 0.24852241575717926, -0.2886444330215454, 0.3167112171649933, -0.5999978184700012, 0.28249892592430115, 0.5241824388504028, -0.5895529389381409, -0.086266674101352...
BlueOffset = (Start_Blue - End_Blue) / BoxNumber> <div id="color-band"> <cfloop index="i" from="0" to ="#BoxNumber#"> <cfset Red = int(Start_Red - (RedOffset * i))> <cfset Green = int(Start_Green - (GreenOffset * i))> <cfset Blue = int(Start_Blue - (BlueOffset * i))> <cfoutput> <div style="height: ...
[ -0.15081991255283356, 0.1604352444410324, 0.0887642577290535, -0.0655258372426033, 0.27997902035713196, 0.21196311712265015, -0.024931494146585464, -0.19148091971874237, -0.4942340850830078, -0.8612542152404785, -0.3627203106880188, 0.294818639755249, -0.20187588036060333, 0.05114115402102...
I get this error when I run my cucumber tests: "\**Unable to either launch or connect to Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: /opt/google/chrome/google-chrome (Selenium::WebDriver::Error::UnknownError) \**" I downloaded the chromdriver, unzip it, copy it to the path (/opt/goog...
[ 0.09557121992111206, 0.3101997673511505, 0.5887500047683716, 0.01807337813079357, -0.20342688262462616, 0.1157977432012558, 0.24221517145633698, 0.0653218924999237, -0.02156130224466324, -0.6836690306663513, 0.12817583978176117, 0.6650729179382324, -0.4350392818450928, 0.182381272315979, ...
you run them but not when Jenkins runs them? I could run them by another user and then I installed jenkins and I get this error. I get the same error when I run my tests in terminal at terminal as well.Did you read <https://wiki.jenkins-ci.org/display/JENKINS/My+software+builds+on+my+computer+but+not+on+Jenkins> ? I co...
[ 0.5193331241607666, 0.2134532481431961, -0.061794213950634, -0.03936747834086418, -0.09864926338195801, 0.08747728914022446, 0.45809033513069153, -0.2739211618900299, -0.13268090784549713, -0.6664000749588013, 0.19738155603408813, 0.6373476386070251, -0.4145132899284363, -0.042384460568428...
the tests? The tests work when you run them but not when Jenkins runs them? You do not go so far as to say that out loud, but I will assume it because it is what people usually need help with. Did you read <https://wiki.jenkins-ci.org/display/JENKINS/My+software+builds+on+my+computer+but+not+on+Jenkins> ? If you are ...
[ 0.8941326141357422, 0.14892695844173431, -0.2600807249546051, -0.06390630453824997, -0.13498665392398834, 0.14615748822689056, 0.29157784581184387, -0.312224805355072, 0.0019752266816794872, -0.6693607568740845, 0.26639968156814575, 0.7692182660102844, -0.0701531246304512, -0.4430360198020...
I am using **Facebook JS SDK** for integrating Like buttons in my Rails App. This sunny Monday the like buttons disappeared, and I opened Firebug to check what was going on. I found this error: ``` ga is undefined (line 25 of http://connect.facebook.net/en_US.all.js#xfbml=1) ``` So... I created an empty file not rel...
[ 0.3064451515674591, 0.05760190635919571, 0.5269066095352173, -0.15857303142547607, -0.2896232604980469, 0.0019773642998188734, 0.41159701347351074, 0.04767005145549774, -0.3337301015853882, -0.8375961184501648, 0.5699881911277771, 0.2175755351781845, -0.5461816191673279, 0.0374996289610862...
now is up and running normally. I wasn't able to find the reason, and one of the Facebook employees replied when everything was running normally, so I can't give a clear answer of what was going on.
[ 0.26675453782081604, -0.09520485252141953, 0.7323873043060303, 0.17674198746681213, 0.17424915730953217, -0.42791298031806946, 0.15714451670646667, 0.16525208950042725, -0.23918049037456512, -0.18727560341358185, 0.12380527704954147, -0.07930963486433029, -0.21093952655792236, 0.1518840193...
I wrote a tool that should be called as part of a .Net installer project. It should ask the user for a directory and then update my config. I use the following code to show the file-chooser dlg: ``` { FolderBrowserDialog dlg = new FolderBrowserDialog(); dlg.Description = "Trace-Verzeichnis auswählen"; d...
[ 0.1497335433959961, -0.09511740505695343, 0.7825510501861572, -0.15475355088710785, 0.13425981998443604, -0.08258411288261414, 0.31467676162719727, -0.1168322041630745, -0.0845974013209343, -0.7232948541641235, -0.14992110431194305, 0.4153883755207062, -0.47700172662734985, 0.0931146070361...
as part of the installer package, from the installer class, it hangs indefinitely at ShowDialog() Edit: Same behaviour when I run it form VStudio or from the command line... I am running .Net 4 (not the client profile) Any hints what I might be doing wrong? thanks Mario Seems I missed the boat on this one, but I wa...
[ 0.342462420463562, -0.09594463557004929, 0.4925699830055237, -0.1492798924446106, -0.04761353135108948, -0.40945369005203247, 0.6637737154960632, 0.20346473157405853, -0.5725213885307312, -0.6140418648719788, -0.05403842031955719, 0.8849644660949707, -0.35385212302207947, 0.087497346103191...
new Thread(() => { FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.SelectedPath = session["INSTALLFOLDER"]; DialogResult result = dialog.ShowDialog(); session["INSTALLFOLDER"] = dialog.SelectedPath; }); worker.SetApartmentState(ApartmentState.STA); worker.S...
[ 0.2827374041080475, -0.3377262353897095, 0.7558072805404663, -0.21135923266410828, 0.434283047914505, 0.011263945139944553, 0.3749615252017975, -0.4507218897342682, -0.5608566403388977, -0.8067993521690369, -0.3008078932762146, 0.44175267219543457, -0.38296326994895935, 0.4911104142665863,...
an STA apartment state. UI components in Windows generally need to be run in a single threaded (STA) apartment state because this enforces proper concurrency on the UI component since just one thread is allowed to modify the UI at a time.
[ -0.019156500697135925, -0.011685519479215145, 0.2138020396232605, 0.16221946477890015, 0.03824803605675697, -0.07968897372484207, 0.6238338947296143, -0.061808615922927856, -0.21237359941005707, -0.7149336338043213, -0.620745837688446, -0.12079547345638275, -0.41711077094078064, 0.20641550...
i'm developing an app in java and i'm using `JXL` library. So i tried this: ``` File f = new File("test.xls"); ArrayList<String[]> ins = new ArrayList<String[]>(); for(int i=0;i<20;i++){ ins.add(new String[]{"-------"+i+"-------", "-------"+i+"-------", "-------"+i+"-------", i,"-------"+i+"-------"...
[ 0.021434247493743896, -0.07311879843473434, 0.7321100234985352, -0.17416690289974213, -0.10106728225946426, 0.012992826290428638, 0.1697186380624771, -0.5692774057388306, -0.19618508219718933, -0.8587928414344788, -0.3839229643344879, 0.6531010270118713, -0.50248122215271, -0.1638533174991...
String[] headers = new String[]{"HEADER1", "HEADER2", "HEADER3", "HEADER4", "HEADER5", "HEADER6", "HEADER7", "HEADER8", "HEADER9", "HEADER10", "HEADER12"}; for(int i=0;i<headers.length;i++){ sheet.addCell(new Label(i, 0, headers[i])); } for(int i=0;i<ins.size();i++){ ...
[ 0.2404647320508957, -0.43088164925575256, 0.7518060803413391, -0.2028127759695053, -0.20712903141975403, 0.25274285674095154, 0.288417786359787, -0.6890689134597778, -0.33312031626701355, -0.6743517518043518, -0.3658108711242676, 0.25330209732055664, -0.42118802666664124, 0.221717953681945...