text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Django, request.user is always Anonymous User
I am using a custom authentication backend for Django (which runs off couchdb). I have a custom user model.
As part of the login, I am doing a request.user = user and saving the user id in session.
However, on subsequent requests, I am not able to retrieve the request.user.... | common-pile/stackexchange_filtered |
RJ11 pinout (serial) for Amplus AM03128-H11 LED display
I've got an Amplus AM03128-H11 LED display, without the documentation and serial cable.
I found the programming manual online, but I have no idea what the pinout on the serial RJ11 connector is supposed to be.
Anyone out there who knows ?
Or who has one of these d... | common-pile/stackexchange_filtered |
Add a newline after each closing html tag in web2py
Original
I want to parse a string of html code and add newlines after closing tags + after the initial form tag. Here's the code so far. It's giving me an error in the "re.sub" line. I don't understand why the regex fails.
def user():
tags = "<form><label for=\"e... | common-pile/stackexchange_filtered |
How to know if a fridge would be able to maintain its temperature
I would like to understand the thermodynamic relation that exist on a big fridge. If you have any links to help me to more understand the physics relation, it would be nice :)
So here is my problem:
There is an electric charge into a big fridge which dis... | common-pile/stackexchange_filtered |
Can this be reworked with a hot air gun?
I posted before about the Microchip RN4020 (Bluetooth Low Energy) PicTail failing. I have some spare RN4020 modules and access to a heat gun. If I can take this RN4020 off and put a new one on, how would you suggest I do it? Or is it too large or difficult because of the package... | common-pile/stackexchange_filtered |
One AntiForgery token for all requests
I have Web API 2 web service with methods:
// Makes and returns Token by login/password.
string GetToken(string login, string password);
// Returns orders of current account.
Order[] GetMyOrders();
I want to authenticate user in GetMyOrders() by him Request to this method.
Reque... | common-pile/stackexchange_filtered |
How can I collect order delivery date/time in Store?
Any ideas on how I could collect order delivery date/time in Store.
Best wishes
Lee
You just need to create a custom order field and then output that in the checkout process.
Store > Settings > Order Fields. Pick an available field and give it a name ('Delivery Date... | common-pile/stackexchange_filtered |
Firebase functions fails to deploy with same error in all functions
I'm trying to deploy my firebase functions but all the functions return me error, I had already deployed before without any error.
I did not install anything new since the last time that a deploy was correct.
Every functions return almost the same erro... | common-pile/stackexchange_filtered |
Thumb position when driving/rallying
I am not a rally driver or anything...but out of curiosity, is it safer and more technical to lock my thumbs into the steering wheel when rallying?
If so, then does that apply to normal track racing too?
If not then why shouldn't I lock my thumbs?
(when I'm holding the steering wh... | common-pile/stackexchange_filtered |
How to find the path of properties file dynamically from the code?
I have maven project in Java in which I have a property file (quartz.properties) under this directory:
/src/main/resources
Now I can use this property file in two ways from this class as shown below:
/**
* Create a StdSchedulerFactory that has been in... | common-pile/stackexchange_filtered |
Can I retrieve a spreadsheet with just a title name for google sheets api v4 .net?
I know that there is a way to get a spreadsheet using a sheetID. I was wondering if it's possible to get a sheet using a spreadsheet's title rather than sheetID without using a map. I know that it's possible to retrieve a sheet using its... | common-pile/stackexchange_filtered |
"no such sysroot directory" while building qt project
MacOS Mojave Version 10.14 (18A389).
Today I updated Xcode to version 10.0 (10A255). End when I try to build my Qt project I get an error:
clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDK... | common-pile/stackexchange_filtered |
Dependency Injection error: Unable to resolve service for type while attempting to activate, while class is registered
I created an .NET Core MVC application and use Dependency Injection and Repository Pattern to inject a repository to my controller. However, I am getting an error:
InvalidOperationException: Unable to... | common-pile/stackexchange_filtered |
Remove xfce without terminal access or default root account
I purged any packages related to xfce on Debian, and when I rebooted the login screen was still there. Upon login, there was only the wallpaper and a right click context menu available. Launching terminal emulator or Zutty closes them instantly. Tried booting ... | common-pile/stackexchange_filtered |
Can Panic Spellbomb be returned to the library in response to its ability?
When activating the ability on Panic Spellbomb (tap, Sacrifice Panic Spellbomb: Target creature can't block this turn.), can the opponent then use an Instant such as Banishing Stroke to put Panic Spellbomb on the bottom of it's owner's library? ... | common-pile/stackexchange_filtered |
RSA to DER anomaly
I have a private key in PEM format and when i run a openssl asn1parse on it i get the following:
0:d=0 hl=3 l= 159 cons: SEQUENCE
3:d=1 hl=2 l= 13 cons: SEQUENCE
5:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption
16:d=2 hl=2 l= 0 prim: NULL
18:d=1 hl=3 l= 141 prim: BIT... | common-pile/stackexchange_filtered |
How can I reference other servers in the same inventory by group name?
I have a static inventory that contains groups and servers inside these groups. Group names can change and so the server names. I'm passing group names as a variable during runtime to the playbook. I'm trying to check a bunch of ports between differ... | common-pile/stackexchange_filtered |
Javascript: Form submits after first validation and after applying styles
Am trying to prevent certain user ids from emails to submit form, like a blacklist, for example<EMAIL_ADDRESS>and take denieduser1 and when the user submits the form then appears a bootstrap alert saying something is wrong, the problem is that if... | common-pile/stackexchange_filtered |
Channel Bleeding with ADG732
I'm building a circuit that uses a 32:1 mux (ADG732) to feed the selected channel into an amplifying stage so I only need one amplifying circuit. The input signals are from pressure sensors which have a capacitive nature and produce ~10mV of amplitude. The problem is that when I try to feed... | common-pile/stackexchange_filtered |
Linux error creating temporary file /var/tmp/
I'm using centos 6 - recently I am getting this error anything I want to install anything on server for example with varnish - var/tmp is empty and has root:root as owner i have checked with 777 permission on var/tmp directory but still same error -
Also checked if it was ... | common-pile/stackexchange_filtered |
PRISM Navigation - Xamarin Forms - MasterDetail/FlyoutPage page setup, previous page nav links disabled when back button pressed?
So I built an app using Prism Library and Xamarin Forms and the Navigation flow starts with a MasterDetail page, like so.
NavigationService.NavigateAsync($"/{nameof(MainMenuPage)}/{nameof(Na... | common-pile/stackexchange_filtered |
How to build a C++ make project using specific LDFLAGS (Mac OSX)
I have a project that needs to be built using cmake and make. However, I want the project to use libc++ (since its written in C++11) so I need to set the right linker flags. Is there a way I can pass the following flags via command line?
LDFLAGS="-L/usr/... | common-pile/stackexchange_filtered |
C++ analog to array of records in Pascal
I'm learning C++. My main language is Free Pascal. In FP I can do this:
type
TSomeType = (Foo1, Foo2, Foo3);
TSomeRecord = record
Field1: String;
Field2: String;
end;
var
MyArray: array[TSomeType] of TSomeRecord;
So array has length=3. Then I can use it for ex... | common-pile/stackexchange_filtered |
Did I get a lemon, or does the ipod touch g4 come with a crappy usb cable?
Really, I mean you shell out $300 for this thing you'd think the usb cable would be able to sync after two months of use.
I ended up buying one from China that works just fine (as opposed to the one that came with it!)
I noticed the new USB cab... | common-pile/stackexchange_filtered |
can't retrieve image id from build stream when trying to debug with a remote interpreter defined with docker
I get "java.util.concurrent.completionexception: com.intellij.docker.agent.apitaskexception: can't retrieve image id from build stream" when trying to debug a certain python script with a remote python interpret... | common-pile/stackexchange_filtered |
How to determine if a GitHub project has a POM file or not?
I'm a member of an organization on GitHub, which has varieties of different projects in it. I'm looking for a way to check the type a project, without actually opening it.
For example, if it is a Maven project, I want my program to return pom.xml, if it is a P... | common-pile/stackexchange_filtered |
( "SELECT password FROM peerlist WHERE username=?",username1)
I created a login window and there was a table "peerlist" that contains name, username, password. I want to verify the username and password from the table.
username1 contains name of user that I get from login window. I tried to retrieve password using user... | common-pile/stackexchange_filtered |
Single Supply OpAmp AC Analysis in LTspice
I'm trying to build a non-inverting amplifier with a gain of two, with a little bit of filtering. I need to amplifier a signal from 0Vdc-to-1.65Vdc to 0Vdc-to-3.3Vdc, and ideally have a low-pass cut-off around 1.3kHz
Looking through the net I can't really understand how to do ... | common-pile/stackexchange_filtered |
Where is the obb(expansion) file location on a nexus 5 running Android 6.0.1 for development?
I have a nexus 5 device running Android 6.0.1 and I'm developing an app that needs to use expansion files. I am having trouble with where to put the obb file on the device for testing!
I'm using android studio for development ... | common-pile/stackexchange_filtered |
Which class needs to implement INotifyDataErrorInfo?
In the case of a binding such as
<TextBox Text={Binding Path=SomeItem.AnotherItem.Property} />
Which class(es) need to implement INotifyDataErrorInfo:
The DataContext
SomeItem
AnotherItem
Some combination of these
AnotherItem
INotifyDataErrorInfo must be impl... | common-pile/stackexchange_filtered |
Getting an error 'Unknown column' in 'order clause' using TypeORM
I'm trying to create a query with TypeORM and MySQL.
I keep getting the following error:
[Nest] 44806 - 12/09/2021, 2:37:03 PM ERROR [ExceptionsHandler]
ER_BAD_FIELD_ERROR: Unknown column 'sort_order' in 'order clause'
QueryFailedError: ER_BAD_FIELD_... | common-pile/stackexchange_filtered |
Strong /strɔːŋ/ → stronger /strɔːŋɡər/ - Why do we have to put an extra /g/ in front of /ər/? Is it a rule?
Ok, see this in the dictionary:
Strong → /strɔːŋ/
Stronger → /strɔːŋɡər/
Why do we have to put an extra /g/ in front of /ər/?
But sing → /sɪŋ/ & singer → /ˈsɪŋər/ do not adhere to that rule. But "sing" is not a... | common-pile/stackexchange_filtered |
C#: Class/Method That Builds Connection
Completely new to C#.
In my app, several buttons will connection to MySql and pass information to and from it. Each button has it's own connection string, which I find redundant and was curious if there was a way in C# to build a Class or Method, holding the connection string, a... | common-pile/stackexchange_filtered |
Which ML algorithms can be used to optimize a weighted quadratic loss function?
I want to solve the following optimization problem:
$$ L = n^{-1} \sum^n_{i=1} w_i ( y_i - \tau(x_i))^2 $$
where $w_i \in \mathbb{R}^+$ weights, $y_i \in \mathbb{R}$ outcome data, $x_i$ features/covariates, and $\tau$ an unknown function ... | common-pile/stackexchange_filtered |
Adding pins/points to Choropleth Map D3JS
I would like to add pins or points or some circle to choropleth Map in D3JS. I am not sure how to do it. Can you please help?
Thanks,
Madhu
I just got it working by var projection=d3.geo.albersUsa();
var coords=projection(['-77.679863', '43.088015']);
var sample=states.append(... | common-pile/stackexchange_filtered |
jqplot Yaxis rescale
I'm using jqplot for represent several parameters in series across the time. So I have one Xaxis represent the time and several Yaxes(yaxis, y2axis, y3axis, y4axis, etc.). Each parameter is in different units(temperature, voltage, current, pressure, etc.), so all the Yaxes set to auto for min and m... | common-pile/stackexchange_filtered |
cassandra possible node loss
I am fairly new to Cassandra and found this website
https://www.ecyrd.com/cassandracalculator/
Not sure how accurate it is, but i have one misunderstanding.
Consider following example:
cluster size 8
replication factor 5
read concern ONE
write concern ONE
As a result i get that I can los... | common-pile/stackexchange_filtered |
librdkafka producer's Internal queues - how do they work?
I had a few questions about GoLang Kafka producer using librdkafka -
These are based on the logs I am seeing in the producer log when I set debug: all.
The producer spends some time in building message sets once the batch threshold is recached or linger.ms is pa... | common-pile/stackexchange_filtered |
Malament theorem in curved spacetime?
Malament's theorem roughly assert that given a very general theory of a point particle, characterized by some operator $P_D$ such that for a region of space $D$ at a given time $t$, $P_D | \Psi \rangle$ corresponds to the certainty that the particle is localized within $D$, which o... | common-pile/stackexchange_filtered |
cpython-35m-x86_64-linux-gnu.so is generated from which base file type
I am trying to find my way around some inherited code. I have found a complied file called:
filename.cpython-35m-x86_64-linux-gnu.so
From what file type (.py, .cpp, .pdx) this file was complied from? Is there also any documentation around the mea... | common-pile/stackexchange_filtered |
Error In Deploying LWC
I'm trying to deploy my code but when It's not updated in custom components
Kindly advice what's the issue and can you advice also the difference between working on scratch orgs and non-scratch orgs with lightning web component
Its says to enable my domain? have you done that?
Thanks this w... | common-pile/stackexchange_filtered |
Merging the content of an Ajax called form using WebTestCase
I'm using the SonataAdminBundle plus DoctrineORMBundle and let's say I have a Post/Tags relationship where Tags are many-to-many to Posts.
I'm trying to run a functional test on the Post form. Tags are shown in the Post form throw an widget where the Tag form... | common-pile/stackexchange_filtered |
Delete s3 bucket object
I'm facing problems when deleting objects from an S3 bucket, my policies are these:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject",
"s3:DeleteObject"... | common-pile/stackexchange_filtered |
Probability of sampling with and without replacement
In sampling without replacement the probability of any fixed element in the population to be included in a random sample of size $r$ is $\frac{r}{n}$. In sampling with replacement the corresponding probability is $\left[1- \left(\frac{1}{1-n}\right)^r\right]$.
Please... | common-pile/stackexchange_filtered |
Unify lines that contains same patterns
I have a database with this structure:
word1#element1.1#element1.2#element1.3#...
word2#element2.1#element2.2#element2.3#...
...
...
I would like to unify the elements of 2 or more lines every time the word at the beginning is the same.
Example:
...
word8#element8.1#element8.2#e... | common-pile/stackexchange_filtered |
Backface Visibility not working on children
This solutions (Webkit backface visibility not working) didn't work, as I'd like to have other transformed objects inside container that should show the backface.
.container {
position: relative;
transform-origin: 50% 50% 0;
transition: transform 1s ease 0s;
wid... | common-pile/stackexchange_filtered |
Express-session returns 'undefined', even though I declared the session
I've been working on this website for a while and didn't really have a problem, 'till now.
When the user logs in, a session cookie is initialized this cookie is called user and stores the users email. When I console log the cookie on the login pos... | common-pile/stackexchange_filtered |
Is HMAC necessary if all API calls are made through https?
If all api calls are sent through https, does HMAC add any extra security? For example, in oauth 2, the client sends its secret key to the provider without any hashing whatsoever. Is this considered secure because it's over https? While not strictly oauth, w... | common-pile/stackexchange_filtered |
Fn keys can't adjust brightness MATE desktop
I just installed Ubuntu 14.04 and removed Unity and installed MATE. Now, the Fn keys on my keyboard can't adjust brightness. Here's the thing that makes it extra extr confusing: my brightness worked under Unity. Even more confusing, there is a bug in MATE that makes a small ... | common-pile/stackexchange_filtered |
Windows batch/cmd file to extract network drives (strings between delimiters)?
I have backed up the network drive to an xml file in the format below.
<drive>
<drive letter>X</drive letter>
<drive path>\\DANIEL-HP\Users\Public\Documents\Downloaded Data Sheets</drive path>
</drive>
<drive>
<drive letter>Y</... | common-pile/stackexchange_filtered |
How does the abstraction of AC make sense when flat-footed?
I am looking for a rule-wise explanation of the logic as to why your deflection bonus (e.g. a shield) is counted in your flat-footed AC.
From what I understand, being flat-footed means you didn't see the attack coming, and are unable to react to it, so only yo... | common-pile/stackexchange_filtered |
Solve integral symbolically by isolating integrand in sympy
I was wondering why sympy won't solve the following problem:
from sympy import *
ss = symbols('s', real = True)
a = symbols('a', real = True)
f = Function('f')
g = Function('g')
eq = Integral(a*g(ss) + f(ss),(ss,0,oo))
solve(eq, a)
The return is an empty solu... | common-pile/stackexchange_filtered |
getting data out of YML
Hello Stack Overflow community,
I am trying to include a html icon on hover.
This is my code:
<div class="country">{% include icons/home/icon-america.html %}</div>
this works fine, but the icon has to be different on each hover, so i tried this:
<div class="country">{% include icons/home/icon-{... | common-pile/stackexchange_filtered |
UIView bottom to top animation issue
This is a simple function I am using for animating a view from top to bottom and vice versa (if is top to bottom animation and else is bottom to top animation) :
@objc func openMenu(sender: UIButton) {
if sender.tag == 1 {
self.buttonView.tag = 2
s... | common-pile/stackexchange_filtered |
Dice roll game some advice
This is my first project writen with python, im looking for some advices to improve my code. Everything works fine, but maybe someone has some ideas how to make my code more efective or to try it out in some other way?
Thanks
Her's my code:
print("Welcome to dice roll!")
game_... | common-pile/stackexchange_filtered |
Xcode6 - Swift: How to detect which object is touched and move/drag/drop?
I'm trying to have more than one off these types:
@IBOutlet weak var objectToMove1: UIImageView
and want to be able to detect when one of them is touched... If held down on the object and moving finger, I want the object to follow.. when dropped,... | common-pile/stackexchange_filtered |
How to allow partitions to dynamically extend?
I have a virtual machine (on Hyper-V host) running Ubuntu server 16.04.3. It is set up to have dynamically expanding virtual hard disk (VHDX).
I have disk space issues when trying to "tab-complete" names:
-bash: cannot create temp file for here-document: No space left on d... | common-pile/stackexchange_filtered |
How to use google oauth on a plugin on wordpress
I want to develop a plugin for wordpress, this plugin will be used in a lot of websites that they will buy it and install it.
On this plugin I want to use google oauth to get datas from analytics, But I have to define the callbackURL in my console and in the code, But I ... | common-pile/stackexchange_filtered |
Parent Controller Class in ASP.NET MVC 2
I've been working on a rather large web application that requires a specific id param in the url for every page visited (for example, /controller/action/id?AccountId=23235325). This id has to be verified every time someone visits a page.
I want to reduce code replication as mu... | common-pile/stackexchange_filtered |
How to stop Yarn Package Manager script from CLI
https://yarnpkg.com/en/docs/cli/
Is there a way to stop what is started from the command yarn run? Is my only option to lookup the process number and call kill on it?
what's wrong with pressing ctrl-c?
maybe I am just too much of a linux noob, but when I run yarn start... | common-pile/stackexchange_filtered |
OpenGL / GLSL - Uniform block data values incorrect
My shader has a uniform block as such:
layout (std140) uniform LightSourceBlock
{
vec3 test;
vec3 color;
} LightSources;
The data for this block is supposed to come from a buffer object which is created like so:
GLuint buffer;
glGenBuffers(1,&buffer);
GLfloa... | common-pile/stackexchange_filtered |
nhibernate with subquery on database
I need to select a product for a user based on other data in the database.
If the data is filtered out on the database that will require less data to be send to the server.
User (Id)
Product (code)
Access (User_Id, code) // Matching users to object codes
Will this query execute on t... | common-pile/stackexchange_filtered |
Selecting MySql table data into an array using PDO class?
I have found some info here, but can comment to ask additional info. So my problem is:
I want to select my data from mySQL.
I have two tables:
customers (id,name,ak,numeris)
prekes (id, customer_id, prek_name, prek_value)
id in both tables is auto incremented.
... | common-pile/stackexchange_filtered |
Eclipse-Kepler, Maven and Setup Tomcat 7 debug (hot deploy)
I have maven based project with following structure:
main_project
module_webproject
module_java_proj_1
module_java_proj_2
module_java_proj_3
... ...
Everything compiles and packages fine with command line maven goals execution. I need to setup this proje... | common-pile/stackexchange_filtered |
What happened to the Dataflow LinkTo parameter discardMessages?
In "Introduction to TPL Dataflow" Stephen Toub writes under LinkTo:
"... and what the behavior should be if the predicate is not met (e.g. should such a message simply be dropped, should such a message be declined and offered to other targets, etc.)"
In so... | common-pile/stackexchange_filtered |
Angular $resource POSTS $promise and $resolved to server on $save
I am having trouble with $resource on one of my angular projects. All of a sudden it has started to mess up the objects that are sent to the server on $save.
Calls to $save on $resource objects does not strip away $resolved and $promise from the JSON dat... | common-pile/stackexchange_filtered |
Using dnsmasq to address machines by name and resolve external hostnames
I'm having some trouble with my dnsmasq setup. All I want it to do is resolve certain hostnames to certain ip addresses for any machine on my network. More specifically, I'm trying to enable all devices on my network to be able to reach some of th... | common-pile/stackexchange_filtered |
Input text file of strings and integers
I have a data file (ordered_data.txt) composed of 8 columns of integers and the last column is a string. It is 2912 rows long. I am inputting the data like so:
data = np.genfromtxt(('ordered_data.txt'), invalid_raise = False)
This obviously converts the last column to all 'nan'.... | common-pile/stackexchange_filtered |
JQuery 1.7.1 seemingly can't handle HTML5 element IDs
As you may be aware, HTML5 allows more characters to be used in ID names - see the HTML5 spec which now has space as the only invalid character. Attempting to use this with JQuery shows JQuery ignoring all characters in the ID after a particular valid character, '/'... | common-pile/stackexchange_filtered |
What does AttributeError: 'NoneType' object has no attribute 'tk' mean?
I am a beginner at programming and am writing a simple game of hangman with tkinter and do not know how to solve the error.
Traceback (most recent call last):
File "/Users/ana/Documents/primer7.py", line 62, in <module>
class MyG... | common-pile/stackexchange_filtered |
updatedb error - mktemp: too few X's in template ‘updatedb’
When I run sudo /usr/libexec/locate.updatedb to manually update the locate database, I get this error:
❯ sudo /usr/libexec/locate.updatedb
Password:
mktemp: too few Xs in template ‘updatedb’
chown: missing operand after ‘nobody’
Try 'chown --help' for more inf... | common-pile/stackexchange_filtered |
Confusion between ASCII and int values conversion
How does Java understand whether to substitute char or int?
String a="abc";
int b[]=new int[100];
System.out.println(a.charAt(0)); //prints 'a'
System.out.println(b[a.charAt(0)]); //accesses b[97] and does not give error for b['a']
I suggest marking an answer as acce... | common-pile/stackexchange_filtered |
How do I choose the correct view for zooming with multiple UIScrollView objects in a view (iPhoneSDK obj-C)?
I have added several UIScrollViews as subviews of a single UIView and set the frames so that each one is clearly visable. I set scrollEnabled to YES and set the contentSize larger than the bounds/frame. I do thi... | common-pile/stackexchange_filtered |
This AI we're building keeps making weird mistakes when we add new facts to its knowledge base.
Look at this case - we told it "Tweety is a bird" and it concluded "Tweety flies." Then we added "Tweety is a penguin" and suddenly it says Tweety doesn't fly anymore.
That's not a mistake though. The system should retract... | sci-datasets/scilogues |
Are Yajuj and Majuj (Gog Magog) humans?
Are Yajuj Majuj part of the human race or are they different creatures? Same question about Dajjal.
There are 2 verses in the Qur'an mentions about Gog Magog.
They said, "O Dhul-Qarnayn, indeed Gog and Magog are [great] corrupters in the land. So may we assign for you an expend... | common-pile/stackexchange_filtered |
GoogleVis not working in R: Motion chart not loading in the browser. Getting blank browser
I'm having issues getting GoogleVis to work. When I plot using GoogleVis, I get a blank browser. Here's what I did:
I used the built-in R dataset, 'ChickWeight'
Installed RJSONIO and googleVis packages.
For simplicity, I trun... | common-pile/stackexchange_filtered |
Layers in PixiJS
I am using the PixiJS framework to create a 2D RPG Game.
How can I create a PIXI.Container with a transparent background which I can render on top of my main stage container?
My goal is it to have 4 layers which contain PIXI.Sprites and PIXI.Texts:
layer 1 should be rendered beneath the player
layer 2 ... | common-pile/stackexchange_filtered |
Google API: How to pass zip-code value into the JavaScript code
I using a html form to input a zip-codes (PortZip)
Port ZipCode:<br>
<input type="text" id="PortZip" value="31402">
and I want pass the zip-code value to java script code line
var point1 = new google.maps.LatLng(-33.8975098545041,151.09962701797485);
Cu... | common-pile/stackexchange_filtered |
The Monodromy and Parallel Form
According to famous Riemann-Hilbert correspondence, a flat connection gives a representation of fundamental group which is called monodromy. I would like to ask how does the monodromy relate to special form on the vector bundle.Here is my question:
1.Assume the $C^{r}\rightarrow E\righta... | common-pile/stackexchange_filtered |
python plot error when reading .csv with pandas: 'Series' object has no attribute 'find'
I am trying to read few .csv files and do something line plot(x,y) with this code:
import numpy as np
import pandas
from matplotlib import pyplot as plt
%matplotlib inline
colnames = ['X','Y']
xfmr_x_y_file = pandas.read_csv('AMI... | common-pile/stackexchange_filtered |
Create a random background color in Wordpress
I've checked out all the related questions I could find and still cannot get this to work so am reaching out to you lovely folk!
I wish my site to have a random color background (one of multiple pre-selected colors) each time someone visits.
There are various times people h... | common-pile/stackexchange_filtered |
creating an iOSOpenDev application and a tweak in the same package
I've spent three days looking how to create (using iOSOpenDev) one package (.deb) containing an application and a tweak at the same time and I could not find anything.
It is possible to do this?
What you can do is in the xcode project, create two targ... | common-pile/stackexchange_filtered |
How to track more than one remote with a given branch using Git?
The situation is this:
I have more than one remote repository - for reference, lets say that one is the "alpha" repository, and we have recently set up a new "beta" repository, which some users have migrated to.
Both repositories have a "master" branch.
H... | common-pile/stackexchange_filtered |
Updating textbox with dropdown value doesn't work in IE [JavaScript]
I'm trying to update the text in a textbox when a value is selected from a dropdown form element using onchange().
This works fine in Firefox, Safari, Chrome but not in Internet Explorer.
Here's the stripped down code:
<script type="text/javascript">
... | common-pile/stackexchange_filtered |
Can (singular) homology classes always be represented by images of closed manifolds?
My intuition tells me that if $A \in H_2(M;\mathbf Z)$, then $A$ can be represented by a map $\Sigma \to M$, where $\Sigma$ is a closed (= compact boundaryless) surface, i.e., the connected sum of tori or of real projective planes. It ... | common-pile/stackexchange_filtered |
Problems With Comparing Strings
I have the following code that was working a few days ago but then all the sudden, without any changes being made, gave me all these errors. Any help in troubleshooting would be appreciated.
init(name: String, arrayOfNodes: [SKSpriteNode]){
var SKnode = SKSpriteNode(imageNamed: "Cool Im... | common-pile/stackexchange_filtered |
Clean git branch for customer
At work we have a git flow where
- developers correct a given defect in the development branch
- then they have to 'put'(*) their correction in the integ branch
- this integ branch must be accessible to our customers because they want to check out our code and recompile it themselves
The... | common-pile/stackexchange_filtered |
Reverse a string of characters
I tried this code but I don't know how input the characters one per line and how to stop the input sequence with the character 0.
def reverse(string):
if len(string) == 0:
return string
else:
return reverse(string[1:]) + string[0]
a = str(input())
print(reverse(a))... | common-pile/stackexchange_filtered |
DataSource and ByteArrayDataSource not compatiable?
I have the following:
InputStream imageStream = classLoader.getResourceAsStream("email/logo.png");
DataSource fds = new ByteArrayDataSource(IOUtils.toByteArray(imageStream), "image/png");
Which throws me an error of:
Error:(65, 30) java: incompatible types: javax.ma... | common-pile/stackexchange_filtered |
The question mark syntax to retrieve final property
I am trying to figure out if these two expressions are functionally equivalent:
user && user.first_name ? user.first_name : ''
and
user?.first_name || ''
and fairly certain they are, but not 100% sure. Are there any cases where the two expressions differ?
I bel... | common-pile/stackexchange_filtered |
Can mvn install packages globally (e.g. command line tools like nutch)?
Command line tools written in Ruby can be installed through RubyGems. Command line tools written in Node.js can be installed through NPM.
Does mvn offer similar functionality, or should I look to package systems like apt-get for installing Java com... | common-pile/stackexchange_filtered |
JavaScript obj[property] throwing "property not defined " instead of giving undefined value
<html>
<head>
<script>
function Person(name, age) {
this.name = name;
this.age = age;
}
var person = new Person('Tom', 25);
... | common-pile/stackexchange_filtered |
How can data be extracted from the Matter Modeling Beta?
As far as I can see, Beta sites are not part of StackExchange data dumps https://archive.org/details/stackexchange .
According to https://meta.stackexchange.com/a/216245/884991, sites in public beta should appear in the data explorer https://data.stackexchange.co... | common-pile/stackexchange_filtered |
Is there any way to reliably send data from a UWP[C#] application to commonly used Microsoft applications such as Excel, Word, WordPad & Notepad?
I have developed a UWP[C#] application that uses the Windows 10 BLE API in order to receive data from a custom BLE device that my company has developed. Now, the requirement ... | common-pile/stackexchange_filtered |
Base64encode image string gets truncated
My string is truncated. I can't get the original string.
$img_file = product6.jpg';
$imgData = base64_encode(file_get_contents($img_file));
$src = 'data:image/jpg;base64,'.$imgData;
Can you help me?
You have missing single quotes
$img_file = 'product6.jpg';
| common-pile/stackexchange_filtered |
ArgumentError: invalid index: :Position of type Symbol
I'm trying to run a julia script, but I keep getting this error terminal error
I've tried adding a delim arguments like the example in the documentation, but that didn't work.
here is the code:
# Load information for skaters table
skaters = CSV.File(path_skaters, n... | common-pile/stackexchange_filtered |
Deleted files still accessible without www in url
I have deleted all files and all hidden files off my server, there is nothing but log files which cannot be deleted.
Ironically, files are accessible when nothing is there. Cache cleared, multiple browsers and computers/devices checked.
Files show when I exclude "www... | common-pile/stackexchange_filtered |
Isa relationship query in sql
I have a disjoint relationship among my tables: Employee(empId PK, name), HourlyEmployee(empId PK FK, hourlySalary) empId is a reference to Employee.empId,
MonthlyEmployee(empId Pk FK, monthlySalary) empId is a reference to Employee.empId.
How can I create a query resulting AllEmployees(em... | common-pile/stackexchange_filtered |
WinForms, DataGridView: Filtering XML data using attributes from multiple nodes
I have an XML data file of format similar to this:
<?xml version="1.0" standalone="yes"?>
<Root>
<FirstLevel Id="1">
<SecondLevel Id="1">
<ThirdLevel Id="1">
<DataElement Id="1" Data="hello" />
<DataElement Id="2... | common-pile/stackexchange_filtered |
Official documentation for JwtBearer middleware/configuration via appsettings.json?
Starting with NET 7, one can configure JWT validation values in appsettings.json, e.g. as mentioned in this blog post (section Simplified configuration for the JwtBearer middleware):
"Authentication": {
"Schemes": {
"Bearer": ... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.