text stringlengths 15 59.8k | meta dict |
|---|---|
Q: C# Method overloading is calling the wrong method when using string args I'm trying to make a log plugin for myself and I want to have a method where I overload it with different parameters.
The key is, it needs to be possible to add multiple strings, which I will print on different lines. I like the idea of using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41945863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wordpress Custom Post Types add Taxonomies/SubTaxonomies to URL Hi StackOverflow Heroes -
I'm using CPT UI to manage my custom post types (that can change if needed). I'd like to be able to display posts within a custom post type in categories and subcategories in the URL.
Right now, if I create a post in my custo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44729280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change Firebase Public Facing Name How can I change the public-facing name? Let's say I want to use States as the public name, how can I change ...firebaseapp.com to States here?
Thanks!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/62867715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting the value of first array from the array In php I have an array look like this.
Array ( [0] =>
[1] => Array ([id] => 9 [slot] => 2 [name] => Test Ad [alt] => Test Ad [dimension_width] => 300 [dimension_height] => 400 [clicks] => 1 [start_date] => 06/07/2013 [end_date] => 07/07/2013 [status] => 1 [target] =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16996362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django char field with choices list So, I want to implement a char field with choices list. The idea is that it looks like a common char field but when you click on it and start typing something in, a dropdown menu pops up and you can choose something (also it sorts choices depending on what user types in). How do w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66323231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: where can i declare my custom functions in magento I want to declare some php functions and i would like to call those functions in various places in magento.Usually in my core php projects i'm declaring php functions in functions.php and i include that file in all pages.I'm not familiar with MVC structure.So where ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7710528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WordPress Plugin: How do I avoid "tight coupling"? I am working on a WordPress Plugin and am trying to ensure best practices. I have two classes, my plugin class "Jargonaut" which is required and then another class called "Dictionary" which is included with require_once() into my main plugin file.
Most of the code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8688738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: bootstrap Google Map not centering I am trying to center a Google Map API using bootstrap, but it is not working.
Please see the image regarding the issue.
The text is centering, but not the map.
![Map Issue Picture]:https://imgur.com/a/kql5OTK
I have tried every which way of putting 'text-center' in surrounding ele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57068204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Preventing a function call while another function is executing I have 2 functions. How can i stop executing SelectTD() function, when i am executing showAction() Function. Both functions are in different JS files. I tried with setting count but not working as expected. Can some one suggest me a better approach.
Scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52988189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: jqPlot doesn't display at all with Rails-added bootstrap footer I have a static page which displays a simple bar chart using jqplot, and when I throw that code into a Rails view it doesn't display anything.
*
*The javascript does get called, because if I toss an alert into the
showGraph() function it shows up on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14513884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: onPress() function of TouchableOpacity does not work at first if the keyboard is open I have used TouchableOpacity as my submit button, after filling the form(Login/Registration/...) when I click on submit button(TouchableOpacity), the keyboard hides (if open), and then I need to press again on submit button and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59985825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Pandas: How to set an index without sorting I have a df I wish to sort by two columns (say, by=['Cost','Producttype']) and set the index to be on a different column (df.what_if_cost.abs())
I am new to Python, so originally I sorted the df twice, where in the second time I kept the original index. It is too inefficie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65075248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retaining a comboBox within a grid I have a comboBox within a grid. Basically to get it I have to use findcontrol.
I am thinking of another option however. Within the init method I was planning on getting the value and storing it to a private static field:
private static RadComboBox theComboBox
Can someone please t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4307160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jenkins pipeline - function to remove properly a folder I need to implement a function in groovy (for a Jenkins pipeline) which will remove a specific folder into a linux server.
def remove_folder(String path_of_the_folder) {
sh "rm -rf <root_path>/${path_of_the_folder}"
}
It's pretty easy. But if the parameter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70985873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is Selenium InternetExplorerDriver Webdriver very slow in debug mode (visual studio 2010 and IE9) I'm using the example code from the SeleniumHq site - but in debug mode the performance is awful.
In release mode the entire test takes about 6 seconds (including launching and closing IE)
In Debug mode it takes 65 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8850211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to use sorl-thumbnail package together with django-tables2 package? I do have a table defined in tables.py that renders a column with recipes images.
class ImageColumn(Column):
def render(self, value):
return format_html(
'<img src="static/media/{url}" height="150px", width="150px">',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66508344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C - Problems copying string from one struct to a node I am trying to copy strings from a field in one struct to another struct (a node), so that I can ultimately create a hashtable. However, I seem to be having some issues in the actual string copying. I've created a for loop to iterate over the strings in the sourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39842792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: create Plist in .net from list of objects I am working on an iPad app that is fed data via web service returning JSON. Watching some iTunes U episodes, it looks like sending back Plist would save me a ton of time and speed up my app quite a bit on the parsing side of things.
Does anyone know of a .net library that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3223258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What version of Ruby is required for P4Ruby and where is P4Ruby installed? I am trying to set up Ruby and P4Ruby so I can use the p4replicate.rb script, but whenever I run the p4ruby18.exe (from the Perforce FTP) I get the following error:
Perforce P4Ruby API for Ruby 1.8 - InstallShield Wizard
There was a problem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7067925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get rid of link error in FreeGLUT MS Visual Studio project build with Cmake + Conan? Im trying build freeGLUT project with cmake and conan for MS Visual Studio, but when I build it return link error LNK1104 "Cant open file "freeglut.lib" for Release and "Cant open file "freeglutd.lib" for Debug.
Visual Studio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69197558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Manage multiple form inputs and it's value via React state Let me start with an example so you guys can know what is the issue and what I want to achieve.
In my project I'll have multiple user form on the same page and number of forms will be dynamic (depends on user number if there are 3 users then 3 forms, if 10 u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48124591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I avoid several instances of the same model object in iOS (MVC) I am working on a project in which I have a model that is used by several different views and thereby viewcontrollers. These viewcontrollers have no knowledge of each others' existence, nor do they have any relationship to each other. This means... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8929086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to codesign a shell script executable inside a Mac app bundle? I have an executable shell script under myApp.app/Contents/MacOS/. Our code-sign pipeline complains that the subcomponent (this script) is not signed.
How should I sign it? Our current pipeline has codesign --sign calls with hardcoded certificate nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30444447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Scrolling text in android EditText widget I have a single line EditText in android which displays a long line of text. Now, the requirement is that when I scroll to the end of line, and keeps on deleting characters using backspace, the text should keep scrolling horizontally as more space is now available.
After go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26381507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a better way of getting retrieving 'closeTime' , which is within a function I have a simple counter that starts when user clicks a button on the pop up and I store that value in openTime, when user closes the popup I store the current time in closeTime but due to closeTime being within a function, I'm not s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68026870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django Http404 returns status=200 When my application raises Http404 the status-code returned is 200, which I find odd.
It returns and renders my 404-template, so it should work, but the status-code is wrong.
Please find the views and urls-file below:
#views.py
from django.http import Http404
def test_404_view(requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68605933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need to know when a non-modal window has closed I have opened childwindow from parentWindow (non-modal) - what's the best approach to achieving a 'wait' so that parentWindow will know when childWindow has closed? For a couple of reasons I cannot use showDialog(). I have tried a while loop (testing the childWindow's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8910120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Icinga2 notification just once on state change I have set up icinga2 to monitor a few services with different intervals, so one service might be checked every 10 seconds. If it gives a critical error I will receive a notification, but I will receive it every 10 seconds if the error persists, or until I acknowledge i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50871100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cookie VS SessionState I need to store a site ID.
Currently I store the ID in a file on the site folder and cache the ID once the site is first accessed. For reasons I don't want to get into right now, I can no longer use this option.
I need to store the Id another way. I'm thinking either store it in a cookie or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9425850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: css swap images with sizing I have searched here, couldn't seem to find a solution. I know 'how' to essentially do mouseovers with jQuery if I use an actual "image" object, and have the image resized properly, I'm just trying to figure out if there is a way to do the same thing with CSS and use a specific class with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37094538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: angular2 material and date - how to get the currently selected date Dudes of angular2 material apparently did not want to show how to get the currently selected date...selectedChanged returns the last date.
<md-input-container>
<input mdInput [mdDatepicker]="picker" placeholder="Choose a date" [... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44856207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Parse a date from a complex string using python I have a number of strings that have different date formats in them. I would like to be able to extract the date from the string. For example:
*
*Today is August 2012. Tomorrow isn't
*Another day 12 August, another time
*12/08 is another format
*have another ? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14548285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How Can I Exit My Inplace-Editor AND Process the Button in Delphi? In my Delphi 2009 application, I have this window:
It has a TPageControl that has a TTabSheet on it as well as buttons at the bottom that operate on all sheets.
On the left of the TTabSheet is a TElXTree (a tree/grid component by LMD) and on the rig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6501417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Lisp function to return a number double and then the same number doubled plus one I am totally new to lisp and have no idea how I'll create this function.
This is the pseudo code I created to help me solve it
Binary tree children
; This function returns the children of binary tree node
; e.g., 3 -> (6,7)
; e.g., 11... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50956898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Rails precompile multiple javascript_includes_tag I'm actually building a new app under Rails 4.
I used to put my javascript_includes_tag at the bottom of my layout. But for an unknown reason, it creates a bug when trying to use confirm: on delete link.
So I put back this line at the top :
!!!
%html{ :lang => 'en' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18863884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento: Limit text field size in product custom attribute to 80 characters I have a problem by using the following tip from the magento forum:
Quote:
One option you could do is to add a backend model for this attribute.
In this model you could write your own beforeSave function that will
process the length ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30569680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: IIS is not loading .css files Hi I just started working with an IIS server for my AngularJS project.
So my problem is that my project loads angular, but not .css files, neither my own nor bootstraps.
I have looked at the big fat web, and I noticed that most solutions is to check static content in Windows features. H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33400895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ensure rotation takes the same amount of time regardless of angle to be rotated in Unity I hope somebody can help. I have a script that rotates a globe, over which a plane (which is stationary) flies from 1 country to another. This all works fine and is achieved with the following script
while (!DestinationReached... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62503214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Functions of jdbc Driver Why jdbc odbc driver written as jdbc.odbc.JdbcOdbcDriver or sun.jadbc.odbc.JdbcOdbc Driver?
In which file the name is stored?
eg.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
And What are the functions of jdbcodbc driver and odbc driver?
A:
Why jdbc odbc driver written as jdbc.odbc.J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21930501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I apply only one file or two classes from a Puppet Master server? Let us say that I have a case in which I need to apply only two files from a Puppet configuration on some production servers, without touching the rest of the configuration.
/opt/aservice/myfile/thekey.conf
/opt/myfile/thekey.salt
Let's also s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34167567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Button click requires double click or long-press on mobile I'm trying to click a button in a React app, and while it works on desktop, it does not work properly on mobile. I need to long-press or double-click, and play a little bit until the button finally works.
I have replicated my problem in this demo.
If you ope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66621855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to add my own classes in iReport when I change from Groovy to Java language? I'm working with iReport and JasperReports, when I began to do my report, iReport by default use Groovy, but I need to change to Java (constrains in my job), I make my report with Groovy and It's works perfectly but when I change to Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19122518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do unselected columns in a SQL Table slow down a query? For example, say I have columns A,B,C in Table X. If I use the query "Select A, B from X", would that query be any slower than if I delete column C and just do "Select * from X"
A: The performance of a query on a single table that selects all rows is pretty m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52656197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Offset size and overlay of plots in R I have two plots that I would like to overlay in a particular way. Instead of side by side like when using par(), I would like one to sit inside the other, but be about a quarter the size.
More details: one of my plots is a map, another is a scatterplot with colored quadrants. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21568300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to automatically add R^2 to a graph with facet wrap using ggplot2? I am trying to add R^2 values to each facet in a ggplot2 graph. This is the code I have so far and this is what the graph looks like currently.
ggplot(BB_new, aes(x=Date, y=pH, color=Treatment)) +
geom_point(pch=19, size=1,alpha = 1)+
geom_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73356573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: htc files: Why not to use them? I am developing a web application that aims to give a desktop feeling for the end user. That means I need a cross-browser feeling to the application (who doesn't? eheh).
So, I found about .htc files, for working around some IE tweaks (doesn't support border-radius yet, for example). M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4335622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Return indexes of xRange in Dygrpahs Is it possible to retrieve the indexes of the visible xRange in Dygraphs? xAxisRange() returns the value of the low end and high end. Something similar how highlightCallback returns a "row".
I'm using dygraphs 1.1.1
| {
"language": "en",
"url": "https://stackoverflow.com/questions/35184561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Print list from a dataframe based on another columns value I would like to slice the dataframe according to conditions. I want to keep the area name where the length of codes are 5 or 3.
The dataframeAreaCode is as bellowed
codes area
0 113 Leeds
2 115 Nottingham
3 116 Leicester
... ... ...
5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64897847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vue 3 Property '...' does not exist on type export default {
data() {
return {
isLoading: false
};
},
methods: {
async showMore(parentId) {
if (this.isLoading) return;
this.isLoading = true;
await this.someAction({ parentId });
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66435072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Integration Testing a rails API using devise_token_auth for authenticaton and cancancan for authorization using Rspec I have a rails-api application that I'm testing using Rspec. The Application uses devise_token_auth gem for authentication and cancancan gem for authorization.
devise_token_auth requires that the cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34751750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby on Rails - Scope of Instance Variables with Partial Views I do not understand how to use instance variable properly with partial
views, I am hoping someone here can enlighten me. For example:
class MainController < ApplicationController
def index
@item_list = Item.find_all_item
end
def detail_displa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/600498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Script to position chart misaligns when sheet isn't active? I have a script that essentially renders/updates an entire page, including two charts on it. These charts are positioned dynamically using the .top property. I write my scripts intentionally independent of the users currently selected sheet, so there is no ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74944204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: building PyMC3 model incorporating different measurements I am trying to incorporate different types and replicates of measurements into one model in PyMC3.
Consider the following model: P(t)=P0*exp(-kBt) where P(t), P0, and B are concentrations. k is a rate. We measure P(t) at different times and B once, all throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56186587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Many to many getting "is invalid" error in Rails I am trying to do a many-to-many relation but I get :roles=>[{:error=>:invalid}] when trying to save.
Models
class User < ApplicationRecord
has_many :user_roles, dependent: :destroy
has_many :roles, through: :user_roles
end
class Role < ApplicationRecord
has_ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52013287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: R: Data Quality Check: Zip Code matching the City Can someone help me to realize an idea in R?
I want to achieve, that when R gets an Input File with e.g. a list of companies and their address, it will check wether the zip Code fits to the City for each Company. I have a list of all cities and Zip codes from a certa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53740246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Drawbacks to nesting of child windows? Just for fun I'm developing a native Win32 port of Mozilla XUL. XUL allows to create complex nested structures of all kinds of layout boxes (hbox, vbox, grid, deck..). For my Windows implemenation it would be convenient to implement them as STATIC child windows. Because then I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1482584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create VectorDrawable from String (path)? Is there a way to get SVG path string from the API and create VectorDrawable dynamically?
I have been trying to do this for hours without success. Even more, all (!) examples on the Internet explain creating VectorDrawable from XML resources.
In my case, XML resource file i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33312157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Ionic Cordova Device UUID Hi i am developing a hybrid app using the Ionic framework and Cordova. I am looking to use the device uuid as an ID so i have added the cordova device plugin. Additionally i am using the NG-Cordova wrapper for calling my cordova plugins. However whenever i run my app in the xcode Simulator ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27313689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Docker Remote API to login to registry I am looking for documentation for docker login, I need to login to a registry to pull docker image and I need to do it remotely using docker remote APIs.
But unfortunately I am unable to find docker remote API docs, any help would be greatly appreciated.
API doc :
https://docs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39109712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Nginx conditional rewrite I am trying to redirect domain1.com to domain2.com based on http/https.
*
*So a request to http://domain1.com will go to http://domain2.com.
*Request to https://domain1.com goes to https://domain2.com
My current Nginx vhost file setup as:
server {
listen 80;
listen 443 ssl;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26396066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python: all index of list greater than x data = [10, 90, 20, 80, 30, 40, 70, 60]
A_list=[A,B,C,D,E,F,G,H]
How do I find all the values in data that are above 50.
Next how do I print so that it displays
B:90
D:80
H:60
G:70
Also I haven't used enumerate yet.
A: If you just want to print all the values higher then ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30149084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: rails multiple belongs_to assignments with nested attributes My problem is that how to assign multiple belongs_to associations with nested attributes?
I want to build a issue system. When I create a issue, I also want to create the first comment as the issue body.
So, I have following Models:
class Issue < ActiveRec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27505297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: htaccess not get index file after rewrite rule My htaccess is this :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([0-9a-zA-Z-]+)?$ show.php?id=$1 [L]
</IfModule>
So whenever browser get 'any thing' after root folder then it will go show.php and parameter will be 'any thing' .
Note: it will not effect i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21060467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Winform app GUI is not showing run as scheduled task using .BAT file I have created a winform app for sending bulk emails. I have scheduled this app using a .BAT file. The app is running as per the schedule and sending emails, but it is not showing the GUI.
When I search I found this link Winforms app as Schedul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15360456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ImageView on top of another imageview in Android I am having a navigation drawer (sliding menu) with header set in my app. I am trying out the following for the headerView.xml
I am setting a background image to the relativeLayout from a particular URL. Instead I would like to have ImageView like below:
By doing thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25697042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Real time video player to embed in an Android app I need a library that supports real time video streaming from an RTSP connection to embed in an Android application I've built. It must have a really low latency (1-2s should be fine). I've already tried with a simple VideoView. It works but it has a HUGE latency (mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57760821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does the JVM JIT generate syscall instructions? I am wondering how does Java code make a syscall, does the JIT compiler generate syscall instructions directly, or that it just put calls to libc functions (or other basic library functions)?
A: The Hotspot JVM generates machine code for Java code (which doesn't suppo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53690811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reading a file with Rust - borrowed value only lives until here I have a function that should read a file and returns it's contents.
fn read (file_name: &str) -> &str {
let mut f = File::open(file_name)
.expect(&format!("file not found: {}", file_name));
let mut contents = String::new();
f.rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51179353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ffmpeg -r option I am trying to use ffmpeg (under linux) to add a small title to a video. So, I use:
ffmpeg -i hk.avi -r 30000/1001 -metadata title="SOF" hk_titled.avi
The addition of title seems to work, but, the problem is the output file is about a 1/3rd of the file size of the input file and I was wondering why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10972569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Slice a list into batches based on byte size Haven't found a similar question
I want to slice an array into smaller batches based on byte size limit. This is my implementation which is a little slow. In particular I want to know if there is a build-in functionality that can get me this, or maybe I can enhance my app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61083035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: libcurl fails (response code 0 - host not found) in program (built with MinGW) if using bundled libcurl-4.dll I've ported an application over to windows using MinGW and want to distribute it with all the dlls it needs to run.
The app requires libcurl for some ssl (https) requests it makes.
To distribute it I copied ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61670389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MPMoviePlayer loading the video but never enters readyToPlay state I have been trying to get a video to play using MPMoviePlayerController for about a week with very little success! I have finally got it to the stage where it loads the video (or at least I presume it does as it can tell me the video duration).
Howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14199159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python equivalent of Go Struct and Unmarshal So I'm working with some JSON data in Python. Its basically a wrapper for an API though I want to have dot access to my values like data.size, I've done a bit of research but I couldn't find the desired results.
I was using json.loads to parse my data so I tried object ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69415144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Image resizing script is not returning a proper stream for further handling Current project:
*
*ASP.NET 4.5.2
*MVC 5
I am trying to leverage the TinyPNG API, and if I just pipe the image over to it, it works great. However, since the majority of users will be on a mobile device, and these produce images at a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40368651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: d3.js gantt chart issue var taskTypes = ["slot1", "slot2", "slot3","slot4","slot1","slot2","slot6"];
when
var y = d3.scale.ordinal()
.domain(taskTypes)
.rangeRoundBands([ 0, height - margin.top - margin.bottom ], .1);
I was doing
var rectTransform = function(d) {
return "translate(" + x(d.termStartDat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30077125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to display an base64 string into an image using javascript I am trying to display an base 64 string into image in html page ...
It showing some error...error look like
here is my code
$(document).ready(function() {
var username="srk";
var url = "http://localhost/login/image/displ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41663134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: lag entire rows by zoo object in r Consider the following:
library(dplyr)
library(zoo)
df <- structure(list(FILIAL_CODE = c(10L, 10L, 10L, 10L, 10L, 10L),
UNIDADES = c(26394, 24314, 26280, 25056, 28827, 24781), MES_ZOO = structure(c(2010,
2010.08333333333, 2010.16666666667, 2010.25, 2010.33333333333,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32234702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PyTorch attach extra connection when building model I have the following Resnet prototype on Pytorch:
Resnet_Classifier(
(activation): ReLU()
(model): Sequential(
(0): Res_Block(
(mod): Sequential(
(0): Conv1d(1, 200, kernel_size=(5,), stride=(1,), padding=same)
(1): ReLU()
(2):... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69427862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Start ssh using systemctl inside the docker container I' m a beginner in the Docker;
I have pulled a CentOS 7 image from Hub and ran it ;
I need to ssh in to the docker container(CentOS 7) from my host.
Got the docker container's IP using docker inspect container-id
I have installed the following using
initscri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47506171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Javascript (Node.js) - How to read and process multiple line provided as an input to a function? I am practicing to code in various languages and hence, am a newbie to node.js. The site I am using to practice the code mostly gives me multi-line inputs as an argument to my function, which I don't know how to process ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46762894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MongoDB Nested OR/AND Where? I am trying to figure out how to do nested OR/AND where queries like what you would do in MySQL
Take for example
SELECT
first_name,
id
FROM
table
WHERE
(
province = "nb" OR
province = "on"
) AND (
city = "toronto" AND
first_name = "steven"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23118434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Angular 11 won't upload file to .NET 5 I'm not able to get a file from my Angular 11 application uploaded to my .NET 5 service. If I set a breakpoint at the first line of the controller method it's not hit. The angular app just gets an HttpErrorResponse with a status of 0. I'm able to POST without issue to other me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67235372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MSSQL Why is this function non-deterministic I have this user function, which is always flagged as non-deterministic, although the value will always be the same as long as the input parameter is the same. Everything I've read suggests this should be deterministic.
Can anybody spot why?
SET ANSI_NULLS ON
GO
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49175741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I iterate through each column of data in a LINQ to SQL query? Imagine my LINQ to SQL query is this:
var query = (from q in db.GetTable<potato>()
where q.ID == dbID
select q).FirstOrDefault();
How would I iterate horizontally instead of vertically?. So there's just the one row, I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32295855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get modifiers on windows platform Anyone knows how to get modifier on Windows platform?
I know there is a function called GetKeyState(), but I could not get windows or meta key with it. Its document is here..
Any advices will apperciate.
Thx
A: The Windows key is covered by VK_LWIN and VK_RWIN, respectively the lef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23864878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Parse Error - Unexpected End of File I'm a complete newbie to programming and php, my code's throwing back an error saying there's an unexpected end to the file and I can't for the life of me see what's missing or there that shouldn't be. Can anyone spot it?
<html>
<head>
<title><?php echo $firstname; ?> <?p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26447745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there a better way to implement this memory management? This is a follow-up to my previous question regarding exceptions.
I have some legacy code that I am attempting to maintain. It has a custom memory management component that I am having difficulty understanding.
My understanding of the system is as follows:
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8352151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RxJava2: onErrorResumeNext not intercepting 400 response code I have below code for error handling. My issue is that when server sends a 400 error code the onErrorResumeNext is not being called. Is this expected? I thought onErrorResumeNext would be called when server sends a non 200 code(200-300).
public Single a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53035441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Joins and Output format Can any one help me with the below sql?
**Table A**
Id Seq First_Name Last_Name
1 1 John Walter
1 2 Michael Jordan
1 3 Sally May
I want my output to look something like below where for a given Id, for each sequence number, I want to get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8571197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ write a function to print all divisors of a float So I have been trying to write this function and implement it without luck. The function has to be written as void divisor (float x ) and it will ask a user for a int number and run until the user inputs a value of 0 . I get a few errors one which concerns me th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65956227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Fluentd : Is there a way to add multiple tags in single match block I have multiple source with different tags.
Im trying to add multiple tags inside single match block like this.
<source>
@type tail
@label @TESTLABEL
path /var/log/containers/app-one-*.log
pos_file /var/log/app-one.log.pos
tag app.one
<p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68466083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: testcase failed when getting variable output from bot using botium box I am using botium-box. I have the following convo file:
Here the date is a variable and changes everyday so I have to change it everyday in convo file otherwise the testcase is failing.
I have tried few solutions:
*
*setting SCRIPTING_ENABLE_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54630859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write the jquery for the following I am new to jquery I want to hide a particular division when a particular element a drop downlist is selected, I also want to increase the size of the adjasent column when the particular is hidden
$(function() {
$('#d1').change(function() {
$('#group3').hide(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50739752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to write a test method for createNewToken Method? I am new to this Mockito J-Unit Testing and I want to test my createNewToken()-Method but I cant understand the logic of it.
This is my method:
public String createNewToken(String usertoken) {
WebToken oldToken = getTokenByUserToken(usertoken);
if (!Asser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50016601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set Windows Forms Application (C++) to have an Aero/Glass background? I am working on creating a Windows Forms Application in C++ using Visual Studio 2010 Pro. I wanted to create a transparent background, that is, using the Aero Glass effect, similar to the way it surrounds the bottom of the UI in Windows Pho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6785733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to solve team provision issue without giving someone login information? Sometimes, other team members receive certificates and provision files from me.
And it is finely installed but, 'team ID' warning is shown sometime.
When they login to ADC account in xcode (by clicking 'fix issue' button on xcode) it is solv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35220478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: convert the image value array into x/y coordinates I want to find the x/y coordinate of the edge after using canny edge detection with openCV
import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
img = cv.imread('star.png',0)
edges = cv.Canny(img,100,200)
plt.subplot(121),plt.imshow(img,cmap = 'gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69096680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ms-access Combo Populate For some reason my Combo box will not populate a text box field, i have done this on previous forms and even have working in different fields on this very form, but i cannot seem to get it to populate one text box. here is a picture to show what is happening, as well as the code. in theory i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51322286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inserting Javascript based on Ruby If Statement I am trying to trigger a bootstrap modal based on conditions about the current user. Essentially, to do anything in the page the user is accessing, they need to have created a hotel in the system. If they haven't, I want a modal to pop up with the creation form. Cur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12303140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asp.net MVC5 async action result executed, but response not sent till web server shutdown I have an async action, which is supposed to return a JSON message to the browser after awaiting some task. Though the ActionResult is built and executed successfully(I'm using my own JsonResult, so I confirmed this by stepping... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20428899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.