pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
7,457,298 | 0 | Why is the NTOSKRNL.exe IMAGE_MACHINETYPE header field set to x86 on only certain editions of Windows 7 x64? <p>I am using windows 7 home premium x64. I was wondering why exactly the IMAGE_MACHINETYPE field in the header of ntoskrnl in my system32 directory specifies x86. IDA will even let me disassemble it as native x... |
36,208,800 | 0 | Azure Web App Deploy via FTP Credential not Working <p>I have built a web app in ARM (new Portal) with the SDK, and downloaded the Publishing Profile XML file. Inside it has an FTP element with attributes for FTP user name and password. I can log in with those credentials but not upload files - access denied. I cannot ... |
32,283,319 | 0 | How to get and change a variable in my view controller from SKScene <p>Ok so here is the code</p> <pre><code>class GameViewController: UIViewController, SceneTransitionDelegate, GKGameCenterControllerDelegate, ADBannerViewDelegate { var coolbool:Bool = false ...abunch of unimportant stuff functions and stuff } </code><... |
39,982,831 | 0 | <p>To assign the output of a command to a variable, wrap the command in backticks or <code>$()</code>.</p> <pre><code>RESULT=$(cat $LOGFILE | tail -1) </code></pre> <p>Your command performed the environment variable assignment <code>RESULT=cat</code>, and then executed the command <code>$LOGFILE | tail -1</code> in th... |
5,562,991 | 0 | <p>I assume you have a problem with the webroot, i.e. public_html/webtest is set as a root of your site and thus anything outside this folder is not accessible for the app.</p> <p>Can you verify this?</p> |
25,071,323 | 0 | <p>You don't. Its a dialog from another app, you can't close it. Which is why the general rule is not to use USSD for anything in Android- not only is it not portable across carriers, but there is no real USSD API- you can just sort of kind of hack some of it together (not to mention that USSD is a hack itself that sh... |
21,147,959 | 0 | Add .com to end of my string in php <p>What I'm trying to is search my string to see if there is any of the following arrays there</p> <p>if not then we need to add .com to end of it.</p> <p>$kwlines is my string and i have set it to test but this is what I get </p> <blockquote> <p>test.comtest.com.comtest.com.com.comt... |
37,869,545 | 0 | <p>You will need to overwrite the "<strong>tokenServerEncodedUrl</strong>" parameter value in the GoogleCredential object, and "<strong>rootUrl</strong>" parameter value in the Directory object for using your non-standard SSH Tunnel Ports for GoogleAPI client communication.</p> <p>Use the following code snippet to ach... |
13,384,205 | 0 | Scrolling Graph <p>I am trying to draw a graph that has a scrollbar,<br> the graph uses time for the x-axis and i'd like to have a limited x-axis (1 minute)<br> so up until 1 minute, the scroll bar's page is the length of the scrollbar,<br> after that the page should be '60 seconds long' and the scrollbar max should be... |
8,275,004 | 0 | <p>Ok, I've got it figured out now! What was happening is it was trying to speak before <code>TTS</code> was initialized. So in a thread I wait for ready to not == 999. Once its either 1 or anything else we'll then take care of speaking. This might not be safe putting it in a while loop but... It's working nonetheless... |
14,402,368 | 0 | php check if a value is in a sql database <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2973202/mysql-fetch-array-expects-parameter-1-to-be-resource-boolean-given-in-select">mysql_fetch_array() expects parameter 1 to be resource, boolean given in select</a> </p> </... |
12,025,886 | 0 | Not sure how to make the correct mySQL query to get data from multiple tables in 1 query <p>I need to get data from multiple tables from a database and I need to use 1 query, but I can't get it to work.</p> <p>I got these table:<br> <b>projects:</b></p> <pre><code>id name start_date end_date project_leader finished 1 p... |
17,547,685 | 0 | Declare type object in an oracle package <p>Is there a way to declare type object in a package ?</p> <p>it seems like the one following is not supported in the context the package</p> <pre><code>TYPE xxx AS OBJECT </code></pre> <p>thank you</p> |
18,279,222 | 0 | <p>jQuery selector returns an array of elements wrapped by a jQuery object. Using your code, <code>row</code> would represent a property of the object, which would work for the numeric properties; but would break for all the other properties (see below for why this is bad). </p> <p>Again, the following should not be u... |
9,005,449 | 0 | <p>I'm pretty sure it had something to do with the version of Ubuntu server I had installed. I couldn't seem to install all these tools properly on that version. So, ultimately, I installed the latest version of Ubuntu server and was able to install all these tools properly. Thanks for the help!</p> |
40,774,484 | 0 | <p>you can do on a other way: </p> <p><strong>Create a Select with this Concats</strong></p> <pre><code>select GROUP_CONCAT( CONCAT(" ('",field1,"','",field2,"')")) as vals from my_table; </code></pre> <p>The Result look like this:</p> <p><strong>Result</strong></p> <pre><code>mysql> select GROUP_CONCAT( -> CONC... |
6,067,622 | 0 | <p>I think you meant to use setTimeout instead of setInterval; it's continuously running that loop every second which is what's causing the focus to jump back to the first input box.</p> <p>If you want the animation to happen after the slideUp animation is complete, use the callback argument of the slideUp method inst... |
36,627,761 | 0 | Adding wait method to a JTable <p>Edited - To clarify what my problem was I have decided to edit this. </p> <p>My problem involved the method below:</p> <pre><code>addTransactionButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent ae){ AllGUI allGUI = new AllGUI(); allGUI.createAllGUI(... |
14,886,233 | 0 | Utilise the Bootstrap Carousel "slide" event and the .next class <p>So I've got a little problem (similar to this one I posted the other day: <a href="http://bit.ly/11JpbdY">http://bit.ly/11JpbdY</a>) with using SlabText on a piece of content that is hidden on load. This time, I'm trying to get slabText to update the d... |
29,960,351 | 0 | <p>I have one suggestion for the database design.</p> <p>i have made a few modification in Response Table and Create a new Table.</p> <ul> <li>USER Table (User_ID [PK],USER_NAME,another Extra fields)</li> <li>TEST Table (Test_ID [PK],some other fields for test details)</li> <li>Quest_Set Table (Set_ID ,Que_ID,Question... |
13,591,787 | 0 | <p>If you want to refresh the select menu with <code>data-role</code> slider you have to use:</p> <pre><code>$("#txtgender2").val(data.data.gender).slider("refresh"); </code></pre> <p>instead of:</p> <pre><code>$("#txtgender2").val(data.data.gender).selectmenu("refresh"); </code></pre> |
17,888,725 | 0 | Display li horizontally with wide li elements <p>I'm trying to display a li element side by side so that I can turn it into a content slider. Because the li elements are so wide they will not display inline. I know that I can expand the ul width to the width needed however I need that to me a mask with over-flow hidden... |
2,028,091 | 0 | <p>Any reason you can't statically link at least the standard libraries in? You should have a working program and the benefits of the standard libraries without external dependencies.</p> <p>Also, does your toolchain/IDE provide differentiate between "standalone application" and "linux application"? The IDE for the AV... |
4,957,448 | 0 | Access this in jquery each function <p>How can I acces my object variables within a $.each function?</p> <pre><code>function MyClass() { this.mySetting = 'Hallo'; this.arr = [{caption: 'Bla', type: 'int'}, {caption: 'Blurr', type: 'float'}]; } MyClass.prototype.doSomething = function() { $.each(this.arr, function() { /... |
32,155,249 | 0 | <p>I would say the answer is: you can't. (or at least: you shouldn't). This is not what Webpack is supposed to do. Webpack is a bundler, and it should not be used for other tasks (in this case: copying static files is another task). You should use a tool like Grunt og Gulp to do such tasks. It is very common to integr... |
10,270,603 | 0 | <p>You need to indent inside the <code>for loop</code> block</p> <pre><code>for i in range(len(Adapters)): print Adapters[i] </code></pre> <p>A better way would be:</p> <pre><code>for item in Adapters: print item </code></pre> |
16,507,561 | 0 | <p>You need to <em>return</em> the month value. You also need to write the function properly:</p> <pre><code>function getMonthName(n) { var months = ["Jan", "Feb", ... ]; // omitted for brevity return months[n - 1]; } </code></pre> <p>with usage:</p> <pre><code>for (var i=0; i < arrayLength; i++) { var month = data... |
12,638,694 | 0 | <p>Assuming that you're not limited by some older JS implementation, you can use <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/defineProperty" rel="nofollow">Object.defineProperty</a>.</p> |
40,575,409 | 0 | How to configure node at XMPP Publish Subscribe to deliver message to offline subscriber? <p>Publisher sent message_1 when subscriber online, and subscriber got it.</p> <p>Publisher sent message_2 when subscriber offline.</p> <p>Publisher sent message_3 when subscriber offline. Subscriber login, and just get message_3(... |
18,948,450 | 0 | Filter a list and requesting data via ajax <p>im new to javascript and phonegap and im sitting here the whole day and try to solve this problem.</p> <p>I have a list and i want to filter some data. And before i filter it, i want to download some data from a server and add it to the list. ( the list is local and if some... |
10,913,752 | 0 | <p>I solve the problem with this code.and we shold to use interface "IPlugin" in a seperate class library and use in other project.</p> <pre><code> Assembly objAssembly = Assembly.LoadFrom("Company.dll"); Type objAssemblyType = objAssembly.GetType(); foreach (Type type in objAssembly.GetTypes()) { if (type.IsClass == ... |
11,907,347 | 0 | <p>You want something like <code>/^[#][^#]*$/</code></p> |
19,005,331 | 0 | <p>The <a href="http://www.tcl.tk/man/tcl8.6/TclCmd/flush.htm" rel="nofollow"><code>flush</code></a> command directs Tcl to ensure all its buffered output for a channel is written to the underlying operating system immediately. You hardly ever need to use <code>flush</code> explicitly; the main exception is when you a... |
3,345,017 | 0 | <p>The problem is that your selector matches all .popup_msg, not only the one you need. Use the find() method to get the correct popup in the $('.t').click function:</p> <pre><code>jQuery('.t').click(function(e) { var popup_msg = jQuery(this).find('.popup_msg'); var height = popup_msg.height(); var width = popup_msg.w... |
17,094,573 | 0 | How to exit debug session on Borland C++ Builder 6? <p>While mid debugging, what's the proper way to force exit debug mode. I didn't see the usual red square "stop" button like visual studio or eclipse.</p> |
37,021,861 | 0 | <p>Try this:</p> <pre><code>/** * * Convert a bengali numeral to its arabic equivalent numeral. * * @param bengaliNumeral bengali numeral to be converted * * @return the equivalent Arabic numeral * @see #bengaliToInt */ public static char bengaliToArabic(char bengaliNumeral) { return (char) (bengaliNumeral - '০' + '0'... |
40,822,974 | 0 | Function not defined/ not working <p>I'm making a quiz, and I was just trying to check if the submit button was working. It isn't here is the code. What did I do wrong?</p> <p>HtmL</p> <pre><code><button type="button" onClick="checkAllAnswers" id="checkAllAnswers">button</button> </code></pre> <p>JS</p> <pr... |
10,088,217 | 0 | <p>You don't need to use <code>eval</code> at all to create a cell array of function handles using a <code>for</code> or <code>parfor</code> loop. Then all you need to do is to call each function handle stored in <code>functions</code> cell array.</p> <pre><code>functions = cell(1, 10); parfor i = 1:10 functions{i} = ... |
7,307,775 | 0 | How does WCF actually work? <p>I have created a C# application that I want to split into server and client side. The client side should have only a UI, and the server side should manage logic and database.</p> <p>But, I'm not sure about something: my application should be used by many users at the same time. If I move ... |
4,191,324 | 0 | How do you make sure that you always have a releasable build? <p>How do you make sure that you always have a releasable build?</p> <p>I'm on a Scrum team that is running into the following problem: At the end of the Sprint, the team presents its finished user stories to the Product Owner. The PO will typically accept s... |
26,946,564 | 0 | <p>With <a href="http://www.rebol.com/docs/words/wbind.html" rel="nofollow">bind</a>, that Binds words to a specified context (in this case local context of function), and <a href="http://www.rebol.com/docs/words/wcompose.html" rel="nofollow">compose</a> function, I get: </p> <pre><code>cascade: func [ times template ... |
22,694,513 | 0 | jQuery css height not applying <p>For some reason the height is not being set in this piece of code</p> <pre><code>jQuery(document).ready(function() { jQuery('#main-content').css({'height': ((jQuery(window).height()))+'px'}) jQuery('#nav-icons a').click(function(){ jQuery('#nav-icons a').removeClass("active-icon"); jQu... |
36,072,028 | 0 | <p>The following works for me:</p> <pre><code> try (InputStream stream = Test.class.getResourceAsStream("/Test.xml")) { StreamSource source = new StreamSource(stream); final XML xml = new XMLDocument(source); } </code></pre> <p>With the input file's hex dump:</p> <pre><code>FF FE 3C 00 3F 00 78 00 6D 00 6C 00 20 00 76... |
36,761,022 | 0 | <p>Try if this works Not tested, a wild guess</p> <pre><code>void restartButtonClickFunction(object obj) { foreach (var window in Application.Current.Windows) { if (window is GameWindow) { ((Window)window).Close(); } } GameWindow gamewindow = new GameWindow(); gamewindow.Show(); } </code></pre> |
9,730,440 | 0 | <p>Use an ArrayList instead of a table. Removes the displayed question from the ArrayList when it has been displayed.</p> |
11,245,839 | 0 | How to post uiimage to soap Srevice in binary formate <p>I want to post uiimage into soap service and input image is into binary formate</p> <pre><code>"<ExpenseDetailReceipt>%@</ExpenseDetailReceipt>" </code></pre> <p>and send this appdelegate.imgBMeal data</p> <pre><code>appdelegate.imgBMeal=UIImagePNGRep... |
3,205,166 | 0 | <p>You're setting CSS properties incorrectly with jquery. You can read <a href="http://api.jquery.com/css/" rel="nofollow noreferrer">here</a> how to reference the names of the properties (camelcased, with no hyphen).</p> <pre><code>$("#element").css({"backgroundImage":"url(/images/image.jpg)",....etc}) </code></pre> |
30,818,476 | 0 | <p>The <code>animate</code> functions has its own callback function. Use it like this:</p> <pre><code>$("#pin01").animate({left: '650px'}, 500, function() { $("#pin02").animate({left: '350px'}); }); </code></pre> <p>The 500, is the delay, after the completion of the first animation, you can set it to be 0 if you do no... |
31,500,093 | 0 | <p>Basically this code relies on a little trick: if you seed the SHA1PRNG for the SUN provider and Bouncy Castle provider before it is used then it will always generate the same stream of random bytes. This is not always the case for every provider though; other providers simply mix in the seed. In other words, they m... |
39,929,877 | 0 | Swift performSegueWithIdentifier shows black screen <p>I have read through a lot of different posts regarding this issue, but none of the solutions seemed to work for me. </p> <p>I started a new app and I placed the initial ViewController inside a navigation controller. I created a second view and linked them together ... |
27,468,770 | 0 | Call click function only for TH with class <p>I have table</p> <pre><code><table id="dataTable"> <thead> <tr> <th>TH 1</th> <th>TH 2</th> <th class="sortable">TH 3</th> <th>TH 4</th> <th>TH 5</th> <th class="sortable">TH 6</th> &l... |
13,354,820 | 0 | <p>PayPal has a great mobile experience and it will automatically switch to that if using a mobile device. How do you have PayPal integrated now? Are you just using a standard button? How long ago did you create it?</p> <p>If you take a look at www.givemobiley.org you'll see a good example of PayPal in a mobile experi... |
14,490,919 | 0 | <p>It has nothing to do with the inner function being named or not.</p> <p>In the first screenshot you're inspecting the <code>out</code> variable, which references a function returned but <code>outer</code>. That function has <code>x</code> in its closure scope.</p> <p>In the second screenshot you're inspecting the <... |
6,624,390 | 0 | <p>You probably want:</p> <pre><code>Request.QueryString("myget") </code></pre> <p>for properties on the querystring.</p> <p>Request.Form() would get you posted params</p> <p>and Request.Params() will get params from both.</p> |
31,627,620 | 0 | <p>In fragment we have to read imageview in oncreateview</p> <pre><code>@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.my_frag_layout2, container); img = (ImageView)view.findViewById(R.id.imgview); img.setOnClickListen... |
32,213,060 | 0 | <p>Provide the path to your input file as the first command line argument. </p> <p>Note: array indices might be off because I simply took your regex match variables and shifted them down by one (i.e., I didn't test this code).</p> <pre><code>use strict; use warnings; use Text::CSV; my $csv = Text::CSV->new({ binary... |
37,084,952 | 0 | <p>After_save always is called when save anything, use with moderation, and when it is called execute the method set_pennies but dont nothing, I too think that the self.update_column or update_all do what you want.</p> |
28,863,440 | 1 | Text from file to array with conditions in Python <pre><code> file = open("smth.txt","r") pom = list() string = "" for lines in file: for letter in line: if letter in "0123456789": pom.append(int(letter)) if letter == "T" : pom.append(True) elif letter.isalpha() == True: string += letter pom.append(string) file.close()... |
16,043,469 | 0 | <p>You can just update the object</p> <pre><code>string filmID = comboBox1.SelectedValue.ToString(); Scenario newScenario = new Scenario(); foreach (Scenario scenario in myDatabase.Scenario .Where(scn => scn.filmID.ToString().Equals(filmId)) { scenario.SceneWriter.Add(newScenewriter);before } myDatabase.SaveChanges... |
18,107,366 | 0 | <p>From the Apple iOS 6.0 release notes:</p> <p>"In general, Auto Layout considers the top, left, bottom, and right edges of a view to be the visible edges. That is, if you pin a view to the left edge of its superview, you’re really pinning it to the minimum x-value of the superview’s bounds. Changing the bounds origi... |
4,831,604 | 0 | <p>While @Gnostus is correct about the prototype placement, you have an issue because you're making an asynchronous request, but are attempting to use the response immediately after sending the request.</p> <p>In other words, the code <em>after</em> your <code>loadMore()</code> call runs <em>before</em> the response i... |
4,062,751 | 0 | Ext-js: How to resize / close browser window? <p>Does Ext-js come with functionality to manipulate the browser window?</p> <p>Specifically, I want to resize and close the current browser window.</p> <p>(Browser window, the browser's native window, as opposed to Ext-js' widgets).</p> <p>It it possible or must I resort t... |
11,596,647 | 0 | <p>Give an id to the div surrounding the birthday tags:</p> <pre><code><div id="required"> Birthday: <select name="birthday_day" class="required"> <option value="">Day</option> <option value="1" >1</option> <option value="2" >2</option> </select> <select name="b... |
34,362,574 | 0 | How to pass mule logger category dynamically <p>I am scenario where the loggers in a mule sub-flow should write to the same log file where the parent\main flow logs. The parent flow which invokes the sub-flow will be different but the log should write into the respective log file defined for the parent flow.</p> <p>Wha... |
23,911,059 | 0 | <p>The percent sign <code>%</code> has special meaning in Makefiles.</p> <p>In order to perform the Windows batch-file substitution, you need to escape it like this:</p> <pre><code>echo %%PATH%% </code></pre> <p>This seems to work too:</p> <pre><code>"echo %%PATH%%" </code></pre> <hr> <p>Another option is to perform t... |
37,821,379 | 0 | <p>The code you are referring to is proprietary to your application's code. There is no standard for what these mean - it's up to your application to know what they mean. What are they? It's an <a href="http://docwiki.embarcadero.com/RADStudio/Berlin/en/Simple_Types_(Delphi)#Enumerated_Types" rel="nofollow">enum (or e... |
16,907,074 | 0 | <p>You are trying to add expression in <code>THEN</code> section of <code>CASE</code> while statement is expected. Instead of using <code>CASE</code> try to move conditions to <code>WHERE</code> section:</p> <pre><code>SELECT element FROM elementTable WHERE (date > '2013' AND element NOT IN ('e1', 'e2', 'e3')) OR (... |
21,844,722 | 0 | spoj http://www.spoj.com/problems/JULKA/ <pre><code> //explain below for loop what is actually being done in this loop// for(i=k-1, j=a=f=0; i>=0; i--) { b = (a*10 + temp[i]-'0') / 2; //explain a = (a*10 + temp[i]-'0') % 2;//explain if(b) f = 1;//explain if(f) klaudia[j++] = b+'0';//explain } if(!j) j++;//explain kl... |
6,463,842 | 0 | <p>You can look into this msdn article it has a sample example as well</p> <p><a href="http://msdn.microsoft.com/en-us/library/ee728598(v=VS.98).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ee728598(v=VS.98).aspx</a></p> |
40,237,318 | 0 | <p>I know it's probably late... but here's your answer: <code>android.support.v7.app.AlertDialog</code> in AppCompat support library use <a href="https://github.com/android/platform_frameworks_support/blob/master/v7/appcompat/res/layout/select_dialog_singlechoice_material.xml" rel="nofollow">this</a> layout by default... |
26,438,756 | 0 | <p>Symfony's profiler can't scan to code for all stopwatch instances and put that into the timeline. You have to use the preconfigured stopwatch provided by the profiler instead:</p> <pre><code>public function testAction() { $stopwatch = $this->get('debug.stopwatch'); $stopwatch->start('testController'); // ... ... |
24,426,554 | 0 | <p><code>keySet()</code> does not create a new <code>Set</code>. </p> <p>It simply offers a view of the keys in your map. It actually provides only a few operations which are iteration (with remove), size, emptiness, clear and contains. You cannot add an element to it otherwise it will throw an <code>UnsupportedOperat... |
19,762,983 | 0 | gcc extension __attribute__ meanings <p>when I look some code, I find the following snap.</p> <pre><code>void ph_library_init_register(struct ph_library_init_entry *ent); #define PH_LIBRARY_INIT_PRI(initfn, finifn, pri) \ static __attribute__((constructor)) \ void ph_defs_gen_symbol(ph__lib__init__)(void) { \ static st... |
4,618,736 | 0 | <p>Fixed it by parameterising my command, binding to a new property on my viewmodel and moving Command into the style:</p> <pre><code> <ToggleButton Margin="0,3" Grid.Row="3" Grid.ColumnSpan="2" IsThreeState="False" IsChecked="{Binding DataContext.IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorTyp... |
35,115,561 | 0 | How to change the dimensions of a div depending of a number extern to that div? jquery/css <p>I want to change the dimensions of a <code>div</code> depending of wich number contain another <code>div</code>. For example if i have the number 0 the div has to be <code>width: 20px; height 0px;</code>, if i have the number ... |
33,743,219 | 0 | <p>This is also working</p> <pre><code><LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="5"> <Button style="?android:attr/buttonStyleSmall" android:layout_width="0sp" android:layout_weight="1" android:layout_height="fill_p... |
21,841,302 | 0 | <p>you're probably looking for "FOR XML" T-SQL clause</p> <p><a href="http://msdn.microsoft.com/en-us/library/ms178107.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms178107.aspx</a></p> <blockquote> <p>A SELECT query returns results as a rowset. You can optionally retrieve formal results of a SQL query... |
26,656,545 | 0 | What does it mean when a function arguments follow "pass-by-sharing"? <p>This is in specific relation to Julia, where they mention this in the docs. I noticed the following happen in my Julia code: I can use values of global variables in the julia functions without even passing them to a function. Can someone explain w... |
30,342,024 | 0 | <p>If possible, update to Gradle 2.4. It's significantly faster (claiming 20-40%).</p> |
29,667,596 | 0 | After high traffic Cassandra WriteTimeoutException <p>I'm experimenting with cassandra to use it for storing tracking data. I process get requests (300 req/sec) with tracking information through django with uwsgi on nginx. The django application writes to cassandra (single cluster with 3 RF) directly. For this im takin... |
36,229,727 | 0 | <p>see below, happy coding ! :)</p> <p>In plunker you can set <code><base href="/" /></code>, you have to script that: </p> <pre><code><script> document.write('<base href="' + document.location + '" />'); </script> </code></pre> <p>You forgot some script required by ui-bootstrap :</p> <pre><cod... |
16,759,554 | 0 | <p>As some other answers already said, there's no need to use a regular expression here. A simple <code>split</code> and some filtering will do nicely:</p> <pre><code>lines = data.split("\n") #assuming data contains your input string sld, tld = [[x.split("=")[1] for x in lines if x[:3] == t] for t in ("SLD", "TLD")] r... |
19,710,209 | 0 | <p>That's the "evaluate the branch" part of the algorithm, except you'll first use this Bhattacharyya distance on one dimensional vectors, then two dimensional vectors, etc.</p> |
37,214,471 | 0 | <p>Right click on your solution and select Properties. In the "Startup Project" select "Multiple startup projects" and set "Action" of your projects to "Start" </p> |
37,572,947 | 0 | Angular2 DecimalPipe with input type="number" <p>On one hand I have in my component:</p> <pre><code>public test:number = 1000; </code></pre> <p>On another hand, I have created a piece of view this way:</p> <pre><code><input type="number" [ngModel]="test | number:'1.0-1'" /> </code></pre> <p>As soon as the propert... |
27,359,787 | 0 | <p>Another approach is to use <code>union all</code> with aggregation:</p> <pre><code>SELECT y1, cnt1, y2, cnt2 FROM ((SELECT EXTRACT(YEAR FROM Tab_1.DATE_STMP) as y1, COUNT(*) as cnt1, NULL as y2, NULL as cnt2 FROM EMP_1 Tab_1 GROUP BY EXTRACT(YEAR FROM Tab_1.DATE_STMP) EMP_2@LINK Tab_2 ) UNION ALL (SELECT NULL, NULL... |
23,116,555 | 0 | Classes of javax.faces.bean are gonna be deprecated - a notification issued by NetBeans IDE 8.0 <p>I'm using NetBeans IDE <a href="https://netbeans.org/downloads/8.0/" rel="nofollow noreferrer">8.0</a>. The IDE issues a notification as shown in the following snap shot.</p> <blockquote> <p>Classes of javax.faces.bean ar... |
1,088,716 | 0 | <p>There is a schema describing such graph: see <a href="http://graphml.graphdrawing.org/primer/graphml-primer.html" rel="nofollow noreferrer">GraphML</a></p> <p>Example:</p> <pre><code><?xml version="1.0" encoding="UTF-8"?> <graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2... |
3,377,030 | 0 | <p>It was the most terrible "error" I ever had. :-D Everytime I typed something in my textbox I refreshed a webview. That refreshing made this sound.</p> |
12,182,074 | 0 | Same or different xml namespaces? <p>In my project, there are lots of XML files of various sort, like XSDs, WSDLs, parameter maps etc. They all receive a generated namespace by the IDE, but the namespaces are not unique (across projects - elements with the same name get the same namespace) nor descriptive (or confusing... |
10,050,262 | 0 | <p><strong>Real problem in short:</strong> Circular library dependency between <code>arch</code> and <code>synergy</code>. Also, <code>base</code> actually wasn't linked to <code>common</code> library (in the CMakeLists.txt for <code>base</code>).</p> <p>Interestingly, this was caused by a configuration problem in the... |
28,374,919 | 0 | <p>Of course super.awakeFromNib() ! Surprisingly my code works fine although when I println(self.image), I still get nil, println(image) non-nil ! Perhaps self.image is released soon it is used to display the image. Anyway it works ! Thank you for the answer</p> |
28,456,280 | 0 | <p>I was just having this issue with my own program. I turned out that the value I was searching for was not in my reference table. I fixed my reference table, and then the error went away. </p> |
34,317,571 | 0 | how to work around with fusion table styles limited to 5 <p>I have a fusion table. I use the following javascript code to toggle 2 styles.</p> <pre><code>fusionTableLayer.setOptions({ styles: styles1 }); fusionTableLayer.setOptions({ styles: styles2 }); </code></pre> <p>Problem is my style2 has more than 7 styles. But ... |
29,083,447 | 0 | <blockquote> <p>Is there any way to do this for a standard FTP server?</p> </blockquote> <p>No. You can tell the server the position where it should start with the <code>REST</code> (restart) command, but you cannot tell it how much data it should send. All you can do is close the data channel after you've received th... |
33,493,114 | 0 | <p>Try this,</p> <p>on your blade something link below.</p> <pre><code> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="form-group {{ $errors->has('name') ? 'has-error' : '' }} control-required"> {!! Form::label('title', 'Title') !!}<span class="mand_star"> *</span> {!! Form:... |
25,694,195 | 0 | <p>You can use </p> <pre><code>window.history.go(-2) //Go two pages back </code></pre> <p>or the same method twice </p> <pre><code>history.back(); //Go one page back history.back(); //Go another one page back </code></pre> |
18,092,495 | 0 | <p>Short answer: Your form, lets call it X, needs to post back to A. A can then sign the request and then forward all of this onto B. </p> <p>If you do NOT post back to A, then how does B know that the request came from A? A has no clue what the client, who we will call Zed, sends? A only sent form X to Zed and is no ... |
36,994,942 | 1 | Cron execution of python script not working like expected <p>I have a python script which is executed by cron, it's purpose is to manage messages from users to other users. These messages are stored inside a mongodb database. The script crawls through the messages, looks for the target name, fetches it's _id from the d... |
30,667,202 | 0 | Convert code of Matlab to Simulink <p>I make one code in matlab to resolve and plot one diferential equation, but my problem now is how to make in simulink:</p> <p>The code of matlab is:</p> <pre><code>function dy = eqdif1(t,y) %y''+4y=sin^2(2x) % with initial values y(pi) = 0,y’(pi) = 0 % y(1)=y y(2)=y' dy = [y(2); (s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.