text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Capistrano deploy removes table I use capistrano to deploy my Rails app to my VPS, but after every deploy when I visit my page I get an error. The log says:
I, [2014-11-04T08:20:16.659289 #12482] INFO -- : Started GET "/" for 82.73.170.71 at 2014-11-04 08:20:16 -0500
I, [2014-11-04T08:20:16.662717 #12482] INFO --... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26736507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VBA. Data not splitting with Other parameter set to True Why isn't the data getting splitted with the "-". When I try "." it works.
A: Your data is being stored as dates which is a numeric value (today's excel date is 44,885), which does not have a dash, it's just displayed that way. To prove it, change the format... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74511392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to detect restricted profile in Android 4.3 Android 4.3 provides the facility of restricted profile. so if user is on restricted profile then apps gets crashed on it and its works on normal mode.is there any way to detect that user is in restricted mode.
please tell me if anyone knows.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/19559020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Reverse a linked list pairwise I am trying to reverse a linked list pairwise i.e as follows
1->2->3->4->5 changed to 2->1->4->3->5
I have been able to do that recursively. However, I am getting confused while doing it iteratively.
public class FastList<Item>
{
private Node<Item> first;
private static ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27322787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Selecting the most popular type i have the following problem:
i'm having problems selecting the most popular(the one that has the highest value in count) place for each city from a table like this:
city place COUNT
A X1 30
A X5 12
A X3 5
B X1 35
B ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37244152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Telegram bot: Wrong response from the webhook: 426 Upgrade Required I'm trying to run Telegram bot using webhook and always have the same error while trying to perform any request e.g. https://api.telegram.org/botTOKEN/getWebhookInfo.
My setup:
Kubernetes/Istio -> Istio Gateway -> nginx -> python-telegram-bot
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65751645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Batch Command Line to Eject CD Tray? I'm currently trying to move my CD's of backup to my Backup HDD.
To automate the task I'm trying to create a batch to copy the files with the label of the CD than eject the media.
The code looks like this so far:
@echo off
SET dest=F:\Backup\
d:
:: routine to retrieve volume l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19467792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to validate a form with multiple checkboxes to have atleast one checked I'm trying to validate a form using the validate plugin for jquery. I want to require that the user check at least one checkbox in a group in order for the form to be submitted. Here's my jquery code:
$().ready(function() {
$("#subscribeF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1535187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Error: Bad routine reference "OFFSET"; routine references in standard SQL views require explicit project IDs We have some views/queries saved in BigQuery project which gets pulled by our BI tool. Those views haven't changed for a while and this morning we saw intermittent errors below. It doesn't occur all the time.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51879715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Partial sharing of git repositories I am new to git. I am wondering whether the following scenario is supported, and if so how (i.e. git commands for setup and update).
A repository is available from three different places: 'local', 'mirror' and 'github'. 'mirror' mirrors 'local' completely and 'github' mirrors 'loc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Difference between DataFrame.plot.line and scatter What is the difference between a "line" plot and a "scatter" plot when using DataFrame methods plot.line() and plot.scatter()?
Obviously there are some superficial differences such as line plots being connected by default, but you could turn that off with linestyle=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57015700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript image cropping different shapes I am starting work on an application that needs image cropping with various shapes for example : I upload an image and the crosshair selection that the user gets could be of the shape of a human face or a car or shape of love etc. Something similar to https://www.mysticker... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12658831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Beaker Notebook plotting in Scala I am looking to learn how to plot from Scala into a Beaker cell.
I've seen the plotting API which takes a JSON object and renders a plot, however I cannot figure out how to leverage this functionality, or if there is a Java/Scala API injected into the Classpath I can leverage for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37769971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can Powerbuilder Graph labels show values instead of percentages? Using PB 12
I have a pie chart that breaks down project billings. It is showing percentages, but for me it would be more useful to show the values.
I am having a very hard time finding any resources on manipulating charts. I'd also like to be able t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15033850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows phone debugging in device I am a windows phone app developer. My PC do not have enough graphics to support windows phone emulator. So I am developing application by using the windows phone device (HTC HD7) for debugging and testing from almost 5 months now. Now my device is so hanging and switch-off automati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14452046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I query the latest save progress of a list of users. (php/html) I have a register and login site where people can click save progress on a form and it inserts a new row with their session id in column 2 as (user_id).
I also have an admin login where I can see their entries but it shows a list all their saves.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13665381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Python - checking if a list is a subset of another list, if not, how do i split it? How do I find the minimal amount of lists that mylist is in, for example,
For the lists below, I can easily find that Sarah's animals all belong in house_animals using set(sarahs_animals) < set(house_animals)
However Johns animals ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44281436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Importing CSV file PostgreSQL using pgAdmin 4 I'm trying to import a CSV file to my PostgreSQL but I get this error
ERROR: invalid input syntax for integer: "id;date;time;latitude;longitude"
CONTEXT: COPY test, line 1, column id: "id;date;time;latitude;longitude"
my csv file is simple
id;date;time;latitude;longi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49844570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trying to download multiple data from yf.download I'm trying to download data from yfinance, if I use this it works:
data = yf.download("EURUSD=X" start="2020-01-01")
But if I try to add in another currency like this:
data = yf.download("EURUSD=X", "GBPUSD=X", start="2020-01-01")
I get this error:
data = yf.downlo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66173832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Failing to install psycopg2-binary on new docker container I have encountered a problem while trying to run my django project on a new Docker container.
It is my first time using Docker and I can't seem to find a good way to run a django project on it. Having tried multiple tutorials, I always get the error about ps... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62715570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Which has more priority: || or && or == I have this expression:
y[i] = ( z[i] == a && b || c )
Which of these elements (&&, ||, ==) have the priority?
Can you please show the order of operations with brackets?
A: The priority list:
*
*==
*&&
*||
A: First ==, then &&, then ||.
Your expression will be evalu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33583606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Cocos2dx-android-Assert Error :ccArray.cpp function:ccArrayAppendObject line:120 Assert Error :ccArray.cpp function:ccArrayAppendObject line:120
this is the error when i am trying to execute a frame animation using this code :
CCArray *frames= CCArray::create();
for(int i=0 ; i<=21 ; i++)
{
CCString *frame=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16040101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to combine Django FormSet and QuerySet in view and template? I have Django 1.6 application that will contain a form that displays a list of customers with a pair of "Approve" and "Reject" radio buttons next to each name to indicate if we will approve or reject their method of payment. I want each radio button t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28561368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is Cake PHP bake creating views containing fields from the wrong table? QUESTION
Why is Cake PHP bake creating views containing fields from the wrong table and how can I get it to use the correct table?
BACKGROUND
I have a cake:
v2.5.1
... and a table:
CREATE TABLE IF NOT EXISTS `user_quotes` (
`id` int(11) NOT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33765314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting Time Format without using strptime I've been tasked with printing yesterday's, today's and tomorrow's date. The task itself is very simple, but i wanted to also change the way the date is displayed. I would like to display the date as day/month/year
I've tried the ways proposed online but they don't work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74386807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: PayPal Checkout Integration with Smart Payment Buttons I'm currently working with the PHP framework Codeigniter 4.0.4 and trying to add the PayPal Checkout Intergration with Smart Payment Buttons.
I used the PayPal API as an example, but I always get an error message when I try to create an order.
When I click on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64338833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using CASE function in SQL I have a table like:
2 Savita EC1 50
2 Savita EC2 55
2 Savita EC3 28
2 Savita EC4 30
2 Savita EC5 60
3 Abhi EC1 40
3 Abhi EC2 38
3 Abhi EC3 35
3 Abhi EC4 45
3 Abhi EC5 37
4 Priya EC1 60
4 Priya EC2 49
4 Priya EC3 26
4 Priya EC4 29
4 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31085714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Vue.js - Getting data from multiple keys in an object I'm trying to set something up in my app where I can select an option from a list and change the background of the app depending on what's selected.
Let's say I have a list like:
<li v-for="item in items">
<label class="radio">
<input type="radio" val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39417390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xamarin Forms Messaging Center to one JSON I want to use Messaging Center for looping through a form to save as a JSON.
I have 2 Accordion views on my MainPage.xaml and inside the view are labels/checkboxes/entry.
when I press the save button in my accordion view it performs this code which saves as a json:
public c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54091509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: problem with my code a variable that cannot be used with < o > power=input("How much power would you like to have?(power goes from 1 to a 100)")
while power > 100 or power < 0:
if power < 100 or power > 0:
break
else:
power=input("How much power would you like to have?")
when i try to run th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61855570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: BASH: Pause and resume a child script I want to control a child script somehow. I am making a master script which spawns many children scripts and need to RESUME and PAUSE them on demand.
Child
Do stuff
PAUSE
Cleanup
Parent
sleep 10
RESUME child
Is this possible?
AS PER SUGGESTIONS
Trying to do it with signals whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25505613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Module Repeat on selected pages How to repeat HTML module with content on selected pages?
Not on all pages
I know there is an option to display module on all pages under module setting.
A: Use the "Add Existing Module" function to handle this.
For this First of all add HTML module on page.
To add that HTML module o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24908635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OneToMany mapping not working in Spring Boot + Hibernate I am working on Spring Boot + Hibernate application. I wanted to know how I can save OneToMany relationship including the foreign key as well.
I have 2 classes Employee and Address that has OneToMany relationship.
@Entity
public class Employee {
@Id
@... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43617244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Handling token timeout using providers in Ionic 2 I have an Ionic 2 app with two providers, one related with OAuth authentication, and another with App services. When the app token expires, App service calls will return 401 errors
I would like a behavior where 401 errors are handled globally such that the OAuth prov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41367265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deploy front-end angular app at with json-server Cloud9 I'm new to web development and just finished Angular course at Coursera.
Everything was OK to my course project app until I have decided to deploy it at Cloud9. So the app doesn't have back-end and takes data from a simple db.json file which I was running on m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35336848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Executing Store Procedure in Class in C#, ASP.NET I have one class named e.g abc.cs. I am using custom function for searching criteria like this:
public System.Data.DataTable myFunction(string SearchText, string ColumnName, string
SearchCriteria)
{
// ColumnName is the name of the column in db table as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21454574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to prevent multiple definitions in C? I'm a C newbie and I was just trying to write a console application with Code::Blocks. Here's the (simplified) code:
main.c:
#include <stdio.h>
#include <stdlib.h>
#include "test.c" // include not necessary for error in Code::Blocks
int main()
{
//t = test(); // calling... | {
"language": "en",
"url": "https://stackoverflow.com/questions/672734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: WPF AvalonDock LayoutChanged and LayoutChanging MVVM I am using the AvalonDock component in my MVVM WPF application. In my XAML I have something like this:
<xcad:DockingManager Name="_dockingManager" Margin="5" Grid.Row="2"
DataContext="{Binding DockingManagerViewModel}"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57987291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to query with 2 or more SQL joins My CouchDB database has 3 types of data: A, B, C.
*
*A has a 'b' attribute being an ID to a B, and a name
*B has a 'c' attribute being an ID to a C, and a name
*C has a name
for instance:
{ _id:"a1", type:"A", name:"aaaaa", b:"b1" }
{ _id:"b1", type:"B", name:"bbbbb", c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48126469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I test setResult() in an Android Espresso test? Is there any good way to test the result code and data in an Android Espresso test? I am using Espresso 2.0.
Suppose I have an Activity called BarActivity.class, which upon performing some action, calls setResult(int resultCode, Intent data) with the appropriat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30083487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Python SpiDev TypeError when trying to recieve and then send data I am trying to receive data on my Raspberry Pi from one micro-controller that is sending a byte, and then sending that data off to another micro-controller. However, I get the following error:
resp = spi.xfer(list) TypeError: Non-Int/Long value in ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58648381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS hover only working with anchors in IE10? I have tried a few really basic css hovers which work on all browsers except ie10. My question now is what is going on? It only works on anchor tags. Is there any work-around? I tried specifying a background-color but that doesnt work.
I read a lot on stackoverflow but n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27493928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pausing & Resume Android Repo Sync I am trying to sync the following repo
repo init -u git://github.com/SlimRoms/platform_manifest.git -b jb
The problem is i have started the repo sync around 30 hours ago & its still not complete. (i have a 1Mbps connection). I dont want to keep the laptop switched for so long now... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12555835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Convert to date only when needed I tried converting the strings to date, which works but:
Original
Converted
10/5/1983
1983-10-5
05/27/87
1987-05-27
3/10/1970
2070-03-10
↑↑↑ This is the error. Somehow some of the 19xx got converted to 20.
I have tried: df['BirthYear'] = pd.to_datetime(df['BirthYear']... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73226041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to hide column of data from highcharts I have a CSV file with this content:
Date,Value
2014-01-12,11286,3031
2014-01-13,11994,2115
How can I hide the last column (with values 3031 and 2115) from appearing in my HighChart?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/29605325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Switch views on the same tab in a tab bar WITHOUT using a navigation controller I am looking for a way to switch the current view in a tab container to another, all within the same tab and not using a navigation controller.
I have tried something like this:
FooViewController *fooViewController = [[FooViewController ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7164819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uncaught TypeError: Cannot read properties of undefined (reading 'window') I have a problem in my Angular 8 project, everything runs fine with ng it works, but when it runs ng build --prod the project compiles without errors and sends it to the server and then presents this error, what can be causing this?:
main-es2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69910136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: WCF tracing of ONLY failed requests? I want to save trace information into .svclog files but only for failed requests. Is this possible? If so, how precisely?
I have a WCF service that's called hundreds of times per minute. On rare occasions clients will get an error 500 that occurs outside of the boundaries of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4222023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to communicate processes of a tree without external mechanisms I need to build a process tree in C using fork() with the following shape:
I have to send signals between them so I would also like to know if there is any way to store the PIDs of the processes in an array or something else, so each process has the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41244286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sending String From JavaScript to Servlet I know this is a heavily asked question, but no matter how much I google it, I still can't seem to work.
I simply want to send several parameters to a servlet, "/gamesave".
The way I'm currently trying to do this is by clicking a button which calls this saveFunction() and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23465061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails Where Clause PG::SyntaxError: ERROR: subquery must return only one column I want to take advantage of rails scoping with a custom sql query. You can click this post for I'm trying to do - especially in ActiveAdmin.
How to use a find_by_sql query for an ActiveAdmin index page?
Basically I'm trying to do some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30065709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: generate data from rails console Let's say I have User(name, password, email, zip code) table and I want to generate User objects with random data.
Is there a command( to use on rails console), which does that? something like User.generate.
A: After adding the Faker gem to your gemfile, add this to your user.rb fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31252052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Struggling with 2 methods writing this java class in NetBeans IDE 8.0 - probably quite basic I'm trying to create a class that runs this input file:
package tester.test5;
/**
* @author cf0rd
*/
public class RunAddress {
public static void main(String[] args) {
Person p1 = new Person("Teri", "Politician");
Person... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29103935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic name variable on django template I'm having a problem with django. I have a dict with all my site texts for translations. For example:
term = {"level_1": "Noob",
"level_2": "Noob 2"}
The problem is, how can I access this key on django template?
I have
img src="/images/level_{{player.level.id}}.jpg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13387885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't apply background image in css (flask template) I want to apply background image in internal css. I'm using flask template. this is my directory
src - templates - image - img.jpg
src- templates - upload.html
I want to apply the background image at upload.html. but I got 404 error. can someone help me please?
m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56326136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to run jquery function only on one element using class name. there is more element using same class I have following code in my gallery page to show the galleries I have.
<div id="gallery">
<?php
if (!empty($gallery)) {
foreach ($gallery as $row) {
?>
<div class="album_hol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23324544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying an image based on a variable from a PLC (programmable logic controller) I am trying to display an image based on variables from a PLC (programmable logic controller). I want to retrieve the variable from the PLC then get the images from my computer because the PLC doesnt have enough memory to store the im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24250175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Running Laravel 5.1 Task Scheduler in Plesk I have uploaded my laravel 5.1 project on Plesk server.
I wanted to run task scheduler in Plesk , i have seen many answers on internet to do so but nothing seems to be working for me.
My Plesk Task Scheduling Interface
I am running schedule:run command like this
php /... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44014239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Excel-like behaviour of Grids in Ext JS I'm trying to figure out a way to have an Excel-like behavior with the Grids on Ext JS.
Here is the sample grid I am working with. So far we can already naviguate through the cells with the arrows but only in edit mode.
However what I am trying to reach is the naviguation wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38187456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Query Sql to return value I want to write Query to display value in MessageBox , but it is not true :
SqlDataReader myReader = null;
SqlCommand myCommand = new SqlCommand("select BillNumber from BillData", cn);
cn.Open();
myReader = myCommand.ExecuteReader();
MessageBox.Show(myReader.ToString());
cn.Close();
A: Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20073793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .htaccess: Rewrite dynamic url with static url I want to enter http://localhost:81/admin/dashboard in my browser but the request should be http://localhost:81/admin/index.php?page=dashboard.
The mod_rewrite is enabled and i tried this in the .htaccess but it didn't work. The .htaccess is located in htdocs/admin/.hta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36190029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Check stored procedure, if it is valid I have problem in my program and I didn't find error in my code. I think it's because StopProc. Can anybody check my stored procedure to see if it is valid?
ALTER PROCEDURE dbo.Update_FeatureUsers
(
@FeatureID int,
@UserID nvarchar (MAX),
@CreatedUs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14607599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to start ActiveMQ when tomcat starts? How do I configure my J2EE application so that I can invoke ActiveMQ service along with tomcat server? I am aware about embedded broker, here asking how to start the ActiveMQ whenever I start tomcat
Current Code (works fine) :
Now I want to remove main() method and use the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32945265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: cassandra - not able to insert decimal numbers using ruby client in a composite column I have a composite column family with the following schema
CREATE TABLE employees (
name varchar,
month int,
date int,
salary... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12949217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: AWS PHP SDK ContentType not being set When uploading to S3 via PHP SDK even after setting the correct ContentType S3 still shows application/octet-stream
$file = Aws::putObject([
'Bucket' => 'types-jpeg',
'Key' => 'current.jpg',
'SourceFile' => 'uploads/current.jpg',
'ContentType' => 'image/jpeg',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53147886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sas: when category variable has more than three levels, can I just select two levels data to run two sample t-test As the title, I have a category variable including A,B,C three levels. I want to just select two levels such as A and B, as I know C is none of the business to run two sample t-test.
proc ttest data=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40733739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom highlight UIView I custom View extend UIView
@interface AttachmentView : UIView
@property (nonatomic, getter=isHighlighted) BOOL highlighted;
@property (weak, nonatomic) IBOutlet UIImageView *imageFileType;
@property (weak, nonatomic) IBOutlet UILabel *lbName;
@property (weak, nonatomic) IBOutlet UILabel *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21035443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding input nodes on an intermediate layer I am trying to implement a ConvNet binary classifier on a set of images (2D arrays). I realize that the first convolutional layers are essential for feature extraction. I, however, have additional input parameters which could help in classification. The idea is to append a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56953211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ring Buffer on C I just started learning C language. Now my task is to write a simple ring buffer.
I wrote a code but it doesn't work. I can't solve the problem, obviously, I indicated wrong parameters in push and pop functions. It's needed to use head, tail and size of the buffer (the problem is in tail i think but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42903600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: No rollback with quarkus, mutiny and reactive postgresql I am trying to get 3 inserts executed within the same transaction, but I am not able to get the transaction rolled back when one of the inserts fail.
I am new in the reactive world and this is my very first reactive application.
Here is a simplification of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62248606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I run both express server and webpack together I'm a new to webpack and I'm currently creating a node express server application with ejs, and I want to use webpack to bundle my project.
Is there a way I can bundle up all my project files and make them appear in the dist folder
How can I make the express server ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70512507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to deploy a MeteorJS app to Windows Azure? How does one deploy a production MeteorJS app to Windows Azure?
A: Yes it is. See http://www.meteorpedia.com/read/Deploying_to_a_PaaS
In most cases this is as simple as using "meteor bundle",
demeteorizer, and then uploading the resulting files with your PaaS
prov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14266386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: iPad modal view's rect within the main window I am presenting a modal view (with UIModalPresentationFormSheet) on top of a UISplitViewController. I want to get the exact rect that the modal view will take relative to the UISplitViewController (which is basically the whole window). i.e. the modal view is at x,y coord... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18668803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Primefaces update destroys Umlauts edit: tl;dr: When saving Umlauts, they get corrupted (ä turns into ä). The rest of my question didn't really have anything to do with the problem as I now realized.
.
I'm building a webapp via JBoss, Hibernate, Infinispan Cache, derby, Maven and Primefaces.
I display a page that f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20687593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting an iPhone app to an iPad app in XCode 4 I had created an iPhone app long time back. Now I want to kind of convert the same into an iPad app (the code would more or less remain the same, I only want to redesign the xib for iPad size).
Now I am using XCode 4 and after opening the app, I changed the devices ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8321054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cesar encryption I'm trying to write a function that, given an original message and an offset, computes and returns the encrypted message:
def cesar_encryption (message, offset = 1):
encrypted_message = ""
for i in range(len(message)):
char = message[i]
if (char.islower()):
encrypted_message += chr((o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69764525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: PHP Thread compilation not working I am attempting to use pthreads with Apache FPM.
Step 1.
After installing and recompiling php according to:
https://blog.programster.org/ubuntu16-04-compile-php-7-2-with-pthreads
The server works as expected and I can run pthreads from CLI.
Step 2.
Then I need to run threads from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49246475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WOW.js does not work on page reload I am using WOW.js and skrollr to reveal some animations on my website.
I have a navbar with is located 370px from the top of the viewport initially and while the page is being scrolled down and when the bottom of the navbar is 70px from the top of the viewport stays on fixed posit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34815196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE renders inline-block div differently than FF/Chrome First, I'm using IE9, FF 29.0.1 and Chrome 35.0.1916.153 m. I have done quite a bit of searching, tried spans instead of divs, float instead of inline-block, different DOCTYPEs, adding a z-order, making sure each div had a unique ID, etc., etc. The problem becom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24210773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I ignore files in mercurial which has already been tracked? So what I really wish to do is to ignore some files that have already been added committed and pushed in the repository in mercurial .I have a project with the following directory structure.
Project X
Project X a
bin
res
src... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24473472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can anyone help to print hello world? With using basic instructions only here what I did Here is what I have:
.data
.asciiz "c"
.asciiz "hello world\n"
.globl main
.text
main:
lui $a0, 0x1002 # set $a0 to start of string
addi $v0, $0, 4 # set command to print
syscall
A: Use a label (e.g, mylabel:) to let... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30378421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ViewStub with custom View attributes for target layout Is it possible to pass custom attributes through a ViewStub to the target layout's root element? Like so:
<ViewStub
android:layout="@layout/custom_view"
app:customAttr="12345"
/>
Where custom_view.xml is:
<blah.CustomView ...>
...
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3109843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fade In With data on AngularJS I want to show my post->id with fade in, I was try to search but I can't find it. Please Help me!!!
*forgive me if I have bad language
A: In Angularjs, You wanna start working with basic animation stuff, you can know the Animation.
Basic fade out Example:
HTML:
<div ng-controller="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47324797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to combine two variables? I have been trying to get my code to dynamically allocate class objects to file to later read but having trouble with getting user input to save into each different object.
I'm trying to have the user input their names, ages and phone numbers and have it save to file where it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61559974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Firebase: Transaction with async/await I'm trying to use async/await with transaction.
But getting error "Argument "updateFunction" is not a valid function."
var docRef = admin.firestore().collection("docs").doc(docId);
let transaction = admin.firestore().runTransaction();
let doc = await transaction.get(docRef);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49644614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Consider using varargs for methods or constructors I have a function :
public static String bytesToHex(byte[] bytes) {
...
}
And a tool about code style advise :
Consider using varargs for methods or constructors which take an array the last parameter
How can I edit it??
A:
Doc Says, As an API designer, you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31700140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Apache Benchmark - Randomized querystrings? I need to benchmark a site, and was thinking of using ab (Apache Benchmark) to do it.
We need to hammer it quite hard, and we're interested more in how our app will cope, as opposed to the network bandwidth, hence we're doing it from localhost.
The other thing is, we need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1666842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: why does Electron "new Set([large iterable])" produce an empty set? So a simple thing like an 80 element array passed to new Set() produces an equally large set
new Set(Array(80).fill(0).map(Number.call, Number))
Set {0, 1, 2, 3, 4…}
However when it is larger from any source not just this quick filler function
new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43334666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best approach for binding native query results in JAVA when the total number of parameters differs I have a spring rest api and i am using jpa to create a native query to fetch some data. But the query is not always the same. The number of parameters to be binded differ based on conditions. Here is the code that i a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67161253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to properly display HTML entities in perl I was writing a web crawler using PERL, and I realized there was a weird behavior when I try to display string using HTML::Entities::decode_entities.
I was handling strings that contain contain Chinese characters and strings like Jìngyè.
I used HTML::Entities::decode_e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7386125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you make a function similar to jar -uf in Java? Using the standard Java API (i.e. the user doesn't need the JDK to run it), how do you make a function similar to jar -uf in Java? I have an idea that it will use the Zip library, unzip the .jar file, change the contents, and then rezip it, but I'm a newbie at J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9280670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I keep Cognos from splitting my subgroups across pages? I am reporting off of a cube into a crosstab with the results being summarized. For example:
| Val 1 | Val 2
----------------------------------------------------
Division 1 | Region 1 | Location 1 | 5.00 | 3.00
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8759411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't perform a React state update on an unmounted component. This is a no-op That's the warning in the console,
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68724254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TypeError: Cannot read property 'Symbol(asyncId)' of null I have a node.js based express-server which should handle some database-operations. Currently, I try to GET some information of my SQL-Database, based on a provided email. While executing the operation below, I run into a strange error.
app.get("/character/:a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45224093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC4 ASP.net - Microsoft.AspNet.WebPages.OAuth gives Runtime error I'm pretty new to ASP.NET and Visual Studio, but when I installed the Microsoft.AspNet.WebPages.OAuth package with the Nuget Package Manager the project now get a Runtime Error. I was following this answer from an earlier stackoverflow question: How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27817814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Got code 422 error when convert cURL to google app script Here is what the document says:
Use the code parameter value to make the following request to the OAuth token endpoint in the API with the authorization_code grant type:
curl --location --request POST 'https://api.deliverr.com/oauth/v1/token' \\
--header 'Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74523661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write unit test for the function which is accessing aws resources? I have a function which is accessing multiple aws resources and now need to test this function, but I don't know how to mock these resources.
I have tried following github of aws-sdk-mock, but didn't get much there.
function someData(event, c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55350667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: microcrontroller output to python cgi script I bought this temperature sensor logger kit: http://quozl.netrek.org/ts/. It works great with the supplied C code, I like to use python because of its simplicity, so I wrote a script in python that displays the output from the microcontroller. I only have one temperature ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1291624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Select top N after aggregating by key and another field in pyspark RDD assuming a data set like this:
(teamId, player, minutesPlayed)
(1, 'A', 33)
(1, 'A', 12)
(1, 'B', 5)
(2, 'C', 22)
(2, 'C', 15)
(2, 'C', 33)
(2, 'D', 0)
......
So every tuple represents how many minutes player played in a game per team.
So I woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70710059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Updating state in a class based component and re-rendering it first i am defining a state in class and rendering it using props, after that I am trying to update the state on clicking a button and on adding an event handler to the button but
when I am trying to console log the updated state after the nameChangeHand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63763645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.