text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Cocoapods Error - Trouble in installing MapboxNavigation podfile -Mapboxnavigation sdk In order to implement MapbocNavigation podfile according to mapboxnavigationsdk official documentation.adding Mapbox-iOS-SDK and MapboxNavigation through Cocoapods, always get error, shown bellow.enter image description here
Also ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74640597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Could be in Optional really anything I found implemented this code (method where this part of code is used is returning Optional<File>, this part of code had to be added for verification if values are correct and case can be saved):
if (!CaseChecker.checkValues(case)) {
return Optional.of(new File("FALSE"));
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73474951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fast query and deletion of documents of a large collection in MongoDB I have a collection (let say CollOne) with several million documents. They have the common field "id"
{...,"id":1}
{...,"id":2}
I need to delete some documents in CollOne by id. Those ids stored in a document in another collection (CollTwo). This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64045758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django ModuleNotFoundError: No module named 'EmailIngestionDemo.EmailIngestionDemo' Im trying to write a django web that will retrieve data from postgresql and display on it. But whenever I run my application it show me:
from EmailIngestionDemo.EmailIngestionDemo.models import EmailData
ModuleNotFoundError: No m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68800369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails ActiveRecord using recently saved record id in after_save callback I want to use recently stored record ID in after_save callback, is that possible if yes how?
after_save :create_children
def create_children
self.id
end
Update:
Sorry there was something going wrong with my save function, my bad, sorry to w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5805319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Select records from a table with the latest 3 consecutive status as failed I am needing to select Phone Numbers that have the latest 3 consecutive status as Failed or Send_Failed. Let me explain further with an example (Microsoft SQL Server)
My table:
| Phone Number Attempted | Date Sent | SMS Return Code |
|*456 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64886548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selenium webdriver stops executing test in Firefox Whenever I run a test script in firefox sometimes it continues to load/keep on loading the page even after 5 mins and at the same time I observed on the left side bottom of the page 'Transferring data from a.rfihub.com...'I had to abort the test run and execute it a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36896869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .PivotTables function not recognized in VBA VBA seems to ignore the .PivotTables function in the code below. Does anybody have any possible explanation for this? Could there be a necessary but inactive reference library? Thanks in advance.
ActiveWorkbook.PivotCaches.Create(SourceType:=xlConsolidation, SourceData:=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45723189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Three.js list of random points Beginner question:
I create some random points in java script. How can I later "call" each single one of them? I believe it was called an Object (the list of all points), where I can manipulate their position in the list or "pull" the ones I need. How do I do that in js?
what is the li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37793750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel to Access, change data types as part of a button's on click action I have 2 reports I run in SAP (I only have user level permissions) twice daily that need to end up in Access. The current process looks something like this:
(1) Run report one, select the fields I need, export to Excel.
(2) Run a saved import w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31456910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: try to extract one tweet's id information after creating an API object I'm still new in python and i was trying to extract one tweet's id information after creating an API object.
so the code was :
import tweepy
consumer_key = 'hidden'
consumer_secret = 'hidden'
access_token = 'hidden'
access_secret = 'hidden'
auth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63923652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: cart.discount.enabled returns "true" in advanced demo, "false" on published page. I am wondering why cart.discount.enabled returns different values. I get it as "true" when I'm using the advanced editor on my admin page, but when I save and view the actual page (both in and out of maintenance mode) I get a "false" r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24728344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Search Keyword and rename entire file using VBS I spent a quite a bit looking around. I did find one method that was extremely close to what I was looking for but it replaces keywords.
Dim sName
Dim fso
Dim fol
' create the filesystem object
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
' get cur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29177398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to put a link to the php set message I'm quite new in php and I'm editing code in the cake php.
I would like to add a link to the help page after a error message:
existing code:
if (count($results) > 0) {
$this->set("message", "Sorry, that data already exists.");
return;
}
something like this:
if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21582844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF REST - How can i test WebCache I'm trying to test my REST service with WebCache attribute
[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public partial class MyContract : IMyContract
{
[OperationContract()]
[WebGet(ResponseF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3071875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Weird LD_PRELOAD trick + gcc destructor behavior I have recently learned the LD_PRELOAD trick (What is the LD_PRELOAD trick?), which can be used to debug or patch the program.
I wanted to see if I could combine this trick and GCC destructor (https://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Function-Attributes.html) to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66648308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Binding the validator for one control to another control's value in Angular Reactive Forms I'm quite familiar with Angular 1.6, just starting to learn Angular 5 and looking at reactive forms so apologies if this is a bit of a newbie question. Our applications have lots of complex validation rules and I can see how i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48870539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: make image from several uiviews with imageview How can I make one image of several uiviews that have an imageview on it, with the scale and everything, I already found some code to put one image to another:
- (UIImage *)addImage:(UIImage *)imageView toImage:(UIImage *)Birdie {
UIGraphicsBeginImageContext(imageVi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19767815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Specifying desired crs format of Geopandas object I use geopandas's to_file() method to read a shapefile into a geopandas object. The shapefile has a valid .prj file with a ESRI WKT style projection information:
PROJCS["Slovenia_1996_Slovene_National_Grid",GEOGCS["GCS_Slovenia 1996",DATUM["D_Slovenia_Geodetic_Datum_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42161889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: IQueryable doesn't allow ThenBy I'm trying to sort an IQueryable by multiple columns and many StackOverflow answers seem to indicate I should be able to do an OrderBy for the Primary sort and then a ThenBy for additional sorts. The OrderBy is fine but it's not allowing me to use ThenBy. It doesn't compile. I don't g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50182628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Exposing Just a Single Property Value from the Code I want to bind a single property from my datacontext and diplay on UI.
How can I display the property Address in a texblock?
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
public class Person : INot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30095192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is my function getting "character(0)" as output when it works step by step in the console My function returns "character(0)" and I can't work out why. If I do it step by step in the console the result is right but not when I execute the function.
The assigment I've got is the following:
Write a function called ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58104460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing the link for the ModelAdmin list view in Django to apply a default filter? I want to apply a default filter value on a field ModelAdmin in django.
I have a Model admin for the User model, which displays users. The user has a m2m to an Account model, so I am adding in the ModelAdmin:
class CustomUserAdmin(Us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67070494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get an element in a list at a specified index I need to write a program that return an element from a list, using a specified index.
We have a list of the English alphabet X = [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z]
Starting at 0, I have to return, for example, the number with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72294298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS a:hover image borders I have a bunch of linked images in a table, with some padding. When I try to add an img:hover or a:hover border attribute, when the border appears, everything moves over by the amount of pixels that the border is thick. Is there a way to stop this behavior?
A: img {
border: solid 10px ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4191651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I track incoming search keywords Does anyone know how I could track what search terms people are using to arrive at my site. For instance, someone searchs google for 'giant inflatable house' and clicks through to my site. I want to be able to capture those keywords and which search engine they came from.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3469893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Simple sql solution needed SELECT distinct denomination,
(SELECT count(com) from security where denomination = 200),
(SELECT count(com) from security where denomination = 50),
(SELECT count(com) from security where denomination = 1000),
(SELECT count(com) from security where denomination = 100) from security;
den... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20607581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to link Android Developer merchant account to an existing Google merchant checkout account I would like to know how can I link an Android Developer merchant account with an existing Google checkout account. During the creation of the Android Developer merchant account, I only see the option to create a new googl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6296943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Make the cursor disappear I have a fullscreen c# application and I want that the cursor won't be visible while the user is in the application. (Controlling the application is solely with the keyboard)
Any one knows how to do such a thing?
PS : I prefer that the cursor will be completely unusable rather than "invi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9433187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: UIRefreshControl not working inside Container View I've got ViewController, that has ContainerView with another ViewController and UITableView.
I am adding UIRefreshControl to tableView (inside Container) like this:
refreshControl.addTarget(self, action: #selector(SomeViewController.reloadData), for: .valueChanged)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42398546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rollup.js - have PostCSS process whole bundle.css instead of individual files from rollup-plugin-svelte I've tried several guides and many configurations, but can't get my rollup, postcss, and svelte bundle process to work quite right.
Right now the svelte plugin is extracting the css from my .svelte files and emitt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59792844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to send multple requests in an loop? I'm trying to make an automate project like send requests -> parse data - > connect to DB -> make a report via pandas.
I was almost done, but recently discovered a bug that my loop sends only the 1st method.
As you can see, I'm reading an .xml file and sending it as a body fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64914493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Marshaling structure with reference-type and value-type members inside a union bellow code is the marshling of a native win32 code.
but i get an error message
type load exception, can not load from assembly because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object fie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20951452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EXCEL: Search column for multiple strings, and give cell(s) of mismatch(es) I want to search into an entire column for mismatches (type-errors I made) compared to the available types I've defined. And in case there are any mismatches I want to have the cell of that mismatch displayed in the cell below.
So this is wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15311123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to decrease colorbar WIDTH in matplotlib? I have a plot I made in ipython notebook using two imported datasets & an array I made for the x-axis, but the colorbar is a bit thick for my liking. Is there any way to make it slimmer?
#import packages
import numpy as np #for importing u array
import matpl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33443334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Passing date to request param in Spring MVC I am new to Spring MVC - and I am trying to pass a date from my javascript as a request Param
My controller looks something like -
public @ResponseBody List<RecordDisplay> getRecords(
@RequestParam(value="userID") Long userID,
@RequestParam(value="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14766818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Use ScriptBlock as determination for Mandatory I was hoping that I could setup a cmdlet so that it would use an environment variable for a parameter value if it exists, or otherwise prompt.
function Test-Mandatory
{
[CmdletBinding()]
param(
[Parameter(Mandatory = { [string]::IsNullOrEmpty($Env:TEST_PARAM) })... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12623749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Custom Excel Ribbon background colors (like design with tables) I have used CustomUIEditor to make many excel ribbons. I haven't been able to figure out how to change the background color of custom tabs I make. I'd like to change the background color of my tabs so they are noticeable as custom. I'm thinking of the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34909870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Inserting rows into a table with a predefined identity I am transfering data from an old database to a new one, and I need to keep the ID from the old database when inserting them into the new database. However, it's not working.
This is my Query:
SET IDENTITY_INSERT RentalEase.dbo.tblTenant ON
INSERT INTO RentalEas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1435536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get absolute path from FileDialog? I'm creating FileDialog and trying to get a FilePath for FileDialog object.
FileDialog fd = new FileDialog(this, "Open", FileDialog.LOAD);
fd.setVisible(true);
String path = ?;
File f = new File(path);
In this codes, I need to get a absolute FilePath for using with File ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40674007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why is it bad practice to ask for full name in a form? In many many forms you see separate inputs for first and last name. I assume that asking for a users full name in one input is bad practice because you cannot rely on simply splitting the string by spaces to get the first and last names.
Now I think about it i'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45045018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Best way to add base class values to derived class? I have a reference file (dll) containing a class, which i use as my base class:
public class Group
{
public Group();
public int Id { get; set; }
public int League_Id { get; set; }
public string Name { get; set; }
public string Nationality { get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36132679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to compile this project into ARM architecture for iOS I am using this project as a library to develop iOS programs: http://github.com/chili-epfl/chilitags
After compiling this project by CMake, the architecture of this file is x86.
However, iPhone requires ARM architecture and this library cannot be run in real ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47159110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android emulator no toolbar I'm using Android Studio 2.2.2 but whenever I launch an emulator there's no toolbar and I can't resize it.
I want to be able to resize and show the toolbar like the image below:
How do I do this?
A: I think it is a unexpected problem, try new device to fix .
But you can set scale type w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40904029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL: list users with their phone numbers and email addresses I want to make a query in PostgreSQL which lists my users and their email addresses and phone numbers (separated by commas), like this:
| user1 | email1@mail.com, email2@mail.com | +3612123123, +3623234234 |
The tables are:
user - stores the user's data
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27859644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Process finished with exit code 133 (interrupted by signal 5: SIGTRAP) When I tried to run the last line of the code block, the IDE returns Process finished with exit code 133 (interrupted by signal 5: SIGTRAP). Any idea?
When I tried to load library(dplyr), it gives me the same error.
A: In case you installed R t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74325059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DJANGO, NGINX and WINDOWS SERVER I have deployed a django application using nginx.
These are the nginx configurations I configured.
**c:/nginx/sites-available/project_nginx.conf & c:/nginx/sites-enabled/project_nginx.conf
**
server {
listen 80;
server_name 192.168.xxx.xx;
location /static {
a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75590917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to add support for HLS in desktop Chrome/HTML5 player? Desktop Chrome and FF do not support HLS. I know there is a plugin available to add HLS support to flash. Is there such plugin or technique available to enhance HTML5 on browsers which dont have HLS support yet?
A: Not only it is possible, but it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32289662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Jquery International Telephone number input I am trying to follow jquery tutorial on http://www.jqueryscript.net/form/jQuery-International-Telephone-Input-With-Flags-Dial-Codes.html to create input type number with country code in a form. However, in my case though flag is appearing to change, the country code is no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28882944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Flickr: How to use flickr.photos.geo.getLocation in python or any language? I used the following code to get Latitude and Longitude in python in pycharm environment as
import flickr
api_key = u'xxxxx'
secret_api_key = u'xxxxxx'
photoID=8636126004
for photo in flickr.photos.geo.getLocation(api_key=api_key,photo_id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54994378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamic sorting with nullable column I am writing dynamic sorting with lambda expression as below:
string sortColumn = imageFilterType == 1 ? "CreatedDate" : "AbuseCount";
var paramExp = Expression.Parameter(typeof(Items), typeof(Items).ToString());
Expression propConvExp = Expression.Convert(Expression.Property(par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23211213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extremely slow WordPress user import on XAMPP I'm posting this question here because I'm not sure it's a WordPress issue.
I'm running XAMPP on my local system, with 512MB max headroom and a 2.5-hour php timeout. I'm importing about 11,000 records into the WordPress wp_user and wp_usermeta tables via a custom script.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11113481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: designing virtual methods I wonder under what circumstances you would choose the first or the second design :
First design : the child method have to call the base method
public abstract class Base
{
public virtual void Enable() { IsEnable = true; }
public virtual void Disable() { IsEnable = false; }
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2124934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the need or benefit to use an instance variable/function attribute to implement memoization vs passing down the memo in each call? In a lot of examples of memoization, I see it most commonly that people favor making a wrapper or decorator (or some language-dependent variation of this, such as using a higher-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49328260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Trigger python script on raspberry pi from a rails application I have a rails application, and when there is an update to one of the rows in my database, I want to run a python script which is on a raspberry pi (example: lights up a LED when a user is created). I'm using PostgreSQL and have looked into NOTIFY/LISTEN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32170818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Closing/tabbing between windows using Javascript or HTML I have a small query. Is it possible to switch between open windows using HTML or JavaScript, for example;
IE open with Intranet. Intranet has a button which when clicked it opens an already running application in this case Citrix Receiver. Basically minimizin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39727636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: error with base logout after extending LogoutListener class My target is to perform a logout from a controller being able to have base logout mechanism correctly performing.
After googling and stack-overflowing on some similar questions I have tried to implement an extension of class LogoutListener as suggested in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30700770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Zend storing data in session I'm new in Zend and php. For a project, i need to gather 3 ajax Zend Forms together. I know i need to use session to do that but i can't find any information about how to do that. Can someone help me ?
EDIT :
public function formResAction(){
$form = new Front_Form_ResPhone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23611355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Directx Texture interface to existing memory I'm writing a rendering app that communicates with an image processor as a sort of virtual camera, and I'm trying to figure out the fastest way to write the texture data from one process to the awaiting image buffer in the other.
Theoretically I think it should be possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15375692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python detect 'key up' event from the terminal I'm trying to write a python program to emulate a musical instrument. While the button is pressed down the note plays, when you take your finger off the button the sound automatically stops:
while buttonUp:
noteSilent()
if buttonDown:
notePlay()
From what I u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43187643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ol3 geometryFunction interaction.Draw add GPS point In a project i'm developing we are using the ol.interaction.Draw functionality to draw geometry. The geometryFunction we are using to add a GPS point to the geometry (linestring or polygon). This is accomplished by setting a boolean to add this GPS point. This bool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43871651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: tomcat to send SSL client certificate I am trying to do a https rest API call with a SSL certificate(PFX file) which have a password. I tested the connection from my desktop with SOAP UI and it is working fine.
I have a web application which is running on tomcat and I need my tomcat to send this certificate for all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64837270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error messages on Java code that has me make 2 calculator objects and perform operations on them Here's the main Java file:
class Main {
public static void main(String[] args) {
Calculator One = new Calculator(100,50,"Addition");
One.calculateNums();
One.showResults();
Calculator Two = new Calculato... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64739036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Navigation Bar Title Font Size I need to change the size of the Navigation Bar title text for one view controller in my iPhone app. I'm using iOS5, and tried the following code:
if ([self.tabBarItem respondsToSelector:@selector(setTitleTextAttributes:)]) {
NSLog(@"*** Support method(iOS 5): setTitleTextAttribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9621455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Set of bytes, what are the values of a and b program Project1;
var
a,b:set of byte;
c:set of byte;
i:integer;
begin
a:=[3];
b:=[2];
c:=(a+b)*(a-b);
FOR i:= 0 TO 5 DO
IF i IN c THEN write(i:2);
readln;
end.
Can someone please explain to me what is going on in this code. I know that c=3 but do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48272735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Silverstripe migration, index and other pages not found. Why? I recently migrated a silverstripe website from a server with apache2 to a new server with nginx. I followed these instructions: http://doc.silverstripe.org/framework/en/installation/nginx . I am using php5-fpm with tcp port (127.0.0.1:9000).
The problem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27178291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running Code View (assembly debugger) on Win7 x64 I am using Win7 x64.
In my class, we use Win XP x32 and write program in standard MS-DOS editor, and debug our programs with Code View.
But my problem is that I can't set it up home, because I can't run Code View on x64.
I two solutions. One is to change my OS to win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13534957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VBA refresh form I have a simple progress bar. I want to fill it when I make iteration through my loop, but I only see my form with 0 and 100 progress value, so it doesn't refresh during the loop. How can I achieve the runtime refreshment? Thank you!
Sub test()
UserForm1.Show (False)
DoEvents
For i = 1 To 700
F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62574964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are we seeing parquet write errors after switching to EMRFS consistent view? we have a large ETL process running on an EMR cluster that reads and writes large number of parquet files to into S3 buckets
Here is the code:
a = spark.read.parquet(path1)
a.registerTempTable('a')
b = spark.read.parquet(path2)
b.regist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54887932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Shidoku solver matlab code I'm trying to write a Shidoku ( smaller and easier 4x4 variant of Sudoku) solver code in MATLAB.
I have found some soduko solver (9x9) but i could't revise them to be suitable for my problem. For example:
% Solving Sudoku Using Recursive Backtracking
function X = sudoku(X)
% SUDOKU S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24016968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: printing a div using jQuery How do I just print the article on my web page using jQuery, article is inside a div
window.print() will print the entire window.
So little confused with that...!
A: Don't use jQuery ... use css and media=print. Here is an article for reference, and here.
Basically, create a new stylesh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5352081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keras LSTM + TensorFlow and a number sequence (improve loss) first of all, I'm running with the following setup:
*
*Running on windows 10
*Python 3.6.2
*TensorFlow 1.8.0
*Keras 2.1.6
I'm trying to predict, or at least guesstimate the following number sequence:
https://codepen.io/anon/pen/RJRPPx (limited to 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50707501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: angular2 / RxJS - how to retry from inside subscribe() this is my code:
this._api.getCompanies().subscribe(
res => this.companies = JSON.parse(res),
exception => {if(this._api.responseErrorProcess(exception)) { // in case this retured TRUE then I need to retry() } }
)
in case an exception happened, it will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40175255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: generic casting from object-boxed type Why does this work:
decimal dec = new Decimal(33);
double dd = (double) dec;
Console.WriteLine(dd);
But not this:
decimal dec = new Decimal(33);
object o = (object)dec;
double dd = (double) o;
Console.WriteLine(dd);
The second example throws:
System.InvalidCastException: Spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20146235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: extracting words from a sentence using indexOf and substring and storing them in an array in java Here is what I have so far for this part of my program;
String text = JOptionPane.showInputDialog("enter a sentence");
String newWord = "";
char space = '_';
int count = 0;
for(int i = 0; i < text.length(); i++)
{
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11461699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: IBM MQ transmission queue exclusive lock I have a WebSphere MQ Queue Manager with transmission queue defined and I'm using API to get some information about the queue. When trying to inquire the queue (using .NET interface, but I believe this is not important here), I always receive an exception with reason 2042: MQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4216165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: React change state of one component from another I need to change the state of my sidebar component from another component.
My code:
Sidebar.tsx >
const SideBar: React.FC = () => {
const [open, setOpen] = useState<boolean>(false);
function switchSidebar() {
setOpen(!open);
}
const bar = use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68182599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to animate (resize) a Linear layout loaded into listview on item click in android Hi i need to animate (resize height and width) a linear layout added into a Listview through adapter in android.
A: I'm not entirely sure as to what you want to do here. If im correct what your looking for is an expanded listview.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38694890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to translate whole words into morse-code with a dictionary? I'm writing a program that translates normal text to Morse code and I've written the core program that translates single letters to Morse code I still can't figure out how to translate whole words and text.
more clarification:
i can translate single le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48592334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Does Flask trim items? Within Flask and using Jinja2, I'm calling a datalist but for some reason any option with a space is trimmed so "tomato sauce" becomes "tomato". Is this something Flask is doing or have I messed up the templating?
<!-- HOMEPAGE -->
<form type="text" id="homeForm" class="centered" method="post... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62242154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ProxySQL between master/slave replication on flaky connection I have two MySQL servers with master/slave replication between them. The connection between them is ADSL. It is not reliable at all. I decided to add another ADSL connection from another ISP with its own IP address.
The problem is that when when one ADSL ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57436729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Aframe + Meteor - Add a conditional custom component to an entity <a-gltf-model id='playerone' {{#if myplayer playerone}}entitymove{{/if}} src="#myMixBun"> </a-gltf-model>
Using Aframe in Meteor, I want to add the custom component “entitymove” if the value of myplayer is “playerone”.
The value of {{myplayer}} is “p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56049613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: count frequency group by pandas I am trying to add a new column to a data below, in which columns Algorithm1,2 & 3 are derived from Text column. I want to count each element in the 3 columns and create new column to only have elements which have count > 1
df = pd.DataFrame({'T':['AAABBX','AAABBX','AAABBX'],
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73702026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to strip a txt file of multiple things? I am creating a function which reads data of a txt file, the text file is set up as one sentence per line. I have 6 requirements to strip the file of to make it usable later on in my program:
1. Make everything lowercase
2. Split the line into words
3. Remove all punctu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43309008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Use imagemin in Cloud Functions for Firebase I've got a cloud function for Firebase that triggers on a storage bucket write:
exports.convertToWebP = functions.storage.object().onChange(async event => {
const path = event.data.name;
const [pictureSlug, fileName] = path.split('/');
const [fileSlug, fileTyp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44318605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: chart.js / angular-chart line outside style issue I have a strange issue with angular-chart.js (which use chart.js).
If I set and block the min and max values for yAxis, when the line goes out of the limits the style is strange. Do you have an idea about what occurs ?
Here is the configuration for each 3 chart :
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33911876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get Current Path of Page in Middleman Layout File Is it possible to retrieve the current path of a page in a middleman file? For instance, if I have a layout file layout.erb with something like the following:
<%= page.path %>
<%= yield %>
and a test file index.html:
Testing
then when Middleman rendered the page I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10680971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Calculate average value between two cell phone recharges I have a cell phone recharge table which is as below.
In that at UserId,Date level I have particular user's Balance amount, the amount which he consumed at a particular day for voice communication and amount that was consumed for data (internet) usage.
Wheneve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55541810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to detect a scroll / wheel event only once in a certain period of time? Let's say I have a scroll/wheel event like this:
container.addEventListener("wheel", (e) => {
const isScrollingDown = Math.sign(e.wheelDeltaY);
// call some function once, don't listen for wheel event anymore
// then listen for event ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54052374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: insert in select in MySQL with JDBC I would like to have a value from a row inserted into an other row here is my code:
static void addVipMonth(String name) throws SQLException
{
Connection conn = (Connection) DriverManager.getConnection(url, user, pass);
PreparedStatement queryStatement = (PreparedStatemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20922966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Movable parameters in std::thread constructor (Visual C++ 2012) I run into problem with rvalue references in MSVC 2012.
#include <thread>
#include <string>
#include <future>
void foo(std::promise<std::string> &&prms) { /* some code */ }
int main() {
std::promise<std::string> prms;
// std::future<std::string> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14444638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TFS access issue when check in files I have a problem in TFS.
Actually, last time when we are working on ROM (my project name). We (john & me ) both had created a controller with same
name ROController.cs and we noticed this problem (same files Confilct), when we are checking files to TFS.
So, i deleted my file , an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27939489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node Outside of openshift cluster can't access pods inside cluster Note I have three nodes (A, B, C) whose ips are 172.18.143.115, 172.18.143.117, 172.18.143.124.
A and B are a openshift cluster using ovs-sdn as its network pulgin, pod network is 10.130.0.0/16, service ip range is 172.30.0.0/16. there is a pod P(10.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53735536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to perform a Join using Icriteria nhibernate I am developing an application in MVC3 using nhibernate to fire queries on database.
I have Two Models.
HobbyMasters
HObbyDetail
HobbyMaster class Contains:
HobbyId
and other details
HobbyDetail Class Contains:
HobbyDetaild
HobbyMasters hobbymaster
other detals
Now ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10285856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to extend the context object of a GraphQL call? I'm having the following GraphQL server call in a standard module:
export default () => {
return graphqlHTTP({
schema: schema,
graphiql: true,
pretty: true,
formatError: error => ({
message: error.message,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57914065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dataframe from complex data structure Say I need to have data stored as follows:
[[[{}][{}]]]
or a list of lists of two lists of dictionaries
where:
{}: dictionaries containing data from individual frames observing an event. (There are two observers/stations, hence two dictionaries.)
[{}][{}]: two lists of all the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40650913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Lock Cell based on the value of the another cell and perform data validation I am very new to VBA code. Now I was assigned to make a task that validate the data in an excel sheets.
For Example in my Column A, I have a drop down menu that enable the user to make a selection between "Yes" or "No" only.
*
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38142752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coding a guessing game in Jython Environment for Students ( JES ) I am trying to code a guessing game in JES using the pseudo code below:
Generate a random single digit number
Have the user guess the number
If the user does not guess correctly give them a clue – indicate whether the number is even or odd and ask t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39676166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix SSL error in Perl LWP? #!/usr/bin/perl
use strict;
use warnings;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new(
agent => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4',
ssl_opts => { verify_hostname => 0 }
);
my $respon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45552150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Keras LSTM layer output and the output of a numpy LSTM implementation are similar but not same with the same weights and Input I modeled a two layered LSTM Keras model then I compared the output of the first LSTM layer with my simple python implementation of the LSTM layer by feeding in the same weights and Inputs. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52026823",
"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.