Id int64 34.6M 60.5M | Title stringlengths 15 150 | Body stringlengths 33 36.7k | Tags stringlengths 3 112 | CreationDate stringdate 2016-01-01 00:21:59 2020-02-29 17:55:56 | Y stringclasses 3
values |
|---|---|---|---|---|---|
35,169,650 | Differentiate between error and standard terminal log with ffmpeg - nodejs | <p>I'm using <code>ffmpeg</code> in node js. Both the standard terminal output and the error seems to be sent to stdout, so I don't know how to differentiate between error and success... Here's my code:</p>
<pre><code>var convertToMp3 = function(filePath) {
var ffmpeg = child_process.spawn('ffmpeg',['-i', filePath, ... | <node.js><ffmpeg><stdout><stderr> | 2016-02-03 06:05:58 | HQ |
35,169,724 | VM in virtualbox is already locked for a session (or being unlocked) | <p>My VM in virtualbox can not start due to this error, I don't want to destroy it and reinstall it again, anyway to recover it ?</p>
<p>There was an error while executing <code>VBoxManage</code>, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.</p>
<pre><code>Command: ["modify... | <virtualbox> | 2016-02-03 06:11:02 | HQ |
35,169,911 | Build: Cannot use JSX unless the '--jsx' flag is provided | <p>I am using VS 2013 and tsx files with react. I can build my project manually just fine. (Right click and build solution)</p>
<p>But when I try to publish on Azure, VS tries to build again but at that time I am getting all bunch of errors stated as:</p>
<pre><code>Error 2 Build: Cannot use JSX unless the '--jsx... | <azure><visual-studio-2013><typescript><tsx> | 2016-02-03 06:23:49 | HQ |
35,170,397 | Webpack external not cacheable | <p>I'm using webpack to bundle node.js web server based on Express.js framework.</p>
<p>Webpack build works fine, but at the end it gives me two red messages:</p>
<p>[1] external "express" 42 bytes {0} [not cacheable]</p>
<p>[2] external "path" 42 bytes {0} [not cacheable]</p>
<p>What does that mean and should I fi... | <node.js><webpack> | 2016-02-03 06:55:04 | HQ |
35,170,581 | How to Access styles from React? | <p>I am trying to access the width and height styles of a div in React but I have been running into one problem. This is what I got so far: </p>
<pre><code>componentDidMount() {
console.log(this.refs.container.style);
}
render() {
return (
<div ref={"container"} className={"container"}></d... | <javascript><css><reactjs><attributes> | 2016-02-03 07:07:32 | HQ |
35,170,620 | Format java.sql.Timestamp into a String | <p>Is it possible to convert/format <code>java.sql.Timestmap</code> into a String that has the following format:</p>
<blockquote>
<p>yyyyMMdd</p>
</blockquote>
<p>I know that doing it with a <code>String</code> is fairly simple e.g:</p>
<pre><code>String dateString = "2016-02-03 00:00:00.0";
Date date = new Simple... | <java> | 2016-02-03 07:09:23 | HQ |
35,170,911 | mix deps.get failed (seems missing ssl?) | <p>I'm sorry but I'm new to Elixir. while building phoenix application, <code>mix deps.get</code> failed with an error.</p>
<pre><code>% mix deps.get
Could not find Hex, which is needed to build dependency :phoenix
Shall I install Hex? [Yn] y
** (MatchError) no match of right hand side value: {:error, {:ssl, {'no such... | <erlang><elixir><phoenix-framework><mix> | 2016-02-03 07:27:27 | HQ |
35,171,760 | In R is it better to use integer64, numeric, or character for large integer id numbers? | <p>I am working with a dataset that has several columns that represent integer ID numbers (e.g. transactionId and accountId). These ID numbers are are often 12 digits long, which makes them too large to store as a 32 bit integer.</p>
<p>What's the best approach in a situation like this?</p>
<ol>
<li>Read the ID in as... | <r> | 2016-02-03 08:17:39 | HQ |
35,172,207 | ReportLab: working with Chinese/Unicode characters | <p>TL;DR:
<b>Is there some way of telling ReportLab to use a specific font, and fallback to another if glyphs for some characters are missing?</b> Alternatively, <b>Do you know of a condensed TrueType font which contains the glyphs for all European languages, Hebrew, Russian, Chinese, Japanese and Arabic?</b></p>
<p>... | <python><unicode><fonts><reportlab><chinese-locale> | 2016-02-03 08:45:54 | HQ |
35,172,319 | Spring mvc3 + hibernate + java + web services | <p>I want to create a web application which should communicate with other web-apps and access their db and pull and insert in my project db and push the data too. Somebody suggested me you can achieve that using web services.But i have no knowledge on that. </p>
<p>I am creating web application using spring mvc3 + Mav... | <java><web-services><rest><spring-mvc><soap> | 2016-02-03 08:51:30 | LQ_CLOSE |
35,172,506 | Using AWS Certificate Manager (ACM Certificate) with Elastic Beanstalk | <p>When you have a certificate for your domain issued through AWS Certificate Manager, how do you apply that certificate to an Elastic Beanstalk application.</p>
<p>Yes, the Elastic Beanstalk application is load balanced and does have an ELB associated with it.</p>
<p>I know I can apply it directly to the ELB my self... | <amazon-web-services><ssl-certificate><amazon-elastic-beanstalk><aws-certificate-manager> | 2016-02-03 09:01:44 | HQ |
35,173,207 | how to print this type of array? | Array
(
[0] => Array
(
[0] => 1
)
[1] => Array
(
[0] => 2
)
[2] => Array
(
[0] => 3
)
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
... | <php><arrays><multidimensional-array> | 2016-02-03 09:35:02 | LQ_EDIT |
35,173,295 | is it possible to populate a hash using a for loop? | I want a hash that holds keys which are ints from 1 to 18.
Essentially, at the start I want the hash to look like this:
myHash = Hash.new
myHash[1] = "free"
myHash[2] = "free"
...
myHash[18] = "free"
But I want to know if there's a nicer way to do this, such as using a for loop?
someth... | <ruby><hash> | 2016-02-03 09:38:54 | LQ_EDIT |
35,173,417 | Interactive Jupyter/IPython notebooks in slideshow mode? | <p>Is it possible to run Jupyter Notebooks in an interactive slideshow mode? That is, Python kernel would be running in the background and I can modify and execute cells.</p>
<p>The following command generates HTML slideshow and I can't modify nor execute the cells:</p>
<pre><code>jupyter nbconvert mynotebook.ipynb -... | <ipython-notebook><jupyter-notebook> | 2016-02-03 09:44:42 | HQ |
35,173,549 | How to compress video for upload server? | <p>I'm trying to upload video file to server. But size is too large so how i can compress video before upload to server.
Thank you for your help.</p>
| <android><video><compression> | 2016-02-03 09:50:08 | LQ_CLOSE |
35,175,651 | create 9 patch images for background images | <p>I have worked out to create 9 patch images for background images.i have struggled to create the nine patch images in making the lines at top and left portion of images.can any one guide on this?</p>
<p>see this link</p>
<p><a href="https://www.google.co.in/search?q=background+images&biw=1366&bih=641&no... | <android> | 2016-02-03 11:21:05 | LQ_CLOSE |
35,175,814 | Windows 10 - Username with whitespace and PATH | <p>Upon installing Windows 10 I created my admin user as <code>Miha Šušteršič</code>. Now when I install programs that need to modify the environment variable PATH, most of them don't get added. For instance this happens with MongoDB and Git, but npm got added normally.</p>
<p>I think this is an issue with the whitesp... | <path><windows-10> | 2016-02-03 11:29:34 | HQ |
35,176,091 | How should a GRPC Service be hosted? | <p>I have created a GRPC Server in C# using the example given at <a href="http://www.grpc.io/docs/tutorials/basic/csharp.html" rel="noreferrer">Link</a>. Now I want to figure out as how should I be hosting this server so that I achieve following:</p>
<ul>
<li>Should I make this Server a Console application or a a Wind... | <c#><grpc> | 2016-02-03 11:41:25 | HQ |
35,176,092 | Cannot import an andriod code sample in Andriod Studio | I am trying to import an Andriod Code Sample using the Andrio Studio.
But i get this error. Please suggest the cause or whats missing.
[enter image description here][1]
Thanks,
Asha
[1]: http://i.stack.imgur.com/BsJ3v.jpg | <android><android-studio><android-studio-import> | 2016-02-03 11:41:26 | LQ_EDIT |
35,176,270 | Python 2.7 : LookupError: unknown encoding: cp65001 | <p>I have installed python 2(64 bit), on windows 8.1 (64 bit) and wanted to know pip version and for that I fired <code>pip --version</code> but it is giving error.</p>
<pre><code> C:\Users\ADMIN>pip --version
Traceback (most recent call last):
File "c:\dev\python27\lib\runpy.py", line 162, in _run_module_as_m... | <python><python-2.7><encoding><pip> | 2016-02-03 11:50:40 | HQ |
35,176,425 | Horizontall Scrolling Card View - Nadroid | I am trying to find a way to do the below design in android. But i am not able to find a solution to it. Can anyone give me a solution to it.
[![enter image description here][1]][1]
[1]: http://i.stack.imgur.com/AdL9q.jpg
| <android><android-layout><android-studio><android-viewpager><android-cardview> | 2016-02-03 11:57:48 | LQ_EDIT |
35,176,825 | Supporting Multiple Screens single layout | <p>I'm developing an app in android and I have to support all different screen sizes and density. Without created different folder for layout : layout-small layout-large and layout.</p>
| <android> | 2016-02-03 12:15:49 | LQ_CLOSE |
35,177,150 | what is the reason for "java.lang.NoClassDefFoundError: com.estimote.sdk.BeaconManager" ?Please help me to rseolve | java.lang.NoClassDefFoundError: com.estimote.sdk.BeaconManager
at com.campus.ReadingBeaconService.onStart(ReadingBeaconService.java:50)
at android.app.Service.onStartCommand(Service.java:450)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2702)
at android.app.ActivityThread.access$2100(Ac... | <java><android> | 2016-02-03 12:29:35 | LQ_EDIT |
35,177,518 | Dynamic Programming - Minimum number of coins in C | <p>I have looked through various questions on the site and I haven't managed to find anything which implements this by the following reasoning (so I hope this isn't a duplicate).</p>
<p>The problem I'm trying to solve via a C program is the following:</p>
<blockquote>
<p>As the programmer of a vending machine contr... | <c><dynamic-programming> | 2016-02-03 12:47:23 | HQ |
35,177,726 | How to change First letter of each word to Uppercase in Textview xml | <p>i need to change the <strong>text="font roboto regular"</strong> to <strong>Font Roboto Regular</strong> in xml itself, how to do? </p>
<pre><code><TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="18sp"
android:textColor="... | <android><xml><android-layout> | 2016-02-03 12:56:30 | HQ |
35,177,797 | What exactly is Fragmented mp4(fMP4)? How is it different from normal mp4? | <p>Media Source Extension (<strong>MSE</strong>) needs fragmented mp4 for playback in the browser.</p>
| <media><mp4><media-source> | 2016-02-03 12:59:34 | HQ |
35,177,970 | Find time duration between tow times with am pm selecton | I have three dropdown lists for selecting start time and another three for selecting end time .I want asp.net program which will give duration between two time and after i entered start time then end time should be greater than start time .first dropdown list contain 1 to 12 hours ans second contains 0 to 59 minutes an... | <c#><asp.net><time><difference> | 2016-02-03 13:07:50 | LQ_EDIT |
35,178,135 | Where is the insecure content "was loaded over HTTPS, but requested an insecure prefetch resource" | <p>This URL: <a href="https://steakovercooked.com/wedding/schedule-wedding-ceremony/" rel="noreferrer">https://steakovercooked.com/wedding/schedule-wedding-ceremony/</a></p>
<p>I can't find the insecure content and the Chrome keeps complaining,</p>
<p>any ideas?</p>
<p><a href="https://i.stack.imgur.com/pWn4m.png" ... | <https> | 2016-02-03 13:16:17 | HQ |
35,178,808 | How do I use transaction with oracle SQL? | <p>I am trying to use transaction blocks on a SQL-Console with an Oracle DB. I'm used to use transaxction blocks in PostgreSQL like</p>
<pre><code>BEGIN;
<simple sql statement>
END;
</code></pre>
<p>but in oracle it seems that this is not possible. I'm always getting "ORA-00900" errors and I don't know how to f... | <sql><oracle><transactions> | 2016-02-03 13:45:51 | HQ |
35,178,903 | Overwrite a File in Node.js | <p>Im trying to write into a text file in node.js.
Im doing this the following way:</p>
<pre><code>fs.writeFile("persistence\\announce.txt", string, function (err) {
if (err) {
return console.log("Error writing file: " + err);
}
});
</code></pre>
<p>whereas string is a variable. </p>
<p>This function... | <javascript><node.js> | 2016-02-03 13:50:23 | HQ |
35,178,987 | Which tab is "Google Chrome Helper" running on? | <p>In MacOS in the Activity Monitor Google Chrome extensions show as "Google Chrome Helper". These often take up much of the CPU time. Is it possible to determine which tab a given Google Chrome Helper process is running on?</p>
<p>Other people have suggested setting the plug-ins run mode to "Click to play". It seems ... | <macos><google-chrome><google-chrome-extension><activity-monitor> | 2016-02-03 13:53:43 | HQ |
35,179,318 | .net 5 Web API controller action arguments are always null | I did see a few threads here addressing similar issue but unfortunately nothing could solve my problem (so far).
**CONTROLLER METHOD**
Following is my controller method:
<!-- begin snippet: js hide: false -->
<!-- language: lang-html -->
namespace apiservice.Controllers{
[Route("api/[controlle... | <javascript><c#><ajax><asp.net-core><asp.net-web-api2> | 2016-02-03 14:08:49 | LQ_EDIT |
35,179,397 | Laravel environment variables leaking between applications when they call each other through GuzzleHttp | <p>I have two Laravel 5.2 applications (lets call them A and B) on my local machine, both configured on two different virtualhosts on my local Apache 2.4 development server.</p>
<p>Both applications sometimes are calling each other through GuzzleHttp. </p>
<p>At one point I wanted to use encryption and I started gett... | <php><apache><laravel><guzzle> | 2016-02-03 14:12:34 | HQ |
35,179,410 | How to wait until Kubernetes assigned an external IP to a LoadBalancer service? | <p>Creating a <a href="http://kubernetes.io/v1.1/docs/user-guide/services.html#type-loadbalancer" rel="noreferrer">Kubernetes LoadBalancer</a> returns immediatly (ex: <code>kubectl create -f ...</code> or <code>kubectl expose svc NAME --name=load-balancer --port=80 --type=LoadBalancer</code>).</p>
<p>I know a manual ... | <bash><kubernetes> | 2016-02-03 14:13:13 | HQ |
35,179,461 | Adding x86 and x64 libraries to NuGet package | <p>I have made a library which depends on CEFsharp which requires to build the library for specific platforms. So no AnyCPU support.</p>
<p>Now I want to pack this into a NuGet. As far as I understand you have to put these files into the build folder and have a <code>.targets</code> file which picks the correct dll to... | <nuget><msbuild-target> | 2016-02-03 14:15:21 | HQ |
35,179,781 | Why has the 'to lowercase' shortcut been removed from VS2015? | <p>In previous versions of Visual Studio, you could make all selected text lowercase with CTRL+U, and all uppercase using CTRL+SHIFT+U.</p>
<p>The uppercase shortcut remains in the 2015 version of VS, the lowercase shortcut, however, has been removed.</p>
<p>Does anybody have any info regarding this?</p>
<p>I though... | <ide><visual-studio-2015><keyboard-shortcuts> | 2016-02-03 14:29:59 | HQ |
35,180,971 | how can I do to know how many times the recipient open the email or the number of click? | <p>I'm working on an application in Java EE, one of the features of this application is to send emails using javamail.
I must make reporting on items , how can I do to know how many times the recipient open the email or the number of click?</p>
<p>Thank you in advance for your suggestions</p>
| <java><jakarta-ee><javamail> | 2016-02-03 15:23:23 | LQ_CLOSE |
35,181,112 | Javascipt: How can I change the class of a div by clicking another div? | I want to make a div appear when clicking on another div. I was thinking of doing this by using JavaScript to change the class of a div when another div is clicked on.
This is the HTML of the div I want to appear:
<div id ="menutext1" class - "hidden"> </div>
This is the HTML of the control div (the one ... | <javascript><jquery><html><css> | 2016-02-03 15:29:37 | LQ_EDIT |
35,181,260 | ExtensionlessUrlHandler and "Recursion too deep; the stack overflowed" | <p>I'm trying to get a fellow developer's app working on my machine. Solution is built in VS 2015 using Web API and I'm running it using 64-bit IIS Express. Every request is returning 500.0 errors. Request tracing log says this about it:</p>
<pre><code>1517. -MODULE_SET_RESPONSE_ERROR_STATUS
ModuleName ManagedPip... | <asp.net-web-api><url-routing><stack-overflow><iis-express> | 2016-02-03 15:36:19 | HQ |
35,181,340 | Rails: Can't verify CSRF token authenticity when making a POST request | <p>I want to make <code>POST request</code> to my local dev, like this:</p>
<pre><code> HTTParty.post('http://localhost:3000/fetch_heroku',
:body => {:type => 'product'},)
</code></pre>
<p>However, from the server console it reports </p>
<pre><code>Started POST "/fetch_heroku" for 127.0.0.1 at... | <ruby-on-rails> | 2016-02-03 15:40:17 | HQ |
35,181,679 | What is an Activity in Android? | <p>I'm a beginner to Android Development, Can anyone please explain what is exactly an 'Activity' means in Android ? Is that similar to a 'Page' of an Android Application ?</p>
| <android><android-layout><android-activity><android-studio><mobile> | 2016-02-03 15:55:51 | LQ_CLOSE |
35,181,785 | Android sometimes force kills application | <p>I start activity A, then start activity B.<br>
I press home button, then waiting long time.<br>
When I resume application, it force stopped. </p>
<pre><code>02-03 18:42:54.413 828-844/system_process I/ActivityManager: Force stopping ru.tabor.search appid=10089 user=0: from pid 20405
02-03 18:42:54.414 828-844/syst... | <android> | 2016-02-03 16:00:18 | HQ |
35,181,989 | How to remove the hash from the url in react-router | <p>I'm using react-router for my routing and I use the hashHistory option so that I could refresh the page from the browser or specify a url of one of my existing routes and land on the right page.
It works fine but I see the hash in the url like this:
<a href="http://localhost/#/login?_k=ya6z6i">http://localhost/#/log... | <reactjs><react-router> | 2016-02-03 16:09:09 | HQ |
35,182,013 | How can I check if vector elements are in order? | I need to check if in my vector the elements are in order
for(i=1; i<=K; i++)
if(v[i]=v[i+1]-1)
If the statement would be true I want to return the biggest integer.
> ex. 4 5 6 7
7 | <c++><vector> | 2016-02-03 16:10:23 | LQ_EDIT |
35,183,147 | what algorithm does STL size() use to find the size of string or vector in c++ | what algorithm does STL size() use to find the size of string or vector in c++?
I know that working of strlen() is dependent on finding the NUL character in the c char array but I want to know how does size() function work to find the size of string which is not null terminated as we know.
Does stl containers use... | <c++><string><stl> | 2016-02-03 16:58:27 | LQ_EDIT |
35,183,787 | In python, is math.acos() faster than numpy.arccos() for scalars? | <p>I'm doing some scientific computing in Python with a lot of geometric calculations, and I ran across a significant difference between using <code>numpy</code> versus the standard <code>math</code> library.</p>
<pre><code>>>> x = timeit.Timer('v = np.arccos(a)', 'import numpy as np; a = 0.6')
>>> x... | <python><math><numpy> | 2016-02-03 17:31:00 | HQ |
35,184,003 | Moment js convert milliseconds into date and time | <p>I have current time in milliseconds as - 1454521239279</p>
<p>How do I convert it to 03 FEB 2016 and time as 11:10 PM ?</p>
| <javascript><momentjs> | 2016-02-03 17:42:20 | HQ |
35,184,240 | webpack ERROR in CommonsChunkPlugin: While running in normal mode it's not allowed to use a non-entry chunk | <p>So When I try to split my application into 1 application.js file and 1 libraries.js file, everything works fine. When I try to split it up into 1 application.js file and 2 libraries.js files, I get this error when building:</p>
<p><code>ERROR in CommonsChunkPlugin: While running in normal mode it's not allowed to ... | <javascript><webpack> | 2016-02-03 17:55:47 | HQ |
35,184,454 | MYSQL HELP PLEASE CANNOT INPUT ENTRY BECAUSE OF FOREIGN KEY? | Hello i need help please, i keep getting this error when trying to add an entry to one of my tables.
Trying to add this code: `INSERT INTO ROUTE VALUES ('7418','66','200','313');`
into this table
CREATE TABLE ROUTE (
ROUTE_ID INT NOT NULL PRIMARY KEY,
ROUTE_NAME VARCHAR(45) NOT NULL,
DELIVE... | <mysql> | 2016-02-03 18:07:15 | LQ_EDIT |
35,185,010 | How to send the data from controller to service in angularjs | <p>I want to send the data from controller to service in angularjs. In controller I am calling service. This service is used to call some back-end api. I want to send some data from controller to service, which will be use to call back-end api. </p>
| <javascript><angularjs> | 2016-02-03 18:36:47 | LQ_CLOSE |
35,185,324 | How to make backgroundimage move in Swift iOS | <p>For one of the viewcontrollers in my app, I would like a moving background image. How would I go about making this?</p>
| <ios><swift><viewcontroller> | 2016-02-03 18:54:27 | LQ_CLOSE |
35,185,470 | sql is the column value is null get column from another table | I have two tables.
If percentage in table A is null then I want to look for it in table B
SELECT t.id,
CASE
WHEN t.percentage IS NULL
THEN (SELECT percentage FROM test2 AS s WHERE s.id=t.id )
ELSE t.percentage
END AS percentage
FROM [project_percentage] t
| <sql><sql-server> | 2016-02-03 19:02:05 | LQ_EDIT |
35,185,974 | Font-Awesome icon with an onclick event set | <p>I am trying to use the following font-awesome icon</p>
<pre><code><i class="fa fa-minus-circle"></i>
</code></pre>
<p>as a delete icon next to items in a list on my page like this:</p>
<pre><code>Item 1 delete-icon
Item 2 delete-icon
</code></pre>
<p>On click of one of these icons I need to run a J... | <javascript><jquery><html><css><font-awesome> | 2016-02-03 19:29:42 | HQ |
35,186,149 | CREATE PROCEDURE for INSERTING THE RECORDS, IF EXCEPTION, PROCEDURE NEEDS START FROM EXCEPTION LINE | I need to write the procedure for inserting the records in to multiple tables, for example I am HAVING here 3 table,
CREATE TABLE SOURCE
(
SORT_CODE NUMBER,
FLAG CHAR(1)
);
INSERT INTO SOURCE VALUES(605096,5);
INSERT INTO SOURCE VALUES(605097,5);
INSERT INTO SOURCE VALUES(605098,5);
INSERT I... | <sql><oracle><plsql><procedure> | 2016-02-03 19:39:15 | LQ_EDIT |
35,186,382 | How to run Python scirpt making a file | #!/usr/bin/env python3
# Script to convert HTML files provided by The Online Plain Text English
# Dictionary (http://www.mso.anu.edu.au/~ralph/OPTED/) into SQLite database
import sys
import sqlite3
from argparse import ArgumentParser, FileType
f... | <python><database><sqlite><command-line> | 2016-02-03 19:51:55 | LQ_EDIT |
35,186,902 | Testing progress bar on Android with Espresso | <p>The workflow should be the following:</p>
<ol>
<li>Activity starts</li>
<li>Progress bar is visible</li>
<li>Network request fires (idling resource is already registered so espresso knows how to wait for it).</li>
<li>Progress bar is hidden</li>
<li>Text from network is shown.</li>
</ol>
<p>Up to this point, I hav... | <android><android-espresso> | 2016-02-03 20:20:22 | HQ |
35,187,114 | I'm trying to sum up the top 80% by value of sales $ and give a count on how many customers make up that 80% | I'm trying to build a sales query for a rolling 12 months. I know my sales by customer, and my total sales. I'm trying to sum up the top 80% of sales $ and give a count on how many customers make up that 80%. Any ideas? I have a result set that looks like the below. Thanks in advance!
Customer Sales TotalSal... | <sql><sql-server-2008> | 2016-02-03 20:31:42 | LQ_EDIT |
35,187,475 | Autofac and Automapper new API - ConfigurationStore is gone | <p>I've been using Automapper and Autofac in a .Net app for some time. I configured them this way:</p>
<pre><code>builder.RegisterAssemblyTypes(typeof (OneOfMyMappingProfiles).Assembly)
.Where(t => t.IsSubclassOf(typeof (Profile)))
.As<Profile>();
builder.Register(ctx => new ConfigurationS... | <.net><automapper><autofac> | 2016-02-03 20:53:25 | HQ |
35,187,720 | C# dictionary keeps changing the values into the last added value. | <p>When I try to add a new name and number from textboxes into a dictionary, and then try to add the content of the dictionary to a listBox all the previous entries are the same. Like if I add "Bob Johnson 42", "Jim Smith 33", "Peter White 21". When I put it in the ListBox it will apear as:
Peter White 21
Peter White ... | <c#><dictionary><visual-studio-2015> | 2016-02-03 21:07:46 | LQ_CLOSE |
35,188,658 | In 2016, what is the correct way to create a commercial MS Office Add In? | <p>I've been writing VB6 code for Outlook and Excel for at least 10 years, but it's generally written in the VB Editor and saved as the default project or a worksheet module, therefore not very portable.</p>
<p>I'm at the stage now where I want to switch to .net and write proper add-ins, that I can distribute and pote... | <.net><excel><office-addins> | 2016-02-03 22:04:04 | LQ_CLOSE |
35,188,763 | result from Ajax Call | <p>I have an ajax call and I want to use result of this ajax on another page.</p>
<p>//This is main.js file</p>
<pre><code>function myFun(){
var my_user = "Stas";
var itemsUrl = "myxmlwithusers";
var user_found = false;
$.ajax({
url: itemsUrl,
method: "GET",
headers: { "Acce... | <javascript><jquery><ajax> | 2016-02-03 22:11:21 | LQ_CLOSE |
35,188,883 | Amazon Redshift Grants - New table can't be accessed even though user has grants to all tables in schema | <p>I have a bit of a funny situation in Amazon Redshift where I have a user X who has grant select on all tables in schema public, but once a new table is created, this grant doesn't seem to apply to the new table. Is this normal behaviour? If yes, how does one deal with it such that the schema level grants are maintai... | <amazon-redshift><database-permissions> | 2016-02-03 22:20:17 | HQ |
35,189,251 | Docker mount S3 container | <p>What is your best practise for mounting an S3 container inside of a docker host? Is there a way to do this transparently? Or do I rather need to mount volume to the host drive using the VOLUME directive, and then backup files to S3 with CRON manually?</p>
| <amazon-web-services><amazon-s3><docker><backup> | 2016-02-03 22:45:39 | HQ |
35,189,390 | tag anchor don't works at locahost | I'm using the Ratchet framework to compose a web page, but any achor tags doest Works, even though I using the true rule, for example:
<a class="control-item" href="contact.php">click me</a>
don't Works. I really don't understand, but Works with pure HTML code, and other frameworks. | <html> | 2016-02-03 22:57:40 | LQ_EDIT |
35,189,663 | S3 Invalid Resource in bucket policy | <p>I'm trying to make my entire S3 bucket public, but when I try to add the policy:</p>
<pre><code>{
"Id": "Policy1454540872039",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1454540868094",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s... | <amazon-s3> | 2016-02-03 23:19:35 | HQ |
35,190,392 | How to stop people from viewing my HTML and CSS | <p>I want to send a link to a client with some work I am doing for them but they are rather informed about IT and that would lead me to think that they know how to copy and paste some HTML and CSS. How would I go about stopping them from seeing the HTML, CSS and JS of the page I want to send them?</p>
| <javascript><html><css><private> | 2016-02-04 00:27:16 | LQ_CLOSE |
35,190,434 | Cordova installation error: path issue (?) - error code ENOENT | <p>After installing Xcode & NodeJS I am now trying to install Cordova but I am getting the following error regarding a missing file (wrong path?).</p>
<pre><code>Luciens-MacBook-Pro:~ lucientavano$ npm cache clean
Luciens-MacBook-Pro:~ lucientavano$ sudo npm install -g cordova
Password:
npm WARN deprecated npmconf... | <node.js><macos><cordova><npm><ionic-framework> | 2016-02-04 00:32:25 | HQ |
35,191,336 | How to map a dictionary in reactJS? | <p>I am getting a dictionary from an online api in the form of {{key: object}, {key: object},... For like 1000 Objects}. I would like to use reactJS to do something like </p>
<pre><code>this.props.dict.map(function(object, key)){
//Do stuff
}
</code></pre>
<p>This map works with arrays but it obviously doesn't work ... | <javascript><reactjs> | 2016-02-04 02:19:43 | HQ |
35,191,369 | How and where to add code to make a website responsive fit to all screen? | <h2>I have a quite dynamic file and trying to make this <a href="http://bunnymugsy.xyz" rel="nofollow">web</a> responsive, fit to all screen... can anybody help?</h2>
<p>I tried with skeleton css and also tried with different coding, but all failed. Since I started with Stacey Template in early time, it's quite tricky... | <html><css><responsive-design><portfolio> | 2016-02-04 02:23:06 | LQ_CLOSE |
35,192,053 | Macro Programming in Word | In Word, what is the macro vba code necessary for me to find a phrase, goto the beginning of the line the phrase is in, insert a page break, then leave myself in a position to execute the macro again. | <vba><ms-word> | 2016-02-04 03:38:07 | LQ_EDIT |
35,192,092 | Can anyone speed up this code | This code 8 cells from a data entry form and copies those cells to the next empty row on another worksheet that is used as a database. It works perfectly except that it takes 15 seconds to run. I know that I can speed up the code if it didn't copy to another sheet. It that scenario it think that I timed it at <7 sec... | <excel><vba> | 2016-02-04 03:41:59 | LQ_EDIT |
35,192,264 | Reversing a Sentence without reversing Characters in JavaScript and Java | how do i reverse a sentence like "Hello World" to "World Hello" Not dlroW oleo
Been search for an example on this forum the whole day | <javascript><reverse> | 2016-02-04 04:02:07 | LQ_EDIT |
35,192,736 | Usage of increment operators | <pre><code>#include <stdio.h>
#include <string.h>
int main()
{
int i=3,y;
y=++i*++i*++i;
printf("%d",y);
}
</code></pre>
<p>The i value is initially getting incremented to 4.Then it is incremented to 5. therefore it is incremented to 6. accordingly result should come 216. but 150 is coming as a result... | <c> | 2016-02-04 04:49:41 | LQ_CLOSE |
35,193,335 | How to reconnect to RabbitMQ? | <p>My python script constantly has to send messages to RabbitMQ once it receives one from another data source. The frequency in which the python script sends them can vary, say, 1 minute - 30 minutes.</p>
<p>Here's how I establish a connection to RabbitMQ:</p>
<pre><code> rabt_conn = pika.BlockingConnection(pika.Con... | <python><rabbitmq><pika> | 2016-02-04 05:42:07 | HQ |
35,194,285 | Unable to instantiate activity ComponentInfo{com.example.rajafarid.valentines/com.example.rajafarid.valentines.MainActivity2} | i am going to create a valentines app as i am a beginner so i have a first activity(MainActivity) that have a button which activate second Activity(MainActivity 2) the problem is that it says instantiate problem
it says in manifest file
com.example.rajafarid.valentines.MainActivity 2' has no default constru... | <java><android><xml> | 2016-02-04 06:47:15 | LQ_EDIT |
35,195,221 | List process for current user | <p>As an administrator I can get a users processes by running this</p>
<p><code>Get-Process -IncludeUserName | Where UserName -match test</code></p>
<p>But as a non-administrator I can't use <code>-IncludeUserName</code> becuase "The 'IncludeUserName' parameter requires elevated user rights".</p>
<p>So if I'm logged... | <powershell> | 2016-02-04 07:43:14 | HQ |
35,195,543 | How to display a progress bar while loading single bundled javascript file by webpack? | <p>The question is concerning webpack. After packing almost everything into a single bundle.js which is loaded in index.html, the bundle.js file is about 2M and requires several seconds to load. </p>
<p>I'd like to display a progress bar indicating loading progress while hiding all the content. Only enable user intera... | <javascript><webpack> | 2016-02-04 08:02:42 | HQ |
35,195,718 | I am automating angular js application, i am unable to click button using ng-click ,can u please share java script code??? for ng click | Here is the HTML code :
<a ng-click="openProjectModal($event)">Create Project</a>
I tried below code:
.//a[ng-click='openProjectModal($event)']
Using xpath it is working but i don't want to use xpath.
| <angularjs><xpath> | 2016-02-04 08:13:04 | LQ_EDIT |
35,196,040 | How to identify button without X path in selenium | Code is below
<button type="submit" class="login-button">Login</button>
In selenium i tried this code
driver.findElement(By.classname("Login")).click();
please help me in this code without x path | <selenium><selenium-webdriver> | 2016-02-04 08:32:20 | LQ_EDIT |
35,196,335 | How to find every version of android support libraries source code | <p>I meets some problems so I want to find the source code of the Android support libraries . For example , I want to read the ActionBarActivity.java source code in version 19.0.1 and 20.0.0 in support.appcompat-v7 , and find out the difference between the two versions.</p>
<p>I found the <a href="https://github.com/a... | <android><android-support-library> | 2016-02-04 08:48:44 | HQ |
35,196,625 | Including HTML inside Jekyll tag | <p>Instead of writing out <code>{% include link_to.html i=5 text="hello world" %}</code> all the time, I've written a custom tag that allows me to do <code>{% link_to 5 hello world %}</code>. It finds the page with data <code>i</code> equal to 5 and creates a link to it.</p>
<p>But it feels clunky to generate HTML str... | <html><jekyll><liquid> | 2016-02-04 09:02:36 | HQ |
35,196,704 | after changing the date format it is not getting reflected in the table | [enter image description here][1]
[1]: http://i.stack.imgur.com/uItaU.png
why can i see the change in the table???
| <sql><oracle><sqlplus><date-formatting> | 2016-02-04 09:06:11 | LQ_EDIT |
35,197,052 | How to I comment a line in /etc/sudoers file using Chef Recipe? | I want to comment **"Defaults requiretty"** line present in ***/etc/sudoers*** file using Chef. If it is already commented, the ruby code should skip commenting it. I'm using CentOS 6.7 operating system. | <ruby><chef-infra><chef-recipe> | 2016-02-04 09:22:57 | LQ_EDIT |
35,197,362 | Unable to open cqlsh Apache cassandra - ImportError: No module named cqlshlib | <p>I am new to cassandra ! Have downloaded the apacahe cassandra 2.1.2 package and initialy was able to connect to cqlsh but then after installing CCM i am unable to connect , will get the following error</p>
<pre><code>Traceback (most recent call last):
File "bin/cqlsh", line 124, in <module>
from cqlshlib impo... | <cassandra> | 2016-02-04 09:37:59 | HQ |
35,197,836 | npm with node-sass and autoprefixer | <p>I use node-sass to compile all my Sass files to a master.css.
This works well but now I want to add prefixes. I would like to use only the npm, no Gulp or Grunt.</p>
<p>Here my package.json file:</p>
<pre><code>{
"name": "xxxxxx.com",
"version": "1.0.0",
"description": "",
"watches": {
"sass": "src/scs... | <node.js><compilation><npm><autoprefixer><node-sass> | 2016-02-04 09:59:55 | HQ |
35,198,082 | How can I extract date from since time component | <p>I have to extract date in the format MM-dd-yyyy in java from the since time value. Since time is the time at which the doucment is created. For example, if since time is <strong>1452413972759</strong>, date would be "<strong>Sun, 10 Jan 2016 08:19:32 GMT</strong>" (Calculated from <a href="http://www.epochconverter... | <java><date><simpledateformat> | 2016-02-04 10:09:14 | LQ_CLOSE |
35,198,264 | React-Native Offline Bundle - Images not showing | <p>I have a React-Native app I'm trying to deploy in Release mode to my phone. I can bundle the app to the phone. Database, Video and audio assets are all in there but no images are showing in the UI. </p>
<p>I have done the following to 'bundle' my app:</p>
<ol>
<li>in the project folder in Terminal run <code>react-... | <ios><xcode><react-native> | 2016-02-04 10:18:18 | HQ |
35,198,305 | Android Change Button text randomly | <p>How to change button text every 5 secs ? i,e First the text will be "hello" and after 5 secs it should be "Hi" and then "hello" and then "hi" and so on until I click that button.</p>
| <android><button> | 2016-02-04 10:19:38 | LQ_CLOSE |
35,198,925 | Toggle class on and off in jquery with button | <p>I'm new to javascript but I'm having a hard time toggle this class on and off.</p>
<p><a href="https://jsfiddle.net/spadez/o2s0hmtv/2/" rel="nofollow">https://jsfiddle.net/spadez/o2s0hmtv/2/</a></p>
<pre><code>$( "#togglebtn" ).click(function() {
$(.mynav).toggleClass( "modal" );
});
</code></pre>
<p>Based on t... | <javascript><jquery> | 2016-02-04 10:45:07 | LQ_CLOSE |
35,199,808 | Clojure: Unable to find static field | <p>Given the following piece of code:</p>
<pre><code>(map Integer/parseInt ["1" "2" "3" "4"])
</code></pre>
<p>Why do I get the following exception unless I wrap <code>Integer/parseInt</code> in an anonymous function and call it manually (<code>#(Integer/parseInt %)</code>)?</p>
<pre><code>clojure.lang.Compiler$Comp... | <clojure> | 2016-02-04 11:29:10 | HQ |
35,201,358 | How to include untyped node modules with Typescript 1.8? | <blockquote>
<p>Typescript 1.8 now supports untyped JS files. To enable this feature,
just add the compiler flag --allowJs or add "allowJs": true to
compilerOptions in tsconfig.json</p>
</blockquote>
<p>via <a href="https://blogs.msdn.microsoft.com/typescript/2016/01/28/announcing-typescript-1-8-beta/">https://b... | <javascript><typescript><ecmascript-6><node-modules><ts-loader> | 2016-02-04 12:43:41 | HQ |
35,201,431 | Contains dont Work as I expected | I'm wondering why I cannot compare this objects
public class myCustomClass
{
public string Value { get; set; }
public List<string> Keys { get; set; }
}
And i receve an List<myCustomClass>
I created an comparer and lookslike
var comparer = new MyQueryStringInfo {
... | <c#> | 2016-02-04 12:47:20 | LQ_EDIT |
35,201,595 | Instance of variable | <p>I have a c code</p>
<pre><code>int foo( int *p, int n){
int a[81];
int i,v;
for( i = 0; i < n ; i++){
a[i]=p[i]
if( n == 1 ) return a[0];
v=foo ( a, n-1);
if( v > a[n-1] )
return v;
else
return a[n-1];
}
int main ( void ){
int b[81], i;
for( i = 0; i < 81; i++){
b[i]=r... | <c> | 2016-02-04 12:55:49 | LQ_CLOSE |
35,202,655 | Write java to execute curl command line | <p>I want to write java code to implement this curl command:</p>
<pre><code> curl --form "file=@7_018011.gif" --form "apikey=helloworld" --form
"language=por" https://api.ocr.space/Parse/Image >> m.txt
</code></pre>
<p>where <b>@7_018011.gif</b> is the name of the image i want user to input to send the requ... | <java><curl> | 2016-02-04 13:44:02 | LQ_CLOSE |
35,202,815 | How to get image from the page and store in variable via jquery? |
img src="~/Images/Barcodes/MGRNNo.jpg" id="barCodeImage" width="150px" height="60"
I want to store the above image in varibale via jquery
like
var barcodeimage=$('#barCodeImage').image();
and
I want to print it
like
applet.append64(barcodeimage);
applet.print();
is it possible ?
| <javascript><jquery> | 2016-02-04 13:51:00 | LQ_EDIT |
35,202,993 | How can I connect my autoscaling group to my ecs cluster? | <p>In all tutorials for ECS you need to create a cluster and after that an autoscaling group, that will spawn instances. Somehow in all these tutorials the instances magically show up in the cluster, but noone gives a hint what's connecting the autoscaling group and the cluster.</p>
<p>my autoscaling group spawns inst... | <amazon-ec2><docker><amazon-ecs> | 2016-02-04 13:58:55 | HQ |
35,203,438 | create table sql in access | this is my query in sql it seems to say i have a syntax error im used to coding in sql server not access fo i expected this outcome if anyone could help me correct my code id really apprisiate it
create table M (
NMR_METER_PT_REF Varchar (50) ,
NMR_ST_METER_READ_DATE Datetime,
NMR_END_METER_... | <sql><ms-access> | 2016-02-04 14:19:31 | LQ_EDIT |
35,203,647 | Updating Visual Studio 2015 extensions end up disabled | <p>I have a machine with seems to repeat the following pattern with VS2015 (including all patches).</p>
<ol>
<li>Install an extension and it's fine, works perfectly.</li>
<li>The developer of the extension releases a new update.</li>
<li>Update extension, which means VS2015 needs to be restarted.</li>
<li>Restart VS20... | <visual-studio-2015> | 2016-02-04 14:29:01 | HQ |
35,203,909 | Can I stop the transition to the next state in an onExit? | <p>I have two states, A and B. </p>
<ul>
<li>When I exit state A by clicking on a close button I do a transition to screen A using $state.go to state B (screen B) </li>
<li>When I exit state A by clicking on the back browser button on screen A I do a transition to state B (screen B) as the browser URL changes</li>
</u... | <angularjs><angular-ui-router> | 2016-02-04 14:39:05 | HQ |
35,204,586 | Excel Cell Range Name Clears After Saving File | I have a problem regarding excel cell range. So I have an excel file containing cell ranges but when I save it and reopened the same file some cell ranges were missing. I have tried "save as" but still same results. I have also searched but still no luck. Hope someone helps me. Thank you in advanced. I'm losing time fi... | <excel><vba><range> | 2016-02-04 15:09:03 | LQ_EDIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.