pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
35,705,887
0
<p>You can do something like below, this gives the counters as (propertyName, propertyValue) pairs.</p> <pre><code>with T1 as ( select GetArrayElement(iotInput.performanceCounter, 0) Counter, System.Timestamp [EventTime] from iotInput timestamp by context.data.eventTime ) select [EventTime], Counter.categoryName, Coun...
20,686,195
0
<p>With CSS3 you could also use <code>a[rel="#"] {display:none}</code></p>
20,106,179
0
<p>You don't need to confirm password for the login $rules array.</p> <pre><code>$rules = array( 'username' =&gt; 'required|email|exists:users', 'password' =&gt; 'required', ); </code></pre> <p>This should work for the postLogin validation rules.</p>
34,420,324
0
Ckeditor plugin : how to unwrap text? <p>I have created a ckeditor plugin that wraps the selected text into a span. I wonder how can I unwrap the selected when I apply this plugin on a text that has been previously wrapped into the span.</p> <pre><code>CKEDITOR.plugins.add('important', { // Register the icons. They mus...
35,058,702
0
<p>try this way it will help</p> <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" android:layout_width="match_parent" androi...
7,829,312
0
Why can't post scores via Scores API in Javascript? <p>I'm writing a javascript game library that I want to integrate with Facebook Scores. Games made with my library typically run on static file servers (i.e. just ordinary HTML+JS, no server side scripts).</p> <p>I've been looking at the <a href="http://developers.fac...
32,904,302
0
Searching a text value in multiple excel files and copying below cell value to master file <p>I was working with a code to extract data from multiple excel files in a folder from muliple cells and paste the extracted values to a master file. For example Name was in cell A9, Phone in cell B6 etc. </p> <p>But now there w...
26,631,439
0
ReSharper - How to show custom snippet in IntelliSense <p>I've created a custom snippet that contains a shortcut <code>proplto</code>. If I hit Ctrl-K, Ctrl-X and open My Code Snippets I can select my snippet. I can also type <code>proplto</code> in code, hit TAB and the snippet is inserted. However, I can't find a way...
26,108,113
0
<p>Personally I found Stephen Toub's article to be the best source regarding constrained execution regions: <a href="http://msdn.microsoft.com/en-us/magazine/cc163716.aspx#S2" rel="nofollow">Using the Reliability Features of the .NET Framework</a>. And in the end CER are the bread and butter of any fault tolerant code...
35,812,557
0
<pre><code>var i = 0; var myImg = document.getElementById("img"); function zoomin(){ i++; myImg.style.transform = "scale(1."+ i +")"; } </code></pre> <p>declare i=0; outside function will solve you probleem</p>
28,845,427
0
Deploy package to multiple IIS sites on same tentacle <p>I am using Octopus Deploy and TeamCity to automate the testing, building, packing, and deployment of a .NET app to multiple servers. Most of the servers have one instance of the app, but a few of them have multiple instances. </p> <p>I cannot figure out the best ...
34,427,928
0
<p>Because your you calculate topping cost all all toppings and apply accross all pizza:</p> <pre><code>$(document).on("change","input[type='checkbox']", function() { var checked = $(":checkbox:checked").length; // this value is used for all pizzas, which is incorrect var toppingCost = (.99 * checked); var formID = $(...
38,305,696
0
<p>I suspect that with mention of nodejs, there are a bunch of npm packages being downloaded as part of the build. On your local machine, these are already present but Kudu is restoring them in a clean folder every time.</p> <p>Secondly, about 5 mins of your build time is spent on building (and probably running) test ...
28,957,660
0
Magento crons with hour in cron expression not scheduling <p>I have been trying to schedule a cron job at 1830 hours daily but it never is scheduled</p> <pre><code>&lt;cron_expr&gt;30 18 * * *&lt;/cron_expr&gt; //This never works &lt;cron_expr&gt;0 18 * * *&lt;/cron_expr&gt; //This also does not work </code></pre> <p>H...
25,017,533
0
How to limit the number of objects passed into $firebase object? <p>I'm trying to set the <code>angularjs</code> app with firebase connector angularfire. In my database I have an endless list and I want to display only the last 100 items and any new coming item.</p> <p>according documentation the function <code>$fireba...
6,247,384
0
<p>Html attributes are strings. The problem likely arises with how the css interpreter interprets an unquoted number. It would recognize it as a number and not a string, so it could never match a string value of an html attribute. </p> <p>You the would need to enclose the value you are searching for in quotation marks...
9,000,970
0
how to highlight the searched text in textbox using javascript? <p>I am using java script in my application.I want to highlight the search element as well as keep the cursor at the position of search item in textbox. How can I highlight the element using javascript?</p>
11,311,894
0
<p>There is a flexible data generator in <a href="http://elki.dbs.ifi.lmu.de/" rel="nofollow">ELKI</a> that can generate various distributions in arbitrary dimensionality. It also can generate Gamma distributed variables, for example.</p> <p>There is documentation on the Wiki: <a href="http://elki.dbs.ifi.lmu.de/wiki/...
25,405,877
0
<p>Your links har taller than the box with the background, so set it as:</p> <pre><code>#menu ul.sub-menu li a{ height:13px } </code></pre> <p>.. and not 25px</p>
29,933,268
0
<p>Right before you call this function, add this line.</p> <pre><code>var xml = jQuery.parseXML(xml); </code></pre> <p><em>Note: you might have to play with variable names. Either way, the requirement is that the string must be converted to a <code>XMLObject</code>.</em></p> <p>See if that takes care of it for you.</p...
15,631,496
0
Issue using bootstrap responsive for tablet and phones <p>I am designing a page using bootstrap responsive for the following image and I'm beginner for using bootstrap responsive..<img src="https://i.stack.imgur.com/ssSyK.png" alt="create_account.png for create_account page"></p> <p>And the html is as follows.</p> <pre...
38,697,931
0
<p>You could use DLookup for this - much simpler:</p> <pre><code>Private Sub cmbConsultant_Change() Me!txtHourlyRate.Value = DLookup("defaultFee", "tblConsultants", "ID = '" &amp; Me!cmbConsultant.Value &amp; "'") End Sub </code></pre> <p>However, most likely your ID is numeric, thus:</p> <pre><code>Private Sub cmbCon...
17,871,476
0
<p>1)Use <a href="http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html" rel="nofollow">KeyBindings</a> KeyListener has 2 big issues,first you listen to all keys and second you have to have focus and be focusable. Instead KeyBinding you bind for a key and you don't have to be in focus.</p> <p>Simple Exam...
26,884,313
0
<p>There is no such tool in existence which can perform above specified tasks.</p> <p>You can easily find tools for capturing screenshots, but you will be not able to view changes done after a specified time. You need to develop a crawler to perform this task. You can pick PHP or .net as technology to handle this task...
32,899,676
0
<p>I have filed <a href="http://bugs.python.org/issue25294" rel="nofollow">an issue</a> against Python. The text of this issue is reproduced below:</p> <p>PEP 8 recommends absolute imports over relative imports, and section 5.4.2 of the import documentation says that an import will cause a binding to be placed in the ...
6,663,571
0
<p>From the documentation of <code>array_unique</code></p> <blockquote> <p>Note: Two elements are considered equal if and only if (string) $elem1 === (string) $elem2. In words: when the string representation is the same. The first element will be used.</p> </blockquote> <p>In this case, the objects you're getting out ...
15,359,507
0
<p>Simply declare the desired version in you POM where you specify the surefire plugin.</p> <p>As I recall, Maven 3 will actually complain if you don't explicitly specify the desired version for each plugin.</p> <p>E.g:</p> <pre><code>&lt;plugin&gt; &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt; &lt;versio...
37,527,562
0
<p>You can use the <a href="http://effbot.org/imagingbook/image.htm#tag-Image.Image.crop" rel="nofollow">crop</a> method from PIL (or PILLOW)</p> <pre><code>from PIL import Image import glob for filename in glob.glob('yourpath/*.tiff'): im = Image.open(filename) w, h = im.size im.crop((0, 30, w-60, h-30)) </code></pre...
15,779,474
0
selenium run only few methods <p>I know by creating test suite I can run all my class files, using code like</p> <pre><code>suite.addTestSuite( TestCase3.class); suite.addTestSuite( TestCase2.class); suite.addTestSuite( TestCase1.class); </code></pre> <p>But what if I dont want to run all the methods in a class file? I...
39,323,229
0
<p>I don't think this is possible with command line options.</p> <p>If you want you can make a custom annotator and include it in your pipeline you could go that route.</p> <p>Here is some sample code:</p> <pre><code>package edu.stanford.nlp.pipeline; import edu.stanford.nlp.util.logging.Redwood; import edu.stanford.n...
24,436,121
0
<p>None of the proposed solutions work to show the original column names, so I'm not sure why people are voting them up... I do have a "hack" that works for the original request, but I really don't like it... That is you actually append or prefix a string onto the query for each column so they are always long enough f...
20,612,022
0
<p>Try This one, May be help full </p> <pre><code>newView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:[NSString stringWithFormat:@"lightwood%d.jpg", indexPath.row]]]; </code></pre> <p>indexPath.row increase one by one and your images name also increasing one by one.... Thanks </p>
36,225,137
0
sensu-client is failing during start <p>My sensu-client is failing during start (fresh install) and <code>/var/log/sensu/sensu-client.log</code> doesn't show much despite me adding <code>LOG_LEVEL=debug</code> into <code>/etc/default/sensu</code> . I used similar client.json and rabbitmq.json config files (inside /etc/...
19,751,863
0
<p>If you are on windows use MinGW or like most have suggested ggo with GCC on Linux</p> <p>Though ofcourse since it's commandline so you might find Dev-C++ and/or Code::Blocks, Eclipse CDT etc which are IDEs useful for you to make your job simpler.</p> <p>There is no standard and each compiler and it's libraries diff...
27,730,637
0
add Account(settings) method doesn't start Activity <p>I want to create custom app account in settings.</p> <h1>Problems</h1> <ol> <li>There is an option with icon in <code>settings &gt; Add account</code> but no name</li> <li>When click on that(Add account), <code>AuthenticatorActivity</code> doesn't start. I debug <c...
16,894,022
0
<p>You can do it by making changes in the ps_order_detail table. In that table, PS stores all information for an ordered product like product id, name, product purchased quantities etc etc.</p> <p>There is a column named <strong>product_quantity</strong>, change it and it will change the number of products bought. </p...
28,698,609
0
<p>I suggest you try this:</p> <p>Add this permutation of your compound index.</p> <pre><code> (campaign_id,domain,log_time,log_type,subscriber_id) </code></pre> <p>Change your query to remove the <code>WHERE log_type IN()</code> criterion, thus allowing the aggregate function to use all the records it finds in the ra...
8,417,342
0
How to get all the ids of elements inside a list using jquery <p>I've a list as</p> <pre><code>&lt;ul id="list"&gt; &lt;li id="one"&gt;&lt;/li&gt; &lt;li id="two"&gt;&lt;/li&gt; &lt;li id="three"&gt;&lt;/li&gt; ..... .... .... &lt;/ul&gt; </code></pre> <p>I want to get the <code>ids</code> of every <code>li</code> elem...
28,383,735
0
<p>Hy, my answer is late but it seems that *.php page is not support... Try using *.html and it should work.</p> <p>Maybe I'm wrong and in this case, <strong>please give to us the solution</strong>.</p> <p>Regards,</p>
12,794,591
0
<p>Here's the first method that came to mind. Yes, it <em>is</em> ugly, but it seems to work:</p> <pre><code>function renderArray(_checkbox) { var output = [], rangeStart = 0; function outputCurrent() { if (rangeStart &lt; i - 1) output.push(_checkbox[rangeStart] + " to " + _checkbox[i - 1]); else output.push(_checkbo...
19,710,353
0
<p>You can use <a href="https://code.google.com/p/html5shiv/" rel="nofollow">html5shiv</a> to make IE support HTML5!</p>
21,588,845
0
<p>I'm the maintainer of JSTileMap. I have a sample project I did about a month ago that has some examples of what you're talking about here. You are welcome to have a look at my code: <a href="https://dl.dropboxusercontent.com/u/14626689/Platformer%20Test%201.zip">https://dl.dropboxusercontent.com/u/14626689/Platform...
2,261,561
0
What is involve in creating a music player in .NET? <p>I have always wanted to make a music player. But i have no idea how to. I dont need it to be cross playform, just as long as it works.</p> <p>Each part is its own question but let me know if i am missing any. I broke it up into simple, unknown and long</p> <h3>Simp...
10,713,781
0
<p>I would write all your business logic as classes with those arrays in a <strong>MODEL</strong> file, access those classes from the <strong>CONTROLLER</strong> file. And then once you have all your data, access from the <strong>CONTROLLER</strong> the <strong>VIEW</strong> file to output. Inside the <strong>MODEL</s...
10,369,677
0
<p>One way to rewrite is to use the <code>switch</code> statement in PHP. You can <a href="http://php.net/manual/en/control-structures.switch.php" rel="nofollow">read more about it here</a>.</p>
3,856,303
0
<p>As Igor says, Apple's fork of gas is ancient and wants:</p> <ul> <li>.global replaced by .globl</li> <li>all instructions in lowercase</li> <li>replace ';' comment separator with '@'</li> <li>stub labels for address imports</li> </ul> <p>I've written a pre-processor awk script for the Tremolo .s files to make them ...
25,077,204
0
<p>What you need its called "push notifications". PhoneGap has some plugins for that. </p> <ul> <li><a href="https://build.phonegap.com/plugins/324" rel="nofollow">plugin</a></li> <li><a href="http://apigee.com/docs/app-services/content/tutorial-push-notifications-sample-app" rel="nofollow">sample app</a></li> <li><a ...
9,496,617
0
Java error Native Library already loaded in another classloader <p>I'm using the java bonjour library (dns_sd.jar) in a web application running in Jboss web server.</p> <p>When I start the server a Servlet finds every resource on the network with bonjour and returns to the user. The first time everything runs great but...
37,195,467
0
Unable to Access Public Variables - Excel VBA <p>I am working on a rather large Excel application via VBA. I want to place all my public variables in one module. Then I would assign and use those variables in my other modules in the same workbook. Here's what I have.</p> <pre><code>Option Explicit Public wdApp As Word....
16,028,380
0
2D NSString array usage inside block method <p>Why am I not able to use this?</p> <pre><code>__block NSString *tableStrings[4][2]; [userValues enumerateObjectsUsingBlock:^(NSNumber *userScore, NSUInteger idx, BOOL *stop) { tableStrings[idx][0] = @"&lt; 5"; tableStrings[idx][1] = @"&gt; 95"; }]; </code></pre> <p>The com...
2,930,233
0
<p>FILTER_VALIDATE_FLOAT does not accept a range option. Check the <a href="http://www.php.net/manual/en/filter.filters.validate.php" rel="nofollow noreferrer">doc</a>.</p>
13,821,949
0
Proguard does not obfuscate gui components <p>I would like to use ProGuard to obfuscate my Android app. This works fine. But my gui classes, which extends acitvity, view and sherlockactivity are not obfuscated. Here is the proguard.cfg</p> <pre><code>-injars bin/classes -injars libs -outjars bin/classes-processed.jar -...
34,075,001
0
<p>I had the same problem, except my cause was that I was attempting to pass an integer (Int32) as a web service parameter. It looks like web service parameters in SSIS should always be strings.</p>
39,380,697
0
<p>you can use the overloaded method of toArray() .. like this -</p> <pre><code>double[][] remainingStockout = new double[array.length][array.length]; stockout.toArray(remainingStockout); </code></pre>
16,072,877
0
<p>I am not claiming this is how to do it, but it seems to work, and would appreciate any opinions. Thanks</p> <pre><code>DELIMITER $$ CREATE PROCEDURE `createRecord` () BEGIN IF NEW.created_by_user IS NULL OR NEW.created_by_user = '' THEN SET NEW.created_by_user = @users_id; END IF; IF NEW.modified_by_user IS NULL OR...
29,189,599
0
<p>It's not clear what you mean by "issues distinguishing between AM and PM". Is it that you enter a time in the afternoon, e.g. 12pm, then add minutes and it becomes am? That's because minutesAdded() is using the number of minutes to determine whether it's the morning or evening. You would be better off calculating t...
10,882,207
0
<p>You can do that :</p> <pre><code>$('#btnDining').css({'cursor':'pointer'}).on('click', function(e){ var src = $(this).attr('src'); src = (src.indexOf('off.png')!=-1)?src.replace("_off","_on"):src.replace("_on","_off"); $(this).attr('src', src); }); </code></pre> <p>And I think, it's a more readable way..</p>
14,770,370
0
Jquery css compare background-colour value <p>I have an <code>img</code>. On click it checks the background color of its parent and toggles the background color to grey if it is white and to white if it is grey. here k have value that is rgb(255,255,255) (white) but the if loop sud be excuted but else part executed... ...
20,890,030
0
MVC5 aspnet.identity + FLASH user authentication <p>I'm looking for example or idea how to manage user authentication in FLASH with MVC5 ASP.NET identity using internal accounts and external logins (facebook etc.).</p> <p>I know that there are examples for simplemembership and that there are problems with FLASH automat...
21,948,559
0
<p>You are inserting a String as parameter to the setOpacity method, which only takes doubles.</p>
17,767,456
0
Array counting Error <p>I am trying to count from the following associative array in two's key->value filter, by Key-gender and Key-rname, Please see below ...</p> <pre><code>&lt;pre&gt; Array ( [0] =&gt; Array ( [fname] =&gt; jone [lname] =&gt; jani [gender] =&gt; m [rname] =&gt; N ) [1] =&gt; Array ( [fname] =&gt; ja...
33,491,879
0
<p>Firstly, I think there might be some misunderstanding in the term 'inject'.</p> <p>Inject means this:</p> <pre><code>public class UserService { MyContext _db; public UserService(MyContext db) { _db = db; } public void GetUserById(string id) { _db.Users.First(x =&gt; x.Id = id); } } </code></pre> <p>Instead of this:...
27,154,522
0
<p>Basically JAXRS is just an API, there are several implementation of this API, the most commonly used is Jersey, RESTEasy, CXF, <a href="http://www.infoq.com/news/2008/10/jaxrs-comparison" rel="nofollow">[comparison]</a>, check <a href="http://programmers.stackexchange.com/questions/155467/selecting-a-jax-rs-impleme...
32,508,759
0
<p>It appears this is a JDK bug and it looks like this could be fixed by updating your JDK, what version are you currently on?</p> <p>It looks like <a href="https://issues.apache.org/jira/browse/CASSANDRA-8220" rel="nofollow">CASSANDRA-8220</a> (C* 2.2.1+, and 3.0.0-alpha1) was introduced to work around the problem, b...
13,167,610
0
<p>I think you can iterate through the character check if that is vowel or not as below:</p> <pre><code> define a new string for(each character in input string) //("aeiou".indexOf(character) &lt;0) id one way to check if character is consonant if "aeiou" doesn't contain the character append the character in the new st...
29,570,248
0
Change page styles Android WebView <p>I'm currently working on a small application that simply loads one webpage into webview and I want to be able to make this webpage look different while browsing using this application..</p> <p>This page uses one .css and I want to use my own version of that .css instead of the orig...
30,466,358
0
<p>I ended up recreating the affected views after swapping two items. A class variable would tell the getView() function when the views should be recreated</p>
10,950,023
0
<p>LeadTools and VisioForge SDKs are just wrappers for DirectShow + some custom filters from them! There is no real alternativ to DirectShow for capturing on a Windows PC. Maybe on Win8 with MediaFoundation? Some Hardware Vendors have there own capture programms, but most of them just use DirectShow.</p> <p>I think yo...
20,721,988
0
background is gone when <p>I want my application will be more smoothly and I read that <code>hardware_acceleraton</code> could be a solution.</p> <p>So I turn on <code>hardware_acceleraton = true</code> and my background image just gone and only appearing black background.</p> <p>Do I have to do another thing or what i...
12,406,232
0
Fancybox iframe type return value on close <p>I'm using fancxbox,it is possible to pass back a variable from fancybox child to parent.</p> <p>In the child page there is text field called <code>banner_width1</code> (<code>&lt;input name="banner_width" id="banner_width1" type="text" size="5" value="1000"/&gt;</code>)</p>...
21,798,931
0
<p>By default, WordPress filters the title and body of all posts through <a href="http://codex.wordpress.org/Function_Reference/wptexturize" rel="nofollow"><code>wptexturize</code></a>. Among other typographical niceties, this transforms various sequences of standard ASCII hyphens into appropriate dashes, e.g. " -- " ...
14,704,883
0
<p>AdSupport.framework available only in iOS6+, so you won't be able to find it in XCode version prior to 4.5</p> <p><strong>UPD:</strong></p> <p>According to AdMob 6.2.0 changelog:</p> <ul> <li>Required to use Xcode 4.5 and build against iOS 6. The minimum deployment is iOS 4.3.</li> </ul>
40,685,916
0
<p>You have to use a Graph operation:</p> <pre><code>a = tf.placeholder(tf.float32, shape=(None, 3072)) b = tf.shape(a)[0] </code></pre> <p>returns</p> <pre><code>&lt;tf.Tensor 'strided_slice:0' shape=() dtype=int32&gt; </code></pre> <p>while <code>b = a.get_shape()[0]</code> returns</p> <pre><code>Dimension(None) </c...
11,774,258
0
Is there a shortcut way that I can set up fields of an object with javascript or jQuery? <p>I have the following code:</p> <pre><code>obj = new Object(); obj.close = close; obj.$form = $form; obj.action = $form.attr('data-action') obj.entity = $form.attr('data-entity') obj.href = $form.attr('data-href'); obj.rownum = $...
18,616,083
0
Why does my MVC 4 Project Partially Run on Production IIS 7 Server <p>We have a ASP.NET MVC 4 project containing a number of controllers, models and views. </p> <p>On our development server a Windows Standard 2008 (x64) the project is deployed/published and it runs fine. </p> <p>However, when we try to publish the proj...
11,596,360
0
Troubleshooting: Extending the jQuery Sortable With Ajax & MYSQL <p>I'm trying to implement an ajax tutorial I found at <a href="http://linssen.me/entry/extending-the-jquery-sortable-with-ajax-mysql/" rel="nofollow">http://linssen.me/entry/extending-the-jquery-sortable-with-ajax-mysql/</a></p> <p>The tutorial allows fo...
12,457,346
0
<p>You will not be able to retrieve a plain text password from wordpress.</p> <p>Wordpress use a 1 way encryption to store the passwords using a variation of md5. There is no way to reverse this.</p> <p>See this article for more info <a href="http://wordpress.org/support/topic/how-is-the-user-password-encrypted-wp_has...
7,556,724
0
<p>Have you tried removing the ContentType header and adding it after : </p> <p><a href="http://i2.iis.net/ConfigReference/system.webServer/httpProtocol/customHeaders" rel="nofollow">http://i2.iis.net/ConfigReference/system.webServer/httpProtocol/customHeaders</a></p> <p>I have never done that with app_offline.htm but...
32,223,076
0
<p>You really should not be calling asynchronous functions inside a synchronous loop. What you need is something that repects the callback on completion of the loop cycle and will alert when the update is complete. This makes incrementing counters externally safe.</p> <p>Use something like <a href="https://github.com/...
35,497,226
0
Class 'PhpOffice\PhpWord\Settings' not found in app/code/core/Mage/Core/Model/Config.php on line 1348 <p>After upgraded to PHP 7, my website magento print order using PhpWord library not working.</p> <p>I have this error: </p> <p>Cannot use PhpOffice\PhpWord\Shared\String as String because 'String' is a special class n...
20,507,239
0
Having problems replacing data in array <p>For a project I have to do, I have to list a set of classes, have the user select which class to use, and print out a weekly schedule for them for the semester. (Same program as the first question I asked.) However, I seem to run into a problem when I try to print out a weekly...
1,911,805
0
Search email inbox using javax.mail <p>I was trying to see if there was a way to search an email inbox from javax.mail. Say I wanted to send a query and have the it return emails to us. Can we parse returned HTML and extract data. Also, if the above is possible how would I "translate" those messages returned by that se...
31,957,052
0
<p>put this theme in your manifest file in application Tag</p> <p>android:theme="@android:style/Theme.Black.NoTitleBar"</p>
12,853,626
0
<p>Place your <code>.htaccess</code> in <code>/rs</code> folder and try</p> <pre><code>RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([A-Za-z0-9]*)/?$ index.php?page=$1 [L] </code></pre> <p>Hope this will help</p>
610,501
0
<p>If you are looking for a gallery application I recommend the open source project '<a href="http://gallery.menalto.com/" rel="nofollow noreferrer">Gallery2</a>'.</p>
26,218,850
0
<p>It sounds like the projects exists on the file system in the workspace directory, but the actual project got deleted or never imported in the eclipse workspace. Take a look at the workspace directory, all three projects should be there. You can delete the "missing" project from the file system and reimport it again...
22,021,311
0
<pre><code>$s = get-content YourFileName | Out-String $a = $s.ToCharArray() $a[0..103] # will return an array of first 104 chars </code></pre> <p>You can get your string back the following way, the replace removes space char( which is what array element separators turn into)</p> <pre><code>$ns = ([string]$a[0..103]).r...
30,817,100
0
<p>All the problems boil down to the fact that the following declaration</p> <pre><code>slist&lt;int&gt; L; </code></pre> <p>throwed the error that</p> <p><code>slist</code> was not declared in this scope</p> <p>You need to make sure <code>slist</code> is declared in your scope. <code>include</code> the necessary head...
20,634,387
0
<p>You should change this to before_save, that way you can change the model's attributes, and then they will be saved to the database as normal. </p> <pre><code>class Slot include Mongoid::Document before_save :calculate_period def calculate_period if condition #do something end end end </code></pre>
32,425,006
0
<p>That's because when the <code>JTextField</code> is shown, the <code>mouseExited()</code> method is immediately called. Then of course the <code>JLabel</code> is shown again and this loops while you keep moving the mouse.</p> <p>The following works:</p> <pre><code> jl.addMouseListener(new MouseAdapter() { public voi...
27,225,755
1
Converting list of strings to floats and add 1 <p>I have parsed my input to this list:</p> <pre><code>lst = ['6,3', '3,2', '9,6', '4,3'] </code></pre> <p>How to change this list of strings to a list of floats? While the numbers that are nw strings are not seperated by a . but by a ,</p> <p>After that i would like to ad...
25,763,592
0
Symmetric Encryption isn't working <p>I am trying to generate cipher text and decrypted data. I already have assigned my incrypted value and key. But when I run the program in netbeans it shows error in the execution area, but no cipher text and decrypted data is produced.</p> <p>Encryption.java:</p> <pre><code>package...
37,655,373
0
<p>You can use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort"><code>Array#sort</code></a> with <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs"><code>Math.abs()</code></a>.</p> <pre><code>arr.sort((a, b) =&gt; Mat...
29,073,150
0
<p>These subprograms (functions and procedures) are probably not what you want them to be: they are declared within the <code>Polynomials</code> package, but do not reference the type <code>Polynomial</code> at all.</p> <p>Apart from that, your question is easily answered: <code>POLYNOMIO</code> is not a tagged type, ...
6,855,829
0
<p>As you've noticed, system() waits for the other process. Internally, it forks() another process, that calls exec() to run your batch file and the original process waits. If you can't use CPAN then you can call fork() and exec() yourself and just not wait for the child process to finish.</p> <p>Read these first:</p>...
31,296,079
0
<p>Try <code>&lt;script src="/resources/js/controller.js"&gt;&lt;/script&gt;</code></p>
40,261,298
0
<p>If you only need the title try:</p> <pre><code>try { final Document document = Jsoup.connect("www...").get(); for (Element row : document.select("div#si-title")) { System.out.println(row.text()); } } catch (IOException e) { e.printStackTrace(); } </code></pre> <p>If you need more values of the <code>stat-item</code...
38,063,055
0
fibers install not possible on ubuntu 14.04 <p>When I try to install fibers, I get this errormessage.</p> <p>I have Node version 0.10.45 for the use Meteor 1.3.2 on Ubuntu 14.04 64 Bits on a Strato VPS.</p> <p>When I do a <code>meteor build</code> I need to run <code>npm install fibers</code> inside of <code>programs/s...
857,042
0
<p>I'd be very wary of published software protection mechanisms, as they are much more likely to have published hacks. You are probably better off using some of the techniques to get a unique persistent ID and use this to roll your own protection mechanism. I also think that it is a poor idea to simple check the licen...
245,297
0
<p>Subversion is like `a better CVS'. It handles moving files AND directories well. It has branching support, although that is inferior to Distributed VCSs.</p> <p>You may also consider using a distributed VCS one like git, bazaar or mercurial.</p> <p>Edit: Here is a <a href="http://stackoverflow.com/questions/1261/wh...