text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Laravel sluggable
I am using this package for slugs in my Laravel 5.5 app. I was upgrading from Laravel 4.2 and I followed upgrade instructions, so now I have this in my model:
public function sluggable()
{
return [
'slug' => [
'source' => ['id', 'title'],
'separator' => '-',
... | common-pile/stackexchange_filtered |
How can you simplify/verify this solution for $\int\limits_0^{.25991…} Q^{-1}(x,x,x)dx?$
As I do not know the complex behavior of this function, it would be even harder to integrate past the real domain. The upper bound for the domain is a constant I will denote β.
$${{Q_2}=\int_0^βQ^{-1}(x,x,x)dx= \int_0^β Q^{-1}\left... | common-pile/stackexchange_filtered |
Why is MIT-Scheme so slow in writing out data?
In a larger program I'm writing out a small set (10^7) of numerical digits (0...9). This goes very slow with MIT-Scheme 10.1.10 on a 2.6GHz CPU, taking something like 2 minutes.
Probably I'm doing something wrong, like no buffering, but I'm pretty stuck after reading the r... | common-pile/stackexchange_filtered |
Warning: move_uploaded_file(): it is moved but the Filesize stays at zero
I have been using an upload script on my server, like below
$newname = time() . '_' . $_FILES[$file]["name"];
if (strtolower(end(explode('.', $_FILES[$file]["name"]))) != 'pdf' AND $file != "damage_attachment_damageform_1" AND $file != "damage_at... | common-pile/stackexchange_filtered |
Is it true that database management systems typically bypass file systems..?
Is my general understanding that a typical database management systems bypass file system correct? I understand that they manage their own space on disk and they write actual data and index systems like B tree directly into disk blocks bypassi... | common-pile/stackexchange_filtered |
Color individual bar in google bar chart
I have a google bar chart which gets data from json. It is monthly customer flow chart and it displays all the days of month and respective customer flow. Now i want the bar which shows max customer flow out of all to be colored in blue and rest would be grey.
Eg:
^
| ...
|... | common-pile/stackexchange_filtered |
How is the best way to delete a tenant in WSO2 carbon?
I'm trying to delete a tenant using the method "deleteTenant" in the class "TenantMgtAdminServiceStub" but it didn't works, it shows an error. I'm wondering if this is the best way to delete a tenant... I was looking for help and I found this post but is not a poss... | common-pile/stackexchange_filtered |
Add a toggle button to the Snap.js
I have used this https://github.com/jakiestfu/Snap.js/ to create a menu that appears behind the page and when you swipe the page to the right it shows the menu underneath it, everything seems to be working but when I try to add a toggle button to the page so when click on it it actual... | common-pile/stackexchange_filtered |
TinyMCE error: "The advcode enterprise plugin is not enabled on your API key." but I dont have 'advcode' plugin anywhere
I have a TinyMCE editor with basic plugins and toolbar yet a warning mentioned in the title always shows up. It doesn't affect the work of the editor, it's just annoying. These are the plugins and to... | common-pile/stackexchange_filtered |
Error compiling a Groovy project using @Grab annotation
I'm compiling a Groovy project with Gradle, but I've noticed that when I use the @Grab annotation in my code, I get the following error:
$ gradle compile
:buildInfo
:compileJava UP-TO-DATE
:compileGroovy FAILED
FAILURE: Build failed with an exception.
* What wen... | common-pile/stackexchange_filtered |
camel completionSize with completionTimeout not working correctly in JUnit
I have a file like this
line1
line2
line3
line4
line5
line6
line7
line8
And a route like that:
.from("direct:start")
.split().tokenize("\r\n").streaming()
.process(new Processor() {
@Override
public void process(Exchange exchange) throw... | common-pile/stackexchange_filtered |
how to convert json date to c# in Windows phone 8
I have to convert the json date to c# datetime format
date is<PHONE_NUMBER>000
and it orginal date format is 24jan2014 1:17pm
how can i convert this , meanwhile i followed this blog but it not worked
First,<PHONE_NUMBER>000 is very big, causing an overflow when using... | common-pile/stackexchange_filtered |
Display contents of pages based on the results of one div to a second div
I have a question.
I have two divs next to each other. In div1 I have created a dropdown menu (10 options available) with php which allows me to open another page; based on what the user chooses.
My question is: instead of opening another page c... | common-pile/stackexchange_filtered |
Run php code conditionally
I want to run the code on the basis or values returned from php array. If value is returned as disabled , offer with disabled status will not be matched.
This line of code is working fine .
if ($condition1 >= $offer1 AND $condition2 >= $offer2 AND
$condition3 >= $offer3 AND $condition4 >=... | common-pile/stackexchange_filtered |
I am trying to pass a print instruction if an item is not in a list in python. It is working for only when the pin is wrong not for wrong account
account_name = ['Adetunji Michael', 'Dina Asher-Smith', 'Niyola Davidson', 'John Paul']
valid_accounts= [3455590445,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>]
valid_pins =... | common-pile/stackexchange_filtered |
Closed form for the integral $\int_{0}^{\infty}\frac{\ln^{2}(x)\ln(1+x)}{(1-x)(x^{2}+1)}dx$
Here is a challenging one maybe some would like a go at.
Show that:
$$\int_{0}^{\infty}\frac{\ln^{2}(x)\ln(1+x)}{(1-x)(x^{2}+1)}dx=\frac{-9\pi^{4}}{256}+\frac{\pi^{3}}{32}\ln2+\frac{\pi^{2}}{6}G-\frac{1}{1536}\left[\psi_{3}\left... | common-pile/stackexchange_filtered |
Unit testing Node.js and WebSockets (Socket.io)
Could anyone provide a rock-solid, dead-simple unit test for Node.js using WebSockets (Socket.io)?
I'm using socket.io for Node.js, and have looked at socket.io-client for establishing the client connection to a server in the test. However, I seem to be missing something... | common-pile/stackexchange_filtered |
Find $\lim \limits_{x,y)\to (0,0)}\left(\frac{\sin(x+y)}{x+y}\right)$
Let $f(x,y) = \dfrac{\sin(x+y)}{x+y}$.
Does this function have a limit when $(x,y)\to {\bf0}$?
Recall that $\sin(t)\sim _0t$.
@GitGud: So, you mean that this limit exists?
$f$ is the composition of two continuous functions.
@gammatester : In my ... | common-pile/stackexchange_filtered |
Declare a field for each method that matches a pointcut in AspectJ
I want to declare a private field for each method that matches a pointcut.
For example, I have User class and I want to add some fields(like private long internalId,private String internalName,...) for each getter.
public class User {
private long id... | common-pile/stackexchange_filtered |
p:booleanCheckBox save value to map
I'm trying to save the values of booleanSelectBoxes to a map.
In my bean I've this map (with getter + setter for sure):
private Map<String, Boolean> selectedPermissions;
I fill the map in my bean by default, it looks like this then:
{0;0=false, 0;1=false, 0;2=false, 1;0=false, 1;1=f... | common-pile/stackexchange_filtered |
Function not working for innerhtml
I have a function that moves some divs onclick of div class "close". This works fine initially, but I edit the content of those divs with output.innerHTML, and when I do so, the script doesn't work onclick anymore.
Javascript:
$(function()
{
var open = true;
$('.close')... | common-pile/stackexchange_filtered |
Error in code block
I am getting two errors in code block which I am not able to remove. I think they are linking errors:
ld can't find -lc
ld can't find -lm
May we see the code you're getting an error at?
I doubt that seeing the code would help. It looks like a Code::Blocks configuration error. Can you try ... | common-pile/stackexchange_filtered |
Possibility of analyzing the hypothesis using Friedman's test
Lets assume I have collected some data about sold ice creams on the local market on the daily basis. Days( just a number of observations, might be classified otherwise, it's not variable ) present the day collection of data took place, var1 represents sold ... | common-pile/stackexchange_filtered |
Typewriter with backspacing and multiline writing
I'm quite new to HTML,CSS,JS and I'm currently working on making a web page project.
What I am trying to currently is animate something like this:
(with typewriter effect) "Hello people!" (backspace to clear text) "hello friends" (pause, typewriter cursor blinking)
(cur... | common-pile/stackexchange_filtered |
yield return in the lambda expression?
The follow code will break the list into sub-lists which begins with "[" and end with "]". How to convert it to use yield return so it can handle very huge stream input lazily? --Or how to implement it in F# with lazily enumerating?-- (never mind, I think f#implementation should b... | common-pile/stackexchange_filtered |
Galera Cluster Upgrade
I have 3 node Galera Cluster on Ubuntu 18.04. As part of Ubuntu LCM, I'm upgrading my Setup to 22.04 along with this Galera MariaDB cluster will also upgrade.
I have designed below plan to upgrade my cluster using rolling upgrade.
Trigger a Backup to get the latest production backup.
Using wsre... | common-pile/stackexchange_filtered |
How to add a new action into api.php as rest api in Mediawiki?
I want to add a new action and link it to new model for example:
I add the new module into
api.php?action=mynewaction
class ApiMain extends ApiBase {
/**
* When no format parameter is given, this format will be used
*/
const API_DEFAULT... | common-pile/stackexchange_filtered |
How to disable JavaScript build error in Visual Studio 2017?
I just updated Visual Studio 2017 from RC to final. I didn’t get the following error but recently I get this error. In building the project, I get the following error and it prevents the web project to start:
Severity Code Description Project File Li... | common-pile/stackexchange_filtered |
found .auto-deploy: in gitlab-ci.yml but can't find what does it do as it
So I've been given a task to create a CI/CD for a new repo. I can use my company ci.yml files to not start from scratch, however, I have found this snippet at the beginning of the file.
image: alpine:latest
.auto-deploy:
image: ... | common-pile/stackexchange_filtered |
Getting response from Using dataType script with jQuery on ajax request
Not sure if this should work but from a jquery ajax request with the response I want to evaluate the script being passed back. Here goes for an example.
$.ajax({
url: some/path,
dataType: 'script'
});
Then with my response I'm using php to... | common-pile/stackexchange_filtered |
How to update StoreId?
I have a lot of managed venues, each one identified by storeId.
I'm looking for the best way to update foursquare venues with this information.
StoreId is not among the venues/ID/edit parameters.
Is there another API I can use?
Thanks.
You should use the venueId, not the storeId, for editing ven... | common-pile/stackexchange_filtered |
This appears when I enter the command "git push origin master". What do I need to do to make the command work?
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/Gavinh444/website13.git'
hint: Updates were rejected because the remote contains work that you do
hint:... | common-pile/stackexchange_filtered |
Unable to install Ubuntu on a 3TB Hard Drive
I am trying to install Ubuntu on a fresh 3TB hard drive.
I have tried the following
this linuxquestions thread
making all partitions Ext4
installing Ubuntu 14 and 16.04 since later OSs may be better able to handle large hard drives
run [Boot-Repair](https:// help.ubuntu.com... | common-pile/stackexchange_filtered |
uploading files into different destinations using the php POST variable sent from a form?
I am trying to allow the admin to create a new folder and upload multiple pictures files into a new user account. This user can then have access to this folder with assigned user/password. BUT when changing the code in the upload.... | common-pile/stackexchange_filtered |
The Antiderivative is uniformly continuous if the function is continuously differentiable
Let $g$ be a continuously differentiable function on $\mathbb{R}$. Then, is the function $\int_0^xg\ dt$ uniformly continuous on $\mathbb{R}$? Is it also lipschitz continuous? I think it is uniformly continuous, by using the fund... | common-pile/stackexchange_filtered |
Docker python client cannot connect docker desktop
I'm using docker-desktop on ubuntu18.04 and I run some containers successfully with it.
I try to use docker python client as client = docker.from_env() but it failed as follows:
Traceback (most recent call last):
File "/home/caohch1/anaconda3/envs/mointor/lib/python3... | common-pile/stackexchange_filtered |
JSP Recursive Import
I have a master JSP file that I want to import a recursive set of matching files from my web app into (they are mustache templates).
I want to do something like this:
<jsp:include page="**/*.mustache"/>
or
<%@ include file="**/*.mustache" %>
Is there any way to do that via a JSTL tag etc?
I sol... | common-pile/stackexchange_filtered |
Quotients of finitely generated abelian groups
Let $G=\mathbb{Z}^n\times F$ be a finitely generated abelian group, where $F$ is finite, and let's assume that the order of $F$ is odd. Let $H_1,H_2\leq G$ be two subgroups of $G$ such that the quotients $G/H_1$ and $G/H_2$ don't have elements of finite even order, i.e. th... | common-pile/stackexchange_filtered |
How to set datestyle in postgres db in c#
I want to change the datetype to th "DMY" Format in a postgres sql database. I use the Npgsql library as follows:
public void SetDateSytleDB()
{
string sqlConnectionString = "Server=localhost;Port=5432;User Id=test;Password=test;Database=test_db";
sqlCn... | common-pile/stackexchange_filtered |
Python's Tkinter's iconify not working on Fedora
This code is used to hide or dock the current window, and then create a new window using CTkTopLevel, and then to automatically undock or bring back the previous window to the screen. This seems to work on OSX perfectly, but when I try it on my Fedora machine, it fails t... | common-pile/stackexchange_filtered |
FFMPEG zoompan only applies and shows 3 images out of the many
I am trying to generate a video from images using FFMPEG 4.0 windows built on AWS windows instance using PHP.
$command2="ffmpeg -r 1/5 -i https://<path>/$images%d.jpg -c:v libx264 -r 5 -t $total_video_time -y ".trim($video_name)." -i http://<path>/$audio ... | common-pile/stackexchange_filtered |
Error Calling .ASP.Net Web Service from Android
I am working on an Android app that needed to make a web service call to an ASP.Net Web Service. I am using the KSOAP2 client and this has been working but stopped working all of a sudden.
I have reversed every recent changes I made without success.
Here is the Android Co... | common-pile/stackexchange_filtered |
recurrence relations
I have seen the following problem in my regular study, which I am not able to solve. Please solve it for me.
Let $C_0,..., C_{k-1}$ be fixed integers and consider the recurrence relation of order $k$,
$X_{n+k} = C_{k-1} X_{n+k-1} + C_{k-2} X_{n+k-2} + \cdots + C_1 X_{n+1} + C_0 X_n$.
Show that once... | common-pile/stackexchange_filtered |
@Html.ListBoxFor setting the initial selected item
I have a web page which has a listbox which is correctly populated as below
@Html.ListBoxFor(model => model.Item, ViewBag.Ingreds as SelectList,
new { @id = "item", @size = 5 })
This is correctly populated with the contents of the Vi... | common-pile/stackexchange_filtered |
How to get a label in the Android action bar
As the title suggests, I want to put some text in the action bar. Firstly, here's a mockup (in Paint!) of what I'm imagining:
I'm really struggling with this. In my activity I put:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.... | common-pile/stackexchange_filtered |
JSTL breaks on GoogleAppEngine's development server, but works on remote server
As the title says, my JSTL tags don't work on my development server, but do work on Google's actual server.
I simplified the code to the bare bone to make sure there wasn't anything wrong with the code, so here's what I've got.
JSP
<%@ pag... | common-pile/stackexchange_filtered |
How to send React to Express server get Request passing id
Hello I am learning on MERN Stack dev, so I am trying to implement a get request where by I send in and ID and then try searching through the collection by the id the return the entry back to the client so I have been trying to implement this but I do not know ... | common-pile/stackexchange_filtered |
How to resize images in windows phone 8 applications?
How to Resize the image in windows phone 8.0 application using C# without loss of quality and to display full image
What I did,
My XAML Code:
<StackPanel Orientation="Vertical">
<TextBlock Text="Select Image" FontSize="45" Height="106"></TextBlock>
<Image Na... | common-pile/stackexchange_filtered |
Solving for the parameters of a discrete markov state model
I have some observations $y_t \in \mathbb{R}_+, t\in 0 \dots n$, and I'd like to fit the following model: a vector of initial states $p_0 \in \mathbb{R}^s_+$, transition probabilities $K \in \mathbb{R}^{s \times s}_+$, and emission probabilities $b \in [0,1]^s... | common-pile/stackexchange_filtered |
How to add new classes to tensorflow.js model in transfer learning?
have a pre-trained network that can object detect one class. How do I add more classes to this model without losing the previous knowledge of that original class?
I have read in another post that suggests creating a new model, with the "base model" lay... | common-pile/stackexchange_filtered |
Equivalent binary forms
Two binary forms $f, g \in k[x, y]$ are equivalent when there exists an $M \in GL_2 (k)$ such that $f^M = g$. For simplicity we take $k$ such that $char (k) =0$ and $k=\bar k$.
The equivalence classes of binary forms are determined by the $GL_2 (k)$-invariants and they are known for degree $d ... | common-pile/stackexchange_filtered |
Supporting multiple authentication policies in ASP.NET 4 Web application
Consider an application that includes a set of ReST web services built using ASP.NET 4 and native C++ IIS modules.
We need to be able to support 2 authentication policies:
internal users can call our ReST endpoints directly from inside another cl... | common-pile/stackexchange_filtered |
Fibonacci Rabbit's variation
Okay so I am trying to understand modifications to the famous fibonacci rabbit problems so I can make a generalized website for it as a pet project, where people just need to input paramaters and it will generate the tree like structure and the recurrence relation if possible.
One pair of ... | common-pile/stackexchange_filtered |
Error when launching an instance "not enough resources vm instances"
I was able to use the web interface but I get this error when launching an instance. "Not enough resources (0 in cluster1 < 1): vm instances."
I installed Eucalyptus 4 manually on a single physical server running CentOS 6.5 (minimal)
Various articles ... | common-pile/stackexchange_filtered |
How can we motivate that electromagnetic fields carry momentum and angular momentum?
When I was an undergraduate student, I was comfortable with the concepts of momentum and angular momentum of a particle or of a system of particles. However, the concept of electromagnetic fields carrying momentum and angular momentum ... | common-pile/stackexchange_filtered |
Linked Lists in C
I have a program (part of an example I am trying to work out), that reads a value from a text file (bus.txt), and then for these number of seats initializes the values of a structure which is a linked list. All of this is done inside a function, and I want the linked list to be available outside of th... | common-pile/stackexchange_filtered |
Frequency analysis of categorical/binary data
I want to do frequency analysis with a data set of consecutive binary values, such as "Rainy - Sunny - Rainy - Rainy - Rainy - Sunny - ...". Using this data, I want to extract the frequency (= the harmonic component) of sunny days. Is there a structured approach to do so? A... | common-pile/stackexchange_filtered |
Promise return in while loop in node.js
I am new to node.js programming .
I am confused how the async and await works
const async = require('async');
createUser: async (user, myid) => {
let dotill = false;
let userid = null;
const getreturn = async.whilst(
function testCondition() { return dotill === false;},
as... | common-pile/stackexchange_filtered |
sumtwo problem in leetcode: Hi , I am new to Leetcode and I am trying to solve first problem
PROBLEM : Given an array of integers, return indices of the two numbers such that they add up to a specific target.Given nums = [2, 7, 11, 15], target = 9,Because nums[0] + nums[1] = 2 + 7 = 9,
return [0, 1]. I am getting error... | common-pile/stackexchange_filtered |
Download PDFs from URLs via loop
I have a dataframe df containing a column URL from which I want to download the PDFs behind those URLs.
Here is the dput() for the df:
structure(list(Name = c("Cran", "Beginners", "Split"), Ticker = c("CAR",
"BEG", "SPL"), URL = c("https://cran.r-project.org/doc/manuals/R-intro.pdf",
... | common-pile/stackexchange_filtered |
Unable to localize xib in pods through xcode
I'm trying to localize xib through xcode.
When I select xib and hit the localize button in the File Inspector, xcode should create .strings file for the xib. In my case it is creating the another .xib file but not .strings file.
What I expect is:
Note: I can localize th... | common-pile/stackexchange_filtered |
p5js one tough puzzle returning not enough numbers to console
i'm trying to create a one tough puzzle solver thing, can anyone help me on why this is only showing 4 numbers in console instead of 8.
s1 = [1,-4,-1,2];
s2 = [2,-4,-3,4];
s3 = [4,-1,-3,3];
s4 = [3,-3,-4,4];
s5 = [2,-4,-3,2];
s6 = [4,-2,-4,3];
s7 = [1,-2,-4,... | common-pile/stackexchange_filtered |
Passing routes from AppComponent to a navbar component?
So following along the Angular2 route documentation I end up with a component similiar in design to this:
@Component({
selector: 'app',
templateUrl: './views/app.component.html',
directives: [ROUTER_DIRECTIVES, NavBarComponent]
})
@Routes([
{ path:... | common-pile/stackexchange_filtered |
How can I maintain a persistent PostgreSQL connection from within a Next.js 14 API?
>! data-source.ts
import entities from "../entity"
import "reflect-metadata"
import { DataSource } from "typeorm"
require('dotenv').config();
const poolConfig = {
min: 1,
max: 10,
idleTimeoutMillis: 3000000,
};
export const A... | common-pile/stackexchange_filtered |
Redirect All Sub Pages to Same Place on New URL
I want to redirect a blog from one domain to another. I have setup the URL structure, so it matches for all pages. Essentially it will be going from olddomain.com to newdomain.com/blog/ (for example http://www.olddomain.org/2013/01/blog-name/ to http://www.newdomain.org/b... | common-pile/stackexchange_filtered |
How I can move up the line in Java Swing?
I create this class to draw the line and extend it as a component.
class MyCanvas extends JComponent {
public void paint(Graphics g)
{
g.drawLine(30, 20, 80, 90);
}
}
...
frame.getContentPane().add(new MyCanvas());
After drawing, when adding text fields... | common-pile/stackexchange_filtered |
Multiplying inventory with values
I was wondering whether there is an easier way of multiplying the inventory I have by their values assigned? I came out with the below code, which seems to work but it looks lengthy.
score = {
"handle" : 4 ,
"blade" : 3 ,
"bottle" : 10 ,
... | common-pile/stackexchange_filtered |
How to total quantity based on date range from another table?
how to total quantity based on date range from another table?
var items = entity.ItemHeaders.Where(x => x.date >= _dateFrom && x.date <= dateTo);
var tQty = entity.ItemContents.Where(x => x.Warehouse == dto.Warehouse).Sum(x => x.Quantity);
the problem is I... | common-pile/stackexchange_filtered |
Visual Studio 2019 not loading references
I cloned a .net 4.8 project from Azure dev ops, and when I open it, I get a missing reference warning on all the references. See:
How can I resolve all these references? I thought these references come with the project?
Have you done a package restore?
No, what is that and ... | common-pile/stackexchange_filtered |
What does “second” mean here and why did Jamie used it here?
This is from Jamie Dimon interview in Stanford:
Character is a sine qua non and by character I also mean that they tell the whole truth, nothing but the truth. They do not shape the truth and they say the same thing to you and me. because second I see peopl... | common-pile/stackexchange_filtered |
mex code crash on new matlab version / architecture
I have a routine that computes the shift-invariant discrete wavelet transform, as specified in the Rice Wavelet Toolbox, in the frequency domain. The code is in MEX (c-syntax) and uses some extra routines to do imaginary polynomials etc. in a separate file.
The source... | common-pile/stackexchange_filtered |
What is $\lim_{h \rightarrow 0} e^{-2i \cdot \arg(h)}$?
This limit arose when I wanted to show that $f(z) = \overline{z}$ is not holomorphic.
When I say that $$\lim_{h \rightarrow 0} e^{-2i \cdot \arg(h)} = e^{-2i \cdot \arg(0)} = 1$$
I have shown that $f$ is holomorphic. So I suppose I can't simply plug in $h=0$. Why?... | common-pile/stackexchange_filtered |
Crystal Reports : change database connection of existing reports in batch
I have hundreds of legacy .rpt and am trying to change the connection configuration of all of these reports.
I used Crystal Reports Developer Version for Visual Studio (2019 community edition) to create a new Windows form application project and ... | common-pile/stackexchange_filtered |
Php form checkboxes help (again)
sorry, I have another problem now. I'm using a new php form method than I previously used.
I have something like this:
<?php
$ToEmail =<EMAIL_ADDRESS>
$subject = 'Contact Form';
$mailheader = "From: ".$_POST["email"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["email"]."\r\n";
$mailh... | common-pile/stackexchange_filtered |
Flutter : "Could not resolved the package" every install new packages
I have some problem about installing new package from pub.dev. I create my own package inside my root project with this command :
flutter create --template=package main_template
structure folder
I installing new package inside main_template not lib.... | common-pile/stackexchange_filtered |
Can I have additional fields on the users table in CakePHP & still use the built-in auth methods?
I'm using cakePHP and I want to add a First and Last name column to the Users table, but when I pass through the field values firstname & lastname the columns are always left null, while the default fields are populate fin... | common-pile/stackexchange_filtered |
Convert multipage PDF to PNG with transparency
in the moment i run into several problems by converting a PDF file to PNG.
The transparence is lost from the source pdf file.
I have tested the following terminal tools to create the png:
GhostScript, Imagemagick and pdf tools from poppler-tools, always on a debian system.... | common-pile/stackexchange_filtered |
Form in PHP and Bootstrap is not passing variables , is just following the path of action
This is the HTML code:
<form class="navbar-form navbar-right" method="post" action="http://ead.montepage.com.br/login" id="loginbar" name="loginbar">
<input type="hidden" name="postado" value="971519838881353a18b7069f3... | common-pile/stackexchange_filtered |
What does the archetype of the shonen protagonist look like and how would the male and female versions look different?
I'm writing a book called successors which tackles the entire world and it features 6 main protagonists and a lot of secondary characters. The one this question focuses on is named Xu. I want to write ... | common-pile/stackexchange_filtered |
Combine two FITS files by taking a 'pizza wedge' slice?
I would like to combine two FITS files, by taking a slice out of one and inserting it into the other. The slice would be based on an angle measured from the centre pixel, see example image below:
Can this be done using Astropy? There are many questions on combini... | common-pile/stackexchange_filtered |
Nginx: How to run my flask application after setting up Nginx and gunicorn?
How to run my flask application after setting Nginx and gunicorn.
Earlier I used python run.py (http://<IP_ADDRESS>:5000/users)
I've tried to run using http://<ip_address>/
Configurations
gunicorn- my-server.service
[Unit]
Description=Flask Web... | common-pile/stackexchange_filtered |
Extending user admin form in django
I'm trying to change user admin in Django. In my project the email address, first name and last name is required. I changed my user admin as following :
class UserForm(forms.ModelForm):
class Meta:
model = User
def __init__(self, *args, **kwargs):
super(Use... | common-pile/stackexchange_filtered |
Getting 'Bind variables only allowed in Apex code' when attempting this query
SELECT Id, Last_stage_changed_date__c, CreatedDate
FROM Opportunity
WHERE Last_stage_changed_date__c < CreatedDate
Last_stage_changed_date__c is of the Date type. I feel like I'm doing something dumb but I can't spot it.
Getting the error:... | common-pile/stackexchange_filtered |
SVN on Domain: How to release the trunk into a folder on the domain
Totally new to SVN, I apologize for noobishness. I've searched around to no avail on this issue (probably phrasing it incorrectly).
We have an svn set up on a networked Windows domain. Basically I want to be able to check out a file locally, modify, co... | common-pile/stackexchange_filtered |
How to get a cell reference programatically
I want to use a specific range reference programmatically to sum (next 25 cells), for which I'm using OFFSET(), which requires a cell reference. However, most lookup functions return indexes, or values, not cell references, so I have to use INDEX().
I find it a bit ridiculous... | common-pile/stackexchange_filtered |
vue.js - Unable to reference router
At some point between editing my code I had at least a portion of this working but of course did not commit before those times.
project: https://github.com/Ampix0/ticker-for-robinhood;
Code issue: https://github.com/Ampix0/ticker-for-robinhood/blob/master/app/src/renderer/components/... | common-pile/stackexchange_filtered |
Selecting GPU over Intel Internal Graphics
I have a Windows 10 PC with an Intel integrated graphics as well as a dedicated GPU.
My display is connected to the GPU but when I boot the PC I get a "No Signal" error message. It eventually goes away and I see the log in screen.
The issue comes when I want to access the BIO... | common-pile/stackexchange_filtered |
How do I disconnect all bluetooth devices via command line?
When a specific user logs in on Windows 10, I want to have all Bluetooth devices that are currently connected to be disconnected. How would I do this? I want to be able to automatically enter something in the command line either through the task scheduler, or ... | common-pile/stackexchange_filtered |
Get Extjs grid on which context menu item is clicked
I have a Grid and on grid context menu I am calling one function as follows-
On grids context menu I have added the following item
{ text: 'Preview', handler: 'PreviewGrid', scope: cnt, };
In controller-
previewGrid: function (contextMenuItem) {
// Here ... | common-pile/stackexchange_filtered |
Open an exising MVC 3 project in visual studio 11 developer preview
I've trying to open and convert an existing vs 2010 mvc 3 project in the new dev 11 preview and am running in to a difficult issue. The solution file will convert successfully, however the one mvc 3 web project in the solution shows in the solution ex... | common-pile/stackexchange_filtered |
Error message when setting parity for serial on rasp pi 3
I am trying to get the uart serial to work but when I try to set the parity the following error comes out.
pi@pi3:~ $ python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more informatio... | common-pile/stackexchange_filtered |
Resistor on data line between SK6812MINI-E and an MCU
Im getting pretty confused by the resistor that is supposed to be between the DIN of the first SK6812MINI-E and the pin of the MCU. The LEDS are being powered by a 5V 2A power supply (but should only draw 1.045A if my calculations) Now the datasheet says it should b... | common-pile/stackexchange_filtered |
I am not able to open open-in-jd-gui.sh in my ubuntu terminal.how to use the open-in-jd-gui.sh tar file
**i want to open open-in-jd-gui.sh this file in ubuntu terminal or execute in eclipse.i have some java class files.but in windows i know that.but in ubuntu how to excute this file.
how to execute the jd-gui-0.3.3linu... | common-pile/stackexchange_filtered |
how to get dynamic dataframes created in function in pandas
I have following main dataframe in python
ID Date Product_Name transaction
1 01-01-2018 MS 234
1 01-02-2018 MS 2345
1 02-02-2018 MS 234
2 01-01-201... | common-pile/stackexchange_filtered |
Determine the formatting of a word from in a Word document
I am writing an application in C# that uses the Microsoft Office interop DLL to read a Word document. This is working fine.
I'd now like to also determine the formatting applied to the words I'm reading--for example, check if it's bold or italic or underlined.... | common-pile/stackexchange_filtered |
Cannot access data from hbase with amazon ec2
I have a single node hadoop machine in which hbase is running in the amazon ec2 instance.
Due to some reason the server got restarted. So i need to start hadoop and hbase again. Then its working fine, but the old data in the hbase cannot be accessed through the web-servies.... | common-pile/stackexchange_filtered |
Prolog existence_error from book example
I'm learning prolog from a book. When I enter the book's example in my file and try to run it I get existence error.
The example:
dog(fibo).
cat(felix).
animal(X) :- dog(X).
Then I try:
consult('test.pl').
animal(fibo).
I get:
uncaught exception: error(existence_error(procedur... | common-pile/stackexchange_filtered |
django get_available_name() got an unexpected keyword argument 'max_length'
I want to override files with the my django Model. So if I upload 'one' and later upload 'two', 'two' should override 'one' (on the file system). But I get an error.
This is my model:
class StudentAssignment(models.Model):
file0 = models.Fi... | common-pile/stackexchange_filtered |
How do cryptocurrency exchanges handle users' accounts?
I recently became aware of the fact that exchanges have trading engines that execute all trades within the exchange itself, and not on the blockchains. That is to say, if User A sells to User B, there is no corresponding blockchain transaction transferring those c... | common-pile/stackexchange_filtered |
How to Apply CSS Width to a Nested Div in a Razor Component Without Modifying the Component?
I am working with a Razor component that generates a nested <div> structure, and I need to apply a width: 100%; style to the outer <div>. However, I cannot modify the component directly, and it does not expose any style or clas... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.