text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Inherit border-radius from child to parent
I'm working on a React Component that acts as a clickable wrapper for other components and the issue I have is that some of the other components have a border-radius which makes the wrapper component stick out in the corners. How I've solved this is by giving the wrapper the s... | common-pile/stackexchange_filtered |
Javascript calling $(document).on('click', when document ready
I need some help please. The function below works well with an 'up' and 'down' button on a html form.
I want to call this function simulating clicking the 'down' button when the page has finished loading. I don't know how to do this in my $(document).ready(... | common-pile/stackexchange_filtered |
Active Dropdown Menus
I am working on a project where the user has a selection to make. The selection being, is the member an active member or an inactive member. If the member is active, the user will select the "Active" selection, if inactive, then the user would select the "Inactive" selection.
Dropdown Menu
Below i... | common-pile/stackexchange_filtered |
Blackberry web application wrapping floating divs on top of each other
Our site http://m.sa2010.gov.za has a simple menu structure that relies on floating divs to stack 2 columns of menu elements. Unfortunately it seems to wrap all elements on top of each other when viewed from most Blackberry phones? Any suggestions.
... | common-pile/stackexchange_filtered |
How do I make people stop running with a command?
I'm making a map and when I give them slowness it's still possible for them to walk a little faster (or run with slowness on) but I want them still walking. Can anyone can help me? It has to be a command.
An option would be to detect when a player is sprinting via sp... | common-pile/stackexchange_filtered |
Can't access in any way dynamically generated element with Selenium
I've been trying to modify the router SSIDs through a script made in Selenium, the problem is that I can't get any JS element that's generated by the router page. I've been trying with the Expected Conditions and whatever you could think of but without... | common-pile/stackexchange_filtered |
A problem about symplectic manifolds in Arnold's book
There is a problem in Arnold's Mathematical Methods of Classical Mechanics which says that:
Show that the map $A: \mathbb{R}^{2n} \rightarrow \mathbb{R}^{2n}$ sending $(p, q) \rightarrow (P(p,q), Q(p,q))$ is canonical(p206) if and only if the Poisson brakets of any... | common-pile/stackexchange_filtered |
What does it mean by "labor taxes cut is self-financed"?
I'm reading "Principle of Economics" by Mankiw. In Part III Market and Welfare, Ch 8 "Application: the costs of taxation", it says:
Only 32% of a cut in U.S. labor taxes would be self-financed, the economists note, versus 54% self-financing in Europe. Just over 5... | common-pile/stackexchange_filtered |
To print number pyramid pattern in python
I want to print the number pattern for users given numbers. For eg: if the user enters 3 the program should generate 3 rows and looks like this:
1
2 3 2
4 5 6 5 4
If user enters 4 and output must be:
1
2 3 2
4 5 6 5 4
7 8 9 10 9 8 7
My code as below:
a=3
... | common-pile/stackexchange_filtered |
Google AutoML projects visibility
I have two google account (one private and one for business).
If I log in to my business account and navigate to AutoML I do land on the 'Specify Google Cloud project'. That's right. But when I want do select the associated GCP project the list that appears includes all projects that a... | common-pile/stackexchange_filtered |
What is the next step in this proof? Am I even on the right track? Multivariable Inverse Function Inequalities
We have a question to show a series of three inequalities related to the Inverse Function Theorem. I'm just asking about the first, most straightforward one, which may not actually need the IFT (I think it's a... | common-pile/stackexchange_filtered |
Abort insert/update operation in trigger using PL/SQL
I am to write a trigger that checks some information that is inserted/updated, compare them with data from database and if they are not correct, stops whole operation. I wrote before trigger (for each) and then threw application exception if something was wrong, but... | common-pile/stackexchange_filtered |
How to set up ubuntu server 22.04 minimal networking?
And I know the title seems like dumb, But after some try I think I get into struggle with ubuntu server 22.04 minimal install:
When installing and first boot up, Everything working fine, But soon I notice there is no iproute2 installed. After install I reboot the sy... | common-pile/stackexchange_filtered |
How many bytes is a long in a 64 bit machine
I have compiled the following simple c++ code:
#include <iostream>
int main(){
int a = 5;
int b = 6;
long c = 7;
int d = 8;
return 0;
}
and here is the assembly:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def... | common-pile/stackexchange_filtered |
Recover alarm counter after reboot
In my application, I need to send notifications when is passed like 1 week, or 1 month after the user has done some action in the app... It's working with a BroadcastReceiver like that >>
public void startMyReceiver() {
Long time = new GregorianCalendar().getTimeInMillis() + 1000... | common-pile/stackexchange_filtered |
Python 3.10.4 scikit-learn import hangs when executing via CPP
Python 3.10.4 is embedded into cpp application.
I'm trying to import sklearn library which is installed at custom location using pip --target.
sklearn custom path (--target path) is appended to sys.path.
Below is a function from the script which just prints... | common-pile/stackexchange_filtered |
How to know how much RAM can still be installed
Is there any software that can determine how much more RAM can still be installed on a computer?
How much money do you have?
Although Hennes answer is technically correct, there are solutions out there. Crucial.com has a memory advisory tool that can tell you with an ... | common-pile/stackexchange_filtered |
Import grid text file to shapefile in QGIS
I'm working with the Climate Change forecasts from the Hadley Center Climate Model (HADCM3) available here: http://www.ipcc-data.org/sres/hadcm3_download.html
They have many different forecasts and I'm working with the file: HADCM3_A1F_TEMP_1980.tar.gz. It seems to be a grid ... | common-pile/stackexchange_filtered |
Why does GraphiQL not show the "data" property, but just the "errors" property for Subscriptions?
When executing a Subscription via GraphiQL (v 1.5.1) which throws an error, but also contains data, why doesn´t GraphiQL show the data? And how to achieve this?
In the following screenshot it can be seen that the payload o... | common-pile/stackexchange_filtered |
Difference between Unity's [Command] and [Server]
[Command] and [Server] functions both run on the server and can also be called by a local player but what is the difference between them?
I'm not 100% sure myself, but I do know that [COMMAND] attribute is only for use on PLAYER controlled objects. That might be someth... | common-pile/stackexchange_filtered |
Play video in UITableview Cell
In one of my application i have to play video in UITableviewcell, at a time in one cell one video will play and when scroll UITableview and cell hide video should stop. My project is in Objc.
any suggestion for any third party?
thanks in advance
for playing video in uitableviewcell, what... | common-pile/stackexchange_filtered |
MySQL syntax error when string input contains quotation marks
When I submitted the form to my JDBC connection page it gives an error.
I submitted the form with a data like this
It's wrong
It gives an error as shown below
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; ... | common-pile/stackexchange_filtered |
Riemann integrals and the Volterra's Example idea.
This is an exercise of my course of Measure and Integration. I did not know if my ideas are correct, so I will also post my response so they can comment and help me
Let $f(x)$, for $x \geq 0$ such that:
$$
f(x)=x^{-1/4}, x>0, f(0)=0
$$
... | common-pile/stackexchange_filtered |
WPF Datagrid ItemSource + ObservableCollection
I've a Datagrid that shows all the Data from an ObservableCollection.But I just want to show the first 10 elements in the Datagrid. Can you please help?
add your code, then sure someone can help
I assume you are using MVVM.. You can try using collection view source..
o... | common-pile/stackexchange_filtered |
Secure wcf (using username password validator) not working from php client
I have construct a simple secured wcf with wsHttpBinding in .Net C# (framework 4.5) and consume it from .Net C# (also) client and every thing work fine. But when I try to consume It from php (5.5) client by calling a method from the wcs service,... | common-pile/stackexchange_filtered |
Display HTML on the basis of dropdown menu selected
I have a dropdown menu and on the basis of the item selected I want to display a small part of HTML page.
<select id='menuHandler'>
<option value='abc'> abc</option>
<option value='xyz'>xyz</option>
</select>
IF the selected value is "abc" then a popup butt... | common-pile/stackexchange_filtered |
How to generate documents (doc / pdf) through a facebook chatbot?
How do I make my fb chatbot collect information from user and then, with that information, fill up a form, generating a document (word / pdf), which then will be sent back to the user to download?
So far, I only can collect the info and send it to my ema... | common-pile/stackexchange_filtered |
Vector dot product and scalar multiplication in Grapher.app
I'm trying to play around with vectors in Grapher.app, but I'm getting an error when I try to A: multiply two vectors (specified as a vertical matrix) together, and B: multiply a vector by a scalar value. Here's my dilemma in picture form:
Any ideas?
If you ... | common-pile/stackexchange_filtered |
If I reinstall ubuntu, will i be able to change my root password?
i forgot my old one. can't access GRUB because the piece of Ubuntu i use is the terminal, i don't have any interface.
By default Ubuntu installs without a 'root' password; though one can be added post-install. If you install over it (& format) it will ... | common-pile/stackexchange_filtered |
Is there any way to get a hook or event in Electron JS when a new application is launched
I'm new to Electron JS. Trying to build a cross-platform desktop application to watch user activities.
My requirement is when a user moves out of my application and opens some other application like a browser/ calculator, is there... | common-pile/stackexchange_filtered |
How can I set the size of a Win32 dialog in pixels?
I am trying to get a Win32 dialog that is 500x520 px, but in my .rc file, these settings get me a bigger window than I expected.
IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 500, 520
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
Is th... | common-pile/stackexchange_filtered |
How to parse the Info.plist file from an ipa
I want to write a program to get app details, e.g. app name, version, bundle identifier, from an ipa file. However this file is not a plain text file, it's encoded in some way and my program cannot parse it.
Is there any way to decode this file?
UPDATE
To clarify the questi... | common-pile/stackexchange_filtered |
"tableau-server" openidc id_token not validated (errorCode=69) by tableau-server. vizportal log says wasIssuedByOurIdP:false
Trying to setup openid-connect login for tableau-server-2022-3-10.x86_64 users using keycloak 19.0.3,
the "id_token verification failed (errorCode=69)" at step 6
it makes no difference whether cl... | common-pile/stackexchange_filtered |
Entity Framework auto incrementing field, that isn't the Id
I know this isn't the most ideal solution, but I need to add an auto incrementing field to one of my EF Code First objects. This column id NOT the Id, which is a guid.
Is there anyway for me to define the auto incrementing field in code, or would creating the ... | common-pile/stackexchange_filtered |
FFMpeg How to use multithreading?
I want to decode H264 by ffmpeg, BUT finally I found the decode function only used one cpu core
system monitor
env: Ubuntu 14.04 FFMpeg 3.2.4 CPU i7-7500U
So, I search ffmpeg multithreading and decide using all cpu cores for decoding.
I set AVCodecContext as this:
//Init works
//co... | common-pile/stackexchange_filtered |
how can you use the summon command or setblock command with players cordinates
i was trying to make a fake skeleton and i came in the problem he coudnt shoot arrows because the player runs away i want to summon them next to the player or make blocks right behind the player so can you help me by saying how to do so
Hi... | common-pile/stackexchange_filtered |
Debug python that wont respect a catch statement
I am trying to run avg as part of a program. The program normally is executed automatically, so I cant see the standard output from python.
When I run the program by calling it directly, it works perfectly, however when I run it via automation, it fails.
It will say in ... | common-pile/stackexchange_filtered |
Images are not rendered correctly
This code appears to work correctly, but when I use it to render a image from a database, the image is incomplete on the page. Only about the top 70% of the image was rendered. Different amounts of the images are rendered with different images.
protected void doGet(HttpServletRequest r... | common-pile/stackexchange_filtered |
How to send data from Activity to View
How can I make canvas drawing with custome value.
I used this method to send data from my Information.class extends AppCompatActivity
to CustomeView extends View
Information.class
public int getCategory() {
int side = 100;
return side;
}
CustomView.class (extends view)... | common-pile/stackexchange_filtered |
extra characters in csv output
I'm trying to write a Python program to convert a simple text file to a.csv file.
Each line of input contains names after from: followed by a name. Lines that do not start with from: are to be ignored.
Input:
from: Lance Cummins
This line is ignored by the program
from: Jackie Cohen
Hello... | common-pile/stackexchange_filtered |
Stop link action if onclick function returns false
Here is a function that simply checks if a radio button has been selected on a form element.
function validate_selected(element) {
var radios = document.getElementsByName(element);
var formValid = false;
var i = 0;
while (!formValid && i < radios.lengt... | common-pile/stackexchange_filtered |
Can the Linux ps command output be filtered by user AND command?
I need the pid for a process given its owner and its command. I can filter a process per user with "ps -u xxx" and its command by "ps -C yyy", but when I try "ps -u xxx -C yyy", they are combined using OR logic. I need AND logic. How can I accomplish this... | common-pile/stackexchange_filtered |
MariaDB install OQGRAPH as DB Engine in AWS RDS
Is it possible to install OQGRAPH on a AWS RDS instance? If yes how?
Reading the installation guide: https://mariadb.com/kb/en/mariadb/installing-oqgraph/ installing OQGRAPH requires admin-access to the server - which clearly RDS does not grant.
Any ideas on how to instal... | common-pile/stackexchange_filtered |
Netbeans platform disable an action
On my application, I need to display a "Create project" button if I have the role "admin", otherwise if just a simple user, the action should be disabled and the button should not be displayed at all.
Here is my code:
@ActionID(id = "com.demos.core.action.project.ProjectCreateAction"... | common-pile/stackexchange_filtered |
recursive entity w/out parent/child relationship
I'm trying to represent the following recursive relationship in a RDBMS:
As a basic example, we have the following fields:
1 - computer science
2 - computer engineering
3 - electrical engineering
4 - mathematics
And I want to relate similar fields to each other. I cou... | common-pile/stackexchange_filtered |
Evenly spaced elements while printing
I have this piece of code:
for t in tables:
print ""
my_table = t
rows = my_table.findAll('tr')
for tr in rows:
cols = tr.findAll('td')
i = 0
for td in cols:
text = str(td.text).strip()
print "{}{}".format(text if text !="" else... | common-pile/stackexchange_filtered |
Should 2 Activity's have separate ViewModels if the method usages don't overlap?
I have 1 Activity that only displays and deletes Notes from a RecyclerView.
I have another Activity that only adds and updates new items.
At the moment they both use the same ViewModel class:
public class NoteViewModel extends AndroidViewM... | common-pile/stackexchange_filtered |
How to fix Namespace Laravel selection issue error= '@if(Auth' is not bound
I have this piece of code that I did not write, but need to trouble shoot. The user is supposed to have the choice to pick one, two, or all 3 selections, but no matter what we select, nothing is working. It is giving me an error message of "Nam... | common-pile/stackexchange_filtered |
Trying to delete when not exists is not working. Multiple columns in primary key
I am currently trying to delete from Table A where a corresponding record is not being used in Table B. Table A has Section, SubSection, Code, Text as fields, where the first three are the Primary Key. Table B has ID, Section, SubSection... | common-pile/stackexchange_filtered |
Supremum Infimum argument: what did I do wrong?
Suppose $f:[a,b]\to\mathbb R$ be a function such that $|f(x)-f(y)|<\epsilon_0$ for all $x,y\in[a,b]$. Then $M-m\le\epsilon_0$, where $M=\sup\{f(x):x\in[a,b]\}$ and $m=\inf\{f(x):x\in[a,b]\}$.
I went this way: suppose $M-m>\epsilon_0$, hence $M>\epsilon_0+m$, hence there... | common-pile/stackexchange_filtered |
How can we display SKU in URL structure?
How can we display SKU in URL structure? e.g domain/Product name kws/industry/SKU-product type. I'm also using SKU auto generator to generate SKU's.
Use Magento event observer and use catalog_product_save_before event on this function you need update magento Product url key ... | common-pile/stackexchange_filtered |
How to deal with costly building operations using MemoryCache?
On an ASP.NET MVC project we have several instances of data that requires good amount of resources and time to build. We want to cache them.
MemoryCache provides certain level of thread-safety but not enough to avoid running multiple instances of building ... | common-pile/stackexchange_filtered |
If two consecutive columns are equal and adjacent column has variations find those entries
For Excel, I want to compare all consecutive cells in a column with the values in adjacent column. If there is a variation for same consecutive cells having same values, I want to copy the entire row to a new tab called "incorrec... | common-pile/stackexchange_filtered |
How would i implement random.sample so that it would choose 2 out of 3 variables without it repeating?
I am making a mini quiz that uses classes and OOP. I want to the code to randomly select 2 out of the 3 questions and I don't know whether I should use random.sample or not or where to even use it.
import random
clas... | common-pile/stackexchange_filtered |
How to map millisecond precision timestamp field in MySql with JPA
I need to store millisecond precision timestamp to database.
I made a lot of tries with things from google search. But every tries failed.
All of them truncated milliseconds and return only to the seconds.
What's wrong with my tries?
Here I list what I ... | common-pile/stackexchange_filtered |
Cloud Effect In Blender to Unity
Hi I'm trying to create 3D clouds in Blender to be used in Unity. Imagine the bubbly-like fx of the flying nimbus in Dragon Ball. Not really sure what the best approach is. I've tried using displacement modifiers and get decent results in Blender. But exporting to Unity is a no go. ... | common-pile/stackexchange_filtered |
working of Softlockup in the kernel
Softlockups are defined to occur if the watchdog task (real-time) doesn't update the time stamp at the hrtimer callback.
Now, if a bad thread is stuck in the kernel (looping), why won't the scheduler be able to schedule the watchdog task? I mean, the faulting thread will continue to ... | common-pile/stackexchange_filtered |
Does God need food and water to stay alive?
Peace be with you!
Does God need food and water to stay alive?
Did Jesus Christ need food and water to stay alive?
Was Jesus Christ the God when he needed food and water to stay alive?
Does not make any effort to meet minimum standards of an SE site question.
@Thom Mouse ... | common-pile/stackexchange_filtered |
Is it a good idea to link your LinkedIn profile in the CV section of your dissertation?
I've passed the disputation and am now preparing the document for the printing press and final submission. We're required to have a CV in the back matter of the dissertation, and I was wondering if it is a good idea to link to my Li... | common-pile/stackexchange_filtered |
Add Bootstrap alert to php login form
I have a login for it displayed an error message if the username and password are incorrect but I would rather it displays a Bootstrap alert box. I have tried to change the code but get errors this is the working code.
<?php
require('db.php');
session_start();
if (isset($_POST[... | common-pile/stackexchange_filtered |
Apache Commons Daemon - Cannot launch service
I can install, uninstall and run my service as a console application using the Apache Commons Daemon tool. The problem is when I try to run my application as a service, the service status doesn't switch from stopped to running.
Script used to install the service:
prunsrv.e... | common-pile/stackexchange_filtered |
Use the binomial series of $(1-2x)^8$ to evaluate $0.98^8$ to 7 decimal places.
Use the binomial series of $(1-2x)^8$ to evaluate $0.98^8$ to 7 decimal places.
I tried using the first five terms of the series: $1, 8, 28, 56$ and $70$, to get
$$1+8(2(-0.01))+28(2(-0.01))^2+56(2(-0.01))^3+70(2(-0.01))^4$$
$$1-0.16+0.011... | common-pile/stackexchange_filtered |
How can i convert this Do While loop into another sort of loop, a while loop?
public void humanPlay()
{
if (player1.equalsIgnoreCase("human"))
System.out.println("It is player 1's turn.");
else
System.out.println("It is player 2's turn.");
System.out.println("Player 1 score: " + player1Score);
System.out.prin... | common-pile/stackexchange_filtered |
Why QAction is not adding to QMenu, if QMenu is unique_ptr?
Code example:
auto fileMenu = std::make_unique<QMenu>(this->menuBar()->addMenu("First"));
fileMenu->addAction("AFirst");
auto x = this->menuBar()->addMenu("Second");
x->addAction("ASecond");
Results:
I have 2 menus in menubar, but in first menu - for some re... | common-pile/stackexchange_filtered |
What is the difference between a Simple Random Walk and a Random Walk and why is one stationary, while the other is not?
To clarify, by a Simple Random Walk I mean
$$
Y_i =
\begin{cases}
-1 & prob = 1/2\\
1 & prob = 1/2
\end{cases}
$$
$$
X_t = \sum_{i=1}^t{Y_i} \quad \textrm{,}\,X_0 = 0
$$
and by Random Walk I mean
$$... | common-pile/stackexchange_filtered |
Independence of $n$ random variables
Let $A_1,A_2,\ldots,A_n$ be independent subsets of probability space $(\Omega, \Sigma, P)$ (For every $I\subseteq \{1,2,\ldots,n\}$, $P(\bigcap_{j\in J}A_j)=\prod_{j\in J}P(A_j) )$. Prove that $1_{A_1},1_{A_2},\ldots,1_{A_n}$ is independent, i.e. for every Borel set $B_1,B_2,\ldots,... | common-pile/stackexchange_filtered |
Word Vba: Get position of the first table borderline
I am writing some code in VBA in word and I would like to get the position of first borderline of the table as shown in this image
As seen in the above image, i would like to equalize the first table margin and second table margin (not sure if "margin" is the right ... | common-pile/stackexchange_filtered |
How can I fix this apk not uninstalling problem in my custom rom?
I like custom ROMs very much. And this problem is regarding issues that I get while uninstalling an app in a specific unofficial rom. Let's start from the beginning:
I downloaded this rom from this forum(https://forum.xda-developers.com/t/rom-nicklaus-7... | common-pile/stackexchange_filtered |
Was there ever a rule requiring diagonal serve in table tennis singles games?
When I was a kid (born in the mid-70s, in Sweden) and we played (for fun), we required that the serve was diagonal in a table tennis singles game. I've spoken to people all over Europe that applied that same rule, but I've also met people tha... | common-pile/stackexchange_filtered |
How to use Reflection to retrieve a property?
How can I use Reflection to get a static readonly property? It's access modifier (public, protected, private) is not relevant.
you can use the GetProperty() method of the Type class:
http://msdn.microsoft.com/en-us/library/kz0a8sxy.aspx
Type t = typeof(MyType);
PropertyInf... | common-pile/stackexchange_filtered |
How to make this layout by display:table
Just started to learn CSS and happened to see some discussion about display:table for web layout. I made a simple pen in which a two-row layout is created by inline-block and floats respectively. I doubt if display:table can be used to do this.
.container{
width:5... | common-pile/stackexchange_filtered |
iNotes on any version of Internet Explorer is emulating IE9
I am customizing iNotes (Notes web mail client), adding some features using javascript that require ajax calls to external sources. In doing so I have found Internet Explorer won't perform CORS (cross-origin) requests. Errors are either access denied or some ... | common-pile/stackexchange_filtered |
Why SD.exists() only looks for inside media/realroot on Intel's Galileo?
I'm following a tutorial which says SD.exists() only look for files inside media/realroot on Intel's Galileo board. I just confirmed this using SSH to create e remove files during a loop which was looking for some specific named file. Where's info... | common-pile/stackexchange_filtered |
My CTC loss model's loss stagnates and then outputs only blank characters
I am trying to implement BaiDu's DeepSpeech1 in keras using CTC loss, my code is below:
class dataGen(Sequence): # data generator for Mozilla common voice
def __init__(self, audiopaths, transcripts, batch_size):
self.x = audiopaths
... | common-pile/stackexchange_filtered |
PS file from Overleaf
I create a document in overleaf and i need to have PDF, DVI and PS formats of thet document. PDF got, for DVI I had to change compiler to LaTeX, but I do not see PS file there.
How can I get that format? All my graphics are in .eps format.
are you sure you need those formats? It sounds like the ... | common-pile/stackexchange_filtered |
Different colors on the same polygon in 3D view of QGIS
I have a .shp file with buildings represented as polygons.
My goal is that, in a 3D representation, I am able to have different colors in a single polygon (building) depending on its height. For example, from 0 to 10 meters, buildings are yellow, then from 10 to... | common-pile/stackexchange_filtered |
Programming interview: on sorted arrays, algorithm proof
The following is a programming interview question: Given 3 sorted arrays. Find(x,y,z), (where x is from 1st array, y is from 2nd array, and z is from 3rd array), such that Max(x,y,z) - Min(x,y,z) is minimum. This question is discussed here: http://www.careercup.c... | common-pile/stackexchange_filtered |
Multiple settings for separate Live Wallpapers
I have two Live Wallpapers that belong to the same Application and I am trying to have separate Preference settings for each one but I have run into the issue of the first settings being used by both Wallpapers.
<application android:icon="@drawable/icon... | common-pile/stackexchange_filtered |
PHP check if string is SQL timestamp
I need to create a PHP function that will check if a string is a SQL timestamp yyyy-mm-dd hh:mm:ss[.fff]. Has anyone done this? Suggestions?
Just to mention: At least mySQL understands ISO-8601 (2004-02-12T15:19:21+00:00, see http://php.net/date with format c) and several others to... | common-pile/stackexchange_filtered |
Working menu link now leads to 404 error page
I am working on a new website development with Joomla 3.1. The menu links were working fine before. However, suddenly one of the menu link now leads to the 404 error page.
It happened once before and I fixed it by changing the menu alias. I wonder why and how the old alias ... | common-pile/stackexchange_filtered |
SP2007 (All)UserData nvarchar field content garbled for choice fields
In our SharePoint 2007, one of our lists field is configured as such:
<Field Type="Choice" DisplayName="Standard" Required="FALSE" Format="RadioButtons" FillInChoice="FALSE" Group="gc_xyz" ID="{e5d39160-a777-4d70-b372-a7ca76305adc}" SourceID="{21f217... | common-pile/stackexchange_filtered |
Context-free grammar for simple arithmetic
Without the use of parentheses and only considering addition, subtraction, multiplication, and division, the following context-free grammar describing these simple arithmetic operations is incorrect, right, because it is right-associative rather than left-associative?
- E -> ... | common-pile/stackexchange_filtered |
Substitution method for solving reccurences
I have recently had trouble with understanding the substitution method for solving reccurences. I watched few on-line lectures about the problem, but sadly it did not tell me much (in one of them I heard that it is based on guessing, which made me even more confused) and I am... | common-pile/stackexchange_filtered |
Racetrack plotter
My Racetrack is just that. A Racetrack. You can't race it (yet) because I had trouble with collision detection, but I wanted to share it anyway.
It creates a base polygon by using numpy and shapely. matplotlib (together with descartes) does the plotting and cPickle is used to write states to file so t... | common-pile/stackexchange_filtered |
How can I install Tilix on Deepin 15.11 properly?
I installed Tilix by using:
wget https://github.com/gnunn1/tilix/releases/download/1.9.3/tilix.zip -P $HOME/Downloads
sudo unzip $HOME/Downloads/tilix.zip -d /
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
After running tilix in Terminal I get:
object.Exceptio... | common-pile/stackexchange_filtered |
An Excel Transpose between 2 specific symbols
I'm trying to organize catalog records exported from a very outdated program my library is using to get it ready to import into the new catalog. The records come out like this:
~#[K11
title[Yada Yada
date[19xx
Entry body text
Entry body text
Volume:1
Location: Outer M... | common-pile/stackexchange_filtered |
Programmatically setting d3 zoom transform
I have both an image and a linear scale that I need to zoom in/out.
I have done this by getting the Y domain of the zoom transform and successfully zooming both that way:
y.domain(zoomTransform.rescaleY(y).domain());
But is it possible to do the reverse? Set the zoomTransform.... | common-pile/stackexchange_filtered |
Odd interaction of secnumdepth and section-based counters
In the following MWE:
\documentclass{book}
\newcounter{exnum}[subsection]
\begin{document}
\chapter*{Chapter}
\section*{Section 1}
\subsection{Subsection A}
\setcounter{exnum}{1}
Exnum is \theexnum.
\subsection{Subsection B}
Exnum is ... | common-pile/stackexchange_filtered |
How can I check for a missing configuration section when using the Options pattern?
I have a simple controller that reads some configuration from appsettings.json using the Options pattern. It works fine as long as appsettings.json is configured correctly. However, what if my configuration section is missing from appse... | common-pile/stackexchange_filtered |
Why can't we create object in Qt without the new keyword (i.e. on stack)?
Why can't we create object in QT without the new keyword? Usually we create pointer to an object, like this:
QLabel *ql=new QLabel(); ql->show()
But I want to create an object like this:
QLabel ql=QLabel(); ql.show()
Is it possible?
Th... | common-pile/stackexchange_filtered |
Log Parser 2.2 Registry Wildcard Search
I'm trying to figure out if there is a way to do a wildcard registry search using Log Parser 2.2. A sample of what I'm trying to do:
try
{
LogQuery qry = new LogQuery();
RegistryInputFormat registryFormat = new RegistryInputFormat();
s... | common-pile/stackexchange_filtered |
R Markdown 'awesome cv' fails to knit: revision 70721 of the texlive-scripts package seems to be older than the local installation
When I try to knit the ‘awesomecv’ template, or any of the cv templates in R, I am getting this error:
tlmgr.pl: Remote database (revision 70721 of the texlive-scripts package) seems to be... | common-pile/stackexchange_filtered |
How to verify multiple OTPs using the prompt in browser?
I want to use the snippet below to verify multiple OTPs. If one OTP is correct, the user should be asked the next question. After 4 questions, show greetings.
var question = prompt('Who shot Abraham Lincoln?');
switch (question) {
case 'john wilkes booth':
... | common-pile/stackexchange_filtered |
Firestore function .onCreate trigger
I am sending a notification using .onCreate on a collection.
My collection is tasks. When new task is given, I need to send a notification to the assigned person.
Do I need to save token of this assigned person? I can only fetch those values which are getting saved in document. The... | common-pile/stackexchange_filtered |
Problem 3-38 in Spivak´s Calculus on Manifolds
This is not homework. Problem 3-38 reads:
Let $A_{n}$ be a closed set contained in $(n,n+1)$. Suppose that $f:\mathbb{R}\rightarrow \mathbb{R}$ satisfies $\int_{A_{n}}f=(-1)^{n}/n$ and $f(x)=0$ for $x\notin$ any $A_{n}$. Find two partitions of unity $\Phi$ and $\Psi$ such ... | common-pile/stackexchange_filtered |
Take a picture and reduce the quality
In my Android app, I have a button to take a picture like this :
button_photo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
imageUri = Uri... | common-pile/stackexchange_filtered |
Java - subclass and superclass relationship
I'm working on a homework assignment for my Java course and I'm completely lost. I guess I don't fully understand subclass and superclass relationships, but I'm trying my best to trudge along. The assignment asks us to do this:
The class Stock.java represents purchased shares... | common-pile/stackexchange_filtered |
Is it possible to add a custom `ChannelInboundHandler` in Micronaut?
I would like to add a custom ChannelInboundHandler in my Micronaut service so that I can listen for the SslHandshakeCompletionEvent produced after a TLS handshake has been attempted.
I seem to be able to add a ChannelOutboundHandler simply enough by a... | common-pile/stackexchange_filtered |
iOS - Making documents uneditable using iTunes file share
I'm using iTunes file share across my app. My app provides several files which can be transferred over using iTunes file share. However at the moment the user can delete, rename (basically do anything to what is inside my app which is shareable)
I want to know h... | common-pile/stackexchange_filtered |
Best practice for bucket in MinIO
I'm designing my service and I wonder in what circumstances is a new bucket needed, using MinIO or any S3-compatible service?
To my impression, buckets are like folders so you can literally align them with any entity in the structure.
For example, if I'm building a service where users ... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.