pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
29,221,458 | 0 | <p>In the first line in question regex: </p> <pre><code>"\\\\server1\\Cold Folder1\\(title and text number.*\\.pdf)" </code></pre> <p>error is in <code>\\Cold</code> and <code>\\(title</code> - it should have double slash <code>\\\\Cold</code> and <code>\\\\(title</code></p> <p>In the second line in question regex:</p... |
31,172,911 | 0 | <p>When a reference to a cell is made via a <code>UITableView</code>, (usually by iOS, when loading your view), iOS calls the methods in its lifecycle - e.g., <code>heightForRowAtIndexPath</code>, <code>editingStyleForRowAtIndexPath</code> to work out how to display it etc.</p> <p>So your source of an infinite loop is... |
22,065,349 | 0 | <p>Your framework might have a default helper function which uses php's rawurlencode() function by default too. You might want to check the parameters you should pass for $this->html->link() since php's rawurlencode() function accepts only a string as a parameter.</p> |
11,451,335 | 0 | <p>I assume you have been using Eclipse IDE. </p> <p>In your package explorer (usually on the left side), find your Java Project you wish to export, right click in it and choose <code>Export</code> from the menu. </p> <p>When asked for type, expand the <code>Java</code> folder icon and choose <code>Runnable JAR file</... |
31,350,180 | 0 | <p>Given that the site you linked to adds the ID to the body based on the page that you are on, your css is fine (although, you have a trailing comma before the open bracket that should be removed); it's the hex code on your background color that is invalid. You have 7 characters when there should only be 6: #FFD3CEf<... |
28,188,468 | 0 | <p>Just convert it to the right format using <code>SDL_ConvertSurfaceFormat()</code>...</p> <pre><code>SDL_Surface *image = ...; SDL_Surface *converted = SDL_ConvertSurfaceFormat( image, SDL_PIXELFORMAT_ARGB8888, 0); </code></pre> |
9,629,264 | 0 | Where are the option strings for an MFC Combo Box stored? <p>Given a resource file, containing a combo box definition, for a C++ MFC program, is there a way to programmatically obtain the option strings? </p> <p>When defining a dialog in the Visual Studio resource editor, one can specify the options with a <code>;</cod... |
25,993,860 | 0 | <p>I used this simple html style of doing it. Works fine on ios7 and cordova 3.5 and android 4.4</p> <pre><code><a href="mailto:abc@gmail.com" data-rel='external'> </code></pre> <p>I'm not even using any plugins such as inappbrowser, just in case you have that doubt.</p> |
14,421,589 | 0 | <p>You can use String array for holding three string</p> <pre><code>String names[]= {"com.example.adapters.Music","com.example.adapters.Video","com.example.adapters.Photo"}; </code></pre> |
26,047,694 | 0 | Detecting and intercepting video playback in UIWebView <p>I would like to intercept a click in an UIWebView and then use the URL of the video. How is this possible? I found a somewhat similar post which pointed met to the </p> <pre><code>webView:shouldStartLoadWithRequest:navigationType: </code></pre> <p>delegate. I ca... |
14,399,617 | 0 | <p>For accounting timezone and daylight saving time changes, the <code>datetime.datetime</code> object needs to be timezone aware, i.e. <code>tzinfo</code> property should not be <code>None</code>. This can be done by subclassing the <code>tzinfo</code> abstract class. The <code>ustimezone</code> module does exactly t... |
4,579,463 | 0 | <p>You just don't have that much control over a table's default header styles. Have your table view's delegate return a custom view for each header instead bu implementing -tableView:viewForHeaderInSection:. That view could probably be just a UILabel with the text color set to whatever you like.</p> |
7,347,297 | 0 | <pre><code>[myArray addObject:[(NSArray *)[dict objectForKey:@"Added"] objectAtIndex:0]]; </code></pre> |
24,508,139 | 0 | <h3>regarding second example</h3> <p>In the second exaple you have given</p> <pre><code>$("#div").someEvent(myFunction()); </code></pre> <p>the result of the function call is registered to execute on when the <code>someEvent</code> happens. So when the event is registered the function call happens and its result is as... |
36,042,714 | 0 | Enterprise Library Mappings <p>Is there a way to map database fields to OOP complex type fields with Enterprise Library. I am calling stored procedures that retrieves all data that I would like to store into custom class.</p> <p>Here I retrieve data from sp:</p> <pre><code> IEnumerable<WorkHistoryGrid> data = new... |
14,964,024 | 0 | How do I symbolicate a copy/pasted crash report? <p>I have a user who is experiencing a crash using the app store version of an iPhone app. The crash is not reported via iTunes connect and the user is unable to sync with iTunes and get me the .crash file (they don't have a computer). The user is, however, able to copy ... |
17,463,397 | 0 | <p>This example also may help you to understand:</p> <pre class="lang-dart prettyprint-override"><code>void main() { var car = new CarProxy(new ProxyObjectImpl('Car')); testCar(car); var person = new PersonProxy(new ProxyObjectImpl('Person')); testPerson(person); } void testCar(Car car) { print(car.motor); } void test... |
14,355,742 | 0 | <p>By checking with breakpoint it seems it is only called once. </p> |
1,227,391 | 0 | What cross-browser charting packages are available? <p>I want to include some charts on my website and I'm looking for a good cross-browser charting package - what are my options?</p> |
23,059,370 | 0 | <p>Unfortunately, that's does not change anything in me most common cases.</p> <p>Excellent response on which cases are improved : <a href="http://stackoverflow.com/questions/34488/does-limiting-a-query-to-one-record-improve-performance">Does limiting a query to one record improve performance</a></p> <p>And for your c... |
9,251,278 | 0 | <p>Not a very clear question but you can use a query like this: (<strong>untested</strong>)</p> <pre><code>insert into pageview select 15, 'A VISITOR', 10, now() from pageview a where id_realestate=10 and DATE_ADD(now(),INTERVAL -30 MINUTE) > ( select max(news_release) from pageview b where a.id_realestate=b.id_rea... |
18,659,009 | 0 | <p>The usual approach for picking off digits is to use <code>n % 10</code> to get the value of the lowest digit then <code>n /= 10</code> to remove the lowest digit. Repeat until done.</p> |
15,479,934 | 0 | <p>I figured out that I could create a new ObjectId first then when I insert it into the mongoDb, I pass the ObjectId.str for the "_id" property, then problem resolved, both mongo db level and grails level will have String type for id field.</p> <p>Code snippet is as following for mongo javascript script:</p> <pre><co... |
22,072,208 | 0 | Executing a .bat file with a parameter and reading the console output in C++ <p>I have a batch file I need to execute, it has one parameter, If I were to run this script myself I would open up cmd and write</p> <pre><code>lexparser.bat texfile.txt </code></pre> <p>and the output would then be printed to the console. I ... |
10,475,621 | 0 | <p>Your post's variables should all be concatenated.</p> <pre><code>$.post('pageprocessing.php',"replyID=" + replyID + "&tableName=" + tableName, function(response) { alert(response); }); </code></pre> <p>You could alternatively use objects</p> <pre><code>$.post('pageprocessing.php',{ replyID : replyID, tableName ... |
35,729,648 | 0 | <p><code>os.listdir()</code> returns a list of strings much like the terminal command <code>ls</code>. It lists the names of the files, but it does not include the name of the directory. You need to add that yourself with <code>os.path.join()</code>:</p> <pre><code>def replace(directory, oldData, newData): for file in... |
874,070 | 0 | Are there any USB stick runnable, no-install, cross platform software frameworks (with GUI)? <p>Does anyone know of a good software development framework or similar that has the following properties?</p> <ul> <li>Cross platform: it should be runnable on XP, Vista, OSX and common versions of Linux (such as Ubuntu and Ku... |
40,229,455 | 0 | <p>It's because when you have comments you print new one. What i suggest to do is use JSON to get the comments array, pass an ID to each comment and check if the Id is allready present in the list. that way you only paste new comment, here's an example.: <br> html</p> <pre><code><form action="" method="POST" id="co... |
26,543,998 | 0 | <p>I had the same issue. The arrows were displayed as in your screenshot no matter where I placed the font files. I even tried absolute links á la "src:url('d:/myProject/fonts/flexslider-icon.eot');" and it still didn't work. I think it has something to do </p> <p>with the font itself. </p> <p>But good news: I used th... |
13,219,685 | 0 | Scala cannot access object classes <p>I'm obviously missing something fundamental here. I have the following Scala Code:</p> <pre><code>package org.carlskii import java.io._ import java.security.cert.CertificateFactory import java.security.Security import org.bouncycastle.jce.provider._ object Main extends App { Securi... |
22,919,157 | 0 | Why my QuickSort using ForkJoin is so slow? <p>I have a simple program uses ForkJoin to accelerate QuickSort, but I found that the sort algorithm uses standard partition method is much faster than the one uses my partition methd.</p> <p>If I don't use ForkJoin, the time performance of two partition method is almost the... |
9,894,203 | 0 | <p>If you have many options, you usually create a seperate table, only with an id and description (or name). To Connect these two tables, you insert a field into the CHECKLIST_ANSWER-Table, and define it as a foreign key, which references to the id (primary key) of the new table, I have mentioned first.</p> <p>Hope it... |
19,190,082 | 0 | Can I store an xml string in a resources file (.resx), without it getting encoded with < and >? <p>In Visual Studio, I can put an xml string into the "Value" field. However, when I open up the actual .resx file, I see that it has been encoded to have <code>&lt;</code> and <code>&gt;</code>. I want the .re... |
29,107,557 | 0 | <p>Please <a href="http://stackoverflow.com/questions/19953382/how-to-force-page-refresh-on-browser-back-click">check this question</a> that addresses the problem using localStorage/sessionStorage.</p> |
9,610,155 | 0 | iOS - UITableView not displaying cells <p>I have the following interface set up in storyboard:</p> <p><img src="https://i.stack.imgur.com/sabsg.png" alt="enter image description here"></p> <p>The controller is a custom controller that extends from UITableViewController. When I run my app this is what I get:</p> <p><img... |
32,965,874 | 0 | <ol> <li>Make sure you have opened xcworkspace and NOT xcodeproj. </li> <li>I have tested your code and everything works, so problem is that Xcode can not find .framework symbols, it finds only headers</li> </ol> |
25,094,911 | 0 | <p>To be correct - to implement special member function (constructor/ copy constructor), because only in that methods can be used member initialization syntax(You have mentioned it as 1-st way). It is used for initialization of objects on creation. Second way is used for assignment of values to already created objects... |
19,835,634 | 0 | Doctrine - many to one; Populating many, can't use the constant "ones" on the DB. How to insert manually the FKs? <p>I have the following model:</p> <pre><code> class Word{ ........... /** * @ManyToOne(targetEntity="Language", cascade={"persist"}) * @JoinColumn(name="language_id", referencedColumnName="id") */ protecte... |
4,369,017 | 0 | Background images only load sometimes <p><a href="http://eji.justgotnoobcoiled.com:8081/index.htm" rel="nofollow">http://eji.justgotnoobcoiled.com:8081/index.htm</a></p> <p>Hit refresh a few times. It happens more often in chrome.</p> <p>Any thoughts...?</p> |
39,681,282 | 0 | <p>I found a simple trick. You can pass in headers object and update its pointer value.</p> <pre><code>const headers = { Authorization: '', }; Relay.injectNetworkLayer( new Relay.DefaultNetworkLayer('http://example.com/graphql', { headers: headers, }) ); // To update the authorization, set the field. headers.Authoriza... |
26,158,115 | 0 | <p>try it <a href="http://jsfiddle.net/cu4u5xo5/7/" rel="nofollow">DEMO</a></p> <pre><code>.inside { display:inline-block; vertical-align:top; } </code></pre> |
13,649,327 | 0 | Desire2Learn Valence API logout <p>I'm trying to implement a way to actually logout from my application that is using the Valence API. I can obviously clear the session on my end, but is there a way through the API to actually log out of the Desire2Learn site as well? I've looked through the docs and didn't see anythin... |
31,928,669 | 0 | Is javascriptserializer needed when passing Json data back to my view? <p>I ran a little test (bottom) to see if nested objects could be serialized and they can! So why do I see my co workers code base serialize before he returns to the view?</p> <pre><code>var js = new JavaScriptSerializer(); return Json(new { m = js.... |
27,985,976 | 0 | Genemu JQueryColor Field Symfony2 error ColorPicker <p>I try to use Genemu JQueryColor Field with Symfony2</p> <pre><code> <?php // ... public function buildForm(FormBuilder $builder, array $options) { $builder // ... ->add('color', 'genemu_jquerycolor') ->add('colorpicker', 'genemu_jquerycolor', array( 'widge... |
29,698,797 | 0 | <p>You have to do following steps.</p> <ol> <li>Go to the admin and see what theme/template you are using for your store.</li> <li>Then go to app/design/frontend </li> <li>Locate your theme package</li> <li>Then locate page.xml file. It should be under app/design/frontend/themackage/default/layout This xml file shall ... |
40,246,717 | 0 | <pre><code>try { File f=new File("test.html"); BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f))); String content=null; while((content=reader.readLine())!=null) { System.out.println(content); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } </co... |
25,529,517 | 0 | <p>If you take a look on the links in the mobfox and google ad mob website, you'll see that the adapter is not updated anymore from 08/04/2013...</p> |
29,550,993 | 0 | <p>Mine started working when I set <code>AllowDBNull</code> to True on a date field on a data table in the xsd file.</p> |
39,110,574 | 0 | <pre><code>df.set_index('date').groupby('type', as_index=False).resample('d').bfill().reset_index().drop('level_0', axis=1) Out: date type value 0 2016-01-01 a 1 1 2016-01-02 a 3 2 2016-01-03 a 3 3 2016-01-04 a 3 4 2016-01-10 b 4 5 2016-01-11 b 7 6 2016-01-12 b 7 7 2016-01-13 b 7 </code></pre> |
1,724,016 | 0 | <p>Is <code>@networks_domentic</code> getting set properly in the controller? Add <code><%= @networks_domestic.inspect %></code> right before line 52 and see what you get. Check for <code>@networkd_domestic.nil?</code> in the controller and make sure you don't send <code>nil</code> to the view.</p> <p>EDIT:</p> ... |
22,312,417 | 0 | Extraing data from json array and separate according to type <p>So I am currently trying to extract information from a json array using <code>json_decode($result,true)</code>. The background here is that there is another php script getting information from a database and it is sending the data to me as <code>json_encod... |
10,832,071 | 0 | Main data model on android <p>I have an android application with a number of activities. I have a singleton class holding my main data model which all activities access to get data.</p> <p>The problem is that sometimes the android GC decides to destroy my singleton when the app in the background (when you press the hom... |
25,707,303 | 0 | <p>In the event where you want to move from form1 to form2</p> <pre><code>Form2 obj = new Form2(textbox1.Text,DateTime.Value); this.Hide(); Form2.Show(); </code></pre> <p>In form 2</p> <pre><code>public form2() { InitializeComponent(); //if you need something } string someName=""; DateTime dt; public form2(string name... |
39,818,718 | 0 | Open Cart Error getspecialprice <p>But I get error:</p> <blockquote> <p>Error = Notice: Undefined property: Proxy::getSpecialPriceEnd in /home/deqorati/public_html/catalog/controller/module/showintabs_output.php on line 100</p> </blockquote> <p>How can I solve this problem? Can anyone help me? Code is below.</p> <pre><... |
2,244,299 | 0 | getting error when click on the Image button? <p>in my application i have vidoes there with image when i click on any video it is showing this message.</p> <p>Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security ... |
8,513,882 | 0 | <p>You could capture only the bit you want to keep:</p> <pre><code>"1234 1/2 Old Town Alexandria".replace(/^(\d*\s+)1\/\d\s/, '$1'); </code></pre> |
12,919,181 | 0 | j2me connection to spring security <p>I have an application that use spring security for authentification I m trying to connect to this application from j2ME midlet</p> <p>so I am sending an HTTP request from a j2me application using the post method to send username and the password but it doesn't work</p> <p>the post ... |
21,103,187 | 0 | <pre><code>$link="download.php/1000338/The%20Rise%20and%20Fall%20of%20Legs%20Diamond%20%5B1960%5D.avi.torrent"; $x=explode('/',$link); $id=$x[1]; </code></pre> <p>demo:<a href="http://codepad.viper-7.com/cWYXKe" rel="nofollow">http://codepad.viper-7.com/cWYXKe</a></p> <p>using your code:</p> <pre><code> $rss = simplex... |
24,665,912 | 0 | <p>I solved my problem. The problem is since I am using RGBA as internal format I am telling opengl to use 4 bytes per pixel. However it is actually 3.</p> <pre><code>glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, image->width, image->height, 0, GL_RGB,//The change is here GL_UNSIGNED_BYTE, image->pixels); </code></... |
40,626,798 | 0 | <p>it's nicer to filter like this:</p> <pre><code>string[] files = System.IO.Directory.GetFiles(dir, "*.doc", System.IO.SearchOption.TopDirectoryOnly); </code></pre> |
30,022,795 | 0 | Postgres Upgrade Interrupted, pg_version now inconsistent <p>Recently attempted an upgrade from 9.3 to 9.4 on an Ubuntu 14.04 Postgres installation, something went awry and the system lost power midway through the upgrade. Now the cluster won't start and when I try to move the data file to a new system and start it, th... |
30,825,138 | 0 | <p>You need to have marked your files as localizable first. Select file (e. g. a storyboard) and then click the Localize button. Then, you will have that files listed when adding languages. </p> |
20,100,986 | 0 | <p>The features you are trying to use are part of Web API 2. Since you mentioned you're using MVC 4, I expect you will want to upgrade your references to MVC 5 and Web API 2.</p> <p>Find out more about these features at <a href="http://www.strathweb.com/2013/06/ihttpactionresult-new-way-of-creating-responses-in-asp-ne... |
17,452,864 | 0 | <p>This answer is probably going to need a little refinement from the community, since it's been a long while since I worked in this environment, but here's a start -</p> <p>Since you're new to multi-threading in C++, start with a simple project to create a bunch of pthreads doing a simple task.</p> <p>Here's a quick ... |
22,936,621 | 0 | <p>If I'm not misunderstanding your question, this will work:</p> <pre><code>SELECT PE.PROJECT_ESTIMATES_ID, IF( PE.PROJECT_ESTIMATES_ID = '046a190e-a895-4ce2-bb10-7a583d648b99', 0, PE.PROJECT_ESTIMATES_ID) AS STEP_DESCRIPTION FROM PROJECT_ESTIMATES PE, MST_PIPELINE_STEPS MPS WHERE PE.`PROJECT_BASIC_INFORMATION_ID` ='... |
18,935,066 | 0 | <p>I'm not sure if :current_location should be a symbol in your model if block. Calling the current_location method inside an object will resolve to the boolean value of current_location (provided your controller is saving it correctly) so change the code to:</p> <pre><code>def geocode_by_ip_address(offer) if current_... |
14,432,346 | 0 | How can I build a OSGi bundle with maven that includes non-code resources from an OSGi fragment? <p>I have an OSGi fragment containing non-code resources - that is effectively a jar file containing a set of resources (image files, etc) - that I have built with maven.</p> <p>I would like to build another bundle with mav... |
39,997,713 | 0 | <p>You want an outer join to get all rows from table_1 and the matching ones from table2</p> <pre><code>select t1.id, t1.val - coalesce(t2.val, 0) as result from table_1 t1 left join table_2 t2 on t1.id = t2.id; </code></pre> <p>The <code>coalesce(t2.val, 0)</code> is necessary because the outer join will return <code... |
4,549,430 | 0 | <p>No, but you can pass your "crazy stuff" into <code>supportsImage</code>, e.g.</p> <pre><code>supportsImage(function(result){ if(result) { //Do some crazy stuff } }); </code></pre> |
15,364,637 | 0 | Linq to Xml - Input String <p>I am using Linq to Xml to parse some xml messages coming from a legacy system. One of the messages is coming in as Name / Value pairs. So I am doing the lookup by name and then trying to get the equivalent value. However, when the Value is blank (<code><Value/></code>) my code is thr... |
16,756,354 | 0 | <p>The short answer: Objects. Object oriented programming allows you to encapsulate data so that it doesn't pollute the global namespace. As your projects grow larger, it becomes unmaintainable to have all your data in the global namespace. Objects allow you to group data and methods into meaningful units, which can t... |
34,382,725 | 0 | Control how angularjs converts date to json string <p>I have an object containing a javacsript date. Something like this:</p> <pre><code>var obj = { startTime: new Date() .... } </code></pre> <p>When Angularjs converts the object to JSON (for example, when sending it over $http), it converts the date to a string such a... |
13,588,677 | 0 | <p>First implementation i.e. the array implementation is correct and preferred. But it depends on the programmer. Best practice is not to change/alter the pointer i.e. starting/base address should be preserved, should not be incremented or decremented. </p> |
19,800,259 | 0 | VBA Writing Array to Range Causing Run-Time Error '7': Out Of Memory <p><strong>The Task</strong></p> <p>I'm working on a VBA project wherein I store the data from a sheet in a <code>Variant Array</code>, do a bunch of calculations with the data in the <code>Array</code>, store the results of those computations in a fe... |
24,058,813 | 0 | <p>When two objects have the same __array_priority__:</p> <pre><code>>>> np.array([[1,0],[0,1]]).__array_priority__ 0.0 >>> a.__array_priority__ 0.0 </code></pre> <p>And only one object's methods can be used, the tie is resolved by using the first array's/object's methods. (In your case __array_wrap_... |
34,124,826 | 0 | <p>Try using <code>zip</code></p> <pre><code>>>> print zip(*ss) [(2, 5, 4), (4, 6, 8), (5, 7, 9), (2, 6, 4)] </code></pre> |
7,493,744 | 0 | <p>The only php based solution that I know is PHP Manual Creator from kubelabs.com (http://www.kubelabs.com/phpmanualcreator/)</p> |
39,441,513 | 0 | Variable latency in Windows networking <p>I have a PLC that sends UDP packets every 24ms. "Simultaneously" (i.e. within a matter of what should be a few tens or at most hundreds of microseconds), the same PLC triggers a camera to snap an image. There is a Windows 8.1 system that receives both the images and the UDP pac... |
3,444,956 | 0 | <p>Set the <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.gridviewcolumn.headercontainerstyle.aspx" rel="nofollow noreferrer">HeaderContainerStyle</a> on the first column explicitly so it will not fall back to using the implicit one: </p> <pre><code><ListView Name="lvEverything"> <Li... |
6,354,547 | 0 | <p>it's a bit of an usual approach of trying to 'grab' the active outlook object... Especially, if there isn't an active object. A more standard approach is something to the effect of:</p> <pre><code>outlookApplication = new Application(); outlookNamespace = m_OutlookApplication.GetNamespace("mapi"); // If an outlook ... |
22,756,732 | 0 | <p>Kurty is correct in that you shouldn't need to subclass <code>DragShadowBuilder</code> in this case. My thought is that the view you're passing to the <code>DragShadowBuilder</code> doesn't actually exist in the layout, and therefore it doesn't render.</p> <p>Rather than passing <code>null</code> as the second argu... |
13,057,939 | 0 | <p>Be sure not to mix the system variable path and the user variable systemp path. I feel OK in calling "java" without the absolute path (when I know how JAVA_HOME and PATH are configured).</p> |
1,985,670 | 0 | <p>You might also want to study other <a href="http://www.dclunie.com/medical-image-faq/html/part8.html" rel="nofollow noreferrer">DICOM</a> sources. <a href="http://www.pixelmed.com/index.html#PixelMedJavaDICOMToolkit" rel="nofollow noreferrer">PixelMed</a>, in particular, contains an XML and XSLT based validator. Se... |
25,675,328 | 0 | <p>You didn't say what error, but looks like changing:</p> <pre><code>if(nodePtr = NULL) </code></pre> <p>to</p> <pre><code>if(nodePtr == NULL) ^^ </code></pre> <p>is what you need.</p> |
21,516,047 | 0 | <p>Are you running the whole import in one big transaction? Try to split it up in transactions of, say, 10k nodes. You should still however not run into "too many open files". If you do an "lsof" (terminal command) at that time, can you see which files are open?</p> <p>Data that is committed stays persisted in a neo4j... |
21,376,320 | 0 | <p>The best and clear way to do that is:</p> <pre><code>var list = {}; list.name = /^[A-Za-z\s.]+$/; list.general = /^[A-Za-z0-9\s.\-\/]{2,20}$/; list.email = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/; list.digit = /^[+]?[0-9\s]+$/; </code></pre> <p>without loops, etc</p> |
24,517,247 | 0 | Artifact 'com.android.tools.build:gradle:0.12.1:gradle.jar' not found on Android Studio 0.8.1 <p>I've upgraded to Android Studio 0.8.1 and when I try to compile any app it fails with the following error:</p> <pre><code>Error:Artifact 'com.android.tools.build:gradle:0.12.1:gradle.jar' not found on Android Studio 0.8.1 <... |
8,839,095 | 0 | What is the GPars default pool size? <p>I thought this would have been an easy thing to find but I've failed.</p> <p>If I use GPars in my Groovy application and I don't specify a pool size how many threads will be created? Is there a default pool size without setting one?</p> <pre><code>// How many threads will be crea... |
37,559,216 | 0 | <p>Not sure if this will be helpful to anyone, but I did get this working.</p> <ol> <li>Removed the abstract class and made it an interface with a single public getEncounterId() method</li> <li>Modified FooEncounter to implement the above interface</li> <li>Removed generics from the EncounterPDFExport class</li> <li>M... |
25,643,435 | 0 | How to run tests with maven twice? <p>I want to run maven tests twice, the second run must be straight after the first one. Is there any command to fire mvn tests twice?</p> |
2,334,943 | 0 | <p>Heuristics are algorithms, so in that sense there is none, however, heuristics take a 'guess' approach to problem solving, yielding a 'good enough' answer, rather than finding a 'best possible' solution.</p> <p>A good example is where you have a very hard (read NP-complete) problem you want a solution for but don't... |
17,068,781 | 0 | PoEdit does not see gettext in html tags <p>I use PoEdit. It scans all .php files, find each time I use gettext() or _(), and update the .po and .mo files.</p> <p>I have a .php file that has html tags and php in it, like this :</p> <pre><code><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <... |
17,504,066 | 0 | c++ error when use parallel_for <p>I'm trying to use parallel_for, but I get an error, the code is:</p> <pre><code>#include "stdafx.h" #include <iostream> #include <windows.h> #include <ppl.h> using namespace std; using namespace concurrency; int _tmain(int argc, _TCHAR* argv[]) { parallel_for(size_t(... |
32,670,003 | 0 | RSpec - How to get a better error message? <p>I am used to PHPUnit, so I found RSpec to be inferior when it comes to showing what has gone wrong, where and why.</p> <p>For example, in PHPUnit, I can get the stack trace when an exception is raised (and even with -b option in RSpec, all I can get is the stack trace of RS... |
28,736,821 | 0 | <p>By looking at the <a href="https://github.com/brunoscopelliti/ng-unique/blob/master/Gruntfile.js#L128" rel="nofollow" title="Gruntfile.js">Gruntfile.js</a> you can see the tasks registered.</p> <p>There is currently three registered tasks; </p> <pre><code>grunt.registerTask('build-js', ['jshint', 'karma:unit', 'ugl... |
40,786,590 | 0 | Java 8 type inference cause to omit generic type on invocation <p>I have a Problem with a generic method after upgrading to Java 1.8, which was fine with Java 1.6 and 1.7 Consider the following code: </p> <pre><code>public class ExtraSortList<E> extends ArrayList<E> { ExtraSortList(E... elements) { super(Ar... |
37,758,703 | 0 | Meteor deploy on Heroku Error deploying Node <p>I built a Meteor app, and it runs on my local machine, where I have meteor installed.</p> <p>I have never deployed an app online, and am trying to put the app on heroku.</p> <p>I first tried to use buildpack/jordansissel/heroku-buildpack-meteor.git, but I got an error "Me... |
19,203,427 | 0 | <p>Check out <a href="http://superfeedr.com/" rel="nofollow">Superfeedr</a> (which I created!) for the RSS polling aspects. We will send your server a notification (including the update!) every time a feed has a new entry. Then, you'll have to fanout that update to all of your app users using <a href="https://develope... |
40,417,777 | 0 | log4cplusud.lib missing when building with VisualStudio <p>i already have a complete VS Solution (that is working on other systems) and i am trying to get it to build on my computer aswell.</p> <p>The program is using log4cplus to (obviously) log - i already included the needed files, but when building VS tells me, tha... |
33,244,208 | 0 | <pre><code>// ==UserScript== // @name Test GM_addValueChangeListener // @grant GM_addValueChangeListener // @grant GM_setValue // ==/UserScript== GM_addValueChangeListener("abc", function() { console.log(arguments) }); GM_setValue("abc",123); </code></pre> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.