text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
string url = m.Groups["href"].Value; string linkText = m.Groups["fileName"].Value; Uri testUri = null; if (Uri.TryCreate(url, UriKind.Absolute, out testUri) && testUri.AbsoluteUri.StartsWith("http"))
[ -0.06645920872688293, -0.11669696867465973, 0.4869144558906555, 0.022266263142228127, 0.24023659527301788, -0.0004968154826201499, 0.4465752840042114, -0.09694657474756241, 0.2751426100730896, -0.3718731105327606, -0.6598934531211853, 0.4395282566547394, -0.2503828704357147, 0.227685794234...
{ safeText = safeText.Replace(m.Groups[0].Value, string.Format("<a href=\"{0}\" >{1}</a>", testUri.AbsoluteUri, linkText)); } else {
[ 0.11752091348171234, -0.22441619634628296, 0.31652411818504333, -0.06737995892763138, 0.44469431042671204, -0.18801996111869812, 0.6330589652061462, -0.4026336669921875, 0.328024297952652, -0.31643232703208923, -0.5129702091217041, 0.7946166396141052, -0.502422034740448, -0.013162793591618...
safeText = safeText.Replace(m.Groups[0].Value, linkText); } } } //Remove everything. safeText = System.Text.RegularExpressions.Regex.Replace(safeText, @"<[a-zA-Z\/][^>]*>", m => m != null && allowed.Contains(m.Value) || m.Value.StartsWith("<a href") ? m.Value : Strin...
[ -0.10081027448177338, 0.00790748093277216, 0.5964599251747131, -0.2645784914493561, 0.3439390957355499, -0.17333461344242096, 0.6695460677146912, -0.541243314743042, -0.16918665170669556, -0.47359326481819153, -0.7889986634254456, 0.5762134194374084, -0.6749854683876038, 0.1496786028146743...
} ``` Tests: ``` [Test] public void EvilTagTest() { var safeText = RemoveEvilTags("this is a test <p>ok</p>"); Assert.AreEqual("this is a test <p>ok</p>", safeText); safeText = RemoveEvilTags("this is a test <script>ok</script>"); Assert.AreEqual("this is a test ok", safe...
[ -0.04028422385454178, -0.010999433696269989, 0.1154046356678009, -0.263878732919693, -0.03029816597700119, 0.09163825213909149, 0.8662073016166687, -0.5079597234725952, 0.3460732698440552, -0.37301313877105713, -0.2242567092180252, 0.5542996525764465, -0.6015667915344238, 0.066164128482341...
//Check relitive link safeText = RemoveEvilTags("this is a test <a href=\"bob\" >click here</a>"); Assert.AreEqual("this is a test click here", safeText); //Check full link safeText = RemoveEvilTags("this is a test <a href=\"http://test.com/\" >click here</a>"); Assert.AreEqual(...
[ 0.09723099321126938, 0.026849742978811264, 0.34729287028312683, -0.07393788546323776, -0.28998303413391113, -0.021963641047477722, 0.8010997176170349, -0.65118807554245, 0.04301759973168373, -0.32921090722084045, -0.3120906949043274, 0.6530774235725403, -0.4061129093170166, 0.0577358938753...
safeText = RemoveEvilTags("this is a test <a href=\"https://test.com/\" >click here</a>"); Assert.AreEqual("this is a test <a href=\"https://test.com/\" >click here</a>", safeText); //javascript link safeText = RemoveEvilTags("this is a test <a href=\"javascript:evil()\" >click here</a>"); ...
[ -0.0353848822414875, 0.05484459921717644, 0.3009706139564514, -0.15575911104679108, -0.4042204022407532, -0.11095569282770157, 0.8269699811935425, -0.7527934312820435, 0.2933724522590637, -0.3572709560394287, -0.3746941089630127, 0.562531054019928, -0.48536714911460876, 0.06566881388425827...
} ``` All tests pass but what have i missed? Thank you. For best practice you should not be making your own library to "RemoveEvilTags". There are plenty of methods malicious users could use to perform an XSS attack. ASP.NET provides an Anti XSS Library already: <http://msdn.microsoft.com/en-us/library/aa973813.asp...
[ 0.18860745429992676, -0.04428580403327942, 0.43041813373565674, -0.042843371629714966, -0.4233212172985077, -0.1968420445919037, 0.6804599761962891, -0.2747824788093567, -0.10013958066701889, -0.6123374104499817, 0.1396426558494568, 1.0916410684585571, -0.11493130028247833, 0.0124745359644...
> **Possible Duplicate:** > > [difference between string object and string literal](https://stackoverflow.com/questions/3297867/difference-between-string-object-and-string-literal) Let's say I have two statements. ``` String one = "abc"; String two = new String("abc"); ``` Which one is a stack memory and which ...
[ 0.24768739938735962, 0.24418595433235168, 0.1588868945837021, -0.16000983119010925, -0.03293205797672272, 0.05777502432465553, 0.20595796406269073, -0.2035997062921524, -0.23354807496070862, -0.6019402742385864, -0.03605661168694496, 0.5025076866149902, -0.26965638995170593, 0.034222315996...
on the heap (two String objects containing `"abc"`) and two references, one for each object, on the stack (provided `one` and `two` are local variables). (Actually, to be precise, when it comes to interned strings such as string literals, they are stored in the so called string pool.) > *How many objects are created ...
[ 0.13045059144496918, -0.021016793325543404, -0.19411234557628632, 0.16216258704662323, -0.18263262510299683, -0.19162842631340027, 0.2665466368198395, -0.25690072774887085, -0.5352311730384827, -0.7671932578086853, -0.17262639105319977, 0.26703140139579773, -0.2357126772403717, 0.085471004...
which means that you'll have two objects on the heap after those two lines of code. --- 1) Formally speaking the Java Language Specification does not specify how or where values are stored in memory. This (or variations of it) is however how it is usually done in practice.
[ 0.10444613546133041, 0.1074577122926712, -0.25399208068847656, -0.2070789486169815, -0.22731932997703552, -0.19331203401088715, 0.17664757370948792, 0.04900353401899338, -0.2502395808696747, -0.4199920892715454, -0.13447117805480957, 0.20578645169734955, -0.12810200452804565, -0.1433807164...
I can not figure out how to delete a model created by `App.store.createRecord()`. Have a look at this fiddle: <http://jsfiddle.net/Adw4F/2/> You can delete record loaded from fixtures (or rest adapter), but not created. Using the very last version of ember-data, and adding a few *(ugly|crappy|clumsy)* things, I got it ...
[ 0.23714932799339294, 0.14604699611663818, 0.6674930453300476, -0.11230652779340744, 0.06689275056123734, 0.18798913061618805, 0.4683205783367157, -0.36988386511802673, -0.20709365606307983, -0.5416157841682434, 0.3384348750114441, 0.5238860845565796, -0.24061371386051178, 0.235225871205329...
Im currently trying to fix a form that i have built to work on a responsive layout Ive attached a jpeg of what the form should look like a on full version of the site with the comments field aligned to the right of the rest of fields but when viewed on a mobile i want the comments field to drop below the rest of the f...
[ 0.42600157856941223, 0.0797254890203476, 0.7460681200027466, -0.1768442690372467, -0.19908803701400757, 0.08861804008483887, 0.13408012688159943, -0.2779251039028168, 0.014796305447816849, -0.6722052693367004, 0.08701076358556747, 0.29726919531822205, -0.3330155909061432, 0.304457783699035...
sits at the top of the form instead of the bottom any suggestions to how i can fix this issue? see the CSS & HTML below ``` <style type="text/css"> body { background-color: #FFF; } #form { width:960px; background-color:#edf8ff; height:650px; } .gezza-form { width:894px; margin:0 auto; margin-top:20px; } .gezza-f...
[ -0.4109346568584442, 0.06612101197242737, 0.7250111699104309, -0.2961905300617218, -0.20249931514263153, 0.39008286595344543, -0.053330838680267334, -0.5901567339897156, -0.41910719871520996, -0.6390939950942993, 0.05505058541893959, 0.6680771708488464, 0.07775327563285828, 0.1058352366089...
animation runs and the control is again disabled. Blogged about this here - [Making animations work for disabled controls](http://weblogs.asp.net/akjoshi/archive/2012/06/13/Making-Animations-work-for-disabled-control.aspx)
[ -0.10409823805093765, 0.11546264588832855, 0.19912637770175934, 0.1589985191822052, -0.03582916408777237, 0.22771094739437103, 0.6533501744270325, -0.18979984521865845, -0.4503615200519562, -0.39749714732170105, -0.28203195333480835, 0.2040623426437378, -0.14936710894107819, 0.188906326889...
Hi I'm new to Linux and I really like the idea of writing and testing python code in a shell. But my problem is how can I do line breaks in IPython. Every time I use the (I think) "normal" shortcut shift+enter the code gets executed. Function keys are disabled and keyboard layout works fine on my laptop, what could be ...
[ 0.1750568300485611, 0.1484508514404297, 0.18681403994560242, -0.25057512521743774, -0.40277889370918274, -0.26132291555404663, 0.5480828881263733, 0.13106617331504822, -0.03003052994608879, -0.3832518756389618, 0.0584026463329792, 0.7755084037780762, -0.2105764001607895, 0.0180972982197999...
I keep a 32bit python26 installation on a shared drive which other computers use to run scripts. These computers have no python interpreter installed. I tried to put a 64bit python27 on the shared drive and the python.exe fails to start on the remote computers: ![enter image description here](https://i.stack.imgur.co...
[ 0.24094565212726593, 0.527195155620575, 0.058383308351039886, -0.279651403427124, -0.10157831013202667, 0.16216960549354553, 0.47614213824272156, 0.18049730360507965, -0.26607659459114075, -0.4428650140762329, 0.08645652234554291, 0.8630557656288147, -0.32661882042884827, 0.009720999747514...
folder. This is usually on the `C:\Windows\System32` folder of a local installation.
[ 0.22212335467338562, 0.22569389641284943, 0.03135034069418907, 0.09486351907253265, 0.4615980088710785, -0.22033005952835083, -0.032742541283369064, 0.5642269253730774, -0.282859742641449, -0.8105849623680115, -0.7339231371879578, 0.5473238229751587, -0.08322560787200928, 0.161238133907318...
iHi, in my Windows Phone application in View I have: ``` <TextBlock x:Name="lblink" FontSize="15" Margin="30,0,24,0" Height="30" Text="*use a email@mail.com if you are not the member" TextWrapping="Wrap" HorizontalAlignment="Left" /> ``` I need to make the functionality like this: when I click on the text: "emai...
[ -0.02144020050764084, -0.059412725269794464, 0.5669203996658325, -0.17260165512561798, -0.08663760870695114, -0.0949503481388092, 0.0006358374957926571, -0.5254144668579102, -0.44117698073387146, -0.5299564003944397, 0.0745178684592247, 0.44903409481048584, -0.1046544685959816, -0.07068445...
<TextBlock Text=" if you are not the member"/> </StackPanel> ```
[ -0.019949236884713173, 0.048369575291872025, 0.12794291973114014, -0.18797476589679718, 0.07511420547962189, -0.4497745633125305, 0.18422171473503113, 0.019480956718325615, -0.6012083292007446, -0.3762614130973816, -0.4756626486778259, 0.24927149713039398, 0.026937877759337425, -0.08683760...
I'm considering Talend's Open Studio for a Data Integration / ETL project, and I can't seem to find a list of formats for which it can input from or output to *out of the box*. For instance, I'm comparing it against Pentaho's Kettle, which I found supports File System I/O, MS Excel, Access, XML, JSON, SAP, various SQL ...
[ 0.7096779942512512, 0.21672622859477997, -0.3886311650276184, -0.01899714209139347, -0.1977573037147522, -0.05184175446629524, -0.03805418312549591, -0.06096844747662544, -0.13013213872909546, -0.3769763708114624, 0.188340425491333, 0.4205839931964874, -0.1894194632768631, 0.28119897842407...
Talend components reference guide from their download page: <http://www.talend.com/download/data-integration> (click on the User Manuals tab). The Reference Guide PDF describes **all** components that come with Talend out of the box and will include all possible formats you can use.
[ 0.29343000054359436, -0.05126935988664627, 0.40121033787727356, 0.10516034066677094, -0.16481365263462067, -0.3963329493999481, 0.19154638051986694, -0.18429449200630188, -0.05676977336406708, -0.5661574006080627, -0.5627557039260864, 0.5987476110458374, 0.11403506994247437, 0.306343764066...
How to match the following i want all the names with in the single quotes ``` This hasn't been much that much of a twist and turn's to 'Tom','Harry' and u know who..yes its 'rock' ``` How to extract the name within the single quotes only ``` name = re.compile(r'^\'+\w+\'') ``` The following regex finds all single ...
[ 0.1939154863357544, 0.38447821140289307, 0.537768542766571, 0.043361254036426544, 0.10869815945625305, 0.0782790556550026, 0.2082509696483612, -0.4722428619861603, 0.14306242763996124, -0.143866166472435, -0.4347456395626068, 0.6630159616470337, -0.13961732387542725, -0.08726977556943893, ...
to find words that start with a capital letter, the regex can be modified like so: ``` In [7]: re.findall(r"'([A-Z]\w*)'", s) Out[7]: ['Tom', 'Harry'] ```
[ -0.061841726303100586, 0.28792694211006165, 0.6873844265937805, -0.5612876415252686, -0.20083065330982208, 0.33861294388771057, 0.5430588126182556, -0.03173999860882759, -0.31054699420928955, -0.3008292317390442, -0.5703646540641785, 0.543429970741272, -0.051621388643980026, -0.01067817769...
I have made a php page that sends an email message with multiple attachments. The loop which i used to attach multiple attachments and to check the size of attachments is , ``` foreach(array_keys($_FILES['attach']['name']) as $key) { $filesize = $_FILES['attach']['size'][$key]; $extention = pathinfo ($_FIL...
[ -0.02100394479930401, 0.157683864235878, 1.0961482524871826, -0.3228567838668823, -0.12306506931781769, 0.06726177781820297, 0.2008805125951767, -0.5833820104598999, -0.1598706841468811, -0.6644781827926636, 0.06107223406434059, 0.34888631105422974, -0.2342604398727417, -0.0054471017792820...
$filename); } }//end Foreach loop ``` But when i try to attach a large file i get this error from the phpmailer class. ``` Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 7355049 bytes) in /var/www/dev01/maiarn/Email/class.phpmailer.php on line 1677 ``` Any body who can guid...
[ 0.019239118322730064, 0.09010770916938782, 0.42109882831573486, 0.023817097768187523, 0.13938650488853455, 0.10946522653102875, 0.7256357669830322, -0.22139443457126617, -0.18482208251953125, -0.5980554819107056, -0.04748598858714104, 0.7789708375930786, -0.18078036606311798, 0.19973313808...
following line to show the configuration currently in use: ``` <?php phpinfo(); ?> ```
[ 0.13778749108314514, -0.005064396187663078, 0.2812928855419159, -0.02558005042374134, 0.3565007448196411, -0.19271628558635712, 0.046045441180467606, 0.3405468463897705, -0.16673336923122406, -0.621505856513977, -0.31195855140686035, 0.5698775053024292, -0.3339085578918457, 0.1102621257305...
Good day, I've been trying to figure out a problem in my code. I'm using SQL\_CALC\_FOUND\_ROWS and FOUND\_ROWS() to retrieve the total amount of records in my database (with PDO). My problem is that FOUND\_ROWS() always returns 0. The thing is that I got it working before, but I made some adjustments here and there a...
[ 0.01040856447070837, 0.38114210963249207, 0.33582133054733276, -0.024471456184983253, -0.006754051893949509, -0.0291572455316782, 0.25977811217308044, 0.44480645656585693, -0.45128127932548523, -0.6194841861724854, 0.38419708609580994, 0.4576447904109955, -0.34734272956848145, 0.2133679091...
modes, tried placing the commands in different order (i.e. before the while and after the while loop etc.). I think I'm just missing something very easy here, but I've been staring it this thing for about 1 or 2 hours now and it's driving me mad. So here's my code: ``` public function findBerichten($args) { ...
[ -0.08052452653646469, -0.5593951344490051, 0.565873920917511, 0.06628959625959396, 0.016828078776597977, -0.19485673308372498, 0.2089821696281433, -0.17920328676700592, -0.23687084019184113, -0.5654191374778748, -0.05292940512299538, 0.8868458867073059, -0.3868677020072937, -0.432883322238...
berichten.berichtID, berichten.bericht,
[ -0.08000439405441284, 0.38304197788238525, 0.27371808886528015, -0.27418503165245056, 0.01088026911020279, 0.5937246084213257, 0.11459182947874069, -0.09846501052379608, 0.2808854579925537, -0.5389657616615295, -0.26797351241111755, -0.3554449677467346, 0.36548590660095215, 0.1254297196865...
berichten.naam, berichten.mail
[ 0.16137444972991943, 0.4153798818588257, -0.15709809958934784, -0.363758385181427, -0.08983862400054932, 0.5769739151000977, 0.2707240581512451, 0.025533366948366165, -0.06411506235599518, -0.38412997126579285, -0.33191633224487305, -0.15655937790870667, 0.41182956099510193, 0.025364905595...
FROM `berichten` ORDER BY berichten.datumToegevoegd DESC
[ -0.03920023888349533, 0.3463504910469055, -0.000983198406174779, -0.21471108496189117, 0.05511274188756943, 0.27280569076538086, 0.2520478367805481, -0.4217897355556488, -0.22853034734725952, -0.48510798811912537, -0.6651842594146729, 0.21463517844676971, 0.5918813943862915, 0.372329235076...
LIMIT ?, ?"); $sth->bindParam(1, $offset, PDO::PARAM_INT); $sth->bindParam(2, $args['itemsPerPagina'], PDO::PARAM_INT); $sth->execute(); $sth->setFetchMode(PDO::FETCH_ASSOC); $berichten = array(); while($row = $sth->fetch()) { $bericht = new Bericht(); $bericht->setBerich...
[ 0.152118518948555, -0.3663273751735687, 0.9515835046768188, -0.3427567780017853, 0.05228269845247269, 0.39693331718444824, 0.14484725892543793, -0.9227250814437866, -0.17600055038928986, -0.3972931504249573, -0.6383123397827148, 0.5012304782867432, -0.4066888391971588, 0.1683458387851715, ...
$bericht->setMail(htmlentities(strip_tags($row['mail']))); $berichten[] = $bericht; } $sth = $this->db->DBH()->prepare("SELECT FOUND_ROWS() as aantalBerichten"); $sth->execute(); $sth->setFetchMode(PDO::FETCH_ASSOC); $this->aantalBerichten = $sth->fetch(); var_dump($this->aantalBeri...
[ -0.07720115035772324, -0.07588586211204529, 0.4758044481277466, -0.43476518988609314, -0.07285943627357483, 0.42727524042129517, 0.46086615324020386, -0.7019932866096497, 0.23538395762443542, -0.4316686689853668, -0.5620225667953491, 0.3418566584587097, -0.545576274394989, -0.0547013878822...
}` If you've got any idea's let me know because I'm willing to try just about anything right now :) Here's to hoping this question isn't too noob! As I said, I think I'm missing something very easy here. **edit** the execute() function is correct etc. when used in if() statement it still proceeds to execute co...
[ 0.07861964404582977, 0.14243543148040771, 0.09337794780731201, -0.2496720254421234, -0.12432877719402313, -0.11855024099349976, 0.31785592436790466, -0.2704325020313263, 0.22446398437023163, -0.6828540563583374, -0.09751535952091217, 0.7172512412071228, -0.46900051832199097, 0.119651250541...
private $naam; private $mail; public function __construct(Db $db) { $this->db = $db; } public function setBerichtID($berichtID) { $this->berichtID = $berichtID; } public function getBerichtID() { return $this->berichtID; } public function setBerich...
[ 0.006098852958530188, 0.030897364020347595, -0.02029409073293209, -0.646408200263977, -0.047312211245298386, 0.25700923800468445, 0.5697025060653687, -0.5038591623306274, 0.2732081413269043, -0.6120143532752991, -0.48173579573631287, 0.3825872242450714, -0.4918806552886963, 0.3996061086654...
$bericht; } public function getBericht() { return $this->bericht; } public function setNaam($naam) { $this->naam = $naam; } public function getNaam() { return $this->naam; } public function setMail($mail) { $this->mail = $mail; }
[ 0.013360263779759407, -0.07432117313146591, 0.23393262922763824, -0.5985143184661865, 0.1936805099248886, 0.17172038555145264, 0.6216905117034912, -0.29700344800949097, 0.0761045590043068, -0.747404158115387, -0.7281818985939026, 0.3715611398220062, -0.6337598562240601, 0.06794238090515137...
public function getMail() { return $this->mail; } } ``` db class: ``` <?php class Db { //bij het laden van Db public function __construct() { //voer functie connect() uit $this->connect(); } //functie voor het verbinding maken met en het selecteren van een databas...
[ -0.011573247611522675, -0.0802142396569252, 0.2568228244781494, -0.024829979985952377, -0.39067772030830383, 0.02580556832253933, 0.49519267678260803, -0.23090864717960358, -0.20215043425559998, -0.3620884418487549, -0.4432818293571472, 0.29091930389404297, -0.742363452911377, 0.2314656376...
naar mysql database (met de opgegeven inlog waardes) $connection = mysql_connect('localhost', 'user', 'pw'); //als er geen connectie gemaakt kan worden if(!$connection) { //die (voer overige code niet meer uit) en echo string + de mysql error die("Kan geen verbin...
[ -0.40641850233078003, 0.13302145898342133, -0.14422984421253204, -0.3947140872478485, 0.006231458857655525, 0.38109418749809265, 0.9281921982765198, -0.3351356089115143, -0.33467593789100647, -0.18733908236026764, 0.09152577072381973, 0.3896220028400421, -0.17892412841320038, 0.37194973230...
} //selecteert de opgegeven database met de connectie ($connection) mysql_select_db("db", $connection); } public function DBH() { try { $DBH = new PDO('mysql:host=localhost;dbname=db', 'user', 'pw'); $DBH->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMOD...
[ -0.30863678455352783, -0.0961592048406601, 0.2974071204662323, -0.265813946723938, 0.19037139415740967, 0.1163569912314415, 0.4281662106513977, -0.35903581976890564, 0.13328096270561218, -0.6614909172058105, -0.38950005173683167, 0.34927457571029663, -0.6078051924705505, 0.3539168536663055...
} catch (PDOException $except) { echo $except->getMessage(); } } //function to retrieve records -- not important public function getRecords($sth) { $rows = array(); if($sth->execute() == true) {
[ 0.16066239774227142, -0.2214355766773224, 0.2587883472442627, -0.27279186248779297, 0.37831181287765503, 0.09630753099918365, 0.4498935639858246, -0.4199162423610687, -0.3044687807559967, 0.017714759334921837, -0.2791452705860138, 0.34431976079940796, -0.4670432209968567, -0.02078325673937...
$sth->setFetchMode(PDO::FETCH_OBJ); while($row = $sth->fetch()) { $rows[] = $row; } return $rows; }
[ -0.10542844235897064, -0.2519966959953308, 0.7393720746040344, -0.4191344082355499, 0.03042774274945259, 0.3940778374671936, 0.1115749329328537, -0.2996363639831543, -0.2891075611114502, -0.3879828453063965, -0.33196499943733215, 0.6088600158691406, -0.542463481426239, 0.20359985530376434,...
else { return false; } } } ``` Not completely sure what is happening inside your DB class, so a few assumptions on this answer. I assume this *was* working at one stage on your machine similar code, so trace\_mode isnt the answer. I assume ``` $this->db->DBH() ``` is a function w...
[ 0.31410813331604004, 0.11609693616628647, -0.0928003266453743, -0.1139436736702919, 0.05540952831506729, -0.38566872477531433, 0.4368739128112793, -0.2847556173801422, 0.24516302347183228, -0.6607033610343933, 0.12435462325811386, 0.3957058787345886, -0.46855542063713074, 0.233892112970352...
creating a new database handler which is not storing the information from the other DBH call earlier. A fix would be to do something like ``` $dbh = $this->db->DBH(); ``` early in the function, then replace the prepare calls with with ``` $dbh->prepare("(SQL)"); ``` Edit: Looks like at least my DB->DBH() assu...
[ 0.12635092437267303, 0.03666215017437935, -0.0189950093626976, 0.09356460720300674, -0.002538304775953293, -0.23598334193229675, 0.25916582345962524, -0.34815770387649536, 0.07676895707845688, -0.6018799543380737, -0.011236746795475483, 0.6630834937095642, -0.5408533811569214, 0.1454903930...
I receive an empty value for `NSMutableArray` and already checked that was filled properly. What I am doing wrong? Here is my code: .h file ``` @property (nonatomic, retain) NSMutableArray *arrayQuattro; ``` .m file ``` @synthesize arrayQuattro; //when set self.arrayQuattro = [[NSMutableArray alloc] init]; [s...
[ 0.025801807641983032, 0.12918591499328613, 0.7085986137390137, -0.13924352824687958, 0.22999519109725952, -0.1281643509864807, 0.5044655203819275, -0.3390055298805237, -0.319513738155365, -0.8013458847999573, 0.043935924768447876, 0.6377376317977905, -0.2724469006061554, 0.2519260048866272...
new YourCustomVirtualPathProvider()); } ``` Override the necessary methods in the VirtualPathProvider (based on your logic): ``` public class YourCustomVirtualPathProvider : System.Web.Hosting.VirtualPathProvider { private const string RESERVED_PATH = "/components/external"; public override bool FileExists(s...
[ 0.31617000699043274, -0.39175528287887573, 0.8502465486526489, 0.02569209411740303, 0.5623710751533508, -0.14972390234470367, 0.3890284597873688, -0.2581648826599121, -0.36591973900794983, -0.7131653428077698, -0.2838872969150543, 0.8699630498886108, -0.4353724420070648, 0.0888046622276306...
if (virtualPath.StartsWith(RESERVED_PATH)) return new MyCustomVirtualFile(virtualPath); else return base.GetFile(virtualPath); } //You'll also need to override methods for directories, omitted for brevity. } ``` Now create the `MyCustomVirtualFile` class to load the files from...
[ 0.1039591133594513, -0.27569809556007385, 0.8083214163780212, 0.00011940901458729059, 0.34218019247055054, -0.13661222159862518, 0.31588244438171387, -0.0672437772154808, -0.3302157521247864, -0.7728878855705261, -0.45333248376846313, 0.5751798152923584, -0.4105164110660553, 0.265525221824...
{ //You'll need some method to tie a virtual path to an assembly //Then load the file from the assembly and return as a Stream Assembly assembly = Foo.GetAssemblyByVirtualPath(_virtualPath); string fileName = Foo.GetFileNameFromVirtualPath(_virtualPath); return assembly.GetManife...
[ 0.4021044075489044, -0.1179405227303505, 0.6412814259529114, -0.13358911871910095, 0.2890104055404663, -0.07365554571151733, 0.43227875232696533, -0.12869368493556976, -0.42067891359329224, -0.545678436756134, -0.23148542642593384, 0.5609654784202576, -0.4272264838218689, 0.317334711551666...
this by changing the "Build Action" property of the file: ![properties dialogue](https://i.stack.imgur.com/FL0fu.png) The code behinds will be compiled into the assembly, and if you're using a shared `bin` folder, you shouldn't need to do anything more. If they won't be shared, you'll have to attach to the `AssemblyR...
[ 0.5565232038497925, 0.10181312263011932, 0.2298666536808014, -0.13489402830600739, -0.06455030292272568, -0.13305571675300598, 0.2479102909564972, -0.36111828684806824, -0.2670953869819641, -0.6874336004257202, -0.18268102407455444, 0.3472856283187866, -0.25937381386756897, 0.1452102363109...
I am having string str = "[123, 345, 567]". I want to convert this to an array arr = [123, 345, 567]. How to do this? If you *know* that the string contains an array, you can just plain use `eval`; ``` arr = eval(str) ``` If you're not sure, you can go for the a bit more involved removing braces, splitting on `,` an...
[ 0.20482610166072845, 0.06923403590917587, 0.28424152731895447, -0.33570408821105957, -0.17196360230445862, 0.1259835660457611, 0.3593207001686096, -0.5612300634384155, -0.25084441900253296, -0.4127856194972992, -0.06656556576490402, 0.3722454309463501, -0.33131274580955505, -0.064846478402...
I am accessing an `Ms Access` database through `C#`. I am able to read all the fields. The problem that I am getting is, while reading `.txt` and `.doc` files that are stored in `OLE Object` field of the table, a lot of extra junk characters are also getting read before and after the actual text like- `ÿÿÿÿ‡€ ÿÿÿÿÿÿÿÿˆ...
[ 0.024135790765285492, 0.576938271522522, 0.49848711490631104, -0.05540928989648819, -0.008053832687437534, -0.017520304769277573, 0.4284958243370056, 0.27636608481407166, -0.09844813495874405, -0.6291720867156982, -0.060201987624168396, 0.48608312010765076, -0.06500613689422607, 0.41912010...
h F o n t … ÿÿÿÿ ( f p ³ ú ÿ A Ä M • À ' n ­ î 0 q Œ Ï`. My C# code is like- ` ``` /*Read from the query and write in a temporary file*/ var oleBytes = (Byte[])Cmd.ExecuteScalar(); MemoryStream ms = new MemoryStream(); ms.Write(oleBytes, 0, oleBytes.Length - 0); var file = Path.GetTempFileName(); using (var fileStrea...
[ -0.1547708511352539, 0.1104336604475975, 1.042518138885498, -0.2056400179862976, 0.34311389923095703, 0.1364595741033554, 0.39144477248191833, -0.2926526367664337, -0.17163164913654327, -0.8348659873008728, -0.4198278784751892, 0.5000031590461731, -0.3029976487159729, 0.1304752379655838, ...
ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject); docs.ActiveWindow.Selection.WholeStory(); docs.ActiveWindow.Selection.Copy(); IDataObject iD...
[ -0.10536167025566101, 0.0402948297560215, 0.27813488245010376, -0.110061876475811, -0.05475354567170143, 0.34573331475257874, 0.43598538637161255, -0.34240296483039856, -0.07199855893850327, -0.4170195460319519, -0.2772653102874756, 0.8717017769813538, -0.6177327036857605, 0.18873853981494...
as a byte array and saving it to disk does not work. Any OLE Object file has some standard signature. For word documents, `OLEheaderLength is 85 bytes`. So I strip 85 bytes from both ends of the byte array like- ``` Con.Open(); string _query="select licenseDoc from Products where ID=56"; //Column licenseDoc contains w...
[ 0.13658250868320465, 0.01245569996535778, 0.7779445648193359, -0.23827329277992249, 0.11297296732664108, 0.28382226824760437, 0.2868331968784332, -0.37792158126831055, -0.26606065034866333, -0.5537662506103516, -0.37776637077331543, 0.501621663570404, -0.4241776168346405, 0.102331526577472...
which contains the data read from from the word document stored as an `OLE object in Ms Access`. This file can be directly opened in as a `word document` or it's extension can be changed `.doc`. The `OLEheaderLength` for other formats are as follows: ``` 1] JPEG/JPG=224 2] BMP=78 3] PDF=85 4] SNP=74 5] DOC=85/90 6] D...
[ 0.08650115132331848, 0.19598913192749023, 0.8167871236801147, -0.04930546134710312, 0.001551518333144486, 0.016814537346363068, 0.1358528733253479, -0.35652706027030945, -0.2583760619163513, -0.4558117985725403, -0.2489142268896103, 0.5699539184570312, -0.45651254057884216, -0.032104536890...
downloadable from here** - <http://jvdveen.blogspot.in/2009/02/ole-and-accessing-files-embedded-in.html>
[ 0.08502373844385147, -0.13710980117321014, 0.07285167276859283, 0.16883333027362823, 0.12329665571451187, -0.26649209856987, 0.2245698869228363, 0.13433736562728882, -0.09905434399843216, -0.5955644249916077, -0.6863459348678589, 0.30129143595695496, -0.22733290493488312, -0.22164703905582...
I have a query ``` var QP = (from a in QProductAllInfo select new { a.Id, a.Title, a.FullTitle}).Distinct(); ``` Result is: * 1 Ivanov Ivan * 1 Ivanov Ivan * 2 Petrov Petr * 3 Sidorov Ivan * 3 Sidorov Ivan and i need result: * 1 Ivanov Ivan * 2 Petrov Petr * 3 Sidorov Ivan Assuming that different Ids are always ...
[ -0.17686666548252106, 0.16337741911411285, 0.5428043603897095, -0.07725562900304794, -0.31028294563293457, 0.08191755414009094, 0.2866743803024292, -0.7026751637458801, -0.12611855566501617, -0.30320966243743896, -0.07232312858104706, 0.052741147577762604, -0.3209478557109833, 0.6476274132...
temp.GroupBy(x => x.Id).Select(y => y.First()); ```
[ 0.07791110128164291, -0.14506830275058746, 0.06090148165822029, -0.10164318978786469, 0.07055461406707764, -0.1412956863641739, 0.22228829562664032, -0.2714923918247223, 0.21116392314434052, -0.4611864387989044, -0.3552524745464325, 0.39732474088668823, -0.5628586411476135, 0.1146227717399...
I'm used to WinForms programming in Visual Studio, but I wanted to give WPF a try. I added another window to my project, called Window01. The main window is called MainWindow. Before the `public MainWindow()` constructor I declare Window01: ``` Window01 w1; ``` Now I instantiate this window in: ``` private void Wi...
[ 0.08500788360834122, -0.018977072089910507, 0.5352171063423157, -0.4188075363636017, -0.018751055002212524, -0.17259040474891663, 0.21373088657855988, 0.2021031528711319, -0.03425178676843643, -0.8509548306465149, -0.10629540681838989, 0.22053195536136627, -0.24273867905139923, 0.345567673...
do anything in the application), Visual Studio doesn't stop debugging as if the application is still running. If I move the line `w1 = new Window01();` to the button click method, meaning just above `ShowDialog()`, Visual Studio is behaving properly - that is, the debugging stops when I exit the application. Why this...
[ -0.04960253834724426, -0.05404762923717499, 0.5291723012924194, -0.2045646756887436, 0.07418656349182129, -0.383795827627182, 0.46893683075904846, -0.10286474972963333, -0.4805567264556885, -0.29103848338127136, -0.6606733202934265, 0.5817010402679443, -0.27517858147621155, 0.1027962639927...
stop running only when the `Shutdown` method of the `Application` is called. Shut down can occur implicitly or explicitly, as specified by the value of the `ShutdownMode` property. If you set `ShutdownMode` to `OnLastWindowClose`, Windows Presentation Foundation (WPF) implicitly calls Shutdown when the last window in ...
[ 0.35972294211387634, -0.10673501342535019, 0.47745969891548157, 0.07006314396858215, 0.3699309527873993, -0.3683967888355255, 0.5763250589370728, 0.6084155440330505, -0.4940749704837799, -0.2630254328250885, -0.7939049601554871, 0.5301293730735779, -0.5480872988700867, 0.4709058403968811, ...
or may not be dependent on windows at all. For these scenarios you need to set the `ShutdownMode` property to `OnExplicitShutdown`, which requires an explicit `Shutdown` method call to stop the application. Otherwise, the application continues running in the background. `ShutdownMode` can be configured declaratively f...
[ 0.17652252316474915, -0.05097125843167305, 0.6675012707710266, -0.07201111316680908, 0.31733500957489014, -0.3381161093711853, 0.287492573261261, 0.15264251828193665, -0.24152694642543793, -0.5704087018966675, -0.5862424373626709, 0.6318052411079407, -0.2768198251724243, 0.3288166224956512...
as the main window (see `MainWindow`). Since you're opening a new window, and not closing it, shutdown doesn't get called.
[ 0.18425852060317993, -0.23585620522499084, 0.4375154972076416, -0.026621932163834572, -0.037003882229328156, -0.5476492047309875, 0.31503862142562866, 0.5279770493507385, -0.6514994502067566, -0.1667466014623642, -0.6622678637504578, 0.3426353931427002, -0.17904064059257507, 0.509156584739...
I have a measure device that creates samples in the following format: `V GL020(1)=20110117161703` another example: `V GLXX011(10)=ADEF=*GFSDAS` What I'm trying to do is to create a regex expression that returns `GL020 / 1 / 20110117161703` for the first example and `GLXX011 / 10 / ADEF=*GFSDAS` for the second exam...
[ -0.2191351056098938, 0.13228125870227814, 0.33610931038856506, -0.10840585082769394, -0.4720994234085083, 0.3184378445148468, 0.15307313203811646, -0.5819411873817444, -0.04337988793849945, -0.6331068873405457, 0.32358410954475403, 0.36094120144844055, 0.10328925400972366, -0.0488172508776...
second and third capturing groups.
[ -0.5992760062217712, -0.016199985519051552, -0.025251785293221474, -0.25252246856689453, -0.6029852628707886, 0.14499269425868988, -0.2392176240682602, -0.2816323935985565, -0.26513609290122986, -0.456696480512619, -0.25774216651916504, 0.1589701920747757, -0.18745826184749603, -0.11025537...
I tried to ask this question before but I guess I didnt explain myself properly, so I will try again. I have a spinner (spinner5), I have created two string arrays (name\_array and type\_array) which are inside the values folder. I also have two radio buttons (radiobtn1 and radiobtn2). I want to basically change the ...
[ 0.07841073721647263, 0.08369667083024979, 0.5869274139404297, 0.008838972076773643, -0.17139503359794617, -0.17094478011131287, 0.1058695912361145, -0.34572383761405945, -0.23398177325725555, -0.5315229296684265, 0.12415400892496109, 0.29031121730804443, -0.23891863226890564, 0.53979098796...
> ``` Hope someone can help. Thanks ``` Write below code in xml <RadioGroup android:layout_toRightOf="@+id/txtpref" android:layout_marginLeft="10sp" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"> ...
[ 0.15358328819274902, 0.25188401341438293, 0.7622518539428711, -0.1324065923690796, -0.009382527321577072, -0.1930539757013321, 0.2781575918197632, -0.5232073664665222, -0.019595326855778694, -0.6559879183769226, -0.17619100213050842, 0.604205310344696, -0.10224071890115738, -0.110292918980...
android:text="Male" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/radiobutton1"/> <RadioButton android:textColor="#000000" android:text="Female" android:layout_width="wrap_content" ...
[ -0.19505587220191956, 0.0979231670498848, 0.37350746989250183, -0.4176281988620758, 0.13066720962524414, 0.21362793445587158, 0.33320826292037964, -0.5191470980644226, -0.28127068281173706, -0.446378231048584, -0.4427795112133026, 0.7592841386795044, -0.20916828513145447, -0.09870535880327...
android:id="@+id/radiobutton2"/> </RadioGroup> In Your Java file RadioButton radiobutton1,radiobutton2; String [] name_array,type_array; String [] temparray; temparray = (name_array or type_array) // use any which you want disaplay first and use temparray to pass your adapter ArrayAdap...
[ -0.06140667200088501, -0.20954303443431854, 0.631501317024231, -0.3464410901069641, -0.04594128578901291, 0.04072945564985275, 0.5681314468383789, -0.8870577812194824, 0.08556364476680756, -0.8575499653816223, -0.26821449398994446, 0.8733537197113037, -0.5057279467582703, 0.026925243437290...
onCheckedChanged(CompoundButton buttonView, boolean isChecked) { // TODO Auto-generated method stub if (isChecked) { // you want spinner5 to display contents from name_array.
[ -0.1814267337322235, -0.34199777245521545, 0.22964784502983093, -0.24356450140476227, 0.05097823590040207, -0.09266386181116104, 0.29079777002334595, -0.24291986227035522, -0.19579605758190155, -0.3115101158618927, 0.02240630052983761, 0.39676937460899353, -0.44297540187835693, 0.183794289...
temparray = name_array; your_adapter.notifyDataSetChanged(); } }
[ 0.014333166182041168, -0.32492467761039734, 0.06707470118999481, -0.04957413300871849, 0.14710496366024017, 0.03430202603340149, 0.569610595703125, -0.512376606464386, -0.05944772809743881, -0.42520448565483093, -0.17468607425689697, 0.6198047995567322, -0.5100791454315186, 0.0443373136222...
}); radiobutton2.setOnCheckedChangeListener(new OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { // TODO Auto-generated method stub if (isChecked) { // you want spinner5 to display contents ...
[ -0.1491868942975998, -0.3710123300552368, 0.48881375789642334, -0.3979916274547577, 0.14872018992900848, -0.3136320412158966, 0.6834092736244202, -0.5138322114944458, 0.07178014516830444, -0.2715342938899994, -0.025591140612959862, 0.7914249300956726, -0.3658255636692047, 0.284876018762588...
temparray = type_array; your_adapter.notifyDataSetChanged(); }
[ 0.08728557080030441, -0.387069433927536, 0.1717079132795334, -0.04116102680563927, 0.12206969410181046, 0.046237729489803314, 0.597273051738739, -0.5878103375434875, -0.03787416219711304, -0.47330179810523987, -0.1571693867444992, 0.6050217151641846, -0.6043384075164795, -0.019561503082513...
} }); Thanks ```
[ 0.1565050184726715, 0.4212624430656433, 0.5355949997901917, -0.3498174548149109, 0.40182268619537354, -0.056881118565797806, 0.34777167439460754, 0.3979833424091339, 0.364556223154068, -0.36530396342277527, -0.474004328250885, 0.6991973519325256, -0.13276582956314087, 0.053026359528303146,...
I have a devise user model with pro boolean column.I want to build a public page for each of them but only if user is pro.How can i approach it? That's quite straightforward. First you need to change your user.rb model and add the new column to the attr\_accessible, so it looks something like ... ``` attr_accessible ...
[ 0.056066423654556274, 0.061373841017484665, 0.38566604256629944, -0.06383366137742996, -0.11390039324760437, 0.23751887679100037, 0.1392429918050766, -0.3975968062877655, -0.05139690637588501, -0.6711153984069824, 0.12801013886928558, 0.5591262578964233, -0.4940279722213745, 0.400982797145...
documentation a bit more and perhaps check out this [post](https://stackoverflow.com/questions/6034410/before-filter-with-devise)
[ 0.3679535388946533, -0.26362067461013794, 0.12717342376708984, 0.3817474842071533, 0.15143835544586182, -0.4635907709598541, 0.06493622809648514, -0.2255106270313263, -0.31162506341934204, -0.5284085869789124, -0.032040733844041824, 0.47698643803596497, 0.03821641579270363, -0.167899519205...
I have the following interface ``` public interface IHandler<T> { void Handle(T myObject); } ``` I'd like to have a `HandlersManager` class with holds a mapping between object types to their corresponding handler, but I'm not sure how I'm supposed to define the object that hold this mapping. For example, what I...
[ 0.025275645777583122, -0.022604240104556084, 0.14834323525428772, -0.10892236977815628, -0.24292707443237305, 0.041137609630823135, 0.06999041885137558, -0.10570599138736725, -0.0487898513674736, -0.9619572162628174, 0.31791627407073975, 0.4051046371459961, -0.3757858872413635, 0.138479232...
that I have completely missed? That's as good as it can get with only a generic `IHandler<T>` interface. In order to explore more options, we could define a non-generic version of the interface: ``` public interface IHandler { void Handler(object myObject); } ``` Then you could also define a generic abstract ba...
[ 0.12950925529003143, -0.05721401050686836, 0.2622075378894806, -0.014917857013642788, -0.15300938487052917, -0.12890954315662384, 0.22397403419017792, -0.08393280953168869, -0.1795622557401657, -0.5269929766654968, -0.14882232248783112, 0.29504474997520447, -0.49539244174957275, 0.48428320...
you can directly call `IHandler.Handle` on the values you pull out of it: ``` var obj = /* whatever */ dictionary[obj.GetType()].Handle(obj); ``` On the other hand we now have an additional interface and an abstract base class just to hide a cast from "user" code, which doesn't sound very impressive.
[ 0.02611016482114792, 0.21330446004867554, 0.23590105772018433, -0.18668800592422485, -0.25595641136169434, -0.04959430173039436, 0.16952954232692719, -0.013764606788754463, -0.01745861954987049, -0.7586091756820679, 0.03466907888650894, 0.44437283277511597, -0.1661348193883896, 0.079136937...
Please help me understand this recursive function... ``` var stack = Array; function power(base, exponent){ if ( exponent === 0 ) { return 1; } else { stack[exponent-1] = base * power(base, exponent - 1); return stack[exponent-1]; } } ``` I dont understand what ``` stack[exponent...
[ -0.05420970916748047, -0.08467969298362732, 0.47246888279914856, -0.01459233183413744, 0.07766485214233398, -0.3274034857749939, 0.38443320989608765, -0.6475226283073425, -0.16936703026294708, -0.27757132053375244, -0.19642053544521332, 0.7376081347465515, -0.32314348220825195, -0.14866742...
return 1; } else { stack[exponent-1] = base * power(base, exponent - 1); console.log(stack[exponent-1]);return stack[exponent-1]; } } ``` O/P: ``` power(2,5) 2 4 8 16 32 ``` So function class recursively until exponent become 0 (nth call), then it will start returning results ``` first it...
[ -0.321602463722229, -0.23690709471702576, 0.6446731686592102, -0.21392540633678436, 0.1374751180410385, -0.0030526556074619293, 0.3015255928039551, -0.6982660889625549, 0.01113303191959858, -0.31188058853149414, -0.41280338168144226, 0.8011386394500732, -0.10008315742015839, 0.090194471180...
of n-1 call) then 2 * 4 (return of n-2 call) and so on ```
[ -0.02544671669602394, 0.18222716450691223, 0.4179683029651642, -0.4441206753253937, -0.16219252347946167, 0.16534799337387085, 0.3401186764240265, -0.5777665376663208, -0.1246064156293869, -0.32633456587791443, -0.5278635621070862, 0.7099209427833557, -0.4249453544616699, 0.158351808786392...
> **Possible Duplicate:** > > [Is it possible to append to innerHTML without destroying descendants' onclick functions?](https://stackoverflow.com/questions/595808/is-it-possible-to-append-to-innerhtml-without-destroying-descendants-onclick-fu) I want to convert an Array to a HTML table, but innerHTML deletes it wr...
[ 0.06937256455421448, -0.007836693897843361, 0.4126995801925659, -0.1667495220899582, -0.02020960859954357, 0.3199142813682556, 0.25650927424430847, -0.40332579612731934, -0.20186088979244232, -0.3605540096759796, -0.135442316532135, 0.4578743577003479, -0.42806872725486755, 0.0456260964274...
document.getElementById("tablaP").innerHTML = '<td><td>' } document.getElementById('tablaP').innerHTML = '</tr>' h++ } document.getElementById('tablaP').innerHTML = '</table>' } ``` this can easily be done by building up your html string and then applying it with one call: ``` function...
[ 0.11774224787950516, 0.043076641857624054, 0.5490713119506836, -0.08694882690906525, -0.06898318976163864, -0.051547519862651825, 0.1674956977367401, -0.42720529437065125, -0.05794849246740341, -0.5025392174720764, -0.4003707766532898, 0.7647303342819214, -0.2700274884700775, 0.06243412941...
for (j=0;j<miArray[i].length;j++){ html += '<td></td>' ; } html += '</tr>'; h++; } html += '</table>'; document.getElementById('tablaP').innerHTML =
[ -0.03948071971535683, -0.4582361578941345, 0.5649290084838867, -0.11621525138616562, 0.1613887995481491, 0.2143150120973587, 0.2961804270744324, -0.3984467089176178, -0.21615907549858093, -0.3434513807296753, -0.5979667901992798, 0.3706394135951996, -0.49182242155075073, 0.0566964112222194...
html; } ``` EDIT: Fixed all the code formatting!
[ 0.05771520733833313, 0.21385079622268677, 0.18574579060077667, -0.08434384316205978, -0.15237931907176971, -0.2814925014972687, 0.27632448077201843, 0.1956828087568283, -0.3150363862514496, -0.4317189157009125, -0.4891279339790344, 0.5043802261352539, -0.6344214677810669, -0.03340807557106...
In rails, jQuery token input is not allowing custom entry. I have downloaded 1.6.0 version of token input but i can't enter custom entry. As soon as i enter some text in a text box & take out cursor, the text will disappears. Only i need to select from auto completion list. Eg :- If i am using below kind of script fu...
[ -0.05786721035838127, -0.18719229102134705, 0.14915624260902405, -0.08141371607780457, -0.18865302205085754, -0.07807313650846481, 0.12170854210853577, -0.11896456032991409, -0.095009446144104, -0.7020149230957031, 0.2193503975868225, 0.3378351330757141, -0.287372350692749, -0.020856924355...
}); } </script> </pre> ``` Please give me the solution for this, token input should allow the custom entry. This should hopefully be fixed soon in the Tokeninput master branch, but in the meantime, merging [this branch](https://github.com/loopj/jquery-tokeninput/pull/291) into your own fork should fix this for you.
[ 0.07805033028125763, -0.2090422809123993, 0.263342946767807, -0.06395797431468964, -0.013312729075551033, -0.09823256731033325, 0.15445101261138916, 0.04551144316792488, -0.17818526923656464, -0.8332072496414185, 0.07284063845872879, 0.30358266830444336, -0.1520860344171524, 0.051221001893...
just i print the two table data so i am using inner join ``` SELECT sd.GameName FROM LottoryTickets AS sd JOIN group AS p ON sd.Group = p.groupname WHERE p.groupname = 11 ``` now i get #106`4 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the r...
[ -0.10865016281604767, 0.04554200544953346, 0.4019036889076233, -0.09142084419727325, -0.17924311757087708, -0.06259886175394058, 0.04756839945912361, -0.15640480816364288, -0.1100100576877594, -0.8124867081642151, -0.05711091309785843, 0.6128895878791809, -0.09610850363969803, -0.206061154...
to call a table by that name, you have to surround the name with backticks; ``` SELECT sd.GameName FROM LottoryTickets AS sd JOIN `group` AS p ON sd.Group = p.groupname WHERE p.groupname = 11 ```
[ -0.23650577664375305, -0.021847683936357498, 0.23895443975925446, -0.043670717626810074, -0.19502469897270203, 0.07167009264230728, -0.3312726616859436, -0.4358625113964081, -0.3565438985824585, -0.6165445446968079, -0.23884418606758118, 0.1100277453660965, -0.0448412224650383, -0.01276838...
I'm working on a 2d, top-down helicopter game that poses a unique (to me at least) challenge and I'm hoping the stack community can offer some suggestions. I need the helicopters to be able to rotate, as well as the door guns being able to rotate. If I put them in a movieclip, then it's not problem and life is beautifu...
[ 0.6502429246902466, -0.053161464631557465, 0.4336439371109009, 0.467413067817688, 0.391854852437973, -0.24624603986740112, -0.11025232076644897, -0.3244192898273468, -0.29486531019210815, -0.444169819355011, 0.1778169721364975, 0.7548387050628662, 0.12585857510566711, 0.07295577228069305, ...
the guns in 2d as well as rotating them? Thanks in advance for any suggestions (except "google it"- I've done that quite a bit) `group` is a keyword in MySQL, if you want to call a table by that name, you have to surround the name with backticks; ``` SELECT sd.GameName FROM LottoryTickets AS sd JOIN `group` AS p...
[ 0.32112330198287964, 0.1370590329170227, 0.35737505555152893, -0.057118650525808334, -0.3647870421409607, 0.06382932513952255, -0.17311958968639374, -0.6818965077400208, -0.3419414460659027, -0.2948876917362213, -0.07348204404115677, 0.37341541051864624, -0.23300299048423767, -0.2602851390...
My application has a static broadcast receiver that listens to specific data sms on port 50011 to wake up the application and run. I tested the app on a wide range of android devices (android 2.1 -> android 2.3.4) and it is working perfectly. However, I am trying it now on Samsung Galaxy Nexus running Android 4.0.2 an...
[ 0.44083040952682495, 0.14445172250270844, 0.5179265737533569, -0.2531551420688629, -0.05020963028073311, -0.0755116268992424, 0.6611005067825317, 0.027776408940553665, -0.11472302675247192, -0.6364426612854004, 0.024816345423460007, 0.712923526763916, -0.49123910069465637, -0.0382976271212...
<receiver android:name=".SmsListener"> <intent-filter android:priority="10" > <action android:name="android.intent.action.DATA_SMS_RECEIVED" /> <data android:scheme="sms" /> <data android:host="localhost" /> <data android:port="50011" /> </intent-...
[ -0.014560473151504993, -0.19666120409965515, 0.8360832333564758, -0.5709406137466431, -0.1292056143283844, 0.18068508803844452, 0.8119296431541443, -0.3473256528377533, -0.2496839314699173, -0.5220418572425842, -0.27784207463264465, 0.48996594548225403, -0.4936210513114929, -0.214536890387...
one of it's activities was launched by the user. In my case the app didn't contain any Activity. I added an activity and it is working again. :D Thanks everyone for your help.
[ 0.7796902656555176, -0.27719518542289734, 0.2948780655860901, 0.33421677350997925, -0.13505026698112488, -0.21906618773937225, 0.1891288310289383, 0.3633900284767151, 0.07411213219165802, -0.6168525815010071, -0.029483124613761902, 0.32513555884361267, 0.13900049030780792, -0.1511880457401...
I want to replace some text to other text which contains elements of basic text. For example: ``` text text blabla HYPERLINK "mailto:x@x.com"x@x.com text text ``` I want to replace `HYPERLINK "mailto:x@x.com"x@x.com to <a href="x@x.com">x@x.com</a>` So the result should be: ``` text text blabla <a href="x@x.com">...
[ 0.14940904080867767, 0.161783829331398, 0.20692232251167297, -0.1416737139225006, -0.20268021523952484, -0.4363909363746643, 0.12912720441818237, -0.2594603896141052, 0.01740817166864872, -0.5700437426567078, -0.07064968347549438, 0.6717581748962402, -0.5574377775192261, 0.3240834474563598...
better to do a white list and mark all properties you DO want to be serialized. This is more safe, because it requires the developer to explicitly state that they want a property to be serialized when introducing a new property. **Black-listing of properties:** If you really want to do black listing, you can use the ...
[ 0.28386473655700684, -0.0813959389925003, -0.28425174951553345, 0.29148295521736145, -0.11348307877779007, -0.3709442913532257, 0.21502685546875, 0.11825186759233475, -0.3959715664386749, -0.8549438118934631, -0.17175158858299255, 0.5414259433746338, -0.25052592158317566, 0.304307818412780...
advantages/disadvantages. **Edit:** Expanded my answer
[ 0.005772118456661701, -0.07376699149608612, 0.23227311670780182, 0.174753338098526, -0.101249560713768, 0.26363953948020935, -0.17885716259479523, -0.41962599754333496, -0.0012936858693137765, -0.595489501953125, -0.08639954775571823, 0.20661209523677826, 0.1220441684126854, -0.34777697920...
How can i create .KMZ (google earth file format) programmatically? .KMZ contains a .KML file (XML for location based data) and images in a directory named 'files', the KML and files directory compressed together makes KMZ. Now the challenge here is to compress the files into a KMZ format. How can i do that? <http://c...
[ 0.5252041220664978, 0.019493388012051582, 0.39007532596588135, 0.31407052278518677, 0.12880775332450867, -0.08272714912891388, -0.11511317640542984, -0.1269078254699707, -0.19507476687431335, -0.7582193613052368, -0.14236094057559967, 0.03545939922332764, -0.41118279099464417, 0.0875054150...
I want to customise the (+) sign that appears on the left side of tree view Is it possible I want to place image in that place i have tried to customise and searched the forums also Blackberry forums where one of them said its not possible but then i got a link for this As below which says it is possible <http:/...
[ 0.2937835454940796, 0.0161762535572052, 0.2510620951652527, 0.020192157477140427, 0.014892383478581905, 0.33553481101989746, 0.3703828752040863, -0.08118415623903275, -0.18172430992126465, -0.44578269124031067, 0.23347292840480804, 0.47085121273994446, -0.013414892368018627, -0.04465116187...
of a [TreeField](http://docs.blackberry.com/en/developers/deliverables/6022/net/rim/device/api/ui/component/TreeField.html) ***rather than writing your own tree field*** then you can try re-writing the [drawTreeItem](http://docs.blackberry.com/en/developers/deliverables/6022/net/rim/device/api/ui/component/TreeFieldCal...
[ -0.48226454854011536, -0.04812309145927429, 0.6445844769477844, -0.22784574329853058, 0.1383855640888214, 0.5008357763290405, 0.10128004103899002, -0.3724046051502228, -0.2487235814332962, -0.4878586530685425, -0.6319758296012878, 0.45709261298179626, -0.06996911019086838, 0.04869995266199...