text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
PBKDF2WithHmacSHA256 on Android API 24 and lower
I'm trying to use Luke Joshua Park SecureCompatibleEncryptionExamples on android. My problem is that PBKDF2WithHmacSHA256 is not available for android below API 26. Any way to get around this?
A:
Android doesn't support PBKDF2withHmacSHA256 before API 26, but it d... | {
"pile_set_name": "StackExchange"
} |
Q:
Is it true that cyclic subgroups are always normal?
There is a proposition that I'm supposed to "prove", but it doesn't sound true to me. It says that if $H$ is a cyclic subgroup of a group $G$ (notation $H<G$), then every $K <H$ is normal in $G$.
If that were the case, since $H<H$, we'd have a corollary: If $H$ ... | {
"pile_set_name": "StackExchange"
} |
Q:
What's wrong with this? Cannot find symbol. symbol - constructor
public MyLine(double x, double y)
{
MyLine p1 = new MyLine();
p1.x = x;
p1.y = y;
}
That's my code
and the error I get is
./MyLine.java:12: cannot find symbol
symbol : constructor MyLine()
location: class MyLine
MyLine p1 = new MyLi... | {
"pile_set_name": "StackExchange"
} |
Q:
Javascript - Infinite scroll loop
Short story :
I want to parse a website that has infinite scroll on it, I don't want to implement infinite scroll. So I want to create a script that automatically scroll the page from the browser console wait for the data to appears then repeat until the end.
Long story :
I'm tr... | {
"pile_set_name": "StackExchange"
} |
Q:
Python pickle - how does it break?
Everyone knows pickle is not a secure way to store user data. It even says so on the box.
I'm looking for examples of strings or data structures that break pickle parsing in the current supported versions of cPython >= 2.4. Are there things that can be pickled but not unpickled? ... | {
"pile_set_name": "StackExchange"
} |
Q:
Hive date conversion
I intended to extend certain records in a table by adding 366 days to its date keys:
to_date(date_add(from_unixtime(unix_timestamp('20150101' ,'yyyyMMdd'), 'yyyy-MM-dd'), 366)) as new_date
2016-01-01
But how to convert this value back to format of original key i.e. 20160101 ?
A:
Since your... | {
"pile_set_name": "StackExchange"
} |
Q:
Add columns based on join
I have huge tables (3 millions records) that must have a joined column. This value will not change.
How can I add a column based on a join? There will be some other queries. If I use join, it will be a slower process.
Ex:
Main Table:
add_cod | name
1 | alfa
2 | beta
1 | ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to remove stop words using nltk or python
So I have a dataset that I would like to remove stop words from using
stopwords.words('english')
I'm struggling how to use this within my code to just simply take out these words. I have a list of the words from this dataset already, the part i'm struggling with is c... | {
"pile_set_name": "StackExchange"
} |
Q:
MVC 3 Razor - Unobtrusive Validation Not Working
Can anyone see why my validation is not working? Currently it just posts and fails on the insert because the data insert doesn't allow nulls instead of catching it client-side and displaying the required field messages.
View
http://pastebin.com/4grwD02i
Controller
... | {
"pile_set_name": "StackExchange"
} |
Q:
Why GIT status is confusing when deleted a file and created a folder with same name?
I did this in a git repo. My git version is 2.9.0.
touch a
git add --all
git commit -m "file created"
rm a
mkdir a
cd a
touch b
git status
Now the status shows this, in the changes not staged for commit.
deleted: a
But it doesn... | {
"pile_set_name": "StackExchange"
} |
Q:
Node file modes on Windows?
In Node, file modes (e.g. for fs.open) are defined in the terms of the POSIX world (a three-digit octal value). However, that does not map to how Windows does things. Windows does not have such tight coupling between user permissions and the filesystem. Windows' OpenFile function does n... | {
"pile_set_name": "StackExchange"
} |
Q:
Triangle - Triangle Intersection Test
I'd like to know if there is out there some tutorial or guide to understand and implement a Triangle-Triangle intersection test in a 3D Environment. (i don't need to know precise where the intersection happened, but only that an intersection has occurred)
I was going to implem... | {
"pile_set_name": "StackExchange"
} |
Q:
Column vs Field: have I been using these terms incorrectly?
I feel kind of embarrassed here, I've always used the terms "column" and "field" completely interchangeably, which recently caused some confusion in a technical discussion.
I was told, though, that this wasn't correct, that it should be (translating each... | {
"pile_set_name": "StackExchange"
} |
Q:
Ubuntu 14.04 Server - WiFi WPA2 Personal
I just installed Ubuntu 14.04 Server and cannot get wifi configured correctly to work with WPA2 personal and could use some help.
There was a simple wizard during install where I selected my SSID from a list and entered my passphrase and that worked great. Now that the i... | {
"pile_set_name": "StackExchange"
} |
Q:
Parse Python's serialized object in Perl
I need to make my Perl code read some Python's serialized object for later processing. I came with parser based on Parse::MGC, but it's slow. May be I did it wrong or may be someone knows better way to convert Python's serialized object in some sort of Perl structure?
Here ... | {
"pile_set_name": "StackExchange"
} |
Q:
Unable to produce variable output of type string in multi-lines in PHP
I don't know the correct wording for this issue I am having.
I have a object returned from the database like below:
$pProvisioningFileData->m_fileContent = # Placeholders identified by '${}'
will be replaced during the provisioning
# process,... | {
"pile_set_name": "StackExchange"
} |
Q:
Well ordering of $\mathbb{N}$ with weak induction
In my Algebra course the well-ordering property of $\mathbb{N}$ has been proven just by standard ("weak") induction, but I can't understand the proof given by the lecturer.
The proof proceeds as follows: let $S\subset \mathbb{N}$ a set with no minimum, we show tha... | {
"pile_set_name": "StackExchange"
} |
Q:
Texto sin traducción en el perfil
Al ver el perfil de un usuario cualquiera que no tiene respuestas a ninguna pregunta se ve el texto sin traducir "answered" y debería cambiarse a "respondido":
En todo caso debería quedar:
Este usuario no ha respondido ninguna pregunta.
También ocurre lo mismo cuando se observa... | {
"pile_set_name": "StackExchange"
} |
Q:
Populate HTML listbox using javascript function on page load
I have a HTML Listbox and I need to add values to it on the page load. I have tried to call a JS function on page load event on both <body> tag and <select> tag but it does not execute the the function.
<body onload='popListbox(<%=session.getAttribute("o... | {
"pile_set_name": "StackExchange"
} |
Q:
Creating loops to read an ascii (.txt) file by piping it into a program and then outputting it into another file
I am trying to essentially pipe a .txt ascii file into a program. My program needs to be able read the lines upon lines of ascii code and then output what it reads into a file. At which point i will com... | {
"pile_set_name": "StackExchange"
} |
Q:
Print html with images (every image on separate page)
I have an HTML with images:
<img id="1" .../>
<img id="2" .../>
<img id="3" .../>
<img id="4" .../>
While printing, I want every image to be on a separate page (according to the print size).
Now I get the images cut off in the middle.
Is there any way to fix i... | {
"pile_set_name": "StackExchange"
} |
Q:
Unable to block room using Google calendar Api
This is my java code using this code I am trying to create event with room (room is added using resource Google Calendar API) event created success fully with room A. However when I check in Google Calendar and try see available room in that A room is available. I... | {
"pile_set_name": "StackExchange"
} |
Q:
Is it possible to retrieve the HTTP Status Response Code in an MVC View?
Is it possible to retrieve the HTTP Status Response Code in an ASP.net MVC View?
For instance, I can get the server name with @Environment.MachineName.
Is there a similar, easy way to get the http status response code for the current page?
If... | {
"pile_set_name": "StackExchange"
} |
Q:
Publish contenttype after activating feature (Office 365)
I've created a Contenttype and some fields in a visual studio project. They are deployed when activating the "Content types"-feature. But here's the problem: I want them to be deployed to the Content Type HUB (in Office 365). Deploying itself isn't a proble... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the impact on health of travelling internationally for 50-70% of the time?
I was offered a job as worldwide head of business development for X.
I was offered twice my current salary, plus a bonus. It's a very attractive offer, but I will have to travel 50-70% internationally (US, EMEA and APAC).
I will not... | {
"pile_set_name": "StackExchange"
} |
Q:
using proxy in Angular CLI to redirect http post requests, not redirecting
I want my requests sent from localhost to be passed to the remote server, I have no control of, by the use of proxy. So that http://localhost:8000/api/Lists/GetCarList would be resolved as https://other-site.ru/api/Lists/GetCarList
But with... | {
"pile_set_name": "StackExchange"
} |
Q:
Bash commands not executed when through cron job - PHP
I have a cron job running a PHP script every five minutes; the PHP script executes two bash commands at the end of the script. I know the script is running due to a log file it appends to. When I run the PHP script manually via the Ubuntu Gnome Terminal both... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I get data out of NSURLRequest config object
I have an Angular web build inside an iOS app and want to POST requests up to the native layer with some JSON that I can use to build some native functionality. I am using the old UIWebView (because Angular) so am using an NSURLProtocol to intercept the request.... | {
"pile_set_name": "StackExchange"
} |
Q:
Unexpected text being rendered by Ember
I have models
// models/group
export default DS.Model.extend({
parent: DS.belongsTo('parent'),
items: DS.hasMany('item', {async: true}),
quantity: Ember.computed.sum('items.@each.quantity'),
});
// models/item
export default DS.Model.extend({
...
quant... | {
"pile_set_name": "StackExchange"
} |
Q:
iterate over a Json file and insert into db in Python
{"groupId":"org.springframework","artifactId":"spring-jcl","version":"5.1.2.RELEASE","file":"/home/howie/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jcl/5.1.2.RELEASE/f0d7165b6cfb90356da4f25b14a6437fdef1ec8a/spring-jcl-5.1.2.RELEASE.jar","depe... | {
"pile_set_name": "StackExchange"
} |
Q:
how right use function in include file?
Good day.
We have 3 files:
1) index.php
<?php
require_once("functions.php");
$t= new getgunctions;
$t->getgainTpl();
$t->controllerTpl(1);
?>
2) functions.php
<?php
class getgunctions{
.....
public function controllerTpl(){
$this->form();
}
private function form... | {
"pile_set_name": "StackExchange"
} |
Q:
max number of connected sockets vs. values of SO_SNDBUF and SO_RCVBUF
I have more than 3 million file descriptors on a Linux machine, so I look how socket buffers size against RAM size would constrain the maximum number of simultaneous tcp connections that the machine can handle. If you had similar experience, ple... | {
"pile_set_name": "StackExchange"
} |
Q:
In NetBeans, Mojarra 2.2 outputStyleSheet doesn't have media attribute
I'm using NetBeans 8.0.2 and Mojarra 2.2 where according to the docs there's a media attribute and this is not the case, I get the following message:
The attribute media is not defined in the component outputStyleSheet
So the problem I know ... | {
"pile_set_name": "StackExchange"
} |
Q:
Network manager issue: The system network services are not compatible with this version
I have seen relevant solutions in askubuntu and other sites but none worked for me so far.
I reinstalled network manager, modem manager, tried to upgrade them and manually install everything, also tried nm-applet solution. But... | {
"pile_set_name": "StackExchange"
} |
Q:
Elastic behaviour of objects
If I strike my car with a wrench with enough force to make a dent in it, then it's obvious that I won't be able to produce any acceleration in the car. But I am applying an external deforming force. Then according to Newton's third law the car body will also produce an equal and opposi... | {
"pile_set_name": "StackExchange"
} |
Q:
questions about a fiber bundle
I am reading the book From holomorphic functions to complex manifolds by Klaus Fritzsche and Hans Grauert. I have a question about a fiber bundle. On page 186, the last line. How to show that $$ \Gamma(U, \mathcal{O}^*_{X}) \cong \mathcal{O}^*(U):=\{f\in \mathcal{O}(U) : f(x) \neq 0 ... | {
"pile_set_name": "StackExchange"
} |
Q:
Replace the even characters to upper case and the remaining characters to lower case
Is there an SQL query to replace the even characters to upper case and the remaining characters to lower case in a string?
For example if the string is 'sagar' the result should be like
sAgAr
What would be the appropriate soluti... | {
"pile_set_name": "StackExchange"
} |
Q:
How to calculate $*dx^i$ on an oriented Riemannian manifold
Let $M$ be a $d$ dimensional oriented Riemannian manifold, $(x^i)$ an oriented local chart, then we can define a star operator $*:\Omega^p(M)\to\Omega^{d-p}(M)$ by looking at orthonormal frames. But how can we calculate $*dx^i$? Can it be expressed as a f... | {
"pile_set_name": "StackExchange"
} |
Q:
Enable SSH access for AD admin accounts
I have the need to configure SSH access for a AD service account on a fleet of Macs. I can't make the account a local account as the password for the service account cycles often. The end goal is to allow all accounts in a restricted AD security group ssh access to our Macs,... | {
"pile_set_name": "StackExchange"
} |
Q:
How to inject a controller into a directive when unit-testing
I want to test an AngularJS directive declared like this
app.directive('myCustomer', function() {
return {
template: 'cust.html'
controller: 'customerController'
};
});
In the test I would like to inject (or override) the controll... | {
"pile_set_name": "StackExchange"
} |
Q:
How to show values from 2 fields in a single textbox in an asp.net GridView
I have a GridView and a linqdatasource. The GridView is editable and when the user clicks to edit a row I want to concatenate two of the fields in the linqdatasource and place it in a single textbox.
I tried something like:
<asp:TextBox I... | {
"pile_set_name": "StackExchange"
} |
Q:
How do you return an Observable of an object where the object has a property built using an http request? [RxJs]
I have a type I want to return from a method that is not the same as one the http request gets - I basically want to assign the results of that http request as a property on the object and return an obs... | {
"pile_set_name": "StackExchange"
} |
Q:
Why is there a line length limit in Kate?
In Kate, KDE's text editor, and other editors too I'm sure, sometimes files will not open correctly because of this line length limit. Why is it there? Is it safe to set this to an extreme number or is there a way to get rid of it somehow?
My Kate version:
Kate
Version 3.1... | {
"pile_set_name": "StackExchange"
} |
Q:
Ignoring certain values when calculating AVG sqlite
I have the following query which finds all the hotels with overall rating greater than 3 and average cleanliness greater or equal to 5. There are 2 tables - Reviews where there is the [Cleanliness] attribute and Hotel - where there is the [Overall_Rating] attribu... | {
"pile_set_name": "StackExchange"
} |
Q:
Is SSL enough for protecting a request and its headers?
I ask this because I work on an application where the X-AUTH-TOKEN can be copied from one request to another and impersonate another person. This makes me nervous, but I'm told since we're going to use HTTPS we don't have to worry about anything.
So, my quest... | {
"pile_set_name": "StackExchange"
} |
Q:
How to combine two class in css
here my two class classA and classB i want classB inherit style of classA
and use only classB
.classA{ width:100px;}
.classB{ height:100px;}
<div class="classB"></div>
A:
.classA{ width:100px;}
.classB{ height:100px;}
<div class="classA classB"></div>
| {
"pile_set_name": "StackExchange"
} |
Q:
2-3 second delay loading page when using JQueryMobile
I've found that if I load a web page in iOS, then if that page uses JQueryMobile it takes about 2 to 3 seconds longer to initially load. For example, the following page loads almost instantaneously:
<!DOCTYPE>
<html>
<head>
<title>Hello</title>
... | {
"pile_set_name": "StackExchange"
} |
Q:
Will developing my leg muscles improve my running?
Will doing strength exercises and working out the leg muscles like the thigh and calve on machines improve speed or endurance in running?
A:
Yes. Training for strength & power - low reps, heavy weight, compound lifts, explosive movements - can help your speed & ... | {
"pile_set_name": "StackExchange"
} |
Q:
Javascript: best practical way to declare functions
The past few sites I worked on and primarily event driven using jquery and i usually make my functions as so
function abc() {
//do stuff
}
abc();
and
function foo() {
var a = $('.aaa');
var b = $('.bbb');
var c = $('.ccc');
function animal()... | {
"pile_set_name": "StackExchange"
} |
Q:
Angular ng-click error
<li role="menuitem"><a href="#" ng-click='getData1()'>Day</a></li>
<li role="menuitem"><a href="#" ng-click='getWData2()'>Week</a></li>
<li role="menuitem"><a href="#" ng-click='getMData3()'>Month</a></li>
I have these three HTML elements defined and on click I would like to call a function... | {
"pile_set_name": "StackExchange"
} |
Q:
Show offline cache when server is unreachable
Is it possible to show an offline cache of my website when the server is down?
All the examples I can find regarding offline pages has to do with the client being offline. What I need is to show the user a cached version of my site if the server can't be reached.
I've... | {
"pile_set_name": "StackExchange"
} |
Q:
angular-strap tooltip not working in ng-repeat
Question: Is there a bug in angular-strap? Or do I misunderstand how Angular works, and this is expected?
I've created a plunker to demonstrate the behavior.
What I want:
I want to show a different tooltip for each item in an ng-repeat.
Behavior I'm seeing:
Under cert... | {
"pile_set_name": "StackExchange"
} |
Q:
Using the power series of $\sin x^3$, the value of $f^{(15)}(0)$ is equal to $k\cdot11!$. Find the value of $k$.
I have the following question:
Using the power series of $\sin x^3$, the value of $f^{(15)}(0)$ is equal to $k\cdot11!$. Find the value of $k$.
I tried to write the power series using the one from $\... | {
"pile_set_name": "StackExchange"
} |
Q:
Implementing bidirectional relations between objects of the same class
I have to implement a class whose instances have a bidirectional relation to each other. For example I have the class FooBar which should offer the method sameAs(FooBar x) and maintain a Set for each instances containing its equivalent instance... | {
"pile_set_name": "StackExchange"
} |
Q:
Is the 有 in 你有想要买什么吗 some kind of auxiliary verb?
I was going to the convenience store and asked my local friend how to ask in Chinese "Do you want anything?"
Her answer was: 你有想要买什么吗
I wasn't sure what to make of the 有 before the verb 想要 meaning "to want" and as a native speaker she could not explain it though sh... | {
"pile_set_name": "StackExchange"
} |
Q:
CMake - what does this OPTION command do?
I'm getting into CMake and have some trouble with the syntax of it. I was wondering if any of you could tell me what the following command does exactly:
OPTION(USE_OPENGL "Use OpenGL" FOUND_OPENGL)
As far as I can tell, it will Default OPENGL to ON if it is found. Is tha... | {
"pile_set_name": "StackExchange"
} |
Q:
How to set sample rate as 100KHz using AudioTrack in Android?
I'm developing an Android app that will play a specific audio. This audio is generated by code. My problem is that I need the sample rate up to 100KHz, but I got the error message as below. Could anyone know how to set sample rate as 100KHz with AudioTr... | {
"pile_set_name": "StackExchange"
} |
Q:
css centering text within a background image
I have a number inside a background image. I can't put the number in the center of the circle. So far, I have center the number but it is in the topmost part of the circle. How do I move it down to the center?
HTML code:
<div class="number">
<p>
576
</p>
</div>
C... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I do that when the home view navigates to the login view, trigger the useEffect of the login?
Basically in login I have a function that verifies if a token exists, and if it exists automatically redirects to thehome view, otherwise it will remain in the login view.
Login
const Login = props => {
const [... | {
"pile_set_name": "StackExchange"
} |
Q:
What are the differences/connections between the Churches of Christ and the Congregational Churches?
I have done a fair amount of research but am still very confused about the difference between the two, the Churches of Christ and the Congregational Churches. I know of the United Church and Church of Jesus Christ... | {
"pile_set_name": "StackExchange"
} |
Q:
OSX terminal tilde bash complete
On my Linux box, when I type
$ cd ~/Des[TAB]
it completes to ~/Desktop/.
But in OSX terminal doing the same thing expands to /Users/username/Desktop/.
This appears rather annoying to me as it 'jumps' and also takes more space. Can I somehow get the former behaviour?
A:
I hadn'... | {
"pile_set_name": "StackExchange"
} |
Q:
Linq: Split list by condition and max size of n
I want to transform an array:
["a", "b", "b", "a", "b", "a", "b"]
to
["a", "a", "b", "b", "a", "b", "b"] or ["b", "b", "a", "a", "b", "b", "a"]
I want to group the array in a way where a special condition matches. In my case when item == 'a' or item == 'b'. And thes... | {
"pile_set_name": "StackExchange"
} |
Q:
C# Linq merge multiple lists?
var results = from thing in AnArrayOfThings
let list = Function(thing)
???
select OneLongResultsList;
How can I merge all the "list" collections into one long list?
I'm new to linq and I can't use lambda expressions.
Basically, what I want to... | {
"pile_set_name": "StackExchange"
} |
Q:
Python: Get data BeautifulSoup
I need help with BeautifulSoup, I'm trying to get the data:
<font face="arial" font-size="16px" color="navy">001970000521</font>
They are many and I need to get the value inside "font"
<div id="accounts" class="elementoOculto">
<table align="center" border="0" cellspacing... | {
"pile_set_name": "StackExchange"
} |
Q:
custom html inside errorElement of jquery Validate
I'm putting my error message inside a div (errorElement) and giving it errorClass:"callout border-callout error, which I require to custom style it.
This is how it looks now:
<input type="text" id="email" name="email" placeholder="Enter your E-Mail Address"/>
<div... | {
"pile_set_name": "StackExchange"
} |
Q:
Variables did not replaced
I wrote some code to replace variables in docx tamplate file header.
List<SectionWrapper> sectionWrappers = this.wordMLPackage.getDocumentModel().getSections();
for (SectionWrapper sw : sectionWrappers) {
HeaderFooterPolicy hfp = sw.getHeaderFooterPolicy();
HeaderPart defaultHP =... | {
"pile_set_name": "StackExchange"
} |
Q:
DirectX or Hyper-V In google cloud?
Okay so basically i want to run some programs thath need Directx , a good alternative would be RemoteFX with Hyper-V but google cloud plataform dosnt support Hyper-V. And RDP dosnt support Directx. I do have any alternative for succesfully running those? Or its impossible?
I alr... | {
"pile_set_name": "StackExchange"
} |
Q:
Python List in Java
I'm using XMLRPC calls from java to python.
So my server in python has these remote method and use apache xmlrpc lib in java to make the calls.
So i always prefered to use Dictionary to return from the calls. Cause when i used dictionary, Object data type in java, was directly printing my value... | {
"pile_set_name": "StackExchange"
} |
Q:
Jquery File Upload - $_FILES array empty
Using Jquery File Upload. It's 'working' and uploading images & displaying the thumbs. However when I Submit the form in the handler if I dump $_FILES there's nothing there.
I'm basically using the Basic Plus example with autoUpload set to false. I was hoping that I would b... | {
"pile_set_name": "StackExchange"
} |
Q:
Change image on click in custom listview Android
In my custom listview I want to change Image when the image is clicked.
But currently when I click on Image, last row image is changed not the one on which I clicked.
My customAdapter classis below:
package com.zek.androidvoicechanger;
import java.util.List;
impo... | {
"pile_set_name": "StackExchange"
} |
Q:
learning C#, need help understanding this code
I am learning C# and I came to this "for" function and something really bothers me about it:
int[] arrayNumbers = new int[numberAmmount];
// take "numberAmmount" as 5 so numberAmmount = 5;
for (int i = 0; i < numberAmmount; i++)
{
Cons... | {
"pile_set_name": "StackExchange"
} |
Q:
How to rotate a dynamically created ListBoxItem on a Canvas?
In my WPF MVVM application I have a ListBox with Canvas as its ItemsPanel. The ListBox's items are dynamically created by the user when he clicks a button - the ListBox.ItemsSource is a list of items of my custom type stored in my MainViewModel which is ... | {
"pile_set_name": "StackExchange"
} |
Q:
pass multiple parameters to a javascript and update html content bases on both parameters + php loop
I have form that uses jquery to fetch mysql data with an external php page.
the script is essentially an autocomplete for an input field. trouble is that I have the input field in a loop, field ID is being determin... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I set default value in select without duplicate in list
I have select control in my web page:
<select class="form-control" name="user">
<#list sbUsers as sbUser>
<option value="${sbUser.login}">${sbUser.login}</option>
</#list>
</select>
But I need set current user like default value. Curr... | {
"pile_set_name": "StackExchange"
} |
Q:
Difference between executing php from the commandline and from the Http Side
What is the difference between executing php from command line and from HTTP? Do they use the same executable such as (php.exe or php-cgi.exe ( Apache or IIS ))? Do the results differ when they are executing from command line or HTTP?
... | {
"pile_set_name": "StackExchange"
} |
Q:
Approximation of smooth surfaces with polygonal meshes
I'm just getting started with Blender. It seems to be a nice tool, but like most 3D programs, it has a strange limitation: it seems to only render polygon meshes.
A polygon mesh is of course a set of perfectly flat surfaces connected by perfectly straight edge... | {
"pile_set_name": "StackExchange"
} |
Q:
convert plain string to xml format using Linux command
I want to convert "test@gmail.com" plain string to XML format string like "test@gmail.com"
https://coderstoolbox.net has exact function but i want to use Linux command to encode plain string. Is... | {
"pile_set_name": "StackExchange"
} |
Q:
Using Intent, to enable GPS doens't always work correctly. How do I fix
The below code enables me to turn the user's GPS on and off at will but at times this doesn't work correctly, although the icon for GPS scanning will be at the top of the screen in the user's notification bar the GPS icon will not be highlight... | {
"pile_set_name": "StackExchange"
} |
Q:
What does "(test1, test2, test3="3", test4="4", test5 = "5", test6 = "6")" do?
This question is based off some really odd code I recently found in a colleagues work. He claims not to know how it works only he copied it from somewhere else. That's not good enough for me, I want to understand what's going on here.
I... | {
"pile_set_name": "StackExchange"
} |
Q:
How to use UICollectionViewController in storyboard while still supporting ios 5.1?
It is a best practice to detect if a certain feature's class exists and degrade user's features depending on availability. I created UICollectionView in storyboard and a standard tableview to support ios 5.1 users. I then simply ch... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I fetch the VLAN tags using libpcap and C?
I am trying to parse a pcap file including different type of Network Packets (some are tagged as VLAN and some aren't) using #include .
here is my code so far:
pcap_t *pcap;
const unsigned char *packet;
char errbuf[PCAP_ERRBUF_SIZE];
struct pcap_pkthdr header;
pcap... | {
"pile_set_name": "StackExchange"
} |
Q:
In Python how to pipe a string into an executables stdin?
On Windows I have a program (prog.exe) that reads from stdin. In python I want to pipe a string as the input to its stdin. How to do that?
Something like:
subprocess.check_output("echo {0} | myprog.exe".format(mystring))
or (to make the args a list)
subpr... | {
"pile_set_name": "StackExchange"
} |
Q:
What should I tell other people about giving money to a Beggar?
This question asks whether, what, or how to tell other people about giving money to a beggar.
Scenario
I was seated inside the bus today and I saw a man begging for while selling some incense sticks boxes and he was wearing a mask for an unknown reaso... | {
"pile_set_name": "StackExchange"
} |
Q:
CMake can't find X11
I'm trying to compile Minetest 0.4.10 on Ubuntu 12.04.3 LTS with CMake, but I get this error:
andrew@rasts-tv:~$ cmake \Minetest-0.4.10
-- *** Will build version 0.4.10 ***
-- IRRLICHT_SOURCE_DIR =
-- IRRLICHT_INCLUDE_DIR = IRRLICHT_INCLUDE_DIR-NOTFOUND
-- IRRLICHT_LIBRARY = IRRLICHT_LIBRARY-... | {
"pile_set_name": "StackExchange"
} |
Q:
Translation of La Prise de la Bastille (song)
What is the translation of the old revolutionary song “La Prise de la Bastille”, particularly the following phrase:
R’li r’lan r’lan tan plan
Tire lire en plan
The lyrics can be found here and a recording from YouTube here.
The ”r’li” construction looks like nothi... | {
"pile_set_name": "StackExchange"
} |
Q:
Could anyone please examplify the garden path model in german?
I want to bring forth some examples of the garden path model in German and am reading the Wikipedia page but get stuck on the examples, for example,
Welche Politikerin hat die Minister getroffen?
If I am not wrong, it means "Which politician did the... | {
"pile_set_name": "StackExchange"
} |
Q:
Git history - find lost line by keyword
I had somewhere in my Git repository a line containing the word "Foo" a couple of hundreds commits before.
If there is any way to find its revision number where it was the last time without buying FishEye?
A:
That may be addressed by the pickaxe (-S) option of gitlog
git ... | {
"pile_set_name": "StackExchange"
} |
Q:
Get nETBIOSName from a UserPrincipal object
I am using the System.DirectoryServices.AccountManagement part of the .Net library to interface into ActiveDirectory.
Having called GetMembers() on a GroupPrincipal object and filter the results, I now have a collection of UserPrincipal objects
GroupPrincipal myGroup; /... | {
"pile_set_name": "StackExchange"
} |
Q:
Carousel View in Xamarin Forms NOT Loading different Templates
public DataTemplate CreateQuestionAnswerRadioButtonTemplate(string question, List<string> answers){
DataTemplate template = new DataTemplate(() =>
{
StackLayout parentLayout = new StackLayout()
{
... | {
"pile_set_name": "StackExchange"
} |
Q:
Creating an association list with element evaluation
So as far as I understand it you create association lists that look like
'((rose . red)
(violet . violet)
(chrysanthemum . who-knows))
My question is, what do you do if you want rose, violet, etc., to be evaluated before they're put into the alist?
For examp... | {
"pile_set_name": "StackExchange"
} |
Q:
Spring basic security confiugred userid/password not working
Our application is based on Spring-boot 2.0. I've enabled basic security by adding the following dependency to pom.xml:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<version>2.0.4.RELEAS... | {
"pile_set_name": "StackExchange"
} |
Q:
Opening .exe from java Codes
Here is my code I wanted to open ODBC bridge through Java
Code:
try{
Runtime r = Runtime.getRuntime();
Process p = null;
try{
String s = "C://windows/System32/odbcad32.exe";
p=r.exec(s);
... | {
"pile_set_name": "StackExchange"
} |
Q:
Equality of GDI+ Regions
Why does the assertion fail in the following code? Why aren't regions a and b equal?
Region a = new Region(new RectangleF(0.0f, 0.0f, 10.0f, 10.0f));
Region b = new Region();
b.MakeEmpty();
b.Union(new RectangleF(0.0f, 0.0f, 10.0f, 10.0f));
Debug.Assert(a == b, "Regions not equal... | {
"pile_set_name": "StackExchange"
} |
Q:
How to split Nest.js microservices into separate projects?
Let's say I want to create a simplistic cinema-management platform. It needs few microservices: movies, cinemas, payments, etc.
How would you go about doing it in Nest.js? I don't want them in the same big folder as that feels like making a monolith. I wan... | {
"pile_set_name": "StackExchange"
} |
Q:
Is a paradoxical partition of a set smaller than the power set of that set?
When it is said that almost every model of $\sf ZF + \neg AC$ do have paradoxical partitioning $\sf PP$, that is: there exists a set $X$ and a partition $P$ of $X$ that is strictly larger than $X$. Is it also provable that: $$|P|<|\mathcal... | {
"pile_set_name": "StackExchange"
} |
Q:
Find the index of a string in Javascript with help of first three characters
I have numerous tsv files each with header row. Now one column name in header row is age. In few files, column name is age while in other files it has EOL charcter such as \r \n.
Now how can i use str.indexOf('age') function so that i get... | {
"pile_set_name": "StackExchange"
} |
Q:
Copy constructor Class instantiation
Here is my class that implements copy constructor
public class TestCopyConst
{
public int i=0;
public TestCopyConst(TestCopyConst tcc)
{
this.i=tcc.i;
}
}
i tried to create a instance for the above class in my main method
TestCopyConst testCopyConst = ne... | {
"pile_set_name": "StackExchange"
} |
Q:
How to disable colorbar in yhat's python ggplot?
How does one disable colorbar in a plot like so:
ggplot(
aes(x='X',
y='Y',
color='C'),
data=data_df
) + geom_line() + facet_grid("U", "V")
The problem is that C is of a large cardinality and the point of the plot is just to see the various s... | {
"pile_set_name": "StackExchange"
} |
Q:
Windows 7 Window behavior in Ubuntu?
Is it possible to get the windows 7 window behavior in ubuntu?
The specific part I'm talking about is the gestures thing where you can throw your window to one side and have it resize to take up that side, or to the top and have it maximize.
A:
Not sure exactly if it does th... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there any way to export the html page's data into PDF?
I have an html page which contains multiple selectboxes, labels, input fields and checkboxes.
I want to export entire html page into PDF. is there any way I can do so? Any javascript or library for exporting HTML into PDF?
A:
If you absolutely need to do ... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.