text stringlengths 15 59.8k | meta dict |
|---|---|
Q: SpringBoot issues with SessionScope I run a SpringBoot application with MyBatis.
And i have a MyBatis's mapper like this:
@Component
@Mapper
public interface AccountMapper {
@Insert("insert into dc_account(identification,nickname,username,password) values (#{identification},#{nickname},#{username... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61284552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLite 'BETWEEN' doesn't behave as expected I'm trying to select all rows that fall between two column values. The values are UNIX Timestamps but the query isn't returning any rows at all. Why would that be?
Here's my code:
public static ArrayList<Appointment> getAppointments(long start, long end) {
ArrayList<Ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13033357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding column to dataframe based on another dataframe using pandas I need to create a new column in dataframe based on intervals from another dataframe.
For example, I have a dataframe where in the time column I have values and I want to create column in another dataframe based on the intervals in that time column... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63763944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create Table using PostgreSQL I'm trying to create a table using PostgreSQL. The code above is correctly authenticating. The problem I'm facing now is how to correctly create the table 'devices' and write data to it.
const Sequelize = require('sequelize');
const env = require('./config');
sequelize = new Sequeliz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52650504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rust failed to downcast_ref from trait object extended from Any Here is the Rust Playground of the example code.
use std::any::Any;
pub trait MemorizedOutput: Any {
fn as_any(&self) -> &dyn Any;
}
impl<T: Any> MemorizedOutput for T {
fn as_any(&self) -> &dyn Any {
self
}
}
fn main() {
let ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67206692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Minimizing calls to database in rails i am familiar with memcached and eager loading, but neither seems to solve the problem i am facing.
My main performance lag comes from hundreds of data retrieval calls from the database. The tricky thing is that I do not know which set of users i need to retrieve until i have s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2888966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Match only letters and special characters with RegExp How can I allow only letters and special characters with a regular expression?
A: I suggest you use GSkinner's REGEX builder and experiment with a lot of the examples on the right hand side. There are are many variations to get this job done. If you want to be e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5886910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error by solving sudoku using backtracking I'm trying to implement a code of (SolveSudoku) by using backtracking.
But I always get an error.
I looked at many solutions in the internet ,but they are different which confuses me. that's why I'm asking here.
I think the mistake can be in the function is_safe somewhere ,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54640519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Gulp + Sass + Combine Media Queries + Sourcemaps + Minify I'm trying to get the above combination working but am unable to. I have tried the following combinations:
1)
var sass = require('gulp-ruby-sass');
gulp.task('sass',function () {
gulp.src('_scss/main.scss')
.pipe(sass({
loadPath: ['_s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25264397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to connect our Jira using nodejs I'm beginner in this territory!
My question is how to connect to our Jira ( https://mycompany.atlassian.net (cloud)) for get all data from our jira projects (ex. user stories, tasks, issues ...).
- I have access to admin jira !
- I saw this: https://docs.atlassian.com/jira/RES... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40544844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to erase an element that is nested within a list which is nested within a vector I'm building a hashtable using separate chaining using vector of a list of pairs as the data structure. I'm having some issues where I'm trying to erase a pair from the list structure nested within the vector. Here is a simple of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33976622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R equal values in different data frames I have two different data frames. For example Lets say dataframe 1:
| A |
| -------- |
| 11 |
| 24 |
| 3|
| 14|
| 17|
and dataframe 2:
|b | c |
| -------- | -------------- |
| 23 | Cat |
| 24 | Dog |
| 11 | Cow |
| 3 | Snake ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73052898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Microsoft.OData.Client with Microsoft.OData.Core 7.0 I would need to use Microsoft.OData.Client in my project, wich already reference Microsoft.OData.Core 7.0.0 and Microsoft.AspNet.OData 6.0.
Actually i don't find version of client that's compatible with Microsoft.OData.Core 7.0.0 and later.
Last version supported... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42071996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get single field from different collection in mongodb I am having two collections 'MotorDetails' and 'PersonDetails'.Person Id is present is my both collections. I required all items from PersonDetails and only Manufacturer Name from MotorDetails for each person Id. how to join collections in mongodb?
I am ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49569981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ansible : ssh keys not getting copied to all nodes in inventory - debug:
msg: "Setting up passwordless ssh"
- name: Create SSH key
command: ssh-keygen -b 2048 -t rsa -f /root/.ssh/id_rsa -q -N ""
args:
creates: /root/.ssh/id_rsa
- name: Fetch the keyfile from the node to master
fetch:
src: "/ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73881911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xtext, implementing Long, Double and Float types the question is very simple.
How do I implement long, double and float types correctly in my Xtext grammar so I can use them later in my interpreter?
the interpreter is an extend class.
EDIT 1
In my code i have something like
IDValue: value=ID;
StringValue: value=STRI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41022942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When does C decide if char[] is a character array or a string? char[i] stands for declaration of a variable both a char array and a string. I know that C adds a null character to the end of the array if it is a string. However, how does C know when to add the null character, in other words, in what stage?
A: it do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41709488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Batch file to move a file from a folder to another folder & create a text file in its place having the name of the moved file I needed a batch file to which we could provide input (any file) from Windows 7 context menu option "Send to".
This batch file must then move that file to another folder, & create a text file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31686068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone-CTMessageCenter API I have an application to schedule and send an SMS to an individual or bulk in iPhone. So, I am planning to use a Private API called CTMessageCenter. But, I am getting to know that Apple might reject the app during their acceptance, if we use the above third party API.
Also, I am getting to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11045093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mocking ObjectContext, dealing with ObjectQuery.Include(string) method? I have been investigating how to decouple my DomainServices from their datasource so I can test them in unit tests. I'm starting to think fully decoupling them is not possible.
There is a decent amount of info out there, such as this question an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2976563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: grouping some fields and selecting some of them in oracle I have a table like below. I obtained this table with grouping some fields.
739033 007607000176 23.01.2014 13:10:53 007607000176 ELTN 007607000176 ELTN 43494 24 82860 580360
753281 007607000176 23.01.2014 13:13:38 007607000176 ELTN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31650797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Dynamically add a list to the sign up page of users I am new to RoR and I am trying to implement a kind of content management system. Let's say there is an admin user which creates other users.
I have tried the Devise gem. My first question is how can I use this gem so that the admin user creates other users (enteri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37911889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems using post request in axios I'm having problems trying to use a POST request in axios.
I need to send an object to my backend, but it receives predefined values inside my function, so I can't send all my data.
I tried in different ways and got different messages but I still couldn't find my error.
export ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72000906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to animate a page on unload, after new page has preloaded (jQuery) I am trying to animate a page out while a new page is loading in. The effect I am going for is similar to the process used on this site http://www.whitefrontier.ch/. I am more of a designer than a developer so I have had no luck with this. Below ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29839180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why references to Strings don't behave like other Objects references?
In the following code
public class Test {
public static void main(String[] args){
int [] arr = new int[]{1,2};
String b=new String("abc");
f(b,arr);
System.out.println(b);
System.out.println(arr[0]);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5653034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generic methods T extends I want to do something like that:
public final <T>T getObject(Class <T extends MyObject> myObjectClass){
//...
}
IDE complains about syntax error. How to write this correctly?
A: You declared the generic type bound in the wrong place.
It should be declared within the declaration of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49092960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: os.path.join - how to cope with absolute path Python 3.5.2
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
STATIC_URL = '/static/'
I want to join them:
STATIC_ROOT = os.path.join(PROJECT_PATH, STATIC_URL)
The result is '/static/'.
This is the documentation:
https://docs.python.org/3/librar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39307631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Whats efficient way to sort a SparseArray by its keys? I'm using SparseArray to replace need of HashMap considering that it is memory efficient. But I can't see any similar sorting method for SparseArray like Collections.sort . How can i sort it without effecting performance?
Thanks
| {
"language": "en",
"url": "https://stackoverflow.com/questions/52620638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CONNECT within Postgres SQL file Is there a command for connecting to a database within an SQL file?
I want to create a database and then immediately begin populating it with tables and data. All contained within a single .sql file. I'm not aware of anything that replaces the \c shell command?
Example SQL file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53663974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Changing proportion of agreeing values in numpy arrays I have a problem I've been trying to think through. Say I have a numpy array that looks like this (in the actual implementation, len(array) will be around 4500):
array = np.repeat([0, 1, 2], 2)
array >> [0, 0, 1, 1, 2, 2]
From this, I'm trying to generate a new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66335622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Find substring which comes in middle or right of any string I want to replace any occurrence of a substring which does not come in left . Like,
*
*Input : "ComputerPart"
Find substring ="t"
Replace substring ="success"
Output : CompusuccesserParsuccess
*Input : "topaz"
Find substring ="t"
Replace substring ="suc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18895873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Set_Rules Error in Linux : Undefined property: Welcome::$input I am learning codeigniter. I am watching a course videos in udemy.The last video was about the form validation. I wrote the codes in the video. But it is not working in ubuntu. Codes only work on windows. I get an error when I try to use the set rules fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61508228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cakephp Route Top Level Request I have a 1.2 app that I'm updating to 1.3. I need to send all top level requests like /foo to a controller action (/sites/view/$1) if they are not a valid controller. So in my 1.2 app I had a route like this (incredibly ugly I know):
Router::connect('(?!admin|billings|carriers|clips... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3622327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inserting the elements in grid column wise and creating different controls I am new to Asp.net and C#.I am working in a project where I need to create GridView.Now I wanted to bind this column wise with the data.Like the column1 in the grid is "Category" in the table of database and so on. I also want to create the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Eclipse Text Editor Behaviour under Linux I use Eclipse Luna 4.4.0 under Ubuntu 14.04.1 LTS. When I edit a file (especially a Java file), then the editor has a vi-like behaviour with a command and edit mode. But I want the same editor behaviour as under Windows which is like Notepad(++), without a command mode.
I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26884377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error : null value being entered in table through jsp code My code snippets are as below :
ShopRegister2.jsp :
<%
session = request.getSession();
session.setAttribute("s_id", s_id);
out.println("Your id is : "+s_id);
%>
<br>
Please note it for further use.!<br>
<form name=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25136860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DFP expandable ads i've supplied an adv creative to a publisher that use Doubleclick for publisher to distribuite the ad unit.
For standard masthead there is no problem, but for expandable masthead i cannot figure out how to do.
My adv creatives ad IAB compliant so for expanding creative i use safeframe standard, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40004518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: template argument deduction with strongly-typed enumerations If I have a normal (weak) enumeration, I can use its enumerated values as non-type template parameters, like so:
enum { Cat, Dog, Horse };
template <int Val, typename T> bool magic(T &t)
{
return magical_traits<Val>::invoke(t);
}
and call it as: magi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9400581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Automatically Resume a Suspended Windows Process I'm trying to write a windows batch file in order to resume a windows process that gets Suspended. I'm using pssuspend (from pstools) to resume the process. However, I'm trying to write windows batch file script that will continually get the status of a process (e.g. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24898328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: trying to download zip file in R 4.0, works in windows, linux but not in MacOS..."HTTP status was '400 Bad Request" I am going bonkers as I switched from a windows tablet to my macbook pro earlier today and cannot seem to run the identical (seemingly trivial) command in R4.02, namely to download a zip file located a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64473308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Apply a discount to order if user already ordered something else I have a table with users, a table with levels, a table for submitted orders and processed orders.
Here's what the submitted orders looks like:
OrderId UserId Level_Name Discounted_Price Order_Date Price
1 1 OLE Core ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70855549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to write Timeoutable methods in C# I have methods which take longer time to execute and involve lots of database operations. I want to wrap these methods within timeoutable method so that if it didn't callback within constant time, I will rollback.
Is there any way to do this, also I have to run the method in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4926786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Discord bot mute command by mention I want to add few moderation commands to the bot, but I get stuck with "mute" command:
module.exports = {
name: 'mute',
description: 'command to mute members',
execute(message, args){
if(message.member.roles.cache.some(r => r.name === "Siren")){
con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63152582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make the table td flexible on small size I need help making the td of a table flexible.
What I got going on is this: http://jsfiddle.net/j8GyV/23/
.card_new {
width: 350px;
border: 1px solid gray;
box-shadow: 1px 1px 3px #888;
border-top: 10px solid green;
min-height: 250px;
padding-: 10px;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45402704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OwinStartup not Starting ... Why? I have the following class on an ASP.NET MVC 5 site:
[assembly: OwinStartup(typeof(MVCSite.Startup))]
namespace MVCSite {
public partial class Startup {
public void Configuration(IAppBuilder application) {
application.UseCookieAuthentication(new CookieAuthenticationOp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19760545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to make a Messagebox wait in C#? Example: when i click on the Button i want that the Programm will wait for 4 Secons before the MessageBox pops up :)
Whats the code for that? thanks :)
i tried it with a timer but the MessageBox pops up Automaticly when i Press the Button
A: As JDro04 pointed out, you can use Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41902109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get the number of undelivered messages (metric api) present in Pubsub using python client library? I am using Pubsub as a queuing mechanism tool and want to know the count of the messages residing inside the topic of Pubsub. For the same purpose, I have decided to use the Google API metric pubsub.googleapi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55613144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: find nearest key match with input value greater or equal to key and records unsorted I'm having the below input file and trying to find out the nearest key match with input value greater or equal to key. It works when the input file is sorted.
Input file:
10,Line1
20,Line2
30,Line3
40,Line4
50,Line5
55,Line6
70,Line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58942695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: check if google recaptcha is checked or has been filled im using google recaptcha
<label for="template-contactform-botcheck">Botcheck</label>
<div id="recaptcha_sme"></div>
and I want to verify if its checked or not, has been filled or not and the way im doing it is through this code (refer below)
if ($("#recaptcha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32218183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Constraints set up to many containers I have this VC:
My goal is:
*
*2 big containers up should change size for 3.5 inch display
*4 little ones should have pin size
*bottom one should be always in bottom.
What i do here:
*
*2 big containers have Heights equally properties.
*4 little ones have pin height
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16980819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Editing a jsonb value in postgresql? I have a jsonb column that stores values like this:
{"v":"0","c":"ACC",...}
I'd like to update some of the v values to 1
Is there any built-in function to do that in postgresql?
E: I'm using v9.6
A: With Postgresql 9.5
UPDATE test SET data = data - 'v' || '{"v":1}' WHERE data->>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46295537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with Git branches I have a Rails app deployed on Heroku and I have a git repo that I'm currently working on with uncommitted code changes. In the meantime, I need to make changes to the source on Heroku independently of the local repo. Can I do the following:
*
*Clone the Heroku git repo on the same devel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5115091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't build APK in Unity after trying to integrate AdMob (IronSource) Integrating the IronSource plugin (v7.0.4.1) doesn't cause any issues. I know this because I am still able to build an APK successfully after installing it. Integrating some of the adapters such as AdColony and UnityAds also do not result in any p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65286688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flip the fill variable with geom_bar(position="fill, stat = "identity) in ggplot I have the following code :
newdf %>%
ggplot() +
aes(x = smoke_status, y = Count, fill = Birth_status) +
xlab("Smoking Activity") +
ylab("Proportion") +
labs(fill = "Birthweight") +
geom_bar(position = "fill", stat = "ident... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71715132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenCL: Blur image with Gaussian filter, Gaussian blur I have gaussian filter mask nxn computed for n = 5. That looks like this:
int gauss5[] = {
1, 4, 7, 4, 1,
4, 20, 33, 20, 4,
7, 33, 55, 33, 7,
4, 20, 33, 20, 4,
1, 4, 7, 4, 1
};
int gauss5_summ = 331;
After computation in opencl image bec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31975170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i execute a python script using java? I'm trying to integrate a python script in java. I want my java program to be able to execute my python script
I tried to code a class named PythonCaller made to execute a test python script
package pythontest;
import java.io.*;
public class PythonCaller {
public s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71589397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ reliance on argument to const reference not changing Please consider the following code:
void func1(const int &i);
void func2(int i);
void f()
{
int a=12;
func1(a);
func2(a);
}
Compiled with g++ 4.6 with -O3, I can see that the compiled re-reads the value of "a" between the function calls. Changing a's d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25029516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Sonar plugin postjob measure I have a sonar plugin that post a comment in gitlab when there is new sonar issues in a commit. I would like to add difference of code coverage and code duplication in the comment.
This is made by making a sonar plugin based on PostJob.
The issues are recovered by injection of ProjectIss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39883832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: brain-teaser R problem - programming problem solving in R I am trying to write a function to solve a novel problem:
Given the following data:
S = c(19, 10, 12, 10, 24, 25, 22)
k = 4
I am trying to calculate a function. I want to print the maximal subset of S in which any sum of 2 numbers in S' is not evenly divisi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57878758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Pinescript issue between local and global scope if (barstate.islast)
myLine = line.new(x1=bar_index[SHI], y1=rsi[SHI],
x2=bar_index[FHI], y2=rsi[FHI], color=color.lime)
line.set_extend(id=myLine, extend=extend.right)
alertcondition(condition=crossover(rsi, myLine), title="RSI breakou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66295765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google chrome browser is misbehaving I don't know what's going wrong with my chrome browser. Everything was working fine but all of a sudden the width from my css styling for divs, input elements and all other widths are disorganised. I don't know if its the width that increased or the padding or margin but what I k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37356591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure Cloud Service stops saving to table storage when storage is accessed in visual studio server explorer I am working on an azure cloud service that has two different worker roles saving entities to an azure table storage. When I run the solution locally (both in debug and release mode) it works perfectly, howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32103854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading XML File Through Dataframe I have XML file like below format.
<nt:vars>
<nt:var id="1.3.0" type="TimeStamp"> 89:19:00.01</nt:var>
<nt:var id="1.3.1" type="OBJECT ">1.9.5.67.2</nt:var>
<nt:var id="1.3.9" type="STRING">AB-CD-EF</nt:var>
</nt:vars>
I built a dataframe on it using below code. Though the code is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66241748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When I do a delete:TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing table http://1.z9ls.com/t6/701/1555244797x1822611239.png
one table is article,the other is category:
article:article_id,article_title,article_category_id...and article_category_i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55675372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python - cannot set wallpaper with tempfile Code:
import urllib.request
import tempfile
import shutil
import ctypes
SPI_SETDESKWALLPAPER = 20
with urllib.request.urlopen('https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png') as response, tempfile.NamedTemporaryFile() as f:
shutil.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38532270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to tell nuget to add package resource files as links, and not copy them into project directory Intro (how to pack resources into a nuget package)
To pack some resource files into a nuget package, what one would normally do, is the following.
Put all the resource files into the content\ directory of a nuget pack... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25367541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to write unit test case IHttpClientFactory I have a method in service layer to connect to a service and i am using IHttpClientFactory. My method is working fine. Now i am trying to write unit test cases for the same.
public async Task<MyObject> MyMethodAsync(string arg1, string arg2)
{
var client = _httpCli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67421717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to create a .net project in eclipse using no template I have eclipse 2021 installed on my laptop which is running Ubuntu 20.04 and I have .net 6 installed with snap when I go to create a .net project it says no template selected it in preferences the .net folder is in the snap folder. I just want to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71501269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: bsmultiselect Select one option at a time on div I was trying to use "setSelected" option on my multiselect, but I nnoticed that this does not work with divs (at least I couldn't reach it myself). I am trying to make two synced multiselects, using this example: https://dashboardcode.github.io/BsMultiSelect/snippetJs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65816625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set headers in SQLPLUS? I have set following SQLPLUS commands:
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING ON
SET LINESIZE 100
SET PAGESIZE 1000
SET SPACE 0
SET TERMOUT OFF
SET TRIMOUT OFF
SET TRIMSPOOL ON
SET VERIFY OFF
But i am getting the result as:
ERROR_CODE
----------
ERROR_DESC
-------------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27639716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Parallel Solution search I have written some code in python using multiprocessing package. It sort of searches for a solution for an equation in 6 different ways.So I have 6 different processes running the same function with different parameters. I would like to stop all the sub-processes once the solution has been ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29640011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Diffing between two entire directories/projects in hg or git? I inherited a project originally stored in CVS with all the revisions. I made quite a few edits, and I'm trying to compare all the changes I made in the original directory, in regards to new files added versus the old ones.
Is there some sort of utility f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1791854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: MetPy Wet Bulb Temperature function returns error when output of Most Unstable Parcel function is used as input When attempting to use the find the wet-bulb temperature for a parcel returned by MetPy's most_unstable_parcel function, I am getting an error that seems to be related to the Pint attributes of the most un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71655087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Boost.flyweight and Boost.MPL I have a question regarding flyweight options, given the definition below, based on http://www.boost.org/doc/libs/1_40_0/libs/flyweight/test/test_basic.cpp
typedef boost::flyweights::flyweight<
std::string,
boost::flyweights::tag<int>,
boost::flyweights::static_holder_class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7832412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I create an array of ascending and then descending numbers? For example:
I have min and max values and a number of increments which may be odd or even;
if I have min = 3 and max = 10 and increments = 15 then I want:
3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3
However, if increments = 16 I want (notice the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16570347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Do we have a way to include full source into APK? I'm developing samples for different Android technologies and want to include the full source code (Eclipse project) archived into the APK. That should allow anyone with Google Market access to easily reuse the code.
Is there a proper way to automatically pack the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14254373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display calendar to pick a date in java In other languages like VB, C#, in occasions where you want the user to enter a date, say in a text box,we can make a calendar to appear once you click on it. So the user can click on the corresponding date and that date will be put to the text box.
By that way we can get rid ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11736878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: C# UI automated testing - Does anyone succeeded to capture the command prompt window object? I have an UI automated test developed with White. One of the cases needs to open cmd and write some commands. The problem is when I input the first command. I tried something like:
Process.Start("CMD.EXE");
///Thread.Sleep(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41759029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Data.Aeson encoding optional keys I have the following problem, I have a JSON format with optional keys that I need to generate from my haskell code.
Lets make an example
{-# LANGUAGE DeriveGeneric #-}
import GHC.Generics
import Data.Aeson
data Person = {
name :: String,
shoeSize :: Maybe Int,
favorite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19665099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is the order of haystack and needle inconsistent in PHP functions in_array and strpos? The order of parameters haystack and needle in these 2 very core PHP functions is not consistent:
*
*http://php.net/manual/en/function.in-array.php (needle, haystack)
*http://php.net/manual/en/function.strpos.php (haystack... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52985459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cut off string at not allowed tags in regex I got this fine working regex to use with php's preg_match_all to match a string containing 0 to x lines before and 0 to y lines after a specific word in a sentence/string:
'(?:[^\.?!<]*[\.?!]+){0,x}(?:[^\.?!]*)'.$word.'(?:[^\.?!]*)(?:[\.?!]+[^\.?!]*){0,y}'.'(?:[\.?!]+)'
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11064322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Read a column file in julia I would not like to pickaxe a lot in the language just to read a file with numerical data arranged by columns. Is there an easy way to do this now in julia 1.1? Surprisingly this simple task is not on the manual. In python one would do something like this:
def read2col(filename, length):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59399168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I make a modulino in Perl6? I want to make a modulino (a file that can run as either a module or a script) in Perl6.
The following code "processes" file names from the command line:
sub MAIN ( *@filenames )
{
for @filenames -> $filename
{
say "Processing $filename";
}
}
Saving this as ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29281305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can a bot click a link that makes a modal window in javascript? I have a form that launches in a modal window (fancybox to be exact) that loads a page that triggers an event in Google Analytics. I'm trying to keep bots from clicking it.
Since the fancybox uses jQuery to load the html page, can a bot reach the page a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35752557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Limit number of results for Songkick API I'm trying to limit the number of results that this pulls:
http://api.songkick.com/api/3.0/search/venues.json?query={venue term}&apikey={API KEY}
I've tried adding on maxResults, limit, results.. none of them seem to work.
I can't find anything in the documentation. Anyone k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39030058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FileHelpers Library: AfterReadRecord Compilation Error I'm hoping there's an expert in using the FileHelpers library here.
I'm using the 2.9.9 stable version from Nuget and trying to use the AfterReadRecord event handler to test if fields are empty.
The code I have is shown in simplified form below:
public class Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17971250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to 'translate' a string of words using a map? Search through a maps keys and displaying the value I have a map that contains Spanish words as keys and the same word in English as the values for each key. I want to translate a string of words from Spanish to English. I'm assuming I'll need to parse the string to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50123936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AWS Cognito: Add custom claim/attribute to JWT access token My app creates a custom attribute "userType" for each new signed-up user. Now I would like this "userType" claim/attribute to be added to the JWT access token whenever the user signs in or the token gets refreshed.
Is there an option to tell cognito to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56970499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: TADOQuery.Open executes a statement but only once I use this code to copy row from Table1 to Table2, but it gives me
Command Text does not return a result set
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('insert into Table1');
ADOQuery1.SQL.Add('select Field1 ,Field2 from Table2');
ADOQuery1.SQL.A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4139633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to bind drowpdown list with one static value and rest from database I am working with asp.net mvc I want to add a dropdown list that holds one static value and other values coming from database
@Html.DropDownListFor(Function(model) model.nDepartmentID,
New SelectList(ViewBag.txt, "Value", "Text"), New With
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28472178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what does it mean to delete a file on android Naturally I thought to delete a file means to remove it from existence. So when I do
File file = new File(absPath);
....//add content
file.delete();
I expect that no further operation can be executed on file or it would throw an exception. But how come I can still add c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34667600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to package a simple Python project and have it perform installation over the internet I would like to know if there's a way to package a simple Python project and have it perform installation over the internet, just like when you install a module with pip.
A: Sure there is. This is how all the 3rd pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58658820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: MySQL query works through workbench but not mysqli I am attempting to call my PHP class and run the function get_group_count which counts the number of groups for a certain user ID. The mysqli query uses a stored procedure that works in MySQL Workbench but not with PHP's mysqli.
Public function:
public function get_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36817389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails: ArgumentError in PostsController#create wrong number of arguments (1 for 0) Github Repo
Hi, I'm a noob and need help. Making a yearbook for my bootcamp class and having some hiccups. Current error is:
ArgumentError in PostsController#create
wrong number of arguments (1 for 0)
Extracted source (around line #... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37365616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Web page login with python failure or not? I try to login to the site www.dsbmobile.de. It uses a form (<form name="form1" method="post" action="./Login.aspx" id="form1">), so I do the following:
import requests
url="https://www.dsbmobile.de/Login.aspx"
values={'txtUser':'XXXuserXXX','txtPass':'XXXpasswordXXX'}
r=re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46986958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rdgal don't working well to save a shapefile I'm trying to save a shapefile format with detection rates using the "rgdal" packages, but the following error occurs:
Error in showSRID(uprojargs, format = "PROJ", multiline = "NO") :
Can't parse PROJ.4-style parameter string
+proj=longlat +ellps=WGS84+datum=WGS84+no_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63334025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Method api target warning Im trying to create a library, but some methods will only work for API > 21.
How can I set the minimum api target for this method and show a warning?
like the TextureView for example:
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public CustomTextureView(Context context, AttributeSet attrs, int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35144856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Validating string input value c language #include <stdio.h>
int main()
{
char name[10];
printf("Who are you? \n");
fgets(name,10,stdin);
printf("Good to meet you, %s.\n",name);
if(name=='spyros')
{
printf("Then you are here %s\n",name)
}
return(0);
}
Then i have
warning warning: character constant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35971123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: defun with a list as argument I'm trying to pick up Lisp as my new language, and I'm having some issues working out how to have parts of a function work on each element of the list passed to it.
For the purpose of learning how to get around this, I am trying to write a fairly basic form of division does not croak wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8950323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How are variables passed in laravel mails when using queue? I have set up my system so that users get a mail with their names when they successfully register and it works just fine. But i noticed that it takes a bit longer than i want for the page to display a success message so i decided to use laravel queue for ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46474550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.