text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How do I import a sprite sheet with its JSON file into my phaser game? I am creating a game using the phaser game engine. I created a sprite sheet and downloaded it. It came with the 256 × 384 .png file with my frames and a JSON file which I assume contains information about how to split up the frames. I don't know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42311723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to sum up minutes and seconds ?in oracle I have a column called duration_d which is varchar2 and the data in that table looks like below
duration_d
-----------
12:25
01:35
12:10
04:21
12:18
12:24
I tried below query
SELECT SUM( to_date( duration_d, 'mi:ss' ))
FROM table
GROUP BY calling_number;
When I exe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45478614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP:checked attribute in array of checkboxes I have an array like this
$current_asset = [
['name'=>'Land,'id'=>1],
['name'=>'Building ,'id'=>2],
['name'=>'Machinery','id'=>3],
];
<?php
foreach($current_asset as $key=>$value){ ?>
<input type="checkbox" name="current_asset[]" value="<?php echo $value[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50545173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vbox Parent, Pane Child overlapping other components javafx Hey all I am new to java and javafx trying to learn them. I am currently trying to do a problem where the user inputs values for two circles (the center and radius of circle). It is supposed to then show the circles, and display what they are doing, such as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32958310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting ongoing recording data segments from AVAudioRecorder My problem is as follows:
I need to capture every 320 bytes of raw audio data.
I do this by using an NSTimer that fires a method every 0.02 seconds - that is because i need to record 8000Hz and 16bit mono audio, and i've calculated that it should be 50x a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9531803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding an HTTP bottleneck I'm developing a custom Blog application in Ruby on Rails, having load speed as a primary measure of success.
I'm caching (with Redis) both views and models to shorten up queries and rendering of raw HTML. Finally I succeeded loading a single post in under 15ms. Time to deploy.
I bought a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30413631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Way to slice a string using 2 variable? I m new to programming and came across a question If I have a string where I have 2 variables indexed.. and need the value from the middle.
for example, my string is HeyEveryoneImtryingtolearnpythonandihavequestion
where I have variables
V1 = 'Imtrying'
V2 = 'andihave'
what c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70514079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Symfony: Overriding Symfony service ( compiler pass ) I'm on symfony 2.7 and need to override Symfony\Component\Asset\UrlPackage
I've looked at http://symfony.com/doc/current/cookbook/bundles/override.html
and http://symfony.com/doc/current/cookbook/service_container/compiler_passes.html
but can't get it working.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31511019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: C++ - Are there ways to get current class type with invariant syntax? I want to write a macro which, when expanded within a class, uses that class type (specifically, as template argument). Within class method, I can use this:
#define METHOD_MACRO int sample_method(void)const {\
return template_struct<this_type<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33230665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: add icon to wpform submit button hi i want to make the form button same like in the image.
the link of the form is this
http://ministerievanlicht.com/contact/
the code is this that will get the button same to same but it not worked.
.button {
margin: 0 auto;
text-decoration:none;
text-align:center;
display... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66368799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add my output from a "FOR" Loop and sum together I am a beginner, so I want to ask that how to sum my "FOR" loop value from my input form? and the GrandTotal is used to change it "readonly" textbox in my form.
let grandTotal = 0;
for(let i = 1; i <= 5; ++i) {
grandTotal += parseInt(document.getElementById("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64313992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What should I type in python to open a file located on my desktop when using a Mac? When I opened a .txt file located in a folder called scripts on my h-drive using Windows I typed this:
F = open('h:\\scripts\\data.txt')
I copied the file to a USB drive (n:) and now I want to access this file by using Python on a m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33745621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Writing tab spaced words to a file in Python I have a set of words in a file. I want to add a new character separated by tab to all these words and write to a new file.
The code I wrote is
#file to read is opened as ff and file to write is opened as fw.
count = "X"
x = ff.readlines()
for word in x:
fw.write('... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27600072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Column name checking null still giving null error I want to insert values in a table. So I have written the below code for that.
create or replace PROCEDURE NEIQC_DATA_DUMP_MST AS
BEGIN
execute immediate 'truncate table TBL_NEIQC_WF_SITE_MST_NEW';
INSERT INTO TBL_NEIQC_WF_SITE_MST_NEW
(
OBJECTID,
SAP_ID,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56394658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting entire POST response in one line I've modified the following code from an example on the internet. Currently it POSTs and returns the response line by line. How can I modify the code so it returns the entire response in one line, so I can parse it more easily.
static void updateIp() throws MalformedURLExcep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24072699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cocos2d-x Shaky, Liquid , Wave effect weird behaviour with android I am trying to use the effects like shaky on Sprites and Wave which I guess are heavy process. When I apply this on the sprites they work properly but after If I pause my game and then resume.
Background becomes black and I can not see my bg anymore
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12614945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DataTable with childrows (sub-dataTables). How can I create/expand ALL sub-dataTables by default? I have a dataTable with sub dataTables and I can't make them be expanded on every page. I can make them be expanded on the current page, but when I go to another page, the subtables aren't displayed. It appears as thoug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51217133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use GCP Local SSD with KubeDB Is there an example of how to set up a KubeDB PostgreSQL streaming replication cluster, where each pod's data is using Google Cloud's Local SSDs (need 2x375GB SSDs merged for each PG node).
I am aware of local SSDs being temporary - for my usecase, performance and ease of scaling... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58021468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: binding vs with-bindings in clojure There are two macros binding and with-bindings to redefine dynamic vars. However both seem to have the utility, what is the difference between them ?
;; binding
(def :^dynamic a 10)
(binding [a 20] a) ;; => 20
a ;; => 10
;; with-bindings
(with-bindings {#'a 20}
a) ;; => 20
a ;;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58258568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error with download a file from https using webclient I have create a piece of code that download a file from a given URL using WebClient.
The problem is i am getting the following error when the code is trying to download a file from a HTTPS site.
The remote certificate is invalid according to the validation proced... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20955833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add classes from a selector string? I have several CSS classes in the form of a selector, for example .myclass.myclass2 and I want to apply both classes to an element.
I could .split() the string and apply each class with .addClass(), but before I do, I'd like to know if there's a "native" jQuery function to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17182478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to clear pending message from azure service bus? I am using azure service bus for receiving message to processing my background process. In my background process I want to clear already processed messages from azure service bus. Is there any way or method to clear azure service bus messages???
A: Read How to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28877204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to refer to yourself in the anonymous class? I have next code in kotlin:
handler.postDelayed(object : Runnable {
override fun run() {
Timber.i("run post msg")
handler.postDelayed(this, AppPrefs.SEARCH_DELAY)
}
},AppPrefs.SOCKET_INTERVAL)
how you se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44696398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: EF code first uncertainty principle - referred entities may not get loaded With automatic database recreation, it is uncertain whether referred entities will get loaded or not.
The context is EF CTP 5 and ASP.NET MVC 2. In the global.asax a database initializer is set that forces recreation of the database every ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5194156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MYSQLI new query within a while fetch I'm just making some website for fun at the moment but I'm stuck at a point.
I want to perform a group quest and any member of the group can start it.
All people of the group will get the same ammount of gold,experience
and share the same cooldown.
I have 3 tables in my database... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14470157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Angular2 Two way bindings doesn't work on Firefox I am a newee using Angular 2. I developped some forms with Typesript and it is working with Chrome but doesn't with FireFox (version 45).
First of all, I tried the "two way" data bindings with both browsers : Chrome has a correct behavior but FireFox doesn't take in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36650575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Values from Image column are different than expected after insertion I'm developing a windows form application for insert records contained in a table from one database from another table located in a different database.
The involved column is called FPTemplate and its data type is Image.
Using this line of code for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52429242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to extract a .tar.gz file on UNIX I have a file (reviews_dataset.tar.gz) that contains many files which contains data. I am required to extract the files in this archive and then perform some basic commands on the file. So far I have created a directory named (CW) and found a command tar zxvf fileNameHere.tgz bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35398830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot create multidimentional array in PHP I have array of workers named $workers and there jobs named $jobs. Lets, each day they can do $jobs_for_each nos. of job. Now I need to create an array for there daily jobs. Here is my code:
$all_workers=array("worker1","worker2","worker3","worker4", ... ... );
$all_jobs=a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35559780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Method Not Allowed The method is not allowed for the requested URL. (Flask) I've cloned a flask chat app respo on Git (link: https://github.com/techwithtim/Chat-Web-App). But when I logged in and try to send a message from the form, the server said that The method is not allowed for the requested URL.
I'm not sure b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67338854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reliable way to detect a JSONP request on the server side? I have a web application that can serve some requests to the same URL either as HTML or as JSON. So far I relied on the Accept HTTP header to determine what to return. Now there is a new requirement to be able to serve the JSON as a JSONP response if a speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41040951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Write a program that stores the name as a String and number as int's of 11 players How do I get the average points from each player of both games?
Write a program that stores the name as a String and numbers as int's of 11 players on a team. Your program should display/output the average points scored of each player... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48219106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix font-lock for Java generics? Emacs (even the latest 24.3.1) fails to render Java generics correctly.
static<T> void println(T arg) { System.out.println(arg); }
In the above example the method name printf is not rendered as a function. It is black and not blue.
I think it must be possible to fix this by s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17493825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to parallelize a non-vectorizable function (i.e., root-finding) in pandas? I have a dataframe with many rows, and having columns a, b, and c. Something like:
| a | b | c
--------------------
0 | 10.1| .01 | 3.0
1 | 9.7| .02 | 2.0
2 | 11.2| .03 | 1.0
...| ... | ... | ...
and a function foo(x_, a, b,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73559906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: While I do file.read(1) is there a way to go back 1 byte? I have to read 1 file letter by letter but sometimes I have to go a back byte (to read something that I have already read).
Is there anyway to make that happen?
Or how can I see the next byte without forwarding the file to then next position?
A: First, I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54851031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieving custom text from mysql I have a self-made blog where I post articles. I store the articles in a db (mysql) , and from time to time I like to edit the articles.
Whenever I run this code (in my edit page) , I only retrieve the text in simple form (no font , no colour , no nothing) , just the basic text :
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28775572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Place file contents in email body in Ansible I have a playbook that checks hard drive space on a group of servers, sends out an email, and it attaches a file containing the output contents. Is there a way to place the contents of the file in the body itself? I would like the file contents to be able to be seen at a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62558335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React state conflict with javascript "document.getElementById" function I have this function in my React web application:
const handleRateLightSelection = (cardId, rateId) => {
setRateLightSelected(0);
if (lastSelectedLightCardId != -1 && lastSelectedLightCardId != cardId) {
document.getElementById('lightBox-' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64133111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: changing file's name of an file field when saving or editing a node I'm trying to change the file name of a file uploaded as part of a node form, I'm using the file widget that comes with Drupal 8.
do you know with hook should I use?
thanx
A: Can try with hook_file_presave();
https://drupal.stackexchange.com/questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64102907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically adding and removing TextFields to a ScrollView iPhone How to dynamically add and remove TextFields on button press (iPhone)? Also need to retrieve values from those TextFields. I could add textfields to scrollview, but while removing textfields by pressing delete button,that textfield is getting removed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26052996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Win32 : How to trap left and right mouse button clicked at the same time I am trying to program specific behaviour when the user (clicks and) releases the left and right mouse at the same time. Is there a known way to trap such an event / gesture. I am aware of how to trap leftButtonUp and rightButtonUp but not sure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12615994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Validators on deployment server stopped working This is strange and baffling. In my ASP.NET 2.0 app I have a form that uses a number of client-side validators. Custom, Regularexpression and RequiredField. My app requires that I enable or disable certain validators based on a dropdown selection. I do this in my codeb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/727828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQLdb on Mac Catalina: Library not loaded: libmysqlclient.18.dylib I have been trying to create an app with Flask on PyCharm, but I keep getting this error. After doing some research, I found that some people say that I need to fix the PATH to it, but I do not know how to fix it.
Here's the code and the output I r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61051837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How is flask able to access login.html? I am trying to learn flask.
My login.html file-
<html>
<body>
<form action = "http://localhost:5000/login" method = "post">
<table>
<tr><td>Name</td>
<td><input type ="text" name ="uname"></td></tr>
<tr><td>Password</td>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69265094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Condition before a for loop def uncompress(xs):
zs = []
b = True
for k in xs:
zs.extend([b for i in range(k)])
b = not b
return zs
Just wanted to know what having a variable or a condition before the for loop does in any case, so in this case what does 'b' for i in range do.
A: Since b = True, zs.exten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44483326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Array parsing and matching with values in an XML node (XSLT 1.0) Allow me to pose here a problem that I am currently encountering:
I have two files:
*
*An XML file containing tags representing operations (historical)
*A specific label file for certain operations (the common between the 2 files is the operation re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72972988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine if a VBComponent regards a workbook or a worksheet The following code allows me to go through the workbook and worksheets that have macros:
For Each VBCmp In ActiveWorkbook.VBProject.VBComponents
Msgbox VBCmp.Name
Msgbox VBcmp.Type
Next VBCmp
As this page shows, for a workbook and a sheet, their t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36466922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AttributeError: 'NoneType' object has no attribute 'decode' names, plot_dicts = [], []
for repo_dict in repo_dicts:
names.append(repo_dict['name'])
plot_dict = {
'value': repo_dict['stargazers_count'],
'label': repo_dict['description'],
'xlink': repo_dict['owner']['html_url'],
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44004609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to clone a project and stay tuned with new updates I want to clone POX Controller from Github repository into my laptop. The only way I know is by cloning. However, I think if someone clone a project, he/she won't get the updates that the others have done in it. I have read about forking but I don't really under... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38602266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RGB to norm rgb transformation. Vectorizing I'm writing a piece of code that has to transform from an RGB image to an rgb normalized space. I've got it working with a for format but it runs too slow and I need to evaluate lots of images. I'm trying to vectorize the full function in order to faster it. What I have fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7865866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to mock nested dependencies in NodeJS I have a Module a
const b = require(./b);
function aGetResult() {
return b.getInfo();
}
Module B
const c = require(./c);
function getInfo() {
return getDetailInfo();
}
function getDetailInfo() {
const result = c.getApiResult();
return result
}
Module C
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63275147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ExcelJS: doesn't save file properly I wrote an script and here's an snippet from my code:
let workbook = new Excel.Workbook();
await workbook.xlsx.readFile('./input.xlsx');
await workbook.xlsx.writeFile('./output.xlsx');
console.log('file saved!');
I know how async/await works and there is no error!
the input.xlsx ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61922359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Preventing side scroll on mobile I'm attempting to help a friend with her site jessheading.com
She's using a WordPress theme and the WP Touch mobile plugin. But when someone clicks to view the full-site version on mobile, the orange box with the quote part way down the page runs off to the side when you zoom out (cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31954938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate items into galley I have this React Material-UI component implemented in Typescript:
<Grid container direction="row" justifyContent="flex-start" alignItems="flex-start">
<Grid item xs={5}>
<Box m={5} pl={10}>
...... some body text..........
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69307743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why am i getting -0 instead of 0? I have written a code in c which gives me rotation of point by angle given in the form of triples.
When I compile and run for test case it gives me output as -0,7 .
Where as the same code in python gives me output as 0,7 .
When I run the same code on online compiling platforms it g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50098715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using Jeet and Compass results in an error? Whenever I try to use a combination of Jeet and Compass I get the following error:
Syntax error: Invalid CSS after \" gutter\": expected \")\", was \": 3,\"\A on line 3 of sass/jeet/_settings.scss\A from line 15 of sass/jeet/index.scss\A from line 7 of sass/screen.scss\A ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23186156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Object recognition with android using OpenCV library
Possible Duplicate:
Where do I start learning about image processing and object recognition?
Is there any best way for implemeting Object Recognition in android?
I tried to implement object recognition(Face tracking) in my project using OpenCV library, But I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13682833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why Query returns some null values to my list Object using dapper I have this functional query where I only used fictive tables names for security concerns :
SELECT
h.CENID,
h.BMHFMC,
h.BMHDONEMIDASSTEP1,
h.BMHDONEMIDASSTEP2,
h.LMIID,
h.BMHHOLD,
h.BMHBATCHMIDAS,
h.BMHFMCVALUEDATE AS HeaderValueDate,
h.S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47703332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Show google map in web view In my application i want to show Google map with search result in web view. for example i want to search pizza in Texas. So i want to show Google map with already searched result for pizza Texas.
A: Use this:
StringBuilder u = new StringBuilder();
u.append("geo:0,0?q=");
u.append("Pizza... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5565002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Don't use session on certain url I'm trying to make a certain api url that can be loaded, but wont update a user's session "last activity" time.
I've set things up so that my users get logged out if inactive for 60 minutes, via HttpSession.setMaxInactiveInterval(), server.session.timeout and spring security, which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39759061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dependency app does not run After I added the android-3.2 dependency, it did not run in my smartphone and gave me this error:
Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
Unexpected constructor structure.
here is the image of adding dependency
Whenever I don't add the dependency... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40686875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Type Mismatch cannot convert one type to another So I have two classes, an Item class and a Book class that's extended from Item. In theory, Book objects should be treated as Item objects as well. I have a Book store with a collection and want to store books.
It gives this error:
Type mismatch: cannot convert from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42605986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSIS execute sql task get value from a query statement I am using SSIS 2008 and put a simple query (not proc) in an execute sql task (control flow). The query generate one column with a single value, what I am trying to do is based on this value to decide whether to do the following tasks. I tried mapping the value ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30186984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying Image uploaded to mysql PHP - need to display string I was trying to figure out how to upload an image into mysql then display it. I got the uploading part set. The problem I am have is displaying it. When I go to display it does one of the following:
*
*Displays no image but only has a little imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34099494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sublime locks files so that git cannot unstash I'm on Windows 10 Pro and using the Windows version of Git and Sublime (Build 3103). I installed git up so that I can use that before committing and pushing.
This is what happens when Sublime is open:
$ git up
Fetching origin
stashing 1 change
develop up to date
mast... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36031405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to play a set of frequencies (Chords) at the same time with javax.sound.sampled package I am trying to implement a system where I give a set of frequencies to be played at once, currently can play each frequency individually. Below I have a code, that plays the given frequency, one at a time.
import java.ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11881595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use socat to transfer serial commands in a script over TCP/IP? I have a web application that will constantly post some queries and get replies from a device through the serial port on Raspberry Pi. Like this:
@cherrypy.expose
def login (self, **data):
passcode = data.get("passcode", None)
print "log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16579357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python3 Matplotlib psutil script not running So i have an issue. I have two Scripts running one which is a CPU and Time logger of every second to record the CPU usage to a text file. The other is a Script that reads the text file into a graph but the graph is not a uniform axis and does not increase in units and i g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62665043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access 2013 and Sharepoint 2013 Web Integration First of all, this question is somewhat high level (or as I also like to call it.. Vague). I have worked in a few IT departments and every place I go I seem to see the same thing, users are looking for a way to bring there old access databases for things like IT invent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14303692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Credit Card Options in Paypal Express Checkout I have setup the express checkout process integration in asp.net mvc. When user is redirected to paypal website after submission, there is only option to login using paypal or sign up new account. There is no option to pay using credit card ?
Am i using right API for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28622525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Errors running the Math.Round I am taking some Lynda.com classes approved by my work and looking to learn some Java. Can someone please tell me why I am getting an error with the Round and Absolute functions?
The error I am seeing is 'Cannot resolve method round(double)'. I get the same error with the absolute va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53844633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript File load other Javascript files With no window/document I'm working with javascript file that has no window or document.
I have package.json file that calls another Javascript file task.js
package.json:
{
"name": "mytask",
"version": "1.0.0",
"description": "mytask TFS Build",
"main": "scripts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53632616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET and XML for each hit to website I have a question to understand the concept of ASP.NET with each client browser.
I am trying to update the XML on server when a user hits a particular page on my website.
This page is dynamic, but too large so I want it to load using an XML file also I have several drop downs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8533289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Box.com API: How Do I Connect My Own Account To Upload Files? I've a basic (free) account at box.com and I've build a form in PHP where user can select a file and pass that file to upload.php. Now, I need to connect to box.com servers and use my account to store that file. I have my own login used here.
How do I imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28173473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Micro Edition 3.2 SDK replacement for BufferedOutputStream The Java Micro Edition SDK does not include java.io.BufferedOutputStream. Does anyone know of a suitable replacement which is present within the SDK?
http://docs.oracle.com/javase/1.5.0/docs/api/java/io/BufferedOutputStream.html
Thanks,
Adam
A: I don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16107416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Async fetch a function into another node.js file I'm trying to fetch events from Google Calendar. I have code to do that in a js file (googlecal.js) I have posted the function that lists the events. Now I want to write a new js file and get the list of these events from the googlecal.js file.
Fairly new to JS, would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55974002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Build error while deploying Google Cloud Java Function I am trying to deploy a cloud function with Java-11 runtime and the build is failing.
Here is the stack trace:
ERROR: build step 5 "us.gcr.io/fn-img/buildpacks/java11/builder:java11_20200820_12_RC00" failed: step exited with non-zero status: 2
ERROR
Finished Ste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64045006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NHibernate unique constraint remove if duplicate Is there a way to tell nHibernate to remove the duplicate value on a row's column that is uniquely constrained when updating a row with a duplicate value.
For example (OtherId and Animal is compositely unique constrained)
Id | OtherId | Animal
------------
1 | 1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42518799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC 5 App - Implement No Client Page Caching I want to prevent any client page in my MVC 5 application from being cached. My _Layout.cshtml page looks as follows. Notice the code in the head tag. Is this enough (and is it correct) to prevent caching on any page in my app? Or do I need to also add code on every page?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26382091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add an outside library to an ESP-IDF Project I've been trying to fix this for a couple days so any insight would be greatly appreciated. I am building a project with an ESP32 board and VSCode's esp-idf framework. I am having trouble getting access to an outside library's functions. For example, I have impleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72552661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hide folders in url, rewrite url I have a project with a special hosting structure:
*
*www
*
*domains
*
*projectName (example.com)
I have to set the baseUrl config.baseURL = http://example.com/domains/example.com/.
Url example http://example.com/domains/example.com/index.php?id=4.
If I use only config.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19815671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set users.userid as a key in ndb I'm trying to write appengine python code that uses the built-in authentication 'users' object and using userid as an ndb key
Here's my model:
class UserAccounts(ndb.Model):
UserID = ndb.KeyProperty(required=True)
In my handler:
I get the current user
user = users.get_c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20651829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is React state not changing simultaneously with input change for a controlled component I don't think I missed anything in making the form a controlled component. Why doesn't the state doesn't change as characters are being input?
class AddChores extends Component {
state = {
chore: "",
};
handleChang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64472235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Autofill is failing after creating a "local" alias in my ~/.bashrc file I added aliases to my .bashrc file. After I did that and ran source ~/.bashrc, auto fill started to throw errors in my Ubuntu command prompt. The error directs me to line 295 of my bash_completion file to look for incorrect syntax.
When I open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57168201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL error - trigger/function may not see it I was working on my project, here I got this error while inserting some values in a row:
ERROR at line 1: ORA-04091: table SYSTEM.PRODUCTS is mutating,
trigger/function may not see it ORA-06512: at "SYSTEM.PROD_TOTAL",
line 2 ORA-04088: error during execution of trigger
'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65857565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to set options with PHP WkHtmlToPdf I try to use WkHtmlToPdf with Php using Michael Härtl wrapper called PHP WkHtmlToPdf but i can't declare any options.
This code works fine
use mikehaertl\wkhtmlto\Pdf;
$pdf = new Pdf('http://www.example.com');
$pdf->binary ='/usr/local/bin/wkhtmltopdf';
if (!$pdf->send('pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29066239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ds, es register I disassembled certain binary file(Linux elf).
And I found this code :
movsl %ds:(%esi),%es:(%edi)
There are two registers 'ds' and 'es'.
I know these are named 'Segment Register'.
But, there isn't lines like 'mov addr, %es (or %ds)'.
Where these registers point to ?
A: The segment registers get in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9789652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Symfony try project in prod environment leads me to an error I was trying to run my project for the first time in a production environment I did not go how I expected.
After following the instructions from here
https://symfony.com/doc/current/deployment.html I got an error in my localhost/Symfony/web/app_dev.php pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27008788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Use a constructor expression to create the DTO directly I want to implement DTO mapping after SQL query execution with JOIN:
Query:
public List<Businesses> findCompaniesBusinessesById(Integer id) {
String hql = "SELECT bus FROM " + Businesses.class.getName() + " bus "
+ " INNER JOIN " + Comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56496329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to update Customer Information messages in Drupal :: Ubercart i recently installed Ubercart module and manged to configure most of the shopping cart. One of the issues i am having is finding a place to update the Customer Information message
"Enter a valid email address for this order or click here to login wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3614117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't I display the result of this mysql query in PHP? $query = mysql_query("SELECT sum(rating) FROM stars WHERE post_id = 20");
echo $query;
It outputs:
Resource id #3
instead of 8, which is what the actual sum is.
A: Try the below. mysql_query returns a 'resource' that represents the resultset, and to get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3535483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Change UIButton BorderColor in Storyboard I Set CornerRadius and BorderWidth for UIbutton in User Defined Runtime Attributes. Without adding layer.borderColor it works Well and Display border in black color. But when add layer.borderColor does not work(does not show border).
A: I got answer. Change borderColor in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28854469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: How to subtract the result of a query with a result of another query in c# linq? I want to get records from investment and calculate the sum of Amount from investment_Line where investment_Line.ParentID==investment.Investment.
Subtract the Amount Calculte==d.Amount-Answer
var a = (from investment in _entities.Inves... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41752992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: access vba hperling wont work Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("יומן תקלות")
Dim str As String
rst.MoveFirst
Do Until rst.EOF
If IsNull(rst!אישור) Then
str = rst![מס' תקלה]
rst.Edit
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27819719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setstate completes after even thou it's in a .then I'm very confused on this. I know it has to do with the async nature but I'm not able to get this to function the way I need it to.
I need the firebase.set to run. When that is completed then this.setstate to run, once that is completed the next then to run.
.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58334588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delete a key/value pair from an unordered_map C++ I have two questions. First I have an std::unordered_map<int,Object*> where Object looks like this:
// Object.hpp
class Object {
public:
Object();
~Object(){};
int Id();
void setId(int i);
private:
int id;
};
This un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29178127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CUDA atomicAdd failed The following CUDA kernel is supposed to do image slices addition for an 3D image, i.e., you collapse the 3D volume along one dimension and produce one 2D image through doing pixel-wise additions. The image_in data pointer has size 128 * 128 * 128, which was obtained from an ITK::Image using th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36417066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Core 2.1 Referring to ApplicationDbContext from Class Library I have these 2 projects App.ClassLibrary and App.Data
I followed this tutorial https://garywoodfine.com/using-ef-core-in-a-separate-class-library-project/ to move my migrations and models to App.ClassLibrary. One of those steps was to create an Ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52557962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between physical and programmatically click on ListView I am clicking ListView item programmatically on onCreate method like below:
// setting listener for ListView item click
listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onIt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41477692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Kafka commits transaction after LeaveGroup due to max.poll.interval.ms is exceeded I am using transaction in kafka. I have provided my consumer container with a ChainedKafkaTransactionManager which consist of JpaTransactionManager and KafkaTransactionManager.
I am trying to learn how transactions are affected when a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51284626",
"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.