source list | text stringlengths 99 98.5k |
|---|---|
[
"gamedev.stackexchange",
"0000172414.txt"
] | Q:
Unity crossplatform native plugins
I need to create a c++ native plugin for my game. If I want to support macOS and Windows, do I need to write my plugin twice - one in XCode with a bundle project and another in VS for windows or is there a way to support both with one codebase?
A:
Native typically means that ma... |
[
"stackoverflow",
"0046685359.txt"
] | Q:
Matching Columns with Overlapping Intervals (lubridate)
I have two data frames of different number of rows and number of columns: each of these data frames have a date interval. df has an additional column which indicates some kind of attribute. My goal is to extract information from df ( with the attributes) to d... |
[
"superuser",
"0000143374.txt"
] | Q:
Sony VAIO PCG-9RBL Drivers
I need to find the windows drivers for a Sony VAIO PCG-9RBL. Similar to this question the PCG-9RBL doesn't exist. So what else do they call it? When you type in PCG-9RBL at Sony'e eSupport it brings up:
PCGK23
PCGK23Q
PCGK25
PCGK27
PCGK32
Any idea?
A:
The PCG-9RBL has a subrange, us... |
[
"stackoverflow",
"0018677329.txt"
] | Q:
Passing values between dialog boxes in mfc
When using MFC, if i have a main dialog box, then I another dialog box is called from the main, what message is sent to the main dialogue box to let it know it has focus, is it WM_SETFOCUS()? If so, what paramaters are needed? The problem I have is, a value is selected in... |
[
"stackoverflow",
"0015035339.txt"
] | Q:
Android - Getting data from a TextView located inside a TableRow
Hey guys here's my problem. I have a long list of data inside a ListView (organized Alphabetically) so to make the users life easier I want to let them get directly to the part of the list they're looking for by clicking a letter (in a TextView) cont... |
[
"stackoverflow",
"0061751018.txt"
] | Q:
Enable azure diagonstic setting using ARM template for azure data factory,azure sql
When I am enabling the diagonstic setting fromt the azure portal for ADF & Azuresql, in the ARM template I am not able to find anything in ARM with respect to diagonstic setting.Similar way for keyvault and sql I need the ARM templ... |
[
"stackoverflow",
"0062143582.txt"
] | Q:
MFC or WIN32 UI Automation Client Sample?
I have been looking for a sample of using UI Automation in MFC (or Win32) as a client to scroll another applications window. But I can't find any samples?
Does anyone know of one or can provide one?
A:
The following is a Win32 C++ example of scrolling vertically on a not... |
[
"stackoverflow",
"0002080277.txt"
] | Q:
Is there a language with RAII + Ref counting that does not have unsafe pointer arithmetric?
RAII = Resource Acquisition is Initialization
Ref Counting = "poor man's GC"
Together, they are quite powerful (like a ref-counted 3D object holding a VBO, which it throws frees when it's destructor is called).
Now, questio... |
[
"stackoverflow",
"0045709263.txt"
] | Q:
Removing currency symbol, except on Woocommerce cart and checkout pages
I want to remove the currency symbol from my webshop, except on the shopping-cart page and the checkout.
So I do NOT want a currency symbol on:
category pages
product pages
home page
landing pages
blogs
But I DO want the currency symbol on:... |
[
"math.stackexchange",
"0001931365.txt"
] | Q:
Is there a quick way to find the remainder when this determinant is divided by $5$?
Find the remainder when the determinant $\begin{vmatrix} { 2014 }^{ 2014 } & { 2015 }^{ 2015 } & { 2016 }^{ 2016 } \\ { 2017 }^{ 2017 } & { 2018 }^{ 2018 } & { 2019 }^{ 2019 } \\ { 2020 }^{ 2020 } & { 2021 }^{ 2021 } & { 2022 }^{ 2... |
[
"stackoverflow",
"0031328971.txt"
] | Q:
Android Wear: CapabilityApi times out, doesn't return capabilities
I'm trying to use a new CapabilityApi introduced in play services 7.3 to learn about the capabilities of my android wear device(Asus Zenwatch). I've checked out this question and can confirm that Wearable.NodeApi.getConnectedNodes(...) approach doe... |
[
"stackoverflow",
"0021221982.txt"
] | Q:
combine 2 select queries in mysql
I have 2 select statements:
timestamp of emp getting awards for specific emp id
SELECT * FROM user_table,employeetable,awards where user_table.empid=employeetable.empid AND user_table.empid=awards.empid AND user_table.empid=123 ORDER BY timestamp DESC
All employees staying arou... |
[
"webmasters.stackexchange",
"0000000325.txt"
] | Q:
How much attention should I pay to page-load metrics?
My site scores a D in YSlow. How important is it that I get it up to say a B or an A?
I feel the page already loads quickly. I tested it at home on a modest 512k connection and it loaded in an acceptable time and was quick to browse etc. But according to YSlow ... |
[
"math.stackexchange",
"0002523871.txt"
] | Q:
Why is $\sup_{x \in [a,b]}|\int_a^xk(x,t)(f(t)-g(t))dt| \le ||f-g|| \sup_{x \in [a,b]} \int_a^x |k(x,t)|dt$?
Why is it true to say that:
$$\sup_{x \in [a,b]}|\int_a^xk(x,t)(f(t)-g(t))dt| \le ||f-g|| \sup_{x \in [a,b]} \int_a^x |k(x,t)|dt$$
A:
Because one has that
$$\left| \int h(s)\,ds \right| \le \int |h(s)|\,d... |
[
"stackoverflow",
"0003751797.txt"
] | Q:
Can I call memcpy() and memmove() with "number of bytes" set to zero?
Do I need to treat cases when I actully have nothing to move/copy with memmove()/memcpy() as edge cases
int numberOfBytes = ...
if( numberOfBytes != 0 ) {
memmove( dest, source, numberOfBytes );
}
or should I just call the function without ... |
[
"unix.stackexchange",
"0000438368.txt"
] | Q:
Unix unzip is failing but Mac Archive Utility works
I have a bunch of files with a .zip extension that I cannot seem to extract on my HPC:
$ unzip RowlandMetaG_part1.zip
Archive: RowlandMetaG_part1.zip
warning [RowlandMetaG_part1.zip]: 13082642473 extra bytes at beginning or within zipfile
(attempting to proce... |
[
"gamedev.stackexchange",
"0000064253.txt"
] | Q:
Input of mouseclick not always registered in XNA Update method
I have a problem that not all inputs of my mouse events seem to be registered.
The update logic is checking a 2 dimensional array of 10x10 .
It's logic for a jewel matching game.
So when i switch my jewel I can't click on another jewel for like half a ... |
[
"stackoverflow",
"0011070601.txt"
] | Q:
Encryption using PKCS#7
I am using Bouncy Castle provided library to encrypt,decrypt,sign and verify sign.
I am doing this as
1. Encrypt data
2. Sign data
3. Write signed byte to a file
4. Read signed byte from file
5. Verify signature
6. Decrypt data
I have taken reference from Beginning Cryptography with... |
[
"stackoverflow",
"0036156521.txt"
] | Q:
Dapper: The ConnectionString property has not been initialized
I'm playing around with Dapper for the first time. Looks like a pretty handy little tool. But I'm running into one problem. In the little console app below, the first method runs as expected. However the second method returns this error:
An unhandl... |
[
"stackoverflow",
"0014242608.txt"
] | Q:
Make p:dialog scrollable when working with maximizable
Does anyone know how to make a p: dialog work with maximizable and also scroll?
If the window is maximized with the scroll it gets bugged and scrollbar disappears.
I am using p:dialog from primefaces.
A:
Well, I had to modify your answer slightly for it to... |
[
"stackoverflow",
"0008877858.txt"
] | Q:
About base64 encoding and decoding in multiple language
Can we apply base 64 encoding in java and decode to get the same string using javascript ?
I need to do this to include three separate xml file in a single xml file, three of them being base64 encoded.
A:
Yes. You can use Base 64 encoding in multiple langua... |
[
"stackoverflow",
"0033145771.txt"
] | Q:
How to make a parameterized command map in vim editor
I m trying to make a custom command for block commenting, to avoid writing the whole search and replace sequence each time in vim for commenting lines.
What I m trying to do is make a key combination map to which I can pass line numbers as parameter and those s... |
[
"softwareengineering.stackexchange",
"0000393691.txt"
] | Q:
Reduce duplicates in outbox pattern in event driven systems
Trying to implement the outbox pattern for an event driven system. The outbox pattern in a nutshell is a way to ensure system events are sent to the event log/queue/bus at least once (using the term event bus loosely here):
a separate process that period... |
[
"codereview.stackexchange",
"0000033685.txt"
] | Q:
Is there any way to simplify this code
I'd like to simplify this Scala code:
private def getToken() = {
val token = getTokenFromDb()
token match {
case Some(x) => token
case None => {
val remoteToken = getTokenRemote()
remoteToken match {
case Some(x) => {
... |
[
"stackoverflow",
"0049332553.txt"
] | Q:
Codeigniter : upload path does not appear to be valid
I am using the following function in my model:
function uploadsinglepicture($uploadpath){
$config['upload_path'] =$uploadpath;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '';
$config['max_width'] = '';
$config['max_heig... |
[
"monero.stackexchange",
"0000008075.txt"
] | Q:
How much I "deanonymize" transaction when I put my address into "extra" part of a transaction?
Does it break untraceability or unlinkability (or something else) if everyone can see the sender's address (or one of the senders because of mixins)?
And I mean doing it for example for every 10th address used in Monero... |
[
"stackoverflow",
"0011323145.txt"
] | Q:
Difference between ALAssetType and UTType?
What's the distinction between these two types?
When do you use one versus the other?
Is there a way to translate between the two?
A:
They're completely different. UTType is basically a way to describe a generic file type and give it some meaning to the system and is u... |
[
"stackoverflow",
"0019144709.txt"
] | Q:
document.body.scrollTop || document.documentElement.scrollTop javascript
i have this code and i want to make the scroll on a div instead of the body
var scrollPosition = document.body.scrollTop || document.documentElement.scrollTop;
i tried this :
var divToScroll = $(".divToScroll"),
scrollPosition = divToSc... |
[
"stackoverflow",
"0016585443.txt"
] | Q:
Enum over multiple files, or automatic unique constants over multiple files
In C++ is there any way to automatically generate constants over multiple files at compile time?
Just like how an enum has constants automatically generated in a single file, but the constants must be unique over multiple files.
Eg:
class... |
[
"stackoverflow",
"0033051671.txt"
] | Q:
Android Studio create A folder in R.raw
I want to create folder in R.raw to classify my media source.
But when I try to read the folder in R, I can't found the folder.
R.raw.folderName
How can I solve the problem?
A:
You can not add folders to the raw folder or any of the folders inside the res folder.
Andro... |
[
"apple.stackexchange",
"0000051758.txt"
] | Q:
Why do Apple's 2012 MacBook Pros cap the RAM limit at 8GB?
According to apple's latest documentation (at the time of writing), the cap on the 2012 MacBook Pros is 8GB RAM.
The Mac Pros, however, can take up to 32GB RAM.
So, why do the MacBooks have this cap? Is it a hardware issue, because I don't think it's a sof... |
[
"stackoverflow",
"0044585604.txt"
] | Q:
Loop through string get key and value using regex key matches Javascript
I have a string like
> var temp =
> "meta(alias:!n,apply:!t,disabled:!f,index:'index_*',key:stockInfo.raw,negate:!f,value:green),"
For information, this string is generated automatically by kibana (I recover it through the url).
My question ... |
[
"salesforce.stackexchange",
"0000025749.txt"
] | Q:
Get contacts information with authentication
I want to know if there is a way for me to make an application in PHP or another language where somebody puts their username and password and I compare their contacts with my contacts to see which contacts are different in our accounts.
For example, his contacts are:
J... |
[
"stackoverflow",
"0005951637.txt"
] | Q:
the name of event for add or remove the children of inkCanvas using wpf
I have an Inkcanvas in my project (myPaint)
What is the name of event for add or remove the children (UiElement) from InkCanvas. for example I want handle this event : myInkCanvas.Children.remove(myRectangle) or this example :
myInkCanvas.Chil... |
[
"stackoverflow",
"0007492859.txt"
] | Q:
Is it possible to fire a single intent multiple times?
I have a service that does database calls. The service receives a request with an intent, and when the database call is complete, it broadcasts an "update complete" intent indicating the completion of the call.
Sometimes the database is already populated with... |
[
"islam.meta.stackexchange",
"0000000041.txt"
] | Q:
Is this an on-topic question?
https://islam.stackexchange.com/questions/44/sufi-populations-in-the-united-states-and-overall
Should this question be on-topic? It is asking more about the demographics than the religion.
A:
I think it is. The question is asking about:
What percentage of population do Sufis make u... |
[
"gaming.stackexchange",
"0000271137.txt"
] | Q:
Which stat does the Medic's "Acid Throw" attack scale off of?
In Grand Kingdom, the different kinds of attacks scale off one of several of the different stats. Physical attacks, according to the stat descriptor, scale off of strength (Str). Magical attacks scale off of Magic (Mag). The medic seems to occupy an in-... |
[
"stackoverflow",
"0043765684.txt"
] | Q:
sub query within coalesce
I'm currently using a coalesce query to return all values when an input parameter isn't present as follows:
@unid int
SELECT
*
FROM Bag_Dim
LEFT JOIN Bag_Action_Join
ON Bag_Dim.Unid = Bag_Action_Join.Bag_Unid
WHERE Bag_Dim.Unid = COALESCE(@unid, [bag_dim].[unid])
I wanted to add an ... |
[
"stackoverflow",
"0014405491.txt"
] | Q:
applescript mysql mamp
I would like use an Applescript for insert values in a local mysql db.
I'm using MAMP.
I found this for the connection but it doesn't work: (error number -60007)
set mysql_db to "my_database"
set mysql_user to "root"
set mysql_host to "localhost"
set mysql_pw to "root"
set mysql_table to "my... |
[
"stackoverflow",
"0027214902.txt"
] | Q:
Running PHPDocumentor
This command runs fine locally, but not during the build
php vendor/bin/phpdoc -d . -t ./build/docs --ignore vendor/,build/,hm-backup/,backdrop/,assets/,bin/,languages/,node_modules/,tests/,readme/
Here's the output
$ php vendor/bin/phpdoc -d $TRAVIS_BUILD_DIR -t ./build/docs --ignore vend... |
[
"stackoverflow",
"0056595870.txt"
] | Q:
Multi gpu training with estimators
in this link https://www.tensorflow.org/beta/tutorials/distribute/multi_worker_with_estimator they say that when using Estimator for multi-worker training, it is necessary to shard the dataset by the number of workers to ensure model convergence.By multi-worker they mean multiple... |
[
"stackoverflow",
"0002261436.txt"
] | Q:
Changing page location after google analytics setup
The current website structure is setup such that all the ASPX pages are in the main folder. It's becoming increasingly difficult to maintain, so I would like to create new folders and move the relevant pages. This would change the URL from say:
http://mydomain.co... |
[
"stackoverflow",
"0042140275.txt"
] | Q:
Write a statement without calling any function?
In order to optimize a code in one single line, I am trying to write a determinate statement in my code without calling any function or method. While I was thinking about this I wondered if this is even possible in my case. I was searching some information about this... |
[
"stackoverflow",
"0002076792.txt"
] | Q:
Is the cookie "metadata" (expires, path,...) transferred to the server?
When you set a cookie, you set the raw cookie data, and some metadata. This metadata includes the path for where the cookie is valid, the expiration time of the cookie, and so on.
When a browser performs a request, what exactly will the browse... |
[
"stackoverflow",
"0007159196.txt"
] | Q:
Cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'
Having an issue with this particular method and not sure how to resolve it! The error I'm getting is the above:
"error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot
access private member declared in class
'std::basic_i... |
[
"stackoverflow",
"0017740512.txt"
] | Q:
Configuring log4j with different verbosity
i have a problem with log4j
I want a solution which in console I have only INFO log, and in specific files another verbosity level (like DEBUG)
this is my configuration:
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j... |
[
"english.meta.stackexchange",
"0000000238.txt"
] | Q:
How should I report a pronunciation using the IPA notation?
Should I report the pronunciation as |ˈˌdaɪəˈˌkrɪdəkəl|, or [ˈˌdaɪəˈˌkrɪdəkəl]?
A:
I think the best way to report pronunciations for the general audience is to use a basic IPA transcription for English and enclose the pronunciations in /slashes/. This m... |
[
"stackoverflow",
"0001768817.txt"
] | Q:
How to connect 2 databases in php and mysql?
I have 2 databases. Users database and purchases database. Each database has different user and password.
If i want to execute a query to call both databases. How do I connect the databases?
$db = mysql_select_db(??????);
A:
You don't have to care which db you select ... |
[
"stackoverflow",
"0046490359.txt"
] | Q:
Unix domain socket error, sendmsg: No buffer space available
I've got a very simple code snippet, try to know how unix domain socket works, I've written the sender function, not yet having receiver function, it 's like below:
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#in... |
[
"math.stackexchange",
"0000465870.txt"
] | Q:
how to extend a basis
This is a very elementary question but I can't find the answer in my book at the moment.
If I have, for example, two vectors $v_1$ and $v_2$ in $\mathbb R^5$ and knowing that they are linear independent , how can I extend this two vectors to a basis of $\mathbb R^5$. I know that I just have ... |
[
"stackoverflow",
"0021589769.txt"
] | Q:
ImportError: cannot import name process (Twisted)
I'm using Mac OS X 10.9.1, and I remember installing Python some time ago (I can't remember why, given that Mac OS X comes with it). For some reason Twisted wasn't installed, so I installed Zope and Twisted.
I'm following this tutorial: http://www.raywenderlich.com... |
[
"gaming.stackexchange",
"0000103265.txt"
] | Q:
How to get prior notification that your home is under attack with enemies that attack your home in Hearthfire?
I just started playing Hearthfire for the first time. I built a huge house with three wings. My problem is my steward Rayya, died easily to a bandit attack.
Now UESP did warn me about attacks from creatur... |
[
"stackoverflow",
"0007778925.txt"
] | Q:
How to generate multiple HTML items based on a properties file?
I have the following properties file:
title = Welcome to Home Page
total = 5
gallery1 = images/gallery/cs.png
text1 = <b>Counter Strike</b><br />
gallery2 = images/gallery/css.png
text2 = <b>Counter Strike Source Servers Available</b>
gallery3 = ima... |
[
"codegolf.stackexchange",
"0000026498.txt"
] | Q:
Collatz Attack!
This challenge is based on some new findings related to the Collatz conjecture and designed somewhat in the spirit of a collaborative polymath project. Solving the full conjecture is regarded as extremely difficult or maybe impossible by math/number theory experts, but this simpler task is quite do... |
[
"mathoverflow",
"0000317540.txt"
] | Q:
Slightly finer topology vs a quasi-component
Let $(X,\tau)$ be a topological space, and let $Q$ be a quasi-component of $X$. Let $S$ be a subset of $X\setminus Q$. Then is $Q$ necessarily a quasi-component of $X$ in the topology generated by $\tau\cup\{S\}$?
A:
Let $X$ be the subspace of the plane given by $X =... |
[
"stackoverflow",
"0030328207.txt"
] | Q:
Git command doesn't work in subprocess in Python
We've been using python to automate some git work for quite some time in my group, and everything has worked fine. Unfortunately, I've come across something I would like to use, but doesn't work when put into a python subprocess. Here's the command:
git describe -... |
[
"earthscience.meta.stackexchange",
"0000000268.txt"
] | Q:
Is Helioseismology on topic in Earth Science or Astronomy?
What is says on the tin, is Helioseismology on topic in Earth Science or Astronomy?
Myself I'd think no (for ES) as although it takes elements of seismology, I think there is a fundamental difference in what's being looked at, perhaps in the same way that ... |
[
"stackoverflow",
"0043235304.txt"
] | Q:
RELEASE C++ Macro Definition
My company's main application uses OLE documents. Periodically, and unpredictably, the program closes its template documents improperly. So that at seemingly random times when they're opened, the OS throws STG_E_SHAREVIOLATION
I thought the problem might be the way we're closing the... |
[
"stackoverflow",
"0031933052.txt"
] | Q:
Can a table have multiple records of a single column in a single row?
There is a table 'items' with columns : item_name, i_code, items_left & price. It stores all the items that a shop sells. There is another table 'customers'. It stores record of all the customers who visited the shop. I want to keep record of al... |
[
"stackoverflow",
"0026887845.txt"
] | Q:
Replace only the path of image usig preg_replace in php
I am using preg_replace to alter the image path only except image name like:
<img src="http://www.ByPasspublishing.com/uploadedImages/TinyUploadedImage/SOC_Aggression_Define_Fig Territorial Aggression.jpg" />
to
Below is the code I have tried but it rep... |
[
"stackoverflow",
"0051094655.txt"
] | Q:
How to Enable port forwarding on azure vm
Hi I have a azure vm on which I want to configure port forwarding so that I can redirect traffic to 1100 port, I have created a public loadbalancer and in NAT rule I have configured the ports, but seems that I cant RDP onto the VM using my port 1100, can anyone suggest me ... |
[
"stackoverflow",
"0003898496.txt"
] | Q:
Customizing Paypal Express's Review Page using ActiveMerchant
I am using ActiveMerchant to give my rails app access to Paypal's Express Checkout.
I would like to include the Order Details on the Review Page as described here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_E... |
[
"math.stackexchange",
"0001957199.txt"
] | Q:
"Incorrect" derivation for sum of infinite natural numbers
I am trying to derive sum of infinite natural numbers for which the established answer is $-1/12$ but I am getting $-1/6$ as my answer and am unable to figure out what exactly am I doing wrong. Probably something very silly or something very fundamental is... |
[
"stackoverflow",
"0028923152.txt"
] | Q:
Azure Active Directory as simply user/role validation service
Our current process is BizTalk expose a web service for vendor to call in, where the request header contains pre-assigned user name and password. Upon receiving service call, BizTalk validates the credential against the database, extract and attach some... |
[
"stackoverflow",
"0025566444.txt"
] | Q:
Import git repo in cloud9 error https does not accept registry part
I am learning Ruby on rails and wanted to import my git repo to Cloud9 to continue working over there.
https://github.com/christoph88/sample_app
I imported it. Did a bundle install, rake db:migrate, rake test:prepare and everything seemed to work ... |
[
"math.stackexchange",
"0002505338.txt"
] | Q:
How to find $b_n$ for the limit comparison test in $\sum_{n=1}^{\infty}\frac{(\ln(n))^2}{\sqrt{n}(10n-9\sqrt{n})}$.
I'm supposed to determine whether or not the series converges or diverges but I'm stuck trying to find $b_n$ and prove that $a_n \sim b_n$. I would very much appreciate it if someone could help show ... |
[
"stackoverflow",
"0024598835.txt"
] | Q:
Javascript - Reading a text file line by line. Does it matter what browser is being used?
I have just started getting into Javascript and mobile web programming. One thing that I am uncertain of is how I can write proper code that runs on any browser without having the end user have any extra requirements on their... |
[
"stackoverflow",
"0060283501.txt"
] | Q:
handle separate transaction in java batch (JSR-352)
I'm using jberet implementation of JSR 352 java batch specs.
Actually I need a separate transaction for doing a singular update, something like this:
class MyItemWriter implements ItemWriter
@Inject
UserTransaction transaction
void resetLastProductsUpdateDate(S... |
[
"stackoverflow",
"0013663518.txt"
] | Q:
Will following ever cause RACE CONDITION when accessing ASP.Net Cache Item?
I am using the following code, and to me it seems that a race condition would never happen with code below. Or there is still a chance of race condition?
List<Document> listFromCache = Cache[dataCacheName] as List<Document>;
... |
[
"travel.stackexchange",
"0000024914.txt"
] | Q:
Manual or Automatic transmission: Do rental companies let you choose which type of car you want to rent?
Say I'm a foreigner renting a car in Brazil.
What kind of car transmissions are popular in Brazil rental car agencies?
Do they let you choose if you ask?
I know standard (aka manual) transmission is, well, the ... |
[
"stackoverflow",
"0004312912.txt"
] | Q:
Strategy Pattern the right thing?
i hope you can help me with my problem:
I have a Class doing soap calls. But if the soap definition changes i'll have to write a new class or inherit from it etc.
So I came to the solution to write something like that:
switch(version)
{
case "1.0":
saopV1.getData()
case "... |
[
"stackoverflow",
"0026430444.txt"
] | Q:
How To Apply Trigger To Image
I'm very new to WPF (and quite frankly I don't know why WinForms even exists because in my opinion it's FAR inferior to WPF), so I'm still not quite in the swing of things.
I have a TabControl, and inside each TabHeader is an image. Essentially, I just want the selected TabItem to hav... |
[
"stackoverflow",
"0049619817.txt"
] | Q:
Allauth Custom Provider URLs
Where/how does one hook up a custom provider URL patterns?
I can't find anywhere in the code that automatically installs the providers... e.g. allauth.socialaccount.providers.shopify URLs.
My custom provider worked on older versions like 0.2x.x but now I am getting reversal errors in t... |
[
"stackoverflow",
"0011227890.txt"
] | Q:
Perl Plucene Index Search
Fooling around more with the Perl Plucene module and, having created my index, I am now trying to search it and return results.
My code to create the index is here...chances are you can skip this and read on:
#usr/bin/perl
use Plucene::Document;
use Plucene::Document::Field;
use Plucene::... |
[
"stackoverflow",
"0055483629.txt"
] | Q:
Separate digits from integer (without string functions)
I have an integer with only two digits, let's say n = 52, i want to be able to separate these two digits, like 5 and 2.
Left Digit:
int left = (n / 10);
This gives me left = 5 for n = 52.
Right Digit:
int right = (int)(((n / 10f) - (n / 10)) * 10)
E... |
[
"stackoverflow",
"0043030871.txt"
] | Q:
Anaconda-Navigator - Ubuntu16.04
This is ubuntu16.04. I can open Anaconda-Navigator from the terminal using
anaconda-navigator, but when I click on it, it doesn't open. What am I missing?
A:
To run anaconda-navigator:
$ source ~/anaconda3/bin/activate root
$ anaconda-navigator
A:
it works :
export PATH=/home... |
[
"stackoverflow",
"0027392228.txt"
] | Q:
Select text in ::before or ::after pseudo-element
Look this very simple code
<!DOCTYPE html>
<html>
<head>
<style>
p::before {
content: "Before - ";
}
</style>
</head>
<body>
<p>Hello</p>
<p>Bye</p>
</body>
</html>
Css adds ¨Before -" at the start of every <P> and renders like this
If you use your mouse t... |
[
"math.stackexchange",
"0003219252.txt"
] | Q:
Why does this square root simplify so much?
I was messing about with a dot product, trying to simplify an expression, when I came across this equality by graphing. Why would these expressions be equal?
$\cos(2x)+r^2=\sqrt{r^4+\frac{r^2h^2}{2}\cos(2x)+\frac{h^4}{16}}$
I noticed that:
$r^4+\frac{r^2h^2}{2}+\frac{h^4... |
[
"stackoverflow",
"0027886788.txt"
] | Q:
Java program draw a square using for loop?
Given:
public static void printTriangle(int sideLength)
{
for (int i = 0; i <= sideLength; i++) {
for (int j = 0; j < i; j++){
System.out.print("[]");
}
System.out.println();
}
}
How do you modify the code to print a square wi... |
[
"stackoverflow",
"0021787852.txt"
] | Q:
Detecting date overlaps without going day by day
I am working on a project that involves managing information about what driver had a car on a particular day. Ostensibly the assignments should always have an end_date at least one day prior to the next start_date.
Table is like
+----+--------+-----------+----------... |
[
"ell.stackexchange",
"0000163125.txt"
] | Q:
twice the size of a sphere/cube
I want to know the most commonly understood meaning of phrases like "twice the size of" or "three times the size of" 3D objects.
If I say "this ball is twice the size of a table tennis ball", do native English speakers envision something with twice a table tennis' ball diameter? Or ... |
[
"stackoverflow",
"0018157520.txt"
] | Q:
MySQL Syntax Error Error
When calling my function a MySQL Syntax Error appears, any ideas?
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
function getComments1() {
$query = mysql_query("SELECT * FROM comments") ... |
[
"stackoverflow",
"0009177319.txt"
] | Q:
What would be the best decision for separator make-up?
I want to insert a separator between blocks and content, that are rounded with css3 border-radius property (see the picture below). What would be the best decision for separator make-up?
A:
You could apply a faux column approach to the parent element (#shee... |
[
"math.stackexchange",
"0000127443.txt"
] | Q:
How to find the equation of a line
Can anyone help?
I have the following equation that is in point slope form:
$$y-3 = {\textstyle{3\over11}}(x-4).$$
I now need to get this equation into THIS form:
$$3x-11y = -21.$$
The first step is to do the multiplication on the right hand side to give this answer:
$... |
[
"stackoverflow",
"0007510482.txt"
] | Q:
where exactly do we need exception handling for web-services on iPhone
I am a new iPhone developer and totally new to web-services as well. I had used http://www.sudzc.com/ to develop my obj-c code for my wsdl. I need to know that where exactly i need to handle exceptions in this code? Or the code generated by sud... |
[
"stackoverflow",
"0028160601.txt"
] | Q:
what is the difference between a[0] and &a[0] in string
string a = "asdf";
cout<<&a[0];
cout<<a[0];
Why are these two outputs different? Why is &a[0] not the address but the whole string?
A:
&a[0] has type char *. Stream operator << is deliberately overloaded for const char * arguments to output zero-terminate... |
[
"stackoverflow",
"0022749414.txt"
] | Q:
Adding objects to a list
I have the following code:
public class BaseEmployee
{
public bool Status {get;set;}
public DateTime DateOfJoining {get;set;}
}
public class Employee : BaseEmployee
{
public string Name {get;set;}
public string City {get;set;}
public string State {get;set;}
}
foreach(var r... |
[
"gamedev.stackexchange",
"0000126245.txt"
] | Q:
What type of Collider should I add to a LineRenderer?
I am currently building a game where I need to generate some wires (as Bézier curves) using LineRenderer. After changing the width of each line
lineRenderer.SetWidth (0.15f, 0.15f);
I am attaching an EdgeCollider2D to the same game object (specifying the same ... |
[
"stackoverflow",
"0038488219.txt"
] | Q:
JQuery clear divs when click off input but not off page
I am trying clear a div when a user clicks or tabs off of an input, but I don't want the div cleared if the user changes to a different window or browser tab.
What I have so far clears the div in both cases:
$input.on('blur focus mousedown', function () {
$... |
[
"stackoverflow",
"0036252993.txt"
] | Q:
Rspec & FactoryGirl 'Cannot call create unless parent is saved'
I'm sure that my issue is pretty easy to resolve. However, I cannot find how or where to resolve it. Currently I am trying to test the #follow method on my User model. Here is the test that I have:
describe "#follow & #following?" do
before(:each) do... |
[
"stackoverflow",
"0016512652.txt"
] | Q:
Access violation with C++
I am a bit rusty with the C languages, and I have been asked to write a quick little application to take a string from STDIN and replace every instance of the letter 'a' to a letter 'c'. I feel like my logic is spot on (largely thanks to reading posts on this site, I might add), but I ke... |
[
"ell.stackexchange",
"0000053602.txt"
] | Q:
what does " tweak your pitch" mean here?
But (also like dating) a lot can go wrong. If you’re striking out in your email campaigns, you’ve got to tweak your pitch. Here are nine reasons that marketing emails get rejected – any of these sound familiar?
tweak:improve
pitch:the quality of a sound governed by the rat... |
[
"stackoverflow",
"0009041542.txt"
] | Q:
Recursive Searching Category and Their Children
I have the following class:
public class Category {
public string Name { get; set; }
public Category Parent { get; set; }
public string Url { get; set; }
public List<Category> Children { get; set; }
}
Now given an instance of a Category and url. I wi... |
[
"stackoverflow",
"0057170891.txt"
] | Q:
Write a program that uses a for-loop to iterate through this array, displaying the values stored at every index
I have written a small program that holds an array of 10 numbers, I wish for the output of the program to look like this:
Index Value
0 2
1 4
2 6
3 8
4 10
5 12
6 14
7... |
[
"stackoverflow",
"0024091288.txt"
] | Q:
AndroidSDK Hello World app giving an invalid format error when debugging on my MotoX?
I just started learning the android-SDK, I followed the basic steps to launch a hello world app, however I get this error in the LogCat:
06-06 17:53:49.203: E/Adreno-ES20(17462): <gl_external_unsized_fmt_to_sized:2379>: QCOM> for... |
[
"stackoverflow",
"0062663370.txt"
] | Q:
Using Pipeline with GridSearchCV
Suppose I have this Pipeline object:
from sklearn.pipeline import Pipeline
pipe = Pipeline([
('my_transform', my_transform()),
('estimator', SVC())
])
To pass the hyperparameters to my Support Vector Classifier (SVC) I could do something like this:
pipe_parameters = {
... |
[
"tex.stackexchange",
"0000063696.txt"
] | Q:
Institute name in beamer presentation
I am trying to put the name of the institution in a beamer presentation
\documentclass{beamer}
\institution{XYZ}
...
\begin{document}
\maketitle
However I get the error that it is an undefined control sequence. What possibly is the mistake?
A:
The right command is \institut... |
[
"stackoverflow",
"0044372287.txt"
] | Q:
Value contains many text in Conditional Format Rules Google Sheet
I want to set conditional format rules in my Google spreadsheet. For the format cell, I select "Text contains", then I type values "PA, MA, CT, NY", formatting style I choose red. When I click DONE, the columns containing these words didn't show the... |
[
"stackoverflow",
"0056777620.txt"
] | Q:
How to create a for loop to tune lambda and alpha for glmm elastic net?
I am using the MMS package in R to conduct an elastic net regression on a GLMM. What I want to do is tune the lambda (or mu which is what it is called in the package) and alpha values. I want to select the best combination of alpha and lambda.... |
[
"stackoverflow",
"0038762731.txt"
] | Q:
Get storage space used in a folder in Firebase Storage
I'm creating a Firebase app that you can use to upload files. How can I get the amount of space used by a user in his folder (users/{userId}/{allPaths=**}) ?
A:
Great question. In short, there's no easy way to do this (even for us!) since this effectively r... |