question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
43,935,460 | Python3 : " ValueError: invalid literal for int() with base 10: '2.0' "<p>My code is the following :</p>
<pre><code>def MonthID(month):
"""INPUT:
'month' is the amount of months after the beginning of the computed rotation.
OUTPUT:
Returns the month ID composed by the 3 first letters of the month
... | <p>If <code>month</code> is a <code>float</code>, <code>month//12</code> is also a <code>float</code>. This makes <code>month//12 + 1</code> a <code>float</code> as well; when you convert it into a string it becomes <code>'2.0'</code>. The interpreter is right to complain, because <code>'2.0'</code> is indeed an invali... | Python3 : " ValueError: invalid literal for int() with base 10: '2.0' " | python-3.x | -1 | 797 | 2 | 43,936,247 | 43,936,247 | 0 | true | 2017-05-12T10:26:21.303Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python3 : " ValueError: invalid literal for int() with base 10: '2.0' "<p>My code is the following :</p>
<pre><code>def MonthID(month):
"""INPUT:
'm... |
43,938,891 | Visual Studio 2017 Python Feature Addition Issue<p>I want to install python for Visual Studio 2017 and to do that i launched the visual studio installer using this link <a href="https://i.stack.imgur.com/4Lsiq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Lsiq.png" alt="enter image description her... | <p>To install all the tool required for developping with Python using Visual Studio 2017, you need to to launch your Visual Studio Installer corresponding to your edition of Visual Studio.
Then you can add the workload in order to install everything required to code with python.</p> | Visual Studio 2017 Python Feature Addition Issue | visual-studio|installation|visual-studio-2017 | -1 | 52 | 1 | 43,941,153 | 43,941,153 | 0 | true | 2017-05-12T13:26:26.310Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Visual Studio 2017 Python Feature Addition Issue<p>I want to install python for Visual Studio 2017 and to do that i launched the visual studio installer usin... |
43,942,486 | Storing and Graphing results of API queried via Python.<p>I am querying our systems for certain data, the data is returned as XML and i can count the value of a field. I need a way to be able to store it and then draw graphs from it. </p>
<p>So far my research has shown me to tools like Kibnana, Graphite etc. </p>
<p... | <p>Other options:</p>
<p><a href="https://grafana.com/" rel="nofollow noreferrer">Grafana</a> - Visualizer of data. It can read data at least from prometheus, graphite and elastics. Its primary goal is to visualize things in user defined dashboards and correlate things from possibly various sources. It's simpler then ... | Storing and Graphing results of API queried via Python. | python|graph|analytics|monitoring | -1 | 29 | 1 | 43,943,934 | 43,943,934 | 0 | true | 2017-05-12T16:29:44.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Storing and Graphing results of API queried via Python.<p>I am querying our systems for certain data, the data is returned as XML and i can count the value o... |
43,950,533 | How can I use pickle in python 3 to create a save function<p>My code is just a test so I can learn how pickle works. There's a list of words that the user can add an item to. I want to add the word to the list so that when the program is run again, the list will include the user's word. I don't understand how to do thi... | <p>Well, you'll need a way to differentiate between first and second run. I'd recommend checking if the save file exists. If it does, you can load the pickle. Otherwise, you'll go with the "defaults."</p>
<p>What you have right now, is loading the pickle right after saving. It makes no sense.</p>
<p>You can use <code... | How can I use pickle in python 3 to create a save function | python|python-3.x|pickle | -1 | 73 | 1 | 43,950,608 | 43,950,608 | 0 | true | 2017-05-13T07:40:28.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I use pickle in python 3 to create a save function<p>My code is just a test so I can learn how pickle works. There's a list of words that the user ca... |
43,951,201 | Select lines of a matrix with conditions<p>I have a matrix called a=</p>
<pre><code> lab col1 col2 col3
one 1 4 7
two 2 5 8
three 3 6 9
</code></pre>
<p>and i want to select only the lines that have the "lab"="one" and "two".</p>
<p>In fact my matrix is way bigger and i want to select a lot ... | <p>We need to use <code>%in%</code> when the number of elements to compare are greater than 1 as <code>==</code> does a recycling with the elements in 'selected.lines' i.e. the first elements in 'lab' are compared with the elements in 'selected.lines', then the third element in 'lab' is compared with the first element... | Select lines of a matrix with conditions | r|matrix | -1 | 62 | 1 | 43,951,221 | 43,951,221 | 0 | true | 2017-05-13T08:59:38.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Select lines of a matrix with conditions<p>I have a matrix called a=</p>
<pre><code> lab col1 col2 col3
one 1 4 7
two 2 5 8
three 3 6 ... |
43,951,832 | Trouble in installing jupyter using pip installer<p>I'm having a trouble installing jupyter using pip. pip is already up-to-date.</p>
<p>[Screenshot of errors] (<a href="https://i.imgur.com/YYR5xC0.png" rel="nofollow noreferrer">http://i.imgur.com/YYR5xC0.png</a>) </p> | <p>The problem is mentioned in the second from the last line in the screenshot. Pip does not have permission to write to that directory. You will need to run cmd as admin.</p>
<p>Here is a short article from <a href="https://technet.microsoft.com/en-us/library/cc947813(v=ws.10).aspx" rel="nofollow noreferrer">microsof... | Trouble in installing jupyter using pip installer | python|pip|installation|jupyter | -1 | 77 | 1 | 43,951,909 | 43,951,909 | 0 | true | 2017-05-13T10:06:27.820Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trouble in installing jupyter using pip installer<p>I'm having a trouble installing jupyter using pip. pip is already up-to-date.</p>
<p>[Screenshot of erro... |
43,953,421 | How can I create the pattern for the first four lags for the remaining groups?<p><a href="https://i.stack.imgur.com/am9u5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/am9u5.png" alt="Lag"></a></p>
<p>My current code </p>
<pre><code>GuestFirst_B$Lag_Loyal2 <- Lag(Loyal, shift = 1)
GuestFirst_B... | <p>One option would be to use <code>shift</code> from <code>data.table</code></p>
<pre><code>library(data.table)
setDT(df1)[, paste0("Lag_Loyal", 1:4) := shift(Loyal, 1:4), by = grp]
</code></pre> | How can I create the pattern for the first four lags for the remaining groups? | r|lag | -1 | 25 | 1 | 43,953,472 | 43,953,472 | 0 | true | 2017-05-13T12:56:56.090Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I create the pattern for the first four lags for the remaining groups?<p><a href="https://i.stack.imgur.com/am9u5.png" rel="nofollow noreferrer"><img... |
43,950,422 | Rails Spec Controller Test failing with custom route<p>Rails 5.1
RSpec 3.6</p>
<p>I have a Controller:</p>
<pre><code>class SessionController < ApplicationController
def new
end
end
</code></pre>
<p>A custom route:</p>
<pre><code>get 'login' => 'sessions#new'
</code></pre>
<p>RSpec Test:</p>
<pre><code>... | <p>When you are writing tests and you use the methods get, post, delete, etc., those methods assume that any parameter you pass them is the name of an action within the controller being tested. So, this works:</p>
<pre><code>get :new
</code></pre>
<p>because it generates url_for(:controller => :sessions, :action => :... | Rails Spec Controller Test failing with custom route | ruby-on-rails|rspec | -1 | 797 | 2 | 43,954,285 | 43,954,285 | 0 | true | 2017-05-13T07:26:52.630Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Rails Spec Controller Test failing with custom route<p>Rails 5.1
RSpec 3.6</p>
<p>I have a Controller:</p>
<pre><code>class SessionController < Applicat... |
43,953,701 | Insert a Javascript value into struts2 param<p>My question I'm sure has a very simple answer but I can't find it. I save cookies with Javascript in one page and in other page I get the value of the cookie and save it in a Javascript variable.</p>
<pre><code><script>
var ucMenu = getCookie('userCookieSL');
<... | <p>Finally I solved it with other form.</p>
<pre><code><s:form id="frmFavoritos" action="favoritos" theme="simple">
<input type="hidden" name="userCookieSL" id="userCookieSL"/>
<script>
var ucMenu = getCookie('userCookieSL');
document.getElementById('userCookieSL').value = ucMenu;
... | Insert a Javascript value into struts2 param | javascript|struts2 | -1 | 40 | 1 | 43,954,727 | 43,954,727 | 0 | true | 2017-05-13T13:27:58.313Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Insert a Javascript value into struts2 param<p>My question I'm sure has a very simple answer but I can't find it. I save cookies with Javascript in one page ... |
43,958,764 | new $this->table() vs. new tablename(); dynamic class generation<p>I have the following classes:</p>
<pre><code>namespace database;
class database {
protected $table = '';
function __construct()
{ // Stuff here }
public function all() {
// Load from database
// Return array with resu... | <p>I am getting an impression, that you are attempting to create something like <a href="https://www.martinfowler.com/eaaCatalog/activeRecord.html" rel="nofollow noreferrer">active record</a> there. I would advise against that. </p>
<p>As for why your class is not working, you probably should do something like:</p>
<... | new $this->table() vs. new tablename(); dynamic class generation | php | -1 | 31 | 1 | 43,958,943 | 43,958,943 | 0 | true | 2017-05-13T22:59:27.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
new $this->table() vs. new tablename(); dynamic class generation<p>I have the following classes:</p>
<pre><code>namespace database;
class database {
pr... |
43,954,782 | Move MainWindow from an other Page/Class<p>In my MainWindow.xaml I have a rectangle. Whenever the user holds down the left mousebutton above the rectangle, he can move the window. This is needed since I am using the property WindowStyle="None". </p>
<p>Now to my question. How can move the window from an other page/cla... | <p>You are attempting to instantiate another MainWindow instance. Use the existing instance instead.</p>
<pre><code>private void Window_Move_Login(object sender, MouseButtonEventArgs e)
{
Application.Current.MainWindow.DragMove();
}
</code></pre> | Move MainWindow from an other Page/Class | c#|wpf|xaml | -1 | 52 | 1 | 43,960,992 | 43,960,992 | 0 | true | 2017-05-13T15:22:59.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Move MainWindow from an other Page/Class<p>In my MainWindow.xaml I have a rectangle. Whenever the user holds down the left mousebutton above the rectangle, h... |
43,961,274 | String gets transferred by libusb, but the printer wont print<p>I am using the tutorial at this <a href="http://www.dreamincode.net/forums/topic/148707-introduction-to-using-libusb-10/%22Link%22" rel="nofollow noreferrer">link</a> to send a string to get it printed. However, even though the printer says "receving data"... | <p>Sending a string to a modern raster image or <em>page</em> printer is unlikely to have the desired effect (i.e. it won't print the string) - the printer will try to interpret it as command or image data. The control of any specific printer is specific to that model of printer, and on a modern printer is rather comp... | String gets transferred by libusb, but the printer wont print | c++|c|printing|libusb | -1 | 311 | 1 | 43,961,615 | 43,961,615 | 0 | true | 2017-05-14T07:05:46.490Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
String gets transferred by libusb, but the printer wont print<p>I am using the tutorial at this <a href="http://www.dreamincode.net/forums/topic/148707-intro... |
43,963,941 | Application that change text's size of a TextView<p>I'm a novice programmer and I'm working on one of the my first projects on Android Studio for a school work.</p>
<p>I have to create an application that consists on a TextView where the user can write some text and on a button that permits to open a sort of menu wher... | <p>You could use those</p>
<p>This one is for change font in SP size:</p>
<pre><code>TextViewXXX.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
</code></pre>
<p>This one is for make text <strong>BOLD</strong></p>
<pre><code>TextViewXXX.setTypeface(null, Typeface.BOLD);
</code></pre> | Application that change text's size of a TextView | android|textview|size | -1 | 45 | 2 | 43,964,024 | 43,964,024 | 0 | true | 2017-05-14T12:34:00.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Application that change text's size of a TextView<p>I'm a novice programmer and I'm working on one of the my first projects on Android Studio for a school wo... |
43,984,499 | Laravel 5.4 eloquent one to many relationship data fetching<p>I have two tables. 1.products 2.product_images. </p>
<p>Field of products Table: id,product_name,created_at,updated_at</p>
<p>Field of product_images Table: id,product_id,product_image,created_at,updated_at</p>
<p>products table has OnetoMany relationship... | <p><code>productImage</code> doesn't have a <code>product_name</code> property, but <code>product</code> does. When you show the results of <code>App\Product::find(1)->productImage;</code> you can't expect it to show a <code>product_name</code> property.</p>
<p>If you wanted to see the <code>product</code> and it's... | Laravel 5.4 eloquent one to many relationship data fetching | php|laravel-5 | -1 | 328 | 1 | 43,984,924 | 43,984,924 | 0 | true | 2017-05-15T16:25:54.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Laravel 5.4 eloquent one to many relationship data fetching<p>I have two tables. 1.products 2.product_images. </p>
<p>Field of products Table: id,product_na... |
43,964,920 | How to dynamically load css file for each action in a controller?<p>I have a controller named 'Student' with two actions called 'index' and 'add'.
I want to load different css files for each of the action. So far i have tried is, i have imported Html Helper, created object of it and called its css method. When i run i... | <p>you can also create a global layout file in View > Element like default_assets.ctp</p>
<p>after that add this file in your default layout file like,default_layout.ctp in View > Layout folder</p>
<p>and after access this in your controller like</p>
<pre><code>public function index(){
$this->layout = "default... | How to dynamically load css file for each action in a controller? | php|cakephp|cakephp-2.6 | -1 | 560 | 3 | 43,987,983 | 43,987,983 | 0 | true | 2017-05-14T14:15:39.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to dynamically load css file for each action in a controller?<p>I have a controller named 'Student' with two actions called 'index' and 'add'.
I want to ... |
43,992,252 | java access subclass in superclass<p>I have my code somewhat like this</p>
<pre><code>class A
{
int a;
A()
{
//Here I want to print B or C
System.out.println("Enter the value of a");
a= new Scanner(System.in).nextInt();
}
}
class B extends A
{
int b;
B()
{
//Here i can't... | <p>You have to use java.lang.Class object to find class name at runtime.</p>
<p>Modify your class A as:</p>
<pre><code>class A {
int a;
A() {
// Here I want to print B or C
System.out.println(this.getClass().getSimpleName());
System.out.println("Enter the value of a");
a = new... | java access subclass in superclass | java|inheritance|constructor | -1 | 2,099 | 4 | 43,992,311 | 43,992,311 | 0 | true | 2017-05-16T03:59:12.587Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
java access subclass in superclass<p>I have my code somewhat like this</p>
<pre><code>class A
{
int a;
A()
{
//Here I want to print B or C
... |
43,990,368 | Updating since jvm time in background<p><code>long jvmUpTime = ManagementFactory.getRuntimeMXBean().getUptime();
</code></p>
<p>how to update this in background?
for example, my application stores in <code>jvmUpTime</code> only one value.</p>
<p>there is a solution?</p> | <p>If you want the value to change you can use a method.</p>
<pre><code>long jvmUpTime() { return ManagementFactory.getRuntimeMXBean().getUptime(); }
</code></pre>
<p>This way the value is checked each time you call it instead of storing a copy.</p> | Updating since jvm time in background | java|jvm | -1 | 24 | 1 | 43,994,027 | 43,994,027 | 0 | true | 2017-05-15T23:40:11.163Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Updating since jvm time in background<p><code>long jvmUpTime = ManagementFactory.getRuntimeMXBean().getUptime();
</code></p>
<p>how to update this in backgr... |
43,994,248 | How to call a method with completion handle in swift 3+<p>I am very new to swift. I have a method like this.</p>
<pre><code>public func prepareUrl (appendString:String,bindedParams:String,isAuthorized:Bool,isGet:Bool,jsonBody:[String:String],completion:@escaping(String)->Void)
{
let baseUrl=Bundle.main.value(f... | <p>Try this :</p>
<p><strong>NOTE</strong> :This answer is for example . You need to change as per your needs</p>
<pre><code>func getResponse(url: String, method : HTTPMethod, parameter : [String : AnyObject], Alert : Bool, callback: @escaping responseHandler) -> Void{
Alamofire.request(API_PREFIX + url... | How to call a method with completion handle in swift 3+ | ios|swift3 | -1 | 265 | 2 | 43,994,515 | 43,994,515 | 0 | true | 2017-05-16T06:46:19.837Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to call a method with completion handle in swift 3+<p>I am very new to swift. I have a method like this.</p>
<pre><code>public func prepareUrl (appendSt... |
43,994,628 | can somebody tell me the best practices for sending push notifications to millions of devices?<p>I am using <code>nodejs+mongodb</code> as backend. I wish to send push notifications to Android and IOS devices.On each user actions the notifications are send to his/her followers. The app has pretty good number of users a... | <p>Considering that you are using GCM/FCM it is advised that you could make calls to about 500 tokens per request. </p>
<p>So you can initialise a <strong>thread for each 500</strong> and that should be around 6000 jobs. You can also queue it in an manner that each executes after a constant time interval.</p>
<p><str... | can somebody tell me the best practices for sending push notifications to millions of devices? | node.js|mongodb|redis | -1 | 305 | 1 | 44,007,594 | 44,007,594 | 0 | true | 2017-05-16T07:07:36.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
can somebody tell me the best practices for sending push notifications to millions of devices?<p>I am using <code>nodejs+mongodb</code> as backend. I wish to... |
44,013,255 | PHP namespace and frameworks<p>I am trying to user composer to add some frameworks to my code but I am getting this error:</p>
<pre><code>PHP Fatal error: Class 'App\Time\DOMPDF'
</code></pre>
<p>The App\Time is my namespace:</p>
<pre><code><?php namespace App\Time;
</code></pre>
<p>the code I am trying to use ... | <p>When you declare a namespace for a file any unqualified object is assumed to be in that namespace. To use something <em>outside</em> of the declared namespace you need to either use its fully-qualified name:</p>
<pre><code>namespace your\app;
$dompdf = new \DOMPDF();
</code></pre>
<p>Or import the object into the ... | PHP namespace and frameworks | php|namespaces | -1 | 69 | 1 | 44,013,444 | 44,013,444 | 0 | true | 2017-05-16T23:36:30.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP namespace and frameworks<p>I am trying to user composer to add some frameworks to my code but I am getting this error:</p>
<pre><code>PHP Fatal error: ... |
44,004,716 | how can I achieve the the effect that growing a set of curves and when any curve occurs others' trail, stop it's growth<p>i want to achieve like this:
<a href="https://i.stack.imgur.com/OYnRR.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>here is my code:</p>
<pre class="lang-java prettyprin... | <p>Stack Overflow isn't really designed for general "how do I do this" type questions. It's for more specific "I tried X, expected Y, but got Z instead" type questions.</p>
<p>But generally, it sounds like what you'd want to do is check whether a new path segment intersects with any existing path segments. If it does,... | how can I achieve the the effect that growing a set of curves and when any curve occurs others' trail, stop it's growth | processing | -1 | 34 | 1 | 44,013,731 | 44,013,731 | 0 | true | 2017-05-16T14:46:51.260Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can I achieve the the effect that growing a set of curves and when any curve occurs others' trail, stop it's growth<p>i want to achieve like this:
<a hre... |
43,994,304 | Script takes parameters from the previous run<p>I am using docker container that runs Alpine Linux.It runs some bash script async</p>
<pre><code>bash myscript.sh $param1 $param2 &>/dev/null &disown
</code></pre>
<p>The first time it runs it seems it does nothing it should write to some database but when I ... | <p>The solution was to add a delay</p>
<pre><code>bash myscript.sh $param1 $param2 &>/dev/null &disown
sleep 1
</code></pre>
<p>Probably because it async the script finishes too fast
But I would like to hear in depth explanation</p> | Script takes parameters from the previous run | linux|bash|asynchronous|docker|alpine-linux | -1 | 58 | 1 | 44,018,922 | 44,018,922 | 0 | true | 2017-05-16T06:49:45.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Script takes parameters from the previous run<p>I am using docker container that runs Alpine Linux.It runs some bash script async</p>
<pre><code>bash myscri... |
44,042,512 | The 3 vertical lines unicode fail to show on Firefox only<p>This HTML code shows the 3 horizontal lines "hamburger icon" fine on all the browsers but Firefox.<br>
<code><span id="mainMenuButton">&#9776;</span></code> </p>
<p>here is the image taken from Chrome on MacBook.<br>
<a href="https://i.stack.... | <p>You can use an image or a font instead</p>
<p>font awesome for example:</p>
<p><a href="http://fontawesome.io/icon/bars/" rel="nofollow noreferrer">http://fontawesome.io/icon/bars/</a></p> | The 3 vertical lines unicode fail to show on Firefox only | html | -1 | 47 | 1 | 44,042,562 | 44,042,562 | 0 | true | 2017-05-18T08:30:26.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
The 3 vertical lines unicode fail to show on Firefox only<p>This HTML code shows the 3 horizontal lines "hamburger icon" fine on all the browsers but Firefox... |
44,053,189 | unauthorized using passport viA WEBSERVICE<p>I am using Passport.js but when i go inside else if it gives me error unauthorized. We are calling a webservice here. i want to send response oto webservice when i enter into <strong>else if(exists)</strong>. Any idea?</p>
<pre><code>passport.use('local-signup-nti', new Lo... | <p>The <code>done</code> function has to be always called, otherwise, passport won't work propertly.</p>
<p>So, you have to pass the result to the <code>done</code> function and pass a callback the <code>passport.authenticate</code> function to process the result in the way you want.</p>
<p>See the example:</p>
<pre... | unauthorized using passport viA WEBSERVICE | node.js|passport.js|passport-local | -1 | 30 | 1 | 44,053,775 | 44,053,775 | 0 | true | 2017-05-18T16:25:19.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
unauthorized using passport viA WEBSERVICE<p>I am using Passport.js but when i go inside else if it gives me error unauthorized. We are calling a webservice... |
44,068,944 | How do I edit a complex config file with tabs and curly brackets using Python?<p>I have a config file that looks like this:</p>
<pre><code># EAP types NOT listed here may be supported via the "eap2" module.
# See experimental.conf for documentation.
#
eap {
# Invoke the default supported EAP... | <p>Something like this if you don't have a parser for the format:</p>
<pre><code>output_lines = []
is_eap = False
for line in file:
if line.strip().startswith('eap {'):
is_eap = True
elif line.strip().split()[1] == '{':
is_eap = False
if is_eap:
output_lines.append(process_line(line... | How do I edit a complex config file with tabs and curly brackets using Python? | python|regex|config | -1 | 65 | 1 | 44,069,238 | 44,069,238 | 0 | true | 2017-05-19T11:31:36.583Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I edit a complex config file with tabs and curly brackets using Python?<p>I have a config file that looks like this:</p>
<pre><code># EAP types NOT ... |
44,067,933 | Escape quote character in ant file<p>I'm trying to retrieve a String defined in the class Core.java as follows:</p>
<pre><code>public static final String PLATFORM_VERSION = "3.0.1_170518";
</code></pre>
<p>So I have created a test ant file (because I want to store it as an ant property to be used in compilation proce... | <p>Taking a workaround replacing '"' to ':' in the property with Javascript works fine, but is a little nasty solution.</p>
<pre><code> <target name="get-core-version">
<exec executable="bash"
outputproperty="coreVersionTemp"
failonerror="true">
<arg value="-c"/>
... | Escape quote character in ant file | bash|ant|cut | -1 | 1,351 | 1 | 44,069,345 | 44,069,345 | 0 | true | 2017-05-19T10:40:02.043Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Escape quote character in ant file<p>I'm trying to retrieve a String defined in the class Core.java as follows:</p>
<pre><code>public static final String PL... |
44,072,399 | CouchDB document field name with space, how to call it in design document?<p>I have a database X, inside i have plenty of similar documents with a field called "order number" which come with sequential numbers. My question is, i am trying to make a view to show all the order numbers so i make something like</p>
<p>fun... | <p>Managed to find the answer</p>
<p>In JSON if you need to access a field where the keys has a space you need to do it through [].</p>
<p>e.g.
doc['order number'] </p>
<p>i got the tip from this answer
<a href="https://stackoverflow.com/questions/10311361/accessing-json-object-keys-having-spaces">Accessing JSON ob... | CouchDB document field name with space, how to call it in design document? | javascript|couchdb | -1 | 567 | 1 | 44,073,136 | 44,073,136 | 0 | true | 2017-05-19T14:17:54.367Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CouchDB document field name with space, how to call it in design document?<p>I have a database X, inside i have plenty of similar documents with a field call... |
44,088,034 | Parsing a function like string<p>I need to parse a string like this in C#:</p>
<p><em>GET_VALUE("USER_NAME")</em></p>
<p>... and return something like:</p>
<p><em>USER 101</em></p>
<p>And USER_NAME is one of several properties supported in the system.</p>
<p>I have already done some string parsing to do this.</p>
... | <p>If you're looking for <code>eval()</code> -like functionality, C#'s designers avoided this on purpose. It was a deliberate design decisions, because they had many use cases in mind for the language where this would be a huge gaping security problem. That doesn't mean it's impossible; there are several ways to accomp... | Parsing a function like string | c#|string | -1 | 64 | 2 | 44,088,259 | 44,088,259 | 0 | true | 2017-05-20T16:03:12.107Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Parsing a function like string<p>I need to parse a string like this in C#:</p>
<p><em>GET_VALUE("USER_NAME")</em></p>
<p>... and return something like:</p>... |
44,099,708 | Building a multi lingual supported web application (with e.g. English, German etc.)<p>I want to build a web application with Angular 2/ Angular 4 and I want to support various lingual languages like English, French and German... I do want to store them locally and not on a server or so. In Android there are e.g. <em>st... | <p>I think this is what you are looking for:
<a href="https://angular.io/docs/ts/latest/cookbook/i18n.html#!#angular-i18n" rel="nofollow noreferrer">INTERNATIONALIZATION (I18N)</a></p> | Building a multi lingual supported web application (with e.g. English, German etc.) | angular|web | -1 | 23 | 1 | 44,099,918 | 44,099,918 | 0 | true | 2017-05-21T17:20:37.240Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Building a multi lingual supported web application (with e.g. English, German etc.)<p>I want to build a web application with Angular 2/ Angular 4 and I want ... |
44,102,600 | If statement causes: Uncaught SyntaxError: Unexpected token <<p>I am trying to randomly select an option using <code>Math.random()</code>
This is the code I have so far.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-c... | <p>This <code>crateId > 49 && < 71</code> is not valid syntax.</p>
<p>There needs to be either a variable name or a literal between any two binary operators, only unary operators may be adjacent.</p>
<p>It needs to be: <code>crateId > 49 && crateId < 71</code>.</p> | If statement causes: Uncaught SyntaxError: Unexpected token < | javascript|syntax|operators | -1 | 336 | 1 | 44,102,607 | 44,102,607 | 0 | true | 2017-05-21T22:58:22.757Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
If statement causes: Uncaught SyntaxError: Unexpected token <<p>I am trying to randomly select an option using <code>Math.random()</code>
This is the code I ... |
44,101,511 | search if function user form<p>The code below is a if statement but with search combined. For example if the value of cell $BA$1 is found (partly or entirely, hence 'search' instead of equal) in column D, then enter the content of the cell $AZ$1 in col J. Otherwise enter the value of cell $AY$1. My VBA below returns co... | <p><code>Search</code> does not return <code>zero</code> or <code>false</code> in case of no match, it returns an error. So the appropriate test for a match should be either</p>
<ul>
<li><p>check for error using <code>IF(ISERROR(...),value-if-error,value-if-ok)</code> but then you'll need to reverse the order of your ... | search if function user form | excel|vb.net | -1 | 45 | 1 | 44,102,904 | 44,102,904 | 0 | true | 2017-05-21T20:32:47.680Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
search if function user form<p>The code below is a if statement but with search combined. For example if the value of cell $BA$1 is found (partly or entirely... |
44,103,045 | Align DIV Html/CSS/Bootstrap<p>Two fold question. I currently have the top but I want it to look like the bottom?</p>
<p>Also, is there a way to Onclick the dashboard box so an input box shows and I can enter a URL and it loads within the box?</p>
<pre><code> <div id="page-content-wrapper">
<div ... | <p>well, for your first Problem the simplest sulution is to add some css:</p>
<pre><code>.col-sm-9 {
float: none;
margin: 0 auto;
}
</code></pre>
<p>For your second Problem you wanna search for "iframe" and do some work in javascript i guess.</p> | Align DIV Html/CSS/Bootstrap | html|css|twitter-bootstrap-3 | -1 | 21 | 1 | 44,103,162 | 44,103,162 | 0 | true | 2017-05-22T00:19:54.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Align DIV Html/CSS/Bootstrap<p>Two fold question. I currently have the top but I want it to look like the bottom?</p>
<p>Also, is there a way to Onclick the... |
44,104,597 | teamcity svn check out - disk space error<p>Teamcity build failing with the following error:</p>
<blockquote>
<p>[Updating sources] Failed to build patch for build ... due to error:
org.tmatesoft.svn.core.SVNException: svn: E204900: There is not enough
space on the disk</p>
</blockquote>
<p>I have checked both ... | <p>"VCS Checkout mode" needs to be set to "Automatically on Agent".
also i have added the following checkout rules to VCS root:
'/Master/'=>.</p> | teamcity svn check out - disk space error | svn|build|teamcity|collabnet|teamcity-9.1 | -1 | 272 | 1 | 44,106,276 | 44,106,276 | 0 | true | 2017-05-22T04:18:04.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
teamcity svn check out - disk space error<p>Teamcity build failing with the following error:</p>
<blockquote>
<p>[Updating sources] Failed to build patch ... |
44,108,151 | Laravel. redirects between subdomains<p>I would like to redirect all the URL with or without www to a specific subdomain.</p>
<p>Example:
<code>example.com</code> and <code>www.example.com</code> to <code>cn.example.com</code></p>
<p>I saw some people say by editing the .htaccess file in public will do, this is what... | <p>Use this rule below <code>rewriteengine</code> on,</p>
<pre><code>RewriteCond %{HTTP_HOST} ^(www\.)?\.example.com
RewriteRule ^ cn.example.com [R=301]
</code></pre> | Laravel. redirects between subdomains | php|.htaccess|redirect|laravel-5 | -1 | 59 | 2 | 44,108,214 | 44,108,214 | 0 | true | 2017-05-22T08:31:40.437Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Laravel. redirects between subdomains<p>I would like to redirect all the URL with or without www to a specific subdomain.</p>
<p>Example:
<code>example.com... |
44,081,212 | InDesign cc 2015 - Right to Left<p>Im totally new to InDesign and struggling a lot with it whenever I try to use Arabic...
So I figured how to make arabic work but still I can't find a way how to change the writing direction from <code>Left to Right</code> to <code>Right to Left</code>
If I wanna write arabic with numb... | <p>First, you need to install arabic version. See <a href="https://helpx.adobe.com/indesign/kb/access-install-hebrew-arabic-indesign-illustrator-CC.html" rel="nofollow noreferrer">here</a> how.<br>
Then, use the Paragraph panel to select Right to Left feature:<br>
<a href="https://i.stack.imgur.com/Lz7bB.png" rel="nofo... | InDesign cc 2015 - Right to Left | adobe-indesign | -1 | 3,399 | 1 | 44,112,921 | 44,112,921 | 0 | true | 2017-05-20T02:04:06.727Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
InDesign cc 2015 - Right to Left<p>Im totally new to InDesign and struggling a lot with it whenever I try to use Arabic...
So I figured how to make arabic wo... |
44,010,438 | Azure Automation Index Maintenance Failure<p>I am using Azure Automation for index maintenance. Azure Automation fails with this error:</p>
<p>"A severe error occurred on the current command. The results, if any, should be discarded."</p>
<p>It fails on Re-Organizing an index.
Does anybody know how I can fix this i... | <p>I managed to resolve the issue by adding re-run logic around the step that was failing; I highly recommend adding re-run logic anywhere that you think it might timeout and write your code such a way that it is re-runnable. </p> | Azure Automation Index Maintenance Failure | azure|indexing|automation | -1 | 31 | 1 | 44,115,190 | 44,115,190 | 0 | true | 2017-05-16T19:52:57.227Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Azure Automation Index Maintenance Failure<p>I am using Azure Automation for index maintenance. Azure Automation fails with this error:</p>
<p>"A severe err... |
44,124,883 | How to uninstall Visual Studio 2015<p>Some time ago i've installed Visual Studio 2015, then I continue to install 2017.
How can I remove Visual Studio 2015 without affecting to Visual Studio 2017?</p> | <p>I haven't used Vs from a long time but as far as i remember, each version of VS has is own installer, so you can go to the control panel -> Application and look for the uninstaller of Visual Studio 2015, that should not affect VS2017</p> | How to uninstall Visual Studio 2015 | visual-studio | -1 | 42 | 1 | 44,125,166 | 44,125,166 | 0 | true | 2017-05-23T02:36:51.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to uninstall Visual Studio 2015<p>Some time ago i've installed Visual Studio 2015, then I continue to install 2017.
How can I remove Visual Studio 2015 w... |
44,131,894 | How to display the details of a person in a single column separated by any characters<pre><code> Empname Deptname LeaveType TotalLeave
---------------------------------------------------
Andrew CSE SickLeave 3
George IT CasualLeave 1
Andrew CSE ... | <pre><code> ;With cte(Empname,Deptname,LeaveType,TotalLeave)
AS
(
SELECT 'Andrew','CSE','SickLeave' , 3 UNION ALL
SELECT 'George','IT' ,'CasualLeave' , 1 UNION ALL
SELECT 'Andrew','CSE','CasualLeave' , 2 UNION ALL
SELECT 'George','IT' ,'SickLeave' , 2
)
SELECT Empname
,Deptname
,Leave... | How to display the details of a person in a single column separated by any characters | sql|sql-server|sql-server-2008 | -1 | 45 | 2 | 44,132,513 | 44,132,513 | 0 | true | 2017-05-23T10:12:27.500Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to display the details of a person in a single column separated by any characters<pre><code> Empname Deptname LeaveType TotalLeave
-----------... |
44,147,499 | how can i get a value of sqlite and then update it<p>Using Python and Sqlite3
How can I fetch a value from sqlite, store it in a variable then add a string to it and update it ?</p>
<pre><code>import sqlite3
connection = sqlite3.connect("intel.db")
database = connection.cursor()
u = 'Zero'
all ... | <p>Yes you can, but you need to know the correct syntax, below I created a new db, and insert two records data, and then get the value from db and update it:</p>
<pre><code>import sqlite3
conn = sqlite3.connect('intel.db')
database = conn.cursor()
database.execute('''CREATE TABLE logs
(date text, logtext ... | how can i get a value of sqlite and then update it | python|sqlite | -1 | 54 | 1 | 44,147,821 | 44,147,821 | 0 | true | 2017-05-24T01:27:36.963Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can i get a value of sqlite and then update it<p>Using Python and Sqlite3
How can I fetch a value from sqlite, store it in a variable then add a string t... |
44,158,244 | Antd-mobile- elements too large<p>I recently setup a <code>create-react-app</code> to work with <code>antd-mobile</code>. I had to eject CRA, and change webpack. I got it working with webpack, using the <code>babel-import-plugin</code>. I used <code>["import", { "libraryName": "antd-mobile", "style": "css" }]</code></p... | <p>It is relaved to the viewport.</p>
<ol>
<li><p>Remove <code><meta viewport</code></p></li>
<li><p>Add this script inside the <code><head></head></code> tags:</p>
<p><code>!function(e){function t(a){if(i[a])return i[a].exports;var n=i[a]={exports:{},id:a,loaded:!1};return e[a].call(n.exports,n,n.expo... | Antd-mobile- elements too large | antd | -1 | 327 | 1 | 44,159,287 | 44,159,287 | 0 | true | 2017-05-24T12:18:29.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Antd-mobile- elements too large<p>I recently setup a <code>create-react-app</code> to work with <code>antd-mobile</code>. I had to eject CRA, and change webp... |
44,170,487 | Is there a vim.Folder for PowerShell?<p>Through my understanding, the vim.Folder <em>(type?)</em> is available for use in Python, but I need it for PowerShell. I am converting script, and there is an 'if' condition on whether a folder passed in the parameter is a vim.Folder .</p>
<pre><code> -----PowerShell Script-... | <p>You should really post the full python script here you are trying to convert because noone knows what vim.folder is you are trying to compare to and while you are at it here is some basic powershell understanding for you.</p>
<p>In your script, you can check what type is an object by doing $folder | get-member or $... | Is there a vim.Folder for PowerShell? | python|powershell|if-statement|vim|type-conversion | -1 | 75 | 1 | 44,171,902 | 44,171,902 | 0 | true | 2017-05-25T00:32:01.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a vim.Folder for PowerShell?<p>Through my understanding, the vim.Folder <em>(type?)</em> is available for use in Python, but I need it for PowerShel... |
44,182,647 | ChartJS - why is there a visual difference when displaying the same dataset alone or with more datasets?<p><a href="https://jsfiddle.net/yydh6wse/" rel="nofollow noreferrer">Demo</a></p>
<p>i'm using ChartJS and i've encountered a bizarre issue i can't figure out. it'd be awesome if someone could point out what's wron... | <p>I'll recommend you to set a minimum and maximum display value to the Y Axis like:</p>
<pre><code> yAxes: [{
gridLines: {
display: true,
drawTicks: false,
},
ticks: {
min:0,
max: 25
}
}]
</code></pre>
<p>If its not done, it auto-scales to the minimum and maximum value of the datasets, and it... | ChartJS - why is there a visual difference when displaying the same dataset alone or with more datasets? | javascript|chart.js | -1 | 43 | 1 | 44,183,148 | 44,183,148 | 0 | true | 2017-05-25T14:08:50.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ChartJS - why is there a visual difference when displaying the same dataset alone or with more datasets?<p><a href="https://jsfiddle.net/yydh6wse/" rel="nofo... |
44,186,315 | Gitflow Workflow - What Git command can prevent feature branches to be pushed<p>I use Git 2.13, SourceTree 2, and Bitbucket Cloud on a Windows machine.</p>
<p>I'm studying Gitflow workflow, <a href="http://nvie.com/posts/a-successful-git-branching-model/" rel="nofollow noreferrer">written by nvie</a>, and this part is... | <p>There is no command to prevent that, you just have not to use <code>git push feature-branch origin</code>.
Instead you merge your features into the development branch and push that to the origin.</p>
<p>If you use git flow plugin, this is easy to achieve:</p>
<pre><code># create a feature branch
git flow feature ... | Gitflow Workflow - What Git command can prevent feature branches to be pushed | git|branch | -1 | 55 | 1 | 44,186,538 | 44,186,538 | 0 | true | 2017-05-25T17:22:27.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Gitflow Workflow - What Git command can prevent feature branches to be pushed<p>I use Git 2.13, SourceTree 2, and Bitbucket Cloud on a Windows machine.</p>
... |
44,162,982 | EOFException at GsonResponseBodyConverter with errorBody()<p>I'm following <a href="https://github.com/square/retrofit/blob/master/samples/src/main/java/com/example/retrofit/DeserializeErrorBody.java" rel="nofollow noreferrer">DeserializeErrorBody.java</a> as a guide </p>
<p>When I use <code>Converter<ResponseBody,... | <p>I was using <code>Observable<ResponseBody></code> for the Retrofit interface, like I would use <code>Call<ResponseBody</code>> to check only <code>response.isSuccessful().</code>
Turns out I need to use <code>Observable<Response<Void>></code> to skip the deserialization of an empty body which ca... | EOFException at GsonResponseBodyConverter with errorBody() | error-handling|httpresponse|retrofit2|eofexception|android|gson | -1 | 316 | 1 | 44,189,753 | 44,189,753 | 0 | true | 2017-05-24T15:41:37.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
EOFException at GsonResponseBodyConverter with errorBody()<p>I'm following <a href="https://github.com/square/retrofit/blob/master/samples/src/main/java/com/... |
44,202,185 | Average of values from an array with php<p>How from this array I can make an average ?</p>
<pre><code>$array=Array
(
"Element_1" => 255,
"Element_2" => 95,
"Element_3" => 100
);
</code></pre>
<p>I should get <code>150</code>.</p> | <p>Use below code :</p>
<ul>
<li><a href="http://php.net/manual/en/function.array-sum.php" rel="nofollow noreferrer">array_sum()</a> : Returns the sum of values in an array</li>
<li><a href="http://php.net/manual/en/function.count.php" rel="nofollow noreferrer">count()</a> : Count all elements in an array, or somethin... | Average of values from an array with php | php | -1 | 575 | 3 | 44,202,230 | 44,202,230 | 0 | true | 2017-05-26T12:55:02.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Average of values from an array with php<p>How from this array I can make an average ?</p>
<pre><code>$array=Array
(
"Element_1" => 255,
"Element... |
44,210,810 | How to print something in python which matches object in the list<p>I'm very new to programming and my first language is Python. I'm printing a list of IP addresses:</p>
<pre><code>import socket
dandanakka = ["madrasdeals.com","google.com","yahoo.com"]
for i in dandanakka:
ip = socket.gethostbyname(i)
print... | <p>Quite simple: you already have that in variable <code>i</code>:</p>
<pre><code>import socket
dandanakka = ["madrasdeals.com","google.com","yahoo.com"]
for i in dandanakka:
ip = socket.gethostbyname(i)
print i, " - ", ip
</code></pre> | How to print something in python which matches object in the list | python|sockets | -1 | 33 | 3 | 44,210,852 | 44,210,852 | 0 | true | 2017-05-26T22:16:09.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to print something in python which matches object in the list<p>I'm very new to programming and my first language is Python. I'm printing a list of IP a... |
44,212,323 | Editext push down all content of layout<p>Hi I'm trying to create <code>EditText</code> <strong>multiline</strong> but when I back to line all content of layout go down:</p>
<p><img src="https://i.stack.imgur.com/9OjcO.png" alt="Scrennshot"></p>
<p>manifest.xml</p>
<pre><code><activity
android:configChanges="... | <p>You can set MAX height for the edit text so that it won't expand dynamically</p>
<blockquote>
<p>android:maxHeight="100dp"</p>
</blockquote>
<pre><code><EditText
android:inputType="textMultiLine"
android:layout_marginTop="25dp"
android:background="@android:color/transparent"
android:layout_wid... | Editext push down all content of layout | android|android-edittext | -1 | 45 | 1 | 44,212,677 | 44,212,677 | 0 | true | 2017-05-27T02:21:37.697Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Editext push down all content of layout<p>Hi I'm trying to create <code>EditText</code> <strong>multiline</strong> but when I back to line all content of lay... |
44,172,756 | Cassandra CRUD Repository - Map - org.springframework.data.cassandra.convert.MappingCassandraConverter.getWriteValue<p>When I use map and the Spring data CRUD Repository to insert the record getting the below exception</p>
<p><strong>Domain class</strong></p>
<p>@CassandraType(type = DataType.Name.MAP,typeArguments =... | <p>@CassandraType(type = DataType.Name.MAP,typeArguments = { DataType.Name.BIGINT,DataType.Name.TIMEUUID } )
private Map order;</p>
<p>Issue was resolved after reference type as Long and UUID.</p> | Cassandra CRUD Repository - Map - org.springframework.data.cassandra.convert.MappingCassandraConverter.getWriteValue | cassandra|spring-data-cassandra | -1 | 520 | 1 | 44,212,939 | 44,212,939 | 0 | true | 2017-05-25T05:15:19.967Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cassandra CRUD Repository - Map - org.springframework.data.cassandra.convert.MappingCassandraConverter.getWriteValue<p>When I use map and the Spring data CRU... |
44,214,882 | loop of many regression and report coefficients<p>Please show the loop of regression of each companies mean and max like this and report coefficients:</p>
<pre><code>lm(colmean$MSFT~colmax$MSFT)
lm(colmean$AAPL~colmax$AAPL)
lm(colmean$GOOGL~colmax$GOOGL)
Data:
> head(colmax)
MSFT AAPL GOOGL
1 21.23999... | <p>You can try <code>lapply</code>, the final results will be in a list where each element is the fit for each column:</p>
<pre><code>fit <- lapply(names(colmax), function(x){
lm(colmean[[x]] ~ colmax[[x]])
})
</code></pre>
<p>or with <code>mapply</code>:</p>
<pre><code>mapply(function(x, y) lm(y ~ x), colmax... | loop of many regression and report coefficients | r|loops|for-loop|regression | -1 | 51 | 1 | 44,215,006 | 44,215,006 | 0 | true | 2017-05-27T08:54:03.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
loop of many regression and report coefficients<p>Please show the loop of regression of each companies mean and max like this and report coefficients:</p>
<... |
44,215,090 | How to hide the contents of an image<p>In the activity I had an image, but I want to hide its contents until the click.</p>
<p>When one arrives at the activity</p>
<p><img src="https://i.stack.imgur.com/RyMi1.png" alt="activity"></p>
<p>When clicking on this image</p>
<p><img src="https://i.stack.imgur.com/dMw0l.pn... | <p><strong>set default image</strong> in your activity imageView: <a href="https://i.stack.imgur.com/RyMi1.png" rel="nofollow noreferrer">add this image</a></p>
<p>and then <strong>set onClickListener on your imageview.</strong></p>
<p><strong>inside onClickListner</strong> add image in imageview like this: <a href="... | How to hide the contents of an image | android | -1 | 25 | 1 | 44,215,849 | 44,215,849 | 0 | true | 2017-05-27T09:17:03.683Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to hide the contents of an image<p>In the activity I had an image, but I want to hide its contents until the click.</p>
<p>When one arrives at the activ... |
44,217,364 | Positioning elements in the middle inside DIVs<p>I have a problem with this HTML code I'm trying to write. This is the actual code:</p>
<pre><code><div class="container-fluid cover">
<div class="container search">
<h1 class="search-carport">Search your carport</h1>
<input... | <p>You can use fixed position:</p>
<pre><code>.search {
position: fixed;
text-align:center;
top:50%;
left:50%;
transform:translate(-50%,-50%);
</code></pre>
<p>}</p> | Positioning elements in the middle inside DIVs | html|css | -1 | 21 | 2 | 44,217,508 | 44,217,508 | 0 | true | 2017-05-27T13:21:49.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Positioning elements in the middle inside DIVs<p>I have a problem with this HTML code I'm trying to write. This is the actual code:</p>
<pre><code><div c... |
44,220,599 | How to put divs in grid format, even when content size differs<p>I'm a beginner in web development and while building my website I came across a problem.</p>
<p>It turns out that I want to put the content of the blog of my site, in a format responsive grid, that is depending on the size of the screen, stay with 1, 2 o... | <p>You should try using Bootstrap grid system in your web application.
Bootstrap is mostly used to make responsive and mobile friendly websites.
Many links are easily available online, where you can learn bootstrap quickly.</p> | How to put divs in grid format, even when content size differs | jquery|html|css | -1 | 18 | 1 | 44,220,774 | 44,220,774 | 0 | true | 2017-05-27T18:59:21.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to put divs in grid format, even when content size differs<p>I'm a beginner in web development and while building my website I came across a problem.</p>... |
44,223,599 | Create a score in a quiz app<p>I've created a quiz app from a youtube tutorial. Now I want to add a score in order for the player to view it. The app works by adding 3 points if you choose option a, 2 if you choose b and 1 if you choose c.</p>
<p>But whenever I change questions, the score value goes back to 0, how can... | <p>You are set the value of total in viewDidLoad method, because you calling this method when nextQuestion button pressed, the total value will be 0 again. You need to move the equals 0 outside the viewDidLoad method. For example:</p>
<pre><code>class ViewController: UIViewController
{
@IBOutlet weak var Question: UI... | Create a score in a quiz app | ios|swift | -1 | 77 | 1 | 44,224,239 | 44,224,239 | 0 | true | 2017-05-28T03:40:05.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create a score in a quiz app<p>I've created a quiz app from a youtube tutorial. Now I want to add a score in order for the player to view it. The app works b... |
44,224,731 | Can not save to "txt file" like "run" result<p>When I run the code, </p>
<p>I want to save it as output.</p>
<p>But my code is stored differently.</p>
<p>How do I fix it? Thank you for your advice.</p>
<p>"run result" = </p>
<p>1 : {'text': 'Today is sunday! https//abcd'}</p>
<p>2 : {'text': 'hi!!!\nhi!!!\nhi!!! ... | <p>you need to clarify your question, i guess nobody really knows what you want to achieve exactly. Do you want a "json like" output of a dictionary in your text file? Give us an example, how your file's content should look like.</p>
<p>I give a guess, maybe you just want the string represenation of your dict, you get... | Can not save to "txt file" like "run" result | python|twitter|web-scraping|web-crawler | -1 | 36 | 1 | 44,225,061 | 44,225,061 | 0 | true | 2017-05-28T07:12:13.543Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can not save to "txt file" like "run" result<p>When I run the code, </p>
<p>I want to save it as output.</p>
<p>But my code is stored differently.</p>
<p>... |
44,224,933 | Create a new account by useradd command, can't login to the ssh server with new account?<p>What happen is i created a new account with useradd command while in root account?
useradd an</p>
<p>then i reboot the cloud server. Try to login with new account an@'ssh-ip' instead of root@'ssh-ip'.</p>
<p>The following error... | <p>You should use <code>adduser</code> instead of <code>useradd</code> to create a new user, see <a href="https://askubuntu.com/questions/374870/home-directory-not-being-created">here</a> for details.</p> | Create a new account by useradd command, can't login to the ssh server with new account? | digital-ocean | -1 | 319 | 1 | 44,229,407 | 44,229,407 | 0 | true | 2017-05-28T07:43:41.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create a new account by useradd command, can't login to the ssh server with new account?<p>What happen is i created a new account with useradd command while ... |
44,111,127 | No resource methods have been found for resource class org.glassfish.jersey.media.multipart.MultiPartFeature<p>
com.sun.jersey</groupId> jersey-bundle</artifactId>
1.19.3</version> </dependency> -->
com.sun.jersey</groupId> jersey-json</artifactId>
1.17.1<... | <p>Why adding glassfish when tomee already provides you these dependencies? I'd just drop them all from the pom and you wouldnt get a conflict between cxf and jersey.</p> | No resource methods have been found for resource class org.glassfish.jersey.media.multipart.MultiPartFeature | rest|maven|jersey | -1 | 563 | 1 | 44,230,950 | 44,230,950 | 0 | true | 2017-05-22T10:57:12.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
No resource methods have been found for resource class org.glassfish.jersey.media.multipart.MultiPartFeature<p>
com.sun.jersey</groupId> jersey-b... |
44,232,869 | Having issue with blog page sidebar<p>I have a website in WordPress.In the blog page I have a sidebar.I did add some widgets there but the option in the widgets are not clicable.How can I make them Clickable.
Link:<a href="http://workwithmaxmarketer.com/blog/" rel="nofollow noreferrer">http://workwithmaxmarketer.com/bl... | <p>Your class <strong><code>widget-area</code></strong> is overlapping the sidebar. </p>
<p>I have two solutions here. </p>
<p>First (i recommend), From your CSS style, add this code below:</p>
<pre><code>.widget-area:before{
z-index:-1 !important;
}
</code></pre>
<p>or </p>
<p>Second (not recommended), from <a... | Having issue with blog page sidebar | wordpress|blogs|sidebar|custom-wordpress-pages | -1 | 30 | 1 | 44,232,979 | 44,232,979 | 0 | true | 2017-05-28T23:10:09.443Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Having issue with blog page sidebar<p>I have a website in WordPress.In the blog page I have a sidebar.I did add some widgets there but the option in the widg... |
44,233,847 | In which condition my numpy 2d array is automatically converted into 1d array?<p>A.shape = (5,2)</p>
<p>which operation lead to return 1d array like <strong>(4,)</strong>
like a.dot(b) or numpy.exp(a) etc</p>
<p><strong>Note:</strong> No use of numpy.reshape</p> | <p>Numpy function that leads to this result beside for numpy.reshape() is :</p>
<ol>
<li><strong>np.ravel()</strong></li>
<li><strong>np.flat()</strong></li>
</ol>
<p>or in some case when you select column from matrix its return it into vector (1 Dimension) like</p>
<ol>
<li><strong>a[ : ,i ]</strong> where i is ind... | In which condition my numpy 2d array is automatically converted into 1d array? | python|numpy | -1 | 61 | 1 | 44,234,558 | 44,234,558 | 0 | true | 2017-05-29T02:22:04.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
In which condition my numpy 2d array is automatically converted into 1d array?<p>A.shape = (5,2)</p>
<p>which operation lead to return 1d array like <strong... |
44,237,535 | Navbar size increases on small screen<p>I have a header and is overlapped on navbar. I liked it that way.
but problem is, when I go on site from smaller devices navbar-toggle increases navbar size how to fix this.
my temp website
rank.inserver.in/starofdavid</p>
<p>just try to minmize your browser.</p> | <p>Because your button is outside the navigation header like this:</p>
<pre><code><nav>
<div class="navbar-header">
<div class="navbar-brand"><div>
</div>
<button></button>
</nav>
</code></pre>
<p>Change it to:</p>
<pre><code><nav>
<div... | Navbar size increases on small screen | navbar | -1 | 26 | 1 | 44,237,858 | 44,237,858 | 0 | true | 2017-05-29T08:08:52Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Navbar size increases on small screen<p>I have a header and is overlapped on navbar. I liked it that way.
but problem is, when I go on site from smaller devi... |
44,237,878 | Text direction and pluralization dataset<p>I am working on a Ruby on Rails project, in which I need to get the text direction and the plural form for different languages. Something like:</p>
<pre><code>en: { plural_keys: [:one, :other], text_dir: :left_to_right },
sk: { plural_keys: [:one, :few, :other], text_dir: :le... | <p>I have found <a href="http://cldr.unicode.org/index" rel="nofollow noreferrer">CLDR - Unicode Common Locale Data Repository</a> which contains all data I need. It is also available as the <a href="https://github.com/twitter/twitter-cldr-rb" rel="nofollow noreferrer">twitter_cldr gem</a>.</p> | Text direction and pluralization dataset | ruby|dataset|pluralize | -1 | 38 | 1 | 44,243,414 | 44,243,414 | 0 | true | 2017-05-29T08:27:27.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Text direction and pluralization dataset<p>I am working on a Ruby on Rails project, in which I need to get the text direction and the plural form for differe... |
44,199,346 | Is there a way for AutoIt to get JavaFX application's text<p>I am new to AutoIt and I'm using its java bridge and I really liked it. But from what i understand even though it support swing and swt it does not support JavaFX. When I use it with a javaFx application, I cant get the texts with its finder tool. So is there... | <p>check JABSimpleSpy that is a spy based on java accessibiliy bridge build with AutoIt</p>
<p><a href="https://www.autoitscript.com/wiki/FAQ#How_can_I_control_.28click.2C_edit_etc.29_an_external_.28html.29_application.3F" rel="nofollow noreferrer">https://www.autoitscript.com/wiki/FAQ#How_can_I_control_.28click.2C_ed... | Is there a way for AutoIt to get JavaFX application's text | javafx|autoit | -1 | 318 | 1 | 44,248,493 | 44,248,493 | 0 | true | 2017-05-26T10:33:39.003Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way for AutoIt to get JavaFX application's text<p>I am new to AutoIt and I'm using its java bridge and I really liked it. But from what i understa... |
44,249,865 | How should I code 1 css file for multpile html pages?<p>My home page styles work perfectly fine but when I keep coding the css for another html page, the layout breaks in the home page. For example, I have some content in the home page but I want to remove them in other pages and when I do, it breaks the layout in the ... | <p>you need 1 css file for all pages. use different classes an ids and then your css will not override previous settings</p> | How should I code 1 css file for multpile html pages? | html|css | -1 | 33 | 2 | 44,249,947 | 44,249,947 | 0 | true | 2017-05-29T20:22:34.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How should I code 1 css file for multpile html pages?<p>My home page styles work perfectly fine but when I keep coding the css for another html page, the lay... |
44,258,553 | marge widget in PyQt4 Python<p>how can i marge <strong>IP Address list</strong> and the <strong>combo box</strong> to the top?i already try using <strong>setAlignment</strong> but the code is doesn't working?</p>
<p><em>Result i got</em></p>
<p><a href="https://i.stack.imgur.com/8YXT9.png" rel="nofollow noreferrer"><... | <p>Use <code>QVBoxLayout.addStretch</code> method:</p>
<pre><code>sublayout2 = QVBoxLayout()
sublayout2.addWidget(lb3)
sublayout2.addWidget(combobox_ip_list)
sublayout2.addStretch(1)
</code></pre> | marge widget in PyQt4 Python | python|pyqt4 | -1 | 53 | 1 | 44,259,038 | 44,259,038 | 0 | true | 2017-05-30T09:32:20.417Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
marge widget in PyQt4 Python<p>how can i marge <strong>IP Address list</strong> and the <strong>combo box</strong> to the top?i already try using <strong>set... |
44,264,631 | How do I add more info onto an excel graph?<p>After creating a pie chart on excel, is there anyway that I can add more information(separate from the pie chart) on the side of the graph? i.e. I have a pie chart with the percentage ratio of doctors and engineers, on the side, I want to have it show the total salary of th... | <p>Under the chart tools format tab, you should be able to insert a shape. There's a text box shape that you can insert and then add whatever extra information you want to add.</p> | How do I add more info onto an excel graph? | excel | -1 | 28 | 1 | 44,265,077 | 44,265,077 | 0 | true | 2017-05-30T14:11:02.397Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I add more info onto an excel graph?<p>After creating a pie chart on excel, is there anyway that I can add more information(separate from the pie char... |
44,077,079 | String Interpolation In Codesmith Generator<p>Is there a way to use some of the newer c# features like string interpolation, ie:
var string = $"Hello {worldVar}"</p> | <p>Codesmith got back to me and indicated this will be in the next version when they bump their internal runtime from 4.0 to 4.7.</p> | String Interpolation In Codesmith Generator | codesmith | -1 | 45 | 2 | 44,267,031 | 44,267,031 | 0 | true | 2017-05-19T18:49:09.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
String Interpolation In Codesmith Generator<p>Is there a way to use some of the newer c# features like string interpolation, ie:
var string = $"Hello {worldV... |
44,269,972 | Android: How to send an ics File to apps on the Phone<p>I am creating an .ics File in my Activity. I want to send the created .ics File to a calendar app on the phone, so the app can import the events.</p>
<p>Here is my code for the Intent:</p>
<pre><code>`Intent intent = new Intent(Intent.ACTION_SEND);
inten... | <p>Google Calendar, at least, does not support responding to <code>ACTION_SEND</code>.</p>
<p>So, try:</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(icsfile), "application/ics");
startActivity(intent);
</code></pre>
<p>(and, eventually, switch to using <code>FilePr... | Android: How to send an ics File to apps on the Phone | java|android|calendar|icalendar|android-implicit-intent | -1 | 1,321 | 1 | 44,270,075 | 44,270,075 | 0 | true | 2017-05-30T19:00:35.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android: How to send an ics File to apps on the Phone<p>I am creating an .ics File in my Activity. I want to send the created .ics File to a calendar app on ... |
44,280,070 | insert text in cell after finding row<p>Hello Stackoverflow Community,</p>
<p>I need a google apps script doing the following: (example titles)
1. Find a row in "sheet A" based on text in a cell in "Sheet B"
2. When this row is found, insert an "x" in column A in that found row.</p>
<p>Then I need another script that... | <p>Only one function is required. First you write an 'x' and then you write a ''. I included two test functions. </p>
<pre><code>function putTest()
{
simpleSearch('SheetA','SheetB','x')
}
function removeTest()
{
simpleSearch('SheetA','SheetB','')
}
function simpleSearch(targetSheet,critSheet,data,targetCol,c... | insert text in cell after finding row | google-apps-script | -1 | 59 | 1 | 44,289,126 | 44,289,126 | 0 | true | 2017-05-31T08:54:10.160Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
insert text in cell after finding row<p>Hello Stackoverflow Community,</p>
<p>I need a google apps script doing the following: (example titles)
1. Find a ro... |
44,289,287 | Need Help in using preg_split() in php<p>Can anyone explain how to use preg_split() function to split below mentioned string</p>
<pre><code>String [
date=2017-05-31 time=14:12:05 devname=FGT3HD3914801291 devid=FGT3HD3914801449 logid=0316013056 type=utm subtype=webfilter eventtype=ftgd_blk level=warning vd="root" po... | <p>preg_split is maybe not the right tool for this. You can better use <code>preg_match_all</code> for this kind of splitting.</p>
<pre><code><?php
$str = 'date=2017-05-31 time=14:12:05 devname=FGT3HD3914801291 devid=FGT3HD3914801449 logid=0316013056 type=utm subtype=webfilter eventtype=ftgd_blk level=warning ... | Need Help in using preg_split() in php | php | -1 | 40 | 1 | 44,290,382 | 44,290,382 | 0 | true | 2017-05-31T15:47:44.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Need Help in using preg_split() in php<p>Can anyone explain how to use preg_split() function to split below mentioned string</p>
<pre><code>String [
date... |
44,300,992 | Bottom a div inside a div<p>I haven't tried anything else except using vertical-align but it didn't do anything.</p>
<p>Here is my code.</p>
<pre><code><html>
<div id="banner">
<h2><span>HIGH QUALITY</span></h2>
<h3>CRAFTMANSHIP AT LOW EVERYDAY PRIC... | <p>If you have the following structure:</p>
<pre><code><div id="outer-box">
Normal text
<div id="inner-box">
Stuff that should be displayed at the bottom
</div>
</div>
</code></pre>
<p>You can use the following CSS to achieve what you want:</p>
<pre><code>#outer-box {
... | Bottom a div inside a div | html|css | -1 | 27 | 1 | 44,301,206 | 44,301,206 | 0 | true | 2017-06-01T07:19:26.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Bottom a div inside a div<p>I haven't tried anything else except using vertical-align but it didn't do anything.</p>
<p>Here is my code.</p>
<pre><code><... |
44,301,791 | Technologies for audio files storage for on demand mobile app download<p>Which cloud platform should i use to store audio files for on demand download in a mobile app?</p>
<p>Eg: From the app if the user click a download button, audio files will be downloaded and stored ?</p>
<p>What about Google Drive ,firebase Stor... | <p>Audio files are just plain binary files so you can just store them on a simple S3 bucket for example.</p>
<p>Amazon S3 has some benefits:</p>
<ul>
<li>easily scalable</li>
<li>you pay for what you use</li>
<li>high availability</li>
<li>trusted by many</li>
</ul>
<p>But, ultimately, any cloud storage will do.</p> | Technologies for audio files storage for on demand mobile app download | firebase|audio|cloud|storage | -1 | 47 | 1 | 44,303,684 | 44,303,684 | 0 | true | 2017-06-01T07:59:13.967Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Technologies for audio files storage for on demand mobile app download<p>Which cloud platform should i use to store audio files for on demand download in a m... |
44,302,872 | Highcharts stacked bar chart with different categories<p>My ruby back-end produces a JSON hash with categories with array of subcategories in it (each subcategory has total value):</p>
<pre><code>{"IT, Internet, Telecom"=>[["Testing", 3], ["Banking Software", 1], ["ERP", 2], ["IT Security", 2], ["Consulting, Outsou... | <p>Finally I have converted JSON to this format:</p>
<pre><code>[{:name=>"Testing", :data=>[["IT, Internet, Telecom", 3]]}, {:name=>"Banking Software", :data=>[["IT, Internet, Telecom", 1]]}, {:name=>"ERP", :data=>[["IT, Internet, Telecom", 2]]}, {:name=>"IT Security", :data=>[["IT, Internet, T... | Highcharts stacked bar chart with different categories | javascript|ruby|highcharts | -1 | 279 | 1 | 44,305,952 | 44,305,952 | 0 | true | 2017-06-01T08:55:50.160Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Highcharts stacked bar chart with different categories<p>My ruby back-end produces a JSON hash with categories with array of subcategories in it (each subcat... |
44,315,828 | Acess violation error in PyQt5<p>I am really new to programming and I recently had to do a GUI with PyQt. Basicly what it does is reading reading some data coming from an Arduino on the serial port and updates a graph every 100 values sent by the Arduino. There is also a log function to log the data into a formatted f... | <p>You <a href="http://doc.qt.io/qt-5/thread-basics.html" rel="nofollow noreferrer">may not</a> interact with the GUI in a non-main thread:</p>
<blockquote>
<p>As mentioned, each program has one thread when it is started. This thread is called the "main thread" (also known as the "GUI thread" in Qt applications). Th... | Acess violation error in PyQt5 | python|pyqt5|qthread | -1 | 30 | 1 | 44,320,727 | 44,320,727 | 0 | true | 2017-06-01T19:40:06.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Acess violation error in PyQt5<p>I am really new to programming and I recently had to do a GUI with PyQt. Basicly what it does is reading reading some data c... |
44,323,615 | How to divide an array which has array[0] in 4 values in PHP<p>All values are inserted in arr_type_and_value[0]. </p>
<p>I would like to insert each value in as: </p>
<pre><code>arr_type_and_value[0] >> 1 value,arr_type_and_value[1]>> 2 value, arr_type_and_value[2] >> 3 value and arr_type_and_value... | <p>use this</p>
<pre><code><?php
$value="1,2,3,4";
// $arrlst =array();
$arrlst =explode(",",$value);
// print_r($arrlst);
foreach($arrlst as $key => $relatedlst) {
// $arr_type_and_value=explode(":",$relatedlst);
// print_r($arr_type_and_value); /... | How to divide an array which has array[0] in 4 values in PHP | php|arrays | -1 | 55 | 2 | 44,324,000 | 44,324,000 | 0 | true | 2017-06-02T07:53:23.780Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to divide an array which has array[0] in 4 values in PHP<p>All values are inserted in arr_type_and_value[0]. </p>
<p>I would like to insert each value i... |
44,324,492 | After registration my email goes to spam and not inbox<p>I have done everything possible but after registration my email goes to spam and i want it to go into inbox</p>
<pre><code> $subject = 'Confirm your email';
$to = $email;
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;c... | <p>You made a mistake in your script within you mail contructor of function you said message instead of body message instead of body. </p>
<p>So it should look like this</p>
<pre><code>$body='Hi, Click here to confirm your email https://cgoty.com/activate.php?encrypt='.$encrypt.'&action=activate ';
mail($to,$su... | After registration my email goes to spam and not inbox | php | -1 | 62 | 2 | 44,324,593 | 44,324,593 | 0 | true | 2017-06-02T08:42:04.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
After registration my email goes to spam and not inbox<p>I have done everything possible but after registration my email goes to spam and i want it to go int... |
44,328,124 | dont display my hypertext link<p>I have a descriptor component and in my tag, it should not display a hypertext link. But it's displaying the content like below which I don't want.</p>
<pre><code>description: 'A box that contains a label with multiple headings. Designed to be used inside a' + ' <a href="#/component... | <p>You are using the href as a string. Try:</p>
<pre><code>'A box that contains a label with multiple headings. Designed to be used inside a ' + <a href="#/components/mae-box-layout">box-layout</a>.
</code></pre> | dont display my hypertext link | html|typescript | -1 | 44 | 1 | 44,328,208 | 44,328,208 | 0 | true | 2017-06-02T11:43:39.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
dont display my hypertext link<p>I have a descriptor component and in my tag, it should not display a hypertext link. But it's displaying the content like be... |
44,335,127 | Recycler view open new activity<p>I implement another activity which needs to be open when click on card but i getting Error:(56, 48) error: incompatible types: anonymous Callback JSONResponse cannot be converted to Context even if i convert to JSONResponse then there is another error. Problem is in that JSONResponse b... | <p>First issue,
<a href="https://i.stack.imgur.com/sRUFL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sRUFL.jpg" alt="Change the red data"></a></p>
<p>to this:</p>
<pre><code>adapter = new DataAdapter(data,MainActivity.this);
</code></pre>
<p>is giving error because: if you put this inside a ca... | Recycler view open new activity | java|android|json|retrofit2 | -1 | 71 | 1 | 44,335,225 | 44,335,225 | 0 | true | 2017-06-02T18:14:47.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Recycler view open new activity<p>I implement another activity which needs to be open when click on card but i getting Error:(56, 48) error: incompatible typ... |
44,331,784 | Google maps API - not accepting values from geocode<p>I am trying to implement the Google API maps in my javascript. Based on an address, I want to get the corresponding latitude/longitude and show a map on this location. When I hardcode the location, it works. When I use the values from the geocoder, the map is empty.... | <p>The <code>geocoder.geocode()</code> works asynchronously. That means you should put map initialization inside the callback function. Currently you initialize the map before the geocoder callback is triggered.</p>
<pre><code>function initMap() {
var map;
var loc = [];
var geocoder = new google.maps.Ge... | Google maps API - not accepting values from geocode | javascript|google-maps-api-3|google-api|google-geocoder | -1 | 259 | 2 | 44,337,181 | 44,337,181 | 0 | true | 2017-06-02T14:51:39.717Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Google maps API - not accepting values from geocode<p>I am trying to implement the Google API maps in my javascript. Based on an address, I want to get the c... |
44,329,329 | New Custom centos boot disk with parameters from official google cloud setting<p><strong>I want to change the root filesystem CentOs 6 to Btrfs filesystem.</strong></p>
<p>My solution is to export virtual machine from localhost to GCE, I know the documentation to this job, but I have doubts how does work the process t... | <p>I find the solution:</p>
<p>There is a free service that helps with VM migrations but is limited to some OS. CentOS 6.0 is included but I am not sure if it supports the file system you are looking for. </p>
<p>If you cannot use the migration service and you do not want to use the public images provided by Google... | New Custom centos boot disk with parameters from official google cloud setting | linux|cloud|boot|disk|google-compute-engine | -1 | 50 | 1 | 44,338,826 | 44,338,826 | 0 | true | 2017-06-02T12:45:34.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
New Custom centos boot disk with parameters from official google cloud setting<p><strong>I want to change the root filesystem CentOs 6 to Btrfs filesystem.</... |
44,346,248 | Android Studio List from API<p>I'm pretty new to Android Studio and I've gone through most of the BigNerdRanch's guide on it. I've done some research but I can't seem to find a method of taking the information from an <a href="http://api.aladhan.com/timingsByCity?city=Dubai&country=AE&method=2" rel="nofollow no... | <p>There is official information with sample app exactly about this.
<a href="https://developer.android.com/training/basics/network-ops/connecting.html" rel="nofollow noreferrer">https://developer.android.com/training/basics/network-ops/connecting.html</a></p>
<p>good luck!</p> | Android Studio List from API | android|list|api | -1 | 273 | 1 | 44,346,397 | 44,346,397 | 0 | true | 2017-06-03T16:39:55.837Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android Studio List from API<p>I'm pretty new to Android Studio and I've gone through most of the BigNerdRanch's guide on it. I've done some research but I c... |
44,351,460 | How can I extract a short part of characters from the string with Regular Expression in Python?<p>Here is my code:</p>
<pre><code>s = '''I wish I may, I wish I might
Have a dish of fish tonight.'''
import re
m = re.search('w.*m', s)
print(m.group())
</code></pre>
<p>and I got the result:</p>
<pre><code>wish I may, ... | <p>In regular expressions, <code>.</code> means a single character and <code>.*</code> means any number of characters (0 or more).</p>
<p>When you used <code>w.*m</code>, by default, python will look for the longest sub-string that starts with <code>w</code> and ends with <code>m</code>.
This is called <em>GREEDY MATC... | How can I extract a short part of characters from the string with Regular Expression in Python? | python|regex|python-3.x | -1 | 66 | 3 | 44,351,620 | 44,351,620 | 0 | true | 2017-06-04T06:44:21.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I extract a short part of characters from the string with Regular Expression in Python?<p>Here is my code:</p>
<pre><code>s = '''I wish I may, I wis... |
44,353,575 | variable indise html in wordpress plugin<p>I am doing my first every plugin to Wordpress.</p>
<p>How can i insert variable between HTML? I want to insert $today_output between divs? </p>
<p>Have tried all sort of things, but this is too confusing to me.</p>
<pre><code> $today_post_id = 82;
$post_content =... | <p>Maybe try it using string concatenation instead like this:</p>
<pre><code><?php
$output = '<div class="' . $classname . '">' .
'<div>' . $content . '</div>' .
'</div>';
?>
</code></pre> | variable indise html in wordpress plugin | php|html|wordpress|variables | -1 | 21 | 1 | 44,353,725 | 44,353,725 | 0 | true | 2017-06-04T11:30:05.913Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
variable indise html in wordpress plugin<p>I am doing my first every plugin to Wordpress.</p>
<p>How can i insert variable between HTML? I want to insert $t... |
44,353,829 | Add value to specific Class property from List<p>This solution seems to me as a very lazy and cheap way to do this and I was wondering if there was any better or more future proof way to do this with as minimal change needed if I wish to add new 'Skills' in the future so to speak.</p>
<p>All I have to do here is speci... | <p>I would suggest creating an Enum (StatsType perhaps?) with entries for strength, constitution etc. Then your code could be more self documenting.</p>
<p>Even better, change GetSkills to return a Dictionary rather than a List - with the dictionary Key being of type StatsType.</p> | Add value to specific Class property from List | c#|list|ienumerable | -1 | 51 | 1 | 44,353,916 | 44,353,916 | 0 | true | 2017-06-04T11:59:12.117Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Add value to specific Class property from List<p>This solution seems to me as a very lazy and cheap way to do this and I was wondering if there was any bette... |
44,352,799 | Why is the extended method not over-riding the parent method<p>I need to be able to run a child method from the parent class.
I am calling the child function $this->getPlan, but it is not calling the child plan, but only the parent one. I thought an extended class over-rides the function.
Here is my code</p>
<pre><cod... | <p>I have solved the problem a different way.
The initial problem was this. I needed to include logon class in plan so that I could access the database. The problem was that logon needed to run a method in plan, and I couldn't include the plan class as that would have created a cyclic problem.</p>
<p>My solution was h... | Why is the extended method not over-riding the parent method | php|class | -1 | 30 | 2 | 44,355,308 | 44,355,308 | 0 | true | 2017-06-04T09:52:38.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is the extended method not over-riding the parent method<p>I need to be able to run a child method from the parent class.
I am calling the child function... |
44,358,886 | What is the 'realtime' process priority setting for<p>From what I've read in the past, you're encouraged not to change the priority of your windows applications programmatically, and if you do, you should never change them to 'realtime'.</p>
<p>What does the 'realtime' process priority setting do, compared to 'High', ... | <p>This is explained in <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms685100(v=vs.85).aspx" rel="nofollow noreferrer">Scheduling Priorities</a> on MSDN (emphasis mine):</p>
<blockquote>
<p>You should almost never use REALTIME_PRIORITY_CLASS, because this interrupts system threads that manage mo... | What is the 'realtime' process priority setting for | windows|process | -1 | 2,859 | 1 | 44,359,724 | 44,359,724 | 0 | true | 2017-06-04T21:18:54.603Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the 'realtime' process priority setting for<p>From what I've read in the past, you're encouraged not to change the priority of your windows applicati... |
44,361,407 | How to use two google api keys simultaneously?<p>I wanna use google map and google place
So, I have got map api and place api.</p>
<p>But the tutorial teaches me one api usage.</p>
<p>for example
example-project of google map is</p>
<pre><code><meta-data
android:name="com.google.android.geo.API_KEY"
android... | <p>you just need 1 key, make sure you enable map API and place API at google dev console for your project</p> | How to use two google api keys simultaneously? | android|google-api | -1 | 48 | 1 | 44,361,442 | 44,361,442 | 0 | true | 2017-06-05T03:48:53.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use two google api keys simultaneously?<p>I wanna use google map and google place
So, I have got map api and place api.</p>
<p>But the tutorial teach... |
44,365,720 | Concatenation of different positions of the same variable in PHP<p>I have a trouble in a php code, the problem is that I want to display the variable Cell new from the variable Cell old</p>
<p>$Cell old = ARI_0089_sect2</p>
<p>$Cell new = ARI_0089_h2 (replace 'sect' with 'h' )</p>
<p>all example that I found concate... | <p>Try PHP function <code>str_replace</code></p>
<pre><code>$Cell_old = "ARI_0089_sect2";
$new = str_replace('sect', 'h', $Cell_old);
echo $new;
</code></pre> | Concatenation of different positions of the same variable in PHP | php|excel|concat|substr | -1 | 44 | 2 | 44,365,781 | 44,365,781 | 0 | true | 2017-06-05T09:25:33.810Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Concatenation of different positions of the same variable in PHP<p>I have a trouble in a php code, the problem is that I want to display the variable Cell ne... |
44,269,514 | Flowpaper Zine, How to show pdf in single-page mode instead of two-page mode, by default?<p>When I open a document in Zine PHP server side, it opens in two-page mode.
I have to click on menu bar in order to switch to single-page mode.
Is there anyway to open the PDF document in single-page mode by default.</p> | <p>Set the following parameter to force single page mode:</p>
<p>InitViewMode : 'Portrait',</p> | Flowpaper Zine, How to show pdf in single-page mode instead of two-page mode, by default? | flexpaper | -1 | 262 | 1 | 44,370,160 | 44,370,160 | 0 | true | 2017-05-30T18:35:20.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flowpaper Zine, How to show pdf in single-page mode instead of two-page mode, by default?<p>When I open a document in Zine PHP server side, it opens in two-p... |
44,367,612 | ARM Template with DSC extension: Powershell file location from local destop<p>I would like to send the ARM template Project with related PS scripts for DSC to a third party. They would probably deploy option in VS to do the deployment. It is possible to attach the DSC script as part of the ARM project and on deploy pic... | <p>If you're planning to use VS to do the deployment, then VS can stage the DSC package for you - the deployment script in VS does this... it can actually build the DSC package as well, but that has some limitations.</p>
<p>There's nothing magic about the VS script - this repo has a DSC sample that uses the same scrip... | ARM Template with DSC extension: Powershell file location from local destop | visual-studio|azure-resource-manager|dsc | -1 | 564 | 2 | 44,393,952 | 44,393,952 | 0 | true | 2017-06-05T11:08:48.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ARM Template with DSC extension: Powershell file location from local destop<p>I would like to send the ARM template Project with related PS scripts for DSC t... |
44,331,402 | View controller after transition is fitting its contraints to size class instead of device<p>First of all, I followed this tutorial: <a href="https://www.youtube.com/watch?v=B9sH_VxPPo4" rel="nofollow noreferrer">https://www.youtube.com/watch?v=B9sH_VxPPo4</a> and then I used this transition in a real project where I w... | <p>Well, I found a workaround for this.</p>
<p>I added this line of code in every view controller I was having this problem:</p>
<pre><code>self.view.frame.size = CGSize(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
</code></pre>
<p>After have done it, screens behave perfectly adjusting its... | View controller after transition is fitting its contraints to size class instead of device | ios|iphone|swift|size-classes|uiviewanimationtransition | -1 | 80 | 1 | 44,398,694 | 44,398,694 | 0 | true | 2017-06-02T14:31:12.680Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
View controller after transition is fitting its contraints to size class instead of device<p>First of all, I followed this tutorial: <a href="https://www.you... |
44,291,702 | Add star to google maps account programatically<p>I have a load of maps stars I want to transfer from one google account to another. I can export them as HTML and get a link to each one which looks something like this:</p>
<p><a href="http://maps.google.com/?cid=1863378062783191712" rel="nofollow noreferrer">http://ma... | <p>This looks to have been possible using <a href="https://developers.google.com/maps/documentation/javascript/signedin" rel="nofollow noreferrer">signed-in maps</a>, which is now deprecated. There is no support for this in the latest maps api.</p> | Add star to google maps account programatically | javascript|google-maps|google-maps-api-3 | -1 | 39 | 1 | 44,419,249 | 44,419,249 | 0 | true | 2017-05-31T17:58:56.577Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Add star to google maps account programatically<p>I have a load of maps stars I want to transfer from one google account to another. I can export them as HTM... |
44,323,011 | Improve the speed of this process of Converting multiple PDF to multiple tif images using GdPicture.NET<p>I am Converting multiple PDF to multiple tif images using GdPicture.NET. (<a href="https://guides.gdpicture.com/content/Converting%20multipage%20PDF%20document%20to%20multipage%20TIFF%20using%20color%20detection%2... | <p>Used Parallel.ForEach to process the pdf files like below.</p>
<pre><code> List<string> result = Directory.EnumerateFiles(filepath, "*.pdf", System.IO.SearchOption.TopDirectoryOnly).Union(Directory.EnumerateFiles(filepath, "*.tif", System.IO.SearchOption.TopDirectoryOnly)).ToList();
Parallel.ForEac... | Improve the speed of this process of Converting multiple PDF to multiple tif images using GdPicture.NET | c#|multithreading|parallel-processing | -1 | 556 | 1 | 44,455,760 | 44,455,760 | 0 | true | 2017-06-02T07:17:02.743Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Improve the speed of this process of Converting multiple PDF to multiple tif images using GdPicture.NET<p>I am Converting multiple PDF to multiple tif images... |
43,926,262 | How to change image source in Angular master/detail interface?<p>I am trying to build a simple master/detail view in angular(4) with an img in 'detail' component but i couldn't figure out how to change the img src every time i select an element from the master list.</p>
<p>Image links are like this;</p>
<p>"<a href="... | <p>You shuld bind [src] to the image's url, like this:</p>
<p><code><img [src]="imgUrl" [alt]="imgAlt"></code></p> | How to change image source in Angular master/detail interface? | image|angular|master-detail | -1 | 76 | 1 | 43,929,844 | 43,929,844 | 1 | true | 2017-05-11T22:00:13.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change image source in Angular master/detail interface?<p>I am trying to build a simple master/detail view in angular(4) with an img in 'detail' compo... |
43,936,861 | Clicked item updates other items in the recyclerview?<blockquote>
<p>I have a recycler view which contains a checkbox on click of the check
box I update the value for quantity.The problem is if I select the
first checkbox in my recycler view for some instances even the 5th
check box gets auto checked.</p>
</blo... | <p>Views in RecyclerView are reusable and you must store checked state outside the view. Add boolean field to your BookInfo class like <code>public boolean isCkecked</code>. And change some code inside <code>onBindViewHolder</code>:</p>
<pre><code>viewHolder.cb_selection.setChecked(booksInfo.isChecked);
viewHolder.set... | Clicked item updates other items in the recyclerview? | java|android|android-recyclerview | -1 | 64 | 1 | 43,937,377 | 43,937,377 | 1 | true | 2017-05-12T11:35:27.613Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Clicked item updates other items in the recyclerview?<blockquote>
<p>I have a recycler view which contains a checkbox on click of the check
box I update ... |
43,940,283 | Angular1 ng-show doesn't show the span even though the condition is true<p>I have an accordion list as following:</p>
<pre><code><ion-list>
<div ng-repeat="day in days"><br>
<div class="item item-icon-left" ng-click="toggleGroup(day)" ng-class="{active: isGroupShown(day)}">
<i c... | <p>remove the curly brackets in <code>ng-show</code>. since <code>ng-show</code> is an angular directive no need to use curly brackets </p>
<pre><code> <span ng-show="exercise.watchedToday" style="float:right;"><i class="ion-checkmark-round"></i></span>
</code></pre> | Angular1 ng-show doesn't show the span even though the condition is true | angularjs | -1 | 55 | 1 | 43,940,306 | 43,940,306 | 1 | true | 2017-05-12T14:32:19.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular1 ng-show doesn't show the span even though the condition is true<p>I have an accordion list as following:</p>
<pre><code><ion-list>
<div ... |
43,937,469 | Using custom elements created by polymer or any other library<p>After I have created custom element with polymer library do I have to add any other library than polyfill in my website to get it work with modern browsers.</p> | <p>Yes.</p>
<p>You'll need to add the <a href="https://github.com/webcomponents/webcomponentsjs" rel="nofollow noreferrer">webcomponents polyfill</a> library to make your custom element work.</p>
<p>In the of your main (<em>index.html</em>) file: </p>
<pre><code><script src="path/webcomponents-lite.js"></s... | Using custom elements created by polymer or any other library | web-component | -1 | 46 | 1 | 43,945,670 | 43,945,670 | 1 | true | 2017-05-12T12:10:44.560Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using custom elements created by polymer or any other library<p>After I have created custom element with polymer library do I have to add any other library... |
43,955,824 | React-native nested navigators within Redux<p>I've decided that I need to swap my regular react-nagivation setup for a redux container, mostly because I need to keep track of stuff like login status etc.</p>
<p>I won't lie that since it's my first react navigation moving it into redux is a hell lot of confusion for me... | <p>Ok so I've found the issue. The problem was that I had same route name defined in both top level Stack Navigator and nested Tab Navigator.</p>
<p>As you can see here: </p>
<pre><code>const routeConfiguration = {
Home: { screen: HomeTabsNavigation },
GameList: { screen: GameList },
OfferDetails: { screen: Off... | React-native nested navigators within Redux | reactjs|react-native|redux|react-redux|react-navigation | -1 | 787 | 1 | 43,963,673 | 43,963,673 | 1 | true | 2017-05-13T17:08:37.967Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React-native nested navigators within Redux<p>I've decided that I need to swap my regular react-nagivation setup for a redux container, mostly because I need... |
43,968,504 | Excel / VBA Dynamic Numbers and Text Separation<p>I have a value I take from the internet, specifically the market cap of some cryptocurriencies. I get these from the "get external data" function in excel. This loads the data in text format e.g. for a 1000 bitcoin value instead of getting 1000 i will get a cell that ha... | <p>You can use <a href="https://msdn.microsoft.com/en-us/library/office/gg264296.aspx" rel="nofollow noreferrer">the <code>Val</code> function</a>.</p>
<p>Assuming the cell containing the value you are after is A1 of the active sheet, you can use:</p>
<pre><code>Dim numericPart As Double
numericPart = Val(Range("A1")... | Excel / VBA Dynamic Numbers and Text Separation | vba|excel | -1 | 62 | 3 | 43,968,568 | 43,968,568 | 1 | true | 2017-05-14T20:27:28.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Excel / VBA Dynamic Numbers and Text Separation<p>I have a value I take from the internet, specifically the market cap of some cryptocurriencies. I get these... |
43,975,864 | Peculiarities in importing variable from module<p>This is what I have in my tests.py file:</p>
<pre><code>def func():
global x
x = 200
return x
x = 100
</code></pre>
<p>Now I expect that whenever I'll issue</p>
<pre><code>from tests import x
</code></pre>
<p>I will get <code>100</code>. But this is not... | <p>Modules are global, and are only loaded <strong>once</strong> even if you have multiple <code>import</code> statements. Setting module globals stay global.</p>
<p>That's because <code>import</code> does <strong>two</strong> things:</p>
<ul>
<li>Load the module object if it doesn't exist yet in <code>sys.modules</c... | Peculiarities in importing variable from module | python|module|global-variables | -1 | 23 | 1 | 43,975,943 | 43,975,943 | 1 | true | 2017-05-15T09:29:33.390Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Peculiarities in importing variable from module<p>This is what I have in my tests.py file:</p>
<pre><code>def func():
global x
x = 200
return x
... |
43,991,032 | Syntax error for 'OR'<blockquote>
<p>Msg 156, Level 15, State 1, Line 67<br>
Incorrect syntax near the keyword 'OR'.</p>
</blockquote>
<pre><code>WHERE cast (INVOICEDATE as date)>=@FROMDATE
AND InvoiceStatusID=('IN' OR 'OR')
AND SALESHEADER.ParentAccountID NOT IN (SELECT ACCOUNTID FROM [YVFSQL-REPORT].DBO.E... | <p>As per my understanding below syntax line is looking for exact match.</p>
<pre><code>InvoiceStatusID=('IN' OR 'OR')
</code></pre>
<p>You can use IN syntax as IN is shorthand for multiple OR.</p>
<pre><code>SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1, value2, ....);
</code></pre> | Syntax error for 'OR' | sql-server|syntax | -1 | 30 | 3 | 43,991,103 | 43,991,103 | 1 | true | 2017-05-16T01:13:41.617Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Syntax error for 'OR'<blockquote>
<p>Msg 156, Level 15, State 1, Line 67<br>
Incorrect syntax near the keyword 'OR'.</p>
</blockquote>
<pre><code>WHERE ... |
44,001,645 | Google Play App Questions<p>1) Does google put limit number of downloads for every app ?
if no, Will it be more money paid for more downloads?<br>
Example :<br>
1000 Downloads --> 1$ here no Taxes from google
1000000 Downloads --> 1000$<br>
- Is there any taxes from google 2% for example?
1000000000 Downloads --> 1000... | <blockquote>
<p>1-Does google put limit number of downloads for every app ? if no, Will it be more money paid for more downloads? example : 1000 Downloads --> 1$ here no Taxes from google 1000000 Downloads --> 1000$ - Is there any taxes from google 2% for example? 1000000000 Downloads --> 1000000$ - Is there any taxe... | Google Play App Questions | android|google-play|publish | -1 | 61 | 1 | 44,002,181 | 44,002,181 | 1 | true | 2017-05-16T12:35:20.857Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Google Play App Questions<p>1) Does google put limit number of downloads for every app ?
if no, Will it be more money paid for more downloads?<br>
Example :<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.