text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Where is the Authorized Redirect URIs in Google API now?
I am using Google Drive API. I have set up my project, set the credentials on OAuth 2.0 Client IDs, filled in every item on OAuth Consent Screen. Neither from OAuth Consent Screen and the OAuth 2.0 Client IDs, I cannot find the authorized redirect URLs.
Where is ... | common-pile/stackexchange_filtered |
cap production deploy ruby on rails
I tried to deploy the ruby on rails project from a github folder. However, I got such an error when I run cap production deploy
/home/deploy/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
'require': cannot load such file -- capistrano/cli (LoadError) ... | common-pile/stackexchange_filtered |
Using smart pointers for class members
I'm having trouble understanding the usage of smart pointers as class members in C++11. I have read a lot about smart pointers and I think I do understand how unique_ptr and shared_ptr/weak_ptr work in general. What I don't understand is the real usage. It seems like everybody rec... | common-pile/stackexchange_filtered |
spring security: how to configure a set of test data for authentication
I would like to set some test data username-password, I followed different examples and I used the sequent code in spring-security.xml:
<security:http auto-config='true'>
<security:intercept-url pattern="/logged" access= 'ROLE_USER' />
<secu... | common-pile/stackexchange_filtered |
Use ContentPlaceHolder's default content instead of page's content
When a page that uses a master page doesn't have an asp:Content control for one of the master page's ContentPlaceHolders, the default content is shown instead. I want to use that default content on a page that does have an asp:Content control for that C... | common-pile/stackexchange_filtered |
Camera chasing player
I want the camera to follow the player and lag a little bit and then catch up with the player when the player halts. When stopped the player is in the center.
At the moment im at the point where i get the camera to move with the player but i dont know how to get the lag effect!
On the camera obj... | common-pile/stackexchange_filtered |
Registry Monitoring using RegNotifyChangeKeyValue
The below code is to monitor the changes occurred in the registry (add, delete, modify) the waiting is done till some changed is occurred
Now looking for output in which key the change action is performed
the changes in registry the key name should be the output
void __... | common-pile/stackexchange_filtered |
Facebook reactions as a metric for user engagement
Previously when facebook only had a 'like' button and comments for people to respond to a post, user engagement can be evaluated in terms of the number of likes as well as the number of comments. Since making a comment takes more effort than clicking the 'like' button,... | common-pile/stackexchange_filtered |
How to open eml file: "Invalid path or URL"
I have a snippet of VBA code where I want to press a button in Excel that will open an Outlook template.
I get an error
Invalid path or URL
Sub emailBugReport()
Dim myoutapp As Object
Dim myitem As Object
Set myoutapp = CreateObject("Outlook.Application")
... | common-pile/stackexchange_filtered |
javascript resolveLocalFileSystemURL triggering both success and fail callbacks
I am doing a simple file check in my cordova app using the following back to back commands:
function initWhipData(dir) {
console.log("DIR = " +dir) ;
}
//Test:
window.resolveLocalFileSystemURL(fPath + "whipdata.json",
function() { co... | common-pile/stackexchange_filtered |
How can I run a command on several buffers / files?
I'm working on some code that is spread across several files.
I keep finding myself doing whitespace-cleanup and indent-region (on the whole file), and having to do it on each of the six files.
Any way to say: 'do tidying up on all .c and .h files currently open',
or... | common-pile/stackexchange_filtered |
What are the Advantages and Disadvantages of JQuery and Glow JavaScript Libraries?
Can anyone give a comparison of JQuery and the BBC's Glow JavaScript libraries?
BBC's Glow JavaScript Library was just released. No one outside the BBC has much experience with it yet.
There's an Ajaxian discussion here.
There's a bit o... | common-pile/stackexchange_filtered |
Why does gvim often freeze when editing files on a USB memory stick?
I'm using gvim 7.2 on Windows XP to edit files on a slow USB memory stick. When other programs are accessing the stick, the editor freezes for several seconds at a time.
I have already tried using the "set directory" command to move the Vim swap files... | common-pile/stackexchange_filtered |
How is this Makefile being encountered?
Here is my simple Makefile:
#create an exe file
run: link
gcc link.o -o run
#sketch link.o
link.o: main.o sum.o
ld -r main.o sum.o -o link.o
#sketch main.o
main.o: main.c
gcc -c main.c -o main.o
#sket... | common-pile/stackexchange_filtered |
List to Map of List using java streams
I have a class Company
public class Company {
private String companyid;
private List<Employee> employees;
}
Which is related to Employee in One2Many relationship
public class Employee {
private String employeeId;
private Company company;
}
I am supplied with... | common-pile/stackexchange_filtered |
C: Is this a correct case for type-casting?
When I compile the following code (with -Wall), I get no warnings because I cast the *(str)++ to void type. However, if I do not cast that operation to void type, the follow warning is put: warning: value computed is not used [-Wunused-value] Is this the correct way to get ri... | common-pile/stackexchange_filtered |
How can I access a non-static member in a static event handler?
I already know you can't normally do this but here's my situation:
I have a non-static List<T> that gets added to during normal use, and then dumped to a database at an interval. I want to be able to use AppDomain.CurrentDomain.ProcessExit in order to dump... | common-pile/stackexchange_filtered |
angular.element with and without `document.querySelector`
Inside my directive I want to access a id from my DOM. I integrated jQuery in my project, But the problem is two way I can access my desired DOM:
var myEl = angular.element('#divID');
And
var myEl = angular.element(document.querySelector('#divID'));
My questio... | common-pile/stackexchange_filtered |
Generator and functions
I'm not sure what's happening here. Today is my first foray into the world of generators. I put this into the pythontutor visualizer but I'm not understanding why this is happening. The visualizer spits out "generator return instance". I've read the other SO threads that are similar to mine ... | common-pile/stackexchange_filtered |
Error with package versions
In a large document of mine I encountered a strange error, which I reduced to this MWE
The environment NormalText is excluded, so I expect that nothing in it appears in the output. The peculiar thing is, that when it contains an \iffalse \fiAND within that a\begin{verse} \end{verse}`, the c... | common-pile/stackexchange_filtered |
Git issues with shared folders in Vagrant
I have never seen this issue before while using Vagrant, so I'm hoping this makes sense to someone. I have a folder that contains a git repository, that is being synced with a Vagrant machine running CentOS 6.5, and seeing some inconsistencies with Git.
On my host machine (Mac ... | common-pile/stackexchange_filtered |
Attempt to insert record on page where this table is not allowed
I get the message above (Attempt to insert record on page where this table is not allowed) when trying to create a new record from an extension.
The "page" i try to create the record in is a sysfolder and not a page
t3lib_extMgm::allowTableOnStandardPag... | common-pile/stackexchange_filtered |
Visual c++ Form - How to change the visible properties of a label through a button click?
So this is the first time I've attempted to change the visible properties of objects in forms and I've run into some problems. I was hoping someone here could offer some insight. Essentially what i'm trying to do is create a Quiz ... | common-pile/stackexchange_filtered |
CONSUME ABAP stack OData from JAVA Stack
I have a ABAP application up and running in ABAP Stack of my Solman.
If I build a UI5 application and deploy it in JAVA Stack, will I able to consume the ABAP OData from the UI5 application. If yes, how we can do this since both are in different stack?
Generally yes, your SAPUI... | common-pile/stackexchange_filtered |
I found code that I would like to use in my Dev Org, but I don't know how to. Can anyone offer guidance on implementing this code?
Here's a link to the code that I would like to implement in my Developer Edition org. The code is used to offer a combination of B2B and B2C in the same org without using person accounts.
A... | common-pile/stackexchange_filtered |
How do I continually monitor for new TCP clients?
I have a TCP server that continually monitors for new incoming clients asynchronously and adds them to a client list:
public class TcpServer
{
public List<TcpClient> ClientsList = new List<TcpClient>();
protected TcpListener Server = new TcpListener(IPAddress.An... | common-pile/stackexchange_filtered |
Time series label in R
I have a dataframe in R where:
Date MeanVal
2002-01 37.70722
2002-02 43.50683
2002-03 45.31268
2002-04 14.96000
2002-05 29.95932
2002-09 52.95333
2002-10 12.15917
2002-12 53.55144
2003-03 41.15083
2003-04 21.26365
2003-05 33.14714
2003-07 66... | common-pile/stackexchange_filtered |
Characteristics for nonlinear waves governed by $u_t + c(u)u_x = 0$
I have some confuse about the characteristic of nonlinear wave propagation. I read the PDF from A. Salih at IIST about the Inviscid Burgers’ Equation, where the original PDF can be find at the (https://www.iist.ac.in/sites/default/files/people/IN08026/... | common-pile/stackexchange_filtered |
How to manipulate a town to improve it?
So there's this town of 80.000-90.000 people which grew quickly with the industrialization boom, but nowadays there are no big companies here, nor good opportunities for young people. So the youth is leaving this town either to study anywhere else or to find better jobs, and olde... | common-pile/stackexchange_filtered |
Conditional calculation based on hierarchy level using mxd and ssas 2012
I am trying to do some conditional logic based on a hierarchy level.
In my ssas cube I have the following hierarchy defined:
Team
Subteam
Employee
I want to create a calculated member "efficiency" which does
DIVIDE([Measures].[A], [Measur... | common-pile/stackexchange_filtered |
Linker error when trying to use MPMoviePlayer
On a fresh install of Xcode 3.1.2, I'm trying to use the iPhone MoviePlayer as shown in the sample code at http://developer.apple.com/iphone/library/codinghowtos/AudioAndVideo/index.html#INITIATE_VIDEO_PLAYBACK_IN_MY_CODE
However, Xcode reports the following linker errors w... | common-pile/stackexchange_filtered |
How can we use a string variable in a declare statement?
A "normal" declare statement for a DLL function looks something like this:
Declare Sub subName Lib "path_to_lib" _
Alias "aliasName" _
(...)
In my application, it would be nice to have the user select their library location, after which I write that loc... | common-pile/stackexchange_filtered |
Alert shown in onActivityResult
I am trying to show custom alert from onActivityResult. I need to inflate it, so am getting context with getApplicationContext() and everything is fine until I execute alertDialog.show() - then it fails with:
Unable to add window -- token null is not for an application
Do you know why ... | common-pile/stackexchange_filtered |
Why doesn't close vote count toward Deputy/Marshal
I'm just curious why close votes dont seem to count as helpful for deputy/marshal badges. It seems like they should since when you get to 3k you get your ability to flag questions replaced by vote close.
Does anyone know why this is?
Good point. Before I reached 3k on... | common-pile/stackexchange_filtered |
Angular Js- Bootstrap table not refreshing immediately after new data is added
books.html
<div ng-controller="BookController">
<table datatable="ng" class="row-border hover" ng-table="tableParams">
<thead>
<tr>
<th>BookID</th>
<th>BookName</th>... | common-pile/stackexchange_filtered |
Web component tester 504 Gateway Timeout
I installed web component tester for my polymer application. Running wct command from my project is throwing me this error. Has anyone encountered this issue?
TestM:my-app 212394486$ wct
Installing and starting Selenium server for local browsers
Selenium server running on port 5... | common-pile/stackexchange_filtered |
get preceding value based on priority
I've XML like below.
<root>
<title></title>
<section>
<title>
<content-style font-style="bold">Short title</content-style>
</title>
<figure>
<caption>
<para></para>
</caption>
<graphic/>
</figure>
<para>
<phrase>... | common-pile/stackexchange_filtered |
Is there an hybrid app framework which is HTML-CSS-JavaScript → all vanilla and if so what is it?
I need an Hybrid app framework which is HTML-CSS-JavaScript → all vanilla, that would allow me to develop hybrid applications usable in both Desktop computers (laptops or otherwise) and pocket computers (smartphones or ot... | common-pile/stackexchange_filtered |
getClass() method returning different class than expected
I am removing duplicates of path from list using:
paths.removeAll(Collections.singleton(path));
I am running above code from TestClass.java running Junit test cases.
Equals and hashcode methods consider string value inside path object.
Equals method fails in be... | common-pile/stackexchange_filtered |
1: The momentum operator has that negative i in front - why not positive i? Both seem mathematically valid when you square them to get the kinetic energy operator.
2: Consider the plane wave $e^{ikx}$. When you apply $-i\hbar \frac{\partial}{\partial x}$ to it, you get $\hbar k$ times the original function. That eigen... | sci-datasets/scilogues |
So, if we needed to get pure water from a salt solution, simple distillation seems like the most direct method.
It is, provided the components have sufficiently different boiling points. In the case of salt and water, the difference is massive.
Right. Sodium chloride boils at over 1400°C, while water boils at 100°C. ... | sci-datasets/scilogues |
List size isnt working as expected for partner user
I have observed very weired nature in Lists result.
I run this query in query editor:
select id, Title, Description, FileType,FeaturedContentDate,FeaturedContentBoost,ContentDocumentId,TagCsv
from ContentVersion
where FeaturedContentDate!=null and FeaturedContentBoos... | common-pile/stackexchange_filtered |
Try Except in python :syntax issue
class ShortInputException(Exception):
'''A user-defined exception class.'''
def __init__(self, length, atleast):
Exception.__init__(self)
self.length = length
self.atleast = atleast
try:
s = raw_input('Enter something... | common-pile/stackexchange_filtered |
How to flatten a hetrogenous list of list into a single list in python?
I have a list of objects where objects can be lists or scalars. I want an flattened list with only scalars.
Eg:
L = [35,53,[525,6743],64,63,[743,754,757]]
outputList = [35,53,525,6743,64,63,743,754,757]
P.S. The answers in this question does not w... | common-pile/stackexchange_filtered |
Fragment WebView should load last URL
In my application I have a sliding menu, In sliding menu I have four options, those are fruits, vegetables,animals, birds. And these are fragments. In each fragment I have a Web view. now what I want is when I am loading a web and performed some search , now I will open another fra... | common-pile/stackexchange_filtered |
Make 2 workspaces on 1 monitor in GNOME Shell?
Is there any way to make 2 workspaces on one screen with GNOME Shell 3.36 on Ubuntu 20.04? I need this because I want to use browser (or any other app) in full screen mode but only on half of my screen, but I've found no solutions. So maybe there is a way to place 2 worksp... | common-pile/stackexchange_filtered |
Threading time in quiz game
How can I use a threading timer to get a countdown while waiting for the user to get input and if it is out of time, the next question auto pops up? Is it possible for me to stop threading immediately? Like if the user input and it stop counting
with open("question.txt", "r") as question_fil... | common-pile/stackexchange_filtered |
Why is my Axios fetch giving CORS errors?
I have spent more than 3 hours trying to research and find a solution to this. I have looked at numerous other answers on StackOverflow, and nothing was able to help. List of my research at the bottom
I am trying to access a public API.
When I do curl it is fully accessible.
Wh... | common-pile/stackexchange_filtered |
Implementing -hash and -isEqual for a geo coordinate class
I have an object which stores a latitude/longitude/altitude, and need reliable and fast -hash and isEqual implementations. I am using double to store all of the primitives.
The accepted answer for Best practices for overriding isEqual: and hash, looks good, but... | common-pile/stackexchange_filtered |
Should person with schizophrenia have children?
I wanted to ask you whether it is ethical for a person with schizophrenia to have biological children. Do any Buddhist traditions teach anything in that regard?
When one parent has this illness, the chance that kid would have it too is about 17%, as compared to 1% in gen... | common-pile/stackexchange_filtered |
Acting up for Daddy
My partner's 4 year old daughter lives with us. I look after her more than my partner. She is generally well behaved, polite little girl and we have lots of fun. As soon as Daddy comes home she turns into this demanding whiny little brat. I can not stand it! I think it is because Daddy is much softe... | common-pile/stackexchange_filtered |
How to automatically create sqlite test db when executing parallel tests?
When executing tests separately I have added this functions to make sure sqlite db would be created if it's not there:
abstract class TestCase extends BaseTestCase
{
use CreatesApplication, DatabaseMigrations;
public function setUp(): vo... | common-pile/stackexchange_filtered |
Center a canvas element without affecting coordinates for game
I have a game that I'm coding on the HTML5 canvas, and I centered the canvas, but now it's messing with the coordinates in event.clientX and event.clientY for my event listener I have for clicks, I tried changing document.addEventListener to canvas.addEvent... | common-pile/stackexchange_filtered |
how to unpickle binary data stored in postgresql by psycopg2 module in python?
I am using cPickle and psycopg2 to store some vectors into database.
This is my code to store binary data
binary_vec = cPickle.dumps(vec, -1)
db.cur.execute('''
INSERT INTO feature_vector (vector, id)
VALUES (%... | common-pile/stackexchange_filtered |
This recursive function puzzles me, what is going on?
I was playing around with recursion and did this simple function. I was assuming that it would print out 9-0 to stdout, but, it prints 0-9. I can't see how that happens at all.
int main()
{
rec(10);
return 0;
}
int rec(int n){
if(n > 0)
... | common-pile/stackexchange_filtered |
Using Javascript or Jquery to dynamically create incrementing id for table as each row is created
I would like for a user to click an image in this table which is created dynamically based on the JSON data sent from the web service, and have the image change. When clicking the image again it will change back to the fir... | common-pile/stackexchange_filtered |
Foreign key and transaction
I'm trying to use transaction when creating table group, and table with relation user-group.
It works ok when I don't use transaction, so the naming of the attributes is correct. Here is the code:
$db = Yii::app()->db;
$transaction = $db->beginTransaction();
... | common-pile/stackexchange_filtered |
What is the analog to Fourier Transform for the sum of normals?
In electric engineering (my field) we use Fourier Transform to represent an arbitrary signal as a sum of sinusoidal signals.
I've stumbled upon a statistics problem where I want to decompose a distribution function as a sum of normal curves. Like the drawi... | common-pile/stackexchange_filtered |
Is there a way to get serializer or content-type from inside Catalyst::Controller::REST class?
Generally it seems that the way Catalyst::Controller::REST is that you put a reference into "entity" and then Catalyst::Action::Serialize picks a content-type and a serializer after you're done.
In my case, I may be dealing w... | common-pile/stackexchange_filtered |
PERL: Check if file exists, email a flag to the user that the report didn't exist, zip the files and transfer them
Can any one help me creating a zip file out of two files one a excel and one a pdf. Im doing this without the Archive::zip because I can not install it. I am trying to go through the directory and pick up ... | common-pile/stackexchange_filtered |
"Special case" of Brianchon's theorem for any conic section.
Let $c$ be an arbitrary conic section. Choose $6$ distinct points on $c$. Draw $6$ lines $t_1,t_2,...t_6$ through these points that are tangents to $c$. Denote points $T_1=t_1\cap t_2,T_2=t_2\cap t_3\cdots T_6=t_6\cap t_1$. Then lines $\leftrightarrow T_1T_4$... | common-pile/stackexchange_filtered |
How do I install mingw-std-threads on Ubuntu?
I am downloading the Bitcoin source code for Windows, and trying to compile it using these steps.
I am receiving these errors when I make my Bitcoin source code on Windows Subsystem for Linux
error: ‘mutex’ in namespace ‘std’ does not name a type mutable std::mutex mutex;
I... | common-pile/stackexchange_filtered |
Installing zend-server php 5.3 on debian 7.x using chef cookbook
When trying to install zend server (6.3) with php5.3 on debian 7.x (wheezy) using the zendserver cookbook for Chef I get the following error: (needs to be php5.3 because of old code in PHP application)
==> default: [2014-12-13T16:36:23+00:00] INFO: Starti... | common-pile/stackexchange_filtered |
Equidistribuion of distances of integer points to a circle
I have noticed in the following graph that the distance
between points $k \in\mathbb{Z}^2\cap C_7^1$ ($C_7^1$:=Circle with radius 7 and shell with thickness 1) and the nearest point on the inner circle is quite random.
I did some further investigations in R a... | common-pile/stackexchange_filtered |
Print margin at position Xpx (visual only)
I'm using tinyMCE v4. Is it possible to create a print margin (visual only) at custom position (e.g. 700px)? In the image below, print margin is marked with orange color.
TinyMCE has no built in way to do this. You could use CSS to apply something to the <body> of the docum... | common-pile/stackexchange_filtered |
Converting OCaml to F#: OCaml equivalent of F# spec, specifically initialization
In the process of converting the OCaml Format module to F# I find that I need to understand the initialization process in detail. For F# this is explained in section 12.5 Program Execution of the F# spec. While the OCaml documentation page... | common-pile/stackexchange_filtered |
Is the interesting/ignored tags feature having problems?
I thought adding an interesting/ignored tag would update the question list accordingly.
Now it gives an error trying to do the update ('k' is undefined). It will remove the highlighting for questions with an interesting tag and show questions that were previously... | common-pile/stackexchange_filtered |
How to pass in URI variable values to url
Forgive the rookie question--
how do you pass in a the value for a uri variable in a url?
(this is for a spring boot app making a REST call)
for example if I have the url:
"http://example.com/hotels/{hotel}/bookings/{booking}"
And assuming 'hotel' and 'booking' have String va... | common-pile/stackexchange_filtered |
How can I rearrange paragraphs of information into a form which can be easily taken to csv?
I'm new to PS and I am currently trying to make a PS script which can rearrange paragraphs with specific information into a form which can be easily taken to csv file.
The initial information looks like that:
IP Address: <IP_ADD... | common-pile/stackexchange_filtered |
Prevent software to log out by interacting
I have some softwares that will log me out if I don't interact with them for a given amount of time (as a security option).
However I don't want that to happen so I'm trying to find a way to automatically interact with them every 10 mins for example.
How can I do that? Possibl... | common-pile/stackexchange_filtered |
Finding out what makes your file size big?
Is there a way to see exactly which objects/textures/etc in my scene take up the most memory? My scenes often get rather big, bigger than I feel they should be, and rendering them obviously then tends to take quite some time.
So is there a way to see what uses the most data/me... | common-pile/stackexchange_filtered |
Netgear router becomes unresponsive frequently
I have a Netgear WNR3500v2 router that becomes unresponsive frequently (once a day or so); all connections through the router drop and all pings to the router time out. New computers timeout when trying to connect wireless; and wired-connected devices don't get assigned I... | common-pile/stackexchange_filtered |
Gatsby Lifecycle API question relating to Create Node and Create Page
I am trying to learn Gatsby by writing a plugin using the lifecycle API. I am using the Gatsby default starter and I put in my local plugin's gatsby-node.js some debug statements. Here's the output of gatsby build:
- creating node: [Site] children: [... | common-pile/stackexchange_filtered |
jQuery Slimscroll to HTML table with fixed header
I am researching my way to use slimscroll plugin to apply to html table, which is getting filled with the business data from a web service. However as the title depicts, slimscroll scroll the entire div and header of table too. I am trying to achieve fixed header with t... | common-pile/stackexchange_filtered |
Steps to create or steps to creating
I am writing some technical documentation and I got confused when I saw the following paragraph title:
Steps to creating a new thing* in production
I think the correct title should be:
Steps to create a new thing* in production
But I'm not an English native speaker, the person w... | common-pile/stackexchange_filtered |
Overlaying 2 or more shapes in a bitmap file created in C?
i was working on a program that will, depending on the input draw, shapes of different colors onto a bitmap file, it works fine if i just have to draw one shape, but if i for example take two or more shapes it just draws over the old picture and the old one get... | common-pile/stackexchange_filtered |
Good book on asymptotics and especially equivalence
I'm trying to deepen my knowledge of asymptotic analysis and I find very few resources must of them just state the definition and theorems.
I'm especially looking to understand this definition more clearly $$ f(x)=g(x)(1+o(1))$$ sometines writen like this: $$u_n=(1+\e... | common-pile/stackexchange_filtered |
Where does Visual Studio stores the default browser to use in debug?
I'm using Firefox as my default browser but when working in Visual Studio, I'd like to fire up IE when I go in debug.
We all know that in MVC application, there's no way to choose the default browser unless you add a web form file, right click it, sel... | common-pile/stackexchange_filtered |
mysql 8 using a wildcard in query when selecting a date
Im currently using this query:
General error: 1525 Incorrect DATE value: '2020-02%'
The SQL being executed was: SELECT
'01',
2103,
cssd._campaign_id,
cssd.first,
cs... | common-pile/stackexchange_filtered |
Ubuntu Touch RC version 42 bricked my Nexus 4
I have been running a Nexus 4 with Ubuntu Touch (mako) rc (http://system-image.ubuntu.com/ubuntu-touch/rc/ubuntu/mako/) for about the last month. It's really great overall.
This morning I got a notification that an update to the Ubuntu Touch was available. "Sweet!" I thoug... | common-pile/stackexchange_filtered |
Geodesic Distance Transform and segmentation operations in Matlab
I am interested in using the geodesic distance transform in Matlab (2015a) to obtain segmented regions of a picture, from which I can perform operations on a particular region.
I have incorporated the code outlined from here (http://www.mathworks.com/hel... | common-pile/stackexchange_filtered |
two Lists to Json Format in python
I have two lists
a=["USA","France","Italy"]
b=["10","5","6"]
I want the end result to be in json like this.
[{"country":"USA","wins":"10"},
{"country":"France","wins":"5"},
{"country":"Italy","wins":"6"},
]
I used zip(a,b) to join two but couldn't name it
Using list comprehension:... | common-pile/stackexchange_filtered |
How to extract and ignore span in markup? - python
How to extract and ignore span in HTML markup?
My input looks like this:
<ul class="definitions">
<li><span>noun</span> the joining together of businesses which deal with different stages in the production or <a href="sale.html">sale</a> of the same <u slug="product">p... | common-pile/stackexchange_filtered |
L78S05C only supplying 4.88 volts?
I'm working on a linear 5 V power supply for the first time. I'm using the L78S05C as I was hoping for a little elbow room on the amperage over the standard 1.5 A version.
Circuit tested perfectly on the bread board, so had at it. Completely done, it would not power up my device (need... | common-pile/stackexchange_filtered |
I cannot format my PC
I have a Toshiba Satellite(1) l505 with 6gb RAM and a 6.00 GB hard disk.
Initially I had motherboard problems with another satellite (#2). Since I have HDD problems with the first one (#1) I decided to use the hard disk of #2 in #1.
I formatted the HDD and erased the partitions it had into 1 parti... | common-pile/stackexchange_filtered |
Why was the question about All Halo Books List (100702) closed again, after it was re-opened?
Ok, so the question, Is there a list of all Halo-related reading?, was closed and then re-opened, after a bit of discussions in the comments section.
The question was then re-closed very soon after. See the revision history.
A... | common-pile/stackexchange_filtered |
how to handle multiple paypal buttons on the same form
I have three items, and next to each have the paypal "addtocart" button. each button works if it's the only one on the page ... I believe that's because each button is wrapped in it's own form tags. How can I get multple buttons on the page?
I have tried single... | common-pile/stackexchange_filtered |
hana::tuple to auto && ... args
Is there a way to use something like :
constexpr auto foo = hana::make_tuple(hana::type_c<Foo1>,hana::type_c<Foo2>);
with something like:
template < typename ... Ts >
struct Final {
constexpr Final(Ts && ... args) {}
};
hana::unpack(foo, [] (auto && ... args) { return Final(args...)... | common-pile/stackexchange_filtered |
Jquery width minus pixels compatible with IE
I'm trying to use Jquery to calculate the width of my div minus a px gutter. I know this has been asked over and over again, but the answers I find are not IE compatible.
Therefore, CSS calc won't do. The code I'm using at the moment is:
$('.left').css('width', '100%').css... | common-pile/stackexchange_filtered |
SSH timeout error when building AWS AMI with Vagrant
I am trying to setup an AWS AMI vagrant provision: http://www.packer.io/docs/builders/amazon-ebs.html
I am using the standard .json config:
{
"type": "amazon-instance",
"access_key": "YOUR KEY HERE",
"secret_key": "YOUR SECRET KEY HERE",
"region": "us-east-1... | common-pile/stackexchange_filtered |
Export and compare properties of expression in vba
The overview in "Watches" in the vba editor of office 2016 seemed not clear/easily comparable, so I would like to export the expressions under "Watches".
Because I have a manual "watch" on the only item in elements1a and I would like to be able to export all the prope... | common-pile/stackexchange_filtered |
HTML Formatting tossing #error
I am attempting to format an expression in SSRS with an HTML code and am getting #Error tossed upon report preview. My expression looks as follows:
="<b>Region: </b>" + Fields!RegionID.Value
I have also ensured that HTML - Interpret HTML tags as styles has been selected under Placeholder... | common-pile/stackexchange_filtered |
Is there any way to create instance and assign values to data members in namespace?
To make the code looks clean, I declare a class MaterialTexture in namespace Material to store the light attributes for OpenGL. And I want to create instance(such as metal, plastic) for this class in the same namespace.
I do some googli... | common-pile/stackexchange_filtered |
How to assign value to key hashmap Perl?
I have the code bellow. I want to assign for each version values but somehow I do not know what I'm doing wrong.
%buildsMap = ();
#read schedule
opendir (DIR, $buildsDir) or die $!;
while ( my $file = readdir DIR ) {
if (($file =~ /(V\d\d\d.*)-DVD/) || ($file =~ /(V\d\d\d.*)... | common-pile/stackexchange_filtered |
Using ASP .NET Membership and Profile with MVC, how can I create a user and set it to HttpContext.Current.User?
I implemented a custom Profile object in code as described by Joel here:
How to assign Profile values?
I can't get it to work when I'm creating a new user, however. When I do this:
Membership.CreateUser(user... | common-pile/stackexchange_filtered |
meteor client-side tests hang on AWS but not locally
I'm trying to get my client side tests working for CI. Right now I'm just running them from a terminal - though eventually they will be running in Jenkins
On my dev machine (Ubuntu 14.04) the tests run just fine.
On my AWS EC2 instance (Ubuntu 16.04.1) the tests clie... | common-pile/stackexchange_filtered |
Issue with Expo CLI environment setup in windows (Solved). Registering for account in expo failed with firebase & Styling issue(New question)
I am having a issue on react native. This is my first time using so I am following a guide from https://www.youtube.com/watch?v=f6TXEnHT_Mk. According to the video, after npm sta... | common-pile/stackexchange_filtered |
capifony deployment task order : site unavailable during grunt
I am using capifony to deploy my symfony 2 application.
I run two late tasks. During the time grunt is run, my website is unavailable. I've tried to play around with tasks order without success.
How should I configure the following task or what else should ... | common-pile/stackexchange_filtered |
Heat equation with a positive coefficient
If we have the heat equation $u_t-ku_{xx}=0$, where $(x,t)\in\Re\times(0,\infty)$, $k>0$, and $u(x,0)=f(x)$, then the general solution is
\begin{align}
u(x,t)=\int_{-\infty}^{\infty}\Phi(x-y,t)f(y)dy\,,
\end{align}
where
\begin{align}
\Phi(x,t)=\frac{1}{\sqrt{4\pi kt}}e^{-x^2/4... | common-pile/stackexchange_filtered |
How can I show and hide Like/Unlike buttons using Javascript in my Web app?
I'm doing online course CS50W by Harvard and building a web app similar to twitter.
When user sees a post I need to show the user Like or Unlike button depending on user liked it or not. There's also a counter showing how many users liked the p... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.