text stringlengths 15 59.8k | meta dict |
|---|---|
Q: jsPDF: addHTML method not working I created html table and tried to generate pdf using jsPDF.
I have used following code:
var pdf = new jsPDF('p','pt','a4');
pdf.addHTML(document.getElementById('pdfTable'),function() {
console.log('pdf generated');
});
pdf.save('pdfTable.pdf');
I am getting blank pdf file. Am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27047365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to return all the rows in tracker_sessions table using antonioribeiro/tracker I am using antonioribeiro/tracker for my website analytics.
Everything is working as intended but I want to count all the rows in tracker_sessions table, when I do
$sessions = Tracker::sessions();
return count($sessions);
It returns o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52733523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In Visual Studio (2010), how do I get the little method information help box to pop up again? I know that Ctr+Space is to bring up intellisense for code completion, but how do I get this little box to pop up, which is the one that provides method and parameter info:
At the moment, if I lose it, I backspace the comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7213854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is Java Regex to check if a String is a chain of numbers delimited by "_" (java)? I want to check if a String is a chain of numbers delimited by "_":
Examples:
200_121_545 : return true;
455 : return true; // it doesn't need _ to be valid, a number is ok
ff_78 : return false;
2212 _55 : r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23239224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: The function table.setColumnLayout(columnSettings); is not working for me I've written a function to create tables with different column setups and different data based on the parameters I send it. That all works fine.
My problem is that I can't get the setColumnLayout function to work when I want to reconfigure the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57455602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strange behavior with var in Chrome I'm getting some very strange behavior in Chrome v57.0.2987.133 using JavaScript:
Here is my code:
var firstName = "Bob";
var lastName = "Smith";
var age = 29;
function happyBirthdayLocal(first, last, a) {
a = a + 1;
message = "Happy Birthday to " + first + " " +
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43262209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Elasticsearch port 9300 django I'm facing a strange issue, using Django Haystack and ElasticSearch so I can't rebuild_index.
ElasticSearch is properly running on the machine :
$ curl -X GET 'http://localhost:9200'
{
"status" : 200,
"name" : "Ziggy Pig",
"cluster_name" : "elasticsearch",
"version" : {
"numb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47560039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to improve performance with MonetDB on OSX? I am using monetdb on a 16GB Macbook Pro with OSX 10.10.4 Yosemite.
I execute queries with SQLWorkbenchJ (configured with a minimum of 2048M RAM).
I find the performance overall erratic:
*
*performance is acceptable / good with small size tables (<100K rows)
*abys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31552094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accidentally ran php artisan clear - compiled services and packages files removed Just as I was getting ready to run:
php artisan cache:clear
php artisan view:clear
php artisan route:clear
...for debugging purposes, I ended up running php artisan clear instead. I got back the following output:
Compiled services an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70883721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get property value and convert class type to boolean I have following piece of code:
ClassName class = new ClassName();
var getValue = GetPrivateProperty<BaseClass>(class, "BoolProperty");
public static T GetPrivateProperty<T>(object obj, string name)
{
BindingFlags flags = BindingFlags.Instance | B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33648308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does GRPC have a Channel that can be used for testing? I'd like to create a simple test but with RPC within the same JVM.
What I was thinking was something like
@Test
void foo() {
Channel channel = new SomeMagicalObject(new MySystemImpl());
SystemStub stub = SystemGrpc.newStub(channel);
var ret = stub.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71059894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unroll / splat arguments in common lisp Say I have a list of arguments:
> (setf format-args `(t "it's ~a" 1))
(T "it's ~a" 1)
How can I then "splat" or "unroll" this into a series of arguments rather than a single list argument, for supplying to the format function?
i.e I would like the following function call to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2345999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Drupal trial account development I am creating a website where you can create an account with your name and email. When this is done, you get a 30 day trial. From this point, you can 'upgrade' your account by supplying more information.
When you do not update your information after 30 days, your account is suspended... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8064561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Swift: Modifying an Array using a variable to specify the array name I am working on an app that parses XML responses from a web service. This web service will return several instances of an object of many different types using object stacking. I just want to take these objects and populate them into an array. Ri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42172739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Haskell Unit Testing integrated in Leksah I'm writing some Haskell code in the Leksah IDE. As I edit the code, Leksah does background compilation and runs unit tests after the background compilation completes.
I see in the "console" frame the following:
Building UNFI-EIC-0.0.1...
Preprocessing test suite 'test-UNFI-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21637776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Image preprocessing before feeding into Deep learning algorithm I am developing an image segmentation algorithm, I used Deeplabv3+ to train a model, which performs fine. The question is if I can improve its performance. I would like to know if there is preprocessing methods to use before feeding the image.
I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73545812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pandas: Find date of last edit for each element in Dataframe Hope to express myself correctly in the following as it seems to be a complicated one.
My department is regularly creating daily snapshots at random times for our current project portfolio website. Below, I have filtered the entire table for all snapshot w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64607926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you insert jquery into a php file? I have the following .php file:
<div class="excerpt">
<?php get_the_excerpt();?>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$(".excerpt").hide();
});
</script>
I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59266911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Notepad++ NppExec run in cmd How can I make my commands run in NppExec run in cmd, as opposed to the built in console, which doesn't work with things like: "Press any key to continue", which only works when you press enter?
A: You want to take a look at cmd /? output and http://ss64.com/nt/. Using start along with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12847699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cannot get same cursor for all objects and events in a window I have searched and tested a lot and have not found a way to force a window and all children use the same cursor for all events.
In the example code below I want the DIAMOND_CROSS cursor used even when hovering over the Gtk.Paned handle. As it is now it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35084229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to properly dispose of a pthread mutex? I wrote a class to wrap a mutex. In the destructor, I call pthread_mutex_destroy and sometimes it returns EBUSY because some other thread has not released it. My question is, what is the best way to handle the destruction of a mutex? Should I wait for it to be free?
Here ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24410030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VueJS data() not working I am trying to make a VueJS app but I am failing even with the simplest examples.
I am using Laravel 5.3 with pre-built support for VueJS (version 1, I tried version 2 as well).
Here is my Example.vue component
<template>
<div class="profile">
{{ name }}
</div>
</template>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39932110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Programmatically Push VC on Table Row Tap I am attempting to do a onRowTap method without using a storyboard segue to push to a new View Controller, however when tapped it only displays information from the first item of the indexPath no matter which row is tapped. Here is my code:
- (void)tableView:(UITableView *)t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28637523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to delete an entry from a Record in typescript,based on the Id I have a Main.tsx file where i have a Record ,personList,with key as PersonId and value as PersonInfo,i want to delete a particular entry from personList,based on Id provided.Below is my code:
interface PersonInfo{
FirstName:string;
SecondName:string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61439693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Session and page Redirection Not working on hosted server? My php website is clearly working on localhost.When hosted it to server page redirection doesn't works(Tested by removing all echo).But when using javascript redirection it works but missing session variables on the next page.
Then tested echo session_id();... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21060322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically adding files to a input I'm using this plugin: jQuery HTML5 uploader (see the demo), inside a form. I want to send uploaded files with the POST method when user submit the form.
Maybe can I create a input[type="file"], make it hidden, and dynamically add uploaded files with the plugin inside the input? I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21883749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compare if an item in a list has the same value AND position as an item in another list? Python 2.7 eg.
l1 = [a,b,c,d]
l2 = [e,b,f,g]
A method that would return true when it sees that b is in both l1 and l2, and in position [1] in both lists. Preferably something that I can use in a for loop so that I can co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14542948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Disadvantages of using multiple | {
"language": "en",
"url": "https://stackoverflow.com/questions/67209780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to crack or bypass the VBA project password with Excel 2011 Mac edition? There are several good sources (referenced below) that demonstrate how to bypass VBA project passwords for Windows versions of Excel. But, none of these work for Excel 2011 for Mac.
Is there a way to achieve the same result with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37029166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I change a color channel in an image using numpy? I have an image where some color channels in the pixels have a value of zero (ie 255, 146, 0). I want to be able to change any value equal to zero in the array to a different value, but I do not know how to access these values. Any help with this?
This is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43645586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NASM: move from memory to memory via registers I am difficulties moving data from memory to another memory in bss. My implementation somewhat works however when moving some weird characters appear in the first couple bytes and half of my string is also missing while the other half is fine.
This is the value I get w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58576125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does average damping magically speed up the convergence of fixed-point calculators? I'm reading through SICP, and the authors brush over the technique of average damping in computing the fixed points of functions. I understand that it's necessary in certain cases, ie square roots in order to damp out the oscilla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3860929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Java Null Object that is used in Hash Tables and Comparables I have an object that represents an UNKNOWN value, or "Null object".
As in SQL, this object should never be equal to anything, including another UNKNOWN, so (UNKNOWN == UNKNOWN) -> false.
The object is used, however, in hashtables and the type is Comparabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43795877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting a Method in the Main C# static void bubble(int [] mas)
{
int temp;
for (int i = 0; i < mas.Length; i++)
{
for (int j = 0; j < mas.Length - 1; j++)
if (mas[j] > mas[j + 1])
{
temp = mas[j + 1];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33853238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to detect if user has an app in Cocoa How can I detect if user has an app, like echofon or twitter for mac or if user has pages, or textmate? Any suggestions?
A: Use NSWorkspace's fullPathForApplication: to get an application's bundle path. If that method returns nil, the app is not installed. For example:
NSSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7866273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Execution order of simple function I am a bit new to javascript, i was just trying the below snippet:
_getUniqueID = (function () {
var i = 1;
return function () {
return i++;
};
}());
s = _getUniqueID();
console.log(s); // 1
console.log(_getUniqueID()); // 2
I was under ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31909178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CouchDB Views - emit Keys as JSON & filter based on any attribute Consider following Employee document structure
{
"_id":...,
"rev":...,
"type":"Employee",
"fName":...,
"lName":...,
"designation":...,
"department":...,
"reportingTo":...,
"isActive":..,
more attributes
more attribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15834963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uncaught PDOException: could not find driver ... Window XAMPP MySQL PHP Version => 7.4.4 I've walked through all the StackOverflow answers and no one was useful for my case.
I am on Windows using XAMPP with MySQL my PHP Version is 7.4.4, in my php.ini the extensions are uncommented and I am posting them in here
exte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61158974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AWS Auto Scaling Group As a newbie to AWS concepts, I am trying to understand ASG concept.
a) Does it work per region or per Availability Zones?
b) Do I need to have an ASG for each Availability zone, or it can scale up and down the instances from different AZs on a shared region?
A: You can have an autoscale group... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46728768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Opencart check if specific product is in stock I want to be able to check to see if a specific product is in stock or enabled or disabled. I would then like to put this block of code on the checkout page. More specifically it will go in Gift_Wrap.xml. I have a product called Gift Box and it goes out of stock quit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31328773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I apply an Ansible with_items loop to the included tasks? The documentation for import_tasks mentions
Any loops, conditionals and most other keywords will be applied to the included tasks, not to this statement itself.
This is exactly what I want. Unfortunately, when I attempt to make import_tasks work wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47352361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: AIDL server usage in Android Currently, I have implemented AIDL in 2 apps. App1 works as a server and App2 works as a client. The service is added to App1 and App2 connects to that service. Now, I want to run the App1 (server app) as a service and avoid being installed then what should I do? Currently, I tried to in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73316972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mapbox map not showing up (react-map-gl) I was using this website [http://vis.academy/#/building-a-geospatial-app/1-starting-with-a-map] to learn how to visualize data using react and mapbox.gl but I ran into some problems.
I'm running the app on localhost:8080, and all I see is a blank white screen. Even though I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63947709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: bash while read loop fails with \ as line termination Input file:
$ cat list
dog \
cat \
apple \
script:
while read line;do echo $line;done < list;
The Problem:
The above script prints nothing. Whereas using 'read -r' in place of read prints all lines.
My Question is..
Shouldn't the while loop run at least once ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42554165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cant delete record from SQL Server CE I have an ASP.NET MVC application. I use EF 5.0 to persist data in the database of a SQL Server CE type. I have installed SqlServerCe.Enitity NuGet package. I can successfully process Create, Read and Update operations on the database records using Linq and my model object. For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19356708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Activating chrome language flags when activating from protractor (selenium) I'm writing end to end tests with Protractor for an angular website.
We have to support certain languages so I would like to init chrome using the --lang flag and start it with some other language. I searched the web and couldn't find any ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26872481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Opencart optimus theme errors Hello guys i have some problems with my opencart theme .
https://melani-shop.com
I got too much erros can you help me ?
Screenshot http://prntscr.com/erggqi
| {
"language": "en",
"url": "https://stackoverflow.com/questions/43167074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: My dev++ is returning non-static warning. Whats the problem with the code? I'm doing this code and can't find a way to compile. Tried Online compilers which each one of them gives a different reason for the error, my Dev++ says that
[Warning] non-static data member initializers only available with -std=c++11 or -std... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57861831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why the magic method '__get' has been called twice? I have seen some code like below, and it is strange that the __get method has been called twice, why?
class Foo {
private $bar;
function __get($name){
echo "__get is called!";
return $this->$name;
}
function __unset($name){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Calling click function from external js file I have a onClick function in external file navigation.js, which is included at the bottom of page. This is navigation.js:
( function() {
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
}
function closeNav() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45653073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSF cant resolve bean in xhtml file using spring boot i have a simple JSF xhtml page contains xml:
<h:body>
<h:outputText value='#{someBean == null ? "null" : "not null"}'/>
</h:body>
my faces-config contains:
<application>
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65088769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RestKit - Map to a simple instance variable I am quite new to RestKit. I know that the Object Mapping of Restkit is very powerful. However, in some case, I just want to map to a simple variable. For example, take a look at the following response:
{
"response": 400,
"result": {
"error_message": "Inva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24304926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How should I mark a method as "obsolete" in JS? I am refactoring a rather large JS file that contains many unrelated methods into something that will regroup the methods together according to their usage, and renaming some of them as needed (to prevent misleading names).
However, most of the web pages that actually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19412660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Rename project built with Gradle I have a Java project built with Gradle that is using a package com.example.package1. I would like to change the package structure to com.example.package2 and name the corresponding directories accordingly.
Is there some refactor (Eclipse like) tool that can do that for me? Or what a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17243826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to disable weak cipher suits in java application server for ssl I have a custom Java application server running. I am seeing that there are some weak cipher suits supported by the server for example some 112 bit ciphers. I want to disable those. Where can I don that. Also I want to enable TLSv1.2. The following ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36597380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error occurred during initialization of VM Unable to load native library: Can't find dependent libraries [Compiling C file, JNI] I am implementing a "reverse" JNI to call Java from C following this tutorial: How to Call Java Functions from C Using JNI. Whenever I compile my file, "CTest.cpp", and run "CTest.exe" in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31466611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a recursive queue? I am trying to implement a recursive queue using the trait Element<T> as a container for all the functions of the different nodes of the queue and two structs implementing it called Node<T> and End.
The Node<T> struct is supposed to handle all the functionality within the queue itsel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75377008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: angular 4 router auth-guard not invoked on same route Hi i configured this routing:
const routes: Routes = [
{
path: '',
component: LayoutComponent,
canActivateChild: [AuthGuardService],
children: [
{
path: '',
pathMatch: 'full',
redirectTo: '/buchbestellunge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48277269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Preservation of exception cause when redelivering failed activemq jms messages processed by Mule ESB I have built several Mule processes that consume messages from jms queues (ActiveMQ). Whenever a Mule component throws an exception, the transaction that consumes the messages rollback and the message gets redelivere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5069733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTTP ERROR 500 after deploy on web service I was deploy my app on Azure Web Service.
The app works locally but when I deploy to Azure I get internal server error (500).
I already clicked on "Allow Azure services and resources to access this server" on Set Server Firewall.
Most likely causes:
IIS received the reques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74442333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to make a sass mixin loop from array value(s)? I'm looking for some advice on my issue.
I have this mixin which works great..
@mixin theme-change($theme,$attr,$value) {
.theme-#{$theme} & {
#{$attr} : $value;
}
}
which I then output like this..
@include theme-change('media','background-color', #... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26778659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php for loop skips by twos I have a function in php that builds an html string for a table so at inside I have a for loop
for ($counter = 0; $counter<10; $counter++){
$htmlString .= code for table row here;
}
The for loop only makes 5 rows and i even printed out the value of $counter and it says: 0, 2, 4, 6, 8
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7865318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to eliminate the repetition of same rows I have a table in my database which looks like (there can be same tuples in table):
+-------------+---------+--------+
| ProductName | Status | Branch |
+-------------+---------+--------+
| P1 | dead | 1 |
| P1 | dead | 2 |
| P1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31670303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Force code to execute in order? I am seeing a strange problem in my C# code. I have something like this:
public static class ErrorHandler {
public static int ErrorIgnoreCount = 0;
public static void IncrementIgnoreCount() {
ErrorIgnoreCount++;
}
public static void DecrementIgnoreCount() {
ErrorIgnore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42694478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pandas error TypeError: bad operand type for unary ~: 'float' I have inherited this piece of code
dummy_data1 = {
'id': ['1', '2', '3', '4', '5'],
'Feature1': ['A', 'C', 'E', 'G', 'I'],
'Feature2': ['Mouse', 'dog', 'house and parrot', '23', np.NaN],
'dates': ['12/12/2020','12/12/2020','12/12/2020','1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68603734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL - Filter one last item I am trying to count the different majors involved in various program courses. I have it mostly done, but noticed that I am counting duplicate usernames if they are registered for more than one course. Can you help me get the DISTINCT tag somewhere in this query?
SELECT a.`major_desc` AS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28610227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update columns for the first user inserted I'm trying to create a trigger and a function to update some columns (roles and is_verified) for the first user created. Here is my function :
CREATE OR REPLACE FUNCTION public.first_user()
RETURNS trigger
LANGUAGE plpgsql
AS $function$
DECLARE
begin
if(selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74667951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check a particular part of url using php I have a url in a variable.
<?php
$a='www.example.com';
?>
I have another variable, that has like this
<?php
$b='example.com';
?>
In what way I can check that $b and $a are same. I mean even if the url in $b is like
'example.com/test','example.com/test.html','www.exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19068193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Describe file content in swagger I'm working on documenting our existing API's in swagger using open api 3.0.0 specification. I would like to understand the procedure on documenting the contents of a file that is to be uploaded. For e.g.
Say the file that is to be uploaded is response.json, and it has the following ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60937349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Save File on Filesystem using werkzeug I am trying to save uploaded file on my system. at specific path but i am getting this error in windows. can someone tell me where i am doing mistake?
system: windows 8.1
python version: 2.7
Here is my code:
# -*- coding: utf-8 -*-
from werkzeug.serving import run_simple
from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43616258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Api keys with AWS API Gateway I want to use api-keys for authorization and grouping users for accesing the api's in API Gateway. The requests will be sent from web-page using javascript calls.
*
*Is there any way to encrypt the api-keys?
*Lets say I am able to encrypt it, will it be beneficial at all? Beca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49551755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 404 depending on query string Parameters or strictly if route exists Say I had a route such as /Item/Create/ which creates a new Item but requires a mandatory parameter called GroupId. It would have to be called via /Item/Create?GroupId=xxx.
If the given GroupId doesn't exist can I return a 404 or is it wrong to ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15703062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using 'multiprocessing' libary in Python 3 for PostgreSQL queries I'm trying to write a Python script to read query data from my database into pandas dataframes.
I have simplified the code significantly to test the effectiveness of using the multiprocessing library in order to parallelize running the queries since ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50820366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I'm making an ASCII rpg in c++ where my character moves using arrow keys. How do i make my character the unicode smiley? I am using the '@' symbol to act as my character right now. I want to switch it to the unicode ☺ smiley. Below is an example of an ASCII map where my character (currently '@') starts at the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46248365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How To Populate PDF With Values From Model My django project generates a view in the form of a PDF file which uses an HTML file to outline the format. I have a separate view which simply displays a drop down list of all the "Reference IDs" in my "Orders" model. My goal is to choose a "Reference ID" from the dropdo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56121633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keras - Compile model when using theano backend (K.function) to calculate loss I am building an NN in Keras and I am using Theano backend.
Code:
cost = ((pred - target)**2).mean()
opt = RMSprop(lr = self.lr, rho = self.rho, epsilon = self.rms_epsilon)
#model -> keras nn
params = self.model.trainable_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41315365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entity saving to database wrong date format codeigniter 4 My entity looks like this:
class Request extends Entity
{
protected $casts = [
'id' => 'integer',
'added_at' => 'datetime',
'deadline' => 'datetime',
'completed' => 'integer'
]; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61127876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python - How to start Y axis at 0 import pandas as pd
import matplotlib.pyplot as plt
pd.options.display.max_rows = 100
pd.set_option('display.max_columns', None)
western_counties = pd.read_csv('2018_governor_results_western_ny_dem.csv')
df = pd.DataFrame(western_counties)
X = list(df.iloc[:, 0])
Y = list(df.iloc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70526814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DJANGO importing fields to model from another model I have the following Models and I'm try to get the vector in Especie.zonas to be a field in the model Zona.
i.e. Especie.zonas is a vector of Zonas (model Zona) and I want it to have a OneToOne relationship with the model EspecieZona
Models.py
class Zona(models.M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47392733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run bash file for (different directory) as input automatically I have a bash file which takes 5 inputs.
Input1 = file1
Input2 = file2
Input3 = directory1
Input4 = func
Input5 = 50
input 4 and 5 are always the same, never change.
file1 and file 2 are located inside directory1
directory1 is located inside a co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57161280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generic template template parameters Fed up with "uniform initialisation" not being very uniform, I decided to write a generic construct() wrapper which uses aggregate initialisation if a type is an aggregate, and direct initialisation otherwise:
template <class T, class... Args,
std::enable_if_t<std::is_a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46812945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Implement messaging into website I have a website where I have registered users in the system. When user logs into his profile I have section "Messages".
What is the best way to implement messaging into the website? I don't want to use plug-ins with live chat because of the pop-up boxes. I just want when one user w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26185743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does shell expands *.c? I encounter a question while I am reading a textbook - Unix System Programming
How big is the argument array passed as the second argument to execvp
when you execute execcmd of Program 3.5 with the following command
line?
execcmd ls -l *.c
Answer: The answer depends on the number of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35191985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nested Params in Spring Controllers is asking for Neting in JSP file Path. How to deal with that? So this is my controller code :
`
package org.inventorymanagement.controller;
import org.inventorymanagement.databaseservice.BorrowBookDatabaseService;
import org.springframework.stereotype.Controller;
import org.sprin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75262296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Advantages of Maven Tycho over Eclipse PDE Tools for exporting RCP In the light of some recent issues regarding JavaFX and exporting an Eclipse RCP application, I'm considering abandoning the Eclipse PDE exporter, and switching to a Tycho build.
*
*Which approach is simpler, and which is over-complicated? Do I ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25005404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UserForm ComboBox with searchable list to not select first item with keyDown Background
I have a UserForm with a ComboBox (ComboBox1) that includes a searchable list (thanks to the code). However, when I use the down button, it just selects the first item and gets rid of the rest of the list that was there first (li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56245385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compute this double integral in r? I'm wanting to compute an integral of the following density function :
Using the packages "rmutil" and "psych" in R , i tried :
X=c(8,1,2,3)
Y=c(5,2,4,6)
correlation=cov(X,Y)/(SD(X)*SD(Y))
bvtnorm <- function(x, y, mu_x = mean(X), mu_y = mean(Y), sigma_x = SD(X), sigma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61444796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Centering MenuItems in second ActionBar? So I am trying to center my icons like this image from Google Developer:
My second row is actually just below the top row (which is also actionbar tabs without a title or icon enabled in the activity). So, right now, as I've added in my three buttons (just text, no icons) t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10790350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running an interactive shellscript using java I am writing a javacode to call a interactive shellscript and using process builder for calling shellscript. I know that to pass parameters to this shell script i have to take its inputstream to check it's output and need to use output stream to pass command to it. My qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24487514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I save a variable from a database and use it in C#? I am changing a program and I need some help because I don't know C#. I change things with:
strSQL = "UPDATE materials SET ";
strSQL = strSQL + "Dscr = 'concrete', ";
strSQL = strSQL + "width=50 ";
strSQL = strSQL + " WHERE ID=385";
objCmd = new OleDbComman... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30186974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Unable to Import after Pip Install Ive just installed a package via pip,
Cloning https://github.com/felix001/commontools.git to /tmp/pip-LMwfnO-build
Installing collected packages: commontools
Running setup.py install for commontools
Successfully installed commontools-1.0
When I try to import commontools it doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34364449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting a "Unexpected field at makeError" when uploading a form My form has an input for a file (in my case an image) and for some text. When I hit the submit button, the stated error occurs. I have had the issue for two days now and I tried to understand where the problem was, but my efforts were in vain and I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42593719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to deserialize the execution context after upgrading to spring boot 2.0 for a spring cloud dataflow task I updated my spring boot (Task) application to spring boot 2.0 from 1.5. Now when I run it I get a deserializable error.
2018-10-29 15:03:00.346 ERROR 713 --- [ main] o.s.boot.SpringApplication ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53042640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can integrate Keycloak with kafka? I have configured 3 nodes kafka cluster. Now we want to setup security with Keycloak for kafka. Please let me know what are the ways to do the same.
Question 1: How to implement security for kafka broker to kafka broker with keycloak?
Question 2: How to implement security for k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53516762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Pandas - get the mean of one column using descending N rows of another column I have this dataframe:
team opponent home_dummy round points
0 Athlético-PR Flamengo 0 13 22.91
1 Athlético-PR Atlético-GO 0 17 23.6
2 Athlético-PR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65115116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problem on import a react native component I'm having a error once import a component, react native says me that the file path is wrong, but it's not!
My main component where I'm trying to import a component and my file structure:
I'm on pages/Main/index and wanna import a file from components/Header/index, I'm sur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60332314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why UITableView is not getting any user interaction as it's ViewController is added to a UITabBarController as subView I'm setting a left side menu programatically to a UITabBarController. To do this I am inserting a viewController with 0 index as subView to the TabBarController. When I press menu icon first tabView... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55605477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to make invisible some layers with actionscript? I have a map and i can use on (release), on (rollover) but i can't use onload function. I want some cities will be invisible on load. My code is here with images;
Here is my city code:
on (rollOver) { //this code is on all city.
y = new String(_name);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31281041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c# printing through PDF drivers, print to file option will output PS instead of PDF After struggling whole day, I identified the issue but this didn't solve my problem.
On short:
I need to open a PDF, convert to BW (grayscale), search some words and insert some notes nearby found words. At a first look it seems eas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44678404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP: Uncaught Error Cannot use object of type mysqli_result as array I have a simple section in which I am displaying data from the database,
If the user clicks eg construction and selects eg Algeria, I am displaying [251, 211,712] if a user clicks eg Power and selects eg. Egypt I am displaying [406, 228,559] etc
No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57134867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.