text stringlengths 175 47.7k | meta dict |
|---|---|
Q:
Getting specific part of output in Linux
I have an output from a shell script like this:
aaa.sh output
Tue Mar 04 01:00:53 2014
Time drift detected. Please check VKTM trace file for more details.
Tue Mar 04 07:21:52 2014
Time drift detected. Please check VKTM trace file for more details.
T... | {
"pile_set_name": "StackExchange"
} |
Q:
SQL join, 3x itself?
I have a table in my database called characters. It tracks a character ID, name, marriedto, and fathersID. "marriedto" is the Character ID of a character they are wed to, and "fathersID" is the character ID of that character's father.
I'd like to do a join statement in SQL that will pull al... | {
"pile_set_name": "StackExchange"
} |
Q:
List of values to Columns in Pandas DataFrame
I have a DataFrame in which one of the column has the list of values ( each values is a value of a feature). Now I need to convert those list of values into each column.
Ex: DataFrame is having two columns in which data column is list of values
data , Time ... | {
"pile_set_name": "StackExchange"
} |
Q:
SQL not working for pg
I'm trying to use SQL to get information from a Postgres database using Rails.
This is what I've tried:
Select starts_at, ends_at, hours, employee.maxname, workorder.wonum from events where starts_at>'2018-03-14'
inner join employees on events.employee_id = employees.id
inner join workorders... | {
"pile_set_name": "StackExchange"
} |
Q:
Dynamic column in jQuery DataTables
In my application there are some columns that were given privileges.
If the column is not given the right to access that particular column is not shown.
My code is like this : http://jsfiddle.net/oscar11/5jccbzdy/11/
// DataTable
var table = $('#example').DataTable({
... | {
"pile_set_name": "StackExchange"
} |
Q:
Concatenation in jQuery
var os = $.client.os; // mac
var browser = $.client.browser; // firefox
var browserversion = $.client.browserversion; // 3
$('#root').addClass( os + browser + browserversion );
.. results in <div id="root" class="macfirefox3">. How do I add spaces between them?
A:
$('#root').addClass( os... | {
"pile_set_name": "StackExchange"
} |
Q:
Ban IP, IP range, DNS or Agend with PHP (Laravel) and MySQL
I want to implement a ban system. Firstly, I will create a filter that will make sure banned users are redirected to a page informing them about the ban.
I use Laravel and MySQL as database. My table could look like this:
id, ip , range, dns, agent, reaso... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery submit() only happens once, should happen more
I would like to add commenting functionality to my posts.
I can add the comment once and the partial is rendered without a reload, but when I add another comment it only renders the partial (nothing else)
Here is the create method I am calling:
def create
... | {
"pile_set_name": "StackExchange"
} |
Q:
Не срабатывает роут
Route::set('request','(<controller>(/<action>(/<mod>(/<id>))))',
array(
'mod'=>('change|notify')
))
->defaults(array(
'controller' => 'objects',
'action' => 'modify',
));
Ссылка такая:
http://site.com/objects/objects-list/change/1
В контроллере:
Сlass ... | {
"pile_set_name": "StackExchange"
} |
Q:
Why are so many recreational drugs serotonin 5-HT1A partial agonists?
I found out that many psychoactive drugs partially activate the 5HT1A receptor. Looking at Wikipedia, these include MDMA, LSD, CBD, Psliocybin/Psilocin, amphetamine and various other psychedelics, and they appear to all be serotonin 5-HT1A parti... | {
"pile_set_name": "StackExchange"
} |
Q:
Tooltip Visibility
I have the following code:
<DataTemplate>
<!--<sdk:DataGridTextColumn Binding="{Binding Description}" Header="Description" Width="205" />-->
<TextBlock Text="{Binding Description}" Width="232">
<ToolTipService.ToolTip >
<ToolTip Visibility="{Binding }">
... | {
"pile_set_name": "StackExchange"
} |
Q:
In National Velvet why didn't they use a stunt double for Elizabeth Taylor?
In National Velvet [1944] Elizabeth Taylor, as a young actress, fell from a horse and broke her back; this caused her a lot of pain for many years.
Surely a stunt double could have been found. There are small people in the world [e.g in G... | {
"pile_set_name": "StackExchange"
} |
Q:
C#: How to uncompress an image received in a base64 encoded format?
First I upload a .bmp image of size 7KB to a server and then when required I send a request to the server to get that image and the image would be sent in base64 encoded format. If I save that file to a .bmp format the saved image would look exact... | {
"pile_set_name": "StackExchange"
} |
Q:
resolve ${1##*/} in shell script
In /etc/init.d/functions#_pids_var_run (which will be there in most Linux distros), i see a local variable initialization like this,
local base=${1##*/}
what does,
${1##*/}
get resolved to?
A:
In bash scripts, ${varname##pattern} removes the longest prefix that matches pattern... | {
"pile_set_name": "StackExchange"
} |
Q:
Bing Map V8 Read GeoJson Find Centroid and add pushpin
Following is my GeoJson code to read file and dispaly data layer on bing map. I would like to find centroid for each polygon/Multipolygon inside GeoJson function and add pushpin for each centroid.
When I try to find center using shapes[i].getCenter() it throw... | {
"pile_set_name": "StackExchange"
} |
Q:
The Oil hike of the 2000's: Did it go unnoticed, and why?
I'm reading a macro text book, the authors stated that in the 2000's we witnessed the greatest increase in oil prices ever, even when compared to the 70's oil shocks. To most of us, this fact went a bit unnoticed, at least when compared to the 70's. Usually... | {
"pile_set_name": "StackExchange"
} |
Q:
How does "PageFactory.initElements(driver, this);" handles List of WebElements?
I just want to know the working of PageFactory.initElements(driver, this) how it populates searchSuggestions webElement and also if I'm not using thread.sleep(500) , it is throwing stale element reference exception with thread.sleep it... | {
"pile_set_name": "StackExchange"
} |
Q:
Let $f$ be a nonnegative bounded measurable function on a set of finite measure $E.$ Assume $\int_E f = 0.$ Show that $f=0$ a.e. on $E.$
The following question is taken from Royden's $4$th Real Analysis, Chapter $4,$ question $16:$
Question $16:$ Let $f$ be a nonnegative bounded measurable function on a set of fi... | {
"pile_set_name": "StackExchange"
} |
Q:
error strlen not a member of std only on linux not on solaris
below code compiles on Solaris using Sun Studio but on linux using gcc it says strlen is not a member of std.
inline std::string pathname(char const *p)
{
std::string pname;
std::transform(p, p+std::strlen(p), std::back_inserter(pname), platform... | {
"pile_set_name": "StackExchange"
} |
Q:
Would a person exposed to zero gravity for a long time have trouble riding a bicycle?
I just watched this video by Drew Feustel showing him having trouble walking upright after 197 days on ISS:
https://mobile.twitter.com/Astro_Feustel/status/1075889929119547393
They say once you have learned how to ride a bicycle ... | {
"pile_set_name": "StackExchange"
} |
Q:
how to resize map?
I have question about map resize.we have make a map using area coord.when i resizing map down so resize proper,and resize up map image not resize when i refresh page so it resizing.
below show html :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div... | {
"pile_set_name": "StackExchange"
} |
Q:
Identity-Matrix Normal form of a linear transformation
I'm confused about the following.
Let $\phi:\mathbb{R}^n\rightarrow \mathbb{R}^n$ be a linear isomorphism and let $\nu=(v_1,...v_n)$ be a basis for $\mathbb{R}^n$ and $\omega=(w_1,...,w_n)$ the basis for $\mathbb{R}^n$ given by $w_j:=\phi(v_j)$. Now if I look ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to do simple Substring in Oracle
How do I do this in Oracle Query? this is saying that we want the records which has '1' inleft most position in that column.
AND substring(convert(varchar,TR.MENU_ID_VALUE), 1, 1) = '1'
A:
The convert function function transforms a string from one character set into another.... | {
"pile_set_name": "StackExchange"
} |
Q:
How to give a timeout to an FTP connection
The story behind:
Old script written in ruby 1.8.6 that opens a connection to a ftp and download a configuration file. For a specific client with a windows ftp server the script just hangs. The log stops writing after it opens the connection to the ftp.
It's an old script... | {
"pile_set_name": "StackExchange"
} |
Q:
Replace " with \" with Doctrine 1.2
Here is my problem.
I get data from database using Doctrine 1.2 and put the data in a Textbox.
The data is 19" x 12" to put in the Textbox
Here is the result:
<input type="text" value="19" x 12"" />
I think I need to escape all the " with \"
My question is :
How can I perform... | {
"pile_set_name": "StackExchange"
} |
Q:
Pyramid static asset specification without package
I'm trying to make a simple pyramid app without using the scaffold generator. The code consists of a single app.py file.
The question is: since app.py is not a part of a package, how do I specify a directory as a static asset specification? I understand an absolut... | {
"pile_set_name": "StackExchange"
} |
Q:
aggregation of data combining dict of list
I have a file with following contents.
1234:yahoo\tgoogle\tmicrosoft\tapple\tyahoo
2345:apple\tgoogle\tgoogle
4567:yahoo\tapple\tapple
I am interested in getting the output
"Output"--> searchTerm : UserCnt, searchCnt
yahoo: 2, 3
apple: 3, 4
and so on...
fname="/tmp/... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the Rust equivalent to a try-catch statement?
Is it possible to handle multiple different errors at once instead of individually in Rust without using additional functions? In short: what is the Rust equivalent to a try-catch statement?
A feature like this (First-class error handling with ? and catch) was ... | {
"pile_set_name": "StackExchange"
} |
Q:
Boolean not set to true
There are two tables "Stock" and "Soldstock".
Table stock contains all the stocks that have been added. Im trying to add the stocks that are sold to the SoldStock table. the stock table is shown below:
Schema::create('stocks', function (Blueprint $table) {
$table->increments(... | {
"pile_set_name": "StackExchange"
} |
Q:
Extract p-value from fisher.test() using pipeline
Let's have a data set, e.g.:
set.seed(123)
n <- 50
x <- sample(c(0, 1), replace = TRUE, size = n)
y <- sample(c(1, 2), replace = TRUE, size = n)
The task is to create cross-table, compute Fisher's exact test and extract corresponding p-value. Here is my pipeline:
... | {
"pile_set_name": "StackExchange"
} |
Q:
realm android delete all data
mRealm.beginTransaction();
mRealm.clear(AboutItemRealm.class);
mRealm.clear(AgendaItemRealm.class);
mRealm.clear(AttendeesItemRealm.class);
mRealm.clear(DocumentsItemRealm.class);
mRealm.clear(FAQsItemRealm.class);
mRealm.clear(GalleryItemRealm.class);
mRealm.clear(GoodToKnowItemRealm... | {
"pile_set_name": "StackExchange"
} |
Q:
search in array and return parent node with smarty in prestashop
Good day all.
I'm writing a module, I'm in the .tpl at the moment, and I'm trying to retrieve the language id for the current page I'm displaying. Actually I'm working on some test code, to know if I have all the elements to go on.
I have this so far... | {
"pile_set_name": "StackExchange"
} |
Q:
Can't remove Expo-cli
For some reasons I can't update or remove my version of Expo-cli.
I'm stuck on the 3.11.7 version. When I launch the update, it ends correctly but without being taken into account.
I've tested all the methods I've found but I haven't been able to uninstall it yet.
When I launch my project, i... | {
"pile_set_name": "StackExchange"
} |
Q:
How to change file permissions when you don't have permission to change file permissions?
I often (like just this morning) have a situation where I need to delete or replace a file that may be located in folders like C:\Windows. When I try to do this I always get access denied. Every resource I can find shows me s... | {
"pile_set_name": "StackExchange"
} |
Q:
detect if a picture was taken with the front camera
In my application, i want to take picture using built-in camera application. Taking picture process is working fine. I want to know is picture taken from front camera or back camera, because after taking picture i want to get the rotation angle and rotate the pic... | {
"pile_set_name": "StackExchange"
} |
Q:
Use composite keys? Or always use surrogate keys?
Duplicate: Many to Many Relation Design - Intersection Table Design
If I have these tables (* = primary key):
user
id*
name
group
id*
name
Is this better?
user_group
user_id*
group_id*
Or is this better?
user_group
id*
user_id
group_id
A:
I ... | {
"pile_set_name": "StackExchange"
} |
Q:
Is C actually Turing-complete?
I was trying to explain to someone that C is Turing-complete, and realized that I don't actually know if it is, indeed, technically Turing-complete. (C as in the abstract semantics, not as in an actual implementation.)
The "obvious" answer (roughly: it can address an arbitrary amoun... | {
"pile_set_name": "StackExchange"
} |
Q:
How to validate data from a controller in a model?
I have data in my controller that is being received from another rails app and database (this has to be in the controller) I want to get this data so I can validate it in my model before allowing another step in a wizard (see my other question for some code exampl... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I check the Stockfish version?
I downloaded Scid vs PC to analyse my games and I want to check what version of Stockfish is included - how can I check if it is Stockfish 6?
A:
Double-click on the Stockfish executable, type "uci" (without the quotes) and hit Enter. You should get some output, near the top... | {
"pile_set_name": "StackExchange"
} |
Q:
50% portfolio in single stock, JPM - appropriate for 80 year old?
I've recently taken a look at my 80-year old mother's finances, run by a money manager at Morgan-Stanley. Half of her $3.5M portfolio is in a single stock, namely JPM = J.P. Morgan. This seems to me irregular both in terms of risk, lack of divers... | {
"pile_set_name": "StackExchange"
} |
Q:
Java web application cannot use native library (.so)
Technical summary: I'm developing a Java web service deployed on GlassFish v3, running on CentOS 5.
My web service uses functionality provided by a native library (.so) . The native library works fine, however I am not having much luck in configuring the environ... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there any way to pass a variable through a link other than something like "?token=827273"
Here's how the app works:
The business will put our recording widget on their website with our embed code. Their users will record a video and after that video has been approved, an email will be sent to the user who recor... | {
"pile_set_name": "StackExchange"
} |
Q:
How can i use os.path.join in map()
I have a list of directory name and want to add a fixed path before it.
I am aware that, it can be done in two ways, 1) Using for loop and 2) using map() function.
I was able to do using for loop:
dirNames = ['dir1', 'dir2']
dirsFullPath = [os.path.join('C:\\', dir) for dir in d... | {
"pile_set_name": "StackExchange"
} |
Q:
Tripcode encoding
What follows is the first almost useful C program I've successfully written since an Intro to Programming class in college. I'm hoping to slowly maybe work my way up to Objective-C/Cocoa development, but figured I'd start by re-teaching myself the basics. I write PHP for a living, so some things,... | {
"pile_set_name": "StackExchange"
} |
Q:
funny that when .hgignore is added for Mercurial, this file itself shows up as "?" in hg status?
Is it normal? So you just need to add \.hgignore to the list to ignore itself?
A:
Yes, but you don't want to ignore the .hgignore file. When a new person checks out your repository, don't you want them to get your ... | {
"pile_set_name": "StackExchange"
} |
Q:
Does Python have a whole number data type?
I have a question: Does python have a whole number data type> Unlike integers and floats, whole numbers are non-negative (0 to infinity). Does python have a data type declaration for that?
A:
No, it doesn't have such a number as a native type. You could use int, and jus... | {
"pile_set_name": "StackExchange"
} |
Q:
Google Sheets Script - save as PDF - Get Name from Cell
Ok, I'm 99% there thanks to a lot of other posts about how to do this.
What am I doing?
I have a google form. When that form is completed and the answers are in the respective google sheet I have another tab that has a template (with a bunch of formulas) tha... | {
"pile_set_name": "StackExchange"
} |
Q:
How to repair the grout on the floor
Should I replace the damaged floor or just the grout?
What kind of grout do you suggest and how to proceed?
Thank you.
A:
The right way: pull up the tiles, fix the underlying problem (flexing floor maybe?), reinstall. This will take more time/money but will fix the issue bett... | {
"pile_set_name": "StackExchange"
} |
Q:
How to configure "Shorten command line" method for whole project in IntelliJ
When I run tests I get the error "Command line is too long".
It works if I set the "Shorten command line" method in the Run/Debug configuration to "JAR manifest" for the specific method or class, but how do I set it for the whole project... | {
"pile_set_name": "StackExchange"
} |
Q:
jarsigner "Only one alias can be specified" 3
I perused questions 13335419, 8748089, 4282405, and a few others. They indicated that the most likely cause is an embedded space. Another answer was a possible certificate problem. I used this tutorial as a guide.
I had a real certificate issued, not a self certificate... | {
"pile_set_name": "StackExchange"
} |
Q:
How to create a new instance of same type from existing instance?
Suppose I have following kind of code:
foreach(var x in Mylist) //MyList is EntitySet
{
//......
}
I want to know the type of x and create another new instance of same type and the clone x to new instance like:
foreach(var x in Mylist)
{
string ... | {
"pile_set_name": "StackExchange"
} |
Q:
RepeatingSpriteBackground on MenuScene
I have started using Andengine, and after following some tutorials I'm starting to develope for myself.
Right now I have a a BaseGameActivity where I call one splashScene(working fine) and after that my MenuScene.
If i set a simple background (just color) it loads fine (all m... | {
"pile_set_name": "StackExchange"
} |
Q:
type of variable through indentation of loops Python
Here is a snippet, in the code through the top- down way, I printed the type of the variable named "podium")
this is the code:
def frequence(entranche):
podium = []
print("premier podium", type(podium))
for item in entranche:
print ("deuxieme... | {
"pile_set_name": "StackExchange"
} |
Q:
complex numbers. help in proof that $e^{-it}=1/e^{it}$
I need to show that $e^{-it}=\frac{1}{e^{it}}$.
but I don't understand what needs to be proven, it seems trivial to me. If anyone could help me.
Is the claim true even if t is not real?
Thank you
A:
You have$$e^{it}\cdot e^{-it}=e^{it-it}=e^0=1$$and theref... | {
"pile_set_name": "StackExchange"
} |
Q:
Inserting into Sqlalchemy when number of variables is unknown
I have a html document which dynamically allows a user to create a table. There is an 'Add Row' button, and by clicking on the button they can add a row of inputs to the table. The code that gets added would look like so:
<tr>
<td class = 'sct_comp... | {
"pile_set_name": "StackExchange"
} |
Q:
Is narrow sense heritability heritable?
I was wondering if narrow sense heritability $(h^2 = \frac{V_A}{V_p})$ was heritable itself. $(h^{2'} = \frac{V_A}{V_{h^2}})$
A:
Heritability of heritability
Heritability is a property of a population (see here for more info), not of an individual. One can only calculate ... | {
"pile_set_name": "StackExchange"
} |
Q:
Who gets blinded when the Daylight spell is cast on a Robe of Eyes?
In the 3.5 robe of eyes it says that you can cast certain spells on the robe to cause blindness. The specific wording is
A light or continual flame spell cast directly on a robe of eyes
causes it to be blinded for 1d3 minutes. A daylight spell ... | {
"pile_set_name": "StackExchange"
} |
Q:
If $(X,A)$ has homotopy extension, then $X \times I$ def. retracts to $X \times \{0\} \cup A \times I$
Exercise 0.26 in Hatcher's Algebraic Topology is
Use Corollary 0.20 to show that if $(X,A)$ has the homotopy extension
property, then $X \times I$ deformation retracts to $X \times \{0\}
\cup A \times I$.
He... | {
"pile_set_name": "StackExchange"
} |
Q:
R randomForest subsetting can't get rid of factor levels
Possible Duplicate:
dropping factor levels in a subsetted data frame in R
I'm trying to use a randomForest to predict sales. I have 3 variables, one of which is a factor variable for storeId. I know that there are levels in the test set that are NOT in t... | {
"pile_set_name": "StackExchange"
} |
Q:
mongoose find results not refreshing
I'm working with express/jade/mongodb to create a site with a db (pretty new in this).
I am retrieving a list from the db using 'mongoose find' during the get method using this function:
function getBookList(Book, req, callback){
Book.find({'username': req.user.username}, 'bo... | {
"pile_set_name": "StackExchange"
} |
Q:
Storing List with XStream with defined names
I want to store some class to xml:
XStream xstream = new XStream(new DomDriver());
List<String> modules = new ArrayList<String>();
modules.add("mod1");
modules.add("mod2");
ModulesConfig modulesConfig = new ModulesConfig(modules);
xstream.processAn... | {
"pile_set_name": "StackExchange"
} |
Q:
Checking if an attribute with no value exists with BeautifulSoup
I am trying to retrieve label text next to checkboxes on a form from only those that are checked.
Here is the html:
<div class="x-panel-bwrap" id="ext-gen1956"><div
class="x-panel-body" id="ext-gen1957" style="width: 226px;">
<div class="x-form-chec... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the value of the series $\sum_{n\geq 1}\frac{1}{n^2+1}$?
What is the value of $$\sum_{n=1}^{\infty}\frac1{1+n^2}$$
I don't know how to solve it.
I tried to solve it by power series, but I failed.
A:
I will give an elementary solution based on the following lemmas:
Lemma 1. For any $n\in\mathbb{N}^+$,
... | {
"pile_set_name": "StackExchange"
} |
Q:
How to Specify Trim Chars in SQL TRIM
I'm having a table Employee, in that some values are started with ", ". So, I need to remove the comma and white-space at the beginning of the name at the time of SELECT query using LTRIM() - SQL-Server.
My Table : Employee
CREATE TABLE Employee
(
PersonID int,
ContactName var... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a way a website can accurately determine the source domain that reached it?
I have a website where I click on a link and am redirected to another website.
Is there a way, the other website (www.otherwebsite.com) can determine accurately that the request has been sent from my website www.mywebsite.com?
A:... | {
"pile_set_name": "StackExchange"
} |
Q:
Gateway / Switch hybrid
Next week I'm getting a new internet connection installed. It comes with 5 static IP addresses by default.
Now, I would like to use some of these IPs on my systems. However, I have more than 5 devices to connect, so I would like to use NAT on one of the IP addresses.
I would like to know if... | {
"pile_set_name": "StackExchange"
} |
Q:
Using ref over return
I'm making an "adapter" base class that instantiates a private struct. The struct is exposed to inheritors via an abstract Configure() method, so they can set properties on it. Implementation as follows:
public abstract class PaymentAdapter {
private PaymentObject p = new PaymentObject()... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I assemble on github page instead of jekyll
Hello I need build static page for exhibition.
I aleardy use jekyll with my static site.
but..
I want to use assemble, I found someone use assemble on github static page..
I think "github pages" use only html, js, css .. becuase It will be available idea...
I foun... | {
"pile_set_name": "StackExchange"
} |
Q:
(the) project BankABC, BankABC project or the BankABC project?
I struggle with proper usage of articles in the following situation: I have a project for a customer, let's call the customer BankABC. Is the following then correct?
This is the description of the BankABC project. //I guess here BankABC
acts like an... | {
"pile_set_name": "StackExchange"
} |
Q:
Understanding the "where" and how to use it in Ruby on Rails
I have a table named product_variations, and this table has_many products.
When I go to Rails console, I can do this:
2.6.3 :036 > var = ProductVariation.first
ProductVariation Load (0.2ms) SELECT `product_variations`.* FROM `product_variations` ORDER... | {
"pile_set_name": "StackExchange"
} |
Q:
Size of DES encrypted text
I'm using this code for DES encryption:
How do I use 3des encryption/decryption in Java?
I'm encrypting byte array of size 8. As far as I know, it should result in encrypted data of size 8. But the result is 16 bytes.
I've done necessary edits in the code to do DES encryption of byte arr... | {
"pile_set_name": "StackExchange"
} |
Q:
Does PL/SQL have the equivalent of array params in C#?
In C#, if you set up a method parameter using the params keyword, that parameter will take in an indefinite number of arguments. When calling the method, you can then send a comma-separated list of arguments for that parameter.
Does PL/SQL have an equivalent f... | {
"pile_set_name": "StackExchange"
} |
Q:
Probability of a fair coin's $j$th and $k$th rolls have the same outcome
A fair die rolls $n$ times, let $R_{j,k}$ be the event that the $j$th and $k$th rolls have the same outcomes. Calculate $P(R_{j,k})$ with $1\leq j,k\leq n$.
Event $R_{j,k}$ has two same outcomes for sure, then the remain $n-2$ rolls can be an... | {
"pile_set_name": "StackExchange"
} |
Q:
Javascript validation error
I have written the following code in html and the javascript file is also embedded below
<!DOCTYPE html>
<meta charset="utf-8">
<HTML>
<head>
<link rel="stylesheet" href="admin.css"/>
<script type="text/javascript" src="common.js"></script>
</head>
<BODY>
<div class="adminnav" id="admin... | {
"pile_set_name": "StackExchange"
} |
Q:
How to use wsdl2phpgenerator on WAMP
I'm having a lot of trouble trying to get the php for a soap wsdl request working. I came across wsdl2phpgenerator which sounds like it generates the code for the service you want? Problem is I can't figure out how to use it. I'm running WAMP on my local machine. How do i insta... | {
"pile_set_name": "StackExchange"
} |
Q:
Inline List on multiple lines depending on the screen size
I have an inline list and I'd like it to be split into two distinct lines when the screen becomes too small to accommodate the text (I can define media queries to do so because content is always the same size). Any idea how to make such thing happen ?
Here... | {
"pile_set_name": "StackExchange"
} |
Q:
What are XForm In and XFormOut Pins in directshow?
What are XForms pins? How are they different than normal Input/output pins? Do they behave different than normal pins when connecting them?
A:
How are they different than normal Input/output pins?
Different just by naming, suggesting that "X" stands for "Tran... | {
"pile_set_name": "StackExchange"
} |
Q:
Can't play audio in Mozilla
I have an audio tag inside body which contains an audio file.I want to play it when the body has finished loading.It plays in chrome but it fails to play in mozilla firefox.I tried to download the file and then play it with the local file but i got similar results.
Here's the audio tag ... | {
"pile_set_name": "StackExchange"
} |
Q:
Replace and Keep Some part of the string in Node js
How can I do following in Node js/Javascript?
Eg. Say original occurence = "xyz-abc-def"
I wanted to replace whole occurrences of above string by "123-abc-456". xyz and def are constant in above string while abc can be any string in original occurence. Eg.
"xyz-... | {
"pile_set_name": "StackExchange"
} |
Q:
Configuration management on yocto
I want to use web management on freescale board,
what is the best way to do that?
I try to use luci but I don’t use Openwrt so it became difficult.
A:
Well, what's your requirement?
If you want a web-based configuration interface, that already has an available recipe, I think we... | {
"pile_set_name": "StackExchange"
} |
Q:
Calculating the resonant frequency of a metal pin
Is there a way to calculate the required diameter of a cylindrical metal (let's say aluminum) pin of a fixed length so that it has a specific resonant frequency? Let's say I have an aluminum pin that is 4 inches long, and I want it to have a resonant frequency of 2... | {
"pile_set_name": "StackExchange"
} |
Q:
Is it possible to satisfy an interface member implementation using another interface in Kotlin?
For example, if I have an interface like this:
interface MyInterface {
fun thouMustImplementThis()
}
And I have a class MyClass that implement MyInterface which means I have to create an override for the function:
... | {
"pile_set_name": "StackExchange"
} |
Q:
If I am here and heading towards there and I've covered this much ground, where am I?
I need help writing the following method:
def get_new_location(current_location, target_location, distance_travelled):
...
...
return new_location
where all locations are (lat,long)
I realize that there are different... | {
"pile_set_name": "StackExchange"
} |
Q:
Compilation Error, when runing Selenium test in maven project from command line
I read around about this problem on SO, but a don't find the right answer, which is be good for me. So, I wrote mvn project and a structure in the project is something like this:
+src/test/java (package with tests classes)
+src/main/ja... | {
"pile_set_name": "StackExchange"
} |
Q:
It's hard to click on Bar button Item
I've created custom back bar button. And I added an UIview because I have to change position of it within bar.
UIImage *backButtonImage = [UIImage imageNamed:@"backBtnWhite"];
_backButton = [UIButton buttonWithType:UIButtonTypeCustom];
_backButton.exclusiveTouch = YES;
[_back... | {
"pile_set_name": "StackExchange"
} |
Q:
Object oriented programming , inheritance , copy constructors
Suppose I have a base class Person and I publicly inherit a class Teacher from base class Person.
Now in the main function I write something like this
// name will be passed to the base class constructor and 17
// is for derived class constructor.
... | {
"pile_set_name": "StackExchange"
} |
Q:
XMPP MUC how to permanently join a room
I want the bot owner of the XMPP room to be persistently present, but I keep disappearing from the room and have to rejoin. What must I do to maintain my presence in a room? Is it configurable? I cannot find an answer in XEP-0045.
http://xmpp.org/extensions/xep-0045.html
Her... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there any better way to ignore headers in file?
I wrote a file reading code file in python.But I did not like my approach such as using next(iter) to ignore headers. I need some suggestions to improve this code.
Format of file:
OrderId, OrderName
1, Washing powder
2, Diaper
3, Cola
4, ToothPaste
5, Handfree
C... | {
"pile_set_name": "StackExchange"
} |
Q:
ASP.NET MVC model binding with serialize
I'm using serialize and JSON.stringify methods to make an Ajax call to my ASP.NET MVC application. MVC is unable to bind the model.
This is my JS code and strongly-typed view:
<script>
function saveDetails() {
jsonObj = $('#rdform').serialize();
$.ajax({... | {
"pile_set_name": "StackExchange"
} |
Q:
How to get the Polygon mode with OpenTK?
I'm setting the Polygon Mode like this in order to draw the wireframe:
GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Line);
GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Point);
GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);
I believe that the... | {
"pile_set_name": "StackExchange"
} |
Q:
XAMPP and Blender isn't running
I'm trying to install XAMPP server and Blender on my PC (Ubuntu 14.04 LTS) and whenever I try and open it, it just doesn't open.. so I thought "ok fair enough, let's do this the hard way" and did it through terminal.. I did all the commands etc. and after clicking enter it just drop... | {
"pile_set_name": "StackExchange"
} |
Q:
VB.NET SQL date is changed format in query
I've got a date variable that looks like this:
Dim LogDate As Date = Date.Today.AddDays(-1)
the format comes out like: #4/5/2010#
then it goes into a SQL select query as a WHERE clause. When I debug, the query has changed this to '05/04/2010'. I want it to be in the... | {
"pile_set_name": "StackExchange"
} |
Q:
Reorder DIVs on smaller screens
We are looking for a solution, to reorder DIVs, if the screen size gets smaller.
Our divs images are grey and white.
On a screen size that is bigger than 1024px we use a 3 column layout.
If the screen size gets smaller we use a 2 column layout.
The problem is that we have to reorder... | {
"pile_set_name": "StackExchange"
} |
Q:
When would you us Ext.application() vs. Ext.Loader.setConfig, .require, and .onReady?
I see that some of the examples included with ExtJS 4 start up via a single call to Ext.application(). Other examples, however, manually call Ext.Loader.setConfig(), Ext.require(), and Ext.onReady() instead. I want to make sure I... | {
"pile_set_name": "StackExchange"
} |
Q:
Messaging from ViewModel to View is not handling
I looked through lots of articles about it, but somehow, it is still not working.
In the View, in constructor, i have
Messenger.Default.Register(this, Constants.MY_MESSAGE, delegate(string s)
{
DoStuff();
} );
In the ViewMod... | {
"pile_set_name": "StackExchange"
} |
Q:
How to get all text selected on each click in my app
I am newbie to Android Development. I have created a helloandroidappwithlogin
its completely working fine but just one thing where I am stuck is how to get the text selected
I have set the Username slot as Username So if a user tap/click on it, it should the u... | {
"pile_set_name": "StackExchange"
} |
Q:
omitting the word "there"
She is used to there being no one else around.
She is used to being no one else around.
Would anyone please elaborate which one would be correct and why?
A:
She is used to there being no one else around.
*She is used to being no one else around.
Both of these sentences involve the ver... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery hover is not working when load data for autocomplete
This code is not working:
$("ul.lst li").hover(function (event) {
$('#span').text($(this).index());
});
When use the same code and hard coded html, mouse-over works smooth and give the hovered li index.
What am I missing?
var records = [];
var ... | {
"pile_set_name": "StackExchange"
} |
Q:
Stopping UDP packets from being partially chopped off when receive buffer is almost full
I'm working on implementing the sliding window protocols in C++ for an assignment. I am using UDP (SOCK_DGRAM) sockets. Occasionally, the program must send a large number of packets (as large as the window size) back to back. ... | {
"pile_set_name": "StackExchange"
} |
Q:
reports in purchas order
please give me the steps to create a report in purchase order with my new module.i created two files views/purchase_report.xml and Ship/purchase_report.xml.where ship is my module name.
and this is my Ship/purchase_report.xml
<report
id="custom_report_without_prices"
... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.