text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Here's my query:
```
SELECT solGroup,;
SUM(IIF((;
SELECT COUNT(*) FROM cgift c2;
WHERE c2.solgroup != c1.solgroup AND c1.donor == c2.donor;
) > 0;
,1,0));
countgaveother;
FROM | [
-0.41263312101364136,
-0.13954903185367584,
0.5325930714607239,
-0.5539873242378235,
0.28573545813560486,
0.15853898227214813,
-0.13834044337272644,
-0.6167903542518616,
-0.1849192976951599,
-0.4469758868217468,
-0.20461079478263855,
0.10974115878343582,
-0.3984101414680481,
0.220951154828... | |
cgift c1;
GROUP BY solGroup
```
cGift is a cursor containing a list of records.
```
autonumber...donor....solGroup
1............10.......a
2............11.......a
3............10.......b
4............15.......b
5............10.......c
6............15.......c
7............11.......d
8............11.......d
9........ | [
-0.39137330651283264,
0.0643145814538002,
0.9866003394126892,
-0.06592152267694473,
-0.17540526390075684,
0.2386348992586136,
-0.05864531919360161,
-0.3700156509876251,
-0.41080939769744873,
-0.535666286945343,
-0.2815258502960205,
0.2786233425140381,
-0.17049820721149445,
0.04755038022994... | |
queries run perfectly fine in this form as well.
The cursor is created with a `select ... into cursor cGift`. It is ordered by donor, though removing this changes nothing.
I'm on VFP 9 sp2. Anyone know how speed it up?
EDIT:
Ok, let me summarize and see if anyone else has any ideas.
I create a cursor with a `sele... | [
-0.26952728629112244,
0.14878439903259277,
0.9181000590324402,
0.11946896463632584,
-0.1495559960603714,
0.3153468668460846,
0.18716906011104584,
0.04618985578417778,
-0.11502730846405029,
-0.7310880422592163,
0.020771285519003868,
0.4951598644256592,
-0.4057243764400482,
0.081761009991168... | |
idea what environment settings are on/off/wtvr in my form since it's part of a very large program.
ok, i couldn't figure out what was different in the two enviorments but i sped the query up by changing it and breaking into two parts (something is wrong the with the sql engine if queries run faster after being broken a... | [
-0.158938929438591,
-0.2066938281059265,
0.39521026611328125,
0.005579078104346991,
0.20259150862693787,
0.24391904473304749,
-0.12804873287677765,
-0.4304180443286896,
-0.057716093957424164,
-0.46538740396499634,
0.2908921539783478,
0.20811250805854797,
-0.5292523503303528,
0.223158523440... | |
count where activesol > 1
Merging those makes everything very slow. | [
0.014690025709569454,
-0.1331964135169983,
0.5803154110908508,
0.020236607640981674,
-0.12659446895122528,
-0.10888206958770752,
0.4586613178253174,
-0.5492571592330933,
-0.21226444840431213,
-0.6559106111526489,
0.1287316232919693,
0.4133502244949341,
-0.32077741622924805,
-0.193995445966... | |
I'm trying to extract letters from a game board for a project. Currently, I can detect the game board, segment it into the individual squares and extract images of every square.
The input I'm getting is like this (these are individual letters):
. Just calculate the [image moments](h... | [
-0.14917774498462677,
-0.22877898812294006,
0.1284651905298233,
-0.0018827245803549886,
-0.19791187345981598,
0.28268367052078247,
0.021358413621783257,
-0.3704714775085449,
-0.09069319069385529,
-0.35550734400749207,
-0.02341272495687008,
0.4787721335887909,
0.07641030102968216,
0.0687430... | |
almost any classification algorithm you like. You could use an SVM for each letter (binary yes-no classification), you could use a NaiveBayes (what is the maximal likely letter), or you could use a k-NearestNeighbor (kNN, minimum spatial distance in feature space) approach, e.g. [flann](http://opencv.willowgarage.com/d... | [
-0.26722437143325806,
-0.409597784280777,
0.13795027136802673,
0.21980999410152435,
-0.07953713089227676,
-0.03240077197551727,
0.1938169002532959,
-0.017354818060994148,
-0.31324395537376404,
-0.6626135110855103,
-0.24516886472702026,
0.35163402557373047,
0.003462430788204074,
-0.07356288... | |
vectors given the correct letter.
And a process, to evaluate your process, e.g. cross validation.
---
In this case, you might also want to have a look at [template matching](https://en.wikipedia.org/wiki/Template_matching). In this case you would convolute the candidate image with the available patterns in your train... | [
0.2672981023788452,
-0.43087461590766907,
0.1175583079457283,
0.373729407787323,
-0.3579513728618622,
0.2817182242870331,
-0.020091138780117035,
-0.48281458020210266,
-0.1274193972349167,
-1.0377143621444702,
0.08889838308095932,
0.4008237421512604,
-0.44391068816185,
-0.19129522144794464,... | |
I'm trying to get all the predefined-length permutations of a list, in ascending order only.
```
For example, take the set: "ABCDE"
I'd like the returning result to be:
ABC, ABD, ABE, ACD, ACE, ADE, BCD, BCE, BDE, CDE
```
In other words, a "B" can never appear before an "A" (ascending order), but I'd like every va... | [
0.4047165513038635,
0.4069773852825165,
0.17898793518543243,
-0.29093191027641296,
-0.15759162604808807,
0.34259316325187683,
0.07956826686859131,
-0.36354994773864746,
-0.20714831352233887,
-0.44909584522247314,
-0.07683708518743515,
0.22952833771705627,
-0.46960604190826416,
0.0861601158... | |
"ABC" (each letter being a char), and the outer list would be a list of all combinations.
The length of each resulting set (3 in the above example) needs to be dynamic, so I'm thinking I'll need some kind of recursion... I just can't figure out how to implement it.
Any help would be greatly appreciated!
**EDIT**
So... | [
0.4872382879257202,
0.1290915310382843,
0.05928295850753784,
-0.4062032103538513,
0.10543328523635864,
0.37686440348625183,
0.2790504992008209,
-0.6300138831138611,
-0.0449795164167881,
-0.4962514638900757,
0.10773077607154846,
0.5351495146751404,
-0.5789667963981628,
0.002267820993438363,... | |
List<List<char>> Ret = new List<List<char>>();
for(int i = 0; i <= InMovements.Count - Combinations; i++)
{
if(Combinations <= 1){
Ret.Add(new List<char>() {InMovements[i] });
return Ret;
} | [
0.024008313193917274,
-0.2912263572216034,
0.6788357496261597,
-0.5396449565887451,
0.07254502177238464,
0.510598361492157,
0.21496881544589996,
-0.8848974108695984,
-0.6460503935813904,
-0.513495147228241,
-0.4355853199958801,
0.49023282527923584,
-0.6209688782691956,
0.005721297580748796... | |
else
{
Ret.Union(AscendingPermute(InMovements.GetRange(1, InMovements.Count - 1), Combinations - 1));
}
}
return Ret;
}
```
Am I on the right track? What am I missing?
Thanks!
I *think* this is what you're looking for, though I'm not positive about speed:
... | [
-0.1568077653646469,
-0.1925516426563263,
0.1592104434967041,
0.051146093755960464,
0.2068786919116974,
-0.19831819832324982,
0.27521637082099915,
0.04515328258275986,
-0.27162858843803406,
-0.3274305760860443,
-0.2945859730243683,
0.8005191683769226,
-0.31866782903671265,
0.05460513755679... | |
IEnumerable<string> GetPermutations(string letters, int max = 3, int curr = 0)
{
if (curr < max - 1)
{
for (int a = 0; a < letters.Length; a++)
{
string firstHalf = letters.Substring(a,1);
string subset = letters.Substring(a+1);
foreach (string secondHalf in GetPermutations(subset, max, cu... | [
-0.16997835040092468,
-0.09764692932367325,
0.6829365491867065,
-0.3729174733161926,
0.172916442155838,
0.05665690079331398,
0.4830962121486664,
-0.5798024535179138,
0.4301028251647949,
-0.6268053650856018,
-0.5007781982421875,
0.4814702570438385,
-0.33037304878234863,
-0.11543478816747665... | |
+ secondHalf;
}
}
}
else
yield return String.Empty;
}
```
Example call:
```
foreach (var result in GetPermutations('ABCDE', 3)){
Console.WriteLine(result);
}
```
Results in:
```
ABC
ABD
ABE
ACD
ACE
ADE
BCD
BCE
BDE
CDE
Press any key to continue...
``` | [
0.1038421019911766,
0.20235952734947205,
0.377836138010025,
-0.41055262088775635,
0.29048407077789307,
-0.05199213698506355,
0.37146225571632385,
-0.5134710669517517,
0.05652112513780594,
-0.40490153431892395,
-0.560662031173706,
0.37104326486587524,
-0.3495645225048065,
0.3956674635410309... | |
I am designing an inventory system. Each inventory item's taxes need to be calculated based on many conditions (State, County, etc, etc). The rules of calculations change as well over period of time. So I was thinking of the Strategy Pattern but I do not have an extensive experience in making design descions.
What ot... | [
0.20949923992156982,
-0.1263095885515213,
-0.039782751351594925,
0.14372113347053528,
-0.18063001334667206,
0.4510280191898346,
0.20152270793914795,
-0.13381090760231018,
-0.18311871588230133,
-0.5326602458953857,
0.37846821546554565,
0.544706404209137,
0.016186725348234177,
0.088623635470... | |
behaviours of a class should not be inhereted, instead they should
> be encapsulated using interfaces.
This means that instead of subclassing your `Inventory` item for each and every possible tax calculation, you should encapsulate the calculation algorithm behind an interface and then use encapsulation inside your `... | [
-0.13720352947711945,
-0.2245638072490692,
-0.08736203610897064,
-0.04480157047510147,
0.027920342981815338,
0.1474214345216751,
0.3769751489162445,
-0.3004456162452698,
-0.26818564534187317,
-0.47094619274139404,
-0.0546303316950798,
0.675125241279602,
-0.5355111956596375,
-0.157845929265... | |
{
// Calculation A
}
}
class InventoryTaxB : InventoryBase
{
protected override Money CalculateTax()
{
// Calculation B
}
}
```
But the strategy pattern would look like:
```
class Inventory
{
public Inventory(ITaxCalculationStrategy taxCalculationStrategy)
{
TaxCalculationStrateg... | [
-0.06397959589958191,
-0.2483123391866684,
0.2856295704841614,
-0.014305764809250832,
0.24633899331092834,
-0.16334353387355804,
-0.1201026663184166,
-0.06354731321334839,
-0.1960628628730774,
-0.5366243124008179,
-0.07473492622375488,
0.874187707901001,
-0.10391771793365479,
-0.2504988908... | |
at a certain time are different and can change I would also use a [Factory](http://en.wikipedia.org/wiki/Factory_%28software_concept%29) for creating the correct Strategy object. | [
0.5495307445526123,
-0.06333716958761215,
0.3092964291572571,
-0.279557466506958,
0.012452008202672005,
0.12339852750301361,
0.2322053611278534,
-0.16458776593208313,
0.01590118743479252,
-0.7635289430618286,
0.1141103133559227,
0.46618276834487915,
-0.10741164535284042,
-0.160610228776931... | |
Is it possible to have `git status` only show the modified files due, in my case, to having too many staged files?
You can't do this with `git status`, but you could use `git ls-files -m` to show all modified files. | [
0.48693931102752686,
-0.03953249007463455,
0.13365501165390015,
0.2824725806713104,
0.18813002109527588,
-0.2359132021665573,
0.11860392242670059,
0.29642370343208313,
-0.3058398962020874,
-0.5022053718566895,
0.019387444481253624,
0.566753625869751,
-0.2576691806316376,
-0.026121811941266... | |
Let's say I have a `string` `"Hello"` and a list
```
words = ['hello', 'Hallo', 'hi', 'house', 'key', 'screen', 'hallo','question', 'Hallo', 'format']
```
How can I find the `n words` that are the closest to `"Hello"` and present in the list `words` ?
In this case, we would have `['hello', 'hallo', 'Hallo', 'hi', '... | [
-0.47514858841896057,
0.1933879554271698,
0.3638916015625,
0.020202873274683952,
-0.34335118532180786,
0.07029065489768982,
0.19403864443302155,
-0.22790320217609406,
-0.015751786530017853,
-0.7040456533432007,
-0.24145984649658203,
0.3296453356742859,
0.021493999287486076,
0.2640519738197... | |
(`words list` has 630000+ words inside (sorted and one per line)). So checking the list takes 5 to 7 seconds for every search for closest word!
Use [`difflib.get_close_matches`](http://docs.python.org/library/difflib.html#difflib.get_close_matches).
```
>>> words = ['hello', 'Hallo', 'hi', 'house', 'key', 'screen', 'h... | [
-0.3411563038825989,
0.31330999732017517,
0.8121553659439087,
-0.16357657313346863,
-0.17339977622032166,
0.21554814279079437,
0.6043874025344849,
-0.3608618378639221,
0.0668080747127533,
-0.9818398952484131,
-0.4881131649017334,
0.4058380126953125,
0.07304950803518295,
0.01807751320302486... | |
I want to show a spinning progress wheel thing (like [this](http://builder.fluidproject.org/images/spinner.gif)) when something's processing to show the user something's happening. Is there any way I can do this without popping up a whole window for it? I'm using swing. Thanks.
Here are two stripped-down instructional ... | [
0.4388244152069092,
-0.3675200343132019,
0.7979623079299927,
0.17541563510894775,
-0.19906340539455414,
0.0824509933590889,
0.20950764417648315,
-0.1619848608970642,
-0.3575778305530548,
-0.5679225325584412,
-0.003477903548628092,
0.48263922333717346,
-0.26277363300323486,
0.04851419851183... | |
setLocation(0,0);
setSize(icon.getIconWidth(), icon.getIconHeight());
add(new JLabel(icon));
pack();
}
};
jWindow.setVisible(true);
Thread.sleep(3000);
jWindow.setVisible(false);
}
```
Example 2 of 2, Transparent using paint:
```
public static void main(String args[]) throws Exception {
JWindow jWindow =... | [
0.3218722939491272,
-0.19411291182041168,
1.0025391578674316,
-0.30764493346214294,
-0.10789603739976883,
0.28357788920402527,
0.37619373202323914,
-0.2847844958305359,
-0.31994232535362244,
-0.6856394410133362,
-0.5007519721984863,
0.8000105023384094,
-0.31338655948638916,
0.0909861326217... | |
I am trying to have 1 image on the top of my LinearLayout and 1 at the bottom on the LinearLayout.
But after all the things I tried, I can only get 1 image layout below another. I want 1 align to the top, 1 align to the bottom.
```
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="matc... | [
0.11108086258172989,
-0.13721396028995514,
0.9173449873924255,
-0.2754720151424408,
-0.04458683356642723,
0.29826620221138,
-0.18887712061405182,
-0.17609861493110657,
-0.07527086138725281,
-0.7762979865074158,
0.20779360830783844,
0.5849104523658752,
-0.17387664318084717,
0.08204465359449... | |
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/bg2"
android:layout_gravity="bottom" />
</LinearLayout>
```
I have tried using RelativeLayout (in the main container) with layout\_alignParentBottom (in my second image), ... | [
-0.3149697780609131,
0.05461335927248001,
0.7456328272819519,
-0.2057976871728897,
-0.10903707146644592,
0.2014065384864807,
0.028742196038365364,
-0.26356735825538635,
0.016256200149655342,
-0.6063026785850525,
0.10625196248292923,
0.5862464308738708,
0.06052923575043678,
0.01713757216930... | |
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_toRightOf="@+id/ImageView1"
android:background="@drawable/bg2" />
```
If you still have problems check the container above this RelativeLayout. If it's the root everything looks fine. | [
-0.0076456861570477486,
-0.05604584142565727,
0.5468590259552002,
-0.3382427394390106,
0.1332160234451294,
-0.042546045035123825,
0.4218103885650635,
-0.055199868977069855,
-0.1407412439584732,
-0.7483121156692505,
-0.05434991046786308,
0.7902532815933228,
-0.12982124090194702,
0.092708922... | |
I created a custom `UITableViewCell` which is the same as the *Left Detail* cell but instead of a detailLabel it has a `UITextField` I matched ALL properties between the label in my custom cell and the label for the *Left Detail* cell however it will not word wrap. It will display the first word then instead of wrappin... | [
0.27584952116012573,
-0.17720109224319458,
0.6946831345558167,
0.18701310455799103,
-0.388351172208786,
0.12378305196762085,
0.23637151718139648,
-0.2312394082546234,
-0.04462256282567978,
-0.9432024359703064,
0.052404604852199554,
0.2156190425157547,
0.04717490077018738,
0.156925797462463... | |
line breaks set to word wrap
* View autosizing set to the same as *Left Detail*
I did this in IB so I was able to match every setting. Anyone know how to make the custom labels for cells auto wrap?
EDIT:
To be clear I am wanting the custom label to word wrap not the textfield.
It was the TableAdapter.Fill methods, f... | [
0.031537964940071106,
-0.14236588776111603,
0.5812239646911621,
-0.09394516795873642,
-0.23962517082691193,
0.033483318984508514,
0.3124617040157318,
-0.14690814912319183,
-0.4942047894001007,
-0.45190003514289856,
-0.29603198170661926,
0.37314602732658386,
-0.4051957130432129,
-0.17120268... | |
I'm creating a simple form builder to play around with jQueryUI. I have a list of form elements, just as images, which I've made draggable, set to helper 'clone'. I also have a dropable area on which I've set the drop event to read the id of the dropped image and create an appropriate form element and append it to the ... | [
0.37951382994651794,
-0.2671847641468048,
0.7800098061561584,
0.1778988391160965,
-0.2564334571361542,
-0.10915125161409378,
-0.11237635463476181,
-0.13322654366493225,
-0.023034200072288513,
-0.603763222694397,
0.1492423713207245,
0.43800824880599976,
-0.41880372166633606,
-0.076507978141... | |
to be able to drag them around once they have been created.
Here's the code: -
```
var itemCount = 1;
var idToAdd;
var itemToAdd;
$(document).ready(function(){
$(".draggable").draggable({
opacity:0.5,
helper: "clone"
});
$(".form_builder").droppable(
{
activeClas... | [
0.2435804307460785,
-0.43316587805747986,
0.8478717803955078,
-0.021876053884625435,
0.34171774983406067,
0.008869527839124203,
0.029645364731550217,
-0.3750251233577728,
-0.30648404359817505,
-0.36207231879234314,
-0.32441338896751404,
0.6267356872558594,
-0.3315306603908539,
0.0080706728... | |
var dropped_item = ui.draggable;
switch($(dropped_item).attr("id")){
case "text_box":
idToAdd = "textBox" + itemCount; | [
-0.21351830661296844,
-0.3909662067890167,
0.22430860996246338,
-0.12367585301399231,
0.06775811314582825,
0.33274605870246887,
0.22709210216999054,
-0.3764090836048126,
-0.1591913104057312,
-0.15234175324440002,
-0.40794676542282104,
0.4744170904159546,
-0.3664728105068207,
0.113124884665... | |
itemToAdd = "<input id='" + idToAdd + "' type='text' />";
break;
case "text_area": | [
-0.3268616497516632,
-0.20153991878032684,
0.4018080532550812,
0.0601632185280323,
0.18505705893039703,
0.06795328855514526,
0.3963010907173157,
-0.28022050857543945,
-0.39950743317604065,
-0.19856612384319305,
-0.7326304912567139,
0.29738661646842957,
-0.14350686967372894,
0.1032659932971... | |
break;
case "radio":
idToAdd = "radio" + itemCount;
itemToAdd = "<input id='" + | [
-0.18236848711967468,
-0.008306443691253662,
0.21818414330482483,
0.06830774992704391,
0.3034193217754364,
-0.10052891075611115,
0.39891424775123596,
-0.2923820912837982,
-0.17149575054645538,
0.014764171093702316,
-0.6375085115432739,
0.6526791453361511,
-0.17518587410449982,
0.2513913214... | |
idToAdd + "' type='radio' />";
break;
case "check":
idToAdd = "check" + itemCount; | [
-0.12979015707969666,
-0.09160945564508438,
0.2707982659339905,
0.022774573415517807,
0.405017226934433,
-0.31705835461616516,
0.2759042978286743,
-0.4388525187969208,
0.06947778910398483,
-0.20244427025318146,
-0.6705540418624878,
0.6185253858566284,
-0.3189050853252411,
0.136735752224922... | |
itemToAdd = "<input id='" + idToAdd + "' type='check' />";
break;
case "dropdown": | [
-0.27876055240631104,
-0.36354613304138184,
0.3532719910144806,
0.12426035851240158,
0.23013007640838623,
0.07435890287160873,
0.3904346525669098,
-0.2522762715816498,
-0.30337223410606384,
-0.04494687542319298,
-0.6836518049240112,
0.2648860812187195,
-0.19230502843856812,
0.1504011750221... | |
break;
case "file":
idToAdd = "file" + itemCount;
itemToAdd = "<input id='" + idToAdd + "' | [
-0.44975993037223816,
-0.09953731298446655,
0.19530974328517914,
0.001976568717509508,
0.44706079363822937,
-0.002731374930590391,
0.2214517593383789,
-0.2811598777770996,
-0.31828418374061584,
-0.1610887348651886,
-0.684820830821991,
0.261001318693161,
-0.02132713608443737,
0.139444112777... | |
type='file' />";
break;
case "button":
idToAdd = "button" + itemCount; | [
-0.4744758903980255,
-0.2766570448875427,
0.28545036911964417,
0.028606873005628586,
0.4037137031555176,
0.05421820655465126,
0.024365514516830444,
-0.2585879862308502,
-0.23224064707756042,
-0.2804928123950958,
-0.6923722624778748,
0.27283430099487305,
-0.22522106766700745,
0.141817852854... | |
itemToAdd = "<input id='" + idToAdd + "' type='submit' />";
break;
}
itemCount++; | [
-0.4481385350227356,
-0.256545752286911,
0.23178774118423462,
0.019542180001735687,
0.02297268994152546,
0.19172553718090057,
0.3558404743671417,
-0.4057076573371887,
-0.0938577950000763,
-0.313965767621994,
-0.7444251179695129,
0.29747289419174194,
-0.15917707979679108,
0.2123611122369766... | |
$(this).append(itemToAdd);
$("#" + idToAdd).draggable();
}
});
});
```
**UPDATE The reason that it doesn't work is because the input somehow interferes with the drag event. This has nothing to do with the fact that it was dropped. I have added paddings to the element an... | [
0.09287969022989273,
-0.2696366310119629,
0.6973843574523926,
-0.21663358807563782,
0.09534111618995667,
-0.013243773020803928,
0.32548651099205017,
-0.3266620337963104,
0.00937202200293541,
-0.5725387334823608,
-0.04813544079661369,
0.7828963398933411,
-0.5555630326271057,
0.1535385102033... | |
on the padding, it works: <http://jsfiddle.net/7HUt2/4/>**
1. Try to limit the scope of your variables:
```
drop: function(e, ui){
var itemToAdd;
...
}
```
This will ensure that no other simultaneous event will corrupt your program flow.
2. Avoid seeking your objects if you can reference them directly:
```
i... | [
-0.13008995354175568,
-0.2635442614555359,
0.7027727365493774,
-0.0798719972372055,
-0.14376522600650787,
-0.14795319736003876,
0.3587488830089569,
-0.40041816234588623,
-0.2401324063539505,
-0.5422847867012024,
-0.19777138531208038,
0.8076520562171936,
-0.36402204632759094,
-0.08972874283... | |
I am using the following stored procedure to call period numbers to match them to teachers.
We are writing an attendance taking application where upon selecting the teacher's name from a dropdown menu, the "period" dropdown menu populates. For some reason we are not getting the period data to populate.
Stored Procedu... | [
0.04652419686317444,
-0.40996450185775757,
0.45299622416496277,
0.06532571464776993,
0.11163212358951569,
0.137457013130188,
0.05762842670083046,
0.11046301573514938,
-0.3713045120239258,
-0.26805055141448975,
-0.13667543232440948,
0.13127762079238892,
0.21690912544727325,
0.32970860600471... | |
varchar(10) Unchecked
TeacherName varchar(50) Checked
Period Table
PeriodId varchar(10) Unchecked
Period varchar(50) Unchecked
ClassId varchar(10) Unchecked
```
Thanks in advance!
Code calling the SP:
```
'***** SETUP THE CONNECTION ***
SQL = "spGetPeriod '" + (cboTeacher.Text) + "'"
'... | [
-0.44007134437561035,
-0.19417832791805267,
0.739612340927124,
-0.021329447627067566,
-0.008820311166346073,
0.013438497669994831,
0.30087921023368835,
-0.40127262473106384,
-0.4033503830432892,
-0.39466795325279236,
-0.3017541468143463,
0.38349607586860657,
0.14160393178462982,
0.13591623... | |
'.CommandType = CommandType.StoredProcedure
.Connection = objConnection
'.Parameters.AddWithValue("@TeacherId", cboTeacher.SelectedIndex)
End With
SqlCmd = New SqlCommand(SQL, objConnection)
Catch ex As Exception
Call ErrorControl(ex)
End Try
'*** MAKE THE CO... | [
-0.1497494876384735,
-0.048183370381593704,
0.5529292821884155,
-0.02963593415915966,
0.1238756999373436,
0.06432892382144928,
0.4558853805065155,
-0.1772060990333557,
-0.030381159856915474,
-0.46048784255981445,
-0.2418716698884964,
0.24041424691677094,
-0.4203585088253021,
0.534579098224... | |
'MsgBox("Connection Established!")
ToolStripStatusLabel1.Text = "Connection Established!"
Catch ex As Exception
Call ErrorControl(ex)
End Try
'*** EXECUTE THE COMMAND AND FILL THE COMBO ***
Dim Reader As SqlDataReader = SqlCmd.ExecuteReader()
While Reader.Read()
cboPeriod.... | [
0.11787749081850052,
-0.35784101486206055,
0.5052189230918884,
0.057123471051454544,
0.018503816798329353,
-0.2060362845659256,
0.261677622795105,
-0.08940284699201584,
-0.10025648027658463,
-0.43183717131614685,
-0.1792915165424347,
0.5320343375205994,
-0.36910200119018555,
0.347437292337... | |
must pass the correct parameter to the procedure from the interface
2)Your procedure is called spGetPeriod but on your SQL you have select \* from teacher | [
0.08735401928424835,
-0.48802968859672546,
0.4208950698375702,
-0.01185729168355465,
-0.08899395912885666,
-0.2838349938392639,
0.061013445258140564,
-0.02325826697051525,
-0.19948510825634003,
-0.4049336612224579,
-0.09678095579147339,
0.5552522540092468,
-0.2996075451374054,
-0.058920972... | |
I have an ASP.NET web site with something similar to the following code:
**.aspx**
```
<asp:UpdatePanel ID="UpdatePanel" runat="server">
<ContentTemplate>
<table id="RatesTable">
<tr>
<td>Hotel</td>
<td> </td>
</tr>
<tr id="NewRateRo... | [
0.32578420639038086,
-0.06817875802516937,
0.5074569582939148,
-0.043696749955415726,
0.14201387763023376,
-0.0658462792634964,
0.12490665167570114,
-0.1522773951292038,
-0.19299855828285217,
-0.8932603001594543,
0.15578411519527435,
0.14351454377174377,
0.04790143668651581,
0.140602454543... | |
<td>
<asp:DropDownList ID="TxtHotel" runat="server" OnSelectedIndexChanged="TxtHotel_SelectedIndexChanged" AutoPostBack="true">
</asp:DropDownList>
</td>
<td> | [
0.018131084740161896,
-0.3566182851791382,
0.16503804922103882,
-0.15817603468894958,
-0.17740434408187866,
0.28402864933013916,
0.17644351720809937,
-0.35634759068489075,
-0.21910634636878967,
-0.20771346986293793,
-0.2835904657840729,
0.5662751197814941,
-0.1853899508714676,
-0.044693343... | |
<a href="javascript:AddHotelPackRate()">Add</a>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
```
AddHotelPackRate JS function, reads the value in the dropdown and "draws" a new row at the beginning of the table, containing this value.
The problem is that after th... | [
-0.03899683803319931,
-0.08219863474369049,
0.5142425298690796,
-0.38130924105644226,
-0.037560880184173584,
0.09947948902845383,
-0.06229882687330246,
-0.43259963393211365,
-0.14344289898872375,
-0.5988531112670898,
-0.3645358681678772,
0.5129465460777283,
-0.3513544499874115,
-0.20992548... | |
this type of information after postback?
You'll either have to have the content added by JS inside of the updatepanel, or you'll need to add whatever data the JS code added in the postback so that it continues to exist when the data is re-drawn.
The easy way is probably just to have `AddHotelPackRate` cause an updatep... | [
0.3920411169528961,
-0.06554500758647919,
0.5458731055259705,
0.29517996311187744,
-0.06320838630199432,
-0.11123862117528915,
-0.06157595291733742,
0.21041645109653473,
-0.3904763162136078,
-0.6530250906944275,
-0.21197976171970367,
0.41528329253196716,
-0.16132469475269318,
0.06265174597... | |
the issue entirely (in a different way). | [
0.22886353731155396,
-0.05450950935482979,
0.0006924725603312254,
0.30014652013778687,
-0.10677339881658554,
0.14487148821353912,
-0.14987896382808685,
-0.14408956468105316,
-0.11154983192682266,
-0.23336711525917053,
-0.3211906850337982,
0.522574782371521,
-0.09470690041780472,
0.04493972... | |
Is there some function/procedure/package that validates a username and password in `Oracle` (from a user that exists in the db)?
**Background**: We want to create a web application that will use a pool of connections. All users already exists in the database, because of a legacy 6i application. So we think that the be... | [
0.5089260935783386,
0.3203836977481842,
-0.10111890733242035,
0.2408618927001953,
-0.10225940495729446,
-0.28732967376708984,
0.007934263907372952,
-0.18689219653606415,
-0.05620736628770828,
-0.38734927773475647,
0.04017070308327675,
0.1955682784318924,
-0.07857766002416611,
0.34064704179... | |
option will be much easier.
I solved it!:
I did a 123456 to the exact same "selection" of string gmail was replacing with link and no href is being added, lost the call functionality though | [
-0.3129318356513977,
-0.40159448981285095,
0.6602988839149475,
0.23552459478378296,
0.1978929489850998,
-0.027150167152285576,
0.6669150590896606,
-0.043379802256822586,
0.024347012862563133,
-0.5198510885238647,
-0.18229468166828156,
0.7031309604644775,
-0.3807012736797333,
0.032400399446... | |
I develop the site with Day CQ5 and was faced witha problem.
I'm creating a component, and the dialogue for it. I use in the dialog for the component element "multifield", which contains several elements "pathfield." How can I set a specific number of elements "pathfield" and remove buttons "+" and "-"?
I've come acros... | [
0.08393628150224686,
-0.08201087266206741,
0.6630282998085022,
-0.05767449364066124,
-0.1650514155626297,
-0.01779928430914879,
0.09093040972948074,
-0.38895919919013977,
0.08518563210964203,
-0.5771602988243103,
0.05925668403506279,
0.6394972205162048,
-0.2677830159664154,
-0.118133671581... | |
under the multifield. If present & not zero, it will use this as the max number of fields a user can add.
Don't want to get into copyright issues by posting the full overlay, but the changes I made where as follows:
In the constructor (line #53), add in a check to get the value of limit from the fieldConfig node:
``... | [
0.047266632318496704,
-0.13126401603221893,
0.774746835231781,
-0.21071235835552216,
0.3128519654273987,
-0.17722591757774353,
0.04036625102162361,
-0.351509153842926,
-0.3587312698364258,
-0.36640578508377075,
-0.20891469717025757,
0.496237188577652,
-0.4585278034210205,
0.282578468322753... | |
CQ.Ext.Msg.show({
title: 'Limit reached',
msg: 'You are only allowed to add ' + config.fieldConfig.limit +
' items to this module',
icon:CQ.Ext.MessageBox.WARNING,
buttons: CQ.Ext.Msg.OK
});
}
```
Rather than removing the buttons, I've just created a pop-up to inform ... | [
0.011676222085952759,
-0.0670759528875351,
0.6365958452224731,
-0.32495632767677307,
0.27198147773742676,
-0.023733600974082947,
0.27753669023513794,
-0.3173791170120239,
-0.43385177850723267,
-0.36050426959991455,
-0.29840803146362305,
0.6288856863975525,
-0.24893724918365479,
0.073923170... | |
use. | [
0.22052158415317535,
0.2542358934879303,
0.010324104689061642,
-0.011292614042758942,
-0.09645160287618637,
-0.21627177298069,
-0.19917161762714386,
-0.11745254695415497,
0.07940573245286942,
-1.03632652759552,
-0.39058664441108704,
0.48060256242752075,
-0.27066075801849365,
0.159223645925... | |
I would to know if it's possible to "make" a jquery slideshow with large images.
For example, if I have 1900x260 images, in a large screen, all the images were seen. But in a small resolution (1024), I would to see the images centered (not responsive !!, not resized).
Thank for help.
Fabrice
It was additional code (... | [
0.2563853859901428,
-0.2565140426158905,
0.25145116448402405,
0.2922477722167969,
-0.04728838428854942,
0.09643680602312088,
-0.021827183663845062,
-0.16931550204753876,
-0.4897936284542084,
-0.7628182172775269,
0.06794290244579315,
0.33509334921836853,
-0.006298268213868141,
0.23336599767... | |
I have a smiliar loop:
```
$names = "
[$name , $surname]
";
echo "$names";
```
The result:
```
[Mario,Rossi]
[Aberto,rossi]
[Giovanni,Rossi]
```
i would this output:
```
[Mario,Rossi],
[Aberto,rossi],
[Giovanni,Rossi]
```
Without , in the last result
\* I can't know the number of results in the loop
U... | [
-0.07379014045000076,
0.10732590407133102,
0.5941004753112793,
-0.30302950739860535,
0.10871967673301697,
0.3294405937194824,
0.31312859058380127,
-0.4905434548854828,
-0.28974202275276184,
-0.3491828739643097,
-0.18185319006443024,
0.4287944734096527,
-0.48958542943000793,
0.1233399510383... | |
When I'm trying to update or commit code from a project it's telling me that the folder is locked. When I try to "release lock" it says that there's nothing to unlock in this working space.
What does that mean? Why I can't update, commit or even clean up the project.
Right click on your Subversion working directory f... | [
0.4471478760242462,
-0.041904691606760025,
0.12184356898069382,
-0.036551572382450104,
0.07894562929868698,
-0.11938651651144028,
0.7258973121643066,
-0.011169415898621082,
-0.6586208939552307,
-0.5381531119346619,
-0.31095030903816223,
0.6590965390205383,
-0.08127505332231522,
0.425985693... | |
know about the lock).
If that doesn't work, see if you can find the names of the files that were changed, but not yet committed, save them, and redo the checkout. | [
0.48538738489151,
-0.0757334902882576,
0.38585975766181946,
0.20310305058956146,
0.6006121635437012,
-0.36459141969680786,
0.41757187247276306,
-0.18558569252490997,
-0.3634384870529175,
-0.3357379138469696,
-0.22428058087825775,
0.6390695571899414,
-0.08356980234384537,
0.0928663611412048... | |
Let's say i have this json data. How to transform the "tags" to a string like
`$tags = "Rihanna, We, Found, Love, (Explicit), Def, Jam, Records, Pop";` ?
```
{ "apiVersion" : "2.1",
"data" : { "items" : [ { "accessControl" : { "autoPlay" : "allowed",
"comment" : "allowed",
... | [
0.6931467652320862,
-0.14203444123268127,
0.4226856827735901,
0.1530372053384781,
0.07214304804801941,
-0.158404141664505,
0.0583159439265728,
-0.1321904957294464,
0.0516398549079895,
-0.1951349377632141,
0.030190160498023033,
0.6677446961402893,
-0.30695751309394836,
-0.048073187470436096... | |
"embed" : "allowed",
"list" : "allowed",
"rate" : "allowed",
"syndicate" : "allowed",
"videoRespond" | [
0.7735708951950073,
-0.414652943611145,
0.6267752051353455,
0.3962259888648987,
0.21105869114398956,
-0.15606212615966797,
-0.34051185846328735,
-0.13625773787498474,
-0.3182569444179535,
-0.49060094356536865,
-0.3814440071582794,
0.6769255995750427,
-0.36227497458457947,
0.150141015648841... | |
: "allowed"
},
"aspectRatio" : "widescreen",
"category" : "Music",
"tags" : [ "Rihanna",
"We", | [
0.46488842368125916,
-0.40895211696624756,
0.7010390162467957,
0.44804131984710693,
0.32607388496398926,
-0.3116856515407562,
-0.06490977108478546,
0.029257845133543015,
-0.19275526702404022,
-0.18876279890537262,
-0.36171647906303406,
0.782861590385437,
-0.1716693788766861,
-0.16411952674... | |
"Found",
"Love",
"(Explicit)",
"Def",
"Jam", | [
0.5692916512489319,
0.26798033714294434,
0.008427780121564865,
0.2700764834880829,
0.11992349475622177,
0.37349462509155273,
0.6544433236122131,
0.19081968069076538,
-0.23291955888271332,
-0.08445722609758377,
-0.5135686993598938,
0.7519361972808838,
-0.34252291917800903,
0.031328715384006... | |
"Records",
"Pop"
],
"title" : "Rihanna - We Found Love ft. Calvin Harris"
} ], | [
0.35526585578918457,
0.0931210070848465,
0.5894699692726135,
0.563215434551239,
0.38182032108306885,
0.1693902164697647,
0.3794649541378021,
-0.0409625768661499,
-0.33240190148353577,
0.04938238859176636,
-0.2688731849193573,
1.0122705698013306,
-0.042502280324697495,
0.01761036366224289,
... | |
"itemsPerPage" : 1,
"startIndex" : 1,
"totalItems" : 859012,
"updated" : "2012-04-04T20:32:26.170Z"
}
}
```
For the title as example, the script looks like this:
```
$content = $this->getDataFromUrl($feedURL);
$content = json_decode($content,true);
$videosList = $content['d... | [
0.27739280462265015,
-0.18189184367656708,
1.0974042415618896,
0.05454606935381889,
0.20376884937286377,
-0.10096029192209244,
0.07344520837068558,
-0.1632099747657776,
-0.2638110816478729,
-0.35074368119239807,
-0.5087683796882629,
0.6450523734092712,
-0.31231266260147095,
0.3015704751014... | |
I have a JavaScript file that I ran through the Google Closure compiler, and it munged the name `on` to `za`, which is obviously not more efficient from a length standpoint. Is there some reason it is, in fact, more efficient (possibly because of the letters used), or is it just a couple random letters?
For instance, ... | [
0.3580556809902191,
0.2639169991016388,
0.16216440498828888,
-0.11865001171827316,
-0.20534811913967133,
0.11938711255788803,
0.2595537006855011,
0.12212179601192474,
-0.1718001365661621,
-0.5710306763648987,
-0.15596197545528412,
0.3945362865924835,
-0.46477168798446655,
0.533742249011993... | |
name. It stays at 'a' and makes it way through 'b', etc... It does not appear to care about current length of the variable name, but it will make sure the overall size is the same or smaller than before. In some cases variable may be refactored out of the code if you use the advanced optimization setting.
By letting ... | [
0.1243678405880928,
-0.0958549901843071,
0.2846730053424835,
0.07853249460458755,
-0.039601705968379974,
-0.16426479816436768,
0.18312986195087433,
-0.1250031590461731,
-0.3913262188434601,
-0.42087313532829285,
0.03597657382488251,
0.49021753668785095,
-0.25979143381118774,
0.362640649080... | |
list to compare against.
Another benefit of minifying code is to obfuscate your code base. Sure someone can figure it out if they really wanted to, but by making the variable names programatic it makes it harder to figure out the meaning.
If you really wanted to debug through combined & minified code I would recomm... | [
0.6288887858390808,
-0.3006247878074646,
-0.06561750918626785,
0.22081251442432404,
-0.3327462375164032,
0.01547374576330185,
0.44219112396240234,
0.015031937509775162,
-0.467471182346344,
-0.4558398127555847,
0.10598651319742203,
0.491818904876709,
-0.2612934410572052,
-0.0410442166030406... | |
im using php and heroku to create some images for my facebook app, but the images arent shown, only picture of an broken image is shown.
Im using sample code from php tutorial website.
```
<?php
// Create a 100*30 image
$im = imagecreate(100, 30);
// White background and blue text
$bg = imagecolorallocate($im, 255, 2... | [
0.1315191239118576,
0.16072137653827667,
0.3910561501979828,
-0.09533266723155975,
-0.26046305894851685,
0.39475739002227783,
0.5422775745391846,
-0.4580821692943573,
-0.10784216970205307,
-0.4893994629383087,
0.07442684471607208,
0.4257504940032959,
-0.5346081852912903,
-0.084576226770877... | |
previous name. It stays at 'a' and makes it way through 'b', etc... It does not appear to care about current length of the variable name, but it will make sure the overall size is the same or smaller than before. In some cases variable may be refactored out of the code if you use the advanced optimization setting.
By... | [
0.04118219017982483,
-0.0476112887263298,
0.254861444234848,
0.028647249564528465,
0.0031563302036374807,
-0.09005844593048096,
0.2044994980096817,
-0.1034037321805954,
-0.5452055335044861,
-0.4200000464916229,
-0.061770498752593994,
0.4387716054916382,
-0.2956666648387909,
0.4741667509078... | |
a list to compare against.
Another benefit of minifying code is to obfuscate your code base. Sure someone can figure it out if they really wanted to, but by making the variable names programatic it makes it harder to figure out the meaning.
If you really wanted to debug through combined & minified code I would reco... | [
0.6095011234283447,
-0.29532745480537415,
-0.15101832151412964,
0.23316599428653717,
-0.33418089151382446,
0.03677162528038025,
0.4869830310344696,
0.015494956634938717,
-0.39588576555252075,
-0.4099982976913452,
0.16389542818069458,
0.4858366847038269,
-0.2131374180316925,
-0.051253817975... | |
How do you underline a text in an XML file? I can't find an option in `textStyle`.
If you are using a string resource xml file (supports HTML tags), it can be done using`<b> </b>`, `<i> </i>` and `<u> </u>`.
```
<resources>
<string name="your_string_here">
This is an <u>underline</u>.
</string>
</resou... | [
0.2894670367240906,
-0.08352925628423691,
0.9414094686508179,
-0.2537728548049927,
-0.31591007113456726,
0.0387275293469429,
0.337846964597702,
-0.46808844804763794,
-0.1709652543067932,
-0.5799206495285034,
-0.15115761756896973,
0.5935434699058533,
-0.24715323746204376,
0.0062944809906184... | |
I'm drawing an image using rgb pixel data. I need to set transparent background color for that image. What value I can set for alpha to be a transparent image? Or is there any other solution for this?
If I understand what you need, you basically want to turn specific colors on an image transparent. To do that you need ... | [
0.3441026508808136,
-0.23201122879981995,
0.27633926272392273,
-0.09988768398761749,
-0.38572388887405396,
0.223733052611351,
0.2938443720340729,
-0.5226277709007263,
-0.21556615829467773,
-0.6708559393882751,
0.19258299469947815,
0.41983380913734436,
-0.7239326238632202,
0.004470370244234... | |
var r = pix[i],
g = pix[i+1],
b = pix[i+2];
if(g > 150){
// If the green component value is higher than 150
// make the pixel transparent because i+3 is the alpha component
// values 0-255 work, 255 is solid
pix[i + 3] = 0;
}
}
ctx.putImageData(imgd, 0, 0);
`... | [
0.1158757284283638,
-0.2779783606529236,
0.5678764581680298,
-0.3147348463535309,
0.06790982186794281,
0.19795268774032593,
0.16688396036624908,
-0.42318055033683777,
-0.008369606919586658,
-0.5751352310180664,
-0.2042457014322281,
0.4226425886154175,
-0.6412479281425476,
-0.16420382261276... | |
a working demo](http://jsfiddle.net/loktar/bYR28/)**
With the above code you could check for fuschia by using
`if(r == 255 && g == 0 && b == 255)` | [
0.28577157855033875,
-0.21158833801746368,
0.1369144320487976,
-0.0405522957444191,
0.3883940875530243,
-0.07340307533740997,
0.47731512784957886,
-0.3848697245121002,
-0.05789651721715927,
-0.4869775176048279,
-0.14755499362945557,
0.44529199600219727,
-0.2825290560722351,
-0.080471999943... | |
Still learning CSS so pardon if this is obvious -
I am building a header that will contain four sections:
```
|Header-------------------------------|
|----Title----|----NavigationLinks----|
|----Taglines-|----SelectionBar-------|
|-------------------------------------|
```
What I would like is for the Taglin... | [
0.1481039673089981,
0.040037211030721664,
0.2926326394081116,
0.05736353248357773,
0.17028361558914185,
-0.1813502013683319,
0.08428310602903366,
0.1811738759279251,
-0.32691770792007446,
-0.6976286172866821,
0.09158098697662354,
0.23197029531002045,
0.08790532499551773,
-0.130823269486427... | |
display: table-cell; but can't figure out how to 'connect' the second row to the first.
UPDATE:
Missing a tag caused the div's to ignore the display: table\* settings. Using display: table/table-row/table-cell to create a table layout would do what I needed: table-cell will auto stretch the column affecting the width... | [
-0.18800607323646545,
-0.0884142518043518,
0.46984270215034485,
-0.17233698070049286,
-0.11066208779811859,
0.237810879945755,
0.20357820391654968,
-0.03585677966475487,
-0.3278314471244812,
-0.6867371797561646,
-0.00638289051130414,
0.36387571692466736,
-0.3275563418865204,
0.085715770721... | |
for example. | [
0.06821978837251663,
0.17178413271903992,
-0.1702142357826233,
0.01890578307211399,
0.07282522320747375,
0.002830331912264228,
0.10527709871530533,
-0.10945764183998108,
-0.27462559938430786,
-0.40231800079345703,
-0.27506086230278015,
0.21369127929210663,
-0.10099554806947708,
0.115219749... | |
I'm trying to do a simple date format, it does work great, it's very easy, but the problem is the language. I used the locale "es\_ES" to get "Miércoles" instead of "Wednesday" and sorts like that but i failed.
Here's my code:
```
SimpleDateFormat formato =
new SimpleDateFormat("EEEE d 'de' MMMM 'de' yyyy", new ... | [
0.1522347778081894,
0.5121336579322815,
0.6794081330299377,
-0.20288661122322083,
-0.013411708176136017,
-0.037160806357860565,
0.5528818964958191,
-0.22198104858398438,
-0.22422882914543152,
-0.32433807849884033,
-0.020978881046175957,
0.3369652032852173,
-0.23731641471385956,
0.126355648... | |
are:
* [Locale(String language)](http://docs.oracle.com/javase/8/docs/api/java/util/Locale.html#Locale-java.lang.String-)
Construct a locale from a language code.
* [Locale(String language, String country)](http://docs.oracle.com/javase/8/docs/api/java/util/Locale.html#Locale-java.lang.String-java.lang.String-)
Co... | [
-0.09593787044286728,
0.04767608642578125,
0.26595833897590637,
-0.1477329283952713,
0.2341052144765854,
0.0599246546626091,
0.27783653140068054,
0.14141535758972168,
-0.40080326795578003,
-0.48202842473983765,
-0.6701872944831848,
-0.1637389361858368,
-0.20704175531864166,
0.3148583173751... | |
Is there any way to simplify this method? Perhaps a way to && both statements together in one for- loop?
```
// Enable valid decimal buttons
- (IBAction)enableDecimalValues
{
for(UIButton *decimalButton in nonOctalValueCollection)
{
decimalButton.enabled = YES;
[decimalButton setAlpha:1];
... | [
0.04998648539185524,
0.13760223984718323,
0.43382370471954346,
0.1447272002696991,
0.1587052196264267,
0.47550320625305176,
0.297849178314209,
-0.29479455947875977,
-0.32626432180404663,
-0.2300163209438324,
-0.19870798289775848,
0.512191891670227,
-0.24920164048671722,
-0.3689227700233459... | |
per se. What you have here is **clarity**; a reader can quickly see and understand what is happening.
Alternatives require allocating memory and copying objects, just so you can have 1 loop. But in the end, the performance is worse (strictly speaking).
But, if you insist, how about this:
```
NSMutableArray *buttons ... | [
-0.1607452630996704,
-0.16211502254009247,
0.4307406544685364,
0.10467551648616791,
-0.055099423974752426,
0.18004977703094482,
0.0675075426697731,
-0.10683730989694595,
-0.2731044888496399,
-0.6862042546272278,
-0.19658534228801727,
0.6377639770507812,
-0.11014463007450104,
-0.21161445975... | |
I have the following code:
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">
body {background-color:Gray;}
body {text-align:left;}
</style>
<title>My First Projec... | [
0.33106550574302673,
0.22028802335262299,
0.7220951318740845,
-0.5054762363433838,
-0.14441733062267303,
-0.09824416786432266,
0.2340640276670456,
-0.5847014784812927,
-0.04740673676133156,
-0.8936415314674377,
-0.12657324969768524,
0.6777804493904114,
-0.03641504421830177,
0.2473569810390... | |
am I missing?
You've to invoke a function on some event -- JS basically runs on events!!
```
<input type="radio" name="size" id="small" onclick="yourFxn()" />Small</td>
```
In your script
```
function yourFxn(){
if (document.getElementById('small').checked) {
document.getElementById('total').innerHTML = '$1.00... | [
0.1678536981344223,
0.1741870939731598,
-0.025029288604855537,
-0.0861591175198555,
0.28236478567123413,
-0.3022092580795288,
0.5859182476997375,
-0.23826268315315247,
-0.16280896961688995,
0.06639260053634644,
-0.3784981071949005,
0.8568501472473145,
-0.524721622467041,
0.1041268631815910... | |
I want to search two string in datarows.For example;
```
string1="ex"
string2="ex2"
row1={'ex','ex2','ex3'....}---->True
row2={'ex3','ex1','ex2'....}---->True
row3={'ex2','ex5','ex6'....}---->False
```
Each line must have a value of two strings..
For This,
```
for (counter = 0; counter < array.Count; counter++)
... | [
0.23438093066215515,
-0.20180045068264008,
0.517377495765686,
-0.2760668694972992,
0.13198819756507874,
0.31706422567367554,
0.375988245010376,
-0.5076412558555603,
0.08198797702789307,
-0.6796929240226746,
-0.09104590117931366,
0.2574561834335327,
-0.34825319051742554,
0.10784060508012772... | |
foreach (object obje in row2.ItemArray)
{
//Proceeds
}
}
}
```
I coding something.But I do not want to | [
0.11627769470214844,
0.15233086049556732,
0.4277983605861664,
-0.3053246736526489,
0.10253104567527771,
0.0207202285528183,
0.4006311893463135,
-0.20907646417617798,
0.01629720628261566,
-0.6491532325744629,
-0.3150484263896942,
0.26387548446655273,
-0.3673912286758423,
0.3408156931400299,... | |
deal with pollution in the code...
Is there an easy way to select method?
```
var result = data.AsEnumerable()
.Where(r => r.ItemArray.Contains(string1) || r.ItemArray.Contains(string2))
``` | [
0.14155341684818268,
-0.044245604425668716,
0.329946905374527,
0.19625847041606903,
0.09402210265398026,
0.01551925390958786,
0.22649291157722473,
-0.27786785364151,
-0.11180590093135834,
-0.38324204087257385,
0.052727311849594116,
0.453500896692276,
-0.7047951221466064,
0.1216361075639724... | |
I am new to g++ and lapack, and attempting to use them. I encountered a problem when I tried to compile the following naive code
```
#include <lapackpp.h>
int main()
{
LaGenMatDouble A;
return 0;
}
```
If I run the command
```
$g++ -L/usr/local/lib -llapackpp test2.cpp
```
where test2.cpp is the name of... | [
0.14577612280845642,
0.3676641583442688,
0.39715448021888733,
-0.19057008624076843,
0.27204495668411255,
-0.12619903683662415,
0.46378466486930847,
-0.36441582441329956,
-0.022597594186663628,
-0.65399569272995,
-0.1711534559726715,
0.45309334993362427,
-0.2929063141345978,
0.2283083200454... | |
collect2: ld returned 1 exit status
```
BTW, if I run the command
```
$pkg-config lapackpp --libs
```
the result is
```
-L/usr/local/lib -llapackpp
```
Could you please help me solve this? Thanks in advance!
Lapack requires fortran libraries, so that's where the `-lgfortran` comes from. Moreover, it appears ... | [
0.10060654580593109,
-0.11394104361534119,
0.5040614008903503,
0.056352563202381134,
-0.24134865403175354,
-0.270397424697876,
0.18347714841365814,
-0.26786649227142334,
-0.2449084371328354,
-0.4134485721588135,
-0.28081172704696655,
0.697888195514679,
-0.47401827573776245,
-0.361903309822... | |
as package "gfortran". For SuSE 9.x, the Fortran compiler is available as package "gcc-g77".
Not sure why `pkg-config lapackpp --libs` does not list `-lgfortran`
The `-I/usr/local/include/lapackpp` specifes the lapackpp-related header files. Without it the compiler cannot find lapackpp.h when you try to include it (`... | [
-0.37984079122543335,
0.17164810001850128,
0.236857071518898,
0.09420347213745117,
-0.015907753258943558,
-0.05017213895916939,
0.36161836981773376,
-0.1204080879688263,
-0.33468541502952576,
-0.22935736179351807,
-0.31544336676597595,
0.6349014639854431,
-0.6017019152641296,
-0.3149102926... | |
My app targets iphone, but obviously it can also be installed on iPad.
On iPhone it uses the correct icon image; on iPad 2, it also uses the correct icon.
However on iPad 3, instead of using icon as icon, it uses my launch image as icon. Is this the usual behaviour on iPad 3? or is my setting wrong? (I uses the late... | [
0.18014445900917053,
0.17771285772323608,
0.7223779559135437,
-0.22538898885250092,
-0.214074969291687,
0.35129478573799133,
0.3097536861896515,
0.08018927276134491,
-0.17038965225219727,
-0.5681856274604797,
-0.11468769609928131,
0.5046923160552979,
-0.4647366404533386,
-0.263957887887954... | |
what I see in Xcode on the "Summary" screen though. In Xcode on the summary screen:
1. I have retina icon set to SOF\_app\_icon.png, and I do not have a non-retina icon set - it says "no image specified";
2. I have two launching images set: Default.png for non-retina, and Default@2x.png for retina.
Here is the plist ... | [
0.02433711662888527,
-0.11292760074138641,
1.0537971258163452,
-0.25798940658569336,
-0.12778262794017792,
0.3789876699447632,
-0.07926749438047409,
-0.09084213525056839,
-0.3482758700847626,
-0.7568054795265198,
-0.030639901757240295,
0.5731345415115356,
-0.4274757504463196,
-0.1657770872... | |
<string>Default@2x.png</string>
</array>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.overwaitea.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<stri... | [
-0.07489849627017975,
0.2443075031042099,
0.5816739797592163,
-0.10253038257360458,
0.216103196144104,
0.04638948291540146,
-0.14882785081863403,
-0.3915877044200897,
-0.42466357350349426,
-0.5453854203224182,
-0.18947479128837585,
0.6220595240592957,
-0.17984144389629364,
-0.1402774900197... | |
of information](https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html) that Apple supplies.
If you post a copy of your Info.plist (with any sensitive information redacted), along with your icon file names, we can probably nail down exactly what's going ... | [
0.11334483325481415,
0.2935832142829895,
0.6080986261367798,
0.3987393081188202,
0.268526554107666,
0.03298328071832657,
0.017628157511353493,
-0.05034759268164635,
-0.3588275909423828,
-0.6203406453132629,
-0.18472927808761597,
0.5150521993637085,
-0.1390463262796402,
0.04546090587973595,... | |
Thanks for posting the Info.plist. This clears up some things.
Let's start with the line:
```
<string>Default@2x.png</string>
```
Do you see that, inside your icon files setting, this is telling iOS to use your launch image as an icon? I'm guessing this was a typo, but I want to make sure you aren't confusing what ... | [
0.3574028015136719,
0.02672366239130497,
0.19900082051753998,
0.10509631037712097,
-0.012258479371666908,
0.04101618751883507,
0.009892613627016544,
0.5351978540420532,
-0.37704604864120483,
-0.3546943962574005,
0.07041950523853302,
0.395355224609375,
-0.4609634280204773,
-0.22991506755352... | |
Let's say I have the following code in Google App Engine:
```
from urllib import urlopen
...
data1 = urlopen(url2).read()
data2 = urlopen(url2).read()
...
```
To improve the latency, I would like to run these two requests to external URLs asynchronously. How can I do that? I know how to do it in normal Python using ... | [
0.07933005690574646,
0.3041623830795288,
0.44930848479270935,
-0.054936688393354416,
-0.15043525397777557,
0.1494244933128357,
0.20546136796474457,
-0.11737655103206635,
-0.2785995900630951,
-0.7386220693588257,
-0.08639306575059891,
0.7132689952850342,
-0.42307960987091064,
0.129570707678... | |
I have the following query:
```
var req= (from tl in resultlist
where (tl.Message.StartsWith("Do not return") && tl.Type == "Int") &&
(tl.Note.StartsWith("Do no return") && tl.Type == "Ext") | [
-0.21399621665477753,
0.018557965755462646,
0.621303379535675,
-0.3418380916118622,
0.0225179772824049,
0.03021392971277237,
0.33941590785980225,
-0.3239688575267792,
0.15294577181339264,
-0.5440253019332886,
-0.14358913898468018,
0.4565235674381256,
-0.28977927565574646,
0.352345466613769... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.