text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
Is there an alternative to Runtime.getRuntime().exec()
Just wondering, if there is something better, newer, safer, faster, etc than Runtime.getRuntime().exec().
I want to run another process from my application on linux, and this is the only way i know how. Would be nice to have an alternative.
A:
How about Proc... | {
"pile_set_name": "StackExchange"
} |
Q:
Macro to add formulas where the are multiple rows above
I've been doing the company financial summaries, I've been doing a lot of the leg work manually (sorting by product, company, etc.). The problem is I've been using the below macro to add in two rows, so I can work out spends per customer.
Now what I want to d... | {
"pile_set_name": "StackExchange"
} |
Q:
compilation error in c statements
I am trying to run this code.this code runs successfully.But when i change variables to constant numbers i get compilation error.
My code that works fine:
int a =5,b=6,c=7;
int d;
d = a,b,c;
printf("%d",d);
as i run the code its output is 5.
but when i run this segment of co... | {
"pile_set_name": "StackExchange"
} |
Q:
Mysql - 'Select max' from multiple joined tables doesn't return correct values
I have two tables - one is a list of addresses, and the other of attendance dates and EmployeeIDNumbers to identfy the engineer who attended. An engineer may have attended an address multiple times. I am trying to select the address n... | {
"pile_set_name": "StackExchange"
} |
Q:
replace List.foreach to LINQ
I'm new to LINQ and doing some experiments with it.
Sorry if it is a duplicate but I cant seem to find proper guide (for me) to it
I want to replace this code :
DataTable table
List<string> header = new List<string>();
table.Columns.Cast<DataColumn>().ToList().ForEach(col => header.Ad... | {
"pile_set_name": "StackExchange"
} |
Q:
Looping stops after the first item in the list
places = []
persons = []
unknown = []
newlist = []
filename = 'file.html'
tree = etree.parse(filename)
input_file = open(filename, 'rU')
def extract(tree):
<some code>
return places
return persons
return unknown
def change_class():
extract(t... | {
"pile_set_name": "StackExchange"
} |
Q:
Specify App Delegate for Storyboard in iOS
I'm trying to change my App's main interface which currently is set to a .xib file in the project's "General Configuration Pane" to a new storyboard.
I have created the storyboard, and selected it as the main interface.
But when I launch the application in simulator, I ge... | {
"pile_set_name": "StackExchange"
} |
Q:
Swift 3.0 draw circle with same start and end angle results in line
I've written following code to draw a rect with a whole in it:
fileprivate let strokeWidth: CGFloat = 5
let shapeLayer = CAShapeLayer()
shapeLayer.strokeColor = UIColor.white.cgColor
shapeLayer.lineWidth = strokeWidth
shapeLayer.fillColor = UICol... | {
"pile_set_name": "StackExchange"
} |
Q:
FragmentStatePageAdapter Doesn't Pause Fragments
I'm using a FragmentStatePageAdapter (android.support.v4) and I have setOffscreenPageLimit set to 2, so it creates and stores Fragments 2 ahead and 2 behind of the currently displayed Fragment.
Problem:
When the off-screen Fragments are created, they are also imme... | {
"pile_set_name": "StackExchange"
} |
Q:
External Style Sheet does not work with `h1` in XAMPP
I am trying to make a navigation bar in a separate file, so that I may include it with php later. The file, nav_menu.php, contains a h1 tag, a p tag, and an ul containing a tags.I made the CSS in an External Style Sheet. I styled all the elements. The h1 tag di... | {
"pile_set_name": "StackExchange"
} |
Q:
RxJava - Can't create handler inside thread that has not called Looper.prepare() - API 16
Full disclosure, I'm still learning RxJava, it's a bit hard to grasp the idea if many of the tutorials available are not newbie friendly.
This error happens on API 16, works fine on API 23 & above (have tested below).
As you ... | {
"pile_set_name": "StackExchange"
} |
Q:
NSMutableArray parsing csv not working?
I have this code where I use NSMutableArray to parse a csv file. There are no errors that stop me from running the app however the map doesn't display anything.
NSString *csvFilePath = [[NSBundle mainBundle] pathForResource:@"Data2" ofType:@"csv"];
NSString *dataStr = [NS... | {
"pile_set_name": "StackExchange"
} |
Q:
How to insert xml text & value in html option text & value
I want to insert a option tag with text and value from reading xml tags.
Here I want to insert <option value> Text</option> like this way below:
<option value[from each xml col1]> Text [from each xml col2] </option>
Here is the code:
var xml = ' <row id="... | {
"pile_set_name": "StackExchange"
} |
Q:
Color each point individually in column chart highcharts
I have a highchart as shown in the fiddle
series: [{
data: [
[ 'Actual Wishlist Requests' , 6000],
[ 'Actual Approved Wishlists', 3000],
[ 'Actual Research Completed', 2000],
... | {
"pile_set_name": "StackExchange"
} |
Q:
Jar dependencies compile time and runtime
If by default, when I produce a jar application, the dependencies are not include, does that mean that the user should download all the dependencies of my app to use it?
Why includes dependencies in jar is not the default thing?
How can I expect users to have/download all ... | {
"pile_set_name": "StackExchange"
} |
Q:
Compile error: Argument not optional vba excel
I'm trying to write a code where I input an image after checking the info in each sheet of my workbook. Since I added for each to the code it stopped working and started giving me this compile error message, the code works without the for each but i want it to be auto... | {
"pile_set_name": "StackExchange"
} |
Q:
What happens if I do not call pthread_mutex_destroy when using PTHREAD_PROCESS_SHARED
On Linux, a mutex can be shared between processes by using PTHREAD_PROCESS_SHARED attribute then saved in a mapped file that may be used by many processes.
This is an example in https://linux.die.net/man/3/pthread_mutexattr_init ... | {
"pile_set_name": "StackExchange"
} |
Q:
Jenkins DSL add secret file
I would like to add secret file to my job, but I can't find which keyword from Jenkis DSL it is, any suggestions?
In xml it looks like this:
<project>
...
<properties>...</properties>
<scm class="hudson.scm.NullSCM"/>
<builders>...</builders>
<buildWrappers>
<org.jenkinsci.plugins.cr... | {
"pile_set_name": "StackExchange"
} |
Q:
Insert multiple rows from one AJAX POST into database using PHP?
Post header:
seasonString: Sommer,Hebst,Frühling,Winter
holidaywishString: 3,4,7,8
PHP:
//Insert Seasons data
$sqli="INSERT INTO seasons(season)VALUES('{$mysqli->real_escape_string($_POST['seasonString'])}')";
$insert=$mysq... | {
"pile_set_name": "StackExchange"
} |
Q:
What exactly is an instance in Java?
What is the difference between an object, instance, and reference? They say that they have to create an instance to their application? What does that mean?
A:
An object and an instance are the same thing.
Personally I prefer to use the word "instance" when referring to a spec... | {
"pile_set_name": "StackExchange"
} |
Q:
Spring/Angular get current user and save post to that user
Sorry, I am back with just one more question. I have am using Spring security and Angular front end. My question is once I log in, how do I save a post to the current user.
Post model:
@Id
@GeneratedValue
private Long id;
private String title;
@Column(... | {
"pile_set_name": "StackExchange"
} |
Q:
Interacting with box2D objects
How can I interact with an object in box2d, I'm completely new to this so I have no clue what to do. The box is created like this:
bodyDef.type = b2Body.b2_dynamicBody;
fixDef.shape = new b2PolygonShape;
fixDef.shape.SetAsBox(0.5, 0.5); // Half-Width, Half-Height
bodyDef.position.x... | {
"pile_set_name": "StackExchange"
} |
Q:
Core Data Detail View from To-Many relationship
I'm struggling with some aspects of Core Data, namely setting up a UITableView to list data from a to-many relationship.
I have three entities, Teams, TeamDetails and Players:
In the first view, I list the names of all the teams in the Teams entity, then tapping eac... | {
"pile_set_name": "StackExchange"
} |
Q:
Its or Their to refer to a company?
The company will issue (their, its) annual report next month.
In this case, should I use "its" or "their"?
A:
Both its and their are pronouns. While its is a singular pronoun, their is a plural pronoun.
A company is a collective noun. In AmE, Company takes a singular verb for... | {
"pile_set_name": "StackExchange"
} |
Q:
Android READ PHONE STATE?
I'm trying to make app to READ PHONE STATE and when the phone state is changed to display Toast with the current state. But when I start it, the app stops unexpectedly.
my class :
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.telepho... | {
"pile_set_name": "StackExchange"
} |
Q:
how to get a textbox value from dynamically created div
I am creating dynamic div with html elements and i need to get value that textbox
This is my dynamic created content now i need to get the
<div id="TextBoxContainer">
<div id="newtextbox1"> // this id is dynamic id
<div class="row cells2">
<div c... | {
"pile_set_name": "StackExchange"
} |
Q:
NoSuchMethodError while parsing xsd to generate classes using JAXB
I'm new to JAXB. I'm trying to parse the xsd to generate the jaxb classes.
It works fine with other xsd files but the one I'm trying to parse now is generating exceptions.
This is the stack trace
parsing a schema...
Exception in thread "main" ja... | {
"pile_set_name": "StackExchange"
} |
Q:
Can ggplot change the direction of axis.ticks from downward to upward?
Something I want to realize is like the following:
You see the direction of the axis.ticks is upward.
So can ggplot make the direction of axis.ticks upward?
For now I can realize this
You can see the axis.ticks.length have been set to zero w... | {
"pile_set_name": "StackExchange"
} |
Q:
CSS framework with no Javascript
I need to built a website but I have specific instructions to not use javascript. In addition to that I also have to make one that work for iPhone/mobile devices (also no javascript). It's fine for me to switch style sheets base on devices with some PHP magic, so it doesn't have to... | {
"pile_set_name": "StackExchange"
} |
Q:
I am having trouble starting my node app in Bluemix
I am trying to start my node app in Bluemix and getting a weird error. My app works locally. I have copied a snippet out of my app below.
var express = require("express"),
app = express();
app.get("/", function (request, response) {
response.render("in... | {
"pile_set_name": "StackExchange"
} |
Q:
Graphite: How to make historic whisper data available through web app
I've recently reconfigured my graphite setup from a single carbon-cache instance to several carbon-cache instances. As I needed to cook this up on a new host without bringing down the old graphite server while setting up, I now have a whisper di... | {
"pile_set_name": "StackExchange"
} |
Q:
PrimeFaces PickList : two String fields filter
I was wondering if it's possible to have a two fields filter with a picklist of primefaces.
I tried this but it's not working. I would like to filter on firstname and name but they are in two different fields.
<p:pickList value="#{bean.usersDualModel}" var="user"
... | {
"pile_set_name": "StackExchange"
} |
Q:
When to use {#v.attrib} vs {!v.attrib}?
I have seen some uses of {#v.attrib} in a few of lightning components, and I'm a person who is used to {!v.attrib}. Is there a difference between them or is there a scenario where '#' has to be used/is better instead of '!'?
Thanks in advance for your reply!
A:
If you want... | {
"pile_set_name": "StackExchange"
} |
Q:
for remembering passwords, sessions or cookies or both?
If a user decides to remember their password based on a checkbox when logging in, is it good practice to set both session and cookies? or would it be better to just do cookies?
I think I understand to do sessions when user logs in and DOES NOT like to rememb... | {
"pile_set_name": "StackExchange"
} |
Q:
Hibernate HQL Projection Using Entities ManyToMany Definitions Issue
Problem: HQL query is not returning any results when I reference an entities collection field as part of the HQL statement. It works for one HQL projection for example like this:
select inc.categoryTypes as categoryTypes from IncidentEntity inc w... | {
"pile_set_name": "StackExchange"
} |
Q:
Selection field type elements cannot be shown. How to properly add a custom entity representation to Sulu form?
Following by Sulu documentation, I try to add selection field type to display collection type resource (Room object) in admin form. Currently, I can select these elements from list,
select element
select... | {
"pile_set_name": "StackExchange"
} |
Q:
Android back stack one fragment, when pressing hardware back button shows the back stacked one.
Android back stack one fragment, when pressing hardware back button shows the back stacked one.
Below is my expected scenario:
I have one activity with navigation drawer. Each navigation element navigate to different ... | {
"pile_set_name": "StackExchange"
} |
Q:
Use Android phone as ARM dev board?
Is it possible to have a similar peripheral control with Android then we have when making device drivers?
I'm searching for a way to turn off all peripherals on a Android phone (e.g. Display, Wi-Fi, GPS) to put the phone on a power saving mode (1-5 mA).
Basically, I want to dev... | {
"pile_set_name": "StackExchange"
} |
Q:
Ethereum implementation of a non-fungible but divisible token? (ERC721 seems not to work for that)
I am struggling currently with finding the right implementation possibility for a token with the following properties:
Asset-backed token based on a non-fungible asset (like a piece of art)
More than one owner per t... | {
"pile_set_name": "StackExchange"
} |
Q:
Add GraphStream graph into my custom jPanel
I am working on GraphStream library. For now, When I run my program it opens new window for my graph and separate window for my graph. I tried to create a JFrame and add JPanel into JFrame, after all this I tried to add graph into my JPanel but it says that graph object ... | {
"pile_set_name": "StackExchange"
} |
Q:
Will exception be thrown back if try catch is already present with only a specific catch?
I have a java method as follows regarding exception throws
public void wrapException(String input) throws MyBusinessException {
// do something
}
MyBusinessException extends Exception class and returns any(every... | {
"pile_set_name": "StackExchange"
} |
Q:
Best way to secure ASP.NET Web API 2 where multiple client use it
What is the best way to secure a Web API when you have multiple different clients to use? Each client should have its own API key to connect with.
Now I have read different things but I still have some questions.
I have found this one: http://bitoft... | {
"pile_set_name": "StackExchange"
} |
Q:
Migrating existing database to Amazon RDS
How can I import existing MySQL database into Amazon RDS?
A:
I found this page on the AWS docs which explains how to use mysqldump and pipe it into an RDS instance.
Here's their example code (use in command line/shell/ssh):
mysqldump acme | mysql --host=hostname --user=... | {
"pile_set_name": "StackExchange"
} |
Q:
Android - ListView scrollig too slow
I have a ListView that has one image and two lines of texts for each element (organized by a RelativeLayout). It works ok, but it's too slow and I know where the problem comes from!
This is the getView() method for the custom adapter that I'm using:
public View getView(int posi... | {
"pile_set_name": "StackExchange"
} |
Q:
MVC Razor RadioButtonFor in ForEach loop
I am new to MVC. I am trying to render questions with options using radio buttons.
Here is what I have tried. I am able to display questions with options using radio buttons, but I can select only one radio button across the questions.
Model:
public class Check... | {
"pile_set_name": "StackExchange"
} |
Q:
CSS Browser Detection
I dont understand why the HTML5 website I am working on is different in all browsers. I know it must be CSS, but I dont know what.
on Chrome: http://slackmoehrle.com/chrome.png
on Safari: http://slackmoehrle.com/safari.png
on IE 7: http://slackmoehrle.com/ie7.png
on FireFox Mac: http://slackm... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I debug a stack overflow?
I was wondering if anyone has had a similar experience. I am trying to trace the source of a problem but am coming up with nil. I have a project in Delphi 5 which has Report Builder reports on it. I needed an upgraded version of reportbuilder so I tried running the project in Delph... | {
"pile_set_name": "StackExchange"
} |
Q:
How to collect a number of asynchronous callbacks?
Are there any techiques to collect a number of gwt-rpc service callback results?
I have a dialog window used to create new or edit existing object. These objects have a number of references to other object. So when user creating or editing an object he may pick on... | {
"pile_set_name": "StackExchange"
} |
Q:
Steam error: ''You are missing the following 32-bit libraries, and Steam may not run: libGL.so.1''
Yeah like i said in the title it brings up the terminal that is installing the plugin then it fails to download them. Then it closes. Next it brings up
You are missing the following 32-bit libraries, and Steam may n... | {
"pile_set_name": "StackExchange"
} |
Q:
Converting a json schema to ng2-tree treemodel in Angular 4
I want to display in Tree view of Json in UI which can be edit and save dynamically.
Currently I am trying with TreeModel in Angular 4 but here Json schema and TreeModel schema is different.
I searched for the same in internet but could able to find.
1.Is... | {
"pile_set_name": "StackExchange"
} |
Q:
How to invite a users friends to an event? Facebook Graph API
I have an application using the Graph API. I have it creating events for the user, but would like to let the user invite their friends from our site instead of having to go to the events Facebook page. Does anyone know of the request I have to send the ... | {
"pile_set_name": "StackExchange"
} |
Q:
Why is my class variable changing its value between methods?
I am trying to load a bitmap animation to the screen. I have a float variable holdTime that is specified to hold the "holdtime" value for the animation. In my constructor I set the holdtimevariable to 0.1f but when I try to access the method in the class... | {
"pile_set_name": "StackExchange"
} |
Q:
Dependency on 3rd party at runtime?
We have created an applet with javafx and it seems that in order to load the applet several jar, jnlp and js files are required to be downloaded from dl.javafx.com. I tried to work out which files were needed so I could host them on our own server but after spending an hour or s... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I create a /* comments section with /// like in XCode?
In XCode, there is an add-on called vvdocument, which can detect three / hits, and transfer /// into:
/*!
* @author Robbie Yi JIANG, 29-Jan-2016 14:01:45
*
*
*/
How can I do this in Vim.
A:
The method in my earlier answer doesn't transform well t... | {
"pile_set_name": "StackExchange"
} |
Q:
Log scale with a different factor and base
I see that set_xscale accepts a base parameter, but I also want to scale with a factor; i.e. if the base is 4 and the factor is 10, then:
40, 160, 640, ...
Also, the documentation says that the sub-grid values represented by subsx should be integers, but I will want floa... | {
"pile_set_name": "StackExchange"
} |
Q:
Can't upload files larger than 97.66 KB in Yii2 Framework with Kartik's FileInput widget
When I try to upload a file larger than 97.66 KB I get this error (translated from spanish):
"File is too large. Its size cannot exceed 97.66 Kib."
This is my widget setup:
Modal::begin([
//'title'=>'File Input ... | {
"pile_set_name": "StackExchange"
} |
Q:
Ordering a List by string to find the newer version C#
I have a folder with several Directories that are named after a version of an update such as UPDATE_20080311_3.5.9.
I need to find the latest update on that list by veryfing the "3.5.9", I made a code to parse the name and add just the version to a list.
Is th... | {
"pile_set_name": "StackExchange"
} |
Q:
Resolving NUnit "No suitable constructor was found" message
I have a unit test class:
[TestFixture]
public class SomeClassIntegrationTests : SomeClass
With public constructor:
public SomeClassIntegrationTests (ILogger l) : base(l)
{
}
When I attempt to run the test I get "No suitable constructor was found" error... | {
"pile_set_name": "StackExchange"
} |
Q:
Number of Strings with two specific letters
How many ways can you construct a string four letters (from 26 alphabet characters) that have both the letters j and k in them?
A:
It is easier to count the complement.
There are $25^4$ strings that don't have $j$, and $25^4$ that don't have $k$. If we add these, we wi... | {
"pile_set_name": "StackExchange"
} |
Q:
Read hexadecimal from file with scilab
I have a file that looks like the following:
Time M1:Address 480008C0
0 79F9446F
0.000125 7AE7446B
0.00025 7BA8446F
...
It is 2 numbers separated by a tab, one is a hexadecimal number. I am looking to read these into a decimal array in scilab. I have tried to open an... | {
"pile_set_name": "StackExchange"
} |
Q:
AngularJS with TypeScript $resource error: "Response does not match configured parameter"
I have an AngularJS + TypeScript app and I keep getting the following error:
Error: $resource:badcfg
Response does not match configured parameter
Error in resource configuration for action: Expected response to contain an ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to know whether the window is maximized or minimised in extjs?
Does any one know how to check whether the form is maximised or minimised in IE8.
Raj
A:
Its solved by using this code:
var S = this.tabpanelFormation.getPosition();
if (Ext.isIE8 && S[0] == 751) {
this.tabpanelFormation.setPagePo... | {
"pile_set_name": "StackExchange"
} |
Q:
using javax.tools.JavaCompiler etc
I am looking for working examples of Oracle's Java Compiler API usage. I want to build something close to javac to customize/extend errors logging capabilities.
A:
See the STBC (the SSCCE Text Based Compiler). The source is available in stbc.zip.
| {
"pile_set_name": "StackExchange"
} |
Q:
MYSQL Select From 2 Table And Group Them
One of them keep hotel's information and one of them keep their price within the date range.
My hotel information table
CREATE TABLE IF NOT EXISTS `yurtici_oteller` (
`yo_id` int(10) NOT NULL AUTO_INCREMENT,
`yo_bolge_id` int(10) NOT NULL,
`yo_konaklama` int(10) NOT N... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I work with Multiple Recordsets in C++ ODBC
I am trying to streamline a complex process of storing information in multiple tables and them linking them to a central table. The linking occurs using IDENTITY values generated in each table to provide the unique linking. I know I can use a combination of SET ... | {
"pile_set_name": "StackExchange"
} |
Q:
Capitalizing a lower case screen name at the beginning of a sentence
When starting a sentence with a lower case pseudonym, such as a screen name of a user account on a website, should it be capitalized? Or are there different cases where it would and would not be appropriate to do so?
My curiosity was sparked by t... | {
"pile_set_name": "StackExchange"
} |
Q:
Laravel - Disable Updated At when updating
Get a problem with update using query builder on laravel 5. I've tried to disabled the updated_at but keep failing.
Here is my code:
$query = StockLog::where('stock_id', $id)->whereBetween('created_at', $from, $to])->update(['batch_id' => $max + 1]);
I've tried 2 way... | {
"pile_set_name": "StackExchange"
} |
Q:
Call C standard library function from asm in Visual Studio
I have a problem with calling C function from asm project created in visual studio (Win10 x64, Visual Studio 2015). Project consist of one asm file:
.586
.model flat, stdcall
option casemap:none
includelib msvcrt.lib
ExitProcess PROTO return:DWORD
extern ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to check that all files in a file system are can be read without errors?
I'm using an external hard drive with an ext4 file system to make backups. The backup software I use (faubackup) copies the file hierarchy 1:1 into a timestamp-named folder on the hard drive, and makes incremental backups in such a way th... | {
"pile_set_name": "StackExchange"
} |
Q:
create JSON with php
Sorry if this seems obvious but all the searches I am doing for this are returning complex answers and I have been struggling with this all day... I have been trying to create json data in PHP and really I want to send variables into the json data. I have not been able to do that so I followed... | {
"pile_set_name": "StackExchange"
} |
Q:
Return a list without using NHibernate object
Suppose I have an interface.
public interface IBlogRepository
{
IList<Blog> Blogs(int pageNo, int pageSize);
int TotalPosts();
}
Now I created a class to implement it and use NHibernate.
using NHibernate;
using NHibernate.Criterion;
using NHibernate.Linq;
usin... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I correctly output an array of objects in the reverse order from mongodb?
Comments are saved in an array of objects. How can I correctly output them in reverse order (comments from newest to oldest)?
My db:
{"_id":{"$oid":"5e3032f14b82d14604e7cfb7"},
"videoId":"zX6bZbsZ5sU",
"message":[
{"_id":{"$oid":... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I find out how many arguments are being passed
I am writing some C code on Linux. I want to loop through the *argv[] parameter being passed to main, but I don't know how to stop before getting a seg fault.
i = 0;
while (i < sizeof(argv)) {
printf("%s\n", argv[i]);
i ++;
}
This produces a seg... | {
"pile_set_name": "StackExchange"
} |
Q:
rails select records which have duplicates
For my case i want to select all duplicates records from table
for example
table1
id | name | sub_name
1 | joe | j1
2 | tim | t1
3 | ben | b1
4 | joe | j2
5 | tim | t2
i vant to select
[#<table1 id: 1, name: "joe", sub_name: "j1">, #<table1 id: 4... | {
"pile_set_name": "StackExchange"
} |
Q:
How does one effectively negotiate rent?
I'm going to rent an apartment in a major urban area in the next few months. When I drive around the area where I want to rent I see numerous "For Rent" signs. Also when I look online there are numerous listings. Given the abundance of properties for rent... and from a s... | {
"pile_set_name": "StackExchange"
} |
Q:
Understanding the shape of tensorflow placeholders
I am reading this code and I would like to understand about its implementation.
One of the first things that I would like to know, is that what is the shape of some tensor objects (placeholders) such as x_init, xs, h_init, y_init, y_sample, etc.
I wrote a line o... | {
"pile_set_name": "StackExchange"
} |
Q:
A Borel subset of a topological space
Is every Borel subset of a topological space $(X, \tau)$ either open or closed?
I'm thinking that if $B \in \mathcal B(X)$, then there are many possibilities:
$B$ is open for $\tau$, or
it is the complement of some open set $B$ in $\tau$, and so closed, or
$B = \bigcup_{n=1}... | {
"pile_set_name": "StackExchange"
} |
Q:
Control order of script executions in test_package
Is it possible to control the order in which test_package executes testing scripts? I would like to start by executing some code that creates some objects shared by all individual tests. Therefore, this script needs to be executed first, before the actual test-bla... | {
"pile_set_name": "StackExchange"
} |
Q:
Why does the universal cover of $GL^+_n$ not admit finite-dimensional representations?
Let $GL^+_n \subset \mathbb{R}^{n \times n}$ be the subgroup of real matrices with positive determinant and $\widetilde{GL}^+_n$ be its universal cover. Why does $\widetilde{GL}^+_n$ not admit finite-dimensional representations?... | {
"pile_set_name": "StackExchange"
} |
Q:
Average slope of a curve (right side of the equation) intuition
Okay, I can somehow understand why average slope of a curve is defined in such a fashion:
Let $f$ be a continuous function on an interval $[a,b]$. Then, we define its average over $[a,b]$ to be the number
$$
f_{\operatorname{avg}} := {1 \over b-a} \i... | {
"pile_set_name": "StackExchange"
} |
Q:
Change on column based on any previous values in another column
I have a dataframe like so:
foo <- c(rep(FALSE, 5), TRUE, rep(FALSE, 4))
rank_order <- seq(11,20)
df <- data.frame(rank_order = as.numeric(rank_order),
foo = foo)
What I'd like to do is add one to every value of rank_order following... | {
"pile_set_name": "StackExchange"
} |
Q:
How to divide paper up into smaller pages in ConTeXt?
I need to create some cards, of various sizes, cut from larger letter (8.5" x 11") pages. These are for putting in different sized pocket charts for displaying information in a classroom.
All are fairly simple, with header (just like on regular pages) plus some... | {
"pile_set_name": "StackExchange"
} |
Q:
Decomposition of $sl_2(\mathbb{C})$
Let $L = sl_2(\mathbb{C})$. We call $L = H_0 \oplus H_1 \oplus H_2$
an $orthogonal \ decomposition$ if all components $H_i$ of decomposition are Cartan subalgebras and pairwise orthogonal with respect to the Killing form.
Now, suppose that $H_0$ is a Cartan subalgebra consisti... | {
"pile_set_name": "StackExchange"
} |
Q:
How to send message to JMS server from one machine and receive that from another machine in JBoss 7
I am trying to send message(TextMessage) to JMS server from my laptop, then I am trying to receive that message from another laptop. I am using JBoss AS 7.1. My both laptops are connected in same network.
When I am ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to showing value on dropdown list form auto select value from database
i have a from to edit/ update data . on colomn input like name ,email ,date i dont have a problem because this value can e displayed at this colomn like this :
<div class="item form-group">
<label class="control-label c... | {
"pile_set_name": "StackExchange"
} |
Q:
hard code custom field for custom post type in wordpress
I have created a custom post type in wordpress called videos. When the admin adds a video he also needs to provide a youtube-id. This can be done by selecting the appropriate custom field from the drop-down list and then entering the ID.
I was wondering thou... | {
"pile_set_name": "StackExchange"
} |
Q:
Handling Roo generated AspectJ files in Eclipse
I have generated a sample roo project using command prompt and then imported it to the eclipse.But i found that most of the important files are in aj extension.How can i change these files into java files.I want to do this in eclipse.
A:
If you want the .aj files t... | {
"pile_set_name": "StackExchange"
} |
Q:
Error: expected specifier-qualifier-list before ‘TR’
I have a problem defining my structure inside the union on Bison
I made a structure
typedef enum {Binary_Op,Uni_Op,Variable, Const} Tag_Type;
typedef struct tree
{
Tag_Type Tag;
union
{
struct
{
char op;
stru... | {
"pile_set_name": "StackExchange"
} |
Q:
How to sort a Map[string]int by its values?
Given this code block
map[string]int {"hello":10, "foo":20, "bar":20}
I would like to print out
foo, 20
bar, 20
hello, 10
In the order of highest to lowest
Thanks!
A:
Found the answer on Golang-nuts by Andrew Gerrand
You can implement the sort interface by writing th... | {
"pile_set_name": "StackExchange"
} |
Q:
How to make smooth change of css property while scrolling?
I have a task - my navigation block has background property background: rgba(0,0,0, 0);
I need to smooth change its opacity from 0 to 1 while scrolling, its no problem, but the end of animation (i mean the moment when opacity of background will reach 1) is... | {
"pile_set_name": "StackExchange"
} |
Q:
Null reference in a foreach over "Table.Rows"
In the line foreach (DataRow Row in Table.Rows), I'm getting a NullReferenceException.
The program is in an emulator in C#. When I debug it and it crashes, it highlights the word foreach in yellow. I've pasted my whole code below.
using System;
using System.Collectio... | {
"pile_set_name": "StackExchange"
} |
Q:
SAP UI5 embed manifest.json right
I just wrote the description file for my UI5 application.
Now I have these questions:
Where and how can I embed the manifest.json in my project correctly?
How can I test if it's working fine? (correctly embedded)
Is the "start_url": "" similar to initialPage of the index.html?
... | {
"pile_set_name": "StackExchange"
} |
Q:
Entity Attempting to update incorrect table / multiple instances of IEntityChangeTracker issue
This is probably a stupid question but here I go anyways.
Some facts.
Im using entity 6.0.0.0 according to my refs.
Im hitting an azure sql db.
The project is based of a mvc default template thingo.
So I'm attemptin... | {
"pile_set_name": "StackExchange"
} |
Q:
Permanent redirect from one domain to another but same host
I had domain name which expired today and I have registered new domain with same name but different extension. New domain is in the same host where was old domain... just from http://example.com become http://example.net
Now I have added in .htaccess this... | {
"pile_set_name": "StackExchange"
} |
Q:
How to implement drag-drop directive for Ionic?
//long-press.directive.d.ts
import { ElementRef, EventEmitter, OnDestroy, OnInit, NgZone } from '@angular/core';
import { Gesture } from 'ionic-angular/gestures/gesture';
export declare class LongPressDirective implements OnInit, OnDestroy {
zone: NgZone;
int... | {
"pile_set_name": "StackExchange"
} |
Q:
score increase the chance of apperance
Hello I'm developing a game that each time a user blows a block the users get 1 point and the point get added to an overall score while the game is running.
the game consists of 4 standard views what i want to be done is that the more the chance increase the more a background... | {
"pile_set_name": "StackExchange"
} |
Q:
getaddrinfo ENOTFOUND when using tedious in node.js
I'm trying to connect to a local SQL Express server using Tedious but keep getting
failed Error: getaddrinfo ENOTFOUND
Am I using the wrong address here?
var Connection = require('tedious').Connection;
var config = {
userName: 'sa',
password: 'mypas... | {
"pile_set_name": "StackExchange"
} |
Q:
How to find a time is one hour before and within my custom time in iOS
I need to start download exactly one hour before or within my custom time.
For example I should start to download at 7 AM or with 8 AM (8 AM is my custom time). How I can achieve this. the following is my code,
AppDelegate * iDelegate = (AppDe... | {
"pile_set_name": "StackExchange"
} |
Q:
Trying to save vtk files with tvtk made from NumPy arrays
I'm trying to use tvtk (the package included with Enthought's Canopy) to turn some arrays into .vtk data that I can toss over to VisIt (mayavi complains on my OS (Mac OS X). I found what looked like the solution here (Exporting a 3D numpy to a VTK file for ... | {
"pile_set_name": "StackExchange"
} |
Q:
What cracked Raphael's shell?
In TMNT(2014), there is a point near the climax where Raphael hesitates saving Leonardo because his shell is cracked and tells Donatello to duct tape it. However, it's never shown in the movie when his shell is actually cracked. Even early in the movie, his shell has duct tape on it... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.