pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
25,618,641
0
<p>The choice has been restricted to metrics with type <code>PERCENT</code> (4.0) then relaxed to include types <code>LEVEL</code> and <code>RATING</code> in later versions (4.3).</p> <p>The rationale behind this is that unbounded metrics (such as number of issues, complexity) cannot be reliably mapped to a limited co...
16,581,881
0
<p>You need to have the executable bit set on the script:</p> <pre><code>chmod +x /path/to/your/script </code></pre>
34,848,910
0
If() Condition Not getting True <p>I am New in IOS i am facing a problem. I have 3 GMGridViews on my Xib and i got reference in .m file of my ViewControllar Now in Delegates and DataSource Methods when i put Check on it if condition not getting true for 2 GMViewControllars but become true for 1st one. i try isEqual: al...
25,158,487
0
rendering partial using jquery in js.erb file giving error. render is not a function <p>below is code in file '<code>app_erb.js.erb</code>'</p> <pre><code>$(function(){ $('.add_more_element').click(function(e){ e.preventDefault(); $(this).siblings('.remove_this_element').show('slow'); $(this).hide('slow'); $(this).clos...
6,006,617
0
<p><em>Edit: user1182474's comment is correct; Wine doesn't isolate the programs it runs. (It tries to hide it, but not very thoroughly.) I totally failed at using Google. Psen's comment below is more correct, and references the FAQ. (Note that, for that to work, you may need to have the program's directory available ...
19,038,964
0
<p>It's not entirely clear what you're asking in the question and the comments, but it sounds like you might be looking for a full join with a bunch of coalesce statements, e.g.:</p> <pre><code>-- create view at your option, e.g.: -- create view combined_query as select coalesce(a.id, b.id) as id, coalesce(a.delta, b....
39,334,078
0
<p>Assuming you had a CSV read into pandas:</p> <pre><code>df = pandas.read_csv("csvfile.csv") sample = df.sample(n) sample.to_csv("sample.csv") </code></pre> <p>You could make it even shorter:</p> <pre><code>df.sample(n).to_csv("csvfile.csv") </code></pre> <p>The <a href="http://pandas.pydata.org/pandas-docs/stable/i...
10,455,463
0
<p>Redirect the DataContext <a href="http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.log.aspx" rel="nofollow">Log</a> property to Console.Out or a TextFile and see what query each option produces. </p>
8,726,793
0
Consolidate multiple if statements in Ksh <p>How can I consolidate the following if statements into a single line?</p> <pre><code>if [ $# -eq 4 ] then if [ "$4" = "PREV" ] then print "yes" fi fi if [ $# -eq 3 ] then if [ "$3" = "PREV" ] then print "yes" fi fi </code></pre> <p>I am using ksh. </p> <p>Why does this give ...
37,401,805
0
Can't change text of navigation item back button <p>I want to hide the text of the back button on the navigation bar and so have found past questions such as this: <a href="http://stackoverflow.com/questions/23853617/uinavigationbar-hide-back-button-text">UINavigationBar Hide back Button Text</a></p> <p>However I can't...
29,144,850
0
<p>Your <code>HRESULT</code> is <code>$80070002</code>. That's a <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms690088.aspx" rel="nofollow">COM error code</a> that wraps the Win32 error code, <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382.aspx#ERROR_FILE_NOT_FOUND" rel=...
22,091,802
0
<p>If you want your input element as an object in then use this</p> <pre><code>console.log(this); </code></pre> <p>instead of </p> <pre><code>console.log('from verifyAns : '+this); </code></pre>
37,371,727
0
Same code in Codepen giving diffferent results <p>I have this pen: <a href="https://codepen.io/dteiml/full/PNMwZo" rel="nofollow">https://codepen.io/dteiml/full/PNMwZo</a> with the following javascript code: </p> <pre><code>$('#getWeather').on('click', function() { navigator.geolocation.getCurrentPosition(success); fun...
38,064,565
0
App crashes on sendText method <p>I am developing my first android app where someone can send multiple sms to a designated number. The app used to run fine when I had the number and number of messages to be sent already programmed into the code. However, I created a separate activity where one can input the destination...
15,882,930
0
<p><kbd><strong><a href="http://jsbin.com/itepap/3/edit" rel="nofollow">LIVE DEMO</a></strong></kbd></p> <p><code>$(this).addClass('myClass');</code> would work but use:</p> <pre><code>var img = $("&lt;img /&gt;", { "src" : '/images/favicon.png', "class" : 'myClass' }) .error(function(){ console.log('error'); }) .load...
2,497,751
0
<p>Note that everytime you pass a struct to a function as a parameter, or assign one variable to another, or in your case, add it to a list, a copy of the entire struct is created (in your case, 20 bytes will be copied).</p> <p>Also note that there are no GC references to structs expect (I think) in some circumstances...
20,511,734
0
<p>it looks complex but its simpler either</p> <pre><code>select * from (select event.id, event.title, schedule.event_date, schedule.price, event_id from schedule left join event on event.id=schedule.event_id group by event_date,event_id )s group by s.event_id; </code></pre>
28,832,150
0
<p>Late answer , but maybe someone is struggling with this... here is what I found:</p> <p><a href="http://stackoverflow.com/questions/3652331/asp-net-application-throwing-unable-to-find-assembly-error-for-nhibernate">Similar error on this question, which leads to some options</a>.</p> <p>Looks like the real error is ...
12,545,561
0
How can I use HTML5 to both record audio (speech) and convert the recorded speech into text? <p>I have a project in mind where I want users to record speech in a browser. I know that for recording audio I can use getUserMedia and for speech to text input I can use x-webkit-speech. I'm OK with the browser limitation. Is...
25,083,419
0
<p>You can do</p> <pre><code>CREATE FOREIGN TABLE cases( id varchar(50) PRIMARY KEY, CaseId varchar(50), CaseAddressString varchar(50), CaseOpenDatetime date, CaseBeginDatetime date, CaseDescription varchar(200), RequestorFirstName varchar(50), RequestorLastName varchar(50), CaseCurrentStatus varchar(25), age integer,...
23,597,454
0
<p>If you are using a 11G R2, you could use listagg function. If not, it will be easy to find a different way</p> <pre><code> With distrib as (select O as dabegin, 17 as daend, 'under 18' as category from dual union all select 18 as dabegin ,25 as daend, 'between 18-25' as category from dual union all select 26 as dab...
21,932,583
0
Codeigniter error Unable to load the requested file 0.php but theres no such file <p>I am new to Codeigniter and it is throwing the error: <em>unable to load the requested file 0.php</em></p> <p>But there's no such file! I don't understand why its doing this?</p> <p>As a result of this error, the homepage of my site ha...
38,060,747
0
<p><strong>Change</strong> this to (<strong><em>Best Practices</em></strong>) </p> <pre><code>if ($this-&gt;form_validation-&gt;run() == TRUE) </code></pre> <p>this</p> <pre><code>if ($this-&gt;form_validation-&gt;run() == FALSE) </code></pre> <blockquote> <p><strong>Since you haven’t told the Form Validation class to...
40,488,664
0
How to setup GitLab - Debian 8 <p>I am executing the below command, however i get an error. Someone please assist.</p> <pre><code># curl https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/jessie/gitlab-ce_8.1.2-ce.0_amd64.deb/download curl: (60) SSL certificate problem: certificate is not yet valid </code></p...
15,721,987
0
flash website content box hiding the menu <p>My website is: <a href="http://harringtonplanningdesign.com" rel="nofollow">http://harringtonplanningdesign.com</a> When I move the cursor on the flash box the menu is disappearing. How can I keep the menu from hiding when the cursor is on the flash content box? That means I...
28,110,474
0
Should I add publish_actions for review after migrating old app to Graph API v2.2? <p>I've been updating few web apps to the latest Facebook Graph API - v2.2. Those sites work and some of them have opengraph action video.watches ("Watch"). It's approved and works.</p> <p>Recently I got a generic Facebook email that one...
4,616,971
0
<p>You should be able to do this with <a href="http://mechanize.rubyforge.org/" rel="nofollow">mechanize</a>. It emulates a real broswer, and is quite powerful. About the only major feature lacking is a javascript engine, so it won't work if the blog uses javascript in its authentication.</p>
18,144,503
1
Non camel case to Camel Case in python 3? <p>This program is meant to change something from normal to camelCase. EG: Not_Camel_case -> notCamelCase or Camel_Case to camelCase.</p> <pre><code>def titlecase(value): return "".join(word.title() for word in value.split("_")) def titlecase2(value): return value[:1].lower() +...
11,560,960
0
<p>There are a lot of workarounds provided in other answers; they more or less solve your problem. One more workaround:</p> <pre><code>foreach (string name in a.Keys){ StackPanel SP = new StackPanel(); TextBox TB1 = new TextBox(); TextBox TB2 = new TextBox(); SP.Children.Add(TB1); SP.Children.Add(TB2); // ... Content ...
20,888,726
0
<p>Well, if your old one is working then the problem will be in your rewrite. Don't pay too much notice to the error messages, they're pretty much par for the course, and can be triggered by something as benign as a cache miss. Unless you're actually getting an error callback somewhere, the log messages are meaningles...
40,117,551
0
How to enter values, save them to a new file and search for the values in the file <p>I have a school assignment that I need help with. This is the description of the assignment:</p> <p>Ruby program that can hold these values:</p> <ul> <li>Artifacts</li> <li>Values</li> <li>Assumptions</li> </ul> <p>It shall be possibl...
31,313,372
0
<p>View the line as (x1,y1) + λ(x2-x1,y2-y1), i.e. the first point, plus a multiple of the vector between them.</p> <p>When λ=0 you have the first point and when λ=1 you have the second. So you just want to take n equally distributed values of λ between 0 and 1.</p> <p>How you do this depends on what you mean by betwe...
298,659
0
SqlMembershipProvider administration <p>Before I embark on writing my own solution to this issue, can anyone point me to a pre-built solution for managing standard user details when using the SqlMembershipProvider? The solutions I have found through Google seem to either be half baked 'example solutions' or unsuitable ...
31,693,760
0
<p>try,</p> <pre><code>declare @t table(CarName varchar(10),Colour varchar(10), Size varchar(10)) insert into @t (carname,Colour,Size) values ('Car 1', 'Red', 'big'), ('car 2','Blue','small'), ('car 3','Gr een','small') declare @t1 table(CarName varchar(10),part varchar(10)) insert into @t1 (carname,part) values ('car...
18,366,921
0
<p>I ended up discussing the situation with InstallShield (made by FlexEra) and they recommended the following:</p> <ol> <li>Don't put the original file in the [InstallDir] if possible.</li> <li>Create separate Components for each of the variants of the file, each with a different release flag.</li> <li>Only install t...
3,022,083
0
<p>there is generally no need to access the CPU registers from a program written in a high-level language: high-level languages, like C, Pascal, etc. where precisely invented in order to abstract the underlying machine and render a program more machine-independent. </p> <p>i suspect you are trying to perform something...
21,211,994
0
<p>First: add status as an index on the database table, this will speed up the select portion of the script.</p> <p>Second: concatenate the string, rather than issuing an echo statement each time, echo * 4000 can be quite slow.</p> <pre><code>$query = "SELECT * FROM tblRazduzeniUgovori WHERE Status='razduzen'"; $outpu...
21,164,629
0
<p>To use recursion you should have a <strong>stop test</strong> and be sure to always launch the next step on a <strong>smaller problem</strong>. </p> <p>Try this : (Not sure if Array.SubArray(int) is a real function but that is the idea.</p> <pre><code>static void Main(string[] args) { int[] Array=new int[]{10,233,3...
41,051,163
0
<p>Your best bet will be to learn Objective-C. It's not difficult to pick up, especially if you already have a strong understanding of C. (It's a much smaller and simpler extension of C than C++, for instance.)</p> <p>Your options other than that are quite limited:</p> <ul> <li><p>There's Carbon, Apple's legacy C fram...
41,007,395
0
<p>Technically they are both different versions of bcrypt or crypt-blowfish</p> <p>in php the prefix is $2y$10$ in python the prefix is $2b$11$</p> <p>This means the cost factors are slightly different 10 vs 11 respectively in your update you have fixed the cost factors to both be 11</p> <p>The other part of the prefi...
646,232
0
/usr/bin/ld: cannot find -lfreetype qt <p>Compiling on Fedora 10.</p> <p>I am using qt for the first time. I started by creating a simple GUI application with all the default settings. When I tried to build the project I got the following error messages.</p> <p>However, when I did a search for -lfreetype I found it in ...
19,297,928
0
<p><code>IF</code> needs 3 arguments. You've only provided 2. Change your sql to something like:</p> <pre><code> $sql = 'SELECT if(turnier = "Company Friends", "Company", "Something here"), ... </code></pre> <p>First one is condition, second will be returned if condition is satisfied, third if not.</p>
12,068,432
0
Multiple virtual hosts via Varnish, incorrect backend if served <p>I have several backends set up, each one is detected in the VCL and then the correct set up applied. This works for some of the sites, but a few get pointed to the same site. </p> <p>I have read this and applied this, it works for some, but not for othe...
2,471,268
0
<p>How about just use the old routing rules and append .xml1/.xml2/.json1/.json2 to the end? That way you can reuse your current modules and only need to create a new view ("indexSuccess.xml1.php").</p> <p>Or create a new routing class?</p>
34,425,507
0
android gpu image rendering issue <p>I'm currently building an android app to apply filter on a bmp. I'm using the gpuimage lib. How it's done is that the bmp is show in a ListView which contain 8 filters. When scrolling down/up, we request the filtering of the bmp (b&amp;w, sepia...). As the rendering take times, I di...
12,285,636
0
Recovering css class name <p>How can I recover a Css class that was add via JQuery in my <code>&lt;asp:TextBox&gt;</code> component ?</p> <p>Example:</p> <p><strong>ASPX</strong> </p> <p><code>&lt;asp:TextBox ID='txtTest' runat='server' CssClass='inputText'&gt;&lt;/asp:TextBox&gt;</code></p> <p><strong>JQUERY</strong><...
34,730,162
0
ANTLR 4 - How to access hidden comment channel from custom listener? <p>Writing a pretty-printer for legacy code in an older language. The plan is for me to learn parsing and unparsing before I write a translator to output C++. I kind of got thrown into the deep end with Java and ANTLR back in June, so I definitely hav...
16,973,753
0
<p>You are simply over complicating things.</p> <p>This should do the job</p> <pre><code>$(function () { $('p.active').hide(); $('.mosaic-block').click(function () { var $this =$(this); $('.mosaic-block').removeClass('mosaic-block-highlighted'); $this.addClass('mosaic-block-highlighted'); $('p.active').hide(); // trav...
20,421,720
0
<blockquote> <p>consumer reads for a while and then shuts down due to any reason</p> </blockquote> <p>Not sure what exactly are you referring to as the consumer is supposed to run infinitely unless it is stopped explicitly. </p> <p>Now assuming you are using the storm's <a href="https://github.com/nathanmarz/storm-con...
27,720,368
0
<p>Make sure socket.io script is included and define sensor var for get it working as </p> <pre><code>var socket = io('http://localhost'); </code></pre> <p>And finally get sure clicked function is getting called when event is fired.</p> <p>Hope it helps!</p>
35,446,591
0
How do you make a primary key with Valentina Studio? <p>Creating a table with fields in Valentina Studio with a primary key 'id'. How do you set a primary key with Valentina? I know how to in the terminal.</p>
23,698,601
0
<p>First of all, Console.WriteLine(" " + d1.n); will give you DVD:DVD because base means use the parent class' constructor. So, when you send your parameters into your D class, it is sending your code to your M class, it is executing it which gives you "DVD" on your screen and then it is changing the value of n. After...
27,422,686
0
Batch file help please with if exist <p>We have this printer management software that comes with built-in backup/restore command to backup its database. </p> <p>And I need to create a batch file that will:</p> <p>1a. check if folder name <code>OLD</code> exist on <code>C:\mybackup\</code> </p> <p>1b. if it does then re...
17,081,069
0
Encryption password algorithms on OpenLDAP <p>a question about OpenLDAP. Where can I find some informations about OpenLDAP supported password encryption algorithms on last version (2.4.35)? </p>
15,927,119
0
How to map an array with async.js? <p>I would like to iterate over a list of objects and get an array as the results of the items that pass a condition. Something like this:</p> <pre><code>var list = [{foo:"bar",id:0},{foo:"baz",id:1},{foo:"bar",id:2}]; async.map(list, function(item, cb) { if (item.foo === "bar") cb(nu...
36,122,947
0
<p>Use Html.ActionLink from LinkExtensions passing the "toc" to the fragment parameter:</p> <p><a href="https://msdn.microsoft.com/en-us/library/dd460522.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/dd460522.aspx</a></p>
14,250,715
0
servicestack ormlite sqlite DateTime getting TimeZone adjustment on insert <p>i'm trying ormlite. i'm finding that when i insert an object with a DateTime property, it is getting -8:00 (my timezone is +8) applied by ormlite. It should be inserted with literally what the time is. in my case it is already UTC.</p> <p>how...
34,846,824
0
<p>I see two possibilities:</p> <ol> <li>You are mistaken that the <code>try</code>-block is throwing an exception: maybe no exception is being thrown, or maybe there <em>is</em> an exception being thrown, but it's being caught before the end of the <code>try</code>-block. <ul> <li>You can double-check by adding loggi...
36,089,480
0
Terminate/Close Last Activity <p>Can you show and explain me how to close the last activity/class that you open In Android.</p> <p>I want my activity to close the last activity/class when he opens a new activity/class.</p>
16,531,507
0
<p>You're missing quotes around your <code>&lt;cfinput&gt;</code> tag. You need to use a single quote here to concatenate properly.</p> <pre><code>&lt;cfscript&gt; for ( i=1; i &lt;= myQuery.recordCount; i++ ) { writeoutput ("&lt;tr " &amp; a &amp; "&gt;&lt;td&gt;" &amp; i &amp; "&lt;/td&gt;" &amp; "&lt;td&gt;" &amp; ...
8,024,555
0
<p>Just a quick hunch: </p> <p>Have you tried calling glShaderSource with NULL as length parameter? In that case OpenGL will assume your code to be null-terminated.</p> <p>(Edited because of stupidity)</p>
21,637,309
0
Rally Lookback: help fetching all history based on future state <p>Probably a lookback newbie question, but how do I return <strong>all</strong> of the history for stories based on an attribute that gets set later in their history?</p> <p>Specifically, I want to load all of the history for all stories/defects in my pro...
37,585,406
0
<p>I think your <code>message.string</code> is <code>nil</code> when passed to <code>UIAlertController</code>. Check it twice. </p> <p>Print <code>message</code> after getting so you know that what you get in it.</p> <p>You can put breakpoints also to check that you are getting data or not.</p>
27,292,200
0
<p>Here is the code to fetch the version and patch details</p> <pre><code> String queryString = "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean"; ObjectName objectName1; objectName1 = new ObjectName(queryString); ObjectName[] serverRuntimes = (ObjectName...
3,093,790
0
<p>normally you use Number() or parseInt("", [radix]) to parse a string into a real number.</p> <p>I am guessing you are asking about what happens when the string you parse is above the int - threshold. in this case it greatly depends on what you are trying to accomplish. </p> <p>There are some libraries that allow wo...
15,757,712
0
<p>Note that from April 2013 ("<a href="https://github.com/blog/1451-branch-and-tag-labels-for-commit-pages" rel="nofollow noreferrer">Branch and Tag Labels For Commit Pages</a>"):</p> <ul> <li>Any commit can mention the branch it is part of:</li> </ul> <p><img src="https://i.stack.imgur.com/mb9HQ.png" alt="branch par...
18,251,196
0
<p><a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html" rel="nofollow">oracle docs</a> provide a good answer to this. Bottom line: finally gets called always! Even when you catch only one kind of exception (not the global catch), then finally gets called (after which your application prob...
31,492,043
0
<p>The server is reading lines but the client isn't writing lines. Add a line terminator to the message, or use <code>BufferedWriter.newLine()</code>.</p>
16,381,538
0
<p>Yes ; here is the code :</p> <pre><code>import smtplib fromMy = 'yourMail@yahoo.com' # fun-fact: from is a keyword in python, you can't use it as variable, did abyone check if this code even works? to = 'SomeOne@Example.com' subj='TheSubject' date='2/1/2010' message_text='Hello Or any thing you want to send' msg = ...
279,746
0
<p>A quick workaround is to set the following in your deploy.rb file:</p> <pre><code>set :deploy_via, :copy </code></pre> <p>This will cause the checkout to occur on your own machine and then be copied to the deployment server.</p>
34,862,605
0
<p>This approach have better performance, cause you are setting the find to a var and doing a loop instead of doind a loop with the find.</p> <pre><code>var child = $('#room_remove'+id).find('li'); if(child.length &gt; 0){ var li = ""; child.each(function(){ li += "&lt;li&gt;"+$(this).text()+"&lt;/li&gt;"; }); } $(".m...
6,341,566
0
<p>The terminology is a bit confusing indeed, but both <code>javax.net.ssl.keyStore</code> and <code>javax.net.ssl.trustStore</code> are used to specify which keystores to use, for two different purposes. Keystores come in various formats and are not even necessarily files (see <a href="http://stackoverflow.com/questi...
6,051,726
0
<p>You probably want to check if the device supports <a href="http://msdn.microsoft.com/en-us/library/dd389295%28v=VS.85%29.aspx" rel="nofollow">WPD</a>, the replacement of WIA in Vista or later. If the device does not support WPD, then try access the device with <a href="http://msdn.microsoft.com/en-us/library/ms6308...
3,815,540
0
<p>Cocos2d can support isometric maps. To get started with Cocos2d, there is nothing better than <a href="http://www.raywenderlich.com/1163/how-to-make-a-tile-based-game-with-cocos2d" rel="nofollow">Ray Wenderlich's multiple part tutorial</a>! It doesn't cover isometric projections, but you'll still need to know the b...
6,420,430
0
301 Redirect to URL with named anchor using IIS <p>I am trying to figure out how I can perform a 301 redirect from: <a href="http://www.examplesite.com/news" rel="nofollow">http://www.examplesite.com/news</a> to <a href="http://www.examplesite.com#news" rel="nofollow">http://www.examplesite.com#news</a> using IIS 6.0</...
32,670,231
0
<p>Doesn't look like the ShareTarget/DataTransfer APIs are available in the API set that's tagged as being <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dn554295%28v=vs.85%29.aspx" rel="nofollow">okay to use from Desktop</a> so it looks like you're out of luck for now.</p>
23,186,238
0
Passing image parameter c# windows Phone <p>Hi I'm trying to pass an image as a parameter within a Windows Phone app. The user is able to click a thumbnail of an image and then be directed to a new page with a full size copy of that image.</p> <p>I have tried the following but get a red line error under "image.SetSourc...
31,454,561
0
<p>Right click on the hyperlink and click "Copy Hyperlink". Then paste to your favorite text editor. This is with Outlook 2007.</p>
6,455,535
0
<p>You can create «MY_Model» place it on «Application/core». You can afterwards, extend «MY_Model», instead of «CI_Model». Actually, you can have many models on «MY_Model» (using require_once(APPPATH.'/core/some_other_model_name.php')), since «Codeigniter» only suports loading one MY_MODEL. To finish, you can then, on...
37,272,463
0
<p>Just for future users:</p> <p>Laravel 5 using form requests:</p> <pre><code>'birthday' =&gt; 'before:today', // Doesn't accept today date 'birthday' =&gt; 'before:tomorrow', // Accept today date </code></pre>
30,158,254
1
Storing an object of a class then calling a function in that object <p>I have a class like this (scaled down)</p> <pre><code>class FileAndWriter(object): def __init__(self, symbol, start_dt_str): self.data = [] self.fileName = symbol.replace("/", "") + '-' + start_dt_str + '.csv' self.file = open(self.fileName, 'ab') s...
23,598,373
0
<p>If you are sure your json is well formatted just add :</p> <pre><code>ob_clean(); </code></pre> <p>before <code>echo(...)</code> instruction</p>
17,050,737
0
<p>You apply <code>.hover()</code> on the <code>a</code> only. So when you hover the <code>a</code>, the image appear hover your <code>a</code> wich mean you are not hover the <code>a</code> anymore. That will fire the second callback of <code>.hover()</code> and the image will disappear. Then again you are hover the ...
13,008,809
0
<pre><code> @using (Html.BeginForm()) { &lt;p&gt; &lt;input type="image" value="submit" src="../../Images/login_button.png" alt="submit Button"&gt; &lt;/p&gt; } </code></pre>
8,378,988
0
<p>You can use UDP to multiple servers with the same socket. Probably the simplest way to do it is to have the client assign a session ID to each connection, include the session ID in each datagram it sends, and have the server return that session ID in each reply datagram it sends. Don't use the IP address to disting...
19,442,549
0
<p>Better to install meta-package build-essential that consists of all typically needed soft for compilation.</p> <pre><code>sudo apt-get install build-essential </code></pre>
4,150,653
0
<p>A low-budget way of doing this is:</p> <pre><code>start /min some.exe </code></pre> <p>This starts the program in a minimised console window, and doesn't wait for the second program to finish.</p>
8,849,649
0
<p>For subdomains in routes check this <a href="http://blog.maartenballiauw.be/post/2009/05/20/ASPNET-MVC-Domain-Routing.aspx" rel="nofollow">guide to domain routing</a></p> <p>When you have it set up. for a specific redirection you can use this:</p> <pre><code>return RedirectToAction("SpecificAction", "SpecificContro...
17,141,568
0
Error:The filename try.xlsx is not readable in excel_reader2.php <p>I want to read the Uploaded Excel file in php. so i downloaded excel_reader2.php</p> <p>from following link</p> <p><a href="https://code.google.com/p/php-excel-reader/downloads/list" rel="nofollow">link</a></p> <p>when I inserted this into my code i go...
30,076,155
0
Refresh Index after redirecting to it from AJAX call <p>I have a situation where I am setting a user value and trying to reload the index page. This is only a sample page and I cannot user any kind of user controls, like ASP.NET. Each user is in the database and the role is retrieved from there. My index is this:</p> <...
33,070,119
0
<p>I assume that you have the models <code>Show</code> and <code>User</code> connected by a <code>Following</code> model for the n:m relation.</p> <p>When you retrieve the shows, you can left join the Followings with a <code>user_id</code> of <code>current-user</code>. The result set will have the fields for Following...
19,604,854
0
<p>Try this code.It gives some basic idea.Please feel free to ask any doubt in this code.</p> <p><strong>HTML CODE</strong></p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).rea...
11,556,926
0
<p>Okey, here is the answer:</p> <pre><code>Key&lt;Invoice&gt; invoiceKey = dao.getDatastore().getKey(invoice); List&lt;Key&lt;Invoice&gt;&gt; invoiceKeyList = new ArrayList&lt;Key&lt;Invoice&gt;&gt;(); invoiceKeyList.add(invoiceKey); query.criteria(User.INVOICE_TRANSACTIONS).hasNoneOf(invoiceKeyList); </code></pre>
2,399,368
0
JavaScript: How to determine the web "fold" programmatically? <p><strong>Question:</strong> How can I determine the "fold" programatically (how much vertical content the browser is displaying)?</p> <p>The "fold" defined as where you can no longer see / have to scroll.</p> <p>I've tried with JavaScript to simply determi...
16,712,760
0
<p>I tried ButtonCell solution too. But if you click in a cell who as no button then an error on client side occur:</p> <blockquote> <p>com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(445...
11,145,348
0
<p>I think your math is off:</p> <p>According to Wikipedia, the display is Display <strong>4.3-inch 960 × 540 px qHD at 256 ppi</strong></p> <p><code>160/256 = 0.625</code></p> <p><code>0.625*540 = 337.5</code></p> <p>Try <code>values-sw335dp</code> and see if that works</p>
1,273,188
0
<ol> <li><p>Yes it's better to use a dedicated server. <a href="http://www.stream-hub.com/" rel="nofollow noreferrer">StreamHub Comet Server</a> seems to be the most popular these days.</p></li> <li><p>For a tutorial on how to get started with comet read this: <a href="http://streamhub.blogspot.com/2009/07/getting-sta...
669,700
0
<p>Don't know if this technique transfers from C/C++ to C#, but I've done this with macros:</p> <pre> #define CHECK_NULL(x) { (x) != NULL || \ fprintf(stderr, "The value of %s in %s, line %d is null.\n", \ #x, __FILENAME__, __LINE__); } </pre>
25,019,694
0
<pre><code>private List&lt;string&gt; Lookup(List&lt;string&gt; des) { var query = (from r in repo.Context.MyTable where des.Contains(r.Description) select r.Key); return query.ToList(); } </code></pre> <p>This is one query solution, this query will be materialize on this line:</p> <pre><code>return query.ToList(); </...
40,996,948
0
<p>I'm not sure you should really use implicits like this, but maybe in some DSL this might be a valid use case.</p> <pre><code>class StringExtensions(str: String, strategy: StringExtensionsStrategy) { def doSth() = strategy.doSth(str) } trait StringExtensionsStrategy extends (String =&gt; StringExtensions) { final de...