pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
33,562,625
0
<p>Tight loop with high priority thread is not a good idea...when the print hello is just looping without doing anything, Introduce switchtothread/yield after certain loops and sleep zero after a higher loop count. This will give other threads on the system oppurtinity to execute Eventually wait on a event handle when...
27,684,518
0
<p>Try this:</p> <pre><code>;with cte as (select *, row_number() over (partition by prod_id, branch order by transaction_date desc) rn from inv_table) select * from cte where rn = 1 </code></pre> <p>The <code>row_number</code> function will group records for the same <code>prod_id</code> and <code>branch</code> combin...
38,352,963
0
<p>For this you can use interval</p> <p>For Ex:</p> <pre><code>SELECT DATE_ADD(leave_date, INTERVAL 1 DAY) AS workingDay; </code></pre>
12,389,454
0
NSString Somehow turn in to an "__NSArrayI" object <p>i am receiving response from my server, it looks like this :</p> <pre><code>2012-09-12 16:29:11.690 WhatIsIt[1763:707] ( { qid = ebb81a9c0c2125c9f12fee33c281dfe2ef5c1596; "qid_data" = { labels = Wristwatch; }; } ) </code></pre> <p>when i am parsing the <code>"qid"</...
9,136,748
0
cannot compile hello.cs for gtk# using mono command prompt <p>Had hoped that <a href="http://stackoverflow.com/questions/8835352/cannot-compile-gtk-example">this</a> would help, but getting a different error. </p> <p>attempting to compile the following as hello.cs</p> <pre><code>using Gtk; using System; class Hello { s...
12,476,189
0
How to use colorstatelist in android <p>I want to change button text color on diffrent states like btn_presses,btn_focus,etc.</p> <p>For that i use colorstatelist.xml and I refrenced it in button text in titlebarlayout.xml. But still I cant able to change text color of button.</p> <p>Any one know how to do it.Is I am g...
29,778,261
0
<p>If you invoque a main method inside your java application you won't start a new Java application.</p> <p>In that case, you're executing a static method, just like any other static method, so the current directory is the same as the working directory of your current Java application.</p> <p>If you're looking for a w...
1,384,280
0
<p>If you want to take a heap dump programmatically, you'll not find suitable APIs in the java.* or javax.* namespace. However, the Sun runtime comes with the <a href="http://java.sun.com/javase/6/docs/jre/api/management/extension/com/sun/management/HotSpotDiagnosticMXBean.html" rel="nofollow noreferrer">HotSpotDiagno...
124,598
0
<p>If you did want to whitelist for performance reasons, consider using an annotation to indicate which fields to compare. Also, this implementation won't work if your fields don't have good implementations for <code>equals()</code>.</p> <p>P.S. If you go this route for <code>equals()</code>, don't forget to do someth...
17,175,879
0
Wordpress Loop does not work properly in category.php when using query_posts <p>I am developing a wordpress theme. I am new in this field, and it's not very easy. </p> <p>I wrote the code for the loop, and everything is working perfectly. I am working on category.php page. Without the query posts, the category is corre...
12,338,370
0
Passing php file in ajax <p>This is my code</p> <pre><code>&lt;script&gt; $(document).ready(function() { // delete the entry once we have confirmed that it should be deleted $('.delete').click(function() { var parent = $(this).closest('tr'); $.ajax({ type: 'POST', url: 'delete.php', data: 'ajax=1&amp;delete=' + $(this)...
17,854,382
0
<p>I had the same issue on my computer. I believe it's caused by the icon cache in Windows. </p> <p>What I usely do is removing the icon, cleaning up the PC (with <em>CCleaner</em>), then, add the icon. </p> <p>Or you can just delete <code>/Documents and Settings/&lt;username&gt;/Local Settings/Application Data/IconCa...
16,200,117
0
<p>You're expressing a real-world constraint in code. Your examples here don't actually show that buying you anything here, so going on the evidence I'd wonder whether it's redundant to express it, or irrelevant to any situation that will actually arise. But if you're ever going to have different kinds of shaders for ...
40,854,026
0
How to fill Repeater only on first Load <p>In my page, I load various sections after the initial Page load, via Postbacks and <code>.Visible = true</code>. I have a Repeater control which I want to fill from a data source, but only the first time I load the Control.</p> <p>Initially, I had tried something like the foll...
10,606,438
0
<p>This problem is actually caused by HTML behaving differently then JQuery. In HTML, spaces and extra lines don't matter. </p> <p>In HTML, these 2 examples are visually the same when rendered to the page:</p> <pre><code>&lt;div id="vendor"&gt;Barracuda&lt;/div&gt; </code></pre> <p>and</p> <pre><code>&lt;div id="vendo...
27,762,242
0
Newly installed Magento, invalid login even with correct user and pass <p>I'm using magento 1.9, and made sure that my var and media folder's permissions are on 777.</p> <p>I can't seem to login into the admin panel even with the correct login details.</p>
37,738,143
0
Web Api route constraint tuples <p>I have a route like this:</p> <pre><code>config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{tenantParam1}/{tenantParam2}/{controller}/{id}, constraints: ???, defaults: new { id = RouteParameter.Optional } ); </code></pre> <p>For tenantParam1, and tenantParam2, I need...
9,732,633
0
Language Translation API for iPhone <p>I want to implement language translation feature in my iPhone app, is there any API which is free that I can use, or any other way to do this. </p>
379,348
0
Aliasing tasks in msbuild for intellisense <p>I'm really hoping I just don't know how to do this, and that 'this' is doable... but one of my biggest complaints to date with msbuild is that they 'break' schema by using dots in the names of the tags.</p> <p>example: </p> <p>I want to bake intellisense into my build using...
15,181,400
0
<p>This is probably what you want (not completer code, just idea)</p> <pre><code>protected boolean mIsCountDownOn; private class CountDownTimer mCountDownTimer = new CountDownTimer(10000, 10000) { @Override public void onTick(long millisUntilFinished) { } @Override public void onFinish() { mIsCountDownOn = false; } };...
30,847,396
0
RawSourceWaveStream volume control and playback time estimation with Naudio <p>I'm using Naudio to play audio samples from memory.</p> <pre><code> private RawSourceWaveStream waveStream; private MemoryStream ms; private int sampleRate = 48000; private IWavePlayer wavePlayer; //generate sine wave signal short[] buffer =...
1,476,119
0
<p>You can use <strong><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.notifyicon.aspx" rel="nofollow noreferrer">NotifyIcon</a></strong> </p> <p>Also check community response in comments for notable issues of using NotifyIcon.</p>
25,934,769
0
<p>It is due to the polymorphism.</p> <p>Reference of parent class can hold the child class object.But using this reference you can call methods those are correctly overridden in the child class.</p>
14,655,442
0
Is there a way to add your own controls to Blend's "Group Into" and "Change Layout Type" options? <p>In Expression Blend 4, we can right click on an object in the Objects and Timeline panel to access the handy functions "Group Into" and "Change Layout Type":</p> <p><img src="https://i.stack.imgur.com/tKgZO.png" alt="en...
26,247,036
0
<p>Thinking too hard about an easy problem - once the button is clicked, I should remove it and show a loading message instead. I still don't get why the fragment manager would be null clicking quickly though; popbackstack removes this fragment but the fragmentmanager can still have memory.</p>
26,159,487
0
<p>This will give you the difference between two dates, in milliseconds</p> <pre><code>var diff = Math.abs(date1 - date2); </code></pre> <p>In your example, it'd be</p> <pre><code>var diff = Math.abs(new Date() - compareDate); </code></pre> <p>You need to make sure that compareDate is a valid Date object.</p> <p>Somet...
11,198,542
0
Restore deleted file from repository <p>I'm being in a transition from SVN to GIT and got a question for which I cannot find an answer. I'll describe am usual scenario when I work with some open source projects via SVN.</p> <ol> <li>make a checkout</li> <li>start messing around with files, make changes, to test how the...
27,938,976
0
<p>Upper casting is only allowed along upwards the hierarchy. <code>Button</code> never lies in the hierarchy of <code>LinearLayout</code>. So, you can't.</p> <pre><code>java.lang.Object ↳ android.view.View ↳ android.widget.TextView ↳ android.widget.Button </code></pre>
27,711,838
0
<p>The answer to my question, which is not evident here, is that I had an extra closing div in my first tab. It was closing out the ng-if and then there was broken mark-up.</p> <p>My code looked like this:</p> <pre><code>&lt;div ng-if="tab[0].active"&gt; &lt;div&gt; Content 1, true by default. Hides and shows as nav i...
6,812,145
0
<pre><code>- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation { //Some code here pinView.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure]; return pinView; } </code></pre> <p>And make use of the following delegate method to get the button action</p> <p...
12,076,128
0
<p>I'd say to draw a sequence diagram per thread. </p> <p>Trying to get multiple threads into a single sequence diagram doesn't make a whole lot of sense since events are occurring in parallel, not in sequence.</p>
41,053,654
0
Cassandra copy works first time but after iteration it creates unnecessary python processes that blocks system memory <p>My code is as below it works first time perfectly but after second or third iteration it creates so many python processes some times it blocks sometimes 4gb of system memory and process cant executin...
39,503,004
0
<p>Apply the min-width property.</p> <p>In Your CSS Style Sheet</p> <pre><code>.Textbox { min-width:100%; } </code></pre> <p>In Your *.aspx</p> <pre><code>&lt;asp:TextBox CssClass="TextboxStyle" placeholder="Enter the Title" runat="server" ID="TextBox1"&gt;&lt;/asp:TextBox&gt; </code></pre> <p>This will update your te...
17,655,745
0
SSRS Charts displaying time greater than 24 hours <p>I have a time field in seconds (where the seconds is always greater than 86400) and I've been using the following formula to display the time in <strong>HH:mm:ss</strong> in a Tablix: </p> <pre><code>=Floor(Sum(Fields!SecondsField.Value) / 3600) &amp; ":" &amp; Forma...
32,121,506
0
<p>Concatenation doesn't cause <code>self.b</code> to be evaluated as a string. You need to explicitly tell Python to coerce it into a string.</p> <p>You could do:</p> <pre><code>return "&lt;A with " + repr(self.b) + " inside&gt;" </code></pre> <p>But using <code>str.format</code> would be better.</p> <pre><code>retur...
33,920,825
0
<p>To check if 0:4 elements of array contains zeros, try condition like below:</p> <pre><code>if array[0:4] == [0]*4: </code></pre>
13,922,995
0
0xC0000005: Access violation writing location <p>I have this function for reading text from files:</p> <pre><code>uintmax_t ResourcePack::getText(const string&amp; file, char** data) { *data = new char[static_cast&lt;size_t&gt;(size) + 1]; fseek(_fileDescriptor, static_cast&lt;long&gt;(begin), SEEK_SET); fread(*data, s...
18,014,609
0
<p>Ribbon.Invalidate doesn't mean the ribbon will not show. Invalidate function just tells the ribbon to invalidate and re-initialize the ribbon controls with their default/dynamic properties. </p> <p>I worked with few Add-ins where the clients wanted to hide the ribbon items if users cannot pass the authentication. S...
33,469,525
0
<p>I think I found the answer. The bcp format spec doesn't work properly! It seems that even for numeric or datetime import fields, you have to specify "SQLCHAR" as the datatype in the .fmt file. Any attempt to use the actual .fmt file generated by "bcp format" is hopeless -- if it gives you SQLINT or SQLDATE lines ba...
37,220,168
0
<p>My Bots are running well against ReCaptcha.</p> <p>Here my Solution.</p> <p>Let your Bot do this Steps:</p> <p>First write a Human Mouse Move Function to move your Mouse like a B-Spline (Ask me for Source Code). This is the most important Point.</p> <p>Also use for better results a VPN like <a href="https://www.pur...
23,886,400
0
Where to find NSOrderedSet (Objective C) source code ? Reading elements from SET in the order of insertion in C++? <p>Is there any possibility of reading elements from <code>SET</code> (in C++ i,e std::set) on the basis of order of insertion of those elements into SET (in C++)? I could have used Vector or list for read...
39,432,110
0
Stack Smashing while using strcpy and strcat <p>I've been trying to debug this for a while, still can't figure out why this causes a stack smashing error (I think the error code is 6, or abort. Essentially this function takes a directory, opens a file and then puts that file into a function so it can use the file, and ...
9,277,156
0
<p>You can do that! Just create some non-queried parameters for the report and set the value of each textbox to:</p> <pre><code>=Parameters!ParameterName.Value </code></pre> <p>...where ParameterName is the actual name of the parameter, as you defined for the report.</p>
34,586,214
0
Load Earlier Messages in listview like whats app <p>When i Click load earlier messages the earlier messages get loaded from database but list view scrolls to the top which is not be done , the message should only loaded at the top of list view without its scroll.</p> <p>Here is my code for main Activity</p> <pre><code>...
16,356,100
0
<p>Go check these styles:</p> <pre class="lang-css prettyprint-override"><code>.nivo-controlNav a h1 { color: #E4007B; font: bold 15px/20px Arial; text-transform: none; } </code></pre> <p>and add these after:</p> <pre class="lang-css prettyprint-override"><code>.nivo-controlNav a.active h1 { color: #000; } </code></pr...
452,333
0
How to maintain widgets aspect ratio in Qt? <p>How is it possible to maintain widgets aspect ratio in Qt and what about centering the widget?</p>
28,190,843
0
<p>This method is called when you update your database version. It drops the existing tables and creates it again when onCreate method is called again. </p>
10,536,480
0
<p>This is the Delegate Design Pattern. Basically the UITableView instance in your UIViewController class asks your view controller to provide a UITableViewCell for the specified index. So let's say you have an array of songs in your view controller and you want them to appear in the table view. Then you would create ...
40,473,842
1
get_sample_data from Matplotlib when inserting an image in a plot <p>I'm working on a project and in my code (using python) I want to insert an image in one of the plots I create. I found out that I could insert an image by using the <strong>get_sample_data</strong> from Matplotlib but that the file(image) has to be in...
35,336,884
0
<p>Something like <a href="http://stackoverflow.com/a/34468622/696034">this</a> except you you replace your column names and join parameter with user_id.</p>
26,991,729
0
<p>Below Code is for creating file and saving text in it .</p> <pre><code>FileOutputStream fout = new FileOutputStream("Hello.txt",true); PrintWriter pr = new PrintWriter(fout,true); pr.println("hello"); </code></pre>
26,511,016
0
relative width and height in storyboard? <p>I've been developing an ios app and the layout is driving me absolutely mad. So i have a CollectionViewCell, in this collectionviewcell i have 2 UIViews. What i want to know is how can i set width and height of my views relative to their parent container. </p> <p>I've already...
22,709,424
0
<p>Try to use:</p> <pre><code>jQuery(document).ready(function(){ var target = jQuery('.product-image'); target.mouseenter(function(){ jQuery(this).find('.popUpPrice button').show(); }); }); </code></pre> <p>Also <code>target</code> is already a jQuery object. You can just use <code>target.mouseenter</code> instead of ...
6,041,235
0
What does this format do in CSS: p[class|=abc]? <p>What does this format do in CSS:</p> <pre><code>p[class|=abc] </code></pre> <p>and</p> <pre><code>#pTag a[href^="https://"] </code></pre> <p>I'm not able to search for it as I don't know the exact terminology for this.</p> <p>Any help with some links to study on these ...
22,649,117
0
Rails: where to put and how to call scheduled clean-up methods <p>I've written a couple of clean-up methods for a Rails app and I'm trying to figure out where the best place to store them is:</p> <pre><code>def flush @documents = Document.ready_to_flush @documents.each do |document| document.update_attributes(generated...
28,219,500
0
<p>I was facing the same problem. Worked for me when I removed "tessdata" from the path.</p> <pre><code>Before (fail): path = "/mnt/sdcard/tesseract/tessdata"; After (success): path = "/mnt/sdcard/tesseract/"; </code></pre> <p>Then, baseApi.init(path, "eng") worked with no exceptions.</p> <p>Of course, tessdata folder...
8,169,640
0
How does an entity get an ID before a transaction is committed in JPA/Play? <p><a href="http://stackoverflow.com/questions/8169279/how-can-i-commit-a-play-jpa-transaction-manually">See this question</a>.</p> <p>It turns out that even without committing the transaction manually, before the TX is committed, the person ha...
11,578,758
0
<p>Is this the <code>glutIdleFunc</code>, or the one called when you <code>glutPostRedisplay</code>?</p> <p>In either case, you need to first setup a <a href="http://www.opengl.org/resources/libraries/glut/spec3/node49.html" rel="nofollow"><code>glutKeyboardFunc</code></a>, in which you detect whether a certain key is...
32,546,748
0
gradle compile UNEXPECTED TOP-LEVEL EXCEPTION <p>My working build.graddle:</p> <pre><code> apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "19.1.0" defaultConfig { applicationId "com.squiri.squiri" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" //multiDexEn...
9,571,738
0
Picking random number between two points in C <p>I was wondering, is it possible to generate a random number between two limits in c. I.e. my program is set like this:</p> <pre><code>function x { generate random number; } while(1) { function x; delay } </code></pre> <p>so bascially I want a random number to be generate...
40,665,833
0
Siddhi logical pattern AND only works for a pair of events <p>I have been doing some tests using WSO2 Siddhi language and I came across something that I did no fully understand. It seems like a bug/limitation but I would like to hear your opinion/recommendations.</p> <ol> <li><p>Creating a chain of events using logical...
4,213,041
0
<p>The approach being described in the post you linked is to use the <code>WebBrowser</code> control's <code>InvokeScript</code> method to run some javascript. However the post appears to use a "cookies" collection which doesn't actually exist.</p> <pre><code> string cookie = myWebBrowser.InvokeScript("document.cookie...
10,157,941
0
<p>In 2006 I came up with some benchmarks comparing Python 2.4.3 running on an old laptop to ColdFusion 6.1 on a Solaris server. Python was 40-200 times faster than ColdFusion.</p> <p>Keep in mind this happened 6 years ago and times change. Plus I was using Python instead of Ruby.</p>
490,096
0
How do I keep my team involved and motivated? <p>I am currently a grad student, but I was in the industry for a few years before going back to school. </p> <p>I am in a class which involves teams of 4 working on fairly ambitious projects. As a result of having been in the industry, I have a lot of "software engineering...
20,311,475
0
2 different UTM_source passing in a single link <p>I've always wondered what happens when 2 different utm_source are passed on in a link</p> <p><a href="http://example.com/?utm_source=" rel="nofollow">http://example.com/?utm_source=</a><strong>A</strong>&amp;utm_source=<strong>B</strong></p> <p>In this case, which sour...
425,691
0
<p>You don't really need Unix skills to use Java, but if you do you'll have a good toolbox relevant for any kind of development. I certainly appreciate the ability to grep my entire source tree for files, use Perl for code generation and so forth. Even a simple matter of counting all lines of source code can be hard t...
858,794
0
<p>The simplest thing to do would be to either strip out tags with a regex. Trouble is that you could do plenty of nasty things without script tags (e.g. imbed dodgy images, have links to other sites that have nasty Javascript) . Disabling HTML completely by convert the less than/greater than characters into their HTM...
7,839,712
0
<p>You can't. Unlike its Mac counterpart <code>WebView</code>, <code>UIWebView</code> has no API for creating web archives. It can display webarchives that have been created on the Mac though (e.g. using Save as... in Safari).</p>
2,949,221
0
How to find unmapped properties in a NHibernate mapped class? <p>I just had a NHibernate related problem where I forgot to map one property of a class.</p> <p>A very simplified example:</p> <pre><code>public class MyClass { public virtual int ID { get; set; } public virtual string SomeText { get; set; } public virtual ...
30,372,135
0
Add buttons to UINavigationController subclass <p>I'm trying to create reusable subclass of <code>UINavigationController</code>. So here's my code : </p> <pre><code> @interface MainNavigationController : UINavigationController ... - (void)viewDidLoad { [super viewDidLoad]; self.navigationBar.barTintColor = primaryOrang...
33,985,884
0
How to diagnose "org.restlet.data.Parameter cannot be cast to org.restlet.data.Header" error in Restlet 2.3.5? <p>I'm using Restlet 2.3.5 in my application. When the <code>GET</code> request handler of a certain server resource is invoked, I get the following error:</p> <pre><code>[10:26:04] [Restlet-860541310/WARN]: N...
16,481,613
0
BootBox JS for Twitter Bootstrap - how to pass data into the callback function? <p>JS/JQuery newbie here. I'm using BootBox for Twitter Bootstrap, and I'm trying to pass the value of the id attribute of an a element into the callback function:</p> <pre><code>&lt;a class="confirmdel" id="&lt;?= $folioid ?&gt;" href="#"&...
34,671,659
0
How to say to Phabricator to send mail directly? <p>We are using Phabricator for our projects but we have a problem with the mails. We received the mail only hours after the updates. It's kind of under productive sometime...</p> <p>How could I fix this? How could I say Phabricator to send the mail directly? I hardly fi...
40,502,103
0
<p>I think there is no need to use cursor here . first you have to select PERSON.ID of those rows only where we have CA in RentedhouseDetails like</p> <pre><code>select p.id from Person p JOIN RentedHousesDetail r ON p.ID=r.ID where r.HouseLocation='CA' </code></pre> <p>then insert all that record into CALIFORNIAHOUSE...
37,759,739
0
Determine whether destination for file move is on same filesystem in C# <p>I have a Windows Forms application which uses <code>File.Move</code> to move files in response to user request. This is not an asynchronous method, but when the destination is on the same drive it happens almost instantly (I assume because it ca...
22,452,298
0
<p>What about:</p> <pre><code>set.seed(12345) allocation &lt;- NULL block &lt;- sample(c(rep(1,4),rep(2,3)),7) for(i in 1:7){ tallocation &lt;- sample(c(rep(0,block[i]),rep(1,block[i]*2)), 3*block[i]) allocation &lt;- c(allocation, tallocation) } </code></pre>
40,883,207
0
<p>Use <code>super()</code> as the first line inside your constructor for the reason as shared in an SO-answer here - <a href="http://stackoverflow.com/a/1168356/1746118">why-does-this-and-super-have-to-be-the-first-statement-in-a-constructor</a> and you can change your existing code as - </p> <pre><code>public Car(St...
16,364,265
0
Class loading in eclipse plugin <p>I made a <strong>eclipse plugin</strong> that acts on JavaProject. It needs access to information contained in the bytecode of the classes of the project and, therefore, I used a URLClassLoader (saying to it that the classes are in the "bin" folder of the project) to get the reference...
14,989,138
0
How can I prevent overlap of two "spanX" divs when shrinking the screen in Bootstrap? <p>I am using the <code>responsive</code> layout of Twitter Bootstrap 2.3. I have a <code>span9 row-fluid</code> div containing two <code>span4</code> divs.</p> <p>To test the fluidity of the screen, I'm shrinking the window. There co...
15,843,065
0
How can I render the triangle outside the container element? <p>I'm trying to build a menu with CSS. When the <code>li</code> element has a class of active, I want a triangle (of a specific size) to appear next to the container. Please see the following <a href="http://jsfiddle.net/hcabnettek/MeczJ/" rel="nofollow" tit...
9,960,919
0
flowplayer 200 stream not found on firefox <p>Hello I'd like to use flowplayer on a website but I experienced that it is not relieable with my configurations yet.</p> <p>Using firefox I sometimes got the error 200 stream not found. It seemed as if the url of the clip has not been passed to the player.</p> <p>using seam...
134,137
0
<p>Personally I would always run some form of sanitation on the data first as you can never trust user input, however when using placeholders / parameter binding the inputted data is sent to the server separately to the sql statement and then binded together. The key here is that this binds the provided data to a spec...
5,438,386
0
What to do about huge resources in REST API <p>I am bolting a REST interface on to an existing application and I'm curious about what the most appropriate solution is to deal with resources that would return an exorbitant amount of data if they were to be retrieved.</p> <p>The application is an existing timesheet syste...
32,306,023
0
<p>According to this answer:<br> <a href="http://stackoverflow.com/a/2010948/4022252">Storing Objects in HTML5 localStorage</a> </p> <p>localStorage is made to save String key-value-pairs, <strong>only</strong>! </p> <p>null is an empty Object. </p> <p>So this is not a bug, it is actually the expected behaviour.</p>
24,031,274
0
<p>Assuming, a valid JSON string, you would do:</p> <pre><code>$data = json_decode($json_string, true); var_dump($data['data']); </code></pre>
18,793,992
0
<p>This is valid Python syntax when it is located in a module, but in the interactive interpreter you need to separate blocks of code with a blank line.</p> <p>The handy rule of thumb here is that you can't start a new block with <code>if</code>, <code>def</code>, <code>class</code>, <code>for</code>, <code>while</cod...
22,872,703
0
<p>Just try changing <code>port</code> in </p> <pre><code>connect: { options: { port: 9000, // Change this to '0.0.0.0' to access the server from outside. hostname: 'localhost', livereload: 35729 }, </code></pre> <p>I used port 8999 instead of 9000 and it simply worked.</p> <p><strong>Edit</strong>: I forgot to mentio...
33,677,008
0
How can i check that 2 dates between period(month) <p>i have 2 Date (<code>start_date</code>, <code>end_date</code>) with yyyy-MM-dd format and i want to check that if the month between in december 01 - march 31 then do something. For example my <code>start_date</code> is 2015-12-01 or 2016-02-01 and <code>end_date</co...
9,123,154
0
<p>The only buffer you ever created for holding strings was <code>t</code>, which you made at the top of your while loop:</p> <pre><code>char t [KMAX]; </code></pre> <p>So all of your <code>char *</code> pointers will be pointing somewhere into that buffer, but that's a problem because you change the contents buffer e...
15,622,127
0
ODBC Linked Tables Convert Tinyint Fields to Yes/No <p>I'm in the process of converting an Access .ADP project to a .ACCDB with linked tables. I know that a big issue when working with a SQL Server backend is the use of nullable <code>bit</code> fields, since Access's <code>Yes/No</code> data type doesn't allow for nul...
3,887,137
0
<p>You can just add the link inside the title attribute:</p> <pre><code>&lt;a href="myimage.jpg" rel="examples" title="Sandra - &lt;a href='sandra.htm'&gt;Go to her page&lt;/a&gt;"&gt;Sandra&lt;/a&gt; </code></pre> <p>Note the single quotes inside the title attribute, or you could use escaped quotes.</p>
3,222,304
0
<p>Cookies are managed by the browser. You have no direct access to the underlying file. It may not even saved in a file.</p>
16,619,577
0
<p>The <a href="http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#sourceDir" rel="nofollow">ApplicationInfo</a> class is your answer:</p> <pre><code>PackageManager pm = getPackageManager(); for (ApplicationInfo app : pm.getInstalledApplications(0)) { if (app.packageName.equals(appPackage) ...
18,834,535
0
Play sound on mobile web with 3g connection <p>I have a website which have a few sound files to be played. </p> <p><strong>What happens:</strong></p> <ul> <li>If I open the site from my phone with a Wifi connection, it works fine. </li> <li>If I open the site from my computer with the 3g connection provided with my pho...
5,268,037
0
<p>Windows scripting host is not really flexible enough to do this, so you would have to come up with some sort of hack:</p> <ul> <li>Create a symlink from %windir%\system32\config\systemprofile\?path to itunes library? to your users library (iTunes is probably not designed to handle this and so it might not work or c...
39,694,307
0
Gridview Could not found control for modalpopupextender <p>I have a gridview with column "View" ID= "lnkViewContact". On click of this link signup modalpopupextender will be displayed. This popup is similar for all the rows. But when I am running it the error I am getting is "Could not found control lnkViewContact". Ho...
10,352,881
0
<p>Something like this, using form.target and empty window.open (code not tested) : </p> <pre><code>&lt;form name="myform" action="postoffer_preview.php" target="myNewWin" method=post"&gt; &lt;input type="button" name="preview" id="inline_submit_a" value="PREVIEW" /&gt; &lt;/form&gt; &lt;script&gt; var open_post_windo...
2,886,216
0
<p>Your question is not answerable. It depends entirely on whether the lock is contended or not.</p> <p>Let me put it this way: you're asking "does it take a long time to enter the bathroom?" <em>without telling us how many people are already in line to use it</em>. If there is never anyone in line, not long at all. I...
9,956,839
0
Phpmyadmin export VIEW without DATABASE_NAME or ALGORITHM <p>When exporting a sql dump with phpmyadmin it creates the VIEW table like this:</p> <pre><code>CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `database`.`table` etc.. </code></pre> <p>Each time I have to manually edit the sql d...
39,311,166
0
<p>There are also problems defining functions in a header file. I thought I could inline them, but it seems I can only declare them.</p> <p>For instance, I had this header file,</p> <pre><code>// ShaderMath.h #pragma once using namespace metal; float4 conjugate(const float4 q); float4 conjugate(const float4 q) { retur...