text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
if ('rgb(' + colour[0] + ', ' + colour[1] + ', ' + colour[2] + ')' == _roundedCornersColour) { setPixel(cornersImgData, x, y, colour[0], colour[1], colour[2], 0); } } }
[ -0.3093576431274414, -0.06759703904390335, 0.5086650848388672, -0.19863596558570862, 0.0364544540643692, 0.48044341802597046, -0.024407098069787025, -0.31451499462127686, -0.28118735551834106, -0.5521891117095947, -0.33901453018188477, 0.4372321665287018, -0.2909749150276184, 0.05561544001...
} ``` This works but because I am replacing every instance of \_roundedCornersColour I sometimes end up replacing a few pixels within the image itself. My high school maths is a little rusty and I can't figure out the best way to determine if x and y fall outside of where the corner should be. Can anyone help please?...
[ 0.42466095089912415, 0.21675913035869598, 0.2537374794483185, -0.0035057261120527983, -0.0782492458820343, 0.00762370228767395, 0.20581428706645966, 0.29809439182281494, -0.045869629830121994, -0.6421385407447815, 0.25782471895217896, 0.7523035407066345, -0.15363945066928864, 0.04716207087...
I have this simple XML file : ``` <?xml version="1.0" encoding="utf-8" ?> <Artists> <artist artistId="1"> <name>ManyBass</name> <genre>Electronic</genre> <album>Fireblue</album> <player> <song path="Fireblue.mp3"/> <song path="Porthole.mp3"/> </player> </artist> </Artists> ``` I want to retrieve all son...
[ 0.21341891586780548, 0.12422589957714081, 0.7438068985939026, 0.07948091626167297, 0.09089087694883347, -0.19523805379867554, 0.14326462149620056, -0.8026758432388306, -0.22723159193992615, -0.4995711147785187, 0.01099354773759842, 0.6080675721168518, 0.03921021521091461, 0.319673091173172...
approach would have you bind your ListBox directly to your XML document so that you don't have to set the contents of the ListBox in the back code. XAML: ``` <Grid> <Grid.DataContext> <XmlDataProvider Source="Artists.xml" XPath="/Artists/artist"/> </Grid.DataContext> <ListBox ItemsSource="{Binding...
[ 0.008932479657232761, -0.3235524594783783, 0.43991684913635254, -0.06008828803896904, -0.03320491313934326, 0.04314447194337845, -0.30467647314071655, -0.7342851758003235, -0.37170615792274475, -0.8242185711860657, -0.06471484154462814, 0.40038949251174927, -0.3255448639392853, -0.24497079...
<TextBlock Text="{Binding XPath=./name}" DockPanel.Dock="Left"/> <ListBox ItemsSource="{Binding XPath=./player/song}" DockPanel.Dock="Right"> <ListBox.ItemTemplate> <DataTemplate>
[ -0.2843342423439026, 0.10634580254554749, 0.6024603247642517, -0.2646457850933075, -0.04021316021680832, 0.45037075877189636, -0.08717451989650726, -0.507909893989563, -0.5497822761535645, -0.4945872724056244, -0.18829019367694855, 0.48417025804519653, -0.061777859926223755, 0.076683156192...
<TextBlock Text="{Binding XPath=@path}"/> </DataTemplate> </ListBox.ItemTemplate> </ListBox>
[ -0.0016126011032611132, -0.1190500557422638, 0.5482465624809265, 0.0023798083420842886, -0.40208256244659424, 0.18423967063426971, 0.06548161059617996, -0.7048800587654114, -0.2978963255882263, -0.6209259629249573, -0.1755760759115219, 0.16557885706424713, -0.3718373775482178, -0.077360659...
</DockPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Grid> ```
[ 0.2818334698677063, -0.1409836709499359, 0.38502687215805054, -0.07618829607963562, -0.0026006607804447412, 0.4793331027030945, -0.4745197594165802, -0.2510187029838562, -0.6206281185150146, -0.936551034450531, -0.16211487352848053, 0.3634852468967438, -0.07552925497293472, 0.0939388498663...
I just recently found myself writing this line of code, which i did not like too much: ``` if ('upload' in request.POST) or ('delete' in request.POST): ``` I allready thought about list comprehension, which would look like this: ``` if [value for value in ['upload','delete'] if value in request.POST]: ``` Which i...
[ -0.06301182508468628, -0.03919673711061478, 0.2520540654659271, -0.06910824030637741, -0.15204311907291412, -0.16940829157829285, 0.3358873426914215, -0.10889016836881638, -0.22541934251785278, -0.9112178087234497, 0.0021582788322120905, 0.5317612290382385, -0.5707689523696899, -0.14817425...
I have a question about my C++ homework. I am just confused about \*this. The code below is what I have. My question is why the condition in the if statement in the = operator is true? ``` #include <cstring> class abc { char p[9]; int inc; public: abc( ) { inc = 8; strcpy(p, "10010101"); } ...
[ 0.3403536081314087, 0.25331056118011475, 0.21360886096954346, -0.2951371371746063, 0.25836870074272156, -0.043463334441185, 0.4296905994415283, -0.3945236802101135, 0.16904626786708832, -0.3429705798625946, -0.3389021158218384, 0.49323147535324097, -0.48188576102256775, -0.0664025619626045...
why this condition is true? inc = c.inc - 2; for(int i=0; i<inc; i++) { p[i] = c.p[i] + 2; } } return *this; } int main( ) { abc x, y; x = y; return 0; } ``` because you don't want to make a copy if you are assigning to yourself, that is the reason for the `if` condition, `*this...
[ 0.3177203834056854, 0.1874074637889862, 0.17823150753974915, -0.13740836083889008, 0.39405885338783264, -0.17073851823806763, 0.4188123941421509, -0.22166472673416138, 0.045710619539022446, -0.21272903680801392, -0.1923104226589203, 0.46468621492385864, -0.7347334027290344, 0.4697082042694...
x` and as they are both different instances you then make a `copy` of `y to x`.
[ 0.24764031171798706, 0.2969185411930084, 0.3317888379096985, -0.08963262289762497, -0.04477960243821144, 0.03600006923079491, 0.09293420612812042, 0.10602834075689316, 0.31049808859825134, -0.6956093907356262, -0.199419304728508, 0.38874512910842896, -0.31247571110725403, 0.421917140483856...
What is the most efficient to share data between multiple cores. Sure you can use shared memory but that also comes at a cost. Say one core is continously writing to a variable and the other core has to continuously read from it. With the MESI cache coherence protocol, the writing core will cause the reading core to in...
[ 0.030622262507677078, 0.0027316506020724773, -0.2291342169046402, 0.4163685739040375, 0.11352831870317459, 0.13475975394248962, 0.04777007922530174, 0.13278983533382416, -0.2334938645362854, -0.6854349970817566, 0.22440427541732788, 0.305563360452652, -0.38388124108314514, 0.15049743652343...
writes to memory location. Invalidates Core B's copy. * Core B grabs the data from memory or from Core A's cache. Either way, the data must be sent from Core A to Core B. Cache coherency in modern processors will sometimes support direct cache-to-cache transfer without going all the way to memory. --- What you want ...
[ -0.11862088739871979, 0.1737024486064911, 0.04443525895476341, 0.15322786569595337, 0.09718634188175201, -0.0019584817346185446, 0.28208205103874207, -0.06648582965135574, -0.22453872859477997, -0.5750699043273926, -0.3795655071735382, 0.06745314598083496, -0.36612167954444885, 0.406586498...
I need a definition for a macro-like string in php which would literally be interpreted as this string, but I need is to refer to the line and file where the string is placed rather than my defs.php file... ``` define ("REDIRECT_FROM"," (".`____FILE____`." line:".`____LINE____`.")"); redirectTo("login.php",REDIRECT_F...
[ 0.2133585810661316, -0.1282503604888916, 0.40448224544525146, -0.16793248057365417, 0.002940414473414421, -0.012585697695612907, 0.3146189749240875, -0.41969236731529236, -0.1529126763343811, -0.4504651129245758, -0.1358703225851059, 0.6831231713294983, -0.45706403255462646, 0.143189981579...
could also just build this logic into your `redirectTo()` function. An example: <http://codepad.org/CGUXWgAB>
[ 0.20248253643512726, -0.3091600835323334, 0.1407138705253601, -0.22765715420246124, 0.00848306156694889, -0.10248064249753952, 0.13768303394317627, -0.0372423380613327, -0.24601048231124878, -0.3230606019496918, -0.06415848433971405, 0.5972459316253662, -0.35945606231689453, 0.036226376891...
I'm working out of codeigniter and trying to find out how I can change the value of a session variable when the user changes a dropdown menu. ``` <select name="testselect"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option va...
[ 0.5277864336967468, 0.08173482865095139, 0.2578819692134857, 0.08589275181293488, 0.06497666984796524, 0.194080650806427, 0.11460679024457932, -0.40505221486091614, -0.22368916869163513, -0.8516348004341125, 0.04724305123090744, 0.2855583131313324, -0.17710886895656586, -0.0189562905579805...
<option value="5">5</option> </select> ``` and add this to your `$(document).ready( .. );` call to capture changes to that dropdown like so: ``` $(document).ready(function() { $('#testselect').change(function() { // POST the changed value to a method in a controller that can accept // a parameter...
[ 0.21989203989505768, -0.312175989151001, 0.6572980880737305, 0.13162513077259064, 0.5294424891471863, 0.07200820744037628, -0.06344281882047653, -0.33589309453964233, -0.2177611142396927, -0.6443791389465332, -0.36636489629745483, 0.50456702709198, -0.20059318840503693, 0.0673307552933693,...
); }); }); ```
[ -0.1459098905324936, 0.23248520493507385, 0.5144070386886597, -0.6416774392127991, 0.23260155320167542, -0.2804414927959442, 0.4657440781593323, -0.19259969890117645, 0.12047174572944641, -0.25852832198143005, -0.5495796799659729, 1.0432568788528442, -0.6035515069961548, 0.3198479115962982...
Was hoping I could get a bit of a hand on this login that I have been stuck with for past few days. Basically what it is is that the login will log in the user, but will go to the same page every time. What I want it to do is: If the user is an admin, take that person to the admin page. If user, to the userpage. I've...
[ 0.3183623254299164, 0.3728374242782593, 0.43134984374046326, -0.185369074344635, -0.012852082028985023, -0.07072895020246506, 0.20134848356246948, 0.09435050189495087, -0.04860261082649231, -0.7241461277008057, -0.0842239111661911, 0.519511878490448, -0.2880842089653015, 0.2821794152259826...
Host name $username="xxxxxxx"; // Mysql username $password="xxxxxxx"; // Mysql password $db_name="xxxxxxxx"; // Database name $tbl_name="member"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cann...
[ -0.4531346559524536, 0.20774033665657043, 0.590388298034668, -0.3199508786201477, -0.15708552300930023, 0.13974538445472717, 0.3310490846633911, -0.3435226380825043, -0.17670904099941254, -0.7373079061508179, -0.17052152752876282, 0.48375779390335083, -0.35580208897590637, 0.53470152616500...
} } else { echo "Wrong user or password"; } ?> ``` The above is the latest code I have used. Each time I log in it seems to skip the 1st header, and go straight to the second one. I've even printed out the session after I have logged in and it does take the usertype from the table. Don't have any more cl...
[ 0.11394823342561722, 0.24581614136695862, 0.4090798795223236, -0.11748654395341873, 0.1051117479801178, -0.18111459910869598, 0.47650304436683655, -0.26594218611717224, -0.051985979080200195, -0.6117807626724243, -0.04080769792199135, 0.4079503118991852, -0.3177107274532318, 0.144025489687...
$_SESSION ['username'] = $_POST ['username']; $_SESSION ['password'] = $_POST ['password']; if ($array ['usertype'] == "user") { header ( "location: userpage.php" ); } else if ($array ['usertype'] == "admin") { header ( "location: adminpage.php" ); } else { echo "Wrong user or p...
[ -0.013024603947997093, 0.15824776887893677, 0.31114381551742554, -0.26292890310287476, 0.0797848179936409, -0.06449335068464279, 0.6016939282417297, -0.38536304235458374, -0.22534888982772827, -0.3103233575820923, -0.4545465409755707, 0.5954098105430603, -0.313750296831131, 0.2044457048177...
I trying to create a MySql Query from the $\_POST values trouble is i don't want to use all the $\_POST values as some are used for other things so i am trying to compare the value names against an array to see if they are actual filed in the DB then if they are create a Query string out of the names an values this i...
[ 0.3275344967842102, 0.19867050647735596, 0.4522569477558136, -0.18749281764030457, 0.020029926672577858, 0.03900876268744469, 0.39222222566604614, -0.39249151945114136, 0.01987529546022415, -0.5476902723312378, 0.040276408195495605, 0.24487997591495514, -0.5321022272109985, 0.3786635994911...
$key) { $b++; if($i == 1) {$query[] = "$key='$entry'";} elseif($cnt == $b) {$query[] = "$key='$entry'";} else {$query[] = "$key='$entry' AND ";} $i++; } } } ``` I have gotten stuck now im not sure how to turn all the values out of the $QUERY array into a single string ie `$search = ...
[ -0.09369637817144394, 0.20163574814796448, 0.6262912750244141, -0.16348133981227875, 0.3175879120826721, 0.1096828356385231, 0.3958307206630707, 0.009889082983136177, -0.35017356276512146, -0.2573128044605255, -0.6812725067138672, -0.03345587104558945, -0.3949776887893677, 0.41417449712753...
if (isset($_POST[$v])) { $query[] = $v.' = "'.addslashes($_POST[$v]).'"'; } } $query = implode(' AND ', $query); ```
[ -0.11227788776159286, -0.026459261775016785, 0.519914984703064, -0.10995575785636902, 0.15170274674892426, 0.35199686884880066, 0.0955544114112854, 0.044447969645261765, -0.2375485748052597, -0.3411850333213806, -0.3678864538669586, 0.4252568483352661, -0.525615930557251, 0.421063154935836...
I want to read a local txt file and read the text in this file. After that i want to split this whole text into Strings like in the example below . Example : Lets say file contains- ``` abcdef ghijkl aededd ededed ededfe efefeef efefeff ...... ...... ``` ...
[ 0.6705067157745361, 0.18178999423980713, 0.1377546489238739, -0.09426801651716232, -0.23828256130218506, -0.10361702740192413, 0.13209711015224457, -0.1374695748090744, -0.13045331835746765, -0.675929605960846, -0.14143222570419312, 0.4673762023448944, -0.6939473152160645, 0.20804418623447...
in to Strings ``` s1 = abcdef+"\n"+ghijkl; s2 = aededd+"\n"+ededed; s3 = ededfe+"\n"+efefeef+"\n"+efefeff; ........................ ``` I mean I want to split text on empty line. I do know how to read a file. I want help in splitting the text in to strings you can split a string to an array by ``` String.spli...
[ -0.017996858805418015, -0.15745939314365387, 0.518380343914032, -0.3544965088367462, -0.06548461318016052, -0.0030332861933857203, 0.343014121055603, -0.28789398074150085, -0.30188751220703125, -0.5550674796104431, -0.592154324054718, 0.4224766790866852, -0.6219812035560608, -0.12238573282...
if(!str.isEmpty()) { allStrings.add(str); } str= ""; } else if(tmp==null) { break; } else { if(str.isEmpty()) { str = tmp; }
[ -0.0010733149247244, -0.10914809256792068, 0.36671584844589233, -0.38098058104515076, -0.0354975163936615, -0.01285395398736, 0.558254599571228, -0.5299533009529114, -0.4414619505405426, -0.14967632293701172, -0.622695803642273, 0.4761276841163635, -0.46147486567497253, -0.178312286734581,...
else { str += "\\n" + tmp; } } } ``` Might be what you are trying to parse. Where allStrings is a list of all of your strings.
[ 0.04546422138810158, -0.10038197785615921, 0.10712505877017975, -0.24780292809009552, -0.113834448158741, -0.2114962637424469, 0.16386498510837555, -0.12465782463550568, -0.1320495456457138, -0.40445423126220703, -0.2616918683052063, 0.39823952317237854, -0.5636806488037109, -0.17666593194...
First of all, here's the code im using. ``` <div class="wrapper"> <div id="carousel"> <ul> <ul> <li><img src="<?php bloginfo('template_directory'); ?>/images/umbrella_trials.jpg" alt="" /><a class="video" title="The Umbrella Trails" href="http://www.youtube.com/v/eiBEvtNNSxg?fs=1&amp;autoplay=1">The Umbrella Trail...
[ 0.3666994273662567, 0.1983632594347, 0.6409376263618469, -0.031500283628702164, -0.3823826014995575, -0.17435410618782043, 0.1668803095817566, -0.792286217212677, -0.5162269473075867, -0.34987232089042664, 0.5936309099197388, 0.36219173669815063, -0.363707959651947, -0.10134215652942657, ...
in the Cellar"</a></li> </ul> &nbsp; &nbsp; <ul> <li><img src="<?php bloginfo('template_directory'); ?>/images/job3a_trailer1.jpg" alt="" /><a class="video" title="Job3(a) Trailer #1" href="http://www.youtube.com/v/3pQUX6VkPTQ?fs=1&amp;autoplay=1">"Job3(a) Trailer #1"</a></li> </ul> &nbsp; &nbsp; <ul> <li><im...
[ -0.14650051295757294, 0.06492418795824051, 0.4900130033493042, -0.5037501454353333, 0.057067614048719406, 0.3141232430934906, 0.251691997051239, -0.23537075519561768, -0.21177799999713898, -0.2078218311071396, -0.1007009893655777, 0.17714492976665497, -0.05945717543363571, 0.39303755760192...
euismod. Donec sed odio dui. <a class="btn" href="#">View details »</a> </div> <div class="span3"> <h2 class="heading">Heading</h2> Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesu...
[ 0.25156405568122864, -0.21533158421516418, 0.7054494023323059, 0.0074319723062217236, 0.26784488558769226, 0.21467708051204681, 0.4619406461715698, -0.3172898292541504, 0.021276401355862617, -0.7537142634391785, -0.23118960857391357, 0.47718390822410583, -0.2949303388595581, -0.66279762983...
I paste it into a Wordpress theme im trying to build from it however. It wont work.. I even tried pasting the code directly into my `page.php` file and while it does work. It's not what I want as it needs to have it's content accessed easily. I'wordpresve tried installing the Raw-HTML add-on and it makes no differenc...
[ 0.569715142250061, -0.03869505971670151, 0.7582970261573792, -0.01862218603491783, -0.15244485437870026, -0.0756191536784172, 0.2916852831840515, 0.09348821640014648, -0.3199048340320587, -0.6545833349227905, -0.1556076854467392, 0.28971752524375916, -0.5992775559425354, 0.2504462897777557...
FileReader("foo.txt")); List<String> allStrings = new ArrayList<String>(); String str =""; while(true) { String tmp = in.readLine(); if(tmp.isEmpty()) { if(!str.isEmpty()) { allStrings.add(str); } str= ""; } else if(tmp==null) { break; } else ...
[ 0.09612987190485, -0.22881674766540527, 0.7333499789237976, -0.4955328106880188, 0.25238656997680664, -0.003979742527008057, 0.4823773205280304, -0.5393985509872437, -0.4573424756526947, -0.2460702359676361, -0.6590774655342102, 0.7219110727310181, -0.5285853147506714, 0.023091675713658333...
{ str = tmp; } else { str += "\\n" + tmp; } } } ``` Might be what you are trying to parse. Where allStrings is a list of all of your strings.
[ -0.08508948981761932, -0.16003456711769104, 0.20348761975765228, -0.2797909080982208, -0.19693692028522491, -0.09909415990114212, 0.24479523301124573, -0.21985846757888794, -0.2948952913284302, -0.3881043493747711, -0.21187958121299744, 0.3653213679790497, -0.5768449306488037, -0.163855925...
I have two textboxes for entering the name and price of an item, a submit button under it, and a bulleted list under that that shows the current items. On clicking the submit button the new item should be entered in the list of items and the bulleted list refreshed with the new items. What happens though is that if I ...
[ 0.19364804029464722, -0.1239134669303894, 0.6089233756065369, 0.39281126856803894, -0.10856499522924423, 0.3653511106967926, 0.0237444955855608, -0.15042346715927124, -0.13779614865779877, -0.7365775108337402, 0.27387577295303345, 0.6029426455497742, -0.018518757075071335, 0.32788753509521...
and what am i doing wrong? Here is my code. ``` protected override void OnInit(EventArgs e) { base.OnInit(e); List<Product> Products = (List<Product>)Session["Products"]; foreach (Product p in Products) { ListItem productname = new ListItem(); productname.Text = p.name; blProd...
[ 0.24335244297981262, 0.17143167555332184, 0.5222743153572083, -0.17978578805923462, 0.17443522810935974, 0.172380268573761, 0.16325895488262177, -0.37806203961372375, -0.11685428768396378, -0.33114346861839294, -0.27112099528312683, 0.5386055707931519, -0.17239217460155487, 0.2908262610435...
price = decimal.Parse(txtPrice.Text); Product p = new Product(name, price); Products.Add(p); Session["Products"] = Products; } ``` you can split a string to an array by ``` String.split(); ``` if you want it by new lines it will be ``` String.split("\\n\\n"); ``` **UPDATE\*** If I understand what y...
[ 0.4677932858467102, -0.2537407875061035, 0.5778043270111084, -0.37667566537857056, 0.14683638513088226, 0.3168998658657074, -0.15884101390838623, -0.5293117165565491, -0.16640444099903107, -0.29917967319488525, -0.5305203199386597, 0.7230443954467773, -0.3445810079574585, 0.095552399754524...
allStrings.add(str); } str= ""; } else if(tmp==null) { break; } else { if(str.isEmpty()) { str = tmp; } else {
[ -0.02729981020092964, -0.13649225234985352, 0.3908790647983551, -0.3906984329223633, -0.08334865421056747, 0.020381325855851173, 0.5510886311531067, -0.5516319870948792, -0.5006130933761597, -0.16067089140415192, -0.5063337087631226, 0.4729671776294708, -0.4734863042831421, -0.182011097669...
str += "\\n" + tmp; } } } ``` Might be what you are trying to parse. Where allStrings is a list of all of your strings.
[ -0.06471334397792816, -0.0590224526822567, 0.17732493579387665, -0.3064442276954651, -0.1834280639886856, -0.08634922653436661, 0.16082441806793213, -0.19402854144573212, -0.20825645327568054, -0.37339675426483154, -0.1986965388059616, 0.28423991799354553, -0.6317558884620667, -0.092014528...
I want to design a protocol between several components I have. each can run in separate process on a different host. There is always an initiator (client) and someone who respond (server). the client might be in several languages java/c#/c++/cli. The server in my case is always in java. So I thought about the follow...
[ 0.30577352643013, -0.011089920066297054, 0.22914756834506989, 0.1090618446469307, -0.2824852466583252, -0.18604351580142975, 0.2884010076522827, 0.006788938771933317, -0.13263888657093048, -0.8379072546958923, -0.09483623504638672, 0.4094686210155487, -0.21016770601272583, 0.17409245669841...
much for my needs). I thought using http over tcp. I am interested mostly in the syntax and if there are frameworks in java which already provides such capabilities. I remember vaguely that there is something like that in `Spring`. **EDIT**: I prefer a thin framework, and also I am afraid that changing method sign...
[ 0.41268670558929443, 0.059856515377759933, 0.39214199781417847, 0.015833523124456406, -0.18204516172409058, -0.013187697157263756, 0.15021975338459015, -0.3482435345649719, -0.24162288010120392, -0.8099523186683655, -0.07101765275001526, 0.5545285940170288, -0.01874985545873642, -0.0473978...
also be suggested, but SOAP is its successor so I'd recommend against using XML-RPC.
[ 0.4785993993282318, -0.13075090944766998, 0.07896392047405243, 0.21699069440364838, -0.4379217028617859, -0.41883641481399536, -0.20276232063770294, 0.09252151846885681, 0.032765697687864304, -0.4238642156124115, 0.013511528261005878, 0.49247869849205017, -0.20205916464328766, -0.030199624...
**Issue** I'm receiving the same error (500 Internal Server error) for all AJAX calls on a site I'm developing on my localhost (WAMP). I'm beginning to think that it might be the way my server is set up. Maybe I'm missing a PHP extension or something? Any help would be much appreciated. **Testing** I know the code w...
[ 0.4033645987510681, 0.2409079223871231, 0.4124801754951477, -0.06046475097537041, -0.17260533571243286, -0.1817062646150589, 0.667041540145874, -0.021407127380371094, -0.38311612606048584, -0.8297384977340698, 0.08275650441646576, 0.6257078051567078, 0.01208533439785242, -0.118593379855155...
url: '/cms/performances/deleteperformance', data: 'id=' + id, dataType: 'json', success: function(result) { switch(result) { case 1:
[ -0.014311980456113815, -0.42472419142723083, 0.48143550753593445, 0.14748325943946838, 0.0799141526222229, 0.004364169202744961, 0.13978946208953857, -0.27131539583206177, -0.1326514631509781, -0.30160433053970337, -0.24310731887817383, 0.6204609274864197, 0.0051216017454862595, 0.18407645...
//Refresh the page location.reload(); break; case 0: alert('error');
[ -0.4307379126548767, -0.024931887164711952, 0.2259114384651184, -0.32012632489204407, 0.41241177916526794, -0.0008705332293175161, 0.39450380206108093, 0.3526355028152466, -0.1169344112277031, -0.5997660756111145, -0.8875197768211365, 0.3305010497570038, -0.2317773401737213, 0.038246065378...
break; case 2: alert('Incorrect call'); break; default: alert('default');
[ -0.3341721296310425, -0.33413058519363403, 0.01707541011273861, -0.4015527665615082, 0.48380061984062195, -0.09658180177211761, 0.30467894673347473, -0.02940632961690426, -0.19994281232357025, -0.0778602808713913, -1.0739591121673584, 0.6232344508171082, -0.4247819483280182, -0.01158943120...
break; } }, error: function(xhr, ajaxOptions, thrownError) { var httpCode = xhr.status; alert(httpCode + ': ' + thrownError); }
[ 0.031952209770679474, -0.1549801081418991, -0.01244669035077095, -0.10310967266559601, 0.06188648194074631, -0.021379666402935982, 0.6061730980873108, -0.04692181572318077, -0.20913144946098328, -0.38269153237342834, -0.5315530300140381, 0.261962354183197, -0.370705783367157, -0.2271420657...
}); ``` **PHP** ``` public function deleteperformanceAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); echo json_encode(1); } ``` I've finally got to the bottom of this. In fact there was nothing wrong with the code. However, I did have a plugin that ...
[ 0.2791523039340973, 0.12405912578105927, 0.506876528263092, -0.14145630598068237, 0.17430676519870758, -0.21230553090572357, 0.6763709783554077, -0.2266979217529297, -0.12841887772083282, -0.5740278363227844, -0.011613113805651665, 0.6851232051849365, -0.16938933730125427, 0.34461635351181...
im currently reading a book about programming Android and there is a nice little reference guide on Java in the beginning chapters. However, I stumpled upon something about implicit parameters that I did not quite understand. He defines the class **Car**: ``` public class Car { public void drive() { System.out....
[ 0.6004313826560974, -0.08647208660840988, 0.5978785753250122, 0.16494044661521912, 0.1885567456483841, 0.11750064045190811, 0.004990444518625736, -0.17671892046928406, -0.07124442607164383, -0.1910003125667572, -0.06232767552137375, 0.8746932148933411, 0.011491303332149982, 0.3074877560138...
subclass of Car, but nevermind this. whatsInTheGarage().drive(); // This is the core of the question. } } ``` I just want to know how we can call drive() from the class **Car** when **JoyRide** is not an extension of **Car**. Is it because the method whatsInTheGarage() is of return type **Car**, and thus it "some...
[ 0.15560856461524963, -0.06497517228126526, 0.4272419214248657, 0.07769565284252167, -0.0745861828327179, -0.015286057256162167, 0.00276213139295578, -0.2618614733219147, -0.11161074042320251, -0.1988031417131424, -0.10034969449043274, 0.7382708191871643, 0.13212019205093384, 0.290456593036...
and call its method new Car().drive() //call a method on just created object public Car makeCar() { return new Car(); } Car newCar = makeCar(); //create Car in a different method, return reference to it newCar.drive(); makeCar().drive(); //similar to your case ```
[ 0.46089473366737366, -0.10656468570232391, 0.3148747682571411, 0.005275632254779339, 0.07151513546705246, 0.37020576000213623, -0.11802319437265396, -0.4709462821483612, -0.30480366945266724, -0.3605852425098419, -0.03675189986824989, 0.6094474196434021, -0.12119241803884506, 0.60698169469...
I am trying to activate the click event of an element within an iFrame (a standard twitter follow button) when clicking on an element within my main page. Here's the code I'm trying to use which does not work... ``` $(".twit-test").click( function() { $('.twitter-follow-button').contents().find('#follow-button')....
[ 0.2811913788318634, 0.15411999821662903, 0.3183369040489197, -0.2941187918186188, 0.09046205133199692, -0.0744583010673523, 0.5989692807197571, 0.04596356675028801, 0.09795065969228745, -0.5574893951416016, 0.03367079421877861, 0.29848307371139526, -0.5716465711593628, 0.1301894336938858, ...
This should be easy but it's not working properly... I am quite rusty on javascript and can't figure out what it is I am missing. I have a navbar that I'd like to disappear when person clicks on small arrow, leaving just a 2nd arrow. When user clicks on 2nd arrow, nav bar reappears. All of the navbar is in one tag. Th...
[ -0.13987474143505096, 0.06664615124464035, 0.5141317844390869, -0.3052462339401245, -0.25296828150749207, 0.11175557971000671, 0.46291735768318176, -0.4155246615409851, -0.2421269714832306, -0.6479741334915161, -0.12470479309558868, 0.3512818515300751, -0.4974866509437561, 0.11908720433712...
onclick="collapseMenu('navbar');"><img src="arrow.gif"></a> </td> </div> ``` Placing id in the div tag, it shows the arrow when you click on the link but doesn't remove the old html between the div tags. Same thing using span instead of div and no difference between single and double quotes. When I move the id="navba...
[ 0.09994765371084213, -0.09158975630998611, 0.5768150091171265, 0.03381013125181198, -0.14054211974143982, -0.03107922524213791, 0.32937926054000854, -0.37055325508117676, -0.18442575633525848, -0.6747254729270935, -0.09265915304422379, 0.4103151559829712, -0.30989816784858704, 0.0736663192...
space. 2nd question is how to specify innerHTM in text through a variable. It would be nice not to have to put this all in function in header. Thanks for any ideas! You've hidden the function name by doing `reachable = graph[node]`. Use a different name.
[ 0.0006805884768255055, -0.08466693758964539, 0.24422162771224976, 0.29474738240242004, -0.1904793083667755, -0.28386858105659485, 0.25029462575912476, 0.2996143698692322, -0.29914590716362, -0.7302863001823425, -0.005043219309300184, 0.4328175187110901, -0.21530915796756744, -0.02988018654...
XML response ``` <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <Film> <film_id>1</film_id> <title>ACADEMY DINOSAUR</title> <description>xxx</description> <length>86</length> <image_id>1</image_id> - <image> <image_id>1</image_id> <name>1.jpg</name> <size>408307</size> <...
[ 0.2338154911994934, 0.03695002198219299, 0.27486470341682434, 0.13642001152038574, -0.49117720127105713, 0.10451985895633698, -0.3382391929626465, -0.6959041953086853, -0.23671317100524902, -0.2851668894290924, -0.3886607587337494, 0.7116808891296387, -0.10362415760755539, -0.0595946684479...
image; //setter and getter methods } ``` Image.java ``` public class Image { private int image_id; private String name; private int size; private String type; private byte[] content; //setter and getter methods } ``` Please help I am new to this and I should use JAXB. **SOLUTION:** I have add...
[ 0.4513886570930481, 0.1254088133573532, 0.6394239664077759, 0.11423749476671219, -0.06488756835460663, 0.07593607157468796, -0.1575058549642563, -0.4464864432811737, -0.2669478952884674, -0.645319402217865, -0.2656365931034088, 0.9055494666099548, -0.42062318325042725, 0.2378813475370407, ...
I have added @XMLElement(name="image"). On Image class I have added an annotation @XmlRootElement(name = "image"), which gives me what I wanted. The only thing required to get your use case to work is to add an `@XmlRootElement` annotation on the `Film` class: ``` import javax.xml.bind.annotation.XmlRootElement; @Xm...
[ 0.4844122529029846, -0.05490637570619583, 0.7366694808006287, 0.11553676426410675, -0.045543231070041656, 0.11582585424184799, -0.3727414309978485, -0.6266436576843262, -0.2900010347366333, -0.47397664189338684, -0.059252817183732986, 0.7339269518852234, -0.23990888893604279, 0.12629900872...
I have added an annotation @XmlRootElement(name = > "image"), which gives me what I wanted. Neither of these steps are required to map your particular use case.
[ 0.1496892124414444, -0.09994612634181976, 0.4245572090148926, 0.04431789740920067, -0.0012465983163565397, -0.10022023320198059, -0.3039165139198303, -0.1675512194633484, -0.23230761289596558, -0.6363369226455688, -0.06410408020019531, 0.2752194404602051, -0.12896417081356049, -0.050428286...
I have a textured object in my OpenGL ES scene (version 1.1) for which I want to change the alpha to 0.5. I am trying the following code : ``` glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_NORMAL_ARRAY); glEnableClientState(GL_TEXTURE_COORD_ARRAY); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MOD...
[ -0.12129566818475723, -0.20475275814533234, 1.1747392416000366, -0.04712739959359169, -0.34052813053131104, 0.2414703220129013, 0.2564440667629242, -0.10540469735860825, -0.00017524596478324383, -0.9490342736244202, -0.1987682729959488, 0.6424737572669983, -0.21377049386501312, 0.188460811...
anyone spot how I can correct this ? Thank you. Ah think I've solved it - you need to turn off the lighting and then it seems to work. glDisable(GL\_LIGHTING);
[ 0.37293410301208496, -0.011897530406713486, 0.7907713055610657, 0.01649835892021656, -0.09581729769706726, -0.2853471338748932, 0.25425395369529724, 0.3371296226978302, -0.10043203830718994, -0.7004553079605103, -0.15568873286247253, 0.6754736304283142, -0.3804519474506378, -0.081933721899...
I am bigginer to php and i was trying to implement Model-View-Controller in php i updated allow override to all and created a .htacess file and wrote the following quotes in it, ``` RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ...
[ -0.18038372695446014, 0.100345179438591, 0.8686817288398743, -0.1944274753332138, -0.20254726707935333, -0.0786314532160759, 0.7317026853561401, -0.024491548538208008, -0.28437134623527527, -0.37682434916496277, -0.09875902533531189, 0.3406466841697693, -0.4551836848258972, 0.1990911960601...
file i watched a video on youtube it was working fine in his computer but not on mine, he told i should modify something in php.ini but i don't know whats that, if i write the following in .htacess: ``` ErrorDocument 404 /404.php ErrorDocument 500 /500.php ``` and goto url that dont exists, then it is controlled by ...
[ 0.4031299948692322, 0.17042405903339386, 0.37886953353881836, 0.135406494140625, 0.09546024352312088, -0.37242555618286133, 0.6694499254226685, -0.10725726187229156, -0.0008128628833219409, -0.5943863391876221, -0.018086671829223633, 0.8576986193656921, -0.17325051128864288, -0.02513863705...
You can enable it in httpd.conf file in your installation dir. If you are using windows just uncomment the rewrite module line and restart your apache. You can google "enable apache rewrite" for more information.
[ 0.3445339798927307, -0.15634293854236603, 0.3589416742324829, -0.01463659293949604, -0.04676513746380806, -0.5127625465393066, 0.7276864647865295, -0.16135229170322418, -0.007549314759671688, -0.9319977760314941, -0.4034636616706848, 0.7991493344306946, -0.2508619725704193, -0.018437597900...
I'm trying to use CKeditor as part of a CMS but I'm not "that" good with JavaScript and there documentation does not help much. rather confusing could some one show me how I would change the link plugin dialog so that it shows a drop down of values and builds a URL from them, but I don't under stand how there dialog s...
[ 0.481395423412323, 0.24474908411502838, 0.08171026408672333, 0.37790265679359436, -0.11128471791744232, -0.1266574263572693, 0.06180655211210251, 0.2760104537010193, -0.01789502613246441, -0.6164491176605225, 0.45960018038749695, 0.28144580125808716, -0.08362236618995667, 0.531154870986938...
the code i would need to add a Dropdown (select) to the dialog that has the options that then writes the value into the url Field E.G My Server System has the URL /content/getLinks/ and this will return the CMS Pages like so, ``` [ {"page_name":"Contact Us","url":"Contact_Us","page_id":"1"}, {"page_name":"Welcome t...
[ 0.26414018869400024, 0.02659827470779419, 0.9712369441986084, 0.12611021101474762, 0.17056246101856232, -0.18987677991390228, -0.14613501727581024, -0.23784099519252777, 0.13965803384780884, -0.4017955958843231, -0.2587678134441376, 0.7708226442337036, -0.07359142601490021, -0.243323087692...
value="Lost_Efftect:1">Lost Efftect</option> </select> ``` Then when one is selected I want the URL field to be changed E.G if the first was option selected the url would be ``` /content/load/pid/1/url/Contact_Us ``` I'm aware that i will need to copy the sources version of the plugin dialog over the standard one ...
[ 0.08695679157972336, 0.08502207696437836, 0.7199209928512573, -0.06247304379940033, 0.23589929938316345, 0.033799510449171066, -0.009070388041436672, -0.17785845696926117, -0.1004800796508789, -0.8212992548942566, -0.06753033399581909, 0.4959002435207367, -0.35305216908454895, 0.2315065860...
(function($){ $.ajax({ url: "/content/getLinks/", dataType: 'json', data: "", success: function(data){ $.each(data, function(key, val){
[ -0.12886469066143036, -0.22184020280838013, 0.38296759128570557, 0.037870343774557114, 0.1614428609609604, -0.109024278819561, 0.30822715163230896, -0.20286549627780914, 0.011034197174012661, -0.5077565908432007, -0.4356202185153961, 0.6905120611190796, -0.16966325044631958, -0.07262704521...
$("#cms_links").append( "<option value='"+val.url+":"+val.page_id+"'>"+val.page_name+"</option>" ); }); }
[ -0.32627779245376587, 0.07279682904481888, 0.6009172797203064, -0.29974156618118286, 0.0594220794737339, 0.26053136587142944, 0.26823845505714417, -0.11142096668481827, -0.036132968962192535, -0.6354489922523499, -0.6201707720756531, 0.6538887023925781, -0.4586150348186493, 0.2048907428979...
}); })(jQuery); } }, ``` but there is not even a select box drawn for the code that i have added so i'm still at a loss To do this you have to have the de-minimized version of the code this is in the \_sources at path `_sources/plugins/link/dialogs/link.js` copy this over top of the minimized code at `plu...
[ -0.257904052734375, -0.014596492983400822, 0.5471468567848206, 0.03437749296426773, 0.19018107652664185, -0.03897390887141228, 0.11472611874341965, -0.06358242779970169, -0.2772711515426636, -0.875523030757904, -0.16747848689556122, 0.22900712490081787, -0.4221164584159851, 0.0694707334041...
items:[], onLoad : function(){ (function($){ var cms_pageSelectElement; var protocolSelectElement; var urlSelectElement; $.ajax({ url: "/content/getLinks/", dataType: 'json',
[ 0.15022608637809753, -0.08861476927995682, 0.7280296683311462, 0.05325106158852577, -0.004484700970351696, -0.024854961782693863, 0.2977519929409027, -0.10921940207481384, -0.4867614209651947, -0.6784898042678833, -0.4881832003593445, 0.42139771580696106, -0.22623319923877716, 0.4415386021...
success: function(data){ $("label").each(function(){ var value = $(this).html(); if(value == "CMS Page"){
[ -0.15041594207286835, 0.05667712166905403, 0.8596188426017761, 0.05650058388710022, 0.03945406153798103, 0.0416436642408371, 0.38867735862731934, -0.3663593530654907, -0.2997185289859772, -0.4178082346916199, -0.39959827065467834, 0.5323181748390198, -0.080577053129673, -0.1729442179203033...
cms_pageSelectElement = $(".cke_dialog_ui_input_select", $(this).parent()); console.log(cms_pageSelectElement); } if(value == "Protocol"){ protocolSelectElement = $(".cke_dialog_ui_input_select", $(this).parent());
[ -0.2299141138792038, 0.20843252539634705, 0.8390042781829834, -0.03794991225004196, 0.1204511895775795, 0.11395691335201263, 0.06695205718278885, -0.11056312918663025, -0.09520713984966278, -0.8423859477043152, -0.4824216365814209, 0.17207518219947815, -0.32515400648117065, 0.2732122540473...
console.log(protocolSelectElement); } if(value == "URL"){ urlSelectElement = $(".cke_dialog_ui_input_text", $(this).parent());
[ -0.05889153853058815, -0.0072794463485479355, 0.7894283533096313, 0.0292380191385746, 0.4508652985095978, -0.176495760679245, 0.16686400771141052, -0.0819922611117363, 0.2447935789823532, -0.6943645477294922, -0.36101284623146057, 0.39976567029953003, -0.29341521859169006, 0.59825021028518...
console.log(urlSelectElement); } }); $(cms_pageSelectElement).append("<option selected='selected'><none CMS link></option>"); for(var key in data){
[ -0.5533028841018677, -0.14707697927951813, 0.7414897680282593, 0.019906241446733475, 0.3926672339439392, 0.29761895537376404, 0.03520139306783676, -0.18409381806850433, -0.019512217491865158, -0.6853927969932556, -0.44740673899650574, 0.4452773928642273, -0.35503849387168884, 0.47219577431...
var val = data[key]; $(cms_pageSelectElement).append( "<option value='"+val.url+":"+val.page_id+"'>"+val.page_name+"</option>" ); }
[ -0.39687520265579224, -0.11904577910900116, 0.6765439510345459, -0.1799267828464508, 0.02054818905889988, 0.5078485012054443, 0.1631026417016983, -0.16824662685394287, -0.16013337671756744, -0.6838250160217285, -0.6216241121292114, 0.6293635964393616, -0.3351721167564392, 0.096404545009136...
$(cms_pageSelectElement).change(function(){ var val = $(this).val(); var parts = val.split(":"); var url = "content/load/pid/"+parts[1]+"/url/"+parts[0];
[ -0.03153026103973389, -0.2367180436849594, 0.9381076097488403, -0.09182984381914139, 0.007248975802212954, 0.2902207672595978, 0.11198418587446213, -0.27505892515182495, -0.21347881853580475, -0.4755483865737915, -0.5891507863998413, 0.30017757415771484, -0.2923520803451538, 0.423855602741...
$(urlSelectElement).val(url); }); } }); })(jQuery); } }, ``` you have to exploit the system slightly to update the other elements when using jQuery as there are no values you can set that are then set on to the HTML elements so you have to hack around by selectin...
[ 0.37576672434806824, -0.14832530915737152, 0.59800785779953, 0.043256547302007675, -0.020706836134195328, -0.2525699734687805, 0.6853521466255188, 0.06710704416036606, -0.044273462146520615, -0.730980634689331, -0.27122029662132263, 0.5434330105781555, -0.2901533246040344, 0.36085858941078...
input from the parent of the label
[ 0.16971687972545624, -0.06380055844783783, 0.1733136773109436, 0.027627578005194664, -0.01666114293038845, -0.16790704429149628, -0.4185021221637726, -0.1348828822374344, 0.09436920285224915, -0.45643898844718933, -0.24497850239276886, 0.43135154247283936, 0.09145710617303848, 0.1861035376...
I have an application listening at port 27015. I want to allow all ips with client port 27005 and drop the rest. How do I go about this ? You need to escape `^`, like this: `useDelimiter("&|=|~|\\^")`. That's because `^` is a meta-character in regular expressions, and the `String` parameter of `useDelimiter()` ends up ...
[ -0.07442040741443634, 0.15161000192165375, 0.44412994384765625, -0.11111333966255188, 0.14816977083683014, -0.08215779066085815, 0.4193951487541199, -0.08820382505655289, -0.09193067252635956, -0.5400370359420776, -0.13986878097057343, 0.5793058276176453, -0.42084193229675293, 0.0974763557...
I have a numeric vector in R, which consists of both negative and positive numbers. I want to separate the numbers in the list based on sign (ignoring zero for now), into two seperate lists: * a new vector containing only the negative numbers * another vector containing only the positive numbers The documentation sho...
[ -0.07307205349206924, 0.08717646449804306, 0.09262747317552567, -0.010982902720570564, -0.3177470266819, 0.4668099582195282, 0.05492165684700012, -0.6541585922241211, -0.16679184138774872, -0.4897977411746979, 0.321114182472229, 0.35227689146995544, -0.2565235495567322, 0.2009665071964264,...
!is.nan(d)] ``` If you want exclude both NA and NaN, is.na() returns true for both: ``` d <- c(1, -1, 3, -2, 0, NaN, NA) positives <- d[d>0 & !is.na(d)] negatives <- d[d<0 & !is.na(d)] ```
[ -0.11095040291547775, 0.3547806739807129, -0.10362926125526428, -0.28727710247039795, -0.16044558584690094, 0.24432381987571716, 0.37426039576530457, -0.4470466375350952, -0.11363106966018677, -0.1517314463853836, -0.3291211426258087, 0.26209020614624023, -0.1711311936378479, 0.09196756035...
I'm getting "Permission Denied" all the time when I'm trying to fetch my location with this code: ``` function initialize() { $('.map-fullsize').hide(); $('#weather-map').hide(); $('#weather-data').hide(); if(geo_position_js.init()) { var waiting_time = $('#getting-position').html('Försöker at...
[ -0.22562430799007416, -0.014017532579600811, 0.8477727174758911, -0.22972142696380615, 0.09430401027202606, 0.23783563077449799, 0.8640248775482178, -0.1854557991027832, -0.25833407044410706, -0.22416533529758453, -0.2360498011112213, 0.18496106564998627, -0.08993688970804214, 0.0511852391...
Täta moln som till exempel vid ett åskoväder, kan göra det svårare för satelliterna att hämta din position.'); }, 60000); geo_position_js.getCurrentPosition(show_position, function() { clearTimeout(t); $('#getting-position').html('<b>Ett fel uppstod</b><br>Din position kunde int...
[ -0.25063660740852356, -0.08642853051424026, 0.4931398630142212, -0.1217670664191246, 0.026116682216525078, 0.41688260436058044, 0.3474293053150177, -0.11084479093551636, -0.4245105981826782, -0.1341405212879181, -0.6996554136276245, 0.383730411529541, -0.19996273517608643, 0.07827420532703...
true }); } else { $('#getting-position').html('<b>Ett fel uppstod</b><br>Det verkar som att din webbläsare inte tillåter GPS-positionering.'); } } function show_position(p) { $('.map-fullsize').show(); $('#weather-map').show(); $('#weather-data').show(); $('#getting-position').h...
[ 0.23018018901348114, -0.20468156039714813, 1.0783764123916626, -0.18415796756744385, 0.24911530315876007, 0.24651378393173218, 0.4855034351348877, -0.29778867959976196, -0.21592557430267334, -0.28806883096694946, -0.451421856880188, 0.43239161372184753, -0.24447235465049744, 0.193569406867...
var accuracy = position.coords.accuracy; var speed = position.coords.speed; var altitude = position.coords.altitude; var heading = position.coords.heading; var coords = new google.maps.LatLng(latitude, longitude); var mapOptions = {
[ -0.4709699749946594, 0.008559429086744785, 1.0764729976654053, 0.2973926067352295, 0.22426101565361023, 0.17787060141563416, 0.2464560568332672, -0.08434908837080002, -0.34101349115371704, -0.6670840382575989, -0.13243617117404938, 0.22770866751670837, 0.03582251816987991, 0.20547363162040...
center: coords, streetViewControl: false, mapTypeControl: true,
[ -0.13663560152053833, -0.21820764243602753, 0.3331860303878784, 0.24510575830936432, -0.043770961463451385, 0.2742968797683716, 0.06477680802345276, -0.09943663328886032, 0.007813116535544395, -0.8604375123977661, -0.2819933295249939, 0.08172200620174408, -0.15232893824577332, 0.0630371049...
navigationControlOptions: { style: google.maps.NavigationControlStyle.SMALL },
[ -0.34594690799713135, -0.05687396973371506, 0.7680911421775818, 0.2796891927719116, 0.36031562089920044, 0.07532055675983429, -0.02106914483010769, 0.37344762682914734, -0.09191486984491348, -0.6496819853782654, -0.37473389506340027, 0.4839946925640106, -0.10060996562242508, -0.09511814266...
zoomControl: true, zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL,
[ 0.05527421832084656, -0.25247785449028015, 0.41335031390190125, 0.2856789529323578, 0.4492466449737549, -0.11210642755031586, 0.164738729596138, 0.2051209807395935, -0.017682984471321106, -0.35578182339668274, -0.4343079924583435, 0.7923614382743835, -0.2611633539199829, -0.501020193099975...
position: google.maps.ControlPosition.TOP_LEFT }, mapTypeId: google.maps.MapTypeId.ROADMAP
[ -0.6058729887008667, 0.13567949831485748, 0.6181162595748901, -0.06534428894519806, 0.05321760103106499, 0.40079188346862793, -0.21147051453590393, 0.20030847191810608, 0.08382999897003174, -0.8294602036476135, -0.20677737891674042, 0.18792666494846344, -0.08032023161649704, 0.154733821749...
}; map = new google.maps.Map( document.getElementById('weather-map'), mapOptions ); var marker = new google.maps.Marker({ position: coords, map: map
[ -0.4689628779888153, -0.22246108949184418, 0.5509378910064697, -0.21082457900047302, 0.4671976864337921, 0.04652188718318939, 0.30308079719543457, -0.16878779232501984, -0.24544239044189453, -0.8672218918800354, -0.3021993935108185, 0.37547919154167175, -0.20852503180503845, 0.204409450292...
}); var circle = new google.maps.Circle({ center: coords, radius: accuracy, map: map, fillColor: '#3333ff',
[ -0.36558786034584045, -0.12806452810764313, 0.8998510837554932, -0.21039815247058868, 0.15272653102874756, 0.056961122900247574, 0.13689570128917694, -0.245734304189682, -0.14857202768325806, -0.6829465627670288, -0.1301881968975067, 0.38950803875923157, -0.260547935962677, 0.0856556817889...
fillOpacity: 0.4, strokeColor: '#3333ff', strokeOpacity: 0.8, strokeWeight: 1 }); map.setCenter(coords); if(accuracy > 30) {
[ -0.368064284324646, -0.26195669174194336, 0.9205178022384644, -0.2288733273744583, 0.37209904193878174, 0.36481142044067383, -0.11983375996351242, -0.8090125918388367, -0.11824096739292145, -0.5252647399902344, -0.10239776968955994, 0.6384367942810059, -0.31192079186439514, -0.426026284694...
map.fitBounds(circle.getBounds()); } else { map.setZoom(14); } $('#weather-data').load('jquery-fetch/fetch-weatherdata.php?coor=' + latitude.toFixed(6).replace(/\./, '') + ',' + longitude.toFixed(6).replace(/\./, '') + '&coordinates=' + latitude.toFixed(6) + ',' + lo...
[ -0.20463912189006805, -0.14414751529693604, 1.1428016424179077, 0.14218753576278687, 0.15261828899383545, 0.09700226783752441, 0.2972986400127411, -0.30117660760879517, -0.3094779849052429, -0.760818362236023, -0.4040742516517639, 0.21344062685966492, -0.38344186544418335, 0.21754488348960...
+ heading); }); } else { alert('Geolocation API stöds inte i din webbläsare'); } function showError(error) { switch(error.code) { case error.PERMISSION_DENIED: $('.map-fullsize').hide(); $('#weather-map').hide();
[ 0.2708164155483246, -0.2966686189174652, 0.7715388536453247, -0.1438303291797638, -0.07240340858697891, 0.024434352293610573, 0.5566696524620056, -0.19563695788383484, -0.03704332560300827, -0.36338844895362854, -0.21777436137199402, 0.4600968062877655, -0.4029126763343811, 0.2397891134023...
$('#weather-data').hide(); $('#permission-denied').show(); break; case error.POSITION_UNAVAILABLE: $('.map-fullsize').hide(); $('#weather-map').hide();
[ -0.07608059793710709, -0.02615150809288025, 0.39424407482147217, -0.09291344881057739, 0.14509117603302002, -0.039825499057769775, 0.5907975435256958, 0.08463841676712036, -0.18480445444583893, -0.3157733082771301, -0.683605968952179, 0.059441935271024704, -0.38820579648017883, 0.268143653...
$('#weather-data').hide(); $('#position-unavailable').show(); break; case error.TIMEOUT: $('.map-fullsize').hide(); $('#weather-map').hide(); $('#weather-data').hide();
[ -0.09919653832912445, -0.08082038909196854, 0.29938581585884094, -0.1286180466413498, 0.006848264951258898, 0.05738889425992966, 0.5342434644699097, 0.10095619410276413, -0.1305469423532486, -0.3746933937072754, -0.635627806186676, 0.19814179837703705, -0.2848854064941406, 0.13731749355793...
$('#timeout').show(); break; case error.UNKNOWN_ERROR: $('.map-fullsize').hide(); $('#weather-map').hide(); $('#weather-data').hide();
[ 0.03987792506814003, -0.13695134222507477, 0.33834972977638245, -0.10146350413560867, 0.2456878423690796, -0.03463909402489662, 0.6414684057235718, 0.06434813886880875, -0.2558399438858032, -0.46698543429374695, -0.5426923036575317, 0.07483489066362381, -0.33989065885543823, 0.301190465688...
$('#unknown-error').show(); break; } } } $(document).ready(function() { initialize(); }); ``` I can't find anything wrong with this code and the funny thing with this is that the code is getting my GPS location before I'm getting "Permission Denied". This problem is an "follow-up" to ...
[ 0.40841683745384216, 0.18446511030197144, 0.5504328608512878, 0.15362703800201416, 0.4991613030433655, -0.27605074644088745, 0.6937382817268372, -0.29418784379959106, 0.1570180058479309, -0.5087778568267822, -0.2583802044391632, 0.536065399646759, -0.33103466033935547, 0.0922999158501625, ...