text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Firebase authentication for gmail with custom domain
I was wondering if I can restrict sign in using firebase authentication for web to users with a certain email address, for example, I want only my colleges in the company to sign in (we all have gmail accounts with a custom domain).
If such a feature is not possible ... | common-pile/stackexchange_filtered |
listing directory contents with xargs and grep
I have a directory with lots of json and pdf files that are named in a pattern. I am trying to filter the files on name with the following pattern \d{11}-\d\.(?:json|pdf) in the command. For some reason it is not working. I believe it is due the fact that the xargs take th... | common-pile/stackexchange_filtered |
Symfony 3 Doctrine Repository Join and array
I'm working on symfony 3 and got some problem with my builder on my repository.
How it's work:
I have an announce who have a lot of information like name, game etc...
And the user link by a relation OneToOne
I send you a part from my announce entity
class Announce
{
/**
... | common-pile/stackexchange_filtered |
Emulating CSS3 border-radius and box-shadow in IE7/8
I'm working on HTML for a small web application; the design calls for a content area with rounded corners and a drop shadow. I've been able to produce this with CSS3, and it works flawlessly on Firefox and Chrome:
However, Internet Explorer 7 and 8 (not supporting C... | common-pile/stackexchange_filtered |
How to stop all services except ssh?
In command line, how can I stop all services from my Ubuntu (Server in this particular case), except SSH?
And how can I list all services to be sure all of them were stopped?
possible duplicate of How to enable or disable services?
I seriously doubt you want to stop all services b... | common-pile/stackexchange_filtered |
Generic Oracle Lookup Validation Function
I have several Tables that contains just id and description in that particular schema, i wonder if it is possible to write one generic function which will read something like:
create or replace FUNCTION tab_lookup (key_field char,key_value char,from_table char,return_field char... | common-pile/stackexchange_filtered |
How may Myanmar modify the constitution and keep off the military from politics?
In January 2019, the National League for Democracy pushed for constitutional reform, but was unsuccessful because any changes required 75% approval in the legislature, and 25% of seats are reserved for the military.
Details: https://en.wik... | common-pile/stackexchange_filtered |
requets are redirected to login.aspx?ReturnUrl=
I have implemented a webservice using servicestack using Visual Studio. Running the service from the vs debugger works just fine. I have just tried to deploy it to a debian machine using XSP4. The service makes use of logging, from what I can tell the service is up and ru... | common-pile/stackexchange_filtered |
What does += mean in this context?
def get_initials(fullname):
xs = (fullname)
name_list = xs.split()
initials = ""
for name in name_list: # go through each name
initials += name[0].upper() # append the initial
## ^^ what is happening here?
return initials
What is the += in this context? ... | common-pile/stackexchange_filtered |
how can i set custom height and width constants for an UIAlertController?
so i have created a UIAlertController in my Xcode Project. Now i want to know if its possible to set the width and the height of the AlertWindow, because the default UIAlertController is to small. Even when i set the frame of the UIAlertControlle... | common-pile/stackexchange_filtered |
Using thread for parallel processing in java
I need few of the functions in my program to run simultaneously. These processes returns records. But, the output of one is the input to the other. In such a case, if at a point of time function A takes some time to output some record to the function B, I need to the functio... | common-pile/stackexchange_filtered |
Querying One Dimensional JSON string
I'm trying to check to see if a one dimensional array string like:
[1,2,3,4,5]
contains a certain value, like 4.
I know with multi-dimensional arrays I could do something like:
JSON_VALUE(columnName, '$.key')
but for the life of me, I can't figure out how to search a keyless json ... | common-pile/stackexchange_filtered |
Calculating difference between two DateTime objects in C#
I have two DateTime objects in C#, say birthDateTime and curDateTime.
Now, I want to calculate the year difference bewteen current datetime and someone's birthday. I want to do something like
int years = curDateTime- birthDateTime;
//If years difference is great... | common-pile/stackexchange_filtered |
failure of floating point interrupt MFC Windows 10
We have an MFC product built in Visual Studio 2012/13 in C++ that performs many mathematical calculations. We use floating point interrupts through the coprocessor to help speed up the calculations, by setting up try/catch blocks. Those interrupts work well in Window... | common-pile/stackexchange_filtered |
Setting text field as first responder on app launch in Swift iOS
I have a simple app with a couple text entry fields. When I launch the app, nothing happens until I tap a field or use a control. How do I set the focus to be on the first text field and open the keyboard when the app launches, saving the user a tap? (new... | common-pile/stackexchange_filtered |
Find $\lim_{x\to 0^+} (\sin x)^{(1/\ln(x))}$,without L' Hospital (homework)
I got this home work assignment to find the limit without L'Hospital's rule. I used $e$ like that: $$\sin x^{1/\ln(x)} = \exp\left(\frac{\ln \sin (x)}{\ln(x)}\right)$$ and now I want to find this limit: $\lim_{x\to 0^+}\frac{\ln\sin(x)}{\ln(x)}... | common-pile/stackexchange_filtered |
Pass multiple file names captured in a variable to a command (vim)
I am trying to create a script that opens automatically any files containing a particular pattern.
This is what I achieved so far:
xargs -d " " vim < "$(grep --color -r test * | cut -d ':' -f 1 | uniq | sed ':a;N;$!ba;s/\n/ /g')"
The problem is that ... | common-pile/stackexchange_filtered |
.net core & .net framework in the same team
Our development team has many .net framework 4.6 projects (VS 2015).
We want to start a new .net core project to eventually deploy on linux.
We have installed VS 2017 and the .net core 2.0 preview.
But how can we reuse the existing library projects in this new one ?
We resear... | common-pile/stackexchange_filtered |
start Ubuntu 18.04 an error : end kernel panic -not syncing: attempted to kill init! exitcode=0x0000000b occurs by stack smashing detected
I downgraded my Ubuntu 18.10 to 18.04 today. After rebooting and logining the downgraded 18.04, I met an error as follows:
Then I ran the following commands in the terminal hoping ... | common-pile/stackexchange_filtered |
Information on the moderator candidates
Yi Jiang has put together a nice site that use the Stack Overflow API to display information on the moderator candidates.
Click here to see all the information.
The information presented is:
What the candidate wrote when nominating themselves.
Answers/Questions on the main site ... | common-pile/stackexchange_filtered |
Is there an event connected to the choice of a datalist <option>?
I have a (dynamic) list of choices in an <input> field:
<input list="choices">
<datalist id="choices">
<option>one</option>
<option>two</option>
</datalist>
Is there an event fired right after the choice of the <option> is made? (which I would l... | common-pile/stackexchange_filtered |
how to fix: sqlite3.dll not found on delphi data explorer?
I am following the tutorial at:
http://docwiki.embarcadero.com/RADStudio/XE5/en/Mobile_Tutorial:_Using_SQLite_%28iOS_and_Android%29
but I stuck at the 6th step (test the connection) which always give me:
failed: "sqlite3.dll not found"
In fact I have the sqlit... | common-pile/stackexchange_filtered |
Python MySQLdb execute table variable
I'm trying to use a variable for a table name. I get the error "... near ''myTable'' at line 1
I must not be escaping this right. The double '' in the error seems to be a clue, but I don't get it.
db = MySQLdb.connect("localhost","user","pw","database" )
table = "myTable"
def geno_... | common-pile/stackexchange_filtered |
Fontawesome webfont show square on content property ( work fine on local and stuck on prod environnement )
I'am using fontAwesome 4.7 in an Angular 6 project so I use the path of fontAwesome.css on my angular.json from "node_module" folder.
My issue is icons using css properties not works on prod envireonnement but on ... | common-pile/stackexchange_filtered |
which is the best way to store and relogin with username and password?
Hello i have an application which all activities can be reached after login (like facebook)
I want to write work flow
Status: launch application first time
Login screen-> get username and pass -> check from db -> if true save username and pass to sh... | common-pile/stackexchange_filtered |
Why is FEM theory only ever written down for simplices?
I noticed that in most theoretic literature (Braess, Ciarlet, ...) for Finite Elements, the method is only described in a detailed way for simplex triangulations, while other forms of hexahedral methods are often omitted or only briefly mentioned.
Is there any the... | common-pile/stackexchange_filtered |
Maps and custom objects in java
I am trying the below piece of code.
class dog{
private String name;
public dog(String n){
name = n;
}
public String getname(){ return name; }
public void setname(String n){ name =n;}
public boolean equals(Object o){
//if (( o instanceof dog )&& ((... | common-pile/stackexchange_filtered |
Grant users access to all external buckets but exclude our own account buckets
I want to give IAM users access to ALL external buckets- buckets not in our own account.
For example, publicly accessible buckets or buckets someone gives our AWS account access to. If the IAM user in our account does not have access to an e... | common-pile/stackexchange_filtered |
Cannot access print queue - Server side printing vs Local printing
Scenario :
User works on a desk top that is locally configured and connected to Printer ‘A’. Any print given directly from the desk top like a word doc or email or a web page, prompts the printer dialog, Printer A is selected, and print queue on that pr... | common-pile/stackexchange_filtered |
concat sql rows
Suppose I have this rows in a table
hello
guys
how
are
you?
My expected result is a single row like this one:
hello, guys, how, are, you?
What can I do?
Hint: GROUP_CONCAT().
As GordonLinoff mentioned in the comment, GROUP_CONCAT works.
I don't know your table names or table structures, but you can... | common-pile/stackexchange_filtered |
sparks cluster is unable to find txt files present in zip folder passed to it
I have a zip folder ce.zip containing python & text files, that I pass to the sparks cluster in the following way.
\bin\spark-submit.cmd --packages org.apache.spark:spark-sql-kafka-0-10_2.12:3.0.0 --py-files ce.zip main.py
But it is showing... | common-pile/stackexchange_filtered |
PHP Call to a member function on a non-object debuging
I try to init my object in a class but I get Call to a member function edit_column() on a non-object and I try to figure out what I'm doing wrong.
Practically I'm using 2 classes one is acting as a controller and second one as model. The code above
<?php
//Model... | common-pile/stackexchange_filtered |
Disable JIT in Drools 6.2 with Java 8
We are working with Drools version 6.2.0.Final for parsing some of our rules. But sometimes when we have a lot of runs, Drools invokes the JIT compiler which is causing failures. We have this covered in our Junit tests and we are getting the following error
java.lang.NoSuchMethodE... | common-pile/stackexchange_filtered |
Extract audio file details from URL(mp3 file)
To get audio file(mp3) details from URL I am using JAudioTagger in my android app but I am unable to get details.
My Code:
val audioFile = AudioFileIO.read(Objects.requireNonNull(File("https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3")))
Log.d(TAG, "t... | common-pile/stackexchange_filtered |
Change in route param doesn't updates the view in Angular
So I have this configuration for my single page app:
var app = angular.module('MyApp', ['ng', 'ngRoute']);
app.config(function($routeProvider) {
$routeProvider.
when('/product/id/:id', {
template: '<product-details></product-details>'
})... | common-pile/stackexchange_filtered |
Android record mediaplayer (stream)
I play the music (internet radio stream) in a MediaPlayer. I would like to save the datastream (or the waveform) to a file, and play it back later. Does it have SDK support? I did not found, AudioRecorder and MediaRecorder is only good for mics and voice uplink/downlink.
So, how to s... | common-pile/stackexchange_filtered |
Can anyone solve the "Ultimate NOOB question on pymysql"?
I'm just starting to play around with accessing mysql from python and chose to use pymysql. I hit a wall immediately, though, when just testing making a connection to the database. The code is simply...
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import pymysq... | common-pile/stackexchange_filtered |
Professor: The acetic acid production at the plant always fascinated me - that rhodium complex dissolved right alongside the methanol and carbon monoxide reactants.
Chemist: Exactly why homogeneous catalysis works so elegantly. When your catalyst shares the same liquid phase, every molecule can interact directly rathe... | sci-datasets/scilogues |
How to split a an array into several smaller arrays based on a given criterium between neighbours
Mathematica has two very useful functions to group an array into a list of smaller arrays based on given criteria: Split[] and SplitBy[] which I need to emulate in Python3 code:
Split[list,test] treats pairs of adjacent el... | common-pile/stackexchange_filtered |
DropDownList Binding to ActionResult Create Method MVC 4 VS2012
I'm a brand new user here - but I've been searching for a couple of hours now to solve following problem:
I've got 2 Entities - Category and Item.
Each Item should belong to a Category - therefore I would like to have a DropDownList which shows all existin... | common-pile/stackexchange_filtered |
ClerkJS forceRedirectUrl and signUpForceRedirectUrl not working with an external AWS APIGateway domain
I'm trying to get an AWS Lambda api hooked up with a Vite React app using ClerkJS auth. I want to store some user data on sign up and do some other prep on sign in. I want to hit the AWS API rather than redirect to th... | common-pile/stackexchange_filtered |
split a string by any symbol
What is the regex that I should pass with String.split() in order to split the string by any symbol?
Now, by any symbol I mean any of the following:
`~`, `!`, `@`, `#`, ...
Basically any non-letter and non-digit printable character.
Do you mean any non alphanumeric character?
.split("[^a... | common-pile/stackexchange_filtered |
Sending multiple query results to res.render() using node-mysql and mysql-queue
I [new to node.js and programming in general] have two mysql query results (member info and list of workshops that members can attend) and need to send them to res.render() to be presented in .jade template (Member edit page).
To do this I'... | common-pile/stackexchange_filtered |
Phrasal verbs leftward movement
I was reading a research paper on translating multi-word items, which include phrasal verbs, and I came across a passage about phrasal verbs, by Dixon, that reads:
Moreover, leftward movement will take place, as Dixon argues, when a direct object noun phrase contains new information; th... | common-pile/stackexchange_filtered |
ln -s -T :: what does the "-T" switch do exactly?
I've seen the -T switch being used, e.g. here.
Looking at the man page it simply reads: "treat LINK_NAME as a normal file". Can somebody shed some light showing the difference between using and not using the -T switch?
See the “Target Directory” chapter in the GNU Core... | common-pile/stackexchange_filtered |
how to make a properly setting file?
I want to make all .py files use uniform settings.
I have a settings.py with a "MySettings" class, which contains all the settings and some calculations.
I imported settings.py into different files and then instantiated it. But now I have two different versions of settings, and modi... | common-pile/stackexchange_filtered |
Missing wuau.adm policy template from windows\inf folder
I'm using Windows 10 OS, I get missing wuau.adm from windows\inf folder. Can I just replace this file from other server or download it, or copy it back from the sysvol folder?
You may replace the file in either the windows\inf directly or replace it in SYSVOL. ... | common-pile/stackexchange_filtered |
Javascript get element index position in DOM array by class or id
My situation
var domElements = document.body.getElementsByTagName('*');
Now I want to return the array item key - position of the element in the array - ( for example domElements[34]) searching in the array for the element with id="asd".
How can I achie... | common-pile/stackexchange_filtered |
Finding average weight of edges in unidirectional graph
I'm trying to produce easier-to-parse graph from an interactions table:
from
interactions
from | to | weight
1 | 2 | 3
2 | 1 | 2
3 | 1 | 4
1 | 4 | 2
2 | 4 | 4
2 | 3 | 5
3 | 2 | 1
to
interactions
from | to | average weight
1 | 2 | 2... | common-pile/stackexchange_filtered |
How to prevent the mouse click event from happening when the button is Disabled
I want to disable the click event for a QPushbutton when it is disabled, whether it can be done ?
You could achieve that either by subclassing QPushButton and installing an eventFilter on your custom class, or adding an even filter to the ... | common-pile/stackexchange_filtered |
Laravel database migrattion user could be from another type
I'm currently facing an issue on the conception part of my project.
I read many posts and no one abort this problem.
I'm using Laravel 5.6 as API for my web App.
So I have two type of users :
Simple user
Professional user
The "Professional" one has a dashb... | common-pile/stackexchange_filtered |
Yii2 signup without saving session data
I have registration form in my Yii2 advanced application. In my application only admin can register users. But when I register new user, admin session data are destroyed and new user's session data are set. What I am trying is not to change session data when I register new user. ... | common-pile/stackexchange_filtered |
Why are the API demos considered as "legacy", as of API 18?
After installing the newest ADT & SDK of Android to support API 18, I've noticed that all of the API demos are now considered "legacy".
Here's a screenshot:
How come?
I've noticed that even though they are considered "legacy", they contain some things that do... | common-pile/stackexchange_filtered |
Calculate Amount of Inventory Change in Azure Analysis Services DAX
I have data in Azure Analysis Services (Tabular) that looks like the following table. I need to create two calculated columns for the Date that the Inventory Changed and the Amount of the Inventory Change. I think and IF function can take care of me f... | common-pile/stackexchange_filtered |
Adding salt to Blake3 Key derive function
According to the whitepaper, Blake3 can be used as a key derivation function (function key_derive). Currently, as a key derivation function, I used Rust's Hkdf::<Sha256> which takes as input the master key and salt. Adding salt allows to ensure that even in the case I reuse the... | common-pile/stackexchange_filtered |
Playing Windows games on Linux
Windows games can be played on Linux either through Wine or by running Windows in a virtual machine. Which gives better performance?
If you have stable 3-5MBit/s internet connection you can use cloud-gaming like PlayKey. Run it on Linux using Wine or Crossover (as shown here) and play.
... | common-pile/stackexchange_filtered |
How to determine if pilots in crashes flew again?
I checked this post on Airliners.net , but the formatting is hard to read, and the information or hearsay may not be trustworthy. Also, I'm hoping for a more efficient, efficacious method, rather than researching each accident separately.
I'd wanted to be advised if pi... | common-pile/stackexchange_filtered |
Capturing Return Code from R in SAS IML
I have a submit /r; block in IML. 95% of the time, things run correctly. The other times there is an ERROR in R.
My log shows
ERROR: R: <whatever the error message is>
When an error occurs, the outputs are not available. Is there a way to trap or detect the first error so I... | common-pile/stackexchange_filtered |
Troubleshooting the REPWEIGHTS option in surveyreg analysis (SAS)
I'm new to SAS and the documentation for repweights seems to be kind of limited. I'm trying to weight a nationally-representative survey, but my replicate weights are producing an error (red in the code, no effect on the results if I pull them out) and I... | common-pile/stackexchange_filtered |
How to concatenate multiple MP4 videos with FFMPEG without audio sync issues?
I have been trying to concatenate a number of MP4 clips (h264,aac) using the FFMPEG concat protocol documented here. The clips concatenate successfully, however there are multiple errors in the logs including:
Non-monotonous DTS in output st... | common-pile/stackexchange_filtered |
loop Read_csv to pandas dataframe
i want to load all .csv files from a folder into a list of seperate dataframes for each file
the folder is called coins.
for file in './coins':
logs_total = [pd.read_csv('./coins/'+file, engine='python')]
The error:
IsADirectoryError: [Errno 21] Is a directory: './coins/.'
with... | common-pile/stackexchange_filtered |
adding element to other elements in a for loop only rendering last item
I'm hoping to make a tool for myself aka a javascript bookmark that I can use on webpages specifically google forms, i wanted to loop through all questions on a page and add helpful tips or maybe definitions of words if thats what the question was ... | common-pile/stackexchange_filtered |
How to evaluate model's performance using a K-S test
I am wondering if a K-S test or other test can be used for comparing models' performance. For example, I have two prediction models, the prediction result of first model is [x1, x2, x3, ..., xn], the prediction result of the second model is [z1, z2, z3, ..., zn] . Th... | common-pile/stackexchange_filtered |
.Net get DateTimeFormat "G"
I want to use DataGridView to display a date and a DateTimePicker to implement a filter. I want both of them to display the date time in the "G" formatted Standard Date and Time Format. Ideally, I would just do
dateTimePicker1.CustomFormat = "G";
but that does not appear to work. (It litera... | common-pile/stackexchange_filtered |
FPDF Getting page numbers of a 1 or 2-Sided form letter
I create a form letter from an order table. Each order can have either 1 or 2 pages. The PDF contains all orders. Now I want to put the page numbers for every order on the PDF.
First Order: Pages 1 and 2,
Second Order: Page 3,
Third Order: Page 4.
The number of pa... | common-pile/stackexchange_filtered |
How to add variable tax on products in woocommerce?
TAX VARIATION FOR DIFFERENT PRODUCTS
how to add 2 products with different tax rates in woocommerce?
Note of no use: irrelevant to question coz of StackOverFlow rules.
Correctly, setting per-item tax rates should be possible if you register the products yourself in the... | common-pile/stackexchange_filtered |
jQuery newsitems hide and collapse
I am using a nice script to hide and show several divs
// Catch all clicks on a link with the class 'link'
$('.link').click(function(e) {
// Stop the link being followed:
e.preventDefault();
// Get the div to be shown:
var content = $(this).attr('rel');
// Remove a... | common-pile/stackexchange_filtered |
OpenGL depth test doesn't work on some computers
My first question here. In my program depth testing works properly on some computers, but it doesn't work on others, objects that are located farther away cover those which are located closer. I called glEnable(GL_DEPTH_TEST); and tried to call glDepthFunc(GL_LESS); and ... | common-pile/stackexchange_filtered |
Three20 iPhone - Sending XML-RPC Request instead of HTTP?
I am new to Three20 and have been trying to develop an iPhone app with Three20 for the past week. This app has to access to a xmlrpc server.
I know it is possible to receive responses in other formats like JSON.
But for requests, instead of the provided HTTP c... | common-pile/stackexchange_filtered |
Manage of memory on query
I have a big table (a lot of columns and some rows) in my OrientDB schema.
(columns early 35.000, rows early 100.000).
When I try to query my table with a simple COUNT, like this:
SELECT COUNT(@rid) FROM myTable WHERE filters
My process occupies early 8 GB of memory.
If I try to rewrite my qu... | common-pile/stackexchange_filtered |
Term Store Management option missing in site collection settings
I don't see "Term Store Management" in site collection settings. I checked this blog post http://blog.petergerritsen.nl/2010/06/09/term-store-management-option-missing-in-site-collection-settings/ which suggests to activate a feature which I tried but I s... | common-pile/stackexchange_filtered |
"Can't connect to local MySQL server through" socket error
I install mysql and try start
/usr/local/mysql/bin# ./mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
/usr/local/mysql/bin#
Any Idea?
mysql can be started from upstart. Basically you install mysql-server pack... | common-pile/stackexchange_filtered |
Magento homepage directory change
I am a new magento user. I have facing some problems. I installed a new theme in my store. I have remove the theme by removing the theme files. But after that, I have noticed that, my home page is empty. I found that, the home page goes under "home" folder. Means that, now showing the ... | common-pile/stackexchange_filtered |
How to display variable and value labels in ggplot bar chart?
I'm trying to get the variable labels and value labels to be displayed on a stacked bar chart.
library(tidyverse)
data <- haven::read_spss("http://staff.bath.ac.uk/pssiw/stats2/SAQ.sav")
data %>%
select(Q01:Q04) %>%
gather %>%
group_by(key, value) ... | common-pile/stackexchange_filtered |
React's setState seems to strip array of items
This is really weird as I've been using setState for months and this is the first time I've ever seen this issue. I have some code that simply sets a state property to another object. In the object to be set I have one property that is an array called GroupModel. The stran... | common-pile/stackexchange_filtered |
Google Chrome crashes without any log
I wrote a Chrome pop-up extension and it works fine. But when click else where to close pop-up, it crashes Chrome. I tried looking at both the locations mentioned in this question to see if some info is available as to why it is crashing to fix this issue, but the directories are e... | common-pile/stackexchange_filtered |
Using array in the onCreate returns null
I am getting some JSON data and parsing it into my object. Which I am trying to use to get all the fields I need. However I am getting a null on my arraylist and I am not sure why for example.
private List<MovieDetail> mMovieDetails;
@Override
protected void onCreate(Bundle sa... | common-pile/stackexchange_filtered |
Why does highchart add a padding for a certain bar chart?
I encountered a very strange highcharts behaviour.
I am rendering the same chart in two containers with only one px difference in height:
<div id="container" style="min-width: 310px; height:118px; margin: 0 auto"></div>
<div id="container2" style="min-width: 3... | common-pile/stackexchange_filtered |
Node.js: how to request an image only if it changed
I'm designing a node.js app.
One of its tasks is to regularly download a set of images from some public, external, site.
One requirement is to avoid repeating the download of images which are not changed from the previous download.
I plan to use "request" module, sinc... | common-pile/stackexchange_filtered |
How to transcribe the audio of a video file in Flutter?
I'm building a Flutter app that allows users to upload a video file and generate a text transcript of the audio. I've implemented the code to pick a video file from the gallery and display it using the video_player package. However, when I try to start the transcr... | common-pile/stackexchange_filtered |
Android Developer Console won't load because a SSL error
I have a weird problem and I can't find any solution. I have my first app ready to be publish, so I paid my developer fee to Google. It's supposed that now I can access to the Android Developer Console web and... nope. I can't access to this url https://market.an... | common-pile/stackexchange_filtered |
Can you apply the same lexer rules to all programming languages?
I'm trying to understand the theory behind a lexer with the purpose of building one (just for my own fun and experience and to compensate for not taking proper CS courses :)).
What I have yet to understand is if lexer theory is the same no matter what la... | common-pile/stackexchange_filtered |
Dynamic controller with "controller as" syntax
If I want to assign dynamic controller, I can do the following:
<div ng-controller="MainController">
<div ng-controller="dynamicController"></div>
</div>
function MainController($scope){
$scope.dynamicController = MyCtrl;
$scope.instanceName = "ctrl"; // we'll use t... | common-pile/stackexchange_filtered |
Google Drive mapped to letter links instead to user directory
I have two Windows 10 Pro PCs. On both, there are multiple google drive accounts, but one in particular is shared by both.
How can I make it so that on both PCs I can access the files via a dedicated drive letter without linking to Users' directory?
On one ... | common-pile/stackexchange_filtered |
All subgroups of a group with order the square of a prime
So I have a group of order $p^2$ (where $p$ is a prime number) and I'm wondering how many subgroups it can have. By Lagrange's theorem I know that if a subgroup exists its order has to divide the order of the group i.e. $p^2$ in other words it has to be of order... | common-pile/stackexchange_filtered |
Implementing a Suffix Trie using OOP/C++
I am trying to implement a suffix trie in C++ for a programming assignment. Now I think I have the right idea, but I keep getting a segmentation fault and I haven't been able to find what's causing it.
For this assignment, we are encouraged to use VIM/some other basic text edit... | common-pile/stackexchange_filtered |
Weird NSURLSessionDownloadTask behavior over cellular (not wifi)
I've enabled Background Modes with remote-notification tasks to download a small file (100kb) in background when the app receives a push notification.
I've configured the download Session using
NSURLSessionConfiguration *backgroundConfiguration = [NSURLS... | common-pile/stackexchange_filtered |
Positive input is returning as negative
My "num = -num" line inside of my "if (num<0)" line still affects results, even if my input is greater than 0.
#include <iostream>
int main()
{
std::cout << "Enter a positive number: ";
int num{};
std::cin >> num;
if (num < 0)
std::cout << "Negative numb... | common-pile/stackexchange_filtered |
Routing in Wordpress
I am using this example to rewrite url to load a given file car-details.php but I stil get error Page not found when I access domain.com/account/account_page/9 How can I get this working.
class Your_Class
{
public function init()
{
add_filter( 'template_include', array( $this, 'i... | common-pile/stackexchange_filtered |
Android: How to save a JSON file that let you keep the data even after power off?
Okay, so I have this file system using serializer to save an arraylist into a JSON file. The JSON file is created in the code. If I turn off the power, the data and file is erased. So if I want the data saved and reloaded even when the an... | common-pile/stackexchange_filtered |
Adding input value from php in angular function
I have an input with a value setted by php variable:
<input id="name" type="text" value="<?php if(isset($cib)){echo $cib;}?">.
I want use this value to set all the object of angularjs function as showed in the following code:
`angular.forEach($scope.food, function(o... | common-pile/stackexchange_filtered |
Broadcast a word to an xmm register
I need to move a 16-bit word eight times into an xmm register for SSE operations
E. g.: I'd like to work with the 16-bit word ABCD to the xmm0 register, so that the final result looks like
ABCD | ABCD | ABCD | ABCD | ABCD | ABCD | ABCD | ABCD
I want to do this in order to use the pa... | common-pile/stackexchange_filtered |
In OpenGL is there a way to get a list of all uniforms & attribs used by a shader program?
I'd like to get a list of all the uniforms & attribs used by a shader program object. glGetAttribLocation() & glGetUniformLocation() can be used to map a string to a location, but what I would really like is the list of strings ... | common-pile/stackexchange_filtered |
Python maths does not multiply, it uses string instead?
I was just testing a little python maths and I could not multiply numbers! I am really confused because I thought this simple code would work:
test = raw_input("answer")
new = test * 5
print new
Instead, it just gave whatever I wrote five times next to each other... | common-pile/stackexchange_filtered |
SimpleCmsImage.save will not save a thumbnail image
I have a Ruby on Rails web application that uses the Simple CMS plug-in to upload images to the app.
I've used this before. In fact, my current web application is a clone of an original application that works perfectly.
With the new app, the image itself uploads okay... | common-pile/stackexchange_filtered |
Huge log backups due to enabling querystore
We have a SQL Server 2019 CU18 where we discovered a strange issue with querystore.
Normally the average size of the hourly logbackup is 40MB but as soon as we enable querystore the average size of the logbackup is 2.5GB.
There are (according to querystore) 140.000 queries ex... | common-pile/stackexchange_filtered |
On card click I need to call a function and send a different parameter to a function present in another component
My project details component TS file
Requirement //I need to pass a different parameter inside activity from another component html on click i.e (click)="notifyAdmin('visited')"
Ts file:
`
notifyAdmin(activ... | common-pile/stackexchange_filtered |
How to inject @PersistenceContext into pojo class
I'm trying to inject PersistenceContex into POJO using @PersistenceContex annotation, I've read that i need to made that POJO managed to do that. So I inject my POJO class into servlet(so its now managed as dependent object, am i right ?) but when servlet is trying to c... | common-pile/stackexchange_filtered |
R: could not find function "generate.startweights", while using neuralnet package
I was running a neural network using the neuralnet package, but I ran into the problem where if the net hadn't achieved the threshold error predictions later would not work. I found the answer here: R: Error in nrow[w] * ncol[w] : non-num... | common-pile/stackexchange_filtered |
SQL Express remote access
Is there any way to install SQL Express 2005 silently while configuring to allow remote access, or must the configuration be done with the SQL Server Management Studio UI?
After the SQL Service is installed log into the database and run the following and then restart the SQL Service.
exec sp_... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.