text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Where can i find jpa orm.xml usage samples
I am trying to see some usage samples of JPA orm.xml. If some one direct me to a link,
The schema is here,
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd
There are lots of samples of each mapping type here,
http://en.wikibooks.org/wiki/Java_Persistence
Lots of examples h... | common-pile/stackexchange_filtered |
malloc function assigns all data to same memory address
Now, when I print each element in my block array, each one has the same address. For example:
ints: 20 bytes stored at 0xbffa84fc
doubles: 80 bytes stored at 0xbffa84fc
chars: 8 bytes stored at 0xbffa84fc
Students: 1008 bytes stored at 0xbffa84fc
Im... | common-pile/stackexchange_filtered |
Pygtk: How do I change the treestore color of a row?
Currently I am developing a tool by using Python with Gtk+ library. And I met an issue here as $subject. Is there any effective way for changing the treestore "1/8"'s background color to red ? Something like the below image:
http://imagebin.ca/v/1pZgJ61cWi9D
I use tr... | common-pile/stackexchange_filtered |
How can I programmatically identify whether MS Chart Controls for .net v3.5 SP1 are installed (for inclusion in an Inno Setup script)?
I have an application which uses MS Chart Controls for .net v3.5 SP1 and as part of the installer, I currently include the chart controls and install them every time the installer runs.... | common-pile/stackexchange_filtered |
Ban Indexable Types in TypeScript
I am trying to search for a tslint rule in tslint.yml that will flag out any use of Indexable Types (e.g. { [key: string] : string }) to instead use TypeScript Records (e.g. Record<string, string>), but with no luck at the moment.
I came across a tslint rule known as Ban-Types, which b... | common-pile/stackexchange_filtered |
Detailed diff between two dacpac files
I am using the sqlpackage utility and MSBuild to generate source and target .dacpac files from our database and database projects. I am aware that I can generate publish scripts and even do deployment reports, but these reports are only at a high-level. What I want to do is be a... | common-pile/stackexchange_filtered |
UNIQUE constraint failed, when pressing submit button. (Django)
For some reason when I press the submit button to save a UserRegisterForm object I get an error: UNIQUE constraint failed, even though the info does submit to the database. It is extra odd because when I press the enter key to submit the data, the program ... | common-pile/stackexchange_filtered |
I had completed level 1, but now I have not. what changed?
I completed level 1 of the windows 8 challenge, but now my profile is listed as not having completed it. Why is this?
Your two questions tagged Windows-8 got closed, which probably means they no longer count.
This is correct. Closed question do not count towa... | common-pile/stackexchange_filtered |
Is there a way to display the vertex weight values for each vertex in the viewport while weightpainting a vertex group on the viewport?
I've always found it difficult to tell quite accurately enough the weight of the vertex while weightpainting, I'm aware the colors are there to indicate it but i've found it hard to te... | common-pile/stackexchange_filtered |
Is it true that $\textrm{Rad}(R)=\bigcap I$ where $I$'s are both two-sided ideals in $R$ and maximal left ideals in $R$?
Define Jacobson radical $\textrm{Rad}(M)$ of a module $M$ as the intersection of all it's maximal submodules.
Let $R$ be an associative ring with unity. It's clear thar $\textrm{Rad}(_RR)$ coincides ... | common-pile/stackexchange_filtered |
Printing JSON output from API
I'm facing issues while printing JSON data using jQuery.
JSON Output:
[
{"id":"1", "product_name":"banana", "price":"10"},
{"id":"2", "product_name":"apple", "price":"15"},
{"id":"3", "product_name":"pineapple", "price":"20"}
]
I used getJSON() to retrieve data from JSON output of the API... | common-pile/stackexchange_filtered |
Fabric integration to Android Studio
I have integrated fabric(Crashlytics) to android studio 1.2.2 and have set up the build.gradle file according to the doc provided by Twitter Fabric. Application builds fine but when i run it, i see the following error on the line where i initialize fabric with
Fabric.with(this, new... | common-pile/stackexchange_filtered |
How to display subnested arrays in Vue search component - Laravel
I'm having issues displaying eloquent relationship data via my vue.js search template, specifically my customer->biller fields.
models.student_first_name will display however
models.billers.biller_first_name wont show anything
The search function is wor... | common-pile/stackexchange_filtered |
Compare NSStrings contains Emoji characters
I'm working in a function that reverse string even if it has emoji characters. The function works great in all cases. Now I'm writing test cases for this method and it passes all tests except tests that has Emoji even if the reversed string is totally correct. It seems that i... | common-pile/stackexchange_filtered |
How can I forecast future correlation?
There are some standard models for forecasting volatility (e.g., GARCH) and for forecasting returns (e.g., factor models). What kind of standard models exist for forecasting future correlation between securities?
One common "model" is to assume the correlation to be constant, suc... | common-pile/stackexchange_filtered |
How to create the following matrix with grouping structure?
I want to write the following matrix in latex,
Adding the group structure is creating some problem. Can anyone provide me with a simple code to generate the groups for the matrices?
Thank you,
Prithish.
Please share with us what you have got so far. Provide... | common-pile/stackexchange_filtered |
Backing up all Visual Force pages with Eclipse and Force.com
How could be possible to backup all the Visual Force pages using Force.com Eclipse?
Usually, I zip the whole project code. Steps: File > Export.
Select the General > Archive File export wizard.
Select t... | common-pile/stackexchange_filtered |
Questions with mathjax don't fit in the box
This bug is intermittent, only showing up on some answers, but not others.
Sometimes, posts that have mathjax equations expand the math, but don't resize the text box, cutting off some text on the bottom.
Note that this is on the IOS public beta, so that may partially have ca... | common-pile/stackexchange_filtered |
How to convert a dataframe into a 2D array in-order to run some calculations?
I have the following pandas dataframe:
timestamp close
.. .......... ........ ........
86 2017-03-12 14:00:00 0.000077
87 2017-03-12 16:00:00 0.000076
88 2017-03-12 18:00:00 0.000074
89 2017-03-12 20:00:00 0.000073
90 20... | common-pile/stackexchange_filtered |
Javascript snippet freezes Firefox3.6
This code is freezing Firefox 3.6.
// Google Code for Converted Users Remarketing List
function converted_remarketing() {
window.google_conversion_id =<PHONE_NUMBER>;
window.google_conversion_language = 'en';
window.google_conversion_format = '3';
... | common-pile/stackexchange_filtered |
how to check unused promo codes in google developer console
I need to know how many promo codes in my app has been used (for example from 50 promo codes) and also one more question, how can I check report for products that sold by promo code.In google play console I can only see the report for real purchased products.
... | common-pile/stackexchange_filtered |
Mapping switch statements to data classes
This seems to come up alot in my code, i'm wondering if there is some way of removing the switch statement, or if there is a more elegant way of doing it?
public class MetaData
{
public string AlbumArtist { get; set; }
public string AlbumTitle { get; set; }
publ... | common-pile/stackexchange_filtered |
Regex that ignores a part of the string
I'm trying to find html tags in a text, like this:
'<span style="background-color: #aaaaaa">'
But the color part can change ( like to #bbbbbb )... I think I can use regex for this, right? But I'm not sure how I can just ignore the color part of it...
Can you help me? Is this pos... | common-pile/stackexchange_filtered |
uppercase and lowercase in c
I have tried to figure out why the program doesn't work. It turns lowercase to uppercase, let's say I type "k", it returns K. Then I continue typint "A", it doesn't return "a", but exits. But why? Here's the code:
#include <stdio.h>
#include <stdlib.h>
int main(){
char UPPER,LOWER;
pri... | common-pile/stackexchange_filtered |
Python: How to consolidate things in a list?
I have a following list:
>>> list_of_list = [ ['a', 2], ['b', 3], ['a', 4, 5] ]
I want the following result:
1. It can tell me there are 2 different items: 'a' and 'b'
2. There are 2 items in 'a' and 1 item in 'b'
'a' = [2, 4, 5]
'b' = 3
Thanks
The funny way: dic... | common-pile/stackexchange_filtered |
Kerberos ticket granting ticket
Identify the two possible events that can trigger the Kerberos server to issue out a new "ticket granting ticket"? <---- This is a question I do not understand, can any expert help me with understand this and answer it
One of the responsibilities of a KDC is issuing ticket-granting tick... | common-pile/stackexchange_filtered |
Cannot map entities. Fetching one entity gives columns of second entity in first entity columns
I am trying to fetch entity using Hibernate and JPA. But fetching one entity tries to find columns of second entity in the first entity. here's code:
I have two entities:
Entity1.java
@Id
@Column(name = "WRITE_PROTECTION_ID... | common-pile/stackexchange_filtered |
ggplot legend - scale_colour_manual not working
I am trying to add a legend to my graphs, but nothing ever shows up. This is the code I have:
ggplot(main, aes(x = ceiling(session/2))) +
geom_line(aes(y = C_overall), colour = "blue", stat = "summary", fun.y = "mean") +
geom_line(aes(y = I_overall), colour = "red", stat... | common-pile/stackexchange_filtered |
how i change background for all activity android
I put an image for all activity in my application (in style.xml ...). how I can change the background for all my activity dynamically. is it possible to change the properties of a theme dynamically?
thank you for your help
You can do that from programmatically..in each... | common-pile/stackexchange_filtered |
Print out items in array in Groovy
I have encountered a peculiar problem while I was working with arrays in Groovy
I have this array
def list = ["Basic","Advanced","Premium","Elite","Explore","Pioneer"]
I know that I can to print the item as follows, by manually inputting them
log.info("This is " + list[0] +", this is... | common-pile/stackexchange_filtered |
Google Maps API Multiple Marker InfoWindowContent showing same data
I have consoled the data and it is fine, I see the different names being consoled properly. the multiple markers are also being created but on the InfoWindow it is only showing the data for the last row for every Marker.
<?php
include 'connect.php'... | common-pile/stackexchange_filtered |
Caliburn.Micro Action Message with StaticResource as parameter
How can i convert this long format to short inline format. I tried with various combinations but none worked. I always get the parameter as null.
<i:Interaction.Triggers>
<i:EventTrigger EventName="GotFocus">
<cal:ActionMessage MethodName="Selec... | common-pile/stackexchange_filtered |
How do I install PyYAML into local install of Python?
I've installed Python 2.6.4 into (a subdirectory in) my home directory
on a Linux machine with Python 2.3.4 pre-installed, because I need to
run some code that I've decided would require too much work to make it
run on 2.3.4. (I'm not on the sudoers list for that m... | common-pile/stackexchange_filtered |
How to deep copy camera collection callback CMSampleBufferRef?
Obviously I must copy the CMSampleBufferRef, but CMSampleBufferCreateCopy() will only create a shallow copy.
The method is feasible, but the CPU consumption is too high!
- (CVPixelBufferRef) copyPixelbuffer : (CVPixelBufferRef)pixel {
NSAssert(CFGetTypeID(... | common-pile/stackexchange_filtered |
Get a previous file version in git tower
I need to get a previous file version in git tower,
I mean get the full code present inside file as it was 1 week ago (before a lot of edits from other users), and copy it somewhere on my desktop.
I already located that version of the file in tower, and if right click on it I ge... | common-pile/stackexchange_filtered |
Perl is it possible to combine 2 if statements?
So right now this is what I have:
if ($stuff =~ /^(bad|alsobad)$/) {
print "Seems incorrect";
exit 0;
}
Is it somehow possible to have something like this?
if ($stuff =~ /^(bad|alsobad)$/){
#
if ($twostuff =~ /^(nan|na)$/) {
print "Seems incorrect";
exit... | common-pile/stackexchange_filtered |
Permission denied when trying to run a job as myuser, but error says root doesn't have enough permissions
I'm trying to get Hadoop MapReduce working, but keep facing access problems.
I'm not sure what the problem is, whether it is configuration or something else.
When I'm running, for example, this wordcount
hadoop j... | common-pile/stackexchange_filtered |
Lifehacker implemention of url change with Ajax
I see that Lifehacker is able to change the url while using AJAX to update part of the page. I guess that can be implemented using HTML5 or history.js plugin, but I guess lifehacker is using neither.
Does any one has a clue on how they do it?
I am new to AJAX and just ma... | common-pile/stackexchange_filtered |
PayPal - 10001 internal error: timeout processing request Express Checkout
I have a problem with the Express Checkout. I tried all the solution provided in the web but I cannot make it work!
I'm using VB 2012 for Web and ASP.NET. I built a cart in the web site and try to integrate PayPal Express Checkout (for now using... | common-pile/stackexchange_filtered |
Outer Unit Normal: Cylinder
I have a cylinder occupying the region $x_{1}^{2}+x_{2}^{2} = R^2$ and $-G< x_3 < 0$
All I want to do is define the outer unit normal on the curved face. I thought about just calling it $e_1$ or $e_2$ but I suppose it has to be more general than that. Anyone have any ideas?
what is $-G$?? a... | common-pile/stackexchange_filtered |
Grails Stripe plugin error
i'm using Stripe plugin for Grails ,Grails version 2.5.1 i can't make any successful transaction i always get There was an error processing your credit card. as shown in the controller , i noticed that Charge method is not defined as shown in the screenshot
i tried to import com.stripe.Strip... | common-pile/stackexchange_filtered |
How can I keep my original player scale when parented to another object?
I have a player movement script attached to my player object, and a separate script attached to a different object which references my player and then parents it to that said object.
When I enter the trigger of the specific object, my player scale... | common-pile/stackexchange_filtered |
How to block URL with parameter in Windows hosts file
I know how to block a whole domain in C:\WINDOWS\system32\drivers\etc\hosts. But how to block only URL with some parameter for example something.com/...&key=value but something.com as domain to be unblocked. Is that possible?
This is not possible using HOSTS file. ... | common-pile/stackexchange_filtered |
ASP.NET Framework web app setting contract to null when file is "large"
I have an ASP.NET framework web application that processes documents and returns it in a template contract. If I send it a smaller document (143KB) it processes fine and sets the template contract properly (ie. template contract is not null):
Templ... | common-pile/stackexchange_filtered |
Parallel.ForEach() - How many threads?
I am downloading files which means that even though I had only 2 cores, it would improve performance to make more than two threads.
Does the Parallel.ForEach() only make as many threads as the amount of cores,
even though I set ParallelOptions.MaxDegreeOfParallelism to a higher ... | common-pile/stackexchange_filtered |
What is the correct TypeScript type for a Quasar q-file element?
I have a q-file with a template ref, it looks like this:
<q-file
ref="myFile"
v-model="image"
@update:model-value="imageUpdate"
/>
Here is the ref (with my best guess at giving it a type):
const myFile: Ref<HTMLInputElement | undefined> = ref(undef... | common-pile/stackexchange_filtered |
How to store multiple data from each loop in one file
the code only stores the last value in the array in "Data.txt" I want to store every value
I have been trying to fix it for hours nothing seems to be working and no one have the same issue.
also in the "aff" function it basiclly does the same thing it shows me the l... | common-pile/stackexchange_filtered |
Absolute paths on cakePHP 1.3
I was given a website to continue developing. The problem is that the majority of the paths are in this form:
<a href="/path/to/file">link</a>
I've modified some of them to turn them into:
<a href="<?=Route::url('path/to/file')?>">link</a> and it works fine if I want to move the project in... | common-pile/stackexchange_filtered |
Probabilities from lognormal distribution
If I have a variable x that is lognormal(mu=0, sd=.1), and say I want to compute P(x < .90)
Can I then say P(x < .90) = P( log(x) < log(.90) ) ? Going by the book I am reading from, this appears to be true, but I don't get why.
I know that log(x) is normal(mu=0, sd=.1), but I d... | common-pile/stackexchange_filtered |
Cloning an active ipython kernel?
Let's say you have an ipythonqt shell open, and the shell is running a script. Is there a way to clone the shell in realtime (i.e. open another ipython shell such that it contains copies of all the objects currently associated with the memory state of the first shell/kernel)? The purpo... | common-pile/stackexchange_filtered |
Why "getting THE nails into fence" but "hammering _ nails"?
Why there is no "the" in the second case? For me both of this cases look identical.
His father gave him a bag full of nails. (...) On the first day he hammered in 37 nails, but getting the(1) nails into the fence was not
easy. As the days went by, he was ha... | common-pile/stackexchange_filtered |
Overriding Camel & log4j
I'm fairly new to Apache Camel, but have to say that I love it so far. One "limitation" (probably a lack of understanding on my part) I've hit so far is that Camel ships with log4j as its default logging component.
My team has already gone to great lengths to build our own logging framework, wh... | common-pile/stackexchange_filtered |
Centos 7 - Dlib was compiled to use SSE41 instructions, but these aren't available on your machine
I am trying to use dlib as one of python packages. It is installed successfully but when I open python shel and type import dlib.. it says that
Dlib was compiled to use SSE41 instructions, but these aren't available on yo... | common-pile/stackexchange_filtered |
Generic Apex Trigger
So I was kind of throwing round the idea of making a generic apex trigger that is callable by multiple objects. Say you have the following sObjects:
Account
Sales__c
Sales_Contacts__c
And I wanted to make a trigger that is called when any of those objects are updated - for example:
trigger autoTas... | common-pile/stackexchange_filtered |
How to determine the last row of the print area in PHPExcel?
I have a large table, which does not always fit on a print page. If the table does not fit on one print page, script must write "Contunue on next page" into last row of current page. How to do it?
Do you mean a database table? Are you displaying on a webpage... | common-pile/stackexchange_filtered |
How to use netplan to connect to EAP wifi
I can't find any good guides online on how to connect to eap wifi using netplan. I currently have tried to create a file named config.yaml with the following
network:
wifis:
wlp1s0:
dhcp4: true
access-points:
"IllinoisNet":
... | common-pile/stackexchange_filtered |
How to response dynamic content in Nodejs without Express
let reqBody = "";
req
.on("data", (chunk) => {
reqBody += chunk.toString();
})
.on("end", () => {
const body = new URLSearchParams(reqBody);
res.end("ok");
});
I'm trying to access the reques... | common-pile/stackexchange_filtered |
Why won't the for loop execute on directory
In the following script, the first for loop executes as expected, but not the second. I do not get any error, it seems that the script just hangs.
HOME=/root/mydir
DIR=$HOME/var
DIRWORK=$HOME/Local
for f in $(find $DIR -type f); do
lsof -n $f | grep [a-z] > /dev/null
... | common-pile/stackexchange_filtered |
How to iterate over a pyspark dataframe to increment a value and reset it to 0
I have a pyspark dataframe with the following fields:
dt = timestamp (one row per hour)
rain_1h = rain in mm that hour
Now I need to calculate the number of Dry Hours, when it doesnt rain, so it must increment it when it doesnt rain, and whe... | common-pile/stackexchange_filtered |
Split Column of list Panda
I have a Pandas DataFrame with this column:
This is an extraction from a database in Mongo but I don't know how to handle a column containing both [] and {}:
How can split this column into two columns?
Desired result:
Thanks for your help !
It would be better for reproducibility to avoid i... | common-pile/stackexchange_filtered |
Testing in Mocha/Chai Misleading Error
I'm running into a wall with working out why my test isn't passing as I'm learning how do to testing using Mocha/Chai. Any help would be appreciated!
My console is throwing me the following error though I've read from multiple other posts that this may be masking the true error:
... | common-pile/stackexchange_filtered |
History support in Ruby 2.7 REPL
I noticed in IRB if you type:
Readline::HISTORY << 'something = ->() { 5 }'
And then when you press the up arrow key on your keyboard, you will see your code something = ->() { 5 }. You then press enter to execute the code...
This is true for older Rubies. For Ruby 2.7 though, it's not... | common-pile/stackexchange_filtered |
Laravel compact multiple data to become single data and sum 1 column
Hello i have multiple data from salesItem table, data could be return like this
Data Detail
and how could it be done?
Using ELOQUENT ORM you can try like this:
$dataArray = SalesItem::select("*",sum(QTY) as totQuantity)
->grouby('variant_id')
->get()... | common-pile/stackexchange_filtered |
Iterate through a dataframe by index
I have a dataframe called staticData which looks like this:
narrow_sector broad_sector country exchange \
unique_id
BBG.MTAA.STM.S Semiconductors Technology CH ... | common-pile/stackexchange_filtered |
JQuery Populate Table by Columns
I'm looking for a way to populate a table based on column heading. My data will be coming from a database based upon date. In the past I would use floating DIVs with a 1 column table inside of it, however, I was recently told it's possible through JQuery. I looked through previous stack... | common-pile/stackexchange_filtered |
Legalizing an internal hyperlink with adsense
I think the problem with me making money with adsense is the way my links are crafted.
Here's an example in code of how I crafted a link on my mobile site for the second image in the image viewer. Assume the image fills the height of the screen minus the height of the ancho... | common-pile/stackexchange_filtered |
Attach click handler even on element inside iframe with jQuery
How can I attach a click event handler to an element inside an iframe?
Here's what I tried and doesn't work:
$("#parent iframe").contents().find("a").live("click", function () {
alert ("test");
return false;
});
The iframe is on the same domain.
Y... | common-pile/stackexchange_filtered |
large letter outline stroke with sass
I have been using the text shadow trick of using a large text shadow to create the illusion of a larger stroke width for a letter outline. It works as is for my needs but I recently started using sass and was wondering if it was possible to convert my current css rules:
#title {
t... | common-pile/stackexchange_filtered |
How do I customize my desktop to look like this screenshot?
So I've come back to linux because I've fallen back in love with the command line (albeit I'm not so great with it) and the customability of linux based OS's. My question really comes from not knowing how to customize certain aspects of the OS.
To begin with, ... | common-pile/stackexchange_filtered |
Copy Paste in Lyx
I have a slight problem. Suppose I have two lyx documents doc. 1 and doc. 2. I want to copy from doc. 2 to doc. 1 and then apply text style used in doc. 1. When I use the usual ctrl + V, ctrl + C, I get the style of doc. 2 in doc. 1 and have not managed to apply styles in doc. 1 to the copied content.... | common-pile/stackexchange_filtered |
Azure Cosmos DB: Update pipeline supported, or Cosmos-native way to emulate this?
We wanted to switch over from using MongoDB 4.2 to Cosmos DB, but realized that the thing preventing us to do so are Update (aggregation) Pipelines. MongoDB supports them, on Cosmos DB we get a weird looking error Expected type object but... | common-pile/stackexchange_filtered |
How was Madara able to summon Susanoo after he was revived by Rinne Tensei no jutsu?
In Naruto: Shippuden before Madara is able to retrieve one of his Rinnegan after being revived, he fights with the Tailed Beasts by using Susanoo even when he's blind. How is that possible?
As i Glance over to the Related questions ... | common-pile/stackexchange_filtered |
Can a new subdivision be built off of an exiting private road when the only access to this new subdivision will be the private road?
They are looking to build a 6 lot subdivision in my neighborhood. This subdivision will include a new private road. The problem is that the only access to this new subdivision will be a... | common-pile/stackexchange_filtered |
TYPO3 extension install with the composer
I'm trying to install extension via composer, but I get the following error log:
Using version ^6.0 for georgringer/news
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could... | common-pile/stackexchange_filtered |
How can I wait data from firebase?
I need to wait data from firebase otherwise my app gonna crash because of nil value. I searched about that and watch some videos and look at other questions but I can't see any firebase example actually. How can I wait data from firebase? How can I use dispatch or semaphore and which ... | common-pile/stackexchange_filtered |
Jenkins: get environment variables in the body of a global function
I have a shared global function on PublishGitHub.groovy looks like this:
#!/usr/bin/env groovy
def call(body)
{
def config = [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
echo "\u001B[32mINFO: Publishing...\u... | common-pile/stackexchange_filtered |
Why using 2 different timers via grand-central-dispatch doesn't work?
I used before one timer in my app for periodically launched task (token refresh actually). I found code example on stackoverflow and it worked for me.
This is the code example definition (above implementation header):
dispatch_source_t CreateDispatch... | common-pile/stackexchange_filtered |
What Gotchas have you discovered programming SMS/Alerts?
I am about to start building an SMS alerting function in my web application. The aim is to provide two services:
Host pays - e.g. to send an SMS alerting users to the cancellation of an event
User pays - e.g. to alert that an Email has been sent with, say, detai... | common-pile/stackexchange_filtered |
Get tagless elements in Beautifulsoup
Given the following html snippet:
<div class="mapCopy">
<b>
<a href="someurl.com">
URL Text
</a>
</b>
<br/>
Address Line 1
<br/>
Address Line 2
<br/>
City, State, Zip
<p>
Phone:<PHONE_NUMBER>
<br/>
... | common-pile/stackexchange_filtered |
step by step how to install office 2007 into a 32bit wine prefix
i am very new to Ubuntu, and after exploring the different flavors i have chosen Xubuntu 14.04 lst. I am trying to install office 2007 with wine, but ran into the known bugs of running 32bit applications within 64bit wine.
I have read the how to's on crea... | common-pile/stackexchange_filtered |
Deriving the addition and product on $\mathbb C$
I am studying Stillwell's Elements of Algebra. In Chapter 3, Section 3.6, he writes
There is a unique extension of $+$, $-$, $\times$, $\div$ to $\mathbb C$ satisfying the field properties since if these properties hold we necessarily have
\begin{align*}
(\alpha_1 + i\b... | common-pile/stackexchange_filtered |
Android ZBar Exception only with Jenkins build
I have an android project with a QR scan activity. I use the ZBar library for this: http://sourceforge.net/projects/zbar/files/AndroidSDK/
If the project is built on a PC or Mac with exlipse, the app works fine.
If it's build by jenkins (same source from git) the app crash... | common-pile/stackexchange_filtered |
Displaying NSMutableArray from Parse Outside the Block
I have asked this question a couple times and have not had any success in solving the question. So i have refined my code. I am trying to create an NSMutableArray and store data from Parse in it. Then I am trying to display the NSMutableArray on the screen. I am ab... | common-pile/stackexchange_filtered |
React.js - Creating simple table
Sorry for what it appears to be a newbie question (been up working late and just got started with React) but I am trying to figure out how to just render a simple table with nxn dimension.
For instance, in my component, the render output would be something like this:
<table id="si... | common-pile/stackexchange_filtered |
why contacts length could be 0 when collision2D happens in Unity3D?
I made a ball with RigidBody2d and CircleCollider2D to collide with other balls with the same component, and I simply use the following snippet to check the contacts of the collision:
public void OnCollisionEnter2D(Collision2D collision)
{
if(c... | common-pile/stackexchange_filtered |
javascript: clean way of converting currencies from an array
Folks!
Currently i have written this below code, which converts one currencies into another , but the problem is i am defining each & every currencies one by one in switch block,
If i have 100 currencies to convert then i have to write 100 switch cases
Is th... | common-pile/stackexchange_filtered |
Converting a string to a hash integer
I have to convert a string of length k with 4 possible characters - {A, C, G, T} - into an integer between 0 and 4^k. The advice is to convert the {A, C, G, T} into {0, 1, 2, 3} respectively, but I do not know how to convert those numbers into a number between 0 and 4^k.
For exampl... | common-pile/stackexchange_filtered |
Interval tree algorithm that supports merging of intervals with no overlap
I'm looking for an interval tree algorithm similar to the red-black interval tree in CLR but that supports merging of intervals by default so that there are never any overlapping intervals.
In other words if you had a tree containing two interva... | common-pile/stackexchange_filtered |
React native version mismatch while running in expo
I am trying to run my existing project in expo but getting this error on the device React native version mismatch , JavaScript version : 0.60.4 , Native version : 0.59.8
Can anybody tell me why the error is happening?
my package.json =>
{
"name": "MyApp",
"versio... | common-pile/stackexchange_filtered |
Cannot run interactive R session from the command line - windows 10
I cannot run a R session from the command line by typing 'R', despite having
C:/Program Files/R
and
C:/Program Files/R/R-3.3.2/bin
in both 'Path' (System) and 'PATH' (User) environment variables (the latter directory is where the actual application i... | common-pile/stackexchange_filtered |
CSS3 Background with Gradient Overlay - Gradient only working in Firefox
I'm trying to overlay a CSS gradient on a background image. I've got it working in Firefox, but in safari and chrome I only get the background image, without a gradient.
(I generated the gradient code using http://www.colorzilla.com/gradient-edito... | common-pile/stackexchange_filtered |
C++ accessing vector of vector got segmentation fault
I created a vector of vector (10*10000) and try to access this vector through member function. but I got a segmentation fault. I don't know what's wrong here...
Here is Simple.h
class Simple
{
private:
std::vector<double> data_row;
std::vector<std::vector<d... | common-pile/stackexchange_filtered |
Practical approach to keeping jQuery up to date?
Some of the projects we're working on have strong roots in jQuery 1.4.2 or earlier, and somewhere between lacking the performance edge (or syntactic sugar) of the latest releases, the humiliation of using now-deprecated methods, and the discomfort of deploying a 3+ year ... | common-pile/stackexchange_filtered |
Cruiser bottom bracket is clicking and grinding
My Trek Pure Deluxe 3-speed cruiser has been making a clicking noise when riding for some time. The problem is faint, and is more felt than heard. However, it's been getting worse; it now makes a grinding noise if I'm mashing a bit when going uphill.
The noise seems to h... | common-pile/stackexchange_filtered |
Sitecore Experience Accelerator (SXA) with UCommerce?
I tried to install the Sitecore Experience Accelerator and Ucommerce in Sitecore 8.2 update 4 but I get the error below.
I get the error on the last package that I install. Whether It is ucommerce or Sitecore Experience Accelerator.
Has anyone tried Sitecore Experi... | common-pile/stackexchange_filtered |
R/Shiny : Color of boxes depend on select
I try to create dynamic boxes in shiny.
We can change the status (color) of the box with (status = "warning" or "info" etc.)
I would like to change the color of this box (dynamically) depend on the choice of select input like that :
https://image.noelshack.com/fichiers/2018/32/... | common-pile/stackexchange_filtered |
OPA (Open Policy Agent) loading bundle from S3 to local workstation
I'm trying to run OPA container locally to load the bundle from an S3 bucket but it keeps failing with the below error. What am I missing?
Command:
docker run -v ${CUR_DIR}/config-new.yaml:/config-new.yaml -e AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN} -e A... | common-pile/stackexchange_filtered |
Average and conversion order of operation
I have a data that I need to analyse.
The data consists of a series of numbers (floating point) represent duration in milliseconds.
From the duration I need to calculate frequency of those events (occurrence in seconds). So I simply calculate it like
occurrence per second = (10... | common-pile/stackexchange_filtered |
.json to .csv "big" file
I recently downloaded my location history from Google. From 2014 to present.
The resulting .json file was 997,000 lines, plus a few.
All of the online converters would freeze and lock up unless I did it in really small slices which isn't an option. (Time constraints)
I've gotten a manual pro... | common-pile/stackexchange_filtered |
How to make sure a parameter "lang" always is present in url without adding it to all links?
I have a simple multi language website. The langauge of the displayed page is controlled by the use of a session variable, but I want users to be able to copy the url and send it to other people and end up on the same language ... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.