text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Mock assert function called before exception is thrown
I am trying to unit test some code using Mock. I would like to raise an exception, and test that the exception is caught and another function is called before it is re-raised
except exception as e:
car.create_log(car_details)
raise e
The unit test:
car = C... | common-pile/stackexchange_filtered |
Expo creates build with wrong version code
I'm trying to deploy a new version of my app on Google Store, but expo creates the build with the same version code.
I incremented the versionCode from 1 to 2.
"android": {
"package": "some-package",
"versionCode": 2,
"adaptiveIcon": {
"foregroundImage": "./assets/ap... | common-pile/stackexchange_filtered |
How can I get string as input to Bigrams in nltk
I am new to nltk and I am using python.
I am taking string as input to Bigrams. When I am showing the items of this. I am getting each character as a word.
import nltk
string = "Batman Superman"
bigram = nltk.bigrams(string)
print bigram.item()
[('B','a'),('a',... | common-pile/stackexchange_filtered |
php , simple_html_dom.php, get selected option
I have a html block like this :
$localurl = '
<select name="cCountry" id="cCountry" style="width:200" tabindex="5">
<option value="251">Ascension Island</option>
<option selected="selected" value="14">Australia</option>
<option value="13">Austria</option>
';
I'm tryi... | common-pile/stackexchange_filtered |
Android ImageView should be larger than screen
I have an Image that is 1500x2048
I want this to display at its native resolution, I will be handling zooming/scaling and transformation via android's animation functions.
Currently just using the ImageView by default it forces my image to fix within the screen size. I h... | common-pile/stackexchange_filtered |
Opening files within archives from vim
I know that vim can open files within zip or tar{,.gz} archives interactively: open the archive first, then navigate to the correct entry and press enter.
lesspipe (https://github.com/wofr06/lesspipe) (which is a preprocessor for less) provides the additional convenience of allowi... | common-pile/stackexchange_filtered |
Do I need two replicating NAS devices for a trustworthy storage?
I want to implement NAS solution for home usage, to keep data I care about. NAS offers RAID against disk failure, but what if the NAS box itself fails? Do I need two replicating NAS devices for a trustworthy storage? The amount of data is few Tb in size a... | common-pile/stackexchange_filtered |
Can't parse a String into Date with a device while everywhere else it's ok
Here is my method:
func dateFromString(dateString: String) -> NSDate? {
let dateFormatter = NSDateFormatter()
dateFormatter.timeZone = NSTimeZone(abbreviation: "GMT+01")
dateFormatter.dateFormat = "M/d/yyyy hh:mma"
return dateFo... | common-pile/stackexchange_filtered |
Running multiple Applescripts in order in Automator
I am trying to automate this process.
step 1: change system date to a specific date.
step 2: open an application.
step 3: change system date back to normal.
Now on Automator, I have three apple scripts placed like this.
on run {input, parameters}
tell application "T... | common-pile/stackexchange_filtered |
Unable to create new session id when we run 2 or more than project
When we run 2-3 projects on same browser, we are getting same session id. I need to know that how to create a new session id for other's project(including it's tab). So old projects(with it's tab) and new projects (with it's tab) have different session ... | common-pile/stackexchange_filtered |
Stopping a class variable from re-initializing when called again?
So here is some example code
class hi(object)
def __init__(self):
self.answer = 'hi'
def change(self):
self.answer ='bye'
print self.answer
def printer(self):
print self.answer
class goodbye(object):
... | common-pile/stackexchange_filtered |
Search table using textbox and drop-down list to filter database (Real-Time Search)
I have a problem in filtering the database, I have this code but it doesn't show the filtered database after I clicked the submit button search.
<form method="POST" action="client.php">
<div id="Search" style="display:none">
<h4>S... | common-pile/stackexchange_filtered |
Git failed to check out font file
I was trying to clone a web application project to my windows 7.
However I got some error messages:
error: unable to create file assets/cashback/fonts/Helvetica Neue LT Std\HelveticaNeueLTStd-Bd.otf (No such file or directory)
error: unable to create file assets/cashback/fonts/Helvetic... | common-pile/stackexchange_filtered |
listing of method names and signature defined in a nodejs module
Let's say in my module X1, I have the following functions. Similary in other modules, other functions are defined. I want to list down all of them.
module.exports.getX1Details
module.exports.getX1Availability
module.exports.getX1Price
What is the best wa... | common-pile/stackexchange_filtered |
Do I need an International Driving Permit as German tourist in New Jersey
According to both the Hertz Rental Car agency at Newark Airport and a call to the NJ MVC I do need an international driving permit in addition to my German license when driving in New Jersey. However, according to two local tourist agencies in G... | common-pile/stackexchange_filtered |
How to build a project under the src directory of Qt?
I found a .pro file 5.12.1\Src\qtbase\src\plugins\platforms\windows\windows.pro and opened it in Qt Creator. After configuring a MingW kit, I tried to build the project. But I got this error;
error: vulkan/vulkan.h: No such file or directory
#include <vulkan/vul... | common-pile/stackexchange_filtered |
Query Lookup Relationship With SOQL Not Working
I have a SalesForce custom object named Loan__c which has a Lookup field called LoanLead__c and I'm trying to query that relationship with SOQL but I'm getting an error when I run the query SELECT Id, (SELECT Id FROM LoanLeads__r) FROM Loan__c on the object in the develop... | common-pile/stackexchange_filtered |
Insert hero image into a section
I would like to append a hero image into an HTML section. But the problem is this image doesn't take the whole page as intended when it is wrapped into a section.
For exemple
<div id="home">
<div class="text-vcenter">
<h1>Reunion Qualité</h1>
<h2>Meeting Manag... | common-pile/stackexchange_filtered |
plugin:vite:import-analysis - Failed to parse source for import analysis because the content contains invalid JS syntax. - Vue 3
I've updated my project from Vite 2.x to Vite 3.0.2 and suddenly i got this error:
[plugin:vite:import-analysis] Failed to parse source for import
analysis because the content contains inval... | common-pile/stackexchange_filtered |
Plotting probability on horizontal greyscale graph from single variable
I want to create horizontal stack graph like below
Arr1, Arr2, Arr3, Arr4 are in range 0-1 and length is about 50000 each.
Short Example of length 10:
Array
1
2
3
4
5
6
7
8
9
10
Arr1
0.1
0.1
0.1
0.2
0.2
0.2
0.7
0.7
0.4
0.7
Arr2
0.6
0.6
0.... | common-pile/stackexchange_filtered |
search and delete a shortcut
the project i am working on has to run on the windows startup i found the code, but what if the user don't wan't it to start on the startup!, do i have to tell the user to search for the sortcut and delete it, or simply make a button for that option, i know how to delete the file like this:... | common-pile/stackexchange_filtered |
Unnecessary extra margins on a multiple traces plotly chart
I am building a Plotly chart with two traces. And for some reason by default I am getting some extra space/margin between my data bars and Y axis. Here
How to get rid of that extra space?
If I keep only one trace, it is just fine, the bars start right from th... | common-pile/stackexchange_filtered |
Order of placing clauses in a two-clause sentence
Which of the following is correct:
If you so desire, you may download the content.
You may download the content, if you so desire.
Apparently, they appear to be all same but, on critically examining the sentences, I find an issue with the first sentence. The issue... | common-pile/stackexchange_filtered |
Why configure bridge in hostapd.conf
In a lot of hostapd documentation (is there a single comprehensive one that covers all options?) I read that it is necessary to configure the bridge to which the wireless interface belongs to, using the hostapd bridge directive instead of adding them the way you would usually config... | common-pile/stackexchange_filtered |
MapStruct using default constructor over parameterised constructor of Kotlin data class(error: constructor in class cannot be applied to given types)
In my Micronaut Kotlin project I have two repositories. I am using MapStruct in both of them.
Source Class
@JsonInclude
data class Source(
var id: String,
var no: String... | common-pile/stackexchange_filtered |
Is mocking an essential part of unit testing?
I have a web service which calls a third party web service.
Now I want to unit-test my web service. For this, should I mock the third party web service or is it fine to call it during the tests?
Is there any standard document on unit testing?
You are trying to unit your co... | common-pile/stackexchange_filtered |
How do I get the values of a nipple.js joystick
I'm having 2 joysticks and want to get their position and size properties with JS. The official documentation s hard for me to understand, because it is very very theoretical and has no practical examples.
I tried using the console to get the properties by checking the va... | common-pile/stackexchange_filtered |
using std::stringstream as a the text that gets thrown as runtime error
So basically, I am checking if a window is created in SDL and if not a runtime error is thrown. The following was suggested to me by someone in code review.
if (!windowCreated())
{
std::stringstream buffer;
buffer << "Could not intialize SD... | common-pile/stackexchange_filtered |
ListView highlight item isn't shown
I'm trying to highlight the currently selected item in a ListView. Below is the code I'm using; for some reason, while a similar code works perfectly in another ListView of this application, here the SelectedRectangle item is never displayed, althought the selected item changes when ... | common-pile/stackexchange_filtered |
Creating an object for a form in React / Typescript
I'm wanting to create a form that will be used for both editing and creating a new object.
So if let's say I have,
interface IDog {
name: string
type: string
}
interface IDogForm {
dog: IDog
}
const DogForm = (props: IDogForm) => {
const { dog } = props
co... | common-pile/stackexchange_filtered |
how to set the name attribute for dymamically created div?..in jquery
I created a div dynamically whenever I clicking the "Add More" button. This is how I created my div, showing below:
<div id="row-template">
<div class="cell" >
<input type="text" value="" class="part-number"/>
</div>
... | common-pile/stackexchange_filtered |
Multiple $sum in $group in MongoDB
Given this MongoDB collection:
[
{ client: 'client1', type: 'Defect', time: 5 },
{ client: 'client1', type: 'Test', time: 5 },
{ client: 'client2', type: 'Management', time: 3 },
{ client: 'client2', type: 'Defect', time: 3 },
{ client: 'client3', type: 'Test', time:... | common-pile/stackexchange_filtered |
Foreign key constraint @ManyToMany relationship preventing deletion
I've three associated records (Conference, SubmissionRecord, SubmissionAuthorRecord). Every SubmissionRecord has a Conference object and has a List<SubmissionAuthorRecord>.
When I delete a Conference record if the SubmissionRecord is associated with th... | common-pile/stackexchange_filtered |
async / await best way on REST API Ruby on Rails
I've a question because I'm a noob in Ruby but I need to develop an API.
I ask you to understand better how to implement the async/await. For example here :
members_controller.rb
#GET /members
# Get all the members
def index
begin
render json: Member.get_all_memb... | common-pile/stackexchange_filtered |
Clustering with cluster size/mass constraint
I'm rather new to this field and maybe even using a bit naive terminology.
So I need to classify (cluster) some objects, but limiting each cluster in size, so for each cluster $C_i$,
$$\sum_{o \in C_i} m(o) \leq N$$
where $m(\cdot)$ is a some norm-like function.
In case the... | common-pile/stackexchange_filtered |
Look at these cesium measurements again - the ratio of hyperfine constants between the two isotopes doesn't match what we'd expect from just their nuclear magnetic moments.
The deviation is only about 0.03%, but that's way beyond our measurement uncertainty. Something's affecting the s-electrons differently in each is... | sci-datasets/scilogues |
How do I get Post Object data form Wordpress ACF - Flexible Content field
Using Advanced custom field plugin I have a custom post type that has various custom fields assigned to it.
I'm trying to output all of the data that is contained in the flexible content field "content"
I have it outputting "text_ad" ok but for s... | common-pile/stackexchange_filtered |
How do I ignore a System.Data.SqlClient.SqlException: String or binary data would be truncated. exception
I know that my data is too large and that is why I am getting the exception. However, this seems more like a warning to me. Is there a property in the SQLCommand that I can set that would have this just be a warnin... | common-pile/stackexchange_filtered |
backbone/underscore template in mustache format causing error on # pound/hash symbol?
I'm using backbone's underscore templating engine with the mustache formatting patterns.
I have already been successfully using it elsewhere in the project but now for the first time I'm using the looping list patterns from mustache t... | common-pile/stackexchange_filtered |
How to upload a large file (> 1GB) directly to Amazon S3 from a given URL using NodeJS without actually saving the file in local?
I tried uploading a large file to S3 in many ways in NodeJS using aws-sdk but eventually ended up just uploading only 1mb of a file which is actually 1.2 GB.
So, I tried using streaming-s3... | common-pile/stackexchange_filtered |
Passing MongoTemplate to Custom Repository implementation
Project is configured to used multiple MongoTemplate s
Mongo Ref is passed as
@EnableMongoRepositories(basePackages={"com.mypackage.one"}, mongoTemplateRef="mongoTemplateOne")
for repositories in the package com.mypackage.one
and
@EnableMongoRepositories(bas... | common-pile/stackexchange_filtered |
db2 set multiple varchar variables
How do you set multiple varchar variables to latter use in multiple select staments?
The documentation has an integer example
SET (NEW_VAR.SALARY, NEW_VAR.COMM) = (50000, 8000);
I can't figure out how to do the same for a varchar
SET (NEW_VAR.var, NEW_VAR.var1) = ('%hello%','%world... | common-pile/stackexchange_filtered |
Is it possible to use the same coding for an iOS app and Android app?
Will I have to edit my code specifically for each operating system? Or any coding will universally run? (remote database query app)
You have to pay a fee of 25$ to register an account.
Source: http://www.androidauthority.com/publishing-first-app-pla... | common-pile/stackexchange_filtered |
SQL Server : output only one Postage Cost Against an Order with Multiple Line Items
I am querying orders;
Order# Customer Item Postage
11111 Customer1 Item1 £3.99
11112 Customer2 Item1 £3.99
11112 Customer2 Item2 £3.99
11112 Customer2 Item3 £3.99
My problem is for each ord... | common-pile/stackexchange_filtered |
Adding feature layer to ArcGIS Online from REST API?
I need to add a feature layer to ArcGIS Online account from code.
i have created a developer account where if i want to create a feature layer i have to upload a CSV file and it makes the feature layer.
Problem is: i need to create the sane feature layer using my c... | common-pile/stackexchange_filtered |
Is it okay to post parodies of songs and poems in Stack Overflow?
For fun, I have a couple of times produced something a bit more creative than technical with a Stack Overflow answer. Just recently, I did a parody of "Love Shack" by the B-52's (link in my signature).
I am just wondering if there is anything more I need... | common-pile/stackexchange_filtered |
Is the mapping $f: \mathbb{R} \rightarrow [0,1], \ x \mapsto \sum_{n=1}^\infty \frac{\lfloor x^n \rfloor \mod 2}{2^n}$ surjective?
Is the mapping
$$
f: \mathbb{R} \rightarrow [0,1], \ x \mapsto \sum_{n=1}^\infty \frac{\lfloor x^n \rfloor \mod 2}{2^n}
$$
surjective?
If not, what is its image?
If yes, what can be said ... | common-pile/stackexchange_filtered |
Could not set unknown property 'jar' for extension 'launch4j' of type edu.sc.seis.launch4j.Launch4jPluginExtension
Hi I am getting above error in app.gradle while building gradle project. I am using gradle version 8.8. Below is my app.gradle file. Can someone please help with this. I have recently upgraded gradle from ... | common-pile/stackexchange_filtered |
debug a debug dll linked to a release executable
In visual studio how can I debug/step into calls made by an exe to a library ?
The exe is available only in release mode and calls the library which is built in debug mode
I made a simple vs solution with just the exe and started it ..then I opened a source file from th... | common-pile/stackexchange_filtered |
converting a char* to BSTR* which contains special characters
I'm trying to convert a char* to a BSTR*, and my char* has special characters in it from being encrypted. I have tried several approaches found on the web, but back in the calling vb code, I always end up with something different. I'm pretty sure this has ... | common-pile/stackexchange_filtered |
trigger blockui from link within datagrid
I have the below datagrid which displays a list of student names as link.
<h:form id="gsform">
<p:dataGrid var="stuvar" rendered="#{gradeSheetController.listStudent != null}"
value="#{gradeSheetController.listStudent}" columns="... | common-pile/stackexchange_filtered |
Python scraping Error MissingSchema: Invalid URL
Does anybody know why a get this error ?
MissingSchema: Invalid URL '/type/gymnasien/': No schema supplied. Perhaps you meant http:///type/gymnasien/?
This is my code:
import requests
from bs4 import BeautifulSoup as soup
def get_emails(_links:list, _r = [0, 10]):
for i... | common-pile/stackexchange_filtered |
max-age, no-Cache,must-revalidate on Cache-Control Header, Which takes predence here?
Cache-Control : max-age=86400, no-store, must-revalidate, no-cache
This is a response header set by the server for a JS file.
Does it mean the response is cached for 86400 seconds before revalidating?.
Which of the above one takes pr... | common-pile/stackexchange_filtered |
Is there any version control tool workable for NetSuite?
So far, we update the script files by navigating to "Documents > Files > SuiteScripts" in NetSuite.
There seems no version control mechanism in it.
We use Git to control version on localhost and wonder if Git or something else can be used to control the versions ... | common-pile/stackexchange_filtered |
OAuth 2.0 - Does the authorization server directly send the auth code to the redirect URI that the user specified?
Does the authorization server directly send the auth code to the Redirect URI that the client specified or else Is there an Intermediate to whom the auth code will be sent first? If the auth code will be s... | common-pile/stackexchange_filtered |
Unable to Assign Primary Key Value to Another table column of same data type
I am unable to store the "ID" value of Student into "StudentID" of StudentCourses table.Its returning no error, data types are also matching.
ViewModel: StudentVM
public class StudentVM
{
public Student student { get; set; }
... | common-pile/stackexchange_filtered |
Decode four-hex-digits in sublime text
Some lines of a file:
2e72 7372 6300 0000 8c04 0000 00e0 1a00
0010 0000 00d0 1a00 0000 0000 0000 0000
0000 0000 4000 0040 2e72 656c 6f63 0000
0c00 0000 0000 1b00 0010 0000 00e0 1a00
Is there a way to transform it in readable characters?
Yes, it is possible. You could try a plugi... | common-pile/stackexchange_filtered |
Android Room database transactions
With the new Room Database in Android, I have a requirement where there are two sequential operations that needs to be made:
removeRows(ids);
insertRows(ids);
If I run this, I see (on examining the db) that there are some rows missing - I assume they are being deleted after inserting... | common-pile/stackexchange_filtered |
Verify length of each string of an array
I want to make a verification that if one of these strings has a length greater than 40 echo "this array contains a string with a length greater than 40". So in this case the index [11] contains a string length that is greater than 40. How can I do that?
array(5) {
[0]=>
str... | common-pile/stackexchange_filtered |
In Mark 5:42 to whom did Christ give the order not to publish about the resurrected girl?
After raising the little girl from the dead Christ goes on to give a charge that know one should know about this incident
Mark 5:42 NASB
42 Immediately the girl got up and began to walk, for she was twelve years old. And immediat... | common-pile/stackexchange_filtered |
Box2D AndEngine: app hangs out when creating Joints during ContactListener?
I am using Box2D in AndEngine (for Android).
My purpose is to create a Force joint whenever 2 objects collide with each other.
When I try to create a Mouse Joint between 2 objects (bodies) during ContactListner process. The application will han... | common-pile/stackexchange_filtered |
How to fetch only certain rows from an MySql database table
I have a php array of "primary key" values, which correspond to just a few rows of a very long table of data, saved on a MySql database.
How can I fetch with just one query only those rows. Is it possible or will I need to make one query per primary key? eg: S... | common-pile/stackexchange_filtered |
Seeking assistance with the circuit design for Force balance geophone
I am attempting to DIY this patent article, configuring the circuit based on the method provided (Fig. 1). I've configured the circuit (Figs. 2 and 3 and VIDEO). In my experiment, once I connect the output of amplifier 240 to the circuit, I can indee... | common-pile/stackexchange_filtered |
Unity launcher: how can I make it show one icon per window?
I have a lot of chrome windows open on my machine (and multiple chrome profiles, even), but they all get merged down into one icon in the unity launcher.
Is there a way to make them each show up as one icon? Or at least separate by chrome profile?
IMHO, t... | common-pile/stackexchange_filtered |
Stopwatch/countdown (00:00:00) format with Javascript
I have this code:
function startStopwatch() {
vm.lastTickTime = new Date();
$interval.cancel(vm.timerPromise);
vm.timerPromise = $interval(function() {
var tickTime = new Date();
var dateDiff = vm.lastTickTime.get... | common-pile/stackexchange_filtered |
Angular redundant databinding?
I'm new at my current company and refactoring code from my predecessor.
<th ng-repeat="(key,headline) in model.headlines" ng-class="headline.classes" data-ng-bind="headline.name">
{{headline}}
</th>
I discovered that removing {{headline}} changes nothing (or adding anything e.g. text... | common-pile/stackexchange_filtered |
When does AEM 6 workflow purge run?
CQ 5.6 had a 'cron' expression to control the timing for the workflow purge [1], but this is gone from AEM 6.2 [2].
What's the default, and can it be changed?
The workflow purge task is now triggered via maintenance window section - http://localhost:4502/libs/granite/operations/cont... | common-pile/stackexchange_filtered |
pyodbc - ImportError: DLL load failed:
I am running 64-bit Windows 7 and the Python 2.6 installation (64-bit version).
In addition I am using Aptana Studio 3 to run python.
I just downloaded and installed the pyodbc-3.0.2.win32-py2.6 package.
When I run python and try
import pyodbc
I receive the following error: 'Im... | common-pile/stackexchange_filtered |
gosimple/oauth2 and Google OAuth2
I'm using the gosimple/oauth2 package to handle OAuth2 logins for users. I have zero problems with the GitHub example code, which works perfectly and returns what I want.
I do, however, have issues getting it to work with Google. I've defined my scope correctly (as far as I can see), a... | common-pile/stackexchange_filtered |
Spring Boot deploy to Heroku: unable to access jarfile target/springApp-0.0.1-SNAPSHOT.jar
I have a spring boot app deploying to heroku
Procfile
web: java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port $PORT target/*.war
pom <artifactId>springApp</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war... | common-pile/stackexchange_filtered |
Sorting rows of two matrices using same ordering
Possible Duplicate:
Sort a matrix with another matrix
Given two matrices A and B of the same size, I want to sort A across the second dimension (rows) and apply the same ordering to the matrix B. Is it possible to vectorize this current code?
r = 10; c = 4;
A = rand(r... | common-pile/stackexchange_filtered |
Stuck at showing $U = V$ in SVD of Hermitian, positive definite matrices
Show $U = V$ in SVD of Hermitian, positive definite matrice $A_{n \times n}$
Try
Since eigenvalues and singular values coincide in Hermitian matrices,
$$
AV = U \Sigma = U \Lambda
$$
where $\Sigma$ is the singular value diagonal matrix with dec... | common-pile/stackexchange_filtered |
Original method still getting called in Moq even after CallBase = true/false
Here's my code:
public class Bar { }
public class Foo { public string Name { get; set; } public Bar TheBar { get; set; } }
public class Dependency
{
public Foo DoSomething(Expression<Func<Foo, bool>> exp1) { return new Foo(); }
}
public... | common-pile/stackexchange_filtered |
VU meter: datalabel does not show in its position
I am using highchart to display vu meter with data-label. Chart display and work correctly with live data from database but i have problem to show data-label in correct position.
I have tried crop and overflow options as it said here but it didn't work for me.
Here is ... | common-pile/stackexchange_filtered |
Prevent zsh from trying to expand everything
Recently switched from bash, I noticed that zsh will try to expand every command or argument that looks like it has wildcards in it. So the following lines won't work any more:
git diff master{,^^}
zsh: no matches found: master^^
scp remote:~/*.txt .
zsh: no matches found: ... | common-pile/stackexchange_filtered |
Does apple notify you when a certificate is going to expire?
Do apple notify the developer or email when a push notification is going to expired?
Yes, at 30 days, 10 days and 1 day prior to expiration date, you will receive the following email:
Is there any setup for this? I have Enterprise apple account, which is h... | common-pile/stackexchange_filtered |
this vs this@activity_main in context paramter for a function in kotlin
when i create a toast in android studio I got an error when writing the code like this
but I searched online w and I found that when I replace "this" with "this@main_activity" which is the current activity my code works and compiles.
So what is t... | common-pile/stackexchange_filtered |
Find if x is divisible by a number in the sequence from 2 to p
What's the best way ( in terms of complexity ) to find if $x$ is divisible by any number between $2..p$ ( inclusive), the obvious solution is to iterate over all numbers $i$ between $2$ and $p$ and check if $x\%i==0$, that's work in $O(p)$.
My solution is t... | common-pile/stackexchange_filtered |
Angular checkbox checked and uncheck Event
I have created a checkbox (ngmodel)]="ishighlylevaragedmeasure"
which has to display the value "true" and "false" when onclick checked and unchecked. but not changing the Boolean value to "true" when checked programatically .
How to set the Boolean values to change inside ts.f... | common-pile/stackexchange_filtered |
WPF TabItem lost focus event
I have tabItems with TextBox on their headers. I use LostFocus and MouseDoubleClick events to set the text to the TextBox.
<TabControl>
<TabItem Width="50">
<TabItem.Header>
<TextBox Text="text" IsReadOnly="True" LostFocus="TextBox... | common-pile/stackexchange_filtered |
Horizontal scroll appears at lower resolution- Responsive issue
I have strange problem with website responsiveness.
When on desktop resolution no horizontal scroll appears at Chrome.
When i resize it to lower resolutions 400px width and less the horizontal scroll appears.
I think some element is forcing width bigger t... | common-pile/stackexchange_filtered |
Change NSTextField value from another viewcontroller swift
so i was programming my app today when i ran in to this issue.
When i call a variable NSString "hello" from my second view controller, i can easily println it from my first view controller. but the problem is when i try to access the variable NSTextField i get ... | common-pile/stackexchange_filtered |
How to store each key or element from array to database in rails
I'm stuck on trying to store keys or elements from a returned array into the database. It looks something like:
{"id"=>"28898790358_10152709083080359",
"from"=>{"category"=>"Tv channel",
"category_list"=>[{"id"=>"169056916473899",
... | common-pile/stackexchange_filtered |
How to use FastButtons for them to work on mobile devices?
I have read this (and other relating things also):
https://developers.google.com/mobile/articles/fast_buttons?hl=fi#conclusion
but I don't understand how to use this in Google Apps Script. I made the UI with GUI Builder and now I want the buttons to work also o... | common-pile/stackexchange_filtered |
Error trying to apply a function for each item (List) in TransformedDStream
I have an issue with my code. I'm working with Spark Streaming and I listen a stream of data (tweets). Each tweet is represented by a list in which each item is a single word. I'd like to apply a function for each word with the Map function but... | common-pile/stackexchange_filtered |
How to prove a Distributive lattice
Do we need to apply distributive law for all elements to prove distributive lattice?
Since every chain is distributive so don't need to apply for chains(right?) & also the two distributive laws are equivalent, so don't need to apply both(right?), but for larger lattices having many e... | common-pile/stackexchange_filtered |
How does the DA 40 NG automatically control the mixture, pitch and power by just providing one throttle?
I'm a student pilot and here at my school we have the older gen DA40s which have individual lever for mixture, pitch and power.
I was looking at this video of the DA40 NG, and got quite curious as to how everything... | common-pile/stackexchange_filtered |
Ggplot - How to present the mean of a third varience?
Let's say I have this data frame:
The data frame
I want to make a graph which presents for each SES (Social Economy Status) what is the mean income for females and what is the mean income for males.
I have so far this code:
ggplot(incomeSorted, aes(GENDER)) +
scal... | common-pile/stackexchange_filtered |
How to select alternate rows from two tables
Having two tables, I want to display the result from alternate rows from both tables, just like UNION ALL.
Can you help me to find out the solution in a MS SQL Server query?
Records of Table1:
id - value
-------------
1 - abc
4 - dce
9 - fgh
16 - ijk
25 - lmn
Record... | common-pile/stackexchange_filtered |
Two positive integer with prime number
Let $a, b$ be distinct positive integers. Prove that there exists a prime $p$ such that when dividing both $a$ and $b$ by $p$, the remainder of $a$ is less than the remainder of $b$.
How can i solve this?
is it true that there are primes in the interval $[b+1-a,b]$ that are not i... | common-pile/stackexchange_filtered |
Karaf: Bundles Instances and classloaders
Is each Karaf bundle loaded by a separate classloader?
Are all bundles of a feature loaded by the SAME classloader?
If I include a dependent feature in a new feature I am trying to develop, would the bundles of that feature use the SAME classloader as the feature I am trying to... | common-pile/stackexchange_filtered |
CSS, Trouble aligning divs in chrome
Im having a mysterious problem with some positioning in chrome.
Its about one of my pages: http://www.iphonedeksler.no/
The div to the right, with class="content", is too far down in chrome, but perfect in firefox and IE.
Whats adding to the mystery, is that when you inspect, and to... | common-pile/stackexchange_filtered |
How can I display the result of a bitwise operation in binary form?
Possible Duplicate:
Converting decimal to binary in Java
I have found this code that takes as an input a number x, an array p and another number pmax which indicates the size of the array p
public static int permute(int x, int p[], int pmax) {
i... | common-pile/stackexchange_filtered |
Controlling WS2812b LED strip produces inconsistent and uncontrollable output
Background
I'm trying to control a single WS2812b LED strip from a Raspberry Pi. I've followed this tutorial from raspberrypi.com (with the exception of Prep & Installation step 4, because I couldn't find snd-blacklist.conf).
That didn't work... | common-pile/stackexchange_filtered |
Issue with JQuery pinch zoom
I am working with JQuery and I want to pinch zoom the image.
My code is:
$(document).bind('mobileinit', function(){
$.mobile.metaViewportContent = 'width=device-width';
});
I need help, Please Hurry up
I m not clear what you want to achieve.
I have an image and want to get pinch ... | common-pile/stackexchange_filtered |
How does 'screen' impact environment variables?
I noticed a difference in 'env' before and after a 'screen' call, is there any additional clarity on what gets called (for setting environment variables)?
I couldn't see any clear explanation from a quick search on 'man screen'
Some googled queries on the topic:
http:/... | common-pile/stackexchange_filtered |
pyplot plt.text custom font
I am trying to make a picture in python in a custom font for some nametags. So the end goal is to have a loop that saves an image with text how I want it.
Afaik this should work, as I changed the rc. But the font of plt.text is still the default. Does anyone know how to make this work?
impo... | common-pile/stackexchange_filtered |
Glide: How to preload Images and get confirmation that it is stored in cache?
I have a RecyclerView and inside of each row I have ImageView where I'm using Glide to set an image from URL. The problem is when the first time I open and try to scroll RecyclerView then only that images are downloaded. Obviously it'll save ... | common-pile/stackexchange_filtered |
How to set default SQL options for all SQL queries in OpenLink Virtuoso
Currently I actively exploit a very attractive ability of Virtuoso to define SQL views using SPARQL. When I use these views in a composite SQL query without any Virtuoso-specific options,
the execution time is enormously large. So, additional optio... | common-pile/stackexchange_filtered |
#include confusion and classes
I have been making several games with the Allegro API and C++. I have also been putting all my classes in 1 big main.cpp file. I tried many times to make .h and .cpp files, but my big problem is I have trouble with #including at the right place. For example, I want all my classes to acces... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.