pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
31,289,958
0
auto fix errors when removing a user control property <p>When I remove a user control property that I have created and used in a project. There will be as many errors as times I have used control in project. For example imagine I have user control and it has a property named <code>p1</code>. when I remove <code>p1</cod...
35,638,617
0
<p>You code is not formatted with indents, so this may be wrong.</p> <p>I suspect your indentation results in <code>if j in screen:</code> running after the <code>for j...</code> loop, not in it. Also, read the definition of <code>pass</code>.</p>
36,789,589
0
<p>As far as I understand, you don't need to use <code>Semaphore</code> here. Instead, you should use <code>ReentrantReadWriteLock</code>. Additionally, the <code>test</code> method is not thread safe. </p> <p>The sample below is the implementation of your logic using RWL</p> <pre><code>private ConcurrentMap&lt;String...
12,090,560
0
<p>According to <a href="http://msdn.microsoft.com/en-us/library/hh180779%28v=vs.95%29.aspx?ppud=4" rel="nofollow">this</a> article you must set <code>[MediaStreamAttributeKeys.CodecPrivateData]</code></p> <p>in the format that codec is expecting ([START_CODE][SPS][START_CODE][PPS])</p> <pre><code>videoStreamAttribute...
721,811
0
Excel VBA - Initializing Empty User Types and Detecting Nulls <p>I have created a user defined type to contain some data that I will use to populate my form. I am utilizing an array of that user defined type, and I resize that array as I pull data from an off-site server.</p> <p>In order to make my program easier to di...
22,040,153
0
<p>I'd use a <code>Timer</code> object.</p> <p>There's a full example:</p> <pre><code>public class TimerActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MyTimerTask myTask = new MyTimerTask(); Timer myTimer = new ...
34,570,311
0
does not change the options <p>I'm trying to make the options to search by company name or identification of the company with the options on rails. I'm using it with simple_form, someone can help me to choose the options.</p> <p>the line number is 60 which says : <code>&lt;%= f.collection_radio_buttons :options, [['C',...
27,045,735
0
<p>The Implicit Grant Type is being seen by many (lucadegasperi's oauth2-server-laravel among others) as the least secure of the OAuth2 grant types, therefore I recommend you to use JWT for your service website instead.</p> <p>To integrate JWT with Laravel, have a look at the following library. It works very well, and...
37,466,112
0
<p>I was able to get this to work by adding my custom class to the Entity Framework model (even though it does not have a table). I think it was easier with the a code model. I don't know if it would have been doable with a design model (edmx).</p> <p>This link got me started:</p> <p><a href="http://breeze.github.io/d...
21,298,408
0
Trying to get two buttons remained in the status column of a grid <p>I'm trying to place a couple of buttons under the Status column as per screenshot.</p> <p>Here's my HTML code below( the picture)</p> <p><img src="https://i.stack.imgur.com/9OKXq.png" alt="enter image description here"></p> <pre><code>&lt;div class="t...
25,030,459
0
Convert JObject to type at runtime <p>I am writing a simple event dispatcher where my events come in as objects with the clr type name and the json object representing the original event (after the byte[] has been processed into the jobject) that was fired. I'm using GetEventStore if anyone wants to know the specifics....
15,508,454
0
If you are using this tag, it is a good indication that you are asking a question that does not belong here.
36,726,504
0
Autohotkey Open Folder of Current Application or Process <p>In this code no open current application folder because the FilePath variable include exe file name</p> <pre><code>F11:: PID = 0 WinGet, hWnd,, A DllCall("GetWindowThreadProcessId", "UInt", hWnd, "UInt *", PID) hProcess := DllCall("OpenProcess", "UInt", 0x400 ...
7,330,809
0
How to create a short url for sharing on social media <p>I'm trying to write some code which shares a page on Facebook and twitter. The problem I'm facing is that the page I'm trying to share has a big query string like:</p> <pre><code>http://domain.com/see.php?c=3&amp;a=123&amp;v=1 </code></pre> <p>But it seems that F...
39,705,323
0
Call different method depending on Bool without if-statement in Swift <p>Is it possible to call one or another method depending a <code>Bool</code> value? I wish to do this:</p> <pre><code>var isLocked: Bool { didSet { // This is not Swift but indicates what I'm looking for. self.activityIndicator.(isLocked ? startAnim...
1,757,839
0
<p>I assume pageTabPanel isn't defined at the time you trigger the handler. Try to remove the var keyword in front of "var pageTabPanel =" to make it a global variable.</p> <p>If that works, it's a scope/variable issue. The better solution is to give the tabpanel an id and call Ext.getCmp('tabpanelid').render('content...
15,910,002
0
<p>I have created an example where you can sort your ArrayList even if its with objects. You can read through it an see if it's helps.</p> <p>I have made two classes and a test class:</p> <p>First class is Country:</p> <pre><code>public class Country { private String countryName; private int number; public Country(Str...
34,445,315
0
<p>Basically <code>nscurl --ats-diagnostics &lt;url&gt;</code> just tries all possible variants of connection to server and responses with PASS/FAIL results for each test. You should just find which tests pass for your server and set ATS configuration accordingly.</p> <p><a href="http://useyourloaf.com/blog/app-transp...
40,849,963
0
<p>You need to loop over the sheets in the workbook and manipulate each one individually:</p> <pre><code>Dim sheet As Worksheet For Each sheet In ActiveWorkbook.Worksheets sheet.Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete Next </code></pre>
29,992,582
0
How to perform Array/Object destructuring manually & efficiently? <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment" rel="nofollow">Array destructuring</a> is super useful:</p> <pre><code>var [a, b, c] = [1, 2, 8]; </code></pre> <p>It looks like it was <a h...
19,892,982
0
Button appears on hover <p>I have a box. when you put your mouse over the box, a button appears on top of the box. the hover function works in such a way that it doesn't recognize that the mouse is still on top of the box. how can I solve it?</p> <pre><code>//I create the paper var paper = Raphael(0, 0, 500,500); //I a...
19,602,175
0
<p>you can hide the table before it is initialized and show it after initializing is complete.</p> <p>Use CSS to hide the table.</p> <pre><code>.grid { display: none; } </code></pre> <p>add fnInitComplete to your datatable settings to show the table once it is intililized.</p> <pre><code>enter code here $(".grid").dat...
13,484,797
0
<p>After investigation it seems that getting a 403 error happens if the account that is set in <code>.setServiceAccountUser("admin.of.my@domain.com")</code> is not a "Super Admin" of the domain.</p> <p>However in the case above "admin.of.my@domain.com" is indeed a Super Admin of the domain. Also the code works well wi...
35,340,840
0
<p>You can have similar code for other radiobuttons also</p> <pre><code>$("#laufzeit_0").change(function(){ if($(this).is(":checked")){ if($("#abrechnung_0").is(":checked")){ $("div.YOUR_DIV_CLASS").show(); } } }); </code></pre>
6,392,749
0
i want my shape when hit with inside of stage , rotate and countinue move in true angle forever <p>![My Map][1]</p> <p>i want simulate Billiard ball in my project. but my code does not work good. when start with (for example) 34 degree , when hit with wall(stage in this example) return with true degree. in flash , as3<...
12,647,043
0
<p>You should not be storing numeric data as a string but if you do, then you will need to <code>cast()</code> it to apply a <code>SUM()</code> aggregate to it:</p> <pre><code>SELECT SUM(CAST(yourcolumn AS DECIMAL(10, 2))) FROM yourtable </code></pre> <p>So your query will be:</p> <pre><code>select sum(cast(qty as DEC...
29,697,845
0
<p>I am finally able to find solution for this. I added encode property like this $mail->encoding = base64. It worked.</p>
32,024,825
0
Combine two wallets bitcoin <p>I have two PC and bitcoin-qt on both. On first PC I have a wallet encrypted with my passphrase <code>AAAAAAA</code> and on my second PC I have a wallet encrypted with other passphrase <code>BBBBBBBBB</code>. I want have all my btcs in my first PC because I want to sell my other PC.</p> <p...
17,577,082
0
<p>I don't think it's possible to retrieve completely unrelated tables through LINQ in one shot. Maybe for performance reasons you should consider caching so you won't need to query the database every time.</p> <p>With plain SQL on MSSQL you could use batch statements.</p> <pre><code>var batchSql = "select * from Repo...
1,598,810
0
<p>Is it a high resolution image? which you are trying to load,</p>
13,168,742
0
<p>Gibberish,</p> <p>Try the <strong><a href="http://www.outsharked.com/imagemapster/" rel="nofollow">ImageMapster</a></strong> jQuery plugin, which acts on image maps to offer (at v1.2.6) the following features :</p> <ul> <li>Highlight and select areas</li> <li>Cool effects by using an alternate image</li> <li>Bind t...
14,922,606
0
Easier way to work with $$ <p>I am looking for an easier way to make my example below:</p> <pre><code>&lt;?php $q = "Q".rand(1, 3); echo $$q; ?&gt; </code></pre> <p>Thanks.</p>
34,538,239
0
Navigating to another HTML Page in Apps for Office gets Office.js has not been fully loaded yet <p>This is in regards to Apps for Office.</p> <p>I have two pages: <em>Home.html</em> and <em>Details.Html</em>. Once I load some data into a table in Excel, I then use <code>location.href="Details.html"</code> to load the p...
29,008,393
0
<p>I must say that it works perfectly like it should be.</p> <p>If you want it to be:</p> <pre><code>Before After Screen </code></pre> <p>Try this:</p> <pre><code>final LinearLayout screenRL = (LinearLayout) findViewById(R.id.screenRL); new Thread(new Runnable() { @Override public void run() { for (int i = 0; i &lt; 4...
2,342,382
0
<p>Having previously worked with Spring's HTTP invoker remoting, I can say that there's built-in support for passing Spring security tokens. I would assume that Spring's RMI solution also has this feature, but you'd need to dig around in Spring's RMI classes/javadoc to confirm this.</p> <p>On the client side, you'll n...
34,627,665
1
Adding error bars in line figure with missing data <p>I want to draw lines between missing data as suggested <a href="https://stackoverflow.com/questions/14399689/matplotlib-drawing-lines-between-points-ignoring-missing-data">here</a> but with error bars.</p> <p>This is my code.</p> <pre><code>import matplotlib.pyplot ...
6,029,712
0
<p>If you're on Windows, try using <a href="http://4dpiecharts.com/2011/04/15/friday-function-setinternet2/" rel="nofollow"><code>setInternet2</code></a> so that your IT network thinks that it is Internet Explorer connecting to the internet. Often useful for evading corporate lockdown.</p>
30,435,216
0
Search in mysql column against provided json value <p>I have a table contents. Columns -> id, title, description.</p> <pre><code> CREATE TABLE IF NOT EXISTS `contents` ( `id` int(10) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `description` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1...
11,296,367
0
<p>Another way is, don't extend <code>ListActivity</code>. Just extends <code>Activity</code>, then you can create your list view by <code>setContentView()</code> and get the list view by <code>findViewById(R.id.yourlistview)</code>.</p> <p>If you extends from <code>ListActivity</code>, then don't use <code>setContent...
17,551,424
0
Can't access array item within angular.js view <p>I'm trying to access the first item in an array within an angular.js view like this:</p> <pre><code>&lt;p class="name-label"&gt;{{user_profile.email[0].emailAddress}}&lt;/p&gt; </code></pre> <p>My object looks like this:</p> <pre><code>Object { .... "email": [ { "emailT...
40,792,557
0
Select past days from Calendar <p>I am trying to open calendar from past days but calendar starts from today and past days.How to show only past days.For example today's date is 24-11-2016,i want to open calendar from 23-11-2016.This is my snippet code</p> <pre><code> `Calendar c = Calendar.getInstance(); fromYear = c....
35,112,854
0
<p>Finally found the answer <a href="https://github.com/Mantle/Mantle/issues/263" rel="nofollow">here</a>. It's quite an ingenious way, and I was surprised to see it not being mentioned in the docs explicitly.</p> <p>The way to combine multiple keys into a single object is by mapping the target property to multiple ke...
37,464,570
0
Interpolating Surface in R <p>I'm trying to interpolate a polynomial of the form</p> <p><code>z = Ax^2 + By^2 + Cxy + Dx + Ey + F</code></p> <p>In <code>R</code>, where the capital letters are constant coefficients.</p> <p>For the following data</p> <p>My horizontal axis is: <code>KSo&lt;-c(0.90,0.95,1.00,1.05,1.10)</c...
39,677,957
1
Python MP3 Player <p>I Am Trying To Play An MP3 File On Python , But I Can't Find The Right Module! I've Tried This:</p> <pre><code>import os os.startfile('hello.mp3') </code></pre> <p>But I Just Got The <strong>Error</strong>:</p> <pre><code>Traceback (most recent call last): File "/Applications/Youtube/text 2 speech/...
4,182,405
0
A simple thread's pool in C++ with thread priorities <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4179316/threadpool-in-c">threadpool in c++</a> </p> </blockquote> <p>I need to write my own or use already written thread's pool in C++ with priorities. Boost threadp...
1,144,825
0
can i do caching with php? <p>I have read a few things here and there and about PHP being able to "cache" things. I'm not super familiar with the concept of caching from a computer science point of view. How does this work and where would I use it in a PHP website and/or application.</p> <p>Thanks!</p>
34,910,745
0
What are the best practices for single-instanced classes in java? <p>In my program I have a menu system in which I have a separate class for each menu, for example MainMenu would be a separate class. But the class is only supposed to be instanced once, and after I instance it, it is saved in a list which is all is used...
29,683,503
0
parsing data from JSON <p>I am making an AJAX call to a JSON file containing thumbnail images and website urls, I am then listing each out using AngularJS directive ng-repeat to list. The problem is the thumbnails and website urls are no longer populating my page. I reformatted my JSON file data into an array because I...
21,473,611
0
Netbeans swing Master detail sample form delete not working <p>I'm using NB 7.4, JavaDb , jdk 7.</p> <p>I tried to work on this example : <a href="http://simsam7.blogspot.in/2013/06/quick-crud-application-on-netbeans-73.html" rel="nofollow">http://simsam7.blogspot.in/2013/06/quick-crud-application-on-netbeans-73.html</...
7,123,838
0
<p>If there's no duplicate, then this query will do an insert, and the <code>Time</code> value will be null, as no value was ever set. <code>Null + anything</code> is null, hence the error.</p> <p>Try <code>... Time = COALESCE(Time, 0) + INTERVAL $time SECOND</code> or similar to get aroun dit.</p>
31,622,023
0
<p>The best way would be through feature detection in the browser. Since there is not a standard way of detecting touch through CSS. I would just do this JavaScript:</p> <pre><code>if ('ontouchstart' in document) { // Bring in the necessary CSS optimized for touch } </code></pre>
7,476,431
0
<p>You can take in a parameter of <code>HttpServletRequest</code>, and read the <code>ServletInputStream</code> using <a href="http://download.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getInputStream%28%29" rel="nofollow"><code>getInputStream()</code></a> from there. The stream will contain the body of...
16,493,992
0
How to locate search links in google in Selenium for testing <p>I am trying to search Google for Selenium, then run down the list of links by clicking each one, printing the page title, then navigating back.</p> <pre><code>List&lt;WebElement&gt; linkElements = driver.findElements( **&lt;insert code here&gt;** ); for(We...
15,914,069
0
<p>Well, it seems like the main issue was with your css. When a mouseover event was triggered, the modalMask element was shown. The problem however was that you placed it on top of everything else with:</p> <pre><code>position: absolute; ... width: 100%; height: 100%; ... z-index: 1000; </code></pre> <p>This means tha...
36,908,979
0
<p>u can try this plugin contact form 7 AutoSaver , Select some forms to enable auto-save on them, meaning when a user fill the form, without even submitting it, then navigates to another page and comes back or refreshes the page, they will see the data they previously filled still available for them!</p> <pre><code>h...
9,728,436
0
<p>the problem with <code>mailto:</code> is that web scrapers can be used to "harvest" into a "spam mailing list". these are common in e-mail marketers (email advertising). also, search engines like Google will also pick them up, making your email a public item, easilty searchable, easily spammable.</p> <p>common meth...
30,098,562
0
mobilefirst logout redirect to new page <p>I am using jquery mobile and I am using $.mobile.changePage( "#newpage"); option when the user authentication is done to move to next page. in the next page I have a logout button and when user clicks on that it has to logout and on success it has to come back to the login scr...
36,290,219
0
Htaccess 301 change old URL <p>I would like change url in my htaccess and using redirect 301 for SEO.</p> <p>my old url:</p> <pre><code>RewriteRule ^my-oldurl-(([0-9]+)-[a-zA-z0-9_-]+).html$ index.php?page=my-detail&amp;id=$1&amp;cat=$2 [QSA,L] </code></pre> <p>my new url:</p> <pre><code>RewriteRule ^my-newurl-(([0-9]+...
10,809,155
0
<p>I think you need specify the SqlDBType when assigning the values to date in command.Parameters .and please cross check the parameter names which you have specified in insert statement with the parameters specified in parameters.Add </p> <pre><code>string sql = "INSERT INTO spending VALUES (@date, @amount_spent, @sp...
3,914,484
0
How to set the opacity of a datagridview row <p>I plan to create a datagridview that will only have about 10 rows max. It will get updated at regular intervals and I want for it to have nice effects where each row will have it's opacity increased to full, the first row being the first and the last row becoming fully op...
6,998,781
0
<p>Consider this simplified problem</p> <pre><code>interface Item&lt;C extends Container&lt;Item&lt;C&gt;&gt;&gt; interface Container&lt;I extends Item&lt;Container&lt;I&gt;&gt;&gt; </code></pre> <p>It doesn't work, because subtypes of <code>Container&lt;Item&lt;C&gt;&gt;</code> are quite limited - <code>Container&lt;...
4,363,446
0
<p>Host it on IIS and then it should work.</p>
24,922,753
0
<blockquote> <p>why use [yield]? Apart from it being slightly less code, what's it do for me?</p> </blockquote> <p>Sometimes it is useful, sometimes not. If the entire set of data must be examined and returned then there is not going to be any benefit in using yield because all it did was introduce overhead.</p> <p>Wh...
39,227,367
0
Zombie getting error Unhandled rejection Error: Timeout: did not get to load all resources on this page <p>I am new to zombie JS. I want to fill the login fields and post the login form. I tried to code this in zombiejs, but getting below error.</p> <p>Unhandled rejection Error: Timeout: did not get to load all resourc...
34,774,819
0
0x3 error using pdbstr (Source indexing) <p>I am trying to use the PDBSTR.EXE tool to merge version information into a PDB file and from time to time I encounter the following error: [result: error 0x3 opening K:\dev\main\bin\mypdbfile.pdb] &lt;- can be a different PDB file.</p> <p>An example of the command line that I...
34,284,692
0
jquery validate date in range or empty, it is not allowed to submit empty date <p>I used the jquery validation to check a range of date or allow an empty date with under jquery mask. It is passed on editing, but the empty date field still prompt "Require" on form submit, what can I do?</p> <pre><code>$.validator.addMet...
15,287,073
0
MongoDB finding documents that are valid on a specific date <p>I have some data stored in a mongodb collection similar to:</p> <pre><code>{"_id": 1, "category": "food", "name": "chips", "price": 1.50, "effectiveDate": ISODate("2013-03-01T07:00:00Z")} {"_id": 2, "category": "food", "name": "chips", "price": 1.75, "effec...
12,450,958
0
<p>If you can update the elements to have a common class, e.g., <code>class="state"</code>, then:</p> <pre><code>var SetState = function(state) { var s = document.getElementsByClassName("state"), i; for (i=0; i &lt; s.length; i++) s[i].style.display = 'none'; document.getElementById(state).style.display = 'block'; }; ...
38,517,765
1
Strip operation is removing a character from a url when it shouldnt be <p>I have a strange problem here. I have a list of Youtube urls in a txt file, these aren't normal YT urls though as I believe they were saved from a mobile device and thus they are all like this</p> <p><a href="https://youtu.be/A6RXqx_QtKQ" rel="no...
2,217,431
0
<p>Yes you can create multiple controls in the same project, you simply have to place the all the default templates in a single /themes/generic.xaml file. Each controls template is identified by the <code>TargetType</code>. So your generic.xaml file would look something like:-</p> <pre><code> &lt;ResourceDictionary .....
8,802,330
0
RadioButtonList messed up in IE <p>I have a RadioButtonList:</p> <pre><code>&lt;p&gt; &lt;label for="rblIAm"&gt;I am&lt;/label&gt; &lt;asp:RadioButtonList ID="rblIAm" ValidationGroup="RegForm" runat="server"&gt; &lt;asp:ListItem Text="Gay" Value="Gay"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="Bisexual" Value="Bis...
6,195,637
0
<p>Essentially this is a duplicate of <a href="http://stackoverflow.com/questions/2472422/django-file-upload-size-limit">Django File upload size limit</a> </p> <p>You have two options:</p> <ol> <li><p>Use validation in Django to check the uploaded file's size. The problem with this approach is that the file must be up...
9,934,852
0
<p>Do you mean a short url something like this: <code>http://snd.sc/abc123</code>? If so, could you include the request which gives you that short_url? Otherwise if it's a 'normal' url like <code>http://soundcloud.com/username/track</code>, you can use the <a href="http://developers.soundcloud.com/docs/api/resolve" re...
5,854,848
0
how to load a carousel from a xml file? <p>I'd like to load a carousel from a xml file and put it in the middle of a window and below the carousel I have a view that contains the description of each image.</p> <p>kind when I scroll the images I have every description of this picture that I'm also recovering from an xml...
27,383,491
0
<p>I think your permission should be filtered by the role. Something like this :</p> <pre><code>var rolePermissions = new HashSet&lt;int&gt;(tDbContext.RoleDetail.Where(rd =&gt; rd.RoleId == role.RoleID).Select(rd =&gt; rd.PermissionId)); </code></pre> <p>Your passing the role to your function but don't even use it : ...
15,781,227
0
<p>pageX and pageY are properties of the DOM-event, it appears the event you observe is a <a href="https://developers.google.com/maps/documentation/javascript/reference?hl=en#MouseEvent" rel="nofollow"><code>google.maps.MouseEvent</code></a>, which does not expose the requested properties.</p> <p>Use <code>addDomListe...
27,496,671
0
cant display results from database <p>So i got a table on the database, that got some fields, and the image field got only the name of the images, the images are saved on a folder. I got this code to display the results, but its not showing anything, the page is blank..</p> <pre><code>&lt;?php include('ligacao.php'); $...
38,099,841
0
<p>Thanks Uzbekjon!! I resolved the issue by modifying the path in C:\RailsInstaller\Ruby2.2.0\bin rackup.bat file. The path was wrongly mentioned in the file.Once I updated the correct location of rackup path, the issue is resolved.</p>
9,575,975
0
<p>Your opcode is incorrect, this works:</p> <pre><code>if(data) { *p++ = 0xb8; //mov $1, %eax *p++ = 0x01; *p++ = 0x00; *p++ = 0x00; *p++ = 0x00; *p++ = 0xC3; //ret } </code></pre> <p>0xb8 is moving a 32bit immediate into eax, so you have to specify all 4 bytes.</p>
14,540,486
0
<p>Here's another approach which accounts for cents:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;Money Conversion&lt;/title&gt; &lt;script type="text/javascript"&gt; function numberToCurrency(amount) { var wholeDigits; var thousandsSeparator = "," var centSeparator = "."...
13,228,387
0
How do I append an object to NSMutableArray? <p>I want to update an mutable array. i have one array "ListArray" with some keys like "desc", "title" on other side (with click of button.) i have one array name newListArray which is coming from web service and has different data but has same keys like "desc" "title". so i...
20,485,389
0
<p>Redefine <code>String#inspect</code>.</p> <pre><code>class String def inspect; "'#{self}'" end end </code></pre>
26,696,851
0
Loading a view in codeigniter <p>I have a view where i used bootstrap tabpanels. On the first tab(active one), i have the home message. On the second one i have a form with 3 input fields and a submit button. In the model function where i validate the data for those fields, I output form validation errors or success me...
11,334,785
0
<pre><code>you can try with int count = 0; and add ; not , between two instructions string needle=textBox1.Text.Trim(); cboxSelection = comboBox1.Text; </code></pre>
12,398,535
0
<p>Could be some sort of <code>utf8_encode()</code> problem. <a href="http://us.php.net/manual/en/function.utf8-encode.php#103126" rel="nofollow">This comment</a> on the documentation page seems to indicate if you encode an Umlaut when it's already encoded, it could cause issues.</p> <p>Maybe test to see if the data i...
41,029,456
0
AngularJS 1 approach for "new foobar" UI overlay <p>I'm using AngularJS 1 with angular-material and ui-router.</p> <p>Does anyone know what the best practice is for providing a UI for some "new foobar" type thing? In other words, let’s say I have a ui.route putting me at <code>/app/#/foobars/</code> which shows a list ...
37,903,302
0
replace after string character by character in (notepad ++) using a not matched group? <p>i want replace after "string"</p> <p>stringreplacefield character by character </p> <p>for generate </p> <pre><code> stringstringeplacefield </code></pre> <p>after the first replace </p> <pre><code> stringstringstringplacefield </...
28,101,264
0
Neo4j performance difference in using shell and API <p>I understand that Neo4j supports different options to run the Cypher queries. The web browser, neo4j shell and the REST API. Is there a difference in performance when using the shell and the API?</p> <p>I'm working on a dataset that has around 10 million objects(no...
13,592,065
0
Convert type 'System.Dynamic.DynamicObject to System.Collections.IEnumerable <p>I'm successfully using the JavaScriptSerializer in MVC3 to de-serialize a json string in to a dynamic object. What I can't figure out is how to cast it to something I can enumerate over. The foreach line of code below is my latest attemt bu...
24,413,364
0
How to receive emails and store them automatically in Alfresco <p>We are working with Alfresco 4.2.c community version and the need is to configure Alfresco to store automatically received emails (from Outlook) in a specific workspace.</p> <p>I really need your help.</p>
26,478,442
0
<p>I took a look at the apis in sklearn.svm.* family. All below models, e.g.,</p> <ul> <li>sklearn.svm.SVC</li> <li>sklearn.svm.NuSVC</li> <li>sklearn.svm.SVR</li> <li>sklearn.svm.NuSVR</li> </ul> <p>have a common <a href="http://scikit-learn.org/0.11/modules/generated/sklearn.svm.NuSVR.html" rel="nofollow noreferrer"...
23,450,131
0
displaying blogs in webview <p>I want to display my blog as a part of an android application..i have the code ready..it works well when displaying websites like google etc but not with my blog..can someone help me solve this problem</p> <p>mainActivity.java:</p> <pre><code>package com.mkyong.android; import android.app...
11,381,829
0
<pre><code>pid_t pid; int pipeIDs[2]; if (pipe (pipeIDs)) { fprintf (stderr, "ERROR, cannot create pipe.\n"); return EXIT_FAILURE; } pid = fork (); if (pid == (pid_t) 0) { /* Write to PIPE in this THREAD */ FILE * file = fdopen( pipe[1], 'w'); fprintf( file, "Hello world"); return EXIT_SUCCESS; } else if (pid &lt; (pi...
10,073,081
0
<p>JavaScript variables are scoped by function declarations, not by blocks. Thus, you are using two different variables.</p>
29,358,373
0
Interrupt OutputStream - Android <p>I'm using a <a href="http://www.codejava.net/java-se/networking/upload-files-by-sending-multipart-request-programmatically" rel="nofollow">this</a> class to upload files in HTTP, my problem is that I noticed when I remove the lan cable from my router the upload stucks as the write ca...
10,587,962
0
How to clean-up HTTP::Async if still in use <p>I am using Perl library <a href="http://search.cpan.org/~evdb/HTTP-Async-0.10/lib/HTTP/Async.pm" rel="nofollow">HTTP::Async</a> as follows:</p> <pre><code>use strict; use warnings; use HTTP::Async; use Time::HiRes; ... my $async = HTTP::Async-&gt;new( ... ); my $request = ...
11,258,134
0
IsHandledCreated is set to false but during runtime it is set to true? <p><strong>Hi,</strong></p> <p>I have the following code that is runned during Application.Exit : </p> <pre><code> if (InvokeRequired &amp;&amp; this.IsHandleCreated) { this.Invoke(new Action(() =&gt; EndUpdate(Caller))); return; } </code></pre> <p>...
16,960,390
0
<pre><code>class A_Class { Ref&lt;string&gt; link; void A_Class( Ref&lt;string&gt; link) { this.link= link; } void somefunction( string str ) { if(link.Value.Length &gt; 2) link.Value = str; } } public class Ref&lt;T&gt; { private Func&lt;T&gt; getter; private Action&lt;T&gt; setter; public Ref(Func&lt;T&gt; getter, A...
33,041,779
0
Show page from another URL <p>For, example, if I have this working link: </p> <pre><code>/test1/index.php?prop1=val1 </code></pre> <p>And I have this HTML tag: </p> <pre><code>&lt;a href="/test2-val2/"&gt;link&lt;/a&gt; </code></pre> <p>How can I use this tag for opening the first link with the following content: </p> ...
10,089,156
0
<p><em>null</em> value from database has its own special type:</p> <pre><code>if (r["Varandas"] != DBNull.Value &amp;&amp; r["Varandas"] != null) </code></pre> <p>To make it more elegant you can write some simple function or even extension for the DataRow class.</p>