text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Non-hacky way to share a boolean state between classes?
Say I have
class Cat:
def __init__(self, var, n_calls=None):
self.var = var
if n_calls is None:
self.n_calls = []
else:
self.n_calls = n_calls
def greet(self):
if self.n_calls:
raise Valu... | common-pile/stackexchange_filtered |
Mailchimp background-size cover
I tried to make a background image cover in many different ways but Mailchimp seems to delete that piece of code.
Any approach on how to make this work.
Cheers,
Michael
When you say it deletes it, at what point do you notice it? Is it after sending a test mail, or is it after just click... | common-pile/stackexchange_filtered |
Changing the GET request query string value of the address bar from the view
Is this possible?
Say that we have something like this:
public ActionResult sim(string test)
{
return View();
}
So i can call it by doing something like this:
localhost:55319/test/rat/sim?test=hi
Would it be possible to change the val... | common-pile/stackexchange_filtered |
How can I combine two separate scripts being piped together to make one script instead of two?
I have two scripts that I pipe together. script1.sh | script2.sh Originally they were part of the same but I could never make it work correctly. The last part of script1 calls on youtube-dl to read a batch file and outputs a ... | common-pile/stackexchange_filtered |
New fearture in react-router-dom v6 useOutletContext() issue, what versions support it
I use react-router-dom and react-router v6.0.2 and I want to use the useOutletContext() the new features in v6 to pass props through outlet but it return this issue.
How can't I fix it and what versions does useOutletContext() suppo... | common-pile/stackexchange_filtered |
How to create a tolerance that makes all low values in the session become zero?
I'm making some calculations where I get values like number*e-17 , but i would like to make all those small values become zero.
Is there a way to make something like a tolerance that will change low values to zero in the whole program?
I'm ... | common-pile/stackexchange_filtered |
linear independent over $\mathbb{Q}$
Let $r_1, r_2, \cdots, r_n$ be distinct rational numbers in the interval $(0,1)$. How to prove that in the space $\mathbb{R}$ over $\mathbb{Q}$ the numbers $2^{r_1}, \cdots, 2^{r_n}$ are independent?
Do you know how to prove that the square root of two is irrational? Notice that th... | common-pile/stackexchange_filtered |
Conjugate of compact Lie subgroup strictly contained in itself
I'm currently reading the book "Lie Groups and Geometric Aspects of Isometric Actions" by Alexandrino and Bettiol and I'm having problems understanding a particular argument on page 73, Proposition 3.74:
$M$ is supposed to be a Riemannian manifold on which ... | common-pile/stackexchange_filtered |
Is there a way to restrict Brownian Motion to a specific axis?
I have set up a simple particle system containing 1000 particles with Normal Velocity of 4.0, Z Velocity of -1 and gravity turned down to 0. I've set the Brownian Motion 20. Is there a way to limit the particles' movement to a specific axis?
This solution ... | common-pile/stackexchange_filtered |
CUBLAS dgemm performance query
These are my results of running cublas DGEMM on 4 GPUs using 2 streams for each GPU (Tesla M2050):
I have tested my results and they are alright; I am concerned about the high Gflops value that I am getting, compared with the versions that uses the default stream. I am calculating the Gf... | common-pile/stackexchange_filtered |
Problem saving many instances of manyToMany relationship Typeorm
Description
Thank you very much in advance.
When using @joinTable specifying the name of the table and columns, the save method for multiple instances does not work by saving only the first one
I have a many-to-many relationship (N-> N), when users has wh... | common-pile/stackexchange_filtered |
2-column dropdownlist with one column hidden
I'm hoping this is a quick one. Sorry, still an ASP/C# n00b and I can't seem to find an example.
What I want to do is have a dropdownlist on an ASP page. I want the list to display 2 values; Benefit Type and Priority. However, the dropdownlist is used as a filter for the ... | common-pile/stackexchange_filtered |
Examples of homogeneous ideals with $J \cap B_+ \subset \sqrt{I}$ but $J \not\subset \sqrt{I}$.
This is a question about a Lemma in Liu's Algebraic Geometry and Arithmetic Curves.
The result states the following (this is Lemma 2.3.35, paraphrased to focus only on the part I am asking about):
Let $I, J$ be homogeneous ... | common-pile/stackexchange_filtered |
Run a powershell script with different credentials
I'm trying to run a powershell script to search for a network drive for a certain file. In my testing, I've found that my script works perfectly fine, however the network drive I need to search require my Domain Admin logon.
I have
Start-Process powershell.exe -Crede... | common-pile/stackexchange_filtered |
PHP prepared statement: Why is this throwing a fatal error?
Have no idea whats going wrong here. Keeps throwing...
Fatal error: Call to a member function prepare() on a non-object
...every time it gets to the $select = $dbcon->prepare('SELECT * FROM tester1');part. Can somebody shed some light as to what I'm doing wr... | common-pile/stackexchange_filtered |
Where is the /usr folder in mintty (Git Bash for Windows)?
New to git on Windows. After installing the latest version of git (from the git for Windows website), you can type cd /usr/bin in standard Linux usage. But where exactly is this on my Windows file system? A search from the Windows command-line turned up two pla... | common-pile/stackexchange_filtered |
PHP based Telegram bot InlineKeyboardMarkup not working
Trying to create inline buttons for my Telegram bot. this is the request I'm sending and for some reason I don't get the buttons but only the text "Inline Keyboard"
Here is my code
$args = [
'chat_id' => $this->chat_id,
'parse_mode' => 'HTML',
'text' =... | common-pile/stackexchange_filtered |
What is the frequency for each level of categorical variables to obtain the most reliable results?
I'm working with a real dataset. In some variables, the frequency between each of the variables is not uniform. For example, in the Occup variable, the frequency for levels 2, 3, and 6 is very small. Also, for the PregHyp... | common-pile/stackexchange_filtered |
TextView is cutting off a lot of information when I try to pull text from a website
In my app I need to pull text from this website.
http://www.cellphonesolutions.net/help-en-lite
Notice how its a very large file. When I try to pull the text it doesn't get the first half of the text. Is there a limit to the amount of ... | common-pile/stackexchange_filtered |
How to save a dok matrix
How can I save a dok matrix and load it again later?
import scipy.sparse as sp
mat = sp.dok_matrix((df.shape[0], len(df['itemid'].unique())), dtype=np.float32)
for buyerid, itemid in zip(df['buyerid'], df['itemid']):
mat[buyerid, itemid] = 1.0
# my try
sp.save_npz('/content/gdrive/My Driv... | common-pile/stackexchange_filtered |
How to set right query using Retrofit
I'm trying to set GET query using Retrofit, but nothing works
@GET("/search/users?q={username}+type:user&page={page}&per_page=100")
Call<List<User>> getUsers(@Query("username") String username, @Query("page") int page);
example query: /search/users?q=Mike+type:user&page=1&per_... | common-pile/stackexchange_filtered |
Why do we add the cost function as a phase in QAOA?
For QAOA, my understanding is that after we derive our cost Hamiltonian: $H_c|x$>$=C(x)x$ where $C(x)$ is the cost function on input x. We exponentiate it: $e^{-iH_c\theta}$, so we can simulate this Hamiltonian.
While doing so, we have effectively moved the value of ... | common-pile/stackexchange_filtered |
Prove that A is a subset of B. {...for some odd integer}
A={ $a$ ∈ Z | $a= b^2 $ for some odd integer b}
B={ $a$ ∈ Z| $a= 8k +1 $ for some k ∈ Z}
I am totally lost on where to start. Would I make b= 2m+1?
Making $b=2m+1$ is a good start.
$b = 2k + 1$
$b^2 = (2k + 1)^2 = 4k^2 + 4k + 1 = 4(k^2 + k) + 1 = 4(k+1)k + 1$... | common-pile/stackexchange_filtered |
Jenkins: Limit Credentials to 'Manage Jenkins > Configure System'
We would like to use the GitHub Pull Request Builder plugin in Jenkins, however in order to use this plugin you are required to enter credentials in the 'Manage Jenkins > Configure System' section that gives access to a given GitHub Enterprise server.
O... | common-pile/stackexchange_filtered |
How to ignore nulls in PostgreSQL window functions? or return the next non-null value in a column
Lets say I have the following table:
| User_id | COL1 | COL2 |
+---------+----------+------+
| 1 | | 1 |
| 1 | | 2 |
| 1 | 2421 | |
| 1 | | 1 ... | common-pile/stackexchange_filtered |
insert text between two logos on title page (horizontally)
I need to insert two logos of my university between its name like this
But the best I made is this
Logos are slightly different but it doesn't matter. I was trying to put images into the figure environment, tried the wrapfig package, but none of them worked. ... | common-pile/stackexchange_filtered |
How to achieve dependent foreign keys listing in django-admin?
Suppose I have 3 models:- Address, Country, State
Address Model:
class AddressModel(BaseModel):
country = models.ForeignKey(CountryModel, null=True, blank=True, on_delete=models.PROTECT)
state = models.ForeignKey(StateModel, null=True, blank=True, o... | common-pile/stackexchange_filtered |
Drawing in several windows with gl/glx
I am looking at the NeHe OpenGL tutorials (nehe.gamedev.net), which as almost every example also for Linux/glx.
But how can open several windows and draw into all of them?
Thanks!
Creating more than one window is easy, just repeat the procedure.
If you want to draw the same scene... | common-pile/stackexchange_filtered |
Unable to convert moment.js formatted date to valid date
Unable to convert moment.js formatted date to valid date using
new Date('08-Mar-19 06:01 AM') // Gives invalid date in IE
Note: it doesn't work in IE. Only works in Chrome.
Actually i got the format ('08-Mar-19 06:01 AM') using moment.js
const date = moment(valu... | common-pile/stackexchange_filtered |
Is the difference between two MSEs significant?
I developed several Elo rankings and used MSEs to compare them on their predictive capacity of the 2018 World Cup. I've been asked to use a statistical test to find if the difference between two of my model's MSE (0,0588 and 0,0580) is significant.
Do you have any idea w... | common-pile/stackexchange_filtered |
Reversing a number using recursion
I was tasked with reversing an integer recursively. I have an idea of how to formulate my base case but I'm unsure of what to put outside of the if statement. The parts I was unsure about are commented with question marks. With the first part, I don't know what to put and with the sec... | common-pile/stackexchange_filtered |
Laravel Send or Queue Mail depending on config setting
I am looking for a neat way to send or queue email depending on a config setting.
Right now I am having to do something like this everytime I send an email
$mailContent = new AccountNotification($account);
$mailObject = Mail::to($email);
if(config('app.queueemail')... | common-pile/stackexchange_filtered |
How to catch a certain part of a website?
Suppose that we have a website. We want to show a specified part of this site in another site, like a table of data that shows latest news, and we want to show this part in our website with javascript.
Is this possible? Are there any more information needed?
We all know that wi... | common-pile/stackexchange_filtered |
request_irq- irq flag set to 0 ; is this valid?
In some of the drivers while browsing 2.6.35, it is observed tht request_irq is passed a value 0 for irq flags. When seen in interrupt.h - 0 corresponds to IRQ_TRIGGER_NONE;
Is this equivalent to the case of IRQ_NONE in previous kernels?
Thanks.
The actual flags passed... | common-pile/stackexchange_filtered |
Can the support of a coherent sheaf be a numerically trivial divisor?
Let $X$ be a smooth projective variety with Picard number 1 over $\mathbb{C}$. Let $F$ be a coherent sheaf on $X$ such that $c_1(F)$ is algebraically trivial, and hence numerically trivial. Also rank $F=0$.
So $F$ is supported on a proper closed sub... | common-pile/stackexchange_filtered |
Replace t-test with modified z-test - anyone ever seen this?
I just read about a procedure I'd never heard of, and was wondering if anyone has had any experience with it. In Donald Berry's "Statistics" book, he presents an alternative to doing a t-test by modifying the sample standard deviation, with a factor that inc... | common-pile/stackexchange_filtered |
Two Sharepoint 2007 sites
I'm working with SharePoint 2007 and we're currently working with another organization for a long-term project. We need to access documents in their SharePoint site.
After trying to figure out the wide array of Microsoft products branded with the name 'SharePoint', I'm not even certain that S... | common-pile/stackexchange_filtered |
LineSeries Chart Point Size Reduction
I want to reduce the point/marker size in this WPF Toolkit LineSeries Chart.
This is my XAML:
<Window.Resources>
<Style x:Key="DashedPolyLine" TargetType="{x:Type Polyline}">
<Setter Property= "StrokeThickness" Value="1"/>
</Style>
</Window.Resource... | common-pile/stackexchange_filtered |
joi: Custom errors are not returned, abortEarly is set to false
I can't get this joi validation to return all the errors just like what it does with default errors.
So here I'm setting individual custom errors for each field:
const schema = Joi.object().keys({
a: Joi.string().error(new Error('must be string')),
... | common-pile/stackexchange_filtered |
Running a spring-boot-gradle-plugin fat jar with named application modules at runtime?
I've got a simplest modular sample application made with Gradle and Spring Boot, and I'm having trouble to launch it with the modules being full-fledged named modules at runtime.
My questions are the following
Can spring-boot-gradle... | common-pile/stackexchange_filtered |
AWS S3 or Cloudfront Access denied ::: If refreshing on browser that contain url including path (i.e. domain.com/subdirectoryname)
when accessing only domain name(i.e. domain.com), I have got a page that I wanna get
but when accessing domain that contains pathname(i.e. domain.com/subdirectoryname), I got an error messa... | common-pile/stackexchange_filtered |
Preparing for Brexit on a personal level
Situation:
I am a UK citizen living and working in Berlin. I am a senior software developer, so have good job security, and am paid well enough that I could get an EU Blue Card.
I own a flat in the UK, which is currently providing me with a second income that covers my rent plu... | common-pile/stackexchange_filtered |
Duplicate Rule Bypass with RecordEditForm in Lightning
I am struggling with figuring out how to pass
dml.DuplicateRuleHeader.allowSave = true;
in Apex on a Lightning RecordEditForm component. I am using RecordEditForm as a record creation form and unsure how alter the payload.
I am assuming I would pass something o... | common-pile/stackexchange_filtered |
How to assign values that are available to threads
Im currently working on a scraper where I am trying to figure out how I can assign proxies that are avaliable to use, meaning that if I use 5 threads and if thread-1 uses proxy A, no other threads should be able to access proxy A and should try do randomize all availab... | common-pile/stackexchange_filtered |
Loading interstitial adMob in different threads
I want to load Interstitial AdMob after 5 second, after the Activity started, in another Thread. Is this code right, or I'm duplicating Runnables? Is there a better way?
Handler handler;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreat... | common-pile/stackexchange_filtered |
How can I change the data-icon attribute via jQuery (bootstrap-iconpicker)?
I am working with the bootstrap icon picker (http://victor-valencia.github.io/bootstrap-iconpicker/) and I want to change the default icon via jQuery by button click. Something is not working, and I cannot figure it out:
$( "#click" ).click(f... | common-pile/stackexchange_filtered |
Delete all records in table first then insert new records in table Wordpress SQL query
I am trying to develop a custom plugin using object oriented programming. I want to check if table already have values first if table have values then delete all values in table and reset ID into Zero. After that I want to install ne... | common-pile/stackexchange_filtered |
How do you print out elements from a Numpy array on new lines using a for loop?
Create an array with numpy and add elements to it. After you do this, print out all its elements on new lines.
I used the reshape function instead of a for loop. However, I know this would create problems in the long run if I changed my arr... | common-pile/stackexchange_filtered |
How to choose variables from a list for a function and then use the solution in a subsequent function?
I am trying to calculate heating degree days and cooling degree days and output that information to a table. I am using mathematica's curated data to do this. In text this is what I would like to do. Use a city nam... | common-pile/stackexchange_filtered |
AutoUpdate Chrome Extension GPO
I have a chrome extension published via GPO with the chrome policies: ExtensionInstallForcelist and ExtensionInstallSources.
I also have an updates.xml file with describe the .crx version, the appid and and the url of the .crx to download.
The problem is, that I forgot to add the "update... | common-pile/stackexchange_filtered |
Convert csv into json for API request
Basically my code will convert a .csv file into a .json and send a request to an API. I think I successfully converted the json, but when I execute it, after a while I get the 422 error. I know converting csv to json is not the best practice, but I need a tabular structure where th... | common-pile/stackexchange_filtered |
Shell script running in cron with kubectl, shows "kubectl command not found". But it works when I manual execute the shell script
I have a shell script scheduled with a cronjob in my linux machine. The script has a kubectl command which sets the context and scaleup services based on a previous version file.
kubectl con... | common-pile/stackexchange_filtered |
Error when concatenate square of a each digit of a number
I'm doing a Codewars Challenge. I must square every digit of a number and concatenate them.
So, if we run 9119 through the function, 811181 will come out, because 92 is 81 and 12 is 1.
My code is below:
#include <math.h>
unsigned long long square_digits (unsign... | common-pile/stackexchange_filtered |
Does jwplayer support playlist including youtube videos on mobile?
Ethan JWPlayer (https://stackoverflow.com/users/1645000/ethan-jwplayer) mentioned (here: jwplayer playlist is not working in mobile) that playlists are not supported with youtube videos on mobile, but it would be supported in the future.
Is it supported... | common-pile/stackexchange_filtered |
WooCommerce add custom email content based on payment method and shipping method
I'm trying to add different content to woocommerce completed order email notifications based on combinations of payment methods and shipping method.
My code so far:
// completed order email instructions
function my_completed_order_email_i... | common-pile/stackexchange_filtered |
Generating terrain using Marching Cubes
I searched around the web but I found nothing that could help me, so I'm asking here.
I'm trying to procedurally generate terrain using the marching cubes algorithm, and I can generate a mesh. The problem is that the mesh that may be anything!
https://www.dropbox.com/s/w99lvynrf... | common-pile/stackexchange_filtered |
Getting error in form_validation > set_rules > valid_email in codeigniter
In codeigniter framework, my code is:
$this->form_validation->set_rules('mobile', 'Mobile Number', 'trim|numeric|exact_length[10]');
$this->form_validation->set_rules('email', 'Email Address', 'trim|valid_email');
$this->form_validation->set_rule... | common-pile/stackexchange_filtered |
wso2 identity server facebook login with Oauth2.0
Is it possible to use wso2 identity server Facebook login with Oauth2.0 not saml ?
i searched several docs for this but i couldn't find a proper answer for this any ideas of doing this ?
WSO2 IS federate authentication with Facebook using "Oauth2.0". You can refer WSO2... | common-pile/stackexchange_filtered |
dereference pointer to an array
I have a basic doubt, when we de-reference a pointer to an array why we get name of the array instead the value of first member of an array, I see this has been asked here but I didn't get it
exactly how?
dereferencing pointer to integer array
main()
{
int var[10] = {1,2,3,4,5,6,7,8... | common-pile/stackexchange_filtered |
Expected Length of Proof in a given Axiomatic System
Is there some sort of notion of the expected length of proof taken over the space of all theorems in an axiomatic system or something close to that in the far reaches of pure math? What type of math would study something like that?
Kolmogorov complexity?
Do you mea... | common-pile/stackexchange_filtered |
A numerical boundary conditions paradox
For $(t,z)\in[0,1]\times[-1,0]$
zmin = -1; tmax = 1;
and some fields $w(t,z)$ and $y(t,z)$
n = 100; h = -zmin/(n-1);
W[t_] = Table[w[i][t], {i, n}];
Y[t_] = Table[y[i][t], {i, n}];
let there be the following PDE's system
$$\partial_tw=\partial_zy+w\partial_zw$$
$$\partial_ty... | common-pile/stackexchange_filtered |
Deduce that $\mathbb E(X^3)=1^3+2^3+3^3+4^3+5^3+6^3$
A fair die is tossed and let the random variable $X$ be the number that appears.
Deduce that
$$
\mathbb E(X^3)=\frac{1^3+2^3+3^3+4^3+5^3+6^3}6.
$$
First of all, I would like to know the probability distribution of this random variable $X$.
We know what $X$ is... | common-pile/stackexchange_filtered |
Console not opening after weblogic server 10.3.6 installation in UNIX server
I tried weblogic server 10.3.6 in remote unix server using putty.According to logs the server is started and is in running mode.But when I try to open the console in browser it shows server not found page. Please help me regarding this issue.
... | common-pile/stackexchange_filtered |
Generic endpoint for REST resources in Perl Catalyst
I have several REST resource endpoints defined, such as /user, /group, and /event, as separate controllers. They all inherit from a root controller (App::Web::Controller::Root). Is it possible to create a generic endpoint for all these resources within the root contr... | common-pile/stackexchange_filtered |
Calculating keno odds?
In keno, the casino picks 20 balls from a set of 80 numbered 1 to 80. Before the draw is over, you are allowed to choose 10 balls. What is the probability that 5 of the balls you choose will be in the 20 balls selected by the casino?
My attempt: The total number of combinations for the 20 balls i... | common-pile/stackexchange_filtered |
WPF DataGrid Grouping with sums and other fields
I have a DataGrid that is bound to collection and that I want to be grouped. Here is the code
Collection:
private string _ID;
private string _Descript;
private decimal _Amount;
public string ID
{
get { return _ID; }
set { _ID = value; NotifyPropertyChanged("ID"); ... | common-pile/stackexchange_filtered |
Modify global variable in Javascript inside geocode
I'm getting crazy with this.
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
latitude = results[0].geometry.location.lat();
longitude = results[0].geometry.lo... | common-pile/stackexchange_filtered |
Forward Windows 2012 event logs from workgroup host to domain host
Is this possible? I've gone through the following but no events are forwarded.
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc748890(v=ws.11)
I have a DMZ server that I want to forward logs from to an... | common-pile/stackexchange_filtered |
JPanel Positioning using the Border Layout not working
I am trying to setup my JPanel's position to the right using i.add(jp, BorderLayout.EAST); but it is not working. Any ideas why? Thanks for the help in advance.
/* INSTANCE DECLARATIONS */
private JTextField tf;//text field instance variable
private JLabel jl2;//la... | common-pile/stackexchange_filtered |
IE8 addEventListener - Object doesn't support property or method 'addEventListener'
i am debugging a WPTheme for IE8. It has a feature that loads a post inside a lightbox window, only the parent page scroll Y coordinates get reset to the top of the page. -- so when you close the lightbox the you are at top of the page... | common-pile/stackexchange_filtered |
Create CSS rule from query string
Get query string
var queryString = window.location.search;
removes ? from beginning of query string
queryString = queryString.substring(1);
query string processor
var parseQueryString = function( queryString ) {
var params = {}, queries, temp, i, l;
// Split into key/value pa... | common-pile/stackexchange_filtered |
htaccess with laravel 4 rewrite on my localhost URL
I use this solution for my problem of htaccess : Htaccess redirect Laravel 4
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUES... | common-pile/stackexchange_filtered |
Download bunch of files in Bg
I need to download bunch of files (~600mb) from an ftp server.
The question is how would be best to implement that?
The simplest solution would be to pause\resume the download each time the app goes back to foreground.
The problem with that of course is that the users won't be able to init... | common-pile/stackexchange_filtered |
Spring Data JPA - Select row for update
I have a requirement to read the first enabled account from DB2 database table and immediately update the column to disable it. While server 1 is reading and updating the column, no other server should be able to read the same row since I want one account to be used by only one s... | common-pile/stackexchange_filtered |
Invoke google assistant device from command line instead of saying "Hey google"
Is there a way to invoke google assistant by executing a command (from a linux console) instead of saying "Hey google"?
I found a way, using nodejs, to send text to my home google mini to reproduce text, but I didn't find the way to enable ... | common-pile/stackexchange_filtered |
Pagination not working on GWT DataGrid
I have a DataGrid which shows say Employee details. For example, every row corresponds to an employee(name, age, salary) and name+age are anchors and salary is plain-text.
Everything is working fine so far, but since the number of rows very high my browser starts to hang. So I dec... | common-pile/stackexchange_filtered |
DotGNU vs Mono
DotGNU and Mono seem to be attacking the same problem - namely implementing the .NET CLR in a free, open-source way with an eye to cross-platform compatibility.
I've been reading quite a bit about both, and I'm having a hard time deciding which implementation to use for an upcoming project. My particular... | common-pile/stackexchange_filtered |
jQuery Bootgrid sort doesn't work - POST variable inconsistency
I'm having somme issues when trying to order the data on my jQuery bootgrid. Data is obtained and filtered on server side. No issues there, however whenever I press a column name to otder the data I can see on the console that instead of getting a sort[nam... | common-pile/stackexchange_filtered |
Using python to return a list of squared integers
I'm looking to write a function that takes the integers within a list, such as [1, 2, 3], and returns a new list with the squared integers; [1, 4, 9]
How would I go about this?
PS - just before I was about to hit submit I noticed Chapter 14 of O'Reilly's 'Learning Pytho... | common-pile/stackexchange_filtered |
Can I use the same binary on Linux, *BSD and Illumos?
I want to know, if I can use the binary of a program without modification on the three systems? After all they are all Unices. I talk about the same architecture.
No, you cannot, as the ABIs differ. Some BSDs do have binary compability with Linux binaries, with som... | common-pile/stackexchange_filtered |
Efficently dealing with magic numbers in Javax.Swing Applications
I'm doing project at University right now where I have to develop a word learning/translating game where multiple clients compete to translate a words the fastest, handled by a central server.
The GUI for this uses Java Swing JFrames, and to get a good l... | common-pile/stackexchange_filtered |
Getting error that invalid column name while writing SQL statement in Python
I am trying to write a SQL statement in Python: 'attribute' is a column name that I want to change its format and I am giving it as a parameter. Because its name can be different.
cur.execute("SELECT DATEADD(y," + attribute + ", '1980-01-01')"... | common-pile/stackexchange_filtered |
Need assistance with t-sql query max date + distinct
Just like in the title I need some help with t-SQL query to deliver a report. What I need to do is to pull data from client table and shipment table. Next the records must exclude those clients which have not done any shipments starting from 100 and must include the... | common-pile/stackexchange_filtered |
postgres(redshift) query including to_char and group by returns some errors
Im using redshift now.
then Id like to run query like
SELECT to_char(created_at, 'HH24') AS hour , to_char(created_at, 'YYYY-MM-DD HH24') AS tmp FROM log GROUP BY tmp;
this returns error, when I do it in mysql, it seems to be good.
this error ... | common-pile/stackexchange_filtered |
Moving VS "Folders" section to Primary bar
I'm not sure what happened but the "Folders" view is on the left secondary bar.
It used to be with the primary bar on the right.
I am trying to combine it so I see the "Folders" on the Explorer view.
Version: 1.77.3 (Universal)
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
... | common-pile/stackexchange_filtered |
Evaluating a statement without calculating the indefinite integral
I'm cramming for a supplementary exam so you might see a ton of questions like these in the 48+ hours to come <3
The question is more of just a yes or no ; Evaluate the statement without calculating the indefinite integral.
$$ \int \frac{2x+1}{x+1} \,\m... | common-pile/stackexchange_filtered |
Testing Express Js Server using mocha and chai
I'm trying to test my express server using mocha and chai but i'm not able to close the server connection once the test has been completed.
Index.js
const express = require('express');
const dbconnection = require('./dbConnection.js');
const app = express();
.....
(async... | common-pile/stackexchange_filtered |
How can I have my mobile view in a container-fluid and the desktop site in a container?
I'm building a website using laravel and bootstrap 3. When I apply a .container class the site displays well on medium and large screen sizes but too small on smaller devices like phones (with huge padding on both sides). And when ... | common-pile/stackexchange_filtered |
How to use elements in autoCompleteTextView?
I want to convert choosen element to Integer. When it's done I want to add a random number between 1-20 to choosen Integer. Than show up that number in Toast.
Convert element to an integer? What element are you trying to convert?
Elements of AutoCompleteTextView.
What pro... | common-pile/stackexchange_filtered |
AngularJS, how do I select the correct default option element?
Problem:
Given an array of Person objects, and a separate array of possible names (a super-set containing all the names found within our Person array), how do I set the default option within the generated angular markup (see below).
I'm at a loss as to how... | common-pile/stackexchange_filtered |
htaccess redirect of root domain, not subfolders with url masking
I am trying to do the following -
Redirect just the root domain to a different domain.
The redirect needs to be masked so the user still thinks they are on the url they typed.
Existing subfolders should still work with the existing root domain.
For examp... | common-pile/stackexchange_filtered |
Custom elements in iteration require 'v-bind:key' directives
In my Nuxt app I have the following line that triggers the error mentioned in the title of this question:
<template v-for="(project, index) in existingProjects">
<span :key="project.projectId"></span>
I tried to have the :key attribute on the template el... | common-pile/stackexchange_filtered |
Awake iOS app using silent push notifications
I know this is not the first version of this kind of question - but all information I found seems to be outdated or even wrong. So I decided to ask the question again.
Currently I'm using remote notifications to send notifications to my iOS device. Because I'd like to "awak... | common-pile/stackexchange_filtered |
How do I access OneDrive application folder using the Graph .NET SDK
I want to create a file withion the application folder using the Graph .Net SDK.
I can find a class SpecialFolder but i cannot workout how to use the class to enable me to create a file within the application folder.
You can find a collection of samp... | common-pile/stackexchange_filtered |
Save Changes with breeze Assembly could not be found for EntityName:#xx.xx.xx.xx.xx"
When saving changes, the follow Exception occurs:
"Assembly could not be found for EntityName:#xx.xx.xx.xx.Entities"
First 3 lines of Stack:
at Breeze.ContextProvider.ContextProvider.LookupEntityType(String entityTypeName)
at Bree... | common-pile/stackexchange_filtered |
Help identifying movie from Russia or similar
My recollection is very sketchy but this is what I remember....
Film was possibly black and white
I saw it as a child in the late '80s early '90s but it's older
It was subtitled and in Russian or similar language
It involved some astronauts travelling in space with possib... | common-pile/stackexchange_filtered |
Flutter persistent bottom navigation bar and page view replacement approach
I have a Navbar state full widget that tracks current page and returns a widget with a bottom navbar and dynamic body based of current page which is stored as a state
class _PullingoNavbarState extends State<PullingoNavbar> {
static int _... | common-pile/stackexchange_filtered |
Comparing two object with int and string parameters in Java
I am trying to compare two objects from the same class that contains both String and Int parameters.
This is for my lab assignment, and I have tried to use just .equals method without overriding it, did not work, I did some more research on how to compare the ... | common-pile/stackexchange_filtered |
Lightweight DMS with built in REST API
I'm puzzling myself trying to find a tool to use with my web app for saving docs. We are rewriting our own Java web app which deals mainly with binary (MS Office) documents. In the old one, we used to store that documents in the file system using Java File APIs, but now we want to... | common-pile/stackexchange_filtered |
Reopen zener diode after reverse bias breakdown
I've been learning about using zener diodes to generate a reference voltage for a small comparator circuit, the intention is to detect when a motorcycle battery is charging (i.e more than 13v), and use that to activate an Arduino circuit with a relatively high draw of 2A)... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.