text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Error when trying to create a facetgrid of pointplots I have sequencing data of micro-RNAs (miR) under different conditions ('Comparisons'), and I want to create a point-plot which will show me on different graphs the fold-change for each miR. the data looks like this (and is a pandas data_frame)
mir_Names ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30527294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiprocess Python 3 I have a script that loops over an array of numbers, those numbers are passed to a function which calls and API. It returns JSON data which is then written to a CSV.
for label_number in label_array:
call_api(domain, api_call_1, api_call_2, label_number, api_key)
The list can be up to 7000... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33162690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compare two lists with multiple objects and set values? I have two lists. Each list has a Name object and and a Value object. I want to loop through list1 and check if each list1 Name object is the same as the list2 Name object (the linq code below does this).
If they match, then I want the List1 Value to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25532364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Discord JS function returning undefined I'm building a Discord bot using a collector and am trying to collect votes for rounds of a game. However, the bot keeps returning the wrong values. It will usually return either undefined or [object Object]. The stringifier() function should be returning the name of a round b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67801752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would offline_access work after deprecation after May 1st? I did some test, the result I found contradicts Facebook's documentation. https://developers.facebook.com/roadmap/offline-access-removal/
If we enable the "Deprecate offline access:" and ask for offline_access, at mobile client, we automatically get a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9930311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add variable in other class static Dictionary without calling a function? Desired outcome:
Implement a class structure, for testing API without altering the base class.
Current situation:
When I write each test for a website, then I'm trying to reuse currently implemented functions to prevent code duplication... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49599882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Authenticate OneDrive API with client-credentials-flow We have a requirement to expose an API which can talk to OneDrive storage to download the files which is in shared directory.
Can i have OAuth Client Credential flow using Azure AD ?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/73012490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replacing string after match I'm new to perl and was wondering how I could replace some text after a matched pattern.
For example I have a string:
my $string = 'startDate="2014-06-10"';
$string =~ s/startDate="2014-06-10"/startDate=""\g;
This code replaces what I want but I want to be able to have any date ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24166349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle exceptions that occur in let bindings or body How does one deal with exceptions that could occur in the bindings or body of a let statement using the same finally block? Ex:
(let [connections (create-connections)]
(dostuff)
(close connections))
If (create-connections) or (dostuff) fails, I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20335760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Does JavaScript Promise.allSettled have a callback? Does JavaScript Promise.allSettled have a callback when all settled?
I need to call a function after promise.allSettled.
A: Calling Promise.allSettled returns a Promise, so just like any other Promise, call .then on it:
Promise.allSettled(arrOfPromises)
.then((r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58969834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to scrape a URL on a page only once? I'm not sure how I can count a URL on a page just once.
For example, this page https://www.ig.com/uk/news-and-trade-ideas/ includes the article https://www.ig.com/uk/news-and-trade-ideas/early-morning-call--221103 4 times in different sections.
How can I record it just once.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74357989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inflating Custom Views - Layout File Inconsistencies No, no one answered that question, and the problem still remains... This question here is about another symptom to the same problem (please see comments below):
In Monodroid atleast, when inflating a custom view from a layout, sometimes it needs to be wrapped in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17394374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why am getting null value for the $mail->body =$message? I have tried to add text in message finally it works but after adding $message from the form showing null with error message.
I am using an ajax call for form submission. Everything working fine but mail is not working throwing an error
"message":"Mailer Err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51843710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Confirmation dialog will not show when submitting form I am trying to throw up a confirmation dialog before a user clicks delete.
@using (Html.BeginForm("Delete", "Controller", new { viewModel.Id }, FormMethod.Post, null, new { onsubmit= "return confirm('Do you really want to submit the form?');", @style = "text-al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70603196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Amazon Pinpoint - send a scheduled message to a specific user I am using Amazon Pinpoint to send push notification to my users' devices and I'm looking for a way to send a message to a specific user/device at a specified time (e.g. 15 minutes from now). Is there a way to accomplish this using Pinpoint?
A: Yes, tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48177904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: LTE internet during WIFI connection? Is it possible to programmatically force iphone to download LTE internet during WIFI connection?
I am connected via WIFI to a device with no internet connection. But I need to use MapKit (via LTE)
Best regards.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/60248050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: Get 64mp image from Xiaomi Mi 10T I'm trying to get the largest picture from Xiaomi device. When requesting supported resolutions
CameraManager manager = (CameraManager) getContext().getSystemService(Context.CAMERA_SERVICE);
CameraCharacteristics characteristics = manager.getCameraCharacteri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72058862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make AjaxForm work with several forms loaded using jquery load()? I have a page with a div that is dynamically filled using a paginator ;-) At page init I load the first 10 forms in it using jquery .load() method.
What I'd like to do is to make all the forms dynamically updatable using AjaxForm plugin. I kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3467894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add Qlabels in PyQt5 on runtime I want to add Qlabels on runtime by clicking the pushbutton.
For example, I want to add "Helloworld" text label each time the button is clicked.
I have written code but it replaces not add Qlabel in scrollArea, I want to add "Helloworld" in the scrollArea each time the pushbutton is p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69082882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sockets in Pascal How do you use network sockets in Pascal?
A: Here's an example taken from http://www.bastisoft.de/programmierung/pascal/pasinet.html
program daytime;
{ Simple client program }
uses
sockets, inetaux, myerror;
const
RemotePort : Word = 13;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Google Cloud Instance Groups - There is no backend service attached to the instance group I am getting an error on an instance group after updating the autoscaler min and max values.
This is running from Google Cloud Functions
var url = `https://www.googleapis.com/compute/v1/projects/${projectId}/regions/${groupRegi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54870088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to rescale widgets in a layout? I have a widget (lets call it a main widget), which should display another two widgets. I am using QGridLayout to position these two widgets in the main widget. (This is just simplified. I really got 5 widgets in the main window)
Initially, these two widgets are of the same size, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Migrate base odoo12 I want to migrate the database from one computer to another. I downloaded the backup and transferred all installed modules to this computer. But when I enter the database, I get an error:
raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63132450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: undefined symbol: rb_thread_select Hi I have working with rbenv and using rails application it is working good, when I switched application to another computer , After bundle install
When I run "rails s" or "bundle exec rails s"
This is error come
/home/{user}/.rbenv/versions/2.2.2/bin/ruby: symbol lookup error: /h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32372487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Not all Nintex workflow steps occuring I have a "visit notification" workflow which is triggered when "visit required?"=Yes and "Sales email sent? "=No.
The workflow steps are
*
*Send email
*Change "visit date" to "Date to be confirmed"
*Change "visit email sent? "=Yes (to ensure the workflow does not
trigger... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43897113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse with Jython doesn't understand Java Imports I have set up Eclipse to use Jython as documented here:
http://www.jython.org/jythonbook/en/1.0/JythonIDE.html (Under Minimal Configuration)
I am following this tutorial as best I can, but for some reason the IDE does not understand Java imports. The line javax.s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18275332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Graphviz compacting graph I'm generating a graph with graphviz and the circo tool it provides.
The graph generated is a nice shape, but the lengths of the edges between the nodes are a lot larger than they need to be, which makes the text of the nodes be small (relative to the output image) and so hard to read.
How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41494943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP SELECT Query in FOR LOOP not executing I have a SELECT query in the FOR loop that will just not return a value, I have echoed the parameters and also run the SQL and they appear fine.
Any ideas as to where I am going wrong?
I am posting values from a multi row form that has the following text fields:
F1,
Grade_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74338847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prepare Pandas df for Venn diagram I have a Pandas dataframe as follows:
+-----+-----------+
| ID | VALUE |
+-----+-----------+
| A | Today |
+-----+-----------+
| A | Yesterday |
+-----+-----------+
| B | Tomorrow |
+-----+-----------+
| C | Tomorrow |
+-----+-----------+
| D | Today ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65038097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Lua why is 'require' unsafe to use in a sandbox environment? Via this page: http://lua-users.org/wiki/SandBoxes require is marked as unsafe and it's because:
*
*modifies globals (e.g. package.loaded)
*provides access to environments outside the sandbox
*and accesses the file system
Pretty much all pure Lua li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38596386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Django: AttributeError: 'NoneType' object has no attribute 'username' I am trying to create a chat app and got stuck with this error.
I am getting this error though I'm logged in as a superuser.
My models.py
class Message(models.Model):
author = models.ForeignKey(User, null=True, related_name='author_messages', ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65376523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Office Analysis Prompts Value Macro I have a vba code to open prompts window in excel:
Application.Run("SAPExecuteCommand", "ShowPrompts")
But my problem is I dont know how to put value in Prompts window through Macro. Can anyone help about that? Any code sample?
For instance in this picture I want to put 1000 in 0B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71378493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ECMA in Datapower anybody know how to access XML data using xpath expression in ECMA Script(datapower)?
IBM infocenter doesn't have this information on how to access XML data
Please provide if you have any sample script for accessing XML data
Thanks
A: GatewayScript doesn't support any XML Dom in the ECMA (Node.js)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26582051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pass list of arguments to a command for each line In a bash script:
I have this list of arguments (or directories in this case):
Directories=(
/Dir1/
/Dir2/
/Dir3/
)
And I want every item (or line) of this list, to be passed as a argument to a command.
Like this:
cd /Dir1/
cd /Dir2/
cd /Dir3/
(Replace "cd" with an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34376428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: moving laravel public folder gives ' looks like something went wrong ' it worked fine when the file structure was:
/bin
....
....
/public_ftp
/public_html/app
/public_html/bootstrap
...
/public_html/public
....
....
/www
but when i changed it to:
/bin
/laravel/app
/laravel/bootstrap
....
....
/public_ftp
...
/publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41228202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IndexError: tuple index out of range when using Datasets with tensorflow 2.1 Generating my own TFRecords and I can't seem to properly use datasets in my models. Just to test if it was my current files or something in the model code I used tfds with MNIST and am having the same error.
The error is: IndexError: tuple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59761890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to migrate a table using Business Intelligence Dev Studio? I am trying to migrate a table from a remote server into my local database. However, I do not want to create an intermediate csv or tab-delimited file because of the content of the columns inside this table. Some columns are huge and I don't really want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7492900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jump to 'git add -i' patch command (5) directly How can I get "git add -i" to start up in patch mode directly without having to type "5" + Enter?
I know about "git add -p", but it's not the same as it doesn't show me a list of files to select from first.
This is very annoying because I'd like to jump between "git ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2948414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create torrent files from magnet link or infohash I am trying to create a torrent search engine. yet I found a way to collect torrent infohashes from DHT network. My question is how can I extract .torrent files from them?
I have a MongoDB collection contains 1M-1.5M(Growing Very Quickly) torrent info hash.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52873382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: No Persistence provider for EntityManager named defaultPersistenceUnit I am trying to use JPA in my Play app and when I try to load my app I receive a PersistenceException: No Persistence provider for EntityManager named defaultPersistenceUnit
These are my settings:
build.sbt
libraryDependencies ++= Seq(
....
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24346537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring Security, secured and none secured access I'm doing a little application that requires to login first. But for some 3rd party tool, I want to provide an API that doesn't require login. The login itself works fine, the API itself works, but I can't figure out how to tell Spring Security, that the API can be ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39052457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make sure all files uploaded via SFTP in watched directory are ok to use via Java7? I'm using WatchService to monitor a directory. Another third party will upload large CSV files to that directory via SFTP. I have to wait until all the files are finished to start processing the files.
My trouble right now is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20631045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Swagger Ui forcing input as File upload type instead of Text I have an endpoint to save some data. I mapped the input json to a class with name File.
@PutMapping(path = "/file")
public boolean save(@RequestBody File file) {
// logic
}
When hooked up with swagger, the swagger ui considers this as a file type inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54023569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing array of strings as an input argument in a function I'm new to C and I'm not to sure if the title of the question is correct with what I'm about to ask here. Basically I have written a bit of code to:
*
*Ask for the user input for a string each time and fill up the array of string.
*Sort the array of stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71643193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Algorithm to get items from nested array structure structured around powers of 2 I have some constraints on how an array would be implemented under the hood. There can only be power-of-two contiguous elements up to 32 elements (1, 2, 4, 8, 16, 32). Therefore, this puts some constraints on how to optimally store the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71089072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get inputs from user and save them in a list(Python Kivy)? I'm beginner in kivy module. I want to put 8 textboxes in screen to get input from user and then, save this inputs in a list in order to use them later!
I searched in the internet but a didn't find any thing useful.
I think I should do sth like this c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55402450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Run H2 database before log4j initialization in OSGI when using Equinox Launcher I am using log4j to store the logs in H2 database in OSGI using Equinox Launcher. The problem is log4j is initialized before the plugin responsible for starting the H2 database. Is there any way to initialize log4j only after a plugin ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74318944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to change newtonsoft.json code to system.text.json I want to move completely to .NET Core so I need to use System.Text.Json instead of Newtonsoft.Json.
How can I write this code in the System.Text.Json?
private readonly JsonSerializer _serializer;
_serializer = JsonSerializer.Create(new JsonSerializerSettings
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67225752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ANR due to jacocoInit() method I'm getting ANR with below logs,
main (runnable): tid=1 systid=5585
at com.myapp.datamodels.chatgroup.Data.$jacocoInit(Data.java)
at com.myapp.datamodels.chatgroup.Data.getOpenfireId(Data.java)
at com.myapp.utils.UtilityMethods.getGroupById(UtilityMethods.java:314)
Data.java is a mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71575777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I let html table borders merge into each other in css In a current project I have a three-columned table.
<table>
<tr>
<th>Datum</th>
<th>Entschuldigt?</th>
<th>Vermerkt von</th>
</tr>
</table>
My current stylesheet for the table looks as following:
th {
border-bottom: 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59999227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what are the attributes in Cals table mean I've working on CALS tables and was stuck in a step. I've the below table.
<?xml version="1.0" encoding="UTF-8"?>
<table frame="all">
<tgroup cols="2">
<colspec colnum="1" colname="col1" colwidth="2*"/>
<colspec colnum="2" colname="col2" colwidth="16*"/>
<tbody>
<row>
<entr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23781914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NULL not being counted in aggregate SQL Could use a little help with this SQL query.
Let's say I have a table, called StudentGrades, containing a list of students and a flag indicating whether they have passed a class or not. Assuming there are a large portion of students who have not yet been given a grade, how do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22665693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entity framework update change I have an entity model with a self relation (parent/child). My entity named Article has a property called parent. This parent is in fact the relation, and ParentID which is the field in the relation. In ef 4 i did this:
using (var dbContext= new DataBaseModel())
{
ArticleTable n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21944553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .htaccess redirect to subdirectory for Ruby application deployed by passenger My Ruby on Rails project is on justhost server. When I am creating there ruby project, it is creating this in folder rails_apps by default.
For my project, I have created symlinks.
ln -s ~/rails_apps/webworth/public ~/public_html/webworth
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18546792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: No mole class for NativeMethods.cs? I have a class named NativeMethods.cs which contains all extern methods:
internal static class NativeMethods
{
[DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9188937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: adb I/O Error, possible corruption I am struggling to fix an issue I have. Basically my Galaxy S3 has just up and decided that Google Calendar will now crash whenever I open it. After examining the system log, stack trace, etc... it appears to be stemming from the app trying to access /data/data/com.google.android.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27974193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: geting maximu value in a table column I am trying to get maximum value of id column
$taskid = (new Query())->select('MAX(id)')->from('member');
echo $taskid;
unfortunate I got the below text
O:12:"yii\db\Query":20:{s:6:"select";a:1:{i:0;s:7:"MAX(id)";}s:12:"selectOption";N;s:8:"distinct";N;s:4:"from";a:1:{i:0;s:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52809037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Testing RegEx against Null When calling RegEx.prototype.test() on null, JS runtimes appear to convert null into its string form ("null") and then test the regex against that. A few examples:
/[a-z]+/.test(null)
true
/null/.test(null)
true
/[0-9]+/.test(null)
false
/nnull/.test(null)
false
My ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35473255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I use matcaffe in Windows? To use caffe in MATLAB, i need matcaffe.
The manual tells me to run "make all matcaffe"
But it does not tell where to command.
I command "run make all" matcaffe by running cmd from the cafe root folder where caffe.exe exists.
But there is an error saying "There is nothing to do for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51762579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issues with macros and formulas in Excel I'm having problems when inserting a formula from a macro in Excel. I managed to insert exactly the same value that I have on another cell where the formula is working perfectly. It always says #¿NAME? unless I press F2 and Enter. I checked and rechecked the calculation mode ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43374910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse not recognizing my "Main" method I'm trying to write a "Hello, World" variant program in Eclipse, and I can't seem to be able to run my program.
Here's the code:
/**
*
*/
package GreeterPackage;
/**
* @author Raven Dreamer
* Prints out "Hello, World" in three languages:
* English, French, and Spanish.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4784564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Infinite scrolling I am trying to add some "Infinite Scrolling" to my product pages. However, i can't get it working at all, so i have nothing.
The page currently works, but it just outputs all of the products. I can't get the infinite scrolling scripts i found working, as my query is not always the same.
This is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12144277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript function not retrieving string from HTML textarea I am learning JavaScript and I am not understanding why my message is not being retrieved by a word count function. When I click the button with a message of multiple words, I am receiving '1' as the word count, which is incorrect. I have tested the calWor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45230002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wordpress: register_my_menus / creating a new menu does not work I have prepared a positioning of my own menus. So far the menu only reacts to the styling. Wordpress simply selects any menu. For example, if I create a new footer menu, the actual top menu is replaced. The current solution without further menus:
<?php... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72744283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Matlab: Creating contour maps/images similiar to SigmaPlot If a = columns, b = rows and c = intensity. How can I create an image of dimensions a by b and for each pixel to have intensity c:
In SigmaPlot, to create a 29x4 image, a , b and c are formatted as follows, how can the data be formatted in Matlab to achieve ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37765000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When do I see "404" in the page? I'm a rookie in nodejs, and I'm learning Koa. I got some problem about this code.
const Koa = require('koa');
const app = new Koa();
app.use(async function(ctx, next) {
await next();
if (ctx.body || !ctx.idempotent) return ;
ctx.status = 404;
});
What is the meaning of await ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58939103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to make clipping geometry scale with the target? In the following example whenever Grid size is changed, the clipping region size remains as it is expressed in absolute coordinates.
<Grid Clip="M10,10 L10,150 L150,150 L150,10 Z">
<Rectangle Fill="Red"/>
</Grid>
Is is possible somehow to clip the region such... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5956093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Which version of angular-notify is compatible with angular version 15? I use angular version 15.0.0 and tried to install angular-notify version 12, but I got an error while installing process. How can I fix the error and install notify successfully?
Best regards.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/74642078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I return the sum of things counted in xpath for $b in doc ("courses.xml") //Course_Catalog/Department/Course
where count($b/Instructors/Lecturer)=0
return count($b)
This code returns the result: 1 1 1 1 1 1 1 1 1 1. What I acutally want is all the ones to be added up to return the figure 10.
I would be gra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15460753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exit protractor spec without failure Is there a way I can stop protractor from executing more tests in a spec even if there was no failure in the previous tests?
> describe('tests', function () {
> it('should exit', function () {
> protractor.stop(); <---- is there a way to prevent executing more t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36230427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rbenv permission denied issue I have trouble getting my Rails app running after I deployed this to my DO droplet.
I deployed (and installed everything including rbenv) following this guide. Rbenv seems to be installed properly but app is not running and nginx error log says "cannot execute /root/.rbenv/shims/ruby pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27213078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to catch mouse moves outside of screen boundaries My application catpures mouse on down event and relies on mouse movements not directly related to current mouse pointer position (visible pointer). So the math is based on initial point and the relative point of the mouse and has the visual feedback visually not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13891180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why java.util.Optional is not Serializable, how to serialize the object with such fields The Enum class is Serializable so there is no problem to serialize object with enums. The other case is where class has fields of java.util.Optional class. In this case the following exception is thrown: java.io.NotSerializableE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24547673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "125"
} |
Q: Coldfusion Parse URLs in text Can anyone help with a function that will parse all urls into valid html links in a text string?
For example:
"Welcome to www.nerds4life.com. View our articles at nerds4life.com or at http://nerds4life.com or also http://www.nerds4life.com"
would become:
"Welcome to www.nerds4life.com. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5184737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TypeError: userAgent.toLowerCase is not a function While running Angular-unit test, using chrome browser, ended up with the error as
TypeError: userAgent.toLowerCase is not a function
at _isAndroid (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/forms/fesm2015/forms.mjs:176:43)
at new D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73620887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I change the CheckBox focus color on Android? I want to change the checkbox "outline" color, which is visible when focusing the checkbox in order to improve the visibility of the currently focused item when using the app with a keyboard or directional pad. How can I do that?
Image of what I mean:
Focused Che... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70580021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Go: How can I "unpack" a struct? I have a struct:
type mystruct struct {
Foo string
Bar int
}
I'd like to create SQL insert statements from the struct which have the following form:
m := mystruct{ "Hello" , 1 }
query := "INSERT INTO mytbl ( foo, bar ) VALUES ( ?,? )"
res,err := db.Exec(query, m.Foo, m.Bar)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18628852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Python mysql.connector select without locked rows from transactions I'm currently working on a Project with MySQL-based Jobworkers. In order for them to fetch a new Job i ran into a problem with row locking:
On Native MySQL (ran 2 terminals and executed following):
SELECT id FROM `data` WHERE `status`=0 ORDER BY `cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74824541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to call static func by passing $_GET params? i have got a static function> which is called
regenerateThumbnailsCron()
And I would like to execute this function by GET params, for example>
if($_GET["pass"]=="password")
self::regenerateThumbnailsCron();
But if I tryied to call this function in constructor>
class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4596980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SetProperty of "SelectedItem is not supported on control type: Window while trying to select an item from combo box in windows application error message showing
"SetProperty of "SelectedItem" is not supported on control type: Window"
A: The problem is that you are calling an instance of class Window but not Combo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33541457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java 8 how to check null values and get List of object? I've a below code written in Java and I wanted to use in Java 8. How can I do that?
Below code is within method:
Query query = new Query();
query.fields().include("address");
query.fields().exclude("_id");
List<User> users = mongoTemplate.find(query, User.clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55521274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to continously deploy a feature to karaf? I want to continously deploy a feature to ServiceMix 6.0, which is based on Karaf 3.0.4.
I first tried this using the karaf console. However there are some problems. It is for a standard karaf installation not possible to determine on the karaf console if a feature is al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32117888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using cuda thrust::max_element to find max element in array returns incorrect sometimes I have a 2^20 element array being filled on the device; these numbers should be the same every time.
I then move that array over to the host and then search for the max element in the array, this technique works with 2^10 element... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27238084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Set background color of NSWindow with appearance set I am using the following code on my NSWindow so that all my buttons, pop ups, etc. are in a dark mode tint:
[self.window setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]];
But I want to set a custom window background color instead of the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33595674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run angular test using Cloud Build? I use out-of-the-box Angular testing framework: Jasmine and karma for Unit Test and GCP Cloud Build to deploy the app. However, there is a problem in testing because there is no Chrome installed for the node Docker image.
What is the best way to handle that? Create a custom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70789800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is on my heap? C linux So I called malloc(1024) today to just play around with the heap. I for the most part understand the structure of the heap, so when I printed out what was in memory, I wasn't surprised to see "00000000 00000409 00000000 00000000 ...."
however 1032 bytes later, I expected to find the top c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43530173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recursively update a State Monad this question is related to this question
I have a state monad. An object provides an update function as in the OOD strategy pattern.
*
*The choice of having a object is that in real, production code, the
class provides an array of operations, all sharing state through the
monad.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20357643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq to sql Distinct after join I have a join query and i want to filter the result of this query by using distinct. I want to get only one of the shoes which has same brand, model, primary color and secondary color. How can i make this ? Here is my join query.
var query = from b in db.BrandTbls.AsQueryable()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23895647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: API call in ReactJS and setting response to state I have an array with ids like
[123,345,212,232.....]
I have a Rest API that responds the particular product with respect to an id .
So in ReactJS, how would I loop through the array and get the products and store in state
I tried doing this in useEffect{running once ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66702031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I prefix my log messages with the current date and time? I'm using Python 3.9 and Django 3.2. I have logging configured in my settings.py file
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70059001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery FullCalendar Plugin not Showing Events I'm using the FullCalendar plugin in a CodeIgniter application. I'm retrieving event objects with a GET request server side and the events do not show on the calendar using a similar approach to the events as a function example with a callback. I have verified that the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7165585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bootstrap MultiSelect Options list need to hide while scroll the window
<!DOCTYPE html>
<html>
<head>
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57685229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bootstrap responsive: How to fix a non-responsive element? I've enabled the responsive feature in twitter bootstrap, using nested fluid grid. When viewed on small mobile, every single spans are stacked. However, I'd like to keep the "maincontent" unstacked and shown in horizontal layout. I've tried display:inline-bl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16885799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: YouTubeAPI v3 - "Daily Limit Exceeded" error before my app reaches API quota limit Daily, between 11:00PM and 2:00AM EDT, my requests to the YouTube v3 API start failing the "dailyLimitExceeded" error, status code 403. The error always stops at 3:00AM EDT. My app hasn't actually yet reached the 50,000,000 units limi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30565612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Exception in thread "main" cucumber.runtime.CucumberException I am getting Exception in thread:
Exception in thread "main" cucumber.runtime.CucumberException: No back ends were found. Please make sure you have a backend module on your CLASS PATH.
I am new for Cucumber BDD framework ,running following feature file.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73089345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to find draggable product related values name, price I have tried drag and drop using jquery UI , i have updated this into fiddle
JSFIDDLE:
http://jsfiddle.net/GPBUn/
JQUERY CODE:
//draggable start
$(function () {
// jQuery UI Draggable
$(".products-grid .item a img").dragga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22147269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to validate AzureAD accessToken in the backend API I just wanted to know how can we validate the azure ad access token in a backend API in my case i.e. Django rest framework.
Consider that I have a single page app or a native app and a backend API (django rest framework) completely independen of each other. In m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66720526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Unity shadows ignoring shader's transparency but only in build I've made a custom shader that adds a pass to the surface shader to achieve an outline around the object. The object is a quad with the characters sprite on it to achieve a 2d character in a 3d game. The object should be casting a shadow in the same sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52751343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between doc_values and fielddata.doc_values mapping settings? Question is about Elasticsearch 1.x
The documentation says that setting "doc_values": true should suffice to use disk-based fielddata. Like this:
"string_field": {
"doc_values": true,
"type": "string",
"index": "not_analyzed"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39253770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Different elements for Laptop and Mobile? Framework: Meteor
I am using Handlebars to send information to the client.
I have this layout defined named post.html:
<div class="card">
<div class="card-image waves-effect waves-block waves-light">
<img class="activator" src="{{image}}">
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31030654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.