text
stringlengths
181
35.5k
meta
dict
Q: Dynamic input parameter instead of in Spring for a class How can I get rid of the constructor-args in the spring-config.xml bean mapping and supply the value dynamically or from the String args[] parameter form the main method for the BattingStats class? I have the following Player class package com.scorer.ga...
{ "pile_set_name": "StackExchange" }
Q: There is something wrong with my Python code involve the replace function I was creating a function about replacing multiple part of a string with multiple number but for some reason, the output is not what i expected. from pyprimes import isprime def prime_replace(x, l = []): lst = [] string = str(x) ...
{ "pile_set_name": "StackExchange" }
Q: Using querySelector exclude elements whose id's include a spesific string I want to get results whose id does not include a string (let's say it's is "test") <ul class="numberlist"> <li id="test1" style="display:none"> <div></div> </li> <li> <a>one</a> </li> <li> <a>two</a> </li> <li> ...
{ "pile_set_name": "StackExchange" }
Q: In cross validation, higher the value of k, lesser the training data for this formula? Is it right to say that smaller the value of k in cross validation based on the following formula, more the number of records in test data/smaller the number of records in training data. According to me, these are the proportion...
{ "pile_set_name": "StackExchange" }
Q: Sending signals to PC over wifi I need a microcontroller that would send statuses of it's input pins (around 5 of them, they can be 0 or 1) to a PC over wifi. I thought of using arduino, but I don't know what would I need to make it able to send data over wifi? Some wifi module? And would that be a good combinatio...
{ "pile_set_name": "StackExchange" }
Q: Recurse for object if exists in JQ I have the following structure: { "hits": [ { "_index": "main" }, { "_index": "main", "accordions": [ { "id": "1", "accordionBody": "body1", ...
{ "pile_set_name": "StackExchange" }
Q: How to save 2 data from SQL into 2 different PHP variables? I'm fetching data from 2 tables with one common column and and the query is returning values as expected. How to save these two values "Normal" and "Normal" gotten from "disease" and "cases" column, into 2 different variables in PHP? This is my query: SEL...
{ "pile_set_name": "StackExchange" }
Q: How to get the value of a disabled text field in jsp I am having a dropdown box and a 5 textfields( all disabled). I am entering data into textfield by using javascript, from the dropdown(what ever value is present in the dropdown, goes into the text fields). Now, when the submit button is clicked, I want to get ...
{ "pile_set_name": "StackExchange" }
Q: How to reset/restore to original spawn I am trying to mock spawn process using mock-spawn module. The subsequent test are failing since I am not able to restore the mock. I tried with mySpawn.resotre() but there is no such function. I checked the code still not able to figure it out. Can anyone please help me on t...
{ "pile_set_name": "StackExchange" }
Q: Remove User search limit per month PDO::MYSQL How can I have PHP remove a users limit every month I have this code to increment a users search limit and if they reach their limit $search = $db->prepare("SELECT `searched` FROM `search` WHERE `user_id` =:user_id"); $search->bindValue(':user_id', $vbulletin->userinf...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to get a non-node result from MSXML XPath evaluator? I understand that the name of selectNode/selectSingleNode methods actually suggests that they are designed to return a node, however maybe there is some other way or a setting available to enable XPath evaluator to return data of other types (that...
{ "pile_set_name": "StackExchange" }
Q: Steamer with single vent instead of bottom holes My family has owned a stainless steel steamer for a long time with a single raised vent to let steam into the upper compartment. It's great because there's no way for food to get into the bottom compartment so it (mostly) never has to be washed. It only ever contain...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to use a value from a result to union another result into the previous resultset? So let's say that I have a table, BMST. I use this query to find a result set: SELECT PARENT, CHILD, LEVEL, QTY FROM BMST WHERE PARENT = '111' In the result set are PARENT part number...
{ "pile_set_name": "StackExchange" }
Q: DQ currents of BLDC I am trying to apply FOC scheme with SVPWM for controlling a BLDC and comparing the resuls with trapezoidal commutation. I have my BLDC model and it is working correctly with trapezoidal commutation. My sign convention is positive speed CCW and when the motor is turning CCW, stators are located...
{ "pile_set_name": "StackExchange" }
Q: Solve RTL children ordering in Chrome In the following MWE, a span and a div are placed inside an RTL div, and their order is swapped in Firefox but not in Chrome (no idea what it shows in IE...). <html> <body> <div dir="rtl"> <span id="empty-span"></span> <div>This is arabic!</div> </div> <script> ...
{ "pile_set_name": "StackExchange" }
Q: Creating object in C++ I am new to C++. Here's my problem. I declare bus, stepper as private instances in the h file: class Motor_control { public: ... private: IICBus bus ; IICStepper stepper ; IICStepper stepper_r ; IICStepper stepper_l ; }; And then initiate them in the constructor Mot...
{ "pile_set_name": "StackExchange" }
Q: CSS to rotate an image/icon(spinner) in IE11 Css to convert an icon/image into spinner add following properties to the class of that icon/image .spinner{ -webkit-animation: load3 1.4s infinite linear; animation: load3 1.4s infinite linear; -ms-transform: translateZ(0); transform: translateZ(0); } A: add thi...
{ "pile_set_name": "StackExchange" }
Q: Rapidshare premium download (c#) Is there a way to download a file using a rapidshare premium account with c# or java? A: RapidShare has an API you might want to look into.
{ "pile_set_name": "StackExchange" }
Q: How to check if QSpinBox value changed by keyboard or buttons(mouse wheel) I need to set spinbox value to one of 1, 10, 100, 1000, 10000 if value changed by spinbox buttons or mouse wheel or up or down keys. But if value changed by keyboard I need other behavior. Here is my code for buttons, mouse wheel, up and do...
{ "pile_set_name": "StackExchange" }
Q: Why is a (non-)degenerate semiconductor called (non-)degenerate? In a non-degenerate semiconductor with (Ec-Ef) > 4kT separation, Maxwell-Boltzmann distribution can be used for simplification. I do not get why the term non-degenerate is used in this context? Degeneracy refers to multiple states having equal energi...
{ "pile_set_name": "StackExchange" }
Q: How to do in-code bindings on Windows Phone 8 I'm trying to do in-code binding on Windows Phone 8, like in the question "How to do CreateBindingSet() on Windows Phone?" How to do CreateBindingSet() on Windows Phone? I think I have done the steps as suggested by Stuart, but I keep getting exception error or output ...
{ "pile_set_name": "StackExchange" }
Q: listen for any div that goes from display: none to display:block Is there any way to listen for elements being shown or hidden? I would like categorically to--whenever an element goes from hidden to shown--put focus on the first input element within the newly shown element I thought of attaching a click event to e...
{ "pile_set_name": "StackExchange" }
Q: How to remove a file from Git Pull Request I have a pull request opened where I have some project.lock.json files which I do not want to merge while merging my branch to main branch. Is there a way to remove thos project.lock.json files from my Pull Request? A: Please do let me know if there is a better way of d...
{ "pile_set_name": "StackExchange" }
Q: What does it mean? A record deal? And hating on somebody? Some people started hating on my friend when she got a record deal. A record deal? what kind of a deal is it? Does the word "hating" mean envious? A: In this context, a record deal could mean one of two things: It could refer to a recording contract, w...
{ "pile_set_name": "StackExchange" }
Q: Take an unknown format string and return a UTF-8 string The following two strings are different in format but identical in data: str1 = '\xd7\x91\xd7\xa8\xd7\xa7' str2 = u'\u05d1\u05e8\u05e7' I need to implement the following function: Take a string in either one of the formats above as input Return the equivale...
{ "pile_set_name": "StackExchange" }
Q: iOS - Passing LaunchOptions to a sub-method Im trying to add an asyncronous lookup for Push Notifications and I'm having a problem passing launchOptions to the*@selector. Can you please tell me what I need to change? - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)lau...
{ "pile_set_name": "StackExchange" }
Q: Can you get the filename of the jsp file using a taglib in the taglib code Is it possible to get the filename of the jsp file that uses a taglib from the java code? I.e. public int doStartTag() throws JspException { try { String xxx = pageContext.? Where xxx would get the filename of the jsp file...
{ "pile_set_name": "StackExchange" }
Q: How to bind web service in jquery easy ui CRUD DataGrid I am developing an website in c# asp.net using jQuery EasyUI CRUD datagrid. But i need to replace the .php files with my web service to bind the datagrid as in the following snippet.Please suggest me a way to do so. <table id="dg" title="My Users" style="wid...
{ "pile_set_name": "StackExchange" }
Q: What is C#.net meaning in conjuction with terms like Javascript, HTML5, CSS etc? I recently got an offer for a traineeship for C#.NET. However before being allowed in the traineeship I need to make a small program which displays my programming skills in "C#.net". I don't know what to do now. I've downloaded visual...
{ "pile_set_name": "StackExchange" }
Q: HTML 5 input range-thumb disappeared after updating Chrome to version-49 I've themed HTML5 input range-thumb in one of my Client website using pseudo classes :after and :before and using the -webkit- prefix. And it was displaying all fine until I updated my Chrome browser (Desktop, Windows 7) to Version 49.0.2623....
{ "pile_set_name": "StackExchange" }
Q: How to put debug point I've a php file calling another php file which sometimes calls another php file to execute some actions (all through ajax). What I use to do was to echo at different points to know upto where the codes are executing properly. But with this approach, I can keep echo-ing. So how do I know upto...
{ "pile_set_name": "StackExchange" }
Q: Find matching strings in table column Oracle 10g I am trying to search a varchar2 column in a table for matching strings using the value in another column. The column being searched allows free form text and allows words and numbers of different lengths. I want to find a string that is not part of a larger string ...
{ "pile_set_name": "StackExchange" }
Q: Append to closest div class (multiple divs with same class on page) I'm trying to append content into the closest div class with name ".infoCatcher", but as of now it is appending to all divs with that class on the page. How do I append this to the closest div? I have this: $(document).on('click', '.btnMoreInfo', ...
{ "pile_set_name": "StackExchange" }
Q: HttpClient java.net.UnknownHostException exception when the CURL command passes I am trying to use httpclient to make make a call to Jenkins to get a list of jobs. When I run my code, I get an UnknownHostException. I tried to make the same request using curl and I was able to get the result. I am not sure how to i...
{ "pile_set_name": "StackExchange" }
Q: Generate XML from a class with JAVA I asked this question before: Generate XML from a class I want to do this with Java. Is it possible to do the same with Java via attributes? or is there a framework i can use for this purpose as well. A: XStream will allow you to represent any class as an XML. You can check he...
{ "pile_set_name": "StackExchange" }
Q: How to create DNS records for my VPS first of all I should mention that I'm fairly new to the world of DNS. I've purchased a VPS plan and I'm trying to run a web server and also a custom mail server (postfix and dovecot combination), which turns out to be a real pain. I'm aware of the fact that I can make my life ...
{ "pile_set_name": "StackExchange" }
Q: Looping within a regular expression can regex able to find a patter to this? {{foo.bar1.bar2.bar3}} where in the groups would be $1 = foo $2 = bar1 $3 = bar2 $4 = bar3 and so on.. it would be like re-doing the expression over and over again until it fails to get a match. the current expression i am working on ...
{ "pile_set_name": "StackExchange" }
Q: Does a list_iterator garbage collect its consumed values? Suppose I have li = iter([1,2,3,4]). Will the garbage collector drop the references to inaccessible element when I do next(li). And what about deque, will elements in di = iter(deque([1,2,3,4])) be collectable once consumed. If not, does a native data struc...
{ "pile_set_name": "StackExchange" }
Q: Is a Python closure a good replacement for `__all__`? Is it a good idea to use a closure instead of __all__ to limit the names exposed by a Python module? This would prevent programmers from accidentally using the wrong name for a module (import urllib; urllib.os.getlogin()) as well as avoiding "from x import *" n...
{ "pile_set_name": "StackExchange" }
Q: Control RaspberryPI 3 via Serial/GPIO So I'm working on a bit of a little project with a PI for work. I'm making the PI into a little portable NAS where i can connect it to a network and on boot, it will email me its IP Address (if it gets one). In the case where the network is static, i want to have a way to conn...
{ "pile_set_name": "StackExchange" }
Q: What frameworks are available in ASP.NET Core (ASP.NET 5) applications? I have seen various frameworks targeted in project.json files, using names such as netcore50, dotnet, dnx451, net45, and others. The documentation for the "framework" section project.json does not (yet) specify how to use this section for diff...
{ "pile_set_name": "StackExchange" }
Q: String Formatting: what is the width for the e format? My IronPython console gives the following: >>> "%9.2e" % 1.236 '1.24e+00' >>> "%10.2e" % 1.236 ' 1.24e+00' >>> The total characters in the output do not seem to correspond to 9 or 10 respectively. A: This is a know bug with IronPython; the width is not...
{ "pile_set_name": "StackExchange" }
Q: OpenCV cvtColor CV_BGR2HSV CV_32FC3 Saturation Range I'm trying to build histograms for materials in OpenCV 3.2 but am confused by the HSV ranges--they don't seem to match the documentation, or I am approaching it wrong. // cv::Mat bgrPhoto contains a test image cv::Mat3f hsvPhoto; bgrPhoto.convertTo(hsvPhoto, CV...
{ "pile_set_name": "StackExchange" }
Q: Using the AngularJS require option to call into another directive I was just reading here about accessing one directive's controller from within another directive via the require option: http://jasonmore.net/angular-js-directives-difference-controller-link/ The directive droppable and dashboard declarations in ...
{ "pile_set_name": "StackExchange" }
Q: PHP: Text Area echo in form won't echo during validation Currently I have a form that goes through validation, and echo statement that are entered and returned errors on what needs to be filled in. My commenting area is within a tag. It throws the error when it's empty. But when it's filled and other areas are em...
{ "pile_set_name": "StackExchange" }
Q: Create tuples of (lemma, NER type) in python , Nlp problem I wrote the code below, and I made a dictionary for it, but I want Create tuples of (lemma, NER type) and Collect counts over the tuples I dont know how to do it? can you pls help me? NER type means name entity recognition text = """ Seville. Summers in th...
{ "pile_set_name": "StackExchange" }
Q: How do I make main a friend of my class from within a library? Please see my first attempt at answering this . I neglected to tell the whole story before in an attempt to simplify things. Turns out my example works! Sorry. The whole story is that this is a library the contains a class in one file and the main in a...
{ "pile_set_name": "StackExchange" }
Q: How to get list of layers from geoserver Is it possible to get a list of all the layers served by geoserver? I.e. is there some specific url request to send that does this? A: The capabilities links on the geoserver home page each list layers served via various services: the WMS capabilities lists layers that s...
{ "pile_set_name": "StackExchange" }
Q: Encapsulated Group by or conditional aggregation in Vertica DB I have the following table in a Vertica DB: +---------+-------+ | Readout | Event | +---------+-------+ | 1 | A | | 1 | B | | 1 | A | | 2 | B | | 2 | A | +---------+-------+ I would like to group each ...
{ "pile_set_name": "StackExchange" }
Q: load overflow topmost address on x86 What would happen when an unaligned load overflows the topmost address on x86? For example, what would happen when loading a 4-byte integer at address 0xfffffffe on 32-bit x86 processor? Of course, the topmost page (0xfffff000-0xffffffff) is mapped to some physical memory and t...
{ "pile_set_name": "StackExchange" }
Q: Xcode code completion, search through whole method name Is there any way to have Xcode's code completion search the whole method name for the characters I start typing? For example if I start typing [self con I want things like navigationController to show up, whereas now I have to type [self nav to see that. A: ...
{ "pile_set_name": "StackExchange" }
Q: Gson deserialisation result is null for one type I'm getting a response which consists of two types of objects : Pagination and a List of ArtistSearch. The model I'm using for the deserialization is : public class ArtistSearchResults { List<ArtistSearch> artistSearchList; Pagination pagination; // getters and s...
{ "pile_set_name": "StackExchange" }
Q: Searching with Hash in Perl I am using a hash containing 5000 items to match words in a sentence, it so occurs that when I match for eg: if($hash{$word}){Do Something} sometimes it happens that the period occurs in the word and even if it is a match the presence of period results in a non-match. Can anything be do...
{ "pile_set_name": "StackExchange" }
Q: Possible to compare date strings in mongodb? I have a collection that contains documents with a date attribute like so: { title: "whatever", created: ISODate("2013-05-27T03:36:50Z") } I would like to select records that were created on a certain day. I was hoping I could use toDateString() and compare the ...
{ "pile_set_name": "StackExchange" }
Q: Identifying from which method it is coming I have two methods both returning the view: public function method1() { return ('view1'); } and public function method2() { return ('view1'); } In the view i want to edit some changes regarding from which method it is coming: Something like this in view1: @if(comin...
{ "pile_set_name": "StackExchange" }
Q: Why is there no "encoding" attribute in a string got by "IXMLDocument.SaveToXML" method? I use NewXMLDocument() to produce an XML document of my data. There is a SaveToXML() method to save the document to an XML-formatted string variable. The problem is that the XML string does not contain an "encoding" attribute ...
{ "pile_set_name": "StackExchange" }
Q: Why use geometric algebra and not differential forms? This is somewhat similar to Are Clifford algebras and differential forms equivalent frameworks for differential geometry?, but I want to restrict discussion to $\mathbb{R}^n$, not arbitrary manifolds. Moreover, I am interested specifically in whether $$(\text...
{ "pile_set_name": "StackExchange" }
Q: How to add set elements to a string in python how would I add set elements to a string in python? I tried: sett = set(['1', '0']) elements = '' for i in sett: elements.join(i) but no dice. when I print elements the string is empty. help A: I believe you want this: s = set(['1', '2']) asString = ''.join(...
{ "pile_set_name": "StackExchange" }
Q: How to flatten tables using LINQ I've this query: var usersByBranch = (from u in _db.VRT_User join urb in _db.VRT_UserRoleBranch on u.UserId equals urb.UserId join r in _db.VRT_Role on urb.RoleId equals r.RoleId where branches.C...
{ "pile_set_name": "StackExchange" }
Q: LoadImage() with variable path? How do I get LoadImage(); to work with a variable file path? I have the desired file path in the variable bg, and I'm calling the function like so: bmp = LoadImage(hInst,bg,IMAGE_BITMAP,640,480,LR_LOADFROMFILE); Yet bmp does not render any image when used with: BitBlt(hDC,0,0,640,...
{ "pile_set_name": "StackExchange" }
Q: Satz mit den meisten aufeinanderfolgenden Verben Es geht um Sätze mit aufeinanderfolgenden Verben ohne andere Wortarten oder Satzzeichen dazwischen. Beispiele (Länge der längsten Verbfolge in Klammern): Ich schreibe einen Brief (1) Ich habe einen Brief schreiben müssen (2) Der Brief muss geschrieben werden (3) De...
{ "pile_set_name": "StackExchange" }
Q: How to send C++ console params to C# DLL I need to send two numbers entered as parameters or requested by C++ console to a library in C#. Manually the code is: BSTR thing_to_send = ::SysAllocString(L"10 20"); How can I create a variable of type BSTR using the values of the parameters indicated by the console or by...
{ "pile_set_name": "StackExchange" }
Q: Why doesn't `FOO=42 echo "$FOO"` print 42 in Bash? I'm confused by this behaviour: $ FOO=42 echo "$FOO" $ FOO=42 && echo "$FOO" 42 I'm accustomed to using VARNAME=value cmd to specify environment variables for other commands, so I was surprised to discover it doesn't work when cmd is echo. This might have someth...
{ "pile_set_name": "StackExchange" }
Q: Does this code not follow or violate prototype pattern in any way? Instead of getting clone object and modifying attributes, I have first modified attributes of the object and then returned its clone. Is there any difference rule-wise and performance-wise? Also, any other suggestions regarding the design would be ...
{ "pile_set_name": "StackExchange" }
Q: NGINX SSL Forward Proxy Config I know that NGINX is not supposed to be used as a forward proxy but I have a requirement to do so ... Anyway, obviously it is not to hard to get http to work as a forward proxy but issues arise when trying to configure https. I generated some self signed certs and then try to connect...
{ "pile_set_name": "StackExchange" }
Q: global/inner variable conflict? (python) Sorry for the stupid question, I'm a newbie programmer. But can anyone tell me why the following program behaves this way? def lol(a): a=[] a.append(1) return a Now when I do k = [2, 3] lol(k) It returns 1, but k is still unchanged? Why? Thanks a lot! A: In...
{ "pile_set_name": "StackExchange" }
Q: WinForm - draw resizing frame using a single-pixel border In a Windows Form with a Resizing Frame, the frame border draws with a raised 3-D look. I'd like it to draw with a flat single pixel border in a color of my choosing. Is this possible without having to owner draw the whole form? A: You could try something...
{ "pile_set_name": "StackExchange" }
Q: Linux cron job fails to execute part of script which works in shell I'm having a problem with a script that writes to a log file during a backup procedure. Tested perfectly when called from the root shell, but fails when run from the cron demon. Backup is done over a series of partitions and the on-site admin will...
{ "pile_set_name": "StackExchange" }
Q: how to format a number in mIRC? My remote script gets a variable with a number formatted like 4365271385. I would like the script to send a message with the variable in it formatted like 4.365.271.385. I searched the internet and the help file, but i couldn't find it. Sometimes the number is in the thousands, some...
{ "pile_set_name": "StackExchange" }
Q: Android UI Mathematics required for the implementation Can someone tell me what would be the math required for moving around the small ball in the bar(meter) according to the touch motion.... I needed a clear idea on the logic.. A: The logic depends on how you want to model the interaction between the finger and...
{ "pile_set_name": "StackExchange" }
Q: WPF Group Items in ComboBox programmatically (Creating Data Templates in Code) I need to group my Items in a Combobox like this. [Category] - Item - Item [Category2] - Item - Item I found an working answer here, but my comboboxes are created dynamically by User Action. Is it possible to fill the Comb...
{ "pile_set_name": "StackExchange" }
Q: My iOS app isn't requesting iAds I recently released my first app on the app store (August 5, 2014 release). When I was testing the app the test iAds seemed to never go away. Now, the actual app available on the app store isn't displaying any ads. I have read similar question, where iAds didn't work at first, but ...
{ "pile_set_name": "StackExchange" }
Q: Show HyperLinks in Gridview I have an XML file and it contains data about products,and the most interesting data is a url that takes user to the page of thah product.I have successfully extracted urls from that XML file into XmlNodeList and then I put them into DataTable so these urls can be displayed in ASPxGridv...
{ "pile_set_name": "StackExchange" }
Q: Are there any tutorials on version 10 notebook templating and report generation? Are there missing docs? Bug introduced in 10.0 and persisting through 10.2 or later I am trying to understand the new templating in version 10. While there is a general documentation page with links to docs for each new function, so ...
{ "pile_set_name": "StackExchange" }
Q: jQuery changing font family and font size I am trying to change font family and font size of the text that appears in a textarea and a container by choosing the font from the list, font size should be fixed. I am also trying to change color of the background when a font is picked. That is my code: <script typ...
{ "pile_set_name": "StackExchange" }
Q: Use cases between interface implementations I know two ways to use an Interface. public interface MyInterface { void myMethod(); } Approach: Using implements: public class MyClass implements MyInterface { @Override myMethod(){} } I'm using an Interface this way most of the time, if the interface i...
{ "pile_set_name": "StackExchange" }
Q: why does new Integer(i).hashCode() return i? I want to know why new Integer(i).hashCode() or new Long(i).hashCode() returns i but when hashCode() is invoked by some other object say new Double(345).hashCode(), it returns a random number. Why? A: Because the int value of an Integer perfectly satisfies and fully c...
{ "pile_set_name": "StackExchange" }
Q: mySQL stored procedural with variable method, query and limit Hello I'm quite new to mySQL and I'm trying to write a stored procedure. I've searched on the internet to questions alike this one but I couldn't find any results for this. I'm trying to make search function for my webapplication where you can search in...
{ "pile_set_name": "StackExchange" }
Q: Condition when I do not have a file in my list My script: #!/bin/bash NOW=$(date +"%Y%m%d%t%H%M%S") # Pour chaque dossiers "log" trouvé. for folder in $(find . -name "*log*" -type d ) do : # Pour chaque dossier log contenant des fichiers ".log" vieux de +30jours. tar czf archive-log.$NOW.ta...
{ "pile_set_name": "StackExchange" }
Q: How to Disable JButton I want my JButton to be Disabled until all of the fields has inputs. package Grade; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class GradeGUI extends JFrame { private JLabel quizL,exerL,partL,partLL,examL,finalSL,totalIL,totalL,blankL,blankL2,blankL3,blan...
{ "pile_set_name": "StackExchange" }
Q: How can I make the SpeechSynthesizer speak through a particular device? I am new to the Speech Recognition, so please excuse me if the question is very basic level. My application captures what I speak through my microphone. I have written some responses using my c# code for every command I say and the SpeechSynt...
{ "pile_set_name": "StackExchange" }
Q: how to carry a graphics card arround if I dont have anti static bag I want to carry a graphics card to a friends place. The Card is old and I don't have the original packaging. I know that best way to carry it will be in an anti-static polybag and I tried hard to get one at local stores without any luck. I tried ...
{ "pile_set_name": "StackExchange" }
Q: How to determine the confidence of a neural network prediction? To illustrate my question, suppose that I have a training set where the input has a degree of noise but the output does not, for example; # Training data [1.02, 1.95, 2.01, 3.06] : [1.0] [2.03, 4.11, 5.92, 8.00] : [2.0] [10.01, 11.02, 11.96, 12.04] : ...
{ "pile_set_name": "StackExchange" }
Q: Heroku-like services for Scala? I love Heroku but I would prefer to develop in Scala rather than Ruby on Rails. Does anyone know of any services like Heroku that work with Scala? UPDATE: Heroku now officially supports Scala - see answers below for links A: As of October 3rd 2011, Heroku officially supports Scala...
{ "pile_set_name": "StackExchange" }
Q: Looking for large GML files containing vector polygon data I have few vector data files with 500 to 700 MB GML files. But I am looking for files larger than these preferably 1 GB, 2 GB. It would be helpful if somebody can provide some pointers regarding the place to find such files. Note: I need to test polygon ov...
{ "pile_set_name": "StackExchange" }
Q: Как сделать, чтобы String str = любому значению из массива? нужно чтобы String str = любому значению из массива, чтобы можно было написать public static void say() { Scanner in = new Scanner(System.in); Random random = new Random(); String str = in.nextLine(); switch(str) { case("Привет...
{ "pile_set_name": "StackExchange" }
Q: What is the proper way to fill a form with multiple data fields? I have been asked to create a vb.net WinForms app that automates the creation of this spreadsheet: Obviously, creating that spreadsheet manually is a back breaking task. I am very comfortable writing SQL to pull each individual field of data, howeve...
{ "pile_set_name": "StackExchange" }
Q: How to use lower_bound to insert value into sorted vector I have a vector of pointer to class A which I want to keep sorted by int key using STL. To do this I defined an operator < in class A bool operator< (const A &lhs, const A &rhs){ return (lhs.key < rhs.key); }; and in my insert function it looks like v...
{ "pile_set_name": "StackExchange" }
Q: Access: generating a .DOC file cannot be opened on an iDevice I am generating a .DOC file in an old access-VBA application using the typical GetObject("", Word.Document) strategy. I can open this .doc just fine in windows, however I cannot open it on an iPad\iPhone. The strange thing is, if I open this .doc in ...
{ "pile_set_name": "StackExchange" }
Q: Running the XCode 3.1 application in XCode 4.1? I am new developer on iPhone. My problem is that I have installed the XCode 4.1 after changed the settings in the edit project settings it shows XCode 3.1 is missing so if any one know about it give me solution to solve the problem. A: you should set the base SDK v...
{ "pile_set_name": "StackExchange" }
Q: How to access drives other than C: in Ubuntu on Windows In the Windows Subsystem for Linux, I can access the C: drive as /mnt/c. How can I access other drive letters, such as optical discs and network mounts? They do not show up under /mnt for me. A: How can I access other drive letters, such as optical discs an...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to change what Pepper says in Autonomous Life? I would like to change what Pepper the robot says when it is in "default mode", i.e. without having any application launched; thus enabling it to answer some questions the manufacturer didn't include, or to change its answer. I have already tried —to no...
{ "pile_set_name": "StackExchange" }
Q: New tag should require more privilege I am a relatively new user in Ask Ubuntu site, which is a subsite of the Stack Exchange network. After participating in the Questions and answers in the AU site for a while, I see that, the "tags" are very important in this site. (It is also very important on all SE sites). I ...
{ "pile_set_name": "StackExchange" }
Q: how to add opencv to a gui QT application? I created a new widget gui application in QT . and in order to using opencv , I added INCLUDEPATH and LIBS to my projects as following : QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = testqt4 TEMPLATE = app SOURCES += main.cpp\ wi...
{ "pile_set_name": "StackExchange" }
Q: Thomas-Wigner rotation of a stick directly from the Lorentz Transformation I'm trying to better understand Thomas-Wigner rotation. I understand how to calculate it for the case of a perpendicular pair of boosts. But I also want to see the rotation more directly. The effect is purely kinematic. It's all within the ...
{ "pile_set_name": "StackExchange" }
Q: Error converting data type nvarchar to bigint -when joining two differnet data types I am trying to join two tables. Table1.Column1 where column 1 is a BIGInt. On Table2.Column2 where column 2 is Nvarchar. Here is what I am running Select HspId, CMSid, Cast(CMSId as nvarchar) From Q2IMSSiteHistory2015old in...
{ "pile_set_name": "StackExchange" }
Q: Frequent blow outs in the same location I keep getting blow outs in my front tube and always in the same location: right next to the valve stem. The blow outs look like: On this same tube, there is wear on exactly the other side of the valve stem. I have checked the tire and the wheel and there doesn't appear to...
{ "pile_set_name": "StackExchange" }
Q: App service plan pricing details This is the details required to fill for App Service plan section What should we enter for the number of instances while entering the details of the App service plan. How is the number of instances determined. suppose a Web App Bot i depolyed in azure using a free account does not...
{ "pile_set_name": "StackExchange" }
Q: Calling method from a generic wildcard reference the following code is reduced to the essentials for the question: public class GenericTest { private interface CopyInterface<T extends CopyInterface<T>> { public void copyFrom(T source); } public void testMethod() { CopyInterfac...
{ "pile_set_name": "StackExchange" }
Q: WIndows 10 UWP - How can I determine if a Key press is a letter or number? Windows 10 UWP: Example: On UWP grid, a button1.content = 1 and a textbox. Using mouse to press button1.content, 1 is shown in the textbox.text. How to simulate numeric keypad (1) and 1 is shown in the textbox.text? A: You can use TextBlo...
{ "pile_set_name": "StackExchange" }