pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
34,675,556
0
<p>If you keep your branches relatively related you might be able to use some of the mergeinfo helpers of Subversion to do most of the heavy lifting of determining what is on one branch and not on the other.</p> <p>But if you use strict project policies doing things yourself might be much easier than that. Subversion ...
13,850,085
0
How to check in Perl if symbolic link error? <p>The following bit errors out:</p> <pre><code># Only Execute on Prod Stagesif ($stage eq 'Prod') { if ($stage eq "Prod") { # If /mysql symlink exists, exit0 immediately if ( -l "/mysql" ) { exit(0); } elsif { die "Did not meet expected system disk configuration"; } } exit ...
6,963,888
0
android programming: Methods of Storing Forward(sending) user's location? <p>I am a total novice on android programming and is relying on threads/solutions by veteran android programmers to enhance my application. For now I have 2 problems regarding our android app:</p> <p>How and where could our users send their curre...
4,484,149
0
<pre><code>PointerInfo a = MouseInfo.getPointerInfo(); Point b = a.getLocation(); int x = (int) b.getX(); int y = (int) b.getY(); System.out.print(y + "jjjjjjjjj"); System.out.print(x); Robot r = new Robot(); r.mouseMove(x, y - 50); </code></pre>
20,912,732
0
<p>Try this JSFiddle that seems to fit your needs <a href="http://jsfiddle.net/9nF5W/" rel="nofollow">http://jsfiddle.net/9nF5W/</a></p> <pre><code>function test(email, name) { if (email == "" || name == "") { alert("Enter mail or name"); return false; } if (email.indexOf("@") == -1) { alert("Bad email"); return false...
34,223,566
0
<p>Use the <code>SyntaxFactory.RegionDirectiveTrivia()</code>. You can always refer to the <a href="http://roslynquoter.azurewebsites.net/" rel="nofollow">Roslyn Quoter</a> site, when you don't know who to generate some part of a piece of code.</p>
10,850,079
0
<p>JavaScript knows <em>nothing</em> about the JSF code. Instead it knows everything about its generated HTML output. Look at the generated HTML output by rightclick page in browser and <em>View Source</em>. If you look closely, you'll see that the <code>&lt;p:selectOneMenu&gt;</code> doesn't generate a <code>&lt;sele...
36,844,757
0
Rails Streamio FFMPEG taking a screenshot of the movie and upload with carrierwave <p>I have got a Form where I can upload a movie. Its uploaded with carrierwave.</p> <p>In this process I want to Make a screenshot of the movie while uploading. </p> <p>How can I do this with Streamio FFMPEG.</p> <p>My code Looks like th...
23,284,238
0
iOS capture audio playback into a file <p>I'd like to know if it's possible to record an audio playback into a file in ios without using microphone. In another word, is it possible to capture the audio playback "raw data" into a file?</p> <p>I tried the AVAudioRecorder, but there is no option to record without using th...
4,276,758
0
<p>Given that sqlite only supports UTF-8 and UTF-16 as the encodings, you would have noticed if Android would create databases in something other than UTF-8. <a href="http://www.sqlite.org/c3ref/open.html">sqlite3_open</a> defaults to create the database in UTF-8, and that is what Android is likely to use.</p>
19,503,112
0
PhantomJS is a headless (GUI-less) WebKit with JavaScript API. It has native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG. This tag deals specifically with PhantomJS version 1.9.
39,304,358
0
<p>Yes, you can do it that way. If it's not a hard work, I'll include the database load on the Perl step. This probably avoids to handle an intermediate file, but I don't know if it's a viable task on your project.</p> <p>In order to use RabbitMQ, I'll recommend you the <a href="https://metacpan.org/pod/AnyEvent::Rabb...
12,510,031
0
No Exception In Apache James Server <p>I am using Apache James Server to send e-mails on my localhost. When an e-mail is not sent, no Exception is thrown through from the Java Spring code. I am using Apache James Server 3. Below is my code. Usually, when you have an online server an Exception is thrown. Do I need to co...
37,223,969
0
<p>If you mean, can how can you show the results of observable array in your view, then there's few ways to go on about that:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var data = [{ Url: 's.Piece.Name', Id: '...
24,038,304
0
<p>This makes it easier when defining method return types such as this:</p> <pre><code>class A&lt;B extends A&lt;B&gt;&gt; { public B getMe(){ return (B) this; } } </code></pre> <p>This tells Java compiler that you are in <code>getMe()</code> method returning a subclass of class <code>A</code>.</p> <pre><code>class C ...
22,237,309
0
Run js once an image has been lazy loaded <p>I'm using this lazy load jQuery script ( <a href="http://www.appelsiini.net/projects/lazyload" rel="nofollow">http://www.appelsiini.net/projects/lazyload</a> ) to lazy load images when they appear in the viewport, but I want to run some javascript / styling to style the new,...
9,115,696
0
Android and playing SVG animation <p>I'm writing an Android application and I'd like to play a simple SVG animation. I'm aware that Android does not offer SVG support; what are my options here?</p>
14,562,363
0
Selenium web driver not able to close firefox instance if a Test cases is failed <p>i folks, i am using junit with selenium web driver 2.28. the problem is if i run a successful test case the web drives is able to close the firefox instance, but when a test case fails the selenium web driver is not able to close the fi...
33,625,750
0
<p>You maybe intrested in <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javap.html" rel="nofollow">javap</a></p> <p>I have created A.java, B.java, C.java, D.java fiels:</p> <pre><code> public class A { public static void main(String[] args) { B b = new B(); b.getC().getD(); } } </code></pre> <p...
17,914,195
0
<p>Use classes instead of IDs as propper markup there should be only 1 ID of a given name per page.</p> <p>HTML</p> <pre><code>loop 1 &lt;p&gt;- user review-&lt;/p&gt; &lt;a href="#" class="upvote" data-review="1"&gt;Up Vote&lt;/a&gt; loop 2 &lt;p&gt;- user review-&lt;/p&gt; &lt;a href="#" class="upvote" data-review="...
35,124,826
0
How to insert CheckBoxList Checked Item to Database <p>I have a check box list, and I want to insert its Checked items to Database; I used this code:</p> <pre><code>for (int i = 0; i &lt; checkBox_service.Items.Count; i++) { if (checkBox_service.Items[i].Selected == true) { strcheck += "" + checkBox_service.Items[i].To...
35,424,427
0
<blockquote> <ol> <li>What is <code>mk</code> returning?</li> </ol> </blockquote> <p>Let's go through a much simpler example In the documentation of GHC.Generics first. To achieve a generic function <code>encode :: Generic a =&gt; a -&gt; [Bool]</code> that bit serialize every data type which has a Generic instance, t...
41,004,464
1
how to obtain the name of the program active in this moment? <p>to be more specific, i need to obtain the title's name of the program that currently is working on my pc(windows), if for example i am using Excel,I want to put in a variable, the name of it, Excel in this case, thanks a lot and excusme for my terrible eng...
33,263,298
0
Winforms UI hang after DisplaySettingsChangingevent <p>I am working on an application that generally runs 24x7. It does so well for a period of time but I have noticed that after the DisplaySettingsChanging event fires (via an RDP connection) the application will continue to process in the background but the UI becomes...
12,918,670
0
<p>Yes, it's possible. You just need to specify some directives in your manifest.json:</p> <pre><code>"content_security_policy": "default-src 'none'; script-src 'self'" </code></pre>
30,509,910
0
<p>For most databases there is the option of batch insertions. Obviously even a small overhead will accumulate if you have to many connections over time. And performing single insertions will have a greater overhead than on batch. The only issue is how often?.... And you should test how often you wan't to insert and h...
6,583,297
0
Unit test design question <p>I'd like to unit test this method</p> <pre><code>public string Edit(int id) { var item = _repository.Get(id); string json = _jsonConverotr.Convert(item); return json; } </code></pre> <p>The repository will by mocked. But the jsonConvertor is a simple class to convert an entity to json.</p> ...
129,115
0
<p>You can use SQL Profiler to find that out.</p> <p>EDIT: If you can stop the app you are running, you can start SQL Profiler, run the app and look at what's running including stored procedures.</p>
185,993
0
MVP examples for Windows Forms <p>Is there good example code or a test project for explaining the <a href="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter" rel="nofollow noreferrer">Model–view–presenter (MVP) pattern</a>. There are a lot of explanation links, but I want to have some good example code ...
31,255,620
0
<p>You can use <code>sprintf</code> and <code>\n</code> to get multiple lines. The additional <code>HorizontalAlignment</code>-property aligns the text horizontally. Then you just need to fine fine-tune the overall position.</p> <pre><code>f = figure('menu','none','toolbar','none'); txt = sprintf('Line 1\nA longer lin...
63,740
0
<p>Is it possible that we are in a panic and are getting confused between unit tests and performance tests? Is it that your application works fine with few users, but starts throwing errors when under heavier load? If so, unit tests are not the answer. Unit tests != Load tests.</p> <p>If unit tests are in fact the ans...
20,647,178
0
Winston logging to multiple file logs without duplicating log messages <p>Here is my Winston config:</p> <pre><code>winston = require 'winston' logger = new winston.Logger transports: [ new winston.transports.File name: 'file#debug' level: 'debug' filename: '/tmp/debug.log' new winston.transports.File name: 'file#error...
4,995,806
0
Delay ajax request by x seconds and update only the last clicked request <p>Hi all I am delaying a AJAX request by 3 seconds and then updating a div with the response. But the problem what I face is, when the user clicks on all the three links simultaneously, the requested content keeps getting updated in the div. What...
7,941,162
0
<p>Does your scheme target dropdown list show "iOS Device" or does it show the "name" of your iPod Touch (something like "jons ipod touch"):</p> <p><img src="https://i.stack.imgur.com/ia2hw.jpg" alt="Scheme Target"></p> <p>If it shows "iOS Device", that means your iPod isnt recognized by xcode and you may need to enab...
17,434,119
0
How to get frequency of elements from List in c# <p>I am trying to get the frequency of elements stored in a list.</p> <p>I am storing the following ID's in my list</p> <pre><code>ID 1 2 1 3 3 4 4 4 </code></pre> <p>I want the following output:</p> <pre><code>ID| Count 1 | 2 2 | 1 3 | 2 4 | 3 </code></pre> <p>In java y...
38,331,135
0
<p>For people coming here in 2016, you can find lots of useful colours here: </p> <pre><code>nameStyle.Color = NPOI.HSSF.Util.HSSFColor.BlueGrey.Index; </code></pre> <p>Whereby BlueGrey is the colour you are looking for.</p>
1,672,285
0
<p>The short answer:</p> <p>the .net platform can be used for transactional systems, but the question is really is the platform scalable enough and can it perform well enough under extremely high volumes?</p> <p>.Net like every other high level language has a place in this world, and I personally would not use .net ma...
16,134,975
0
Reduce increasing time to push a subtree <p>I'm using git in my project, which consists of several sub-projects. Each sub-project is "linked" in the main project using the "git subtree" command. That's my way to realize "svn externals" in git. I'm using it since some weeks, but the time pushing my changes from the subt...
25,720,054
0
<p>If _disable_f2 is being given two arguments, let it have what it wants.. try below... :)</p> <pre><code>from Tkinter import * class App: def _disable_f2(self, master): if self.filt.get() == 'bandpass': self.filter_menu.configure(state='normal') else: self.filter_menu.configure(state='disabled') def __init__(self, m...
6,457,620
0
Convert a string to datetime <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1009457/how-can-i-convert-a-string-into-datetime-in-net">How can I convert a string into datetime in .NET?</a> </p> </blockquote> <p>i have a string in the following format "15/03/2046". how...
9,564,313
0
WCF REST - Myriad of ways to create - How to choose? <p>I am learning to create RESTful services using WCF. There are a myriad of options to choose from. I am confused as to what should i use. 1.)REST Starter kit - Seems to be obsolete 2.)WCF WEbhttp service 3.)WCF Web API 4.)ASP.NET web api</p> <p>I dont want to use A...
6,937,472
0
I want background of my cocos2d game to be the view of the camera of iphone. How do i do that? <p>I am making a game with augmented reality in it. So, i want to have the camera view as the background of the game. However, I am finding some difficulties in doing this.</p> <p>I tried doing it using the UIImagePickerContr...
37,686,123
0
<p>'Key' in the <code>getCommand</code> array is the name/path to the file you want to generate a pre-signed URL for, not your AWS key :)</p> <pre><code>$cmd = $s3Client-&gt;getCommand('GetObject', [ 'Bucket' =&gt; 'my-bucket-name', 'Key' =&gt; 'path/to/file.txt', // or just file.txt if it's in the root of the bucket ...
11,603,209
0
<p>Do you mean to return it as a 32-bit integer?</p> <pre><code>unsigned int get_color(cv::Mat img, float x, float y) { int i = x*img.cols; int j = y*img.rows; unsigned char R = img.ptr&lt;unsigned char&gt;(j)[3*i]; unsigned char G = img.ptr&lt;unsigned char&gt;(j)[3*i+1]; unsigned char B = img.ptr&lt;unsigned char&gt...
19,482,019
0
Not getting correct answers from very simple functions <p>Okay, so I'm a complete noob. I'm trying my hand at Project Euler to get better at C++. I'm doing problem #1, but I'm not getting the correct output. When I run it, I get that numTotalThree is -3, and numTotalFive is -5, and that numTotal is 0. There's something...
31,406,320
0
Modal window with Angular (UI-Router / Directive) <p>I have spent some time now looking into a generic way of controlling a modal window with <code>AngularJS</code> and none of the proposed options are anywhere near 'good' solution.</p> <h2>The Directive Solution</h2> <p>I found <a href="http://jsfiddle.net/alexsuch/RL...
15,229,132
0
<p>Try this regex.</p> <pre><code>url = url.replace(/^http:\/\//i, 'https://'); </code></pre>
39,911,362
0
<p>You can use the <code>format</code> option:</p> <pre><code>// Move formatting code into a function function toFormat ( v ) { return formatDate(new Date(v)); } // Add a formatter to the slider format: { to: toFormat, from: Number } // You can then directly use the value in the update function dateValues[handle].inne...
3,331,463
0
JQuery wrap() problem <p>Why doesn't the following code wrap the image with <code>&lt;li&gt;</code> tags and what would be the best way to do this?</p> <pre><code>var i = new Image i.src = '/images/image.jpeg' $(i).wrap('&lt;li /&gt;') $('div').html(i) </code></pre> <p>produces:</p> <pre><code>&lt;div&gt;&lt;img src="/...
34,231,733
0
<p>The CoolEdit snapshot looks like its reading a file with a 44.1 kHz sample rate linear PCM format. You appear to be storing 16 kHz ALaw format data into that file, which may be the wrong format for either the data or the file.</p>
33,328,442
0
<p>I have done this job,I have just edited <code>jquery</code></p> <pre><code>$(".left-menu-button").click(function() { $(this).parent().children('.left-menu-content').toggle("slow", function() { }); }); </code></pre>
38,729,249
0
Is Scope of SharedPreferences Limited to One Time Use? <p>I am curious about sharedPreferences and my real question is <code>Variable stored using sharedPreferences in one activity can be fetched in second activity but can i get the value of variable again in third activity ? does it provide this usage? if not How can ...
8,368,174
0
<p>It looks like you're using the same date object for both log statements. Add this before your "download complete" log statement:</p> <pre><code>dt = new Date(); </code></pre> <p>By the way, all those methods (getSeconds, getHours, etc) of Date are depricated. You can get the timing simply by doing a System.currentT...
3,207,889
0
<p>Keep it simple. How about this?</p> <pre><code>while ( my $tag = $parser-&gt;get_tag('input') ) { my $name = $tag-&gt;get_attr('name'); next unless defined $name and $name eq 'hush_username'; print "Value: ", $tag-&gt;get_attr('value'), "\n"; } </code></pre>
14,250,872
0
IE7 css styles being applied inconsistently <p>I apologize if this question has been asked before. I am relatively new to CSS and web development. I am developing a web app that has to target IE7. For the life of me I cannot figure out why on the "assignments" page the unordered list is formatted one way and on the "Em...
33,877,521
0
<p>Use double brackets <code>[[]]</code> to create a list instead:</p> <pre><code>fit_ &lt;- list() for (i in 1:20){ fit_[[i]] &lt;- lm(y ~ x1 + x2 + x3, data=mydata) } </code></pre> <p>Or use Roman's solution in the comments if you want to have separate objects <code>fit_1</code>, <code>fit_2</code>, etc.</p>
11,705,138
0
<p><code>opa src/*.opa</code> should work ;)</p> <p>Otherwise, it's just basic Makefile manipulation i guess.</p>
31,890,607
0
<p>If you turn stop on errors on, then interrupting it, even with ctrl+c, brings you to the place where it was executing and you have the whole workspace available:</p> <pre><code>dbstop if error </code></pre>
21,332,719
0
Hide on-screen menu bar android from code <p>Is there a way to hide on-screen menu bar in an android app from code?</p> <p><a href="https://www.dropbox.com/s/cbs7rbac07rs5ks/Screenshot%202014-01-24%2014.24.48.png" rel="nofollow">https://www.dropbox.com/s/cbs7rbac07rs5ks/Screenshot%202014-01-24%2014.24.48.png</a></p>
14,931,398
0
<p>You can do this with few simple lines of code</p> <pre><code>NSString *documentDirectoryPath = // Initialize with Documents path BOOL isDir = NO; NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *files = [fileManager contentsOfDirectoryAtPath:documentDirectoryPath error:NULL]; NSMutableArray *di...
35,819,031
0
<p>A simple way to do this is to send a response back to the client in the form of html:</p> <pre><code>response.setContentType("text/html"); PrintWriter out = response.getWriter(); //Returns a PrintWriter object that can send character text to the client out.println("&lt;h1&gt;Registered successfully&lt;/h1&gt;"); </...
8,352,852
0
<p>I guess you would be better off with <a href="http://office.microsoft.com/en-ca/web-apps/" rel="nofollow">Office Web Apps,</a> than. Refer for similar threads <a href="http://stackoverflow.com/questions/726293/can-you-do-complex-editing-of-word-documents-in-a-browser">here</a> and <a href="http://stackoverflow.com/...
27,196,984
0
<p>HTML5 practices are all about semantics. If your bold text is bold because you want to place a strong emphasis on that text, you should use <a href="http://html5doctor.com/i-b-em-strong-element/" rel="nofollow"><code>&lt;strong&gt;</code></a>. If your highlighted text is highlighted because it's something you want ...
22,799,804
0
<pre><code>' VS.net 2013. Use the "Shown" event. ' GotFocus isn't soon enough. Private Sub Form_Shown(sender As Object, e As EventArgs) Handles Me.Shown TB.SelectionLength = 0 End Sub </code></pre>
14,232,824
0
<p>Unless you convert the project with the <code>one:convert</code> goal, you won't be able to. You have to understand that Maven 1.x and 2.x are extremely different. Either just install 1.x and build the project with it, or convert it, if that is at all possible, as the conversion plugin will not solve everything for...
12,834,338
0
<p>Since you are using jQuery you can use:</p> <pre><code>$(function(){ var myObject = $('#container'), offset = myObject.offset(); //then you can access offset.top and offset.left }); </code></pre>
10,334,307
0
<p><strong>disclaimer</strong> I dont' recommend you expose <code>object</code> on a WCF endpoint; altho this appears 'flexible' this is not a good idea as you have not specified what sort of information will be served by your service.</p> <p><em>and now for an answer</em></p> <p>If your WCF call is being consumed by ...
21,127,641
0
<p>You need to remove the <code>&amp;</code> operator when passing the <code>client</code> variable to the <code>lpParameter</code> param of <code>CreateThread()</code>:</p> <pre><code>//CreateThread(..., &amp;client, ...); CreateThread(..., client, ...); </code></pre> <p><code>SendToPeer()</code> is expecting to rece...
2,245,372
0
<p>No. Newer matches overwrite older matches. Perhaps the <code>limit</code> argument of <code>explode()</code> would be helpful when exploding.</p>
6,484,689
0
<p>You can split on an empty string:</p> <pre><code>var chars = "overpopulation".split(''); </code></pre> <hr> <p>If you just want to access a string in an array-like fashion, you can do that without <code>split</code>:</p> <pre><code>var s = "overpopulation"; for (var i = 0; i &lt; s.length; i++) { console.log(s.char...
21,126,381
0
<pre><code>&lt;%= i.awards.sum(:points) %&gt; </code></pre> <p>For for the sum of all points from all recipes:</p> <pre><code>&lt;%= @user.recipes.map { |r| r.awards.sum(:points) }.sum %&gt; </code></pre> <p>Although it might be sensible to do this calculation within the model. You'll remove a lot of duplication that ...
2,369,874
0
<p>Setting the website's trust level to "full" has no bearing on how script runs on the client browser, it affects how the server runs your site.</p> <p>Generally, you are not allowed to muck around on a "client PC" in this way, for fairly obvious reasons, and depending on where (and how) this code is running (is it i...
3,344,788
0
<p>There are a lot of other conditions that I've been hearing about with non-relational systems vs relational. I prefer this terminology over sql/no-sql as I personally think it describes the differences better, and several of the "no-sql" servers have sql add-ons, so anyway.... what sort of concurrency pattern or tra...
17,998,503
0
Accessing variables across different scopes in Javascript & YUI 3 <p>I'm new to YUI 3 and YUI in general. I'm trying to pass data between classes and methods.</p> <p>In this example I'm using the <strong>gallery-sm-treeview</strong> plugin to build a file tree. There's a class named <strong>TreeView</strong> to initial...
10,421,426
0
<p>Problem since solved. I was given the answer by Aaron Heckmann over on the <a href="https://groups.google.com/forum/#!topic/mongoose-orm/0p-rhtcJdng">mongoose Google Group</a>:</p> <blockquote> <p>Always declare your child schemas before passing them to you parent schemas otherwise you are passing undefined. </p> <...
19,378,226
1
Check if a word is a palindrome <p>First of all, I have checked if this question relates to any old posts, but these haven't helped me. If it does relate to any old posts, I am terribly sorry.</p> <p>This relates to a practice python coding exercise that I have been working on.</p> <p>As the code is incomplete, I am go...
39,385,940
0
<pre class="lang-js prettyprint-override"><code>^[a-zA-Z0-9]+(?:\.?[\w!#$%&amp;'*+/=?^`{|}~\-]+)*@[a-zA-Z0-9](?:\.?[\w\-]+)+\.[A-Za-z0-9]+$ </code></pre> <p>No <code>..</code> and at least 1 <code>.</code> and 1 <code>@</code>.<br> Also starts/ends with letters/numbers.</p> <p>The <code>^</code> (start) and <code>$</c...
17,739,105
0
<p>You can use this code as well to fetch your twitter feeds to any webpage. Please try by putting it to server (because some times i saw problem of not fetching feeds on local machine, but don't worry it would work on server - say with .php file extension)</p> <pre><code> &lt;script&gt; var twitterFetcher=function(){...
35,081,638
0
How to show same video in two VideoViews simultaneously <p>I'm working with VideoView and I'm trying to show same video in two Videoviews like this <a href="https://play.google.com/store/apps/details?id=co.mobius.vrcinema" rel="nofollow">application</a></p> <p>I'm following this <a href="http://stackoverflow.com/questi...
36,841,103
0
Java recursion sum of number non divisible by specific number <p>I have to find sum of the all even numbers that are not divisible by 7 using recursion. I tried this code but it seems I am making mistake somewhere because it returns 0: </p> <pre><code>public static void main(String[] args) { System.out.println(specialS...
21,170,663
0
<p>Heroku dynos are all running on machines within Amazon EC2 us-east-1 data center. They do not have any restrictions/firewalls on outgoing connections.</p> <p>As long as you have the proper Security Group settings to allow the connections from your dynos to your own EC2 instance, you should be good.</p> <p>It sounds...
6,451,581
0
PHP Login application - Check if username already exists when creating a new user <p>The title tells pretty much everthing, that needs to be said. I'm having a registration code looking like this: </p> <p>I wan't it to check, if the username entered already exists, if it does - write and $errMsg = ""; and echo it out l...
14,374,814
0
<p>Ok one only learns by example, stop using the mysql_functions(), They are no longer maintained and are officially deprecated. And in PHP 5.6 they will most likely be removed, rendering you code broken.</p> <p>Move over to PDO with prepared querys. A Port of your current code using PDO:</p> <pre><code>&lt;?php // SQ...
39,870,541
0
<p>Add this style, this might help,</p> <pre><code>.ui-widget.ui-widget-content { left: auto !important; right: 160px !important; } </code></pre> <p>make sure you have added the style in proper <code>@media</code> statement. I have tested in Full HD, 1366 monitor. Screenshot attached.<a href="https://i.stack.imgur.com...
7,669,403
0
correct way to display image from php onto page <p>I am not getting my image correctly. I am unsure what is happening. First things first, the image is coming out of a mysql query. Little confused about how to make that image ready for a ajax call?</p> <p>here is how I get the image out mysql</p> <pre><code> if(mysql_q...
14,433,409
0
How can I run Selenium (rspec2/capybara) tests as if though dial up or mobile connection? <p>I'd like to run my test suite as if I were on a mobile or dial up connection. I'm using a rails stack with rspec2, selenium. Any advice?</p>
2,250,955
0
<p>I had initially thought of using composite commands. But by going through documentation it may not fit my requirements. </p> <p>Ex : Application supports 40 views Main region -> 20 Views that are active , all the view models are derived from baseviewmodel. </p> <p>toolbar -> save button -> databinding to composites...
38,188,912
0
Sonata admin form mapper one-to-many relation with too many entries <p>I have a performance problem with sonata.</p> <p>I built a form with a one-to-many relation that works great between operation on several products, everything is fine in dev environment, but in production, I have 250000 products to be managed that m...
36,033,212
0
Mathematica DSolve diff. equation over a particular domain <p>I am looking for a way to solve the following differential equation:</p> <pre><code>DSolve[(1 - b*Abs[z])*f[z]/a == f''[z], f[z], z] </code></pre> <p>Therefore I tried to DSolve it distinguishing z>0 from z&lt;0 such as:</p> <pre><code>DSolve[(1 - b*z)*f[z]/...
4,534,254
0
changing the value given by date("U") without changing the server time <p>ive been using date("U") allover my script when suddenly i found that i need to add timezone option in the website , which means all date("U") should look like <code>date("U") + $someTime</code> , is there any way i could change the time that the...
20,416,398
0
DocPad v6.57.0 - Failed to load/Unable to parse <p>I am new to DocPad, and I was running the KitchenSink demo with no issues.</p> <p>I then decided to follow the Beginner Guide on the DocPad website (no skeleton), and I am hitting a snag at "Installing the template engine" section. </p> <p>I got this warning when I tri...
38,914,083
0
<p>you can use the <code>title</code> property</p> <pre><code>&lt;p class="hover" title="{{item.name}}"&gt; </code></pre> <p>or if you what to use angular for it and not the tooltip</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre clas...
20,792,799
0
<p>I know this won't help too much, but this code works perfectly fine in Chrome and Firefox</p> <p><a href="http://jsbin.com/iluXOGe/2/edit" rel="nofollow">http://jsbin.com/iluXOGe/2/edit</a></p>
10,584,163
0
<h2>No</h2> <p>Is the simple answer, you have to extend CIs functionality and use a library from a third party to provide these features for you. CI doesn't focus on the aesthetics of the "front-end". Its primary focus was "back-end". </p> <h2>Your Options:</h2> <p>look into Phil Sturgeons template library, and CI Spr...
13,365,989
0
<p>$a == $b Equal TRUE if $a is equal to $b after type juggling. $a === $b Identical TRUE if $a is equal to $b, and they are of the same type. </p> <p>it looks that</p> <p>if you check 0 against a string with == then PHP returns true:</p> <p>php -r 'var_dump(0 == "statuses");' -> returns TRUE</p> <p>but not if your st...
22,642,695
0
Proper Unit Test for ASP.NET MVC5 <p>I have got following code and I have no clue which proper Unit Test I have write out for those methods and how it can be done. Basically I would like to use NUnit.Framework. </p> <p>Thank you in advance for ANY clue!</p> <pre><code> [AllowAnonymous] public ActionResult ForgotPasswor...
11,778,636
0
Submit a form with data from other form JSF <p>I have a form that I want to submit with JSF/Richfaces.</p> <p>To execute the form action, I need to be sure a data from another form is valid.</p> <p>So my question is, how can I submit a form with data come from another form ?</p> <p>My code is like this:</p> <pre><code>...
21,783,196
0
<p>assuming you are using rake to apply an active record migration. The file path will be relative to where you started rake which I'm sure will be the projects root.</p> <p>The file path would be:</p> <p>content = File.read("app/views/layouts/application.html.erb")</p>
15,276,750
0
<p>By making the assumption that express middleware handling is not broken: Why don't you try to write an injection middleware that is responsible to inject the desired session data and place the injection middleware before your middleware function you want to test?</p> <p>With this approach you don't test client code...
36,126,439
0
<p>Connectors are quite hit and miss when it comes to sites like the one you are trying..</p> <p>However there is a workaround for this particular site that you might want to try:</p> <p>If you notice when the page has changed to display the email values the url is in the following format: <a href="http://royalenfield...