pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
38,028,012 | 0 | <p>If you assign <code>this</code> reference to a member variable, you have a recursion. Yes, it doesn't matter how many <code>s</code>'s you'll add, because they are always the same object, which is <code>this</code> object. It's the same as if you wrote:</p> <pre><code>this.this.this.this.this.this.x++; </code></pre... |
338,945 | 0 | What are some reasons I might be receiving this "Symbol not defined" error in Visual Studio 2005 (screenshot included) <p>When debugging my VS2005 project, I get the following error when I attempt to step into the function that returns the <em>vScenarioDescriptions</em> local variable it's struggling with...</p> <p><em... |
22,225,908 | 0 | <p>You're getting an exception from the DirectoryInfo object, so you need to use try / catch:</p> <pre><code>function Get-HugeDirStats ($directory) { function go($dir, $stats) { try { foreach ($f in $dir.GetFiles()) { $stats.Count++ $stats.Size += $f.Length } foreach ($d in $dir.GetDirectories()) { go $d $stats } } ca... |
21,868,051 | 0 | Laravel 4 - ErrorException Undefined variable <p>Trying to bind model to the form to call update function, but model is not found. </p> <pre><code>{{ Form::model($upload, array('url' => array('uploads/update', $upload->id), 'files' => true, 'method' => 'PATCH')) }} </code></pre> <p>Controller to get edit vi... |
9,247,315 | 0 | <p>Your best bet is probably <a href="http://www.sqlite.org/" rel="nofollow">SQLite</a>, a database engine. From Apple's <a href="https://developer.apple.com/technologies/ios/data-management.html" rel="nofollow">iOS Data Management</a> page:</p> <blockquote> <p>iOS includes the popular SQLite library, a lightweight ye... |
39,179,728 | 0 | <p><code>uib-accordion-group</code> provides you with a parameter <code>is-open</code>. You can just feed in a truthy value for newly created elements and they will be automatically opened.</p> <p>See the documentation for reference: <a href="https://angular-ui.github.io/bootstrap/#/accordion" rel="nofollow">https://a... |
29,850,405 | 0 | <p>There is the <code>bool</code> function in <code>Data.Bool</code>:</p> <pre><code>import Data.Bool bool b a (x == y) </code></pre> |
2,686,454 | 0 | How to rollback in EF4 for Unit Test TearDown? <p>In my research about rolling back transactions in EF4, it seems everybody refers to <a href="http://blogs.msdn.com/alexj/archive/2009/01/11/savechanges-false.aspx" rel="nofollow noreferrer">this blog post</a> or offers a similar explanation. In my scenario, I'm wanting ... |
15,739,734 | 0 | <p>You can use javascript's <code>substr()</code> and <code>.lastIndexOf()</code>:</p> <pre><code>var url = '/Home/LoadData?page=2&activeTab=House'; // window.location.href; var activeTab = url.substr(url.lastIndexOf('=')+1); // outputs House </code></pre> <h3><a href="http://jsfiddle.net/gjkrZ/" rel="nofollow">Fi... |
18,971,283 | 0 | breeze js apostraphe causing query to fail <p>I'm using the breeze-mongo node module and when performing a query for an entity name which has an apostrophe the server is throwing an exception.</p> <p>Query example:</p> <pre><code>EntityQuery.from('People') .where('name', '==', "brian's") </code></pre> <blockquote> <p>E... |
17,752,918 | 0 | <p>Here is an example of how to delete a solr index with curl:</p> <p><a href="https://gist.github.com/nz/673027" rel="nofollow">https://gist.github.com/nz/673027</a></p> <p>For windows, check this out:</p> <p><a href="http://stackoverflow.com/questions/17106996/how-to-post-xml-data-with-curl-using-cmd-in-windows-7">H... |
40,363,669 | 0 | Contextual type 'AnyObject' cannot be used with dictionary literal multi level dictionary <p>I'm running into an issue with creating a multi-level dictionary in Swift and have followed some of the suggestions presented here:</p> <pre><code>var userDict:[String:AnyObject]? = ["SystemId": "TestCompany", "UserDetails" : [... |
36,032,002 | 0 | Crystal Report not supporting to style attribute of Paragraph tag <p>Crystal Report is not supporting the style attribute of the paragraph tag. Why this is happening? Just freaked out with this problem since yesterday. Here is my HTML code which is I am putting on the Crystal Report:</p> <pre><code>paragraph tag"<p&... |
40,528,566 | 1 | How to aggregate values over a bigger than RAM gzip'ed csv file? <p>For starters I am new to bioinformatics and especially to programming, but I have built a script that will go through a so-called VCF file (only the individuals are included, one clumn = one individual), and uses a search string to find out for every v... |
20,651,236 | 0 | Sync branches in git <p>I'm sure this is a simple one but I haven't been able to find the answer online, even after much Googling.</p> <p>I have Git installed on my machine, for which I followed the tutorial on the Github site. Following this made my machine master. Now, I need to work on a different branch. So I creat... |
38,319,615 | 0 | can we create compact table(excel-like) from normal table using javascript? <p>need to know that how can i form excel-like layout table from normal table.</p> <p>Child node should come under parent node in next row with indentation.</p> <p><img src="https://i.stack.imgur.com/173kk.png" alt="Excel-Like"></p> |
10,420,003 | 0 | <p>Give this a try:</p> <pre><code>select max(s.sNum) result from s2tmap st join s on st.sId = s.sId where st.tId = '000' and not exists ( select * from temp where temp.newId = st.sId) </code></pre> <p>Here is the <a href="http://sqlfiddle.com/#!5/26124/9" rel="nofollow">fiddle</a> to play with.</p> <p>Another option,... |
29,171,879 | 0 | <p>Yes, this is possible. The syntax is a bit different, however.</p> <pre><code>if key in myDict: if innerKey in myDict[key]: myDict[key][innerKey] += 1 else: myDict[key][innerKey] = 0 </code></pre> |
31,604,287 | 0 | Script not working in wordpress <p>I would like to move the following page</p> <p><a href="http://cliponexpress.com/customize-your-clipon.html" rel="nofollow">http://cliponexpress.com/customize-your-clipon.html</a></p> <p>Into this wordpress page</p> <p><a href="http://cliponexpress.com/customizeit/" rel="nofollow">htt... |
37,334,888 | 0 | Reduce Transparency setting in OS X makes white text in NSButton in popover disappear <p>I'm working on an OS X app that involves popovers with web views in them. The web views have <code>drawsBackground</code> set to <code>NO</code>. Sometimes there are buttons in these popovers, on top of the web views. These buttons... |
8,436,066 | 0 | <p>Check out <code>clojure.contrib.repl-utils</code>, and <code>show</code> in particular.</p> <p><a href="http://richhickey.github.com/clojure-contrib/repl-utils-api.html#clojure.contrib.repl-utils/show" rel="nofollow">http://richhickey.github.com/clojure-contrib/repl-utils-api.html#clojure.contrib.repl-utils/show</a... |
6,651,537 | 0 | <p>For detecting CTRL + F:</p> <pre><code>event.ctrlKey == true && event.keyCode == Keyboard.F </code></pre> <p>where 'event' is of course a KeyBoardEvent.</p> <p>As for the F3 question: the code you wrote will work as long as the flash application has focus. The F3 key command will then also not be routed to ... |
18,350,101 | 0 | What is the best practise to maintain authenticated user details in an ASP.NET Intranet MVC application <p>I am developing an Intranet.NET MVC application. I need to store user details like location, ID Number etc associated with each authenticated users. </p> <p>In .NET Webform applications we used to save the logged ... |
13,431,881 | 0 | <p>Its purely a CSS thing.It depends upon the DOM where are you trying to show the out put.. You can put them in separate DOM and apply margin or float and display as like you want..</p> <pre><code><div style = "float:left"><?php wpfp_link();?></div> <div style = "float:right"><?php the_view... |
36,503,536 | 1 | Send Video over TCP using OpenCV and sockets in Raspberry Pi <p>I have been trying to send live video frame from my client (Raspberry Pi) to a server hosted on Laptop. Both these devices are connected to the same network.</p> <p>Server.py</p> <pre><code>import socket import sys import cv2 import pickle import numpy as ... |
29,208,500 | 0 | <p>Thanks to you both, you were indeed correct Ken, I had read this similar post a lot of times, and somehow didnt understand the answer within: </p> <p><a href="http://stackoverflow.com/questions/3188816/calling-object-methods-internally-in-dojo">Calling object methods internally in dojo</a></p> <p>After reading what... |
28,751,931 | 0 | How to mutually exclude two (or more) boolean flags using json shema? <pre><code>{ flag1: true, flag2: false } -> ok { flag1: false, flag2: true } -> ok { flag1: true } -> ok { flag2: true } -> ok { flag1: false, flag2: false } -> ok { } -> ok { flag1: false } -> ok { flag2: false } -> ok { flag... |
30,757,178 | 0 | <p>I hit a similar issue and solved it using version 1.1.4 of <a href="https://github.com/google/google-api-php-client" rel="nofollow">google-api-php-client</a></p> <p>Assuming the following code is used to redirect a user to the Google authentication page:</p> <pre><code> $client = new Google_Client(); $client->se... |
7,608,511 | 0 | Java POI : How to read Excel cell value and not the formula computing it ? <p>I am using Apache POI Api to getting values from an Excel file. Everything is working great except with cells containing formulas. In fact, the cell.getStringCellValue() is returning the formula used in the cell and not the value of the cell.... |
34,298,113 | 0 | <p>Download the akka for eclipse from below location </p> <p><a href="http://downloads.typesafe.com/akka/akka_2.11-2.4.1.zip?_ga=1.167921254.618585520.1450199987" rel="nofollow">http://downloads.typesafe.com/akka/akka_2.11-2.4.1.zip?_ga=1.167921254.618585520.1450199987</a></p> <p>extract the zip </p> <p>add dependenci... |
4,192,812 | 0 | Parsing pair of floats <p>Given a string like: <code>"0.123, 0.456"</code> what is the simplest way to parse the two float values into two variables <code>a</code> and <code>b</code>?</p> |
38,678,120 | 0 | <p>What you are referring in Java is called <a href="http://docs.oracle.com/javase/tutorial/java/javaOO/innerclasses.html" rel="nofollow">anonymous inner class</a> - you are actually declaring a one-time derived class inline.</p> <p><strong>Unfortunately</strong> Swift doesn't have this feature.</p> <p><strong>But</st... |
16,443,877 | 0 | <p>I had the same trouble, went to see whether the suggested fix from <a href="https://svn.boost.org/trac/boost/ticket/4209" rel="nofollow">Boost Ticket #4209</a> worked, which didn't. I could see the total number of the elements, but not the content.</p> <p>So, the choices are, to switch to VS2012, for which there is... |
3,654,257 | 0 | <p>You need to retain a copy of the AdMob AdViewController as Admob no longer does this itself.</p> <p>In your viewcontroller.h add something like</p> <pre><code>IBOutlet AdViewController *localAdViewController; </code></pre> <p>inside the @interface section, and add</p> <pre><code>@property (nonatomic, retain) AdView... |
40,175,236 | 0 | SSL not working between Linux and Windows <p>I have gone through loads of material present on internet for SSL. I followed the steps and created self signed certificate on server (linux) using keytool. Server keystore was already having an entry as ( CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown),... |
9,699,338 | 0 | <p>Hum... Norwegian is included in UTF8.</p> <p>You surely have an encoding problem. It's strange, i never face that with localisables...</p> <p>However, becareful, you have a syntax error in your english localisable : you must finish every line with <strong>;</strong></p> <pre><code>"of"="of"; </code></pre> |
9,482,952 | 0 | <p>You need to make sure all of your assemblies are compiling for the correct architecture. Try changing the architecture for x86 if reinstalling the COM component doesn't work.</p> |
17,660,504 | 0 | GXT get value of TextArea without focus loss <p>I have a GXT 3 TextArea on which I catch copy-paste events. On this event, I would like to get the text that is inside the textarea.</p> <p><strong>Problem</strong> : the textarea still has the focus so the value is not updated. Hence, <code>getValue()</code> returns an e... |
33,355,290 | 0 | <p>The API and all client libraries in turn will return actual objects when they are queried for. However, when referencing an object in the API you do so with just the object's ID. </p> <p>Therefore, in your code above, <code>workspace</code> holds the actual workspace object. In order to use that in a query you must... |
19,975,386 | 0 | <p>Threads do not work, abstain from that approach.</p> <p>Creating several threads fails, as you have noticed, because only one thread has a current OpenGL context. In principle, you <em>could</em> make the context current in each worker thread before calling <code>glReadPixels</code>, but this will require extra syn... |
31,219,272 | 0 | Selector in Method over riding <p>In the case of method over riding in objective c how selector knows that which method needs to call via selector?</p> <p>As we dont pass any arguments in slector section...</p> <p>Ex: in <code>tmp.m</code> file There is 2 methods with different arguments</p> <pre><code>-(void)details {... |
9,455,032 | 0 | <p>You can't: floating point numbers aren't exact values, only estimations, by definition. You are supposed to get such deviations.</p> |
35,525,200 | 0 | My getter and setter functions for Tic Tac Toe are not working <p>Hello I am learning C++ and I need help with my programming code. I am trying to make my private char variable accessible by the local functions inside the class so that I may display it inside Int main(). Everytime I run the compiler it gives me the err... |
30,950,216 | 1 | Unit testing Python Flask Stream <p>Does anybody have any experience/pointers on testing a Flask Content Streaming resource? My application uses Redis Pub/Sub, when receiving a message in a channel it streams the text 'data: {"value":42}' The implementation is following Flask docs at: <a href="http://flask.pocoo.org/do... |
8,338,593 | 0 | How to get the selected radio button value from five radio buttons in android? <p>I need to get the selected radio button value out of 5 radio buttons. I have done like :</p> <p><strong>Radio button values from db:</strong></p> <pre><code>op1=(RadioButton)findViewById(R.id.option1); op2=(RadioButton)findViewById(R.id.o... |
14,904,263 | 0 | <p><code>HasColumnType("datetime")</code> specifies the column type, not the temporary parameter types that are used in the SQL statements. You can't control those and it's not necessary. If you have a .NET <code>DateTime</code> in your application with some decimal places filled and want to store that in a <code>date... |
24,128,315 | 0 | <p>I recommend the following:</p> <pre><code>require 'yaml' data = YAML.load_file '<filename>' data.sort_by{|hash| hash[:key1]} </code></pre> <p>Your file looks quite a bit like JSON data, but includes a few minor formatting differences that make using a JSON parser impossible. Thankfully the data is perfectly v... |
13,537,482 | 0 | Open Elfinder 2.X from input field <p>In my CMS I used Elfinder 1.X, which was integrated into CKEditor and I could open an other instance by clicking an input as well. Now I updated Elfinder to 2.0 and the input doesn't want to work anymore. </p> <p>Here's the code I had:</p> <pre><code>function load_elfinder($id) { $... |
38,930,779 | 0 | How to create email form PHP (HTML5) <p>I'm a little bit new with with php and i just want to ask how can i make the the "Send Message" button send the inputted information on the form i created to my email.</p> <p>Here's the code:</p> <pre><code> <section id="three"> <h2>Email Me!</h2> <p>You w... |
10,122,569 | 0 | <p>Relations are defined by predicates in Prolog. There is no built-in (but you could do it for example by using term expansion) syntactic way to define predicates inside predicates in program text, and there seems little reason to do so. You can simply write separate predicates and refer to them. You <em>can</em> of ... |
18,397,644 | 0 | FXG ScaleGrid on BitmapImage not working <p>Does anyone encounter this? FXG ScaleGrid seem to be not working on BitmapImage. Below are my code:</p> <pre><code><Graphic version="2.0" xmlns="http://ns.adobe.com/fxg/2008" scaleGridTop="6" scaleGridLeft="6" scaleGridRight="94" scaleGridBottom="54" > <Rect width="1... |
26,121,708 | 0 | <p>This should do what you want:</p> <pre><code>select si.Rollnumber, max(case when si.Property = 'Name' then si.Value end) as Name, max(case when si.Property = 'Year' then si.Value end) as Year, max(case when si.Property = 'City' then si.Value end) as City from StudentInfo si group by si.Rollnumber; </code></pre> |
19,327,731 | 0 | How to find the vertical and horizontal distance from the center of a rectangle <p>For my current Java project I have to compute the horizontal and vertical distance from the center of a rectangle. I tried using the formula from a previous project to find such a distance. Here is my code:</p> <pre><code> // Calculation... |
13,065,225 | 0 | display multiple row for one record in jqgrid <p>hi i want to display the multiple row for single record in jqgrid. For example if a grid has 10 columns such as c1,c2,c3...c10 and values such as va1,va2,va3....,va10 and vb1,vb2,vb3....,vb10 and so on. it should display as,</p> <p>---------------------- ->Headers</p> <h... |
13,823,707 | 0 | Creating a list of most popular posts of the past week - Wordpress <p>I have created a widget for my Wordpress platform that displays the most popular posts of the week. However, there is an issue with it. It counts the most popular posts from <strong>Monday</strong>, not the past 7 days. For instance, this means that ... |
37,470,417 | 0 | Use json-simple (Java, Eclipse) to convert a txt file to JSON file, some special characters does not shown properly in JSON file <p>I am using json-simple to parse a txt file to JSON file. The data I need contains some special characters (emoticon) such as "(●⁰౪⁰●)(//●⁰౪⁰●)//" and " "˭̡̞(◞⁎˃ᆺ˂)◞<em>✰". The result JSON ... |
29,940,766 | 0 | <pre><code>var Book = {"Titles":[ { "Book3" : "BULLETIN 3" } , { "Book1" : "BULLETIN 1" } , { "Book2" : "BULLETIN 2" } ]} var findbystr = function(str) { var return_val; Book.Titles.forEach(function(data){ if(typeof data[str] != 'undefined') { return_val = data[str]; } }, str) return return_val; } book = findbystr('Bo... |
16,865,164 | 0 | <p>Chrome (or any other browser) doesn't support HTAs at all. Actually HTAs are run by mshta.exe, and IE is used as a rendering & scripting engine.</p> <p>When HTA is run with IE9 (<code><meta http-equiv="x-ua-compatible" content="IE=9"></code>) there are some issues with <code><HTA: application></code... |
4,346,901 | 0 | Suggestion for solving fragile pattern matching <p>I often need to match a tuple of values that should have the same constructor. The catchall <code>_,_</code> always winds-up at the end. This of course is fragile, any additional constructor added to the type will compile perfectly fine. My current thoughts are to have... |
15,846,265 | 0 | Using break; in Struts1 <logic:iterate> <p>I am using Struts 1.2 for my Web Application. I am iterating through a garments collection and searching whether any of the garments price is greater than $1000 or not. If any of them satisfies the condition then no need to iterate through the remaining garments collection, si... |
6,185,983 | 0 | <p>The second argument to <a href="http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/search_002dforward.html" rel="nofollow"><code>search-forward</code></a> bounds the search, so to search for a string on the current line, go to the start of the line, and use the end of the line as your bound:</p> <pre><cod... |
22,576,505 | 0 | <p>Use the <code>replace</code> method:</p> <pre><code>function cap(str) { return str.replace(/([a-z])/, function (match, value) { return value.toUpperCase(); }) } </code></pre> <p><a href="http://jsfiddle.net/tewathia/LuF2e/" rel="nofollow">DEMO</a></p> <p><strong>Edit</strong>: In case you have a string containing m... |
8,116,829 | 0 | JSF 2.0 has Bean Validation (JSR 303) and also its own Validation Framework <p>JSF 2.0 has offered <code>Bean Validation</code> (JSR 303) and its own <code>Validation framework</code>, given the choices, i am confused with which one to choose from. </p> <p>It seems that with JSF's validation framework, i may specify co... |
17,511,761 | 0 | <p>This one works for me very well. <code>(https?|ftp)://(www\d?|[a-zA-Z0-9]+)?\.[a-zA-Z0-9-]+(\:|\.)([a-zA-Z0-9.]+|(\d+)?)([/?:].*)?</code></p> |
39,684,521 | 0 | <p>Update your compateString method as follows:</p> <p>u need to compare each step of the id alone.</p> <pre><code>public static int compareString(String str1, String str2){ String subString = str1.substring(str1.indexOf("##")+3, str1.length()); String subString1 = str2.substring(str2.indexOf("##")+3, str2.length()); ... |
16,873,967 | 0 | .htaccess URL rewrite works, but address bar then shows 'dirty' URL <ul> <li>User clicks link (from their email): <code>http://www.site.com/edit/wih293f73y</code></li> <li>Browser window opens and gets them to the correct page.</li> <li>But now the browser's address bar shows: <code>http://www.site.com/editor.php?editC... |
37,984,296 | 0 | <p>In the documentation, there is nowhere mentioned that it's possible to launch a Simulation directly from an Object's main method. For a very good reason: it's not!</p> |
11,244,025 | 0 | <p><code>Process.Start</code> will attempt to open the file in the computer it is running (the server).</p> <p>This is unlikely to be what you want. You should be uploading the file to the browser and let it decide (using <code>Response.WriteFile</code>, for instance).</p> |
10,099,325 | 0 | <p>Here is my list <em>(updated for 1.0)</em>:</p> <pre><code>// sending to sender-client only socket.emit('message', "this is a test"); // sending to all clients, include sender io.emit('message', "this is a test"); // sending to all clients except sender socket.broadcast.emit('message', "this is a test"); // sending... |
2,802,273 | 0 | <ul> <li>Read the <a href="http://floating-point-gui.de/basic/" rel="nofollow noreferrer">Floating-Point Guide</a></li> <li><em>Never</em> use <code>double</code> or <code>float</code> for money amounts</li> <li>Use <code>BigDecimal</code> instead, that's exactly what it's for</li> </ul> |
4,589,800 | 0 | <p>join is faster</p> <pre><code>SELECT COUNT(comments.uid) FROM comments JOIN user_relationships ON user_relationships.requestee_id = comments.uid WHERE user_relationships.requester_id = $some_id </code></pre> |
19,127,847 | 0 | <p>Just use <a href="http://php.net/manual/en/function.print-r.php">print_r</a> :</p> <pre><code>echo '<pre>'; print_r ($myArray); echo '</pre>'; </code></pre> <p>It will display information about your variable in a way that's readable by humans. can be used with arrays and objects.</p> |
28,719,778 | 0 | How to add PATH more than one values in Environment variable? <blockquote> <p>Is this correct way of adding PATH to env setup</p> </blockquote> <pre><code>C:\Program Files\Java\jdk1.7.0_71\bin;C:\Workspace\BS4SVN\BS4SVN-v.1.33.0\ant\bin;D:\Softwares\apache-maven-3.2.3\bin </code></pre> |
10,316,217 | 0 | How to see output in Amazon EMR/S3? <p>I am new to Amazon Services and tried to run the application in Amazon EMR.</p> <p>For that I have followed the steps as:</p> <p>1) Created the Hive Scripts which contains --> create table, load data statement in Hive with some file and select * from command.</p> <p>2) Created the... |
19,045,469 | 0 | javascript: null variable in function changes its value? <p>Can a null variable in a function become not null? When f enters in function chainF it somehow changes its value? It isn't null anymore.</p> <pre><code>function TestF(){} TestF.prototype = { i: 0, f: null, chainF: function(g){ if(this.f == null) console.log('f... |
40,066,740 | 0 | <p>There might be other problems in your snippet, so far I've noticed you're using <code>std::map</code> which is unusual data-structure for this purpose as <code>std::map</code> will overwrite previous <code>nodeId</code> with same <code>weight</code>. You can use <code>std::multimap</code> but you will need some mor... |
37,636,328 | 0 | <p>Your function is not "returning" anything. It prints a value to stdout, and each invocation will do that.</p> <p>If you want to simulate a function return with this mechanism, you need to capture and resend the value:</p> <p>Bash functions return an exit status, and this works as you might expect (as long as you ex... |
24,074,250 | 0 | <pre><code>SKShapeNode *pathNode = [[SKShapeNode alloc] init]; pathNode.path = [self buildEnemyShipMovementPath:enemy]; pathNode.strokeColor = [SKColor redColor]; pathNode.lineWidth = 0.5f; pathNode.alpha = 0.4; pathNode.glowWidth = 5.f; [self addChild:pathNode] </code></pre> |
8,369,922 | 0 | <ul> <li><p>Doing it the way you describe will not do any harm.</p></li> <li><p>You can move the <code>.git</code> directory into the tree you want to commit instead of moving the tree to the repository.</p></li> <li><p>You can use the <code>--work-tree</code> option or <code>GIT_WORK_TREE</code> environment variable ... |
5,430,663 | 0 | Adding observer to NSNotificationCenter second time causes EXC_BAD_ACCESS <p>Hypothetical scenario:</p> <p>In my <code>viewDidLoad</code> method I am adding view controller as an observer for custom notification (say, notification <code>MyFooNotification</code>). Later in the process when view is loaded the notificatio... |
9,373,371 | 0 | <p>In magento admin in </p> <pre><code>Catalog->Manage categories </code></pre> <p>Select category and choose preffered store view. There you should edit and save "URL key" parameter. </p> <p>In case it still shows old url - clean cache and make url rewrite reindex.</p> |
2,452,577 | 0 | <p><code>route</code> is part of the <code>bottle</code> module. </p> <p>The following should fix the problem</p> <pre><code>import bottle ... @bottle.route('/hello') def hello(): return "Hello World!" ... </code></pre> |
4,784,699 | 0 | <p>the whole thing can be changed to something like this for better readability...</p> <pre><code><?php $myradiooptions = array( "grid1" => "Grid View (default)", "list1" => "List View (1 column)", "list2" => "List View (2 column)" ); $value = array( "name" => "Category Layout", "desc" => "descriptio... |
2,303,322 | 0 | Custom form elements script <p>I am looking for a customized Form elements like RadioButton, Checkbox and Selectbox script. What do you suggest. (widthout using any framework please!)</p> <p>Thanks in advance.</p> |
12,864,176 | 0 | <p>You can do that with the date function. </p> <p><a href="http://php.net/manual/en/function.date.php" rel="nofollow">http://php.net/manual/en/function.date.php</a></p> |
27,724,447 | 0 | <p>...better is declare the name as varible ,and ask before if thereis a apostrophe in the string:</p> <p>e.g.:</p> <p>DIM YourName string</p> <p>YourName = "Daniel O'Neal"</p> <pre><code> If InStr(YourName, "'") Then SELECT * FROM tblStudents WHERE [name] Like """ Your Name """ ; else SELECT * FROM tblStudents WHERE ... |
10,737,728 | 0 | NSPoint in NSBezierPath <p>I was wondering if there is any way to find out if an NSPoint is inside an NSBezierPath. Like:</p> <pre><code>NSPointInRect(aPoint,aRect) </code></pre> <p>But with a BezierPath.</p> <p>Thanks in advance, Ben</p> |
26,192,170 | 0 | Can I transfer my phone numbers from ringcentral into twilio? <p>I want to twilio and clicked on ask community and it brought me here.</p> <p>So, my question is, how can I transfer my phone numbers in Ring Central into Twilio?</p> <p>I called Ring Central, they said I can do it, but I have to start it at the other end ... |
23,787,948 | 0 | <p>Ignoring the fact that <code>eval</code> is probably super dangerous to use here (unless the data in <code>somefile</code> is controlled by you and only you), there are a few issues to fix in your example code.</p> <p>In your <code>for</code> loop, <code>alert_list</code> needs to be <code>$alert_list</code>.</p> <... |
27,657,784 | 0 | How to extract the result of a query from JSON inside a custom javascript function in OrientDB <p>I created a custom javascript function in the OrientDB Studio. The function takes a rid as an argument and performs a select query from that rid.</p> <pre><code>var graph = orient.getGraph(); var res = graph.command( "sql"... |
15,388,670 | 0 | popup with bootstrap <p>how can i create a popup with MVC bootstrap?</p> <p>I have this code, when I click on "generate password" calls to a function (it´s in my controller Admin) and it returns me a string. How can i display the string in a popup window??</p> <pre><code><div class="editor-field" title="User Passwor... |
27,343,787 | 0 | <ol> <li>You should show us code of <code>scrap_and_save_product</code> function.</li> <li>Try to make more memory-efficient queries with large data. Details described <a href="http://www.poeschko.com/2012/02/memory-efficient-django-queries/" rel="nofollow">here</a>. Hope these helps!</li> </ol> |
32,129,237 | 0 | <p>Let's start by getting some terminology out of the way</p> <ul> <li>A <em>channel</em> is a monaural stream of samples. The term does not necessarily imply that the samples are contiguous in the data stream. </li> <li>A <em>frame</em> is a set of co-incident samples. For stereo audio (e.g. L & R channels) a fra... |
8,086,193 | 0 | How to iterate over a formset in django? <p>This is my views.py: </p> <pre><code># Create your views here. def codepost(request): if request.method == 'POST': form=CodeFormSet(request.POST) if form.is_valid(): datan = "" for forms in form.ordered_forms: data = forms.cleaned_data['code'] datan = datan + data return rend... |
18,789,390 | 0 | <p>Try like this:</p> <pre><code>action = getattr(me,command['action']) action(**{'a': 'Apple', 'b': 'Banana', 'args':['one','two','three','four'], 'foo':'spam', 'clowns':'bad', 'chickens':'good' }) </code></pre> |
30,355,298 | 0 | <p>did you try</p> <pre><code>meteor run --test </code></pre> <p>command? This is what <a href="https://github.com/meteor-velocity/velocity-ci" rel="nofollow">velocity-cli</a> creators are telling to do now.</p> |
10,725,430 | 0 | <p>As far as i know, there is no way to downgrade officially. apple does not allow to downgrade your iOS.</p> |
28,800,715 | 0 | <p>Try this updated regex:</p> <pre><code>(?<=href\=\")[^<]*?(?=\">\[link\]) </code></pre> <p>See <a href="https://www.regex101.com/r/pZ1gK9/1" rel="nofollow">demo</a>. The problem is that the dot matches too many characters and in order to get the right 'href' you need to just restrict the regex to <code>[^&... |
28,452,436 | 0 | How to add onclick dynamically in Jquery? <p>I have the following code:</p> <pre><code> obj2 = JSON.parse(ajax.responseText); for (var i = 0; i <= obj2.length - 1; i++) { var row = table.insertRow(1); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); var cell3 = row.insertCell(2); var cell4 = row.insertC... |
5,814,130 | 0 | <p>i have found the answer to my question. the solution was there lying in my question but at first i was not able to find it. solution was very simple when i wrote i want to use</p> <pre><code>UiApplication.getUiApplication().getActiveScreen() </code></pre> <p>that was almost the right way and i was proceeding in rig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.