pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
4,453,806
0
<blockquote> <p>The HTML search form will contain text fields, many select dropdowns and some checkboxes. Can anyone offer any advice, best practice, design patterns or resources to assist with this kind of problem.</p> </blockquote> <p>I would suggest that Google exemplifies the best UI for search. Don't give me a lo...
8,914,898
0
<p>I would advise learning about Unit Testing. Read <a href="http://msdn.microsoft.com/en-us/magazine/cc163665.aspx" rel="nofollow">this</a> article on MSDN and search on Google for how to write unit tests. They are a great way to test individual units of code and so should be ideal for your situation.</p> <p>I would ...
28,559,264
0
<p>This looks like very close to <a href="http://stackoverflow.com/questions/28420066/java-velocity-loop-add-div-around-every-3-items/28426218#28426218">question 28420066</a>.</p> <p>In Velocity 1.7+, use $foreach.index (0-based), $foreach.count (1-based), $foreach.first and $foreach.last (<a href="http://velocity.apa...
32,624,714
1
Beautiful soup queries <p>I'm struggling to have queries in BS with multiple conditions of the type AND or OR. From what I read I have to use lambda. As an example, I'm looking for tags that match either "span", {"class":"green"} or tag.name == "h1" on the page <a href="http://www.pythonscraping.com/pages/warandpeace.h...
2,834,304
0
<p>Actually, no one cares. With reflector I finally found the place in the framework, where my <code>false</code> is being swallowed: <code>DomainService.AuthorizeChangeSet</code> is called by <code>DomainService.Submit</code>, which is still returning the outcome of <code>DomainService.AuthorizeChangeSet</code>. But ...
25,646,223
0
I'm trying to perform two string comparisons with an "if" and an "OR" <p>I'm new to bash and I am trying to do two string comparisons with an or statement. Can anyone give me any idea where I have gone wrong?</p> <pre><code> echo $DEVICETYPE FILEHEADER=ANDROID if [[ "$DEVICETYPE" == "iPad" ] || ["$DEVICETYPE" == "iPhon...
36,258,858
0
wso2 am gateway forwarding of multipart/form-data post requests <p>I am using a demo API which receives a file and note as multipart/form-data input and displays the content of the file and the note. Here is a sample HTML which runs the API correctly:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;FORM action="http://cgi...
4,007,724
0
auto partial page refresh in asp.net without UpdatePanel <p>I want to make auto partial page refresh in asp.net. There is UpdatePanel but it sends too much data. So I've found that I can make a webservice and call it by the JavaScript code. But I don't know how to call webservice automatic. There are many examples show...
12,622,754
0
Using OAuth 2.0 for Devices - Google API - Google Drive <p>I took a look in some docs at developers.google and some questions here in stackoverflow and I really would like to found an objective answer about use the Google OAuth Server to authenticate an application and grant access to download docs into a Google Drive ...
18,578,783
0
<pre><code>str.str[0].toUpperCase(); </code></pre> <p>should just be </p> <pre><code>str[0].toUpperCase(); </code></pre> <p>If that isn't the case, you should try <code>console.log(str)</code> and find out what exactly <code>str</code> is but I believe this is your problem.</p>
2,835,261
0
Excel VBA macro workbook startup - security warning - automatic update of links disabled <p>I've created an add-in and installed it, but now when I open Excel I get an error pop-up telling me that the add-in file is a security risk and that automatic updating of links is disabled. I've looked it up and it refers to the...
4,840,021
0
<p>I had a very similar problem myself: I was developing a C program (using the MinGW gcc compiler) which used the curl library to do http GET operations. I tested it on Windows XP (32-bit) and Windows 7 (64-bit). My program was working in Windows XP, but in Windows 7 it crashed with the same 0xc000007b error message ...
14,393,716
0
launch command line from java without knowing OS <p>Is there a way to launch the command line from java without knowing OS? For example, the method would open up the terminal shell for a Linux OS and open the command line for Windows. </p> <p>I do know (from looking at previous questions) that i can just check the OS a...
16,375,955
0
<p>It's not possible to do so.....</p>
15,414,905
0
<p>I got this to work by combining both of the answers already provided;</p> <ul> <li>Wrap the <code>&lt;ul&gt;</code> into its own <code>&lt;div id="scroller"&gt;</code></li> <li>Remove the fixed <code>width</code> property from the <code>.simply-scroll .simply-scroll-list li</code> element in the CSS</li> <li>Add <c...
26,573,644
0
<p>It's in the documentation: <a href="http://msdn.microsoft.com/en-us/library/microsoft.web.services2.soapwebrequest.timeout.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/microsoft.web.services2.soapwebrequest.timeout.aspx</a> .</p> <p>In short, use the SoapWebRequest's Timeout property.</p>
39,671,783
0
<p>When executed for first time hashBucket is empty. So range is empty. So this for loop doesn't do anything. 'for i in range(len(hashBucket)):' I think. Is that right?</p>
40,421,653
0
ElasticSearch: unable to resolve class org.joda.time.Period <p>I'm using this script in order to get the time difference between two fields:</p> <pre><code>new org.joda.time.Period(doc[firstDateField].date, doc[secondDateField].date).getHours(); </code></pre> <p>The problem is ES is telling me that:</p> <pre><code>bbd8...
16,019,217
0
<p>I read about this is a book by Knuth and according to that book, the Batcher's parallel merge sort is the fastest algorithm and also the most hardware efficient.</p>
19,621,369
0
Servlet filters as security for web aplication <p>I want to do my own custom registration system like we have on most of web sites:</p> <ol> <li>User put password username e-male and so on </li> <li>After registration process tries to log in with inserted user name and passwords from registration form.</li> </ol> <p>I ...
27,774,787
0
<p>Follow these simple steps on <a href="https://www.promptcloud.com/how-to-run-ajax-web-crawls/" rel="nofollow">how to run Python/Ajax crawls</a>. <a href="https://www.promptcloud.com/data-hub-blog/web-scraping-interactive-ajax-crawls/" rel="nofollow">How to set interactive crawls using AJax</a></p>
17,432,434
0
How to add view on imageView? <p>I have created a class that extends a view which will work as a drawing slate to draw a text. I want to add that drawing slate in image View. And I have main activity which contains a scrollable list on top and a image view below list. Now I want to add that View(Drawing slate) on image...
37,211,948
0
Issue in Kohana Query <p>I'm facing an issue in my query.Kindly help me to sort the issue (I’m newbie in Kohana Framework)</p> <pre><code>$posts-&gt;select(array(DB::expr('( SELECT COUNT(id_visit) FROM `oc2_visits` WHERE `oc2_post`.`id_post` = `oc2_visits`.`id_ad` AND `oc2_visits`.controller = "Blog" GROUP BY `oc2_visi...
21,155,503
0
<p>Found new way to put job back to same queue with some delay time. We can use direct <strong>release</strong> function of pheanstalk library. e.g. </p> <pre><code> $this-&gt;pheanstalk-&gt;release($job,$priority,$delay); </code></pre> <p>This way, we don't need to find job's actual tube and can save concurrency issu...
4,820,989
0
How to read a text file from the root folder and display it in div? <p>Hi I have a complicated html page. I want to read a text file and display its content into a div on Page load. I can use javascript if needed. Pl. help.</p>
27,407,152
0
<p>It's been a while since I did this but I just had <code>&lt;cfpop&gt;</code> login to the email account in question, search for emails with a specific subject, gather up the data I wanted from there, like the email address it bounced from, and update the database using an IN clause based on a list of bounced email ...
17,059,349
0
Java: To what extent should we encapsulate our methods and classes? <p>To what extent should we encapsulate our methods and classes? for example, besides getter and setter, what else non-static methods should be declared as public?</p> <p>And if we declared too many private methods, how can we conduct the unit tests fo...
38,611,385
0
<blockquote> <p>I had the same issue a year ago.</p> </blockquote> <ol> <li>First and foremost, make sure that mod_rewrite module is enabled in your apache server. Don't waste time for other solution.</li> <li>Secondly, that might be because of htaccess rules. Kindly, use this basic line of code for htaccess.</li> </o...
20,011,250
0
<p>a combination of both solutions presented here:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mime { class Mime { public static string GetMimeType(string fileName) { if (string.IsNullOrEmpty(fileName) || string.IsNullOrWh...
29,476,522
0
<p>I have tried using Aircrack on several Linux distribution and issues like this one happened quite often (usually because of dependency problems).</p> <p>I solved all problems by installing <a href="http://www.backtrack-linux.org/" rel="nofollow" title="Backtrack">Backtrack</a>, which contains all the packages you n...
18,939,806
0
Accessing an Objective-C ivar from outside the class at runtime <p>I know this idea completely breaks encapsulation, but say I have the following class extension:</p> <pre><code>@interface MyClass () { int reallyImportantIvar; } // ... @end </code></pre> <p>Normally, the class behaves like it should inside the Objectiv...
30,071,578
0
<p>This may occur if you started transaction explicitly. Every explicit transactions must be finished explicitly. So, if your connection is open explicitly, you should close it explicitly.</p> <p>You may use :</p> <pre><code>//Commit(Stop) the transaction before open an other connection if Dm.Transaction.InTransaction...
25,326,017
0
Perl regex forward reference <p>I would like to match a forward reference with regexp. The pattern I am looking for is</p> <pre><code>[snake-case prefix]_[snake-case words] [same snake-case prefix]_number </code></pre> <p>For example: </p> <pre><code>foo_bar_eighty_twelve foo_bar_8012 </code></pre> <p>I cannot extract ...
15,949,234
0
<p>This happens because you have forgot a newline at the end of your log message. When the kernel outputs a partial message (by passing a string to <code>printk()</code> that does not end with a newline), the logging system will buffer the text until the rest of the message arrives. See also — <a href="http://lwn.net/...
24,660,037
0
general backbone/marionette program structure <p>I need some general guidelines on how to structure a backbone/marionette application. Im very new to these frameworks and also to js in general.</p> <p>Basically I have two pages and each page has a list. I have set up an application and a router for the application:</p>...
34,472,810
0
<p><strong>1</strong> </p> <p>First of all, you create a protocol <code>ErrorPopoverRenderer</code> with a <em>blueprint</em> for method <code>presentError(...)</code>. You thereafter extend the class <code>UIViewController</code> to conform to this protocol, by implementing the (compulsory) blueprint for method <code...
3,447,685
0
<blockquote> <p>How nice of Microsoft to require registration now if we want to provide them information that will make their tool better.</p> </blockquote> <p>The reasoning behind it is probably this:</p> <ul> <li><p>Registration is for your own protection: If there was no registration, anyone could have error report...
28,393,248
0
<p>You cannot overload functions in C, but you can organize your code to make it optimal. I would create a function for <code>rgb2hsv</code> and that would get a <code>void *</code> type of parameter, would determine the type and use it, handling all possible cases. And you should use only this function. On lower leve...
12,371,672
0
<pre><code>return Class.forName(className); </code></pre> <p>regarding your edit, you cannot "cast" a string value to a long value. in order to convert a string value to some other type, then you need something more complex, like <a href="http://commons.apache.org/beanutils/api/org/apache/commons/beanutils/ConvertUtil...
13,843,641
0
Query result is different when executing a simple search in PHP <p>I am executing the following query in a MySQL database (look at SELECT AND WHERE, the rest is not important):</p> <pre><code>SELECT distinct fname //more fields... FROM filedepot_files AS ff INNER JOIN filedepot_categories AS fc ON ff.cid = fc.cid INNER...
21,391,241
0
Best way to store / retrieve this data in IOS ( a single word and a path to a file ) <p>I know there are probably many ways to do this. </p> <p>I am wondering what direction I should look into for this. I need speed and ease of use. I'm going to guess go with an associative array. But interested in what the seasoned io...
20,210,111
0
NSLog(@" %@",NSStringFromCGRect([(UIButton*)[array lastObject]frame])); <pre><code>NSLog(@" %@",NSStringFromCGRect([(UIButton*)[array lastObject]frame])); </code></pre> <p>what is the error in this statement. My code is breaking error [__NSArrayI frame]: unrecognized selector sent to instance 0x1c5f2e00</p>
18,737,270
0
System subheadings in Android app <p>Like here.</p> <p><img src="https://i.stack.imgur.com/Nbu0i.png" alt="enter image description here"></p> <p>Like those blue <code>phone</code>, <code>email</code> , <code>adress</code>. I've been googling for a while, havn't found any built-in way to add them :(. Is there any? (Supp...
32,986,183
0
<p>This one worked for me 100% after trying a bunch of other things:</p> <ol> <li>Go to Tools -> Options -> Environment -> Keyboard -> Press the (RESET) button </li> <li>Go to ReSharper - > Options -> Keyboard &amp; Menus -> Select the "Visual Studio" scheme -> Press "Apply Scheme"</li> <li>Press "Save"</li> <li>Press...
33,001,590
0
nullPointerException after Screen rotation <p>I get nullPointerException exception returned by object <code>LinearLayout</code> after screen rotation although i am passing null in <code>onCreate()</code> super.onCreate(null); . I know Activity must be destroyed and re-created beside i'm passing savedInstanceState = nul...
40,980,396
0
<p>That caused by module configuration cached. It was generated at first time to speed up reading configuration. So, after adding new service configuration always remove the cache in <code>data/cache/module-config-cache.application.config.cache.php</code> It will be created automatically if not found.</p>
32,032,782
0
<p>Read the documentation, log4net is very configurable and well documented.</p> <p>Documentation: <a href="https://logging.apache.org/log4net/release/manual/configuration.html" rel="nofollow">https://logging.apache.org/log4net/release/manual/configuration.html</a></p> <pre><code>using Com.Foo; // Import log4net class...
25,321,810
0
<p>After exploration, I came across fnServerData Ajax Calling options. With the help of this API, i was able to complete this task. More details <a href="http://legacy.datatables.net/usage/callbacks" rel="nofollow">here</a></p>
16,392,175
0
<p>How are you setting <code>self.newsCount</code>?</p> <p>Either you are not putting an array into <code>self.newsCount</code>, or (more likely) you are setting "<code>newsCount</code>" without <code>retaining</code> it.</p> <p>Are you using <code>ARC</code>? If not, you should be.</p>
24,113,368
0
<p>Java interfaces cannot be instantiated, the programmer has to specify what implementation of the interface he wants to instantiate.</p> <p>For example, if you try to do this (replace INTERFACE with the name of the interface):</p> <pre><code>INTERFACE i = new INTERFACE(); </code></pre> <p>you will get an error, beca...
15,442,710
0
<pre><code>function getMonth(monthNumber) { var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; return monthNames[monthNumber-1]; } </code></pre>
21,214,993
0
<p>Separate headers by <code>\r\n</code>.</p> <pre><code>function emailHTML($to, $from, $subject, $HTMLmessage) { $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers = "From: ".$from . "\r\n"; $headers .= "Bcc: email@example.com\r\n"; $headers .= "MIME-Version: 1.0\r\n" . "Conten...
11,273,633
0
<p>If you consider what <strong><a href="https://github.com/msysgit/msysgit/blob/devel/git-cmd.bat" rel="nofollow"><code>git-cmd.bat</code></a></strong> does, all you need to do is to set the right variable <code>%PATH%</code> before your git commands in your script:</p> <p>If you don't, here is what you would see:</p...
6,634,673
0
<p>You'll have to make them in code instead of interface builder</p> <pre><code> for (int i = 0; i &lt; n; i++) { UILabel *label = [[UILabel alloc] initWithFrame: CGRectMake(/* where you want it*/)]; label.text = @"text"; //etc... [self.view addSubview:label]; [label release]; } </code></pre>
34,755,770
0
modal appear behind fixed navbar <p>so i have bootstrap based site with fixed navigation bar (that follow you around the page at the top) and when i want to show modal popup, it appear behind those navigation bar, how to fix?</p> <p>and i using <a href="https://graygrids.com/item/margo-free-multi-purpose-bootstrap-temp...
6,952,371
0
CSS Fluid layout and images <p>I am trying to create a completely fluid layout in CSS (everything in %), which would work seamlessly across platforms (desktop/mobile/tablets like iPad).</p> <p>With Fluid Layouts, can an image be made completely fluid? For example:</p> <pre><code>img { max-width:100%; } </code></pre> <u...
18,858,052
0
Is this my hosts fault or mine? <p>On the net panel of my Firebug console some of the files sent with my website are racking up an alarming length of time "waiting" for a response from my server, and receiving certain files. I've done everything I can in terms of gzip, minifying code etc. and just wanted to confirm wit...
33,944,193
0
<p>I love pseudo elements so that's exactly what I would use here.</p> <pre><code>h1{ position:relative; } h1:after{ content:""; position:absolute; width:20%; border-top:1px solid green; bottom:0; left:40%; } </code></pre> <p>If you want the underline to be a fixed width, you'll need to use negative margins to center ...
23,471,581
0
<pre><code>first method </code></pre> <p>you can create an AsynTask .. Your code should run in background in order to be responsive.. otherwise it will show Not Responding ..</p> <pre><code>Second Method </code></pre> <p>You can create a seperate thread for it .. using multitasking.</p> <pre><code>Third </code></pre> ...
15,165,817
0
<p>There is no canonical mechanism in Ember to store and retrieve the current user. The simplest solution is probably to save your current user's account ID to <code>Social.currentAccountId</code> when the user is authenticated (ie. in the success callback of your ajax request). Then you can perform </p> <pre><code>So...
6,807,908
0
How to determine if an object is at rest? <p>Using the <a href="http://physicshelper.codeplex.com/" rel="nofollow">physics helper</a> library.</p> <p>I'm trying to figure out how I can determine whether a physics object is at rest. Does anyone know how to do this or have any ideas of what I could do?</p> <p>An example ...
11,807,076
0
streaming video from iphone to server programatically <p>I need to implement iphone video streaming to server. I've googled a lot but I found only receiving video streams from server. It is made using UIWebView or MPMoviewPlayer. But how can I stream my captured media to server in realtime? Help me please. How can it b...
33,073,514
0
<p>Once the last space of a console buffer row is used, the console cursor automatically jumps to the next line.</p> <ol> <li>Reset cursor back to the beginning before it reaches edge of console</li> <li>Erase old console output, placing cursor on next line</li> <li><p>Reset cursor back onto the line that was just cle...
7,782,179
0
RIA Services metadata for entities in different class <p>In my project, I have the following: - A class library that contains a Linq2SQL datacontext. - A web project containing the domainservice that uses the datacontext in the library.</p> <p>I've not found a way to add metadata to the services where I don't have to m...
37,626,429
0
<p>Which version of IIS you are using. Assuming 7.5 or above (> Windows 2008 r2), the default log location for IIS is <strong>C:\inetpub\logs\LogFiles</strong> . Inside this all the folders are named in format W3SVC<em>siteID</em>, for example - W3SVC1. W3SVC2 etc.</p> <p>In order to find the site ID</p> <ol> <li>Open...
40,421,573
0
<p>Try this.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code> li.breadcr { width: 2em; height: 2em; text-align: center; line-height: 2em; border-radius: 1em; background: #00...
23,263,872
0
gem install rails -v 4.1.0 stuck with ri-documentation <p>I've run <code>gem install rails -v 4.1.0</code> on my server, but somehow it's stuck with </p> <pre><code>Parsing documentation for rails-4.1.0 Installing ri documentation for rails-4.1.0 </code></pre> <p>Can I abort this? What do I need the ri documentation fo...
14,992,656
0
Applescript to add grandparent folder+parent folder prefix to filename <p>I have multiple folders with sub folders that have files in them that need to be labeled with their parent folder+grandparent folder name.</p> <p>i.e. Folder 1>Folder 2>File.jpg needs to be renamed to Folder_1_Folder_2_File.jpg</p> <p>I was able ...
33,204,590
0
how to make instance variables updating in callback to happen in main thread? <p>This is the code that gets called when the GoogleApiClient gets created. All this does it retrieve the last location of the user. </p> <pre><code> //omitted code @Override public void onConnected(Bundle bundle) { Location location = Locati...
12,137,621
0
<p>your html is invalid. your <code>&lt;/script&gt;</code> tag should be before the <code>&lt;/head&gt;</code> tag</p> <p>if you really want to execute it only when you press the button then you should consider using ajax or to use a <code>&lt;form&gt;</code></p>
34,055,244
0
Bootstrap Glyphicons hiding border <p>For some reason, glyphicons hide a border of a container if it's being floated. Can someone explain this, and if there's a known workaround?</p> <p><a href="http://www.bootply.com/kmhAN31yEn" rel="nofollow noreferrer">bootply.com/kmhAN31yEn</a></p> <p><a href="https://i.stack.imgur...
6,363,041
0
<p><a href="http://openntf.org/projects/pmt.nsf/ProjectLookup/GooCalSync" rel="nofollow">GooCalSync (openntf</a> and <a href="http://sourceforge.net/projects/lngooglecalsync/" rel="nofollow">LotusNotes-Google Calendar Synchronizer (sourceforce)</a> are great examples of how to do this in Java.</p>
6,916,128
0
<p>It's hard to say which components you can reuse and how you can reuse without having seen the API :)</p> <p>I'd probably start by pointing the client directly at the new API and inspecting what breaks. If after digging around with the debugger the problems do not look too bad, I'd tweak the client as necessary.</p>...
13,316,591
0
<p>i apologize if i don't understand the question, but maybe what you're looking for is this:</p> <p><a href="http://stackoverflow.com/questions/7366974/selectively-include-dependencies-in-jar">Selectively include dependencies in JAR</a></p> <p>so here's the plugin</p> <p><a href="https://github.com/nuttycom/sbt-progu...
32,909,855
0
<p><a href="http://yoursite.com/checkout/?add-to-cart=" rel="nofollow">http://yoursite.com/checkout/?add-to-cart=</a>{ID}</p> <p><a href="http://yoursite.com/cart/?add-to-cart=" rel="nofollow">http://yoursite.com/cart/?add-to-cart=</a>{ID}</p> <p>Replace {ID} with the Post ID of the specific Product:</p> <p>result mus...
19,422,629
0
<p>There are multiple overloaded of Add method at least in NH version 3.0.0.4000. One of them is having generic parameter that can be used for your case, for example:</p> <pre><code>disjuction.Add&lt;TypeinWhichPrimaryKeyPropertyExists&gt;(x =&gt; x.PrimaryKey == 1) </code></pre>
32,877,308
0
<p>You can stretch an image while preserving the aspect ratio of a portion of that image using slicing. Xcode offers a graphical interface for doing this. The idea is that you decide what parts of the image are allowed to stretch and which aren't.</p> <p><a href="https://developer.apple.com/library/ios/recipes/xcode_h...
38,173,134
0
<pre><code>test.c:5:5: error: conflicting types for 'getline' int getline (char line[], int maxline); ^ /usr/include/stdio.h:442:9: note: previous declaration is here ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) ... </code></pre> <p>I hope that answers your question. Your function <code>...
21,893,140
0
Radio Button Isenabled trouble <p>I'm setting a combobox to be enabled based on selection of Radioboxes. Currently it's producing this error <code>Object reference not set to an instance of an object.</code> for the following code below. I did it one at a time and to make the ComboBox False works. When I implemented Di...
30,189,108
0
Combine Columns in CSV file using JAVA <p>I want to combine columns in csv file using java here in this file i want combine first two columns "Product No" and "Product Name".</p> <p>This is My CSV File</p> <pre><code> Productno,Productname,Price,Quantity 1,java,300,5 2,java2,500,10 3,java3,1100,120 </code></pre> <p>Her...
27,488,943
0
How to config to show depended library jars rather than packages in "Packages view" of Intellij IDEA? <p>I installed Intellij IDEA 14 on my mac osx, but I found the display of depended library in Packages view was very annoying.The following is the screenshot of intellij idea, all the package name of depended jars are ...
9,625,380
0
Database query times out on heroku <p>I'm stress testing an app by adding loads and loads of items and forcing it to do lots of work. </p> <pre><code>select *, ( select price from prices WHERE widget_id = widget.id ORDER BY id DESC LIMIT 1 ) as maxprice FROM widgets ORDER BY created_at DESC LIMIT 20 OFFSET 0 </code></p...
15,104,142
0
<p>The first one is faster because vector rendering mathematics are required to fill your shape in the latter.</p> <p>If you want noticeable (and I mean very noticeable) performance gains, you should have <em>one</em> Bitmap on the stage. What you do from there is store references to <code>BitmapData</code> to represe...
7,193,708
0
<p>You can currently find Hype or Pixelmator on the Mac App Store. </p> <p>This proves evidently that you can save to disk and read from disk, which seems a basic feature of any serious application. Moreover, Apple is pushing developers to start using incremental auto-backups of files, it would therefore be very surpr...
23,877,947
0
<p>When angular is creating your controller, it will use the <code>new</code> keyword on the function you passed in. Thus, it will construct a new object using the constructor you passed in. Constructing objects using a constructor function will always return the instance of the newly created object. </p> <p>There are...
11,766,854
0
<p>Only if you had read UIColor's class reference...</p> <pre><code>UIColor *color = [UIColor colorWithRed:200 / 255.0 green:100 / 255.0 blue: 200 / 255.0 alpha: 1.0]; </code></pre> <p>will solve your problem.</p>
24,197,998
0
<p>I have update the jsfiddle try this</p> <pre><code>[http://jsfiddle.net/W4xBJ/2/][1] </code></pre> <p>Actually your key is store_url not set_url. you were using the wrong key</p>
15,437,350
0
<p>Try this for example:</p> <p>Course class:</p> <pre><code>import java.util.ArrayList; import java.util.List; public class Course { private List&lt;Student&gt; students = new ArrayList&lt;Student&gt;(); private String teacherName; private String subjectName; public Course(String subjectName, String teacherName) { th...
33,901,004
0
<p>You cannot change line size for <code>sjp.int</code> currently, so you have to modify the returned plot object(s), which are in the return value <code>plot.list</code>. Then you can overwrite <code>geom_line()</code>.</p> <pre><code>dummy &lt;- sjp.int(test, type = "eff") dummy$plot.list[[1]] + geom_line(size = 3) ...
37,982,054
0
Using jQuery's unwrap() to remove a class <p>I want to remove the class of <code>emphasis</code> from all tags that have that class in a specific cell of the table. I'm selecting the table cell content like this: </p> <pre><code>var answer = $('tr.problem_display_work:last td:first').html(); </code></pre> <p>In another...
34,448,607
0
How to add attachments to mailto in c#? <pre><code>string email ="sample@gmail.com"; attachment = path + "/" + filename; Application.OpenURL ("mailto:" + email+" ?subject=EmailSubject&amp;body=EmailBody"+"&amp;attachment="+attachment); </code></pre> <p>In the above code, <code>attachment</code> isn't working. Is there ...
31,921,094
0
<p>I think you didn't understood my comment. I mean something like this:</p> <pre><code>&lt;LinearLayout with vertical orientation&gt; &lt;HeaderView/&gt; &lt;HorizontalListView/&gt; &lt;FooterView/&gt; &lt;/End of LinearLayout&gt; </code></pre>
37,071,385
0
<blockquote> <p>increasing the heap size</p> </blockquote> <p>is the way to go. But you also have to check how to do a distribute test; because 12000 is a big test that can't be run only in one machine alone; it is not a good practice.</p> <p><a href="http://jmeter.apache.org/usermanual/jmeter_distributed_testing_step...
9,978,987
0
<p>You can have .net give the User's Userpath. Like "C:\Users\User\MyDocuments". Actually, that's what George's link is about. +1 for him.</p>
13,372,952
0
<p>Don't single quote your table name, if anything use magic quotes (`)</p> <p>You should not be building the query by concatenating strings.</p> <p>To avoid potential issues with SQL injection, it would be wise to use prepared queries.</p> <p>I've just confirmed this on a mysql server</p> <pre><code>mysql&gt; delete ...
9,199,883
0
<identifier> expected <p>i make first steps with android. but i get this error: identifier expeted at "<code>puplic void try(View view)</code>". where is the error?</p> <pre><code> import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.EditText; public class MainActivity ...
29,432,061
0
<p>The selector <code>#credentials.errors</code> looks for an element with the ID "credentials" and a class "errors", <em>not</em> an element with the ID "credentials.errors". The dot is being interpreted as the start of a class selector. In other words, it's equivalent to <code>.errors#credentials</code>, with both s...
10,628,885
0
<p>You are using <code>PDO</code> to interface with the database. Use <a href="http://php.net/PDO.lastInsertId"><code>PDO::lastInsertId()</code></a> to get the last inserted id.</p> <pre><code>$stmt-&gt;execute(); echo 'last id was ' . $db-&gt;lastInsertId(); </code></pre> <p><code>mysql_insert_id()</code> is part of ...
24,882,173
0
Google Analitics : Send PageViews or Event with PHP <p>I have an website who already use Google Analytics, but it' didn't send page view for Ajax action (a Dynamical search engine for exemple) i don't find an API to send it with PHP by server.</p>
36,072,700
0
<p>If you attach this script to <code>Water</code> particle, and you have a <code>Fire</code> particle, then in your water collision script</p> <pre><code>if (other.gameObject.name=="Fire") { Destroy(other.gameObject); // bonus effect for smoke particles // Instantiate(smokeObject, other.gameObject.transform.position,...