text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Determining what action an NPC will take, when it is partially random but influenced by preferences? I want to make characters in a game perform actions that are partially random but also influenced by preferences. For instance, if a character feels angry they have a higher chance of yelling than telling a joke. S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2824143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: javascript function internal scope property What is the Difference in internal scope property assigned on function declaration and on entering the function execution context?
Definition:
[[Scope]] property is already written and stored in function object. [[Scope]] in contrast with Scope (Scope chain) is the propert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17509208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bluebird promises and async.forEach iteration This is my first time asking a question, so please bear with me. I'm trying to write a content scraper in node.js. My program will go to the landing page of the site, get the link to the next page and get the link for the next batch of pages. My problem is when I have to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40775738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using "this" in a jquery multiple selector Im trying to figure this one out, but no joy yet. For reasons that I cant go into here, I need to use both "this" and another selector to bind a click event.. Example
$('mySelector').each(function(){
$(this, this.siblings('img')).bind('click', function(e){
e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5731196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google Domain Shared Contacts API Using OAuth 2.0 for Server to Server Applications - Credential params I'm trying to get the "Google Domain Shared Contacts API" described here:
https://developers.google.com/admin-sdk/domain-shared-contacts/
Working using "OAuth 2.0 for Server to Server Applications" described here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23820185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Data Studio SYSTEM_ERROR Code 13 with SQL query SELECT user_leads.id,
first_name AS 'Nombres',
last_name AS 'Apellidos',
ip AS 'IP o número de telefono',
city ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65298036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple Actions (Forms) on one Page - How not to lose master data, after editing detail data? I've got a form where users can edit members of a group.
So they have the possibilty to add members or remove existing members. So the Url goes like
".../Group/Edit/4" Where 4 is the id of the group.
the view looks like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2551716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to properly continue tasks when a given parameter is different I'm facing tasks right now and I have doubts. After an email/pass registration, I had to update the user's profile. So I first tried this:
FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password);
.continueWithTask(new Continuat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40161374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check if it's null? I retrieve data from database like below. How do I check whether the value retrieved from database is null?
Private Function GetBatch() As DataSet
Dim dataset As New DataSet
Dim adapter As Data.SqlClient.SqlDataAdapter
Dim cn As New System.Data.SqlClient.SqlConnecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1453429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Concatenating char variables I tried making a small program using the libraries "iostream" and "String" to display a given string backwardly as the output on the command prompt. I used a recursive returning-value (string) function to perform the whole process of getting the given string in backward and returning it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57589468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL - Average Quarter-Hour Persons (AQH) In radio broadcasting there is a term called, "Average Quarter-Hour Persons" aka (AQH), which can be defined as...as the average number of persons listening to a particular station for at least five minutes during a 15-minute period.
I am not quite sure how to start this in S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52619204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Create a new column in excel with a condition I want to create a new column called Book in which I take data from a column called Exposure. If the value from the exposure column is 0, I want it to return 100, else I want to retain the same value.
This is what I've already tried:
df['Book'] = np.where(df['Exposure']... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56936842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Does it matter which algorithm you use for Multiple Imputation by Chained Equations (MICE) I have seen MICE implemented with different types of algorithms e.g. RandomForest or Stochastic Regression etc.
My question is that does it matter which type of algorithm i.e. does one perform the best? Is there any empirical ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68794697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set value of jtable column using setValueAt() I am trying to set the value of a jtable column using setValueAt() in netbeans and it is not working.
following is what i have set using 'customize code' option.
The columns showing null are of type boolean ie they can be checked and unchecked.
I want to read values from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15332585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Two classes inheriting from the same base to see each other I have a program with a lot of classes. I want classes in the program to be visible to each other. For that, I am following a trick such that all classes are inherited from a base class, which holds pointers to every class. But I hit an error in doing so. B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24874088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: wcf configuration maxStringContentLength does not seem to be working We're trying to send a large xml string to a service method in WCF and we're getting the error
The maximum string content length
quota (8192) has been exceeded while
reading XML data.
The error suggests increasing the maxstringcontentlength ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4834489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: find element that doesn't equal a string in xpath Need help in finding element that doesn't equal to a string, Here is my XML:
<collection >
<device>
<name>Test</name>
<dcs>
<dc>
<nodes>
<node>
<name>Host1</name>
</node>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32579643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MediaPlayer.OnCompletionListener and View.OnClickListener? I am currently trying:
extends Activity implements MediaPlayer.OnCompletionListener
extends Activity implements View.OnClickListener
at the same time and its not working or rather im not sure how to implement it...how would I go about doing this?
edit: m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5365323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: py2app and python 2.7 OSX 10.6 Does py2app work with python 2.7 on Snow Leopard?
I can't even get a 'hello world' to compile properly.
Here's what I'm doing...
My script is
print "Hello World"
and then from a terminal:
cd myFolder
py2applet --make-setup helloWorld.py myIcon.icns
python setup.py py2app
The build ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5969439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reverse Regular Expression Matching in Javascript I have a file that contains basic examples of input and output:
[Database.txt]
Hello*==Hello. How are you?
How*are*you*==I am fine I guess.
Can you*die*==I can not die. I am software.
I will get an input string that does not have punctuation.
Example: "can you ever ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29713343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Index was outside the bounds of the array This is my code where I am getting error "Index was outside the bounds of the array."
var objectData = new object[colRindas.Count, 4];
int i = 0;
foreach (DeArtIzm izm in colRindas)
{
objectData[i, 1] = izm.ArtCode;
objectData[i, 2] = izm.Ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10414499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Create plus symbol with background-color in CSS? I want to create plus symbol using CSS.
this is the final output need to be shown.
But the challenge is, to create this icon using,
*
*only use one div tag
*use before/after pseudo-elements
*can't use keyboard '+' icon as a base.
A:
#plus {
/* change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72755494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How can I obfuscate only com.foo.* but excluding com.foo.bar.*? (Proguard) I tried:
-keep class !com.foo.** { *; }
-keep class com.foo.bar.** { *; }
but it obfuscates classes other than com.foo.* (which I don't want)
I also tried:
-keep class !com.foo.**, com.foo.bar.** { *; }
and it fails to parse.
A: From your ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37848799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Video trimming on Android using MediaCodec, Media Extractor and Media Muxer In my Android App I need a solution when the user can trim a video from internal storage. I am trying to achieve this without using any third-party library. I was referencing this Google's Gallery App source code here. But I am getting the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58923605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there an ExecutorService implementation with queue limit and an option to replace old queue members with new ones? I need an ExecutorService implementation that can limit how many Runnables can be queued. I would also like to be able to control what happens when new runnables are submitted while the queue is alre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52109822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JPA/Hibernate using shared id and cascade=all tries to save child before parent, causing foreign key violation I am using JPA with hibernate. I have a 1-to-1 parent child relationship (the child is optional), with the id shared between the two and a foreign key relationship on the child table. My entities look like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23735217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Braintree for flutter web I have a broader question. Is there any possibility to use a brain tree for the flutter web? I was searching for an API on pub.dev but there was only one for Android & Ios, but not for Web.
If there is one do you have a link to an example project, I just don't seem to find anything about th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73166393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make an image fill the entire div on hover? I want an image to show up on the div when I hover it. The code I am using makes the image larger than the div, how can I contain it to the fill the size of the div and not leak?
Here is the CSS code:
img{
display: none;
max-height: 50vh;
}
.effect:hov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61415503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Efficient way to store form data? I have a web app that has a big and complex form (fields, checks, etc).
I hade using standard OS form controls because they have visual (styling) limits.
I have been basically creating spans with IDs and attaching class or custom data attributes. I later need to send this to a PHP s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11305151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prefetch all relationship instances without call .all() I prefetch_related my objects with the following code:
objs = wm.ModelA.objects.prefetch_related(
'ModelB__ModelC')
and i want to iterate all ModelB from all objs and i do it with the following way
for o in objs:
for t in o.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56732750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OPC Foundation Tree structure I've been searching the web, but I can't figure out how to get a tree view of the items on an OPC server. I used the following code:
using Opc.Da;
using Server=Opc.Da.Server;
using Factory=OpcCom.Factory;
string urlstring = string.Format("opcda://{0}/{1}/{{{2}}}", _hostName, _serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27527763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use ClamAV Antivirus in AWS EC2 for scanning S3 Bucket object when any file uploaded to s3 bucket? I need to run ClamAV antivirus in EC2 instance that can help me to scan a virus for s3 bucket object when any object being uploaded to s3. Is their any blog or way that i can use?
A: You can use S3 VirusScan, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67635408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with jsoncpp to automate outputing json data
I am trying to automate the process of outputing the broad disciplines of UC Berkeley's majors. I have shortened the code and the JSON data to make the issue clearer. It is stored in JSON format and I am using the jsoncpp api to work with the data. The json data ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47690839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Queue messages not being moved to the poison queue I have a job that imports files into a system. Everytime a file is imported, we create a blob in azure and we send a message with instructions to a queue so that the data is persisted in SQL accordingly. We do this using azure-webjobs and azure-webjobssdk.
We experi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41876364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to read long lines from child pocress' stdout in an efficient way? Note: This question has changed significantly since the first version, so some comments or answers could seem weird. Please, check the edit history if something seems weird.
I am launching a child process from a C# class library.
I am using Proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18715889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL doesn't always use a key with the same query I've got a table:
CREATE TABLE `myTable` (
`a` DECIMAL(8,3) NULL DEFAULT NULL,
`b` INT(11) NULL DEFAULT NULL,
`name` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`id` INT(11) NOT NULL AUTO_INCREMENT,
`plus` VARCHAR(100) NOT NULL DEFAULT 't' COLLATE 'utf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48083815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# model for nested properties I need to make API request to CloudFlare to purge cache of individual files.
Can someone please guide how to represent the below as C# model class.
files: [
"http://www.example.com/css/styles.css",
{
"url": "http://www.example.com/cat_picture.jpg",
"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48228041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Pass value from internal to external function - Cannot save password I try to hash passwords with crypto and I cannot save them in the database.
I have node.js 4.2.3 express 4.13.3, and my database is PostgreSQL 9.1. The field is character varying (255) and is named pswrd.
This is my code:
var tobi = new User({
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34458576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: file upload and download with servlet I want to write an simple java servlet which receives file upload from a simple html page, does something with the file and sends back the manipulated file to the user.
The file upload event is handled by doPost method of a servlet on the server side. The requirements is that "S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36667600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the importance of collections framework in java for the programming of android and how to benefit from it How to use true data structure in android programming I need good learning resources and examples of applying data structure in certain functions
A: The collections framework was designed to meet severa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48220411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: Numpy array to Pandas data frame formatting Sorry if this has already been answered somewhere!
I am trying to format an array in numpy to a data frame in pandas, which I have done like so:
# array
a = [[' ' '0' 'A' 'T' 'G']
['0' 0 0 0 0]
['G' 0 -3 -3 5]
['G' 0 -3 -6 2]
['A' 0 5 0 -3]
['A' 0 5 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60534935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java - Saving StringTokenizer into arrays for further processing in other methods I've been coding Perl and Python a lot and this time I got an assignment to code in Java instead. So I'm not too familiar with handling data in Java.
My task involves having a input file where I need to check dependencies and then outp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: change size of kendo window when pressing the "minimize" button I'm trying to change the width of a kendoui window when the "minimize" button is pushed. I'm new to kendo and coulnd't find the help in their docs.
Here's the code I've got:
HTML: <div id="recon_cont_div">Some data here</div>
var thewindow = $("#recon_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65100510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should "/users" and "/users/" point to the same (RESTful) resource? They do in this and probably any other website, but I'm not sure I understand why.
A popular analogy compares RESTful resources to files in the file system and filename users wouldn't point to the same object as filename users/ static web pages and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17948172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make Cocoa application respond to simple AppleScript command I am trying to add a trivial AppleScript support to a Cocoa application. The application performs a check periodically and I just want to be able to tell it to perform it on demand.
I am trying to follow the SimpleScriptingVerbs Apple example.
I have subcl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6004312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Cython print() outputs before C printf(), even when placed afterwards I'm trying to pick up Cython.
import counter
cdef public void increment():
counter.increment()
cdef public int get():
return counter.get()
cdef public void say(int times):
counter.say(times)
This is the "glue code" I'm using to cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42380030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to minimize amount of requests for Google API (places) autocomplete? I am using google API - places to autocomplete locations in AutoCompleteTextView. I did couple of tests maybe 20 searches and in my profile on google devs, it's written that I have made 200 API requests.
I understand that it is making request ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27916517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Import csv in Rapidminer is not loading data properly Importing csv in Rapidminer is not loading data properly in the attributes/ columns and returns errors.
I have set the parameter values correctly in the 'Data Import Wizard'.
Column Separation is set to comma and when I check the "Use Quotes" parameter I see th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35472446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Print what is not in a join table I have a join table created from 2 other tables.
Say one model is called cat, another is called request, and the join table is called catrequest (this table would have cat_id and request_id)
How would I print all of the cats not intersected in the join table i.e. all of the cats NOT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42353380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I parallelise a Python function that returns None with Ray? I have a function that takes in a filename and creates a symlink in a target directory if that filename exists in the "source" directory:
def _symlink_photos(photo_name: str, photos_dir: Path, target_dir: Path) -> None:
"""
Given a string, check... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71329511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DirectX 2D grid I have been trying to get a 2D grid going. It's for a game map.
Unfortunately, the grid is not as it should be. And I cannot figure out why.
Does anyone have an idea?
Imports Microsoft.DirectX
Imports Microsoft.DirectX.Direct3D
Public Class clsIsometric
'==================================
' SETTING... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18334043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What do you call an application that does not come with an installer? what you call a software that requires no installation only unzipping like eclipse where it has no installation only we have to unzip and also for uninstalling just delete the Workspace.
A: That's typically called a portable application.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/15516326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MomentJs giving NaN result I'm trying to count the days from current date to a certain date, and i'm using momentJs to do it, the problem is that it's giving me NaN result, maybe because of the date formatting!
I'm fetching the end date from an api, and it's in this format "DD MM YYYY" "16/12/2023" but in moment I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74213070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asp Core 3 - How to allow nullable [FromBody] object in controller method Let's say I have a simple controller with one POST method that accepts an object from its body. However, the presence of this object should be optional in the HTTP request body. I tried to implement this behavior with the following code
public... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61387180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: String that contains $1 I have a script that scrolls through all the folders of unzipped files and get information of the contents.
The problem is in the name of files such as:
filename="SearchView$10.smali"
Because if I want to get the stats the $1 in the string disappears,and I get the following error:
subpro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34006394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Only some Font Awesome glyphs display in WPF I am attempting to use Font Awesome in a WPF app. It half works. That is, some glyphs are picked up and show, others show a rectangle.
I'm following guides correctly, I think, but something is going wrong!
Here's a code snippet
<Window.Resources>
<FontFamily x:Key="F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68897905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Backbone: event lost in re-render I have super-View who is in charge of rendering sub-Views. When I re-render the super-View all the events in the sub-Views are lost.
This is an example:
var SubView = Backbone.View.extend({
events: {
"click": "click"
},
click: function(){
console.log( "c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12028835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: DocuSign field mandatory/not mandatory per REST request I have a question: is it possible to choose a field to be mandatory or not mandatory per DocuSign REST request when we are forming an envelope?
In some cases I need field to be mandatory, in other - not (or even not usable)
A: Yes, document tabs have parameter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72405612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PhantomJS driver is not clicking on element in page, but no errors thrown Lately I have faced on issue with latest phantomjs driver and selenium in java development, so issue is this , we have a web site with list of users where every line of user have a delete button which have js action onclick(). What we are tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41330007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to load a text file and store into data structure I have a 'text' file having content as follows:
012abc3cb7503bddef3ff59e0e52fd79.jpg 160.073318 18.588472 14.246923 8.054444 6.600504 6.261390 5.838249 4.447019 3.639888 3.357715 2.996645 2.910991 2.574769 2.527163 2.343448 2.264113 2.176161 2.088773 1.915582 1.9... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22234568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to display relation table in php? How to display relation table in php using oracle 11g with index format
this is my code:
$stid = oci_parse($conn, 'SELECT * FROM HOTEL');
oci_execute($stid);
while (($row = oci_fetch_array($stid, OCI_BOTH)) != false) {
$id_hotel = $row['ID_HOTEL'];
$nama = $row['NAMA_HO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40705873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble scraping email information from a website I wish to get persmission to use the images on www.confluence.org for an art project but i need to do that by going to each individual member and asking for thier permission. There is about 10,000 people on the site.
I want to use BeautifulSoup to scrape the site for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67936894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server get a JSON of all distinct columns grouped by a different column I have a table that looks like this:
What I want to do is convert it to a JSON that has all distinct years as keys, and an array of Make as value for each key. So based on the image, it would be something like this:
{ "1906": ["Reo", "Stude... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73912930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Array of InnerClass throwing java.lang.NoSuchFieldError I am trying to brushup java after a long time.
Any help is much appreciated.
For demonstration I have Animal Class that has an array of innerclass of Organs.
public class Animal
{
String nameOfAnimal;
Organs [] vitalOrgans = new Organs[3];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48931629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Mahout evaluation - unable to recommend in x cases I am trying to evaluate the recommender algorithms on my data set which probably is sparse, and I have only 341 items for around 20 000 users. I just want to evaluate all of the similarity algorithms. I tried almost all user-based recommendations, and for all of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17148591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to open Telegram desktop source in Qt? I'm trying to open the source of Telegram (desktop version) in Qt but I can't find any .pro file.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/45909301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alloc - add as accessoryView - release: does it leak? Does this leak memory? This code is executed in cellForRowAtIndexPath: outside the cell creation block (so each time the table cell is updated).
MyView *myView = [[MyView alloc] init];
// ... configuration code
cell.accessoryView = myView;
[myView release];
Or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7570783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to solve TypeError: The DTypes and do not have a common DType? I have a dataframe which I want to plot using stacked chart for all columns
date company1 company2 company3
0 2015-09-30 0.1729652326951854 5.10825384154414 5.28662587089132
1 2015-12-31 0.331777606131... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71611309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android CheckedTextView - Changing checked status on click I have a listview that needs to be multiple choice (i.e each list item has a checkbox which can be checked / unchecked)
The list view is in a tabhost and is the content for teh first tab.
My set up is like so:
My tab is set up with:
TabSpec tab = tabHost.new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3548406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to get data from foreign table in mongodb nodejs using $lookup I have just started working on mongodb and I want to get data from foreign table(User) and table(Connection) by performing join but foreign table data is always an empty array
User Schema:
[
{key: 1, name: "a"},
{key: 2, name: "b"},
{key: 1, name:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67244430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Message: cache_dir must be a directory Hello people I have some problems with Zend Framework. I first got the following message:
Message: Could not determine temp directory, please specify a cache_dir manually.
I searched google and found this post: Zend Framework : Could not determine temp directory, please specify... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16031456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SailsJS: delete parameters from URL before passing to blueprint We are building an application which uses SailsJS for backend and ExtJS for frontend. ExtJS automaitcally appends these parameters to every AJAX request coming from its grid:
_dc=1421519546371&page=1&start=0&limit=25
I need to remove these parameters on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28002923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Object Code vs. Machine Code Machine code is the Processor Specific Binary Representation of the Instructions that a program is translated into; lowest level instructions from the processor architecture's instruction set.
The operating system is the agent responsible for passing the (((Binary))) instructions to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24681357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: list in reverse order python How should I fix this code in order to get a list that is in the reverse order of sequence s?
def reverse(s):
"""Return a list that is the reverse of sequence s.
>>> reverse([1,2,3])
[3, 2, 1]
"""
rs = []
for element in s:
rs = s + rs
return rs
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48638951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Playground.js Not Rendering I went through the first two tutorials on the Playground.js website, but the rectangle is not rendering the rectangle. Here is the directory structure:
index.html
scripts
---main.js
---playground.js
index.html:
<!DOCTYPE html>
<html>
<head><title>Simple Game</title></head>
<body>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38445658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Srcset not working but shows alt tag message I am building a new website, and want to use the srcset to let the browser deside what image is the best for the current viewport.
What happens is that what ever i put in the srcset the browser will just show the alt tag text "test". If i through F12 developer tools remov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46387630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to manage orientation in landscape and portrait using fragment I create one example in Android 3.0 and I use the fragment in it. when I change the mode landscape to portrait or viseversa it give me the error as following but when I comment the fragment calling part it works smoothly as per my changes. for this I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6546531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: List contains method not working in JSF page I have two list that consist out of the same object.
I want to check if the first list containts an object of the second list
<ui:repeat var="item" value="#{userTypeController.permissionItems}">
<c:if test="#{userTypeController.permissionItemsUserType.contains(item)}"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8213393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redshift Spectrum with Very Wide Column I am using Redshift spectrum with a Glue database. I have some columns which exceed Redshift max text size (64k). Is there a way handle very large columns? Ie if I do it with a parquet does it let me go a bit bigger or is it unavailable with CSV?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/73993039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Discord.py How to get previous track in a queue I created a discord.py music bot with lavalink
Now I want to send and Embed with the Informations about the previous song when you use the ,previous command
i think its very improvised with the lyrics function to get the Thumbnail but thats not the problem
I just want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68929812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading file using Cordova File Plugin I'm using cordova file plugin - cordova file plugin
I'm actually reading the file from the textfile. Below is my code
document.addEventListener("deviceready", function () {
window.resolveLocalFileSystemURL(cordova.file.applicationDirectory + "sameple.txt", gotFile, fail);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45608080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: composer installation on wamp in window 7 OS I followed the steps in this website:
http://www.wikihow.com/Install-Laravel-Framework-in-Windows
But it's not working on the instructions. Step #11
It displays like this in the command window:
The "https"//packagist.org/packages.json" file could not be downloaded: php ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24859320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I capture a picture from webcam and send it via flask I want to send an Image object in a flask response but it gives me an error. I tried also an approach with StringIO.
image = Image.open("./static/img/test.jpg")
return send_file(image, mimetype='image/jpeg')
This is just a test case. So the major problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26915127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Change the Default Target Server for Entity Framework Code First Approach? I want to apply my code first migrations directly to SQL server or Azure Database instead of using the Default .sql server or Localdb/mssqllocaldb.. is there a way to do this from web.config and without editing code in context class?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/38212567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java graphics create an N by N board I have this question I haven't solved left in my assignment, "cmps200: introduction to java programming". This is what I wrote but it gives a blank panel:
import java.awt.*;
public class Board {
public static void main(String[] args){
int N= Integer.parseInt(args[0])... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29736210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i set mark parity? I want test my serial communication between my Arduino and my PC, i want do that because when i connect my arduino to my serial bus i didn´t receive some data.
I have connected my PC over rs232 to my Arduino mega and from the Arduino back to the PC. Now i want send a 9-bit byte to the Ardu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38301874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: pgrep -f command in ssh through script gives a wrong result. how to solve this issue When I am trying to use pgrep -f <proc_name> command in ssh through script gives a wrong result. How to solve this issue? (I used RSA key for not to ask p/w)
ssh -l $UNAME $HOST bash -c "'
pgrep -f name > p_id
'"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46866325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to create web service Api in rails 4? can anyone help me how to create a web service API in rails 4. I know how create web service API in ruby 1.8.7 and rails 2.3.5 with action web service gem. When I am trying to use https://github.com/datanoise/actionwebservice gem in rails 4, I am getting deprecated errors.I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32776399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the point of using custom exception class in php? In some libraries it is common practice to make custom Exception classes for every error condition, like:
class FileNotFound_Exception extends Exception {}
You can handle certain type of Exception, however you cannot read all source code of all libraries to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3735079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Rails 4: After updating an attribute post a message How do I go about posting or rendering a message after updating an attribute to reflect the changes?
(I couldn't find anything online in respect to this task)
For example: Once a user updates the ticket status there will be a message posted in the comment section r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39503422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reducing after filtering doesn't add up with jq I have the following data:
[
{
"name": "example-1",
"amount": 4
},
{
"name": "foo",
"amount": 42
},
{
"name": "example-2",
"amount": 6
}
]
I would like to filter objects with a .name containing "example" and reduce the .amount prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70342099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fetch Autosys Job status through API API is displaying all the attribute values of a job (like status, job name, instance, start time, etc).
I just want to know in post method how should i write the code so that it can fetch the status from api and display output.
url="http://some.api.com"
def get_job_status():
tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72882015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: WWW::Netflix::API program and hiding the consumer_secret key I've written a Perl CLI program that uses the WWW::Netflix::API module. It's finished and I'd like to release it but w/o exposing my consumer_secret key. Any ideas how this can be done?
A: I think you have two options:
*
*Make the end users obtain thei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4847582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP stops execution when calling external function When the following PHP script executes:
<?php
include "imageManager.php";
include "imageHandling/spritesheet.php";
include "updateWindow.php";
include_once "dbConnection.php";
class deleteSoftware{
private $conn;
private $tableName;
public function _... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29346389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to put recaptcha and submit in one line contact form 7 How to add these elements in one line:
[recaptcha] [submit "Send"]
So recaptcha will be on the left and submit button on the right
WordPress wraps each shortcode with div.
A: Give the fields class names in Contact Form 7:
<div class="clearfix">[recaptcha ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48470220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How Can I migrate magento 1.9 code to magento 2.3 I created a newsletter checkbox on magento 1,9 checkout and it work fine. There is the code :
app/design/frontend/default theme/default/template/persistent/ Checkout/onepage/billing.phtml
Newsletter : <input type="checkbox" name="billing[is_subscribed]" title="" valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55328612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento Product View Page: Add Layout Changes Depending on Product Search or Category Browsing Using Magento 1.7.0.2 CE, I would like to try to find a way to make XML layout changes to the Product View page, depending on if the product was searched in-site or found from the category view. Reason being, the custom ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17981514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linux Terminal Characters Show Up as Symbols Rather Than As Typed On Keyboard I am using Ocaml from a Linux terminal. Sometimes it gets stuck in a weird mode where it does not respond to my keyboard as expected. For example, if I press the arrows up, down, right, and left, it generates ^[[A^[[B^[[C^[[D in input. Alt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13372457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: While scraping the website through scrapy in python getting the following error:
Error: UnicodeEncodeError: 'charmap' codec can't encode character
u'\u201c' in position 0: character maps to
Code : # -- coding: utf-8 --
import scrapy
class Spider1Spider(scrapy.Spider):
name = 'spider_1'
allowed_domains... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50290783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mysql count columns I have a table for image gallery with four columns like:
foid | uid | pic1 | pic2 | pic3 | date |
-----------------------------------------------
104 | 5 | 1.jpg | 2.jpg | 3.jpg | 2010-01-01
105 | 14 | 8.jpg | | | 2009-04-08
106 | 48 | x.jpg | y.jpg | | 2010-08-09
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2764672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.