text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
my backups in case something happens with my local repo or my machine). Is there a way of doing that or my workflow is completly wrong? It seems like phases are still relatively new and some workflows, such as this, don't seem to be included, yet. As of 2013-03-19, I believe the only way you can do this is manually ch...
[ 0.32239893078804016, -0.11117230355739594, 0.5516030788421631, -0.22061121463775635, 0.12356646358966827, -0.11618261784315109, 0.48221030831336975, -0.08538832515478134, -0.2743430733680725, -0.325379878282547, -0.2068060338497162, 0.9230712652206421, -0.31727439165115356, 0.1085126027464...
secret on the repository you are pushing to, I tried to change the push to do this (but was unsuccessful): ``` hg push -f --remotecmd hg phase -sf %secret% ``` The commits would have to match exactly for the `remote hg command` to work, but I couldn't get it to change on the remote repository anyway. ==============...
[ 0.07479113340377808, -0.022407207638025284, 0.27210313081741333, 0.05004366859793663, 0.033088210970163345, -0.4416302442550659, 0.3224952220916748, 0.28712302446365356, 0.03388772904872894, -0.46302634477615356, -0.12825770676136017, 0.745857298374176, -0.19909945130348206, 0.378217101097...
I wish to use **sp\_start\_job** to start a job from within an **insert trigger**. The table which the insert trigger is on only has a few inserts a day atm. The point of doing this is so that the insert trigger doesn't have to **wait for the job** to complete - is this correct? The job sends emails to key people wi...
[ 0.5373488068580627, 0.33960554003715515, 0.5520199537277222, -0.11151093244552612, 0.27794766426086426, 0.2683601677417755, -0.028619782999157906, -0.22923816740512848, -0.08435963839292526, -0.47120797634124756, 0.054770588874816895, 0.6082590222358704, -0.1173352599143982, 0.039517629891...
login/user's permissions? Thanks in advance for your help. yes, you can see from the output of the procedure that it doesn't send the email on the fly, it adds it to a queue so it wont lock anything by waiting the email to be sent and then continue with the trigger execution. you can see your email log at ``` SELEC...
[ 0.3594858646392822, -0.06774067133665085, 0.12849946320056915, 0.29130274057388306, 0.27086135745048523, -0.26475027203559875, 0.44325271248817444, 0.0719652995467186, -0.5327856540679932, -0.641170859336853, -0.39060723781585693, 0.6243131756782532, -0.3155668079853058, 0.0192255172878503...
I'm struggling to find documentation for the TimerTask function on Android. I need to run a thread at intervals using a TimerTask but have no idea how to go about this. Any advice or examples would be greatly appreciated. You use a [`Timer`](http://developer.android.com/reference/java/util/Timer.html), and that automat...
[ 0.3949466347694397, -0.035916924476623535, 0.5457091331481934, -0.11737154424190521, 0.2607937455177307, 0.06439151614904404, 0.09982872754335403, 0.13672223687171936, -0.13411550223827362, -1.1147942543029785, 0.04278081655502319, 0.4358631372451782, -0.34292685985565186, 0.20244441926479...
If I want to style all of the `<input type="submit"/>` within the `<div class="control-group control-connected">` in`<form>`s, I can apply this type of selector: ``` form div.control-group.control-connected input[type=submit]{} ``` However, let's say I want to also style the `<button>` elements within those types of...
[ 0.03520656004548073, 0.15740011632442474, 0.124676413834095, 0.03786005452275276, -0.21889375150203705, -0.06888837367296219, -0.13506333529949188, -0.2844224274158478, -0.10064353048801422, -0.6907756328582764, -0.16229750216007233, 0.5102592706680298, -0.24804677069187164, -0.00242851930...
I have a `JTextField` for which I'm hoping to suggest results to match the user's input. I'm displaying these suggestions in a `JList` contained within a `JPopupMenu`. **However**, when opening the popup menu programmatically via [`show(Component invoker, int x, int y)`](http://docs.oracle.com/javase/1.4.2/docs/api/ja...
[ 0.2954810857772827, -0.030018670484423637, 0.6491628885269165, -0.3238365948200226, -0.14226733148097992, 0.043990764766931534, 0.25833332538604736, -0.11304335296154022, -0.01969756744801998, -0.6168174743652344, -0.22131559252738953, 0.6398752331733704, -0.21305887401103973, -0.074803180...
to restore the caret position using `SwingUtilities.invokeLater()`, and the *invoke later* side of things is giving the user a slight margin to mess around with the existing contents / overwrite it / or do other unpredictable things. The code I've got is effectively: ``` JTextField field = new JTextField(); JPopupMen...
[ 0.26942071318626404, -0.20490491390228271, 0.8687903881072998, -0.1927536576986313, 0.4298815131187439, 0.05521410331130028, 0.4626988470554352, -0.522389829158783, 0.07637368887662888, -0.5868707299232483, -0.36417579650878906, 0.9440325498580933, -0.20762284100055695, -0.0710465759038925...
down to show the `JPopupMenu` programmatically whilst preserving the focus on the `JTextField`? The technical answer is to set the popup's focusable property to false: ``` popup.setFocusable(false); ``` The implication is that the textField has to take over all keyboard and mouse-triggered actions that are normally ...
[ -0.08712760359048843, -0.24810586869716644, 0.9212378859519958, -0.2355564385652542, 0.07515042275190353, 0.08238323032855988, 0.22663547098636627, -0.2696641981601715, -0.34028181433677673, -0.4466843008995056, -0.8396216034889221, 0.7303019165992737, -0.48691293597221375, -0.228970229625...
list.getModel().getSize() - 1); list.setSelectedIndex(next); list.ensureIndexIsVisible(next); } }; field.getActionMap().put("nextElement", down); field.getInputMap().put( KeyStroke.getKeyStroke("DOWN"), "nextElement"); ``` As your context is very similar to a JComboBox, you might consider ha...
[ -0.21072092652320862, -0.5448777675628662, 0.33964553475379944, -0.09975479543209076, 0.15288971364498138, -0.05784325674176216, 0.25394582748413086, -0.3415592312812805, -0.2613932490348816, -0.6150981187820435, -0.6576793193817139, 0.5314856171607971, -0.5147376656532288, -0.277594596147...
sortable JXList final JXList list = new JXList(Locale.getAvailableLocales(), true); list.setSortOrder(SortOrder.ASCENDING); final JPopupMenu popup = new JPopupMenu(); popup.add(new JScrollPane(list)); popup.setFocusable(false); final JTextField field = new JTextField(20); // instantiate a PatternModel to map text -->...
[ -0.3156229853630066, -0.35951778292655945, 1.0508428812026978, -0.27350613474845886, 0.004399631172418594, 0.18589000403881073, 0.3222044110298157, -0.39607465267181396, -0.2744394838809967, -0.7166218757629395, -0.5009599924087524, 0.47852492332458496, -0.5319772362709045, 0.0364657118916...
} private void updateFilter(Pattern newValue) { RowFilter<Object, Integer> filter = null; if (newValue != null) { filter = RowFilters.regexFilter(newValue); } list.setRowFilter(filter); } }; model.addPropertyChangeListener(modelListener); // DocumentListener to upda...
[ -0.045780349522829056, -0.5569794774055481, 0.5377243757247925, -0.21182957291603088, 0.21307240426540375, 0.10596819221973419, 0.399562805891037, -0.5965446829795837, -0.2368013858795166, -0.6667430996894836, -0.3095036447048187, 0.49801573157310486, -0.705021321773529, 0.1915053427219391...
updateAfterDocumentChange(); } @Override public void insertUpdate(DocumentEvent e) { updateAfterDocumentChange(); } private void updateAfterDocumentChange() { if (!popup.isVisible()) { popup.show(field, 0, field.getHeight()); } model.setRawText(field.ge...
[ -0.00740828737616539, -0.17442788183689117, 0.92872554063797, -0.1439962387084961, 0.43162137269973755, -0.08545169979333878, 0.11276695877313614, -0.3334755599498749, -0.0015468224883079529, -0.4951779246330261, -0.46962448954582214, 0.9241346716880798, -0.4905315041542053, 0.128253817558...
I have several files which is causing a compile error, can the following be done? header1.h ``` class Class1{ public: void function1(Class1 &); }; ``` header2.h ``` class Class2{ public: void function2(Class2 &, Class1 &); }; ``` cpp2.cpp ``` #include "header2.h" void Class2::function2(Class2 & my2Class, Class1...
[ 0.06311073154211044, 0.2748124301433563, 0.36852550506591797, 0.17161151766777039, -0.05735237896442413, -0.14783313870429993, 0.4561687409877777, -0.3207820951938629, -0.285375714302063, -0.512272298336029, -0.11554739624261856, 0.41241538524627686, -0.13377732038497925, 0.055420152842998...
a type to a function doesn't require the type to be fully defined.
[ 0.26688873767852783, -0.005801856052130461, -0.09924736618995667, 0.0662190392613411, -0.08054972440004349, -0.3038390576839447, 0.13448655605316162, -0.027186991646885872, 0.2589820623397827, -0.21210792660713196, -0.3220977783203125, 0.4208792746067047, -0.42327043414115906, -0.094732619...
Following this [question](https://stackoverflow.com/questions/10013143/how-to-access-the-property-value-of-an-array-which-has-been-converted-into-an-o), I use this function to convert arrays to objects, ``` function array_to_object($array) { if(!is_array($array)) { return $array; } $object = new s...
[ -0.12742681801319122, 0.010802652686834335, 0.5615018010139465, -0.26450544595718384, 0.1587367057800293, 0.1486845165491104, -0.14388202130794525, -0.2388385832309723, -0.30728796124458313, -0.45678141713142395, -0.3823128640651703, 0.5424220561981201, -0.19894371926784515, 0.273445665836...
[1] => technologies [2] => India ) ``` But now I need to convert the object back to an array so that I can get this result, ``` Array ( [0] => qualitypoint [1] => technologies [2] => India ) ``` is it possible? Another way to achieve this is: ``` $array = array(json_decode(json_encode($object), tr...
[ 0.2285023182630539, 0.07798118144273758, 0.5006905198097229, -0.016459835693240166, 0.06953802704811096, 0.0032963454723358154, 0.008860594592988491, -0.43279793858528137, -0.05414222553372383, -0.6725765466690063, -0.21897712349891663, 0.19468925893306732, -0.20298928022384644, 0.29399931...
I am using this method to get a list of week start from my data. However, at the end of the month a week could be a split between 2 months however i am having a hard time using my method to check the split weeks in my method to get the months **Method to get list of Months** ``` var monthlist = data.Select(x => new {...
[ 0.45072701573371887, 0.07349709421396255, 0.68389493227005, -0.17998407781124115, -0.019415656104683876, 0.233164981007576, 0.2717324197292328, 0.1823994517326355, -0.49446138739585876, -0.609069287776947, -0.0772627741098404, 0.17037639021873474, -0.00934375450015068, 0.6227536797523499, ...
}).Distinct().ToList(); ``` **Method to check if its a split week** ``` public static bool isSplitWeek(System.DateTime Enddate, System.DateTime Startdate) { bool isSameMonth = (Enddate.Month == Startdate.Month) ? true : false; return !isSameMonth ? true : false; } ``` Im basically trying to use an if whe...
[ 0.027706889435648918, -0.2169470489025116, 0.5243800282478333, -0.15641415119171143, 0.004139676224440336, 0.17116953432559967, 0.20496872067451477, 0.04025041684508324, -0.4808530807495117, -0.2303866147994995, -0.0773225799202919, 0.16641739010810852, -0.23066289722919464, 0.542077660560...
and just union them together. The key to the issue was to use the where clause. ``` var monthlist1 = data.Select(x => new { wkdate = x.WKENDDATE }).OrderBy(y => y.wkdate).Where(l=> ExportHelper.isSplitWeek(l.wkdate,l.wkdate.AddDays(6)) != true) .Select(m => new{monthname = m.wkdate.ToString("M...
[ 0.10120120644569397, -0.19828931987285614, 0.8207873702049255, -0.33934345841407776, 0.1380331665277481, 0.24949029088020325, 0.09743106365203857, -0.062191084027290344, -0.35859283804893494, -0.29511454701423645, -0.2928532361984253, 0.22706040740013123, -0.2733392119407654, 0.41828918457...
ExportHelper.isSplitWeek(l.wkdate.AddDays(-6),l.wkdate) == true).Select(m => new {monthname = m.wkdate.ToString("MMM yyyy", CultureInfo.CreateSpecificCulture("en-US"))}) .Distinct() .ToList(); var monthlist = monthlist2.Union(monthlist1) .Distinct() .ToList(); ```
[ -0.21546748280525208, -0.18891942501068115, 0.7049776315689087, -0.2680642604827881, 0.170915424823761, 0.21915331482887268, 0.22804757952690125, 0.10522095113992691, -0.34470829367637634, -0.3060687184333801, -0.2990148663520813, 0.23799151182174683, -0.1887180060148239, 0.446516335010528...
I've got UDPserver which recieves messages from clients and sends response to them. But I need to check if UDPclients is online or not. With isReachable I can test whether pc online or not. But when differents clients use same pc but with differents ports how to check whether port is open or not(Client1 with port 5678...
[ -0.20503675937652588, 0.22993746399879456, 0.26033830642700195, -0.1249757707118988, -0.23184949159622192, 0.4467523694038391, 0.14559447765350342, -0.5859991312026978, -0.3261776566505432, -0.6650450825691223, 0.21068505942821503, 0.4379239082336426, -0.24796682596206665, 0.19159094989299...
04:13:48,761~sample6~ABC:TEST ```
[ 0.32395699620246887, 0.45232799649238586, 0.2882145345211029, -0.002855644328519702, 0.18300244212150574, 0.11008113622665405, 0.4009568393230438, -0.39475587010383606, 0.11894503235816956, -0.7869092226028442, -0.06611920148134232, 0.18779456615447998, 0.02408132702112198, 0.0750598758459...
I have to allow user to allow only numeric values in the text box . It should remove any non numeric method. No matter how they are supplying the input ...either typing or copy+paste. My code ``` var nCheck = function (field) { var re = /^[0-9]*$/; if (!re.test(field.value)) { ...
[ 0.4078757166862488, 0.2764415144920349, 0.6417416334152222, -0.23760314285755157, 0.31969720125198364, -0.016056936234235764, 0.5546673536300659, -0.25382691621780396, 0.11384142935276031, -0.44899389147758484, -0.26345095038414, 0.544897735118866, -0.2983827590942383, 0.37517035007476807,...
} }; ``` This works except when you copy paste something like aaa2 . Whereas aaaa or aa work. Problem is when last place contains number it fails . Thanks for any help. The `$` means "end of string". Remove it and it should work. Other tips: Replace `*` by `+`; `*` includes the empty string Maybe it should bette...
[ 0.1426135152578354, 0.05020633712410927, 0.1942000389099121, -0.17210693657398224, 0.23381492495536804, -0.17967641353607178, 0.5406149625778198, 0.26066842675209045, -0.03743698075413704, -0.563758909702301, -0.029453659430146217, 0.7353581190109253, -0.32687726616859436, 0.19927962124347...
User is on page `1.php`. After sumbit form is redirect to `2.php`. Here if the browser back button is used, I want to redirect to page `3.php`. How about something like: * **1.php** [*submit form*] => * **3.php** [*header(location:2.php)*] => * **2.php** I finally got it...i simply used the following code: ``` <inpu...
[ -0.4117451012134552, 0.29222604632377625, 1.0404000282287598, -0.22083382308483124, 0.07245546579360962, -0.02418995276093483, 0.2615925371646881, 0.15777313709259033, -0.19964592158794403, -1.1371173858642578, -0.02937423251569271, 0.5536323189735413, -0.16716966032981873, 0.0593687705695...
Hello guys look to my code I'm trying to make a program which asks you to enter the first value by grams And the second value is kilograms and then convert kilograms to grams by an overloaded + operator but it doesn't work why ``` #include <iostream> using namespace std; class ADD{ private: int Fval; int Sval;...
[ 0.17277312278747559, 0.3492891490459442, 0.5244961380958557, -0.27846062183380127, 0.028131607919931412, 0.08226794749498367, 0.27155035734176636, 0.10542503744363785, -0.3006635308265686, -0.6005802154541016, -0.2739468216896057, 0.3435720205307007, -0.21766281127929688, 0.035673394799232...
cout << "PLEASE ENTER THE SECOND VALUE BY KILOGRAMS :"; cin >> Sval; } ADD operator+(ADD& add){ add.Sval *= 1000; return add; } int plus(){ return Fval+Sval; } }; int main(){ ADD a1; cout << "THE TOTAL VALUE = " << a1.plus() << " GRAMS"; } ``` No
[ 0.23275791108608246, -0.051843516528606415, 0.5736867785453796, -0.5162505507469177, 0.025187697261571884, 0.5710062980651855, -0.21210116147994995, -0.41099298000335693, -0.5286961793899536, -0.30361148715019226, -0.34519264101982117, 0.4159335196018219, -0.36178210377693176, 0.1787126064...
Effect look to the output ``` WELCOME TO OUR PROGRAM PLEASE ENTER THE FIRST VALUE BY GRAMS :2 PLEASE ENTER THE SECOND VALUE BY KILOGRAMS :3 THE TOTAL VALUE = 5 GRAMS ``` That means the + operator doesn't multiply 3 by 1000 Why?? That's because you're **not calling** `operator +`. You're calling `ADD::plus()`: ``` ...
[ 0.2557646632194519, 0.07092911750078201, 0.6008350849151611, -0.3439958989620209, -0.12139156460762024, 0.19372370839118958, 0.23149161040782928, -0.44574370980262756, -0.5424203872680664, -0.6730911135673523, 0.05652633681893349, 0.3358287513256073, -0.2900155186653137, -0.067885279655456...
must** do this: ``` ADD operator+(const ADD& add){ ADD ret; ret.Sval = add.Sval * 1000; return ret; } ```
[ -0.15364032983779907, -0.04758923128247261, 0.5558667182922363, -0.3302266299724579, 0.13760587573051453, 0.12070184201002121, 0.34321528673171997, -0.6184348464012146, 0.04455885663628578, -0.46556901931762695, -0.511402428150177, 0.6189830303192139, -0.3191695213317871, -0.21474878489971...
I'm using FusionCharts 3.2.1 and I want to render charts in javascript when the flash player is not installed of disabled in browser. I'm calling the method FusionCharts.\_fallbackJSChartWhenNoFlash() but nothing happen. ``` function updateChart(chartDataJSON) { FusionCharts._fallbackJSChartWhenNoFlash(); ...
[ -0.3099367916584015, -0.26922184228897095, 1.0804017782211304, -0.24964891374111176, 0.20688512921333313, -0.2450156807899475, 0.44439589977264404, -0.17921170592308044, -0.2351239174604416, -0.8464784026145935, -0.07075513154268265, 0.40813323855400085, -0.29748934507369995, 0.03614397346...
} if (prevSwfName != currentSwfName) { prevSwfName = currentSwfName; var contextPath = document.getElementById('contextPath').value; var swfUrl = contextPath + '/charts/' + currentSwfName; if (FusionCharts('residenceChart')) {
[ 0.009205251932144165, -0.11429940909147263, 1.1293381452560425, -0.2304341346025467, 0.7928344011306763, -0.18442043662071228, 0.3161284923553467, -0.5284449458122253, -0.260172575712204, -0.5447849035263062, -0.41565921902656555, 0.28841862082481384, -0.18761500716209412, 0.18202188611030...
FusionCharts('residenceChart').dispose(); } new FusionCharts({ id: 'residenceChart', swfUrl:swfUrl,
[ -0.09754090756177902, 0.16510844230651855, 0.778250515460968, -0.10777762532234192, 0.492217481136322, -0.16113613545894623, 0.21511854231357574, -0.2653275728225708, -0.14653493463993073, -0.7150198221206665, -0.702709972858429, -0.24944227933883667, -0.3909344971179962, 0.155373498797416...
renderAt:'consumptionChartDiv', dataFormat:'json', dataSource: chartDataJSON, registerWithJS: 1, width: 730,
[ -0.2829603850841522, -0.3270779848098755, 0.5638477802276611, -0.0882435292005539, -0.34173476696014404, 0.8985413908958435, 0.07824547588825226, 0.05504198372364044, -0.1863265037536621, -1.0106444358825684, -0.36959564685821533, 0.6188556551933289, 0.334052175283432, -0.2675515115261078,...
height: 300, debugMode: 0 }).render(); } else { FusionCharts('residenceChart').setJSONData(chartDataJSON); } } ``` Is it mandatory that you
[ 0.20873714983463287, -0.11053331196308136, 0.8733107447624207, -0.09099937230348587, 0.550246000289917, 0.04513903334736824, 0.3822900056838989, -0.3377831280231476, -0.24013827741146088, -0.49757519364356995, -0.5131657719612122, 0.3164970874786377, -0.0058047291822731495, -0.145266696810...
stick to FusionCharts 3.2.1? If you upgrade to the latest version (which is free if you are already a customer), this issue will be solved. Since **FusionCharts 3.2.2**, the component automatically renders JavaScript charts when Flash Player is not available and you would not need to explicitly call `FusionCharts._fal...
[ 0.3400839865207672, 0.10079187899827957, 0.7795462012290955, -0.09695502370595932, -0.02670709602534771, -0.5300369262695312, 0.5013184547424316, -0.02974495105445385, -0.10812054574489594, -0.633967399597168, -0.15624156594276428, 0.6055911779403687, -0.4543182849884033, -0.09010916203260...
charts require additional JS files, they are loaded dynamically when needed. However, it might havae failed for your case; try manually adding the JavaScript files to the page head **post** inclusion of `FusionCharts.js` 3. If you have any JavaScript error on your browsers debug/js console, look for hints from the erro...
[ 0.0845978781580925, 0.013113335706293583, 0.7865395545959473, -0.024921081960201263, -0.19012242555618286, -0.33456236124038696, 0.45857277512550354, -0.096140056848526, -0.18826811015605927, -0.7640923261642456, -0.19148261845111847, 0.5111525058746338, -0.49831849336624146, -0.1654729992...
In iOS I want to implement the map function for NSArray. This is a function that is applied to every element of the array. What is the best way to implement this? Thanks, Doug You can use [`enumerateObjectsUsingBlock:`](http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSArray...
[ 0.010188630782067776, 0.16869112849235535, 0.4400358498096466, 0.010865637101233006, 0.13776779174804688, 0.11883711814880371, 0.13446083664894104, -0.08931281417608261, -0.40848156809806824, -0.7555006146430969, -0.1432017683982849, 0.7590305805206299, -0.5561941266059875, -0.701383709907...
Currently working on a site built in Django and i'm getting an issue when they try uploading a file on there PC. In IE it says 'HTTP error' and in Firefox it says 'IO error'. They are using IE 8 and the latest version of firefox with Windows media edition. It's only on this PC they are getting the issues so i can't se...
[ 0.42700326442718506, 0.6032876372337341, 0.05269152298569679, -0.06723694503307343, 0.11058084666728973, -0.05889207497239113, 0.4359617531299591, 0.15829335153102875, -0.383465051651001, -0.8645980954170227, 0.09980089962482452, 0.6750913858413696, -0.2512097656726837, -0.0483851023018360...
Can someone please explain the difference between **Dapper.Rainbow** vs. **Dapper.Contrib**? I mean when do you use SqlMapperExtensions.cs of Dapper.Contrib and when should you use Dapper.Rainbow? I’ve been using Dapper for a while now and have wondered what the [Contrib](http://code.google.com/p/dapper-dot-net/source...
[ 0.2981715798377991, -0.06573282182216644, 0.5888186097145081, 0.13020376861095428, 0.016101334244012833, -0.21284747123718262, -0.1632930189371109, -0.05597846210002899, -0.39279651641845703, -0.5150291323661804, 0.13740286231040955, 0.4409225881099701, -0.168096661567688, -0.1132747754454...
an interface as the type constraint will return a dynamically generated proxy class with an internal dictionary to track what properties have changed. You can then use the Update method which will generate the SQL needed to only update those properties that have changed. **Major Caveat**: to get the tracking goodness...
[ -0.006743444595485926, -0.15420006215572357, 0.7928952574729919, 0.20183317363262177, -0.15409548580646515, -0.020379574969410896, 0.09315308928489685, -0.06692557781934738, -0.18308594822883606, -0.5882546305656433, 0.33316516876220703, 0.23308630287647247, -0.7049148082733154, 0.00801513...
as First (gets the first record in a table) and All (gets all results records in a table). For all intents and purposes, Rainbow is basically a wrapper for your most commonly used database interactions and will build up the boring SQL based on property names and type constraints. For example, with a Get operation, Ra...
[ 0.14802029728889465, -0.09586675465106964, 0.26659631729125977, 0.3395262360572815, -0.19264468550682068, -0.13113851845264435, 0.06851841509342194, -0.11090521514415741, -0.5485616326332092, -0.2978866398334503, 0.08318278193473816, 0.13300660252571106, -0.4809153079986572, 0.350799798965...
expects all your tables to have an identity column named “Id”. Differences? ============ The major difference between Contrib and Rainbow is (IMO), one tracks changes to your entities, the other doesn’t: * Use Contrib when you want to be able to track changes in your entities. * Use Rainbow when you want to use some...
[ -0.24993231892585754, 0.10150127112865448, 0.3080000877380371, -0.09069837629795074, -0.3970966041088104, -0.04490101337432861, -0.10919731855392456, -0.1416919082403183, -0.4181881844997406, -0.580990731716156, 0.17561988532543182, 0.4665067195892334, -0.5360507369041443, -0.0643392652273...
There are now 2 other APIs you can choose from as well (**besides Rainbow**) (for CRUD) > **Dapper.Contrib** and **Dapper Extensions**. > I do not think that one-size-fits-all. Depending on your problem and > preferences there may be an API that works best for you. I tried to > present some of the options. There is no ...
[ 0.3570973575115204, -0.11478234827518463, 0.24589017033576965, 0.1284150928258896, 0.016704559326171875, -0.008828924968838692, 0.17581769824028015, 0.07689352333545685, -0.46542108058929443, -0.8655064105987549, 0.1326429396867752, 0.4292602837085724, -0.39042747020721436, 0.0156871713697...
(use Contrib), or you may have common usage scenarios (use Rainbow) or you may want to use a combination of them all. Or not even use Dapper. YMMV.
[ 0.3982239067554474, -0.2783239185810089, 0.30091360211372375, 0.14786852896213531, -0.11160437762737274, -0.16800647974014282, 0.002328772097826004, 0.270832359790802, -0.3242378234863281, -0.5854023098945618, -0.36121365427970886, 0.4971446990966797, -0.3430408537387848, -0.20503437519073...
I want to use the following command: ``` openssl x509 -noout -in /etc/pki/tls/certs/cert1.pem -enddate openssl x509 -noout -in /etc/pki/tls/certs/cert2.pem -enddate openssl x509 -noout -in /etc/pki/tls/certs/certN.pem -enddate ``` Is there a way to read all the certificates using wild cards? e.g, ``` openssl...
[ 0.419943630695343, 0.13695096969604492, 0.07964655011892319, 0.3752768933773041, 0.3376021087169647, -0.462369829416275, 0.3785606324672699, -0.19913111627101898, -0.07321488857269287, -0.39406296610832214, -0.19590628147125244, 0.4189329445362091, -0.16462016105651855, -0.0066767260432243...
I want to clear the contents of a File Upload Control. How can i do this Any Help use a shell scriptlet: ``` #! /bin/sh for file in /etc/pki/tls/certs/*.pem; do echo -n "$file: " openssl x509 -noout -in "$file" -enddate done ``` put this in a file, say `certexpires.sh` then you can run it with: ``` sh certe...
[ 0.24768894910812378, 0.15947046875953674, 0.48351067304611206, 0.004666284658014774, 0.1981591284275055, -0.3367680609226227, 0.48215243220329285, -0.07451249659061432, 0.06671495735645294, -0.678498387336731, -0.2214224487543106, 0.47181588411331177, -0.2854577302932739, 0.174825176596641...
I found a number of ways to automatically increment build numbers with Team build setup environments, but none of them are satisfying for me, because I have a C++ MFC application where most of the approaches won't work. So I thought about another solution, that might work for our team (since it is not that big): I wa...
[ 0.09611686319112778, 0.17258663475513458, 0.1068708673119545, -0.17441922426223755, 0.03999612480401993, 0.10669956356287003, 0.3023512065410614, -0.1935332715511322, -0.09443876892328262, -0.5493736267089844, -0.18368080258369446, 0.7355010509490967, 0.12063288688659668, -0.03372354432940...
build number is the one that should be unique based on the build. This approach would work for each developer on his local machine as well as in the CI environment (TFS in our case). Is there a way to achieve this? Or is there another idea to automatically generate increased build numbers (not necesarrily based on a ...
[ 0.6125847697257996, 0.13569876551628113, 0.30795514583587646, -0.1938852220773697, -0.1106247678399086, -0.18725049495697021, 0.11433210223913193, -0.3955645263195038, -0.13619309663772583, -0.8118938207626343, -0.1325543075799942, 0.5833426117897034, 0.06201763451099396, 0.090911455452442...
that will do what you want. For #2, I put code like this in the .wixproj: ``` <PropertyGroup> <MSIProductVersion Condition=" '$(MSIProductVersion)' == '' ">0.1.0</MSIProductVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <DefineConstants>Debug;WiXProduct...
[ 0.30639728903770447, -0.27646517753601074, 0.7288501262664795, -0.14681044220924377, 0.3844900131225586, -0.19998061656951904, 0.1438874751329422, -0.4415874183177948, 0.10279875248670578, -1.0117206573486328, -0.43558019399642944, 0.6698479056358337, -0.264715313911438, -0.048415277153253...
MSI just get's 0.1.0 as the version ( a good indicator that it's not an official build ).
[ -0.04602254554629326, -0.4411271810531616, 0.65781170129776, 0.06331813335418701, 0.06566932052373886, -0.1958458125591278, 0.31942567229270935, 0.17641831934452057, -0.02646052837371826, -0.6793714165687561, -0.3457568883895874, 0.254314661026001, -0.25413915514945984, 0.15540531277656555...
SharpDX has a `RenderLoop` that runs a given delegate in the render loop: ``` RenderLoop.Run(m_RenderForm, () => { // Do stuff here to render things... } ``` What I need to do is exit the render loop somehow. ``` RenderLoop.Run(m_RenderForm, () => { if (DoINeedToQuit() == true) { // What do I pu...
[ 0.13476663827896118, -0.3933590054512024, 0.40166938304901123, 0.002942960010841489, -0.04609306529164314, 0.10951903462409973, 0.37677326798439026, -0.19870278239250183, 0.2801690101623535, -0.5681489109992981, -0.020864296704530716, 0.9104527831077576, 0.06932463496923447, 0.063040800392...
I have 3 tables - user, service and ratings. The user's primary key is user\_id and is a foreign key in the service table. Its also a foreign key in ratings table linked to rated\_id (the user id of the person being rated) and rater\_id (the user id of the person providing the rating) Each user has one service and can...
[ 0.221737802028656, 0.13081006705760956, 0.8953308463096619, 0.10446574538946152, -0.08145059645175934, 0.32587310671806335, -0.06173296645283699, -0.24691317975521088, 0.42468416690826416, -0.7853821516036987, -0.011821072548627853, 0.5984199643135071, 0.12995445728302002, 0.61957639455795...
show me a list of all services, sorted in decending ordered by the users with most ratings. Services belonging to Users with ratings but are not pushed are at the bottom along with services belonging to users with no ratings. Here is the sql to create the table and data: ``` SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!...
[ 0.09124717861413956, 0.11876138299703598, 0.8788554072380066, 0.008304263465106487, 0.08158943057060242, 0.29800665378570557, 0.08992540091276169, -0.28052660822868347, -0.05899062007665634, -0.7321558594703674, -0.08329430967569351, 0.5018091797828674, -0.1259811967611313, 0.2578918933868...
KEY (`unique_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -- Dumping data for table `ratings` -- INSERT INTO `ratings` (`unique_id`, `rater_id`, `rated_id`, `pushed`) VALUES (1, 4, 1, 1), (2, 4, 1, 1), (3, 4, 2, 1), (4, 4, 3, 0); -- -------------------------------------------------------- -- -...
[ -0.5028709173202515, 0.246773824095726, 0.48957571387290955, -0.006187584716826677, 0.1004812940955162, 0.5141137838363647, 0.17738094925880432, -0.39274293184280396, 0.005291154142469168, -0.46990278363227844, -0.36986276507377625, 0.4467681646347046, -0.049295660108327866, 0.326121598482...
`user` ( `user_id` int(11) NOT NULL, `name` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `user` -- INSERT INTO `user` (`user_id`, `name`) VALUES (1, 'mark'), (2, 'shane'), (3, 'peter'), (4, 'jobposter'); ``` and here is a query i came up with ``` SELECT s.*, count(r...
[ -0.06610920280218124, 0.22737771272659302, 0.8051917552947998, -0.0943908542394638, 0.14126823842525482, 0.11157290637493134, 0.2581612169742584, -0.47089579701423645, 0.0023158027324825525, -0.46437057852745056, -0.2992726266384125, 0.4134491980075836, -0.19639454782009125, 0.309303939342...
outside of the loop, inside the loop.
[ 0.6205110549926758, -0.32473844289779663, -0.038502756506204605, 0.21316419541835785, -0.10881642252206802, -0.26464879512786865, 0.29124224185943604, -0.3381509482860565, -0.36390072107315063, -0.22028252482414246, 0.4097181558609009, 0.03539504483342171, -0.5471377372741699, 0.1411137431...
I am new to PHP Codeigniter framework. I am designing a page in which I am using a link. On clicking the link it is calling a jquery function, which submits form through jquery. I have used codeigniter form validation methods for server side validation and for the timebeing I have disabled the client side validation. ...
[ 0.5587783455848694, 0.25725501775741577, 0.4927697479724884, -0.013906956650316715, -0.28321680426597595, -0.38664406538009644, 0.416111558675766, -0.12971621751785278, -0.018088448792696, -0.7344614863395691, 0.22061093151569366, 0.46699222922325134, -0.11767803877592087, 0.16899588704109...
do if I need to submit the form through jquery and use the codeigniter form validation method. Please find the code below: Login Form: ``` <?php echo validation_errors(); ?> <form name="login-form" id="login-form" method="post" action="<?php echo base_url();?>index.php/login/login_form" > <H2>Login</H2> <div...
[ 0.32023781538009644, 0.19431903958320618, 0.4382040202617645, -0.20596541464328766, 0.2789497673511505, -0.3494725525379181, 0.33162835240364075, -0.6103361248970032, 0.0023067533038556576, -0.246634379029274, -0.45640724897384644, 0.4864930808544159, -0.13551655411720276, -0.0606093555688...
<div id="login-box-field"> <input name="password" id="password" type="password" class="form-login" title="Please Enter Correct Password" value="" size="30" maxlength="2048" /> </div> <br /> <span class="login-box-options"> <input type="checkbox" name="1" value="1" title="Want this computer t...
[ -0.3463197648525238, 0.15877856314182281, 0.6651139259338379, -0.047131944447755814, 0.2672432065010071, 0.20137092471122742, 0.07251055538654327, -0.5231590867042542, -0.35633474588394165, -0.5203525424003601, -0.3237287700176239, 0.4617273509502411, 0.13855406641960144, 0.054606243968009...
<input type="submit" name="submit" id="submit" value="Submit" /> </form> ``` jquery function to submit the form on clicking the "link": ``` $("#login-submit").click(function() { $('#login-form').submit(); return false; }); ``` Controller function: ``` public function login_form() { ...
[ 0.07823389023542404, -0.17258527874946594, 0.6640792489051819, 0.07664315402507782, 0.059670157730579376, -0.3220907747745514, 0.128525048494339, -0.5426715612411499, 0.10136167705059052, -0.46929436922073364, -0.7150806188583374, 0.550798237323761, -0.40596792101860046, 0.1837389022111892...
$this->form_validation->set_rules('password', 'Password', 'required'); if ($this->form_validation->run() == FALSE) { $this->load->view('templates/header', $data); $this->load->view('login', $data); $this->load->view('templates/footer'); } else { ...
[ 0.19802126288414001, -0.22570276260375977, 0.40076664090156555, -0.22248265147209167, 0.07309354841709137, -0.1820908635854721, 0.3110548257827759, -0.41190212965011597, 0.11218511313199997, -0.4525291621685028, -0.6985485553741455, 0.7452124953269958, -0.35171201825141907, -0.092872895300...
$this->load->view('index', $data); $this->load->view('templates/footer'); } } ``` Here if I click on the "Submit button of the form, then the codeigniter validation works for user-name and password fields. But if I click the link with id="login-submit", then it calls the jquery function and the f...
[ 0.24440470337867737, 0.10982638597488403, 0.5451465249061584, -0.02983284369111061, -0.19162079691886902, -0.4084215760231018, 0.38818272948265076, -0.3551517724990845, 0.11784032732248306, -0.6386460065841675, -0.27491095662117004, 0.6722257733345032, -0.07242711633443832, -0.024833574891...
false on the anchor click event. This has happened to me before and it seems to me that there is a conflict somewhere using `.submit()` inside a click event and returning false to stop the anchor's default behavior.
[ 0.10263342410326004, 0.012535173445940018, 0.07190471887588501, -0.0870455875992775, -0.055844586342573166, -0.2556266784667969, 0.2435484230518341, -0.04322093725204468, 0.10343603789806366, -0.5249597430229187, -0.1630377322435379, 0.9365463256835938, -0.43299636244773865, 0.385365456342...
I've been thinking about creating a forum in PHP so I did a little research to see what the standard is for the tables that people create in the database. On most websites I've looked up, they always choose to have one table for the threads and a second for the posts on the threads. Having a table for the threads seem...
[ 0.634928286075592, 0.04529007524251938, 0.06005101650953293, 0.36568671464920044, -0.16238188743591309, 0.11709968000650406, -0.11251529306173325, 0.2644535005092621, -0.34051764011383057, -0.6474627256393433, 0.633969783782959, 0.10016638040542603, -0.24574148654937744, 0.2691296935081482...
instead sticking a few hundred thousand posts in one table? The tables should represent the structure of the data in your database. If you have 2 objects, which in this case are your threads and your posts, you should put them in 2 tables. Trust me, it will be a nightmare trying to figure out the right table to show ...
[ 0.4132292568683624, -0.17123521864414215, 0.18457411229610443, 0.32109710574150085, -0.12976793944835663, -0.019485516473650932, 0.3047955632209778, -0.01547708734869957, -0.5134029388427734, -0.7691403031349182, 0.3580700755119324, 0.13161267340183258, -0.40431684255599976, 0.515833675861...
a ThreadID and pass it as a variable to your query. ``` SELECT * FROM Posts WHERE ThreadID = $ThreadID ``` Relational databases are designed to have tables which hold lots of rows. You would probably be surprised what DBAs consider to be a "lot" by the way. A table with 1,000,000 rows is considered small to medium i...
[ 0.18415582180023193, 0.11586125195026398, 0.48922500014305115, 0.18668659031391144, 0.04468286409974098, 0.010363366454839706, -0.08019473403692245, 0.21088559925556183, -0.4183224141597748, -0.6831335425376892, -0.15403899550437927, 0.08271556347608566, -0.27617552876472473, 0.50845241546...
I have range of numbers that range from 1 - 0.00000X . Most are small numbers like 0.000823. How can I map them so that they are closer in range ? I used sqrt method but any other suggestions ? **Update** Example Numbers between 1-0.1 I don't have problem with them . My problem with numbers below 0.1. I need to bri...
[ -0.05947146937251091, -0.03981471806764603, 0.5441529750823975, 0.016151735559105873, 0.007404751610010862, 0.15607841312885284, 0.17967425286769867, -0.32540979981422424, -0.2866806983947754, -1.0295969247817993, 0.09083753079175949, 0.3197479248046875, 0.059084437787532806, 0.07967492192...
numbers to a range 0..1. If the range isn't required, only that the numbers are close together, you can drop the scale factor. Edit: This can be expressed without a subtraction of course. `y = 1 + C*log(x)` where `C = 1/log(eps)` For example, with an epsilon of 0.0000000001 (10^-10), you get C = -0.1 and: ``` 0.000...
[ 0.011689477600157261, -0.15425828099250793, 0.5846600532531738, -0.11921330541372299, 0.06234462186694145, 0.1553461104631424, 0.07300116121768951, -0.4033188223838806, -0.45527639985084534, -0.567225456237793, -0.16073083877563477, 0.4968615174293518, -0.11923211067914963, -0.034125905483...
numbers, then just scale the range from 0 ... 0.1. This can be done by multiplying x with 10 before the function is applied, and divide again by 10 after. Of course in this case use the scale function only if the value is less than 0.1.
[ 0.06289917230606079, -0.004621849395334721, 0.45710787177085876, -0.1416466236114502, -0.06606993079185486, 0.2800171673297882, 0.2884724736213684, -0.4044865369796753, -0.26517853140830994, -0.6627377867698669, -0.026939403265714645, 0.5635665059089661, -0.12214549630880356, 0.13843175768...
``` <div class="content-wrapper"> <div class="popup"> <div class="close"> </div> </div> </div> ``` .content-wrapper is relatively positioned and contains all the page content (not just the popup). .popup is absolutely positioned. .close is also absolutely positioned. I have some javascript ...
[ -0.05083128437399864, 0.20681975781917572, 0.9730718731880188, 0.008076273836195469, -0.2562532424926758, -0.28449514508247375, 0.03035346046090126, -0.1475832164287567, 0.12474478036165237, -0.7559455037117004, -0.3513026237487793, 0.22910574078559875, -0.2112201601266861, -0.134618505835...
in trying to hide .close behind .popup. No matter what z-index I set for the two divs .close will not sit behind .popup. Is it possible to have an absolutely positioned div inside another absolutely positioned div sit behind its parent, and if so how? Yep, use z-index: <http://jsfiddle.net/tGd4Q/> HTML: ``` <div cl...
[ 0.09573351591825485, -0.2790851891040802, 0.5516835451126099, -0.11996044963598251, 0.08275996893644333, -0.016852321103215218, 0.33234918117523193, -0.23775885999202728, 0.13059541583061218, -0.4513362944126129, -0.4686357080936432, 0.1935962438583374, -0.4995015263557434, 0.0616458132863...
with IE7 standards though. I suggest using jQuery(or other framework of your choosing) to hide the div: ``` $('.popup .close').hide(); ```
[ 0.6418895721435547, -0.08306772261857986, 0.43635180592536926, -0.1256653517484665, 0.04060337319970131, -0.5974831581115723, 0.3158472776412964, 0.19635385274887085, -0.04535079002380371, -0.569899320602417, -0.3009006679058075, 0.4605766534805298, -0.13302545249462128, -0.084905028343200...
I'm getting this error when I submit my form and cannot figure out why this is happening. I believe the taglib should be handling this. I've tried changing the value passed in my jsp to `itemValue="id"` but it has no affect. ``` org.springframework.validation.BindException: org.springframework.validation.BeanPropertyB...
[ -0.09594405442476273, 0.3204081356525421, 0.37335553765296936, -0.1491328775882721, 0.31294435262680054, -0.024829968810081482, 0.7880109548568726, -0.579453706741333, -0.28079620003700256, -0.3780687749385834, -0.3479674458503723, 0.5448626279830933, -0.3948398530483246, 0.314451456069946...
no matching editors or conversion strategy found] ``` **My jsp** ``` <strong>State</strong><br/> <form:checkboxes path="stateCollection" items="${states}" itemLabel="name"/> ``` **My Content** ``` public class Content implements Serializable { ....... @JoinTable(name = "content_to_state", joinColumns = { ...
[ 0.024614451453089714, -0.1891687661409378, 0.5525544881820679, 0.16843079030513763, 0.12385791540145874, -0.20958364009857178, 0.21318703889846802, -0.35566550493240356, -0.3484891355037689, -0.6170751452445984, -0.3990776836872101, 0.3654099106788635, -0.3529461622238159, 0.47744080424308...
this.stateCollection = stateCollection; } ..... ``` **My Controller** ``` ... @RequestMapping(value = "/{guid}/save", method = RequestMethod.POST) public ModelAndView saveContent(@ModelAttribute("content") Content content, @PathVariable("guid") String guid) { try { // Save the modified object ...
[ 0.11115016043186188, -0.2506270706653595, 0.7254061102867126, 0.01619601994752884, 0.4034958481788635, 0.08722873777151108, 0.39978089928627014, -0.3872011601924896, -0.401522696018219, -0.2859850823879242, -0.3042446970939636, 0.4227122962474823, -0.6079548001289368, 0.4555978775024414, ...
} catch (Exception ex) { } finally { if (em != null) { em.close(); } } } ... ``` Yep, use z-index: <http://jsfiddle.net/tGd4Q/> HTML: ``` <div class="content-wrapper"> <div class="popup"> <div class="close"> </div> </div> </div>​ ``` CSS: ``` .popup, ....
[ -0.0038975062780082226, -0.149979367852211, 1.0093913078308105, -0.07583925873041153, 0.14183244109153748, 0.06616371870040894, -0.01502764318138361, -0.3160325288772583, -0.33394715189933777, -0.440416157245636, -0.42695876955986023, 0.1037968248128891, -0.2923138737678528, 0.045109041035...
}​ ``` This won't work with IE7 standards though. I suggest using jQuery(or other framework of your choosing) to hide the div: ``` $('.popup .close').hide(); ```
[ 0.5420895218849182, 0.16558867692947388, 0.30473536252975464, -0.11019617319107056, 0.264801561832428, -0.31435641646385193, 0.2902267277240753, 0.2634235620498657, 0.11753358691930771, -0.5500217080116272, -0.27181094884872437, 0.5679666996002197, -0.2972702383995056, 0.0357537716627121, ...
Can someone help me with converting this query to a Linq to entities query in the proper way. I am fairly new to Linq and want to write these queries properly. This is a fairly involved one for what im doing with UNION and sub queries in it ``` SELECT pf.FileID, pf.ServerName, pf.MigrationType FROM pOrders pf WHERE ...
[ -0.16122277081012726, 0.0011320071062073112, 0.948663592338562, 0.04462567716836929, 0.018166078254580498, 0.08874160796403885, -0.24772493541240692, -0.43027499318122864, -0.5050956606864929, -0.7019951343536377, 0.12637749314308167, 0.2415320873260498, -0.41793814301490784, 0.07400831580...
+ " order by pf.MigrationType desc ``` I know, I saw comments... but ``` var signalIds = Signals.Where(s => s.SignalFileId = FILEID).Select(x => x.GCMFileID ).ToArray(); pOrders.Where(pf => signalIds.Contains(pf.FileID)) .Union( pOrders.Where(pf => pf.FileID == FILEID)) .OrderByDescending(u => u.MigrationType) .Sele...
[ -0.21681489050388336, -0.2662462890148163, 0.8495548963546753, -0.32545796036720276, 0.08384236693382263, 0.5196920037269592, 0.12810105085372925, -0.5106799006462097, -0.5758764147758484, -0.6910531520843506, -0.39229825139045715, 0.11373991519212723, -0.5410402417182922, 0.25093889236450...
I'm currently working on a console window in Swing. It's based on a JTextArea and works like a common command line. You type a command in one line and press enter. In the next line, the output is shown and under that output, you could write the next command. Now I want, that you could only edit the current line with y...
[ 0.47170111536979675, 0.0489351749420166, 0.48200589418411255, -0.016300169751048088, -0.1415732055902481, -0.04413837194442749, -0.011614994145929813, -0.3521229922771454, -0.03322644904255867, -0.7896381616592407, 0.0414261519908905, 0.40448328852653503, -0.15260456502437592, 0.3084832131...
get the document from `textPane.getDocument()` and set a filter on it by `document.setFilter()`. Within the filter, you can check the prompt position, and only allow modifications if the position is after the prompt. For example: ``` private class Filter extends DocumentFilter { public void insertString(final Fil...
[ 0.028276311233639717, -0.4010823369026184, 0.5531701445579529, -0.3476998209953308, 0.34222203493118286, -0.0855814516544342, 0.28888604044914246, -0.40713784098625183, 0.12571735680103302, -0.6975082159042358, -0.36222800612449646, 0.6822687983512878, -0.6288602352142334, -0.0819231718778...
} } public void remove(final FilterBypass fb, final int offset, final int length) throws BadLocationException { if (offset >= promptPosition) { super.remove(fb, offset, length); } } public void replace(final FilterBypass fb, final int offset, final int length, final String ...
[ 0.13816240429878235, -0.4307478070259094, 0.45038601756095886, -0.2610974907875061, 0.2608027458190918, 0.19940291345119476, 0.4312805235385895, -0.20214879512786865, 0.14130069315433502, -0.5265544652938843, -0.23686088621616364, 0.5611010789871216, -0.8671225309371948, 0.0504809431731700...
if (offset >= promptPosition) { super.replace(fb, offset, length, text, attrs); } } } ``` However, this prevents you from programmatically inserting content into the output (noneditable) section of the terminal. What you can do instead is either a passthrough flag on your filter that you set w...
[ 0.01573229767382145, -0.19143559038639069, 0.6631426215171814, -0.3074570596218109, 0.26162272691726685, -0.2155715674161911, 0.2653355300426483, 0.11599747836589813, 0.03704198822379112, -0.6613641381263733, -0.31561776995658875, 0.5780978202819824, -0.4118681252002716, 0.0923336744308471...
I am trying to run a test on selenium IDE to enter to my Gmail, select the specific new email from all my email enter and click on a specific link that the email has. I've been going round and round this and cannot find and answer! I have read another post that has this help: //div[@class = 'y6']/span[contains(., 's...
[ 0.6879553198814392, -0.007832526229321957, 0.33077940344810486, -0.03757418692111969, -0.48200705647468567, -0.0823749303817749, 0.48517465591430664, -0.03502313420176506, -0.21807914972305298, -0.7425127625465393, 0.23539815843105316, 0.3417852818965912, -0.25291818380355835, 0.3214290440...
only be one new email every time the test is fun, since the idea is to enter and check the last email. 2. Inside the email there is a button that needed to be press, which I have the id, but I just need to enter the email to do so. 3. I have used the following CSS that so far has found what i need to click, but when I ...
[ 0.44806474447250366, 0.0809522271156311, 0.3339814841747284, -0.16326259076595306, -0.15316805243492126, -0.22681637108325958, 0.4429827630519867, -0.2003675252199173, -0.03033273108303547, -0.9808105230331421, 0.1316985785961151, 0.49109557271003723, -0.2303512692451477, -0.00766554195433...
yet been read. Help! Thanks, This is strange, because `clickAt | css=div.yW > span.zF[email='myemail@myemail.com']` works fine for me. More than that, `clickAt | css=span[email='myemail@myemail.com']` will always open first message(last one) with this email in the list.
[ 0.16641584038734436, 0.3218008577823639, 0.37391242384910583, 0.14404022693634033, -0.17240417003631592, -0.3837466835975647, 0.48692819476127625, -0.025663308799266815, -0.21719028055667877, -0.7329958081245422, -0.0029561130795627832, 0.36650267243385315, 0.0032078679651021957, 0.3248163...
I am working on a mathematical problem that has the advantage of being able to "pre-compute" about half of the problem, save this information to file, and then reuse it many times to compute various 'instances' of my problem. The difficulty is that uploading all of this information in order to solve the actual problem ...
[ 0.07332313060760498, 0.3238067030906677, 0.012581879273056984, 0.12661026418209076, -0.03173552826046944, 0.25607386231422424, 0.2540830671787262, 0.07393129914999008, 0.006454853340983391, -0.6846632957458496, -0.04475392401218414, 0.44072791934013367, 0.0598842017352581, 0.11946589499711...
*D*. For each *D*, I need to perform a great many computations that involve a combination of the pre-computed data (from file), and some other data that are specific to *D* (so that the problem is different for each *D*). Sometimes I will need to pick out certain pieces of pre-computed information from the files. Othe...
[ 0.07906606048345566, -0.04377211257815361, 0.28757521510124207, 0.2875535488128662, -0.162654310464859, 0.2227519154548645, -0.16183318197727203, -0.033149074763059616, -0.45974138379096985, -0.8854345083236694, 0.20592597126960754, 0.7538694739341736, -0.16706492006778717, 0.0580692514777...
unbearable. Any strategies or optimizations? Currently I am doing everything with `cstdio`, i.e. no `iostream`. Will that make a big difference? The stuff that isn't in a map is easy. You put everything in one contiguous chunk of memory that you know (like a big array, or a struct/class with no pointers), and then us...
[ 0.13498368859291077, 0.06698064506053925, 0.10472594201564789, 0.04570271074771881, -0.11360437422990799, 0.0011332682333886623, 0.34973809123039246, 0.04774978384375572, -0.24632534384727478, -0.9809041023254395, -0.030196990817785263, 0.5050534605979919, -0.15166662633419037, 0.222333282...
is a bit harder, since you can't do it all in one operation. Here you need to come up with a convention for serializing it. To make the i/o as fast as possible, your best bet is to convert it from the map to an in-memory form that is all in one place and you can convert back to the map easily and quickly. If, for examp...
[ 0.03050929680466652, 0.05282501131296158, 0.1330924928188324, 0.2995784878730774, 0.20564310252666473, 0.11859219521284103, -0.1013614758849144, -0.14588415622711182, -0.45572420954704285, -0.6718100309371948, 0.10748467594385147, 0.3917372524738312, -0.26393455266952515, 0.125873580574989...
into the other, and then `write()` the two arrays, possibly writing out their size as well. Again, you read things in with only two or three calls to `read()`. Note that nothing ever got translated to ASCII, and there are a minimum number of system calls. The file will not be human readable, but it will be compact, an...
[ -0.17787319421768188, -0.14732107520103455, 0.3867061138153076, -0.0018852350767701864, 0.12192247807979584, -0.05291233956813812, 0.07929758727550507, -0.11466346681118011, -0.22724825143814087, -0.8061836957931519, -0.3047301471233368, 0.4855409562587738, -0.1062326729297638, -0.19461812...
a background thread, but you might need to block waiting for the data to be in.
[ 0.4632513225078583, -0.3754916489124298, 0.10585805773735046, 0.39983290433883667, -0.020433461293578148, -0.24029923975467682, 0.07707253843545914, 0.31797415018081665, -0.44242846965789795, -0.35212627053260803, 0.11456747353076935, 0.07234086841344833, -0.22679626941680908, 0.0276204738...
In GHCI prelude> using :t for finding the types of functions: ``` (.) :: (b -> c) -> (a -> b) -> a -> c (:) :: a -> [a] -> [a] ((.)(:)) :: (a -> b) -> a -> [b] -> [b] -- (what happened here?) ``` I understand the result of the single functions, but when partially applied I do not. [what is the type of map map ?...
[ -0.25798922777175903, -0.07006021589040756, 0.49330154061317444, 0.10205457359552383, -0.24560703337192535, -0.30450648069381714, -0.3631654679775238, -0.3840196430683136, -0.08136259019374847, -0.6858928799629211, -0.10192638635635376, 0.4781345725059509, -0.42724525928497314, 0.140629693...
of `((.)(:))`? Is there a way of thinking that can be used for any partial application of a function? Thanks in advance. The best thing to do, when you want to infer a type for a partial application is to start from the most general types of your building blocks and search for matches between the types you're composi...
[ 0.0968068391084671, 0.3171185553073883, 0.030383117496967316, -0.00044515400077216327, -0.22673547267913818, 0.03828893229365349, 0.02408416010439396, -0.1312127560377121, -0.07941646128892899, -0.3686867356300354, 0.048853449523448944, 0.5826451182365417, -0.4871382415294647, -0.056574318...
a -> c (:) :: d -> [d] -> [d] ``` `(.) (:)` partially applies `(:)` to `(.)`, providing its first argument only. This means that the first argument of `(.)`, that is of type `(b -> c)`, is instantiated to `(d -> ([d] -> [d]))`, with `b == d` and `c == ([d] -> [d])` (remember that `->` is right associative). If you a...
[ -0.23258128762245178, 0.08528657257556915, 0.20995159447193146, -0.40302494168281555, -0.29892656207084656, 0.08766420930624008, 0.25565651059150696, -0.24734821915626526, 0.2616266906261444, -0.3259279429912567, -0.7492318153381348, 0.4916298985481262, -0.3895626366138458, 0.1375184655189...
to `(a -> d) -> a -> [d] -> [d]` (again, by right-associativity): this is the type expression you got from ghci.
[ 0.08898948132991791, -0.09700038284063339, 0.3264794647693634, -0.25746217370033264, -0.20163112878799438, -0.16639994084835052, 0.04105556756258011, 0.19406786561012268, 0.1174980103969574, -0.3135606348514557, -0.49064552783966064, 0.45102015137672424, -0.163705974817276, 0.0180488266050...
I'm essentially trying to set it up so that when I click a button on my site, the page refreshes with either a random piece of text from an array and a random image from an array. I've got the text part down, but need to know how to do the picture part. This is the script I'm using right now for the text generator: ``...
[ 0.5266255736351013, -0.025627335533499718, 0.42509549856185913, -0.023851221427321434, 0.3540979027748108, 0.0465603843331337, 0.08448819816112518, -0.1458996832370758, -0.41753676533699036, -0.36832258105278015, 0.0009431443177163601, 0.9948804974555969, -0.49587497115135193, -0.310729205...
gym so you can't leave the building"; r_text[5] = "Student debt can't be discharged"; r_text[6] = "Sallie Mae becomes one of your biggest contacts"; r_text[7] = "Good luck with partner track"; r_text[8] = "There are no lifestyle firms"; r_text[9] = "Your soul will die"; r_text[10] = "Socratic Method? More like Suck-rat...
[ 0.8347567319869995, -0.04092540591955185, 0.2779930830001831, 0.0538022480905056, 0.29132309556007385, -0.26006051898002625, 0.6482665538787842, -0.1797715276479721, -0.3660929799079895, -0.3056589365005493, -0.01543566957116127, 0.7206469178199768, -0.24268582463264465, -0.385338544845581...
How can I modify my existing JQuery code to loop through a JSON array of arrays? For example, when PHP returns a JSON result from MySQL database containing more than 1 row. Here is my code. It only works with a single row result. ``` $(function(){ $('#btn_select_account').live('click', function() { // URL.....
[ 0.34765923023223877, -0.08643031865358353, 0.4619828462600708, -0.10869113355875015, 0.08231623470783234, 0.11100348085165024, 0.37526997923851013, -0.3267928957939148, -0.29312464594841003, -0.5019164085388184, 0.2801015079021454, 0.3764941096305847, -0.38484665751457214, 0.17861576378345...