text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Module parse failed: Unexpected token (7:8) File was processed with these loaders When I was using external jsx component in react js
I have an integrated project. It contains some pages (Each page in a folder is a react app). Outside these folder (as a root of them), I want to create some custom components an use them... | common-pile/stackexchange_filtered |
Jade: each val in times returns "no such function: val"
I have the following Jade:
template(name='hello')
button(class="ui grey basic button", id="clickme")
i(class="sun icon")
| Times
div(class="ui list")
each val in times
div.item= val
Where times is a session variable bei... | common-pile/stackexchange_filtered |
Having problem pass data with curl into established mlflow models
I am following the mlflow documentations-saving and serving models(https://www.mlflow.org/docs/latest/quickstart.html ), and came across a problem while trying to passing data into established models.
command:
python sklearn_logistic_regression/train.py
... | common-pile/stackexchange_filtered |
Defaulting a column to the 1st of next month
I'm trying to find the most elegant means of defaulting a column's value to the 1st of next month. The best I've been able to come up with is this:
ALTER TABLE Foo ADD
Bar datetimeoffset(0) NOT NULL DEFAULT(DATEFROMPARTS(DATEPART(year, DATEADD(month, 1, GETDATE())), DATEPART... | common-pile/stackexchange_filtered |
Why does my Perl unit test fail in EPIC but work in the debugger?
Has anyone ever experienced a unit test that fails and when they tried to debug it to find out where the failure was occurring, the unit test succeeds when running the code in the debugger?
I'm using Eclipse 3.5.1 with EPIC 0.6.35 and ActiveState Activ... | common-pile/stackexchange_filtered |
How to open Location services screen from setting screen?
I want to open location service screen programmatically to turn on service.
Step 1: Click on project name >> target>> info >> url Types
Step 2:
-(IBAction)openSettingViewToEnableLocationService:(id)sender
{
[[UIApplication sharedApplication] openURL:[NS... | common-pile/stackexchange_filtered |
Displaying Content with laravel template without blade
I have this controller method
class Account_Controller extends Base_Controller
{
public $layout = 'layouts.default';
public function action_index($a,$b)
{
$data['a'] = $a;
$data['b'] = $b;
$this->layout->nest('content', '... | common-pile/stackexchange_filtered |
Perform a multi test run in Intellij IDEA 2022.2.2 by calling single tests(like these test are variables)
I'm an automation tester and I write automatic test in Gherkin+selenium and java.
I have different scenario to test, and i have lots of test related to the same feature.What i want to do is to create a single featu... | common-pile/stackexchange_filtered |
How can I shorten page references from specific to a range (eg. pg 1-3,6-7,9 to pg 1-9)
I have a list of page references that need to be converted from specific references to min-max references. How can I accomplish this?
Examples and desired results:
Current Desired Result
pg 1-3,6-7,9 pg 1-9
pg 6,7 ... | common-pile/stackexchange_filtered |
Malformed xml after regex replacement
I'm trying to parse an XML file with Java.
Before I start parsing, I need to replace (encode) some text between the <code> and </code> tags.
Therefore I read the contents of the file into a String:
File xml = new File(this.xmlFileName);
final BufferedReader reader = new BufferedRea... | common-pile/stackexchange_filtered |
What in-depth spatial database systems tutorials exist?
Is there a good tutorial that explains in depth the internals of a GIS and a spatial database system such as PostGIS with examples and without any background assumption? I'm specifically looking for answers to questions such as:
What is a geometry in GIS?
How i... | common-pile/stackexchange_filtered |
How to turn off "<em class="placeholder"> </em>" surrounding vars in the output of t()?
In my module I display a menu inside a block using drupal_render(menu_tree('my-menu')).
In the output the variables printed with t() are surrounded by <em class="placeholder"> </em>.
Drafts <em class="placeholder">(4)</em>
Inbox <e... | common-pile/stackexchange_filtered |
Do I need to modify the app if I connected CloudFront with S3?
So, I have an app with people who can post videos, make a profile etc.
I don't have so much experience with AWS, but I'm confused. I followed a tutorial about "How to connect S3 with CloudFront" and I don't know if I need to do more.
So, on Origin domain I ... | common-pile/stackexchange_filtered |
Java: Sorting a 2D array by first (int filled) column
I want to sort an Object[][] by the first column which consists of ints.
Take, for example, this array:
Object[][] array = {{1, false, false}, {2, true, false}, {0, true, true}};
Now, I want to create a new array whose rows are sorted in a way that the first elemen... | common-pile/stackexchange_filtered |
Trigger UIApplicationWillTerminateNotification for "stop" Xcode action
I noticed that UIApplicationWillTerminateNotification is not getting sent if I stop the executable from Xcode. Is there a clean way to get it to call?
Use this code below. It will work great!
[[NSNotificationCenter defaultCenter] addObserver:self s... | common-pile/stackexchange_filtered |
lambda/function pointer with std::function causes error
Update:
These errors appear to be from CODAN, Eclipse's code analyzer, that appear in the Problems view and are also underlined in red on the line the error refers to. Oddly enough building the project successfully creates the executable, and the build does not re... | common-pile/stackexchange_filtered |
Read the csv file store data in nested dictionary
I have csv file like this
[image][1][1]:
https://i.sstatic.net/kaBMF.png which has 2 columns, I have read this csv file and stored data in dictionary, below is my code
import csv
with open('p1.csv', mode='r') as infile:
reader = csv.reader(infile)
mydict = {row... | common-pile/stackexchange_filtered |
Incorrect Android documentation about layout aliases?
I'd like to figure out how to reuse or "alias" layouts with the least boilerplate code.
It seems that the Android documentation about layout aliases is incorrect, and certainly appears inconsistent. This section of documentation shows the following layout file as... | common-pile/stackexchange_filtered |
partclone via clonezilla - where are the bad blocks logged?
I've just backed up a partition using clonezilla, which in turn employed partclone. During the backup, several blocks were bad and were skipped (it was in rescue mode). Is there a log of these?
There's a log in /var/log/partclone.log, which lists the bad sect... | common-pile/stackexchange_filtered |
Are toolbars considered views?
I was working through one of the Material Design tutorials when I noticed one of their Fragments was using a FrameLayout with both a Toolbar and a RecyclerView. This struck be as odd considering that the documentation for FrameLayout has:
FrameLayout is designed to block out an area on t... | common-pile/stackexchange_filtered |
Inheriting from both ABC and django.db.models.Model raises metaclass exception
I am trying to implement a Django data model class, which is also an interface class, using Python 3. My reason for doing so is, I'm writing a base class for my colleague, and need him to implement three methods in all of the classes he der... | common-pile/stackexchange_filtered |
Is the galaxy made of a nebula or the solar system?
My book says on the topic 'Formation of stars' that a galaxy starts forming by the accumulation of hydrogen gas in the form of very large clouds called nebulae. Then local lumps of gas are formed. These lumps start getting even denser and eventually form gaseous bodie... | common-pile/stackexchange_filtered |
backbone.js: What should be a view?
I'm working on an app that has 1 main list of videos, and a playlist that you can add videos to from the main list (http://gosukpop.com).
I'm in the process of "transferring" my project over to backbone.js. I only have views for the main video list table and the playlist table. And ... | common-pile/stackexchange_filtered |
APPLICATION ERROR: transaction still active in request with status 0
Looks like it is a big bug in JBPM6.5. If the loop is very big, the process will encounter error "APPLICATION ERROR: transaction still active in request with status 0"
I am not sure what happened. Anyone can explain it? Thanks very much. You can rep... | common-pile/stackexchange_filtered |
ERROR in Error encountered resolving symbol values statically
I just migrated my project under angular-cli and I'm getting this error when I start it:
ERROR in Error encountered resolving symbol values statically.
Function calls are not supported. Consider replacing the function or
lambda with a reference to an e... | common-pile/stackexchange_filtered |
Disposing/Cleaning up web service proxies
What is the best practise for Disposing/Cleaning up a web service proxy instance after synchronous usage?
How does the answer differ if the proxy class is derived from SoapHttpClientProtocol versus ClientBase<T>?
Background
I'm trying to figure out why one of my WCF web service... | common-pile/stackexchange_filtered |
An enigmatic partition of the chemical elements
I have partitioned the chemical elements into two groups based on a certain
property that is shared by some of them, but not by the remaining ones.
The following elements have my enigmatic property:
Bismuth, Chlorine, Gold, Helium, Iodine, Mendelevium, Nitrogen, Silver
... | common-pile/stackexchange_filtered |
Alkaline batteries used in Ni-Cd battery rechargable power outage LED emergency light
I have a Vector Rechargeable Power Outage LED Emergency Light that plugs into the wall. When the electricity goes off, it comes on. The instructions state to use three AAA Ni-Cd batteries and I only have alkaline batteries. Hurricane ... | common-pile/stackexchange_filtered |
How can Wan's history be reconciled with legend?
In The Legend of Korra S02E07-08 Beginnings, we see how the first Avatar, Wan, came to be. During these episodes, we see him gain firebending, airbending, waterbending, and lastly earthbending from lion-turtles that carry human cities on their backs. However, in Avatar... | common-pile/stackexchange_filtered |
How to remove box and whiskers from plot() function in R?
I'm trying to do a very simple plot using the plot() function in R where I plot out the weights and diets of chicks in a stratified plot. For other simple plots like this I've been able to just use the plot() function and it's gone fine. But for some reason, R i... | common-pile/stackexchange_filtered |
Differentiate between questions and answers in the suggested edit queue
Possible Duplicate:
Suggested edits: Better visual indication of whether edit is to a question or an answer
I've now accidentally rejected a few edits because they edited the code, and code in questions shouldn't be edited by others since it mig... | common-pile/stackexchange_filtered |
Spring Boot & Couchbase Stack Overflow
Hi I have 2 simple classes in a bidirectional relationship which are causing infinite recursion resulting in an eventual stack overflow when serialising into JSON. I am using the Spring Boot 2.2.2 starter project for Couchbase and Spring Web dependencies. My maven pom.xml file is ... | common-pile/stackexchange_filtered |
Are foreign consulates located in the United States considered foreign territory when it comes to abortion laws?
My friend and I got into a debate whether a woman could step into a foreign consulate, take an abortion pill, then leave without fear of prosecution if abortion is illegal in the State where she resides. (Mo... | common-pile/stackexchange_filtered |
google-services.json file for each flavor in android studio
I have different productFlavors specified in my build.gradle file
dev {
applicationId ""
versionCode 83
versionName "2.2.1"
}
staging {
applicationId ""
versionCode 119
versionName "2.8.1"
}
both flavors... | common-pile/stackexchange_filtered |
C#: how assign a value to a string var without using switch
First of all I must say that I am pretty new using C#. I have written this code block to assign a value to a string var depending on the value of another var. I have used the Switch statement:
switch (_reader.GetString(0))
{
case "G":
... | common-pile/stackexchange_filtered |
VoiceOver is not able to read mobile web
I have been away from accessibility\programming for awhile and I am helping friend with his responsive web site. We have fixed the code parts for accessibility on the desktop and Android\Talkback is usable. The issue is that VoiceOver, in iOS 12.14.5, doesn't recognized any cont... | common-pile/stackexchange_filtered |
Why enol is unstable?
Alkynes undergo acid-catalyzed addition of water across the triple bond in the presence of mercuric ion catalyst. The products are enol and keto. I want to know why is keto more stable than enol.
Try a Google search... "keto-enol tautomerism"
http://chemistry.stackexchange.com/questions/18904/wh... | common-pile/stackexchange_filtered |
Fiddlercap not capturing in IE8
I'm debugging a JS problem on a client's app. So I gave him Fiddlercap to record him reproducing the problem.
Except - fiddler cap isn't capturing anything (it captures the fiddler cap welcome URL). He's a developer, so am sure he understood the instructions.
Any idea what could cause ... | common-pile/stackexchange_filtered |
When removing old carpet in preparation for the installers should I also remove the old tack strip?
I've got carpet installers booked in to replace the carpet in 2 rooms of my apartment. In preparation for them I started removing the old carpet and then old carpet tack strips so they'd have a clear concrete floor to wo... | common-pile/stackexchange_filtered |
Plot explicit cdf instead of ecdf in R
I have adjusted the parameters (lambda, mu, sigma) for a mixture of two normals fitted to my data. Now I would like to plot the cdf of this model using the explicit function instead of the ecdf. Is there any way to do this or I do I have to simulate data so then I can use again ec... | common-pile/stackexchange_filtered |
The type or namespace 'name' could not be found
I am trying to build the solution 'NopCommerce'(solution name) of my project..
But it shows the following type of errors:
The type or namespace name 'UasParser' could not be found (are you missing a using directive or an assembly reference?)
I know this question has bee... | common-pile/stackexchange_filtered |
How to show that simple random sample sensitivity is unbiased for population sensitivity
In diagnostic testing, sensitivity $S$ is the probability that the test gives a positive result given that you have the condition being tested. From a simple random sample of people who take the test, an estimate for sensitivity is... | common-pile/stackexchange_filtered |
merging a multi-dimensional array into another multi-dimensional array
this relates to my previous post.
how to create a collection of multi dimensional arrays and not overwrite origional values when new ones are pushed
i am thinking my problem has to do with how i am creating the array. what i'm trying to do is make a... | common-pile/stackexchange_filtered |
What is the value of the following expressions?
My C++ programming professor gave the students some exercises about boolean algebra.
Two of them were:
1) true || true
2) true && false
The possible answers for the two are the following:
a) true
b) false
c) 1
d) -1
What is the correct way to evaluate these exercises, and... | common-pile/stackexchange_filtered |
How to compute $P(\sum\limits_{i=1}^n \frac{1}{x_{i}^3}>L)$
Let $L >0$ be a constant and consider the random variables $\left(x_i\right)_{i=1}^n$ that follow a binomial distribution as $x_{i} \backsim \operatorname{Bin}(n,\frac{k}{n})$, but they are not necessary independent from each other. The variables $k$ and $n$ a... | common-pile/stackexchange_filtered |
How to make an alias active in both current session and in .bashrc at same time?
I just found frequently I decide to add an alias for longer time use at the same time use it now. So I have to type the same thing twice, first in current bash session then .bashrc.
First, put it in the .bashrc, then source ~/.bashrc.
I ... | common-pile/stackexchange_filtered |
Visualisation with PCM wave data
I have an API that gives me PCM wave data:
http://msdn.microsoft.com/en-us/library/ff966424.aspx
The byte[] buffer format used as a parameter for the SoundEffect
constructor, Microphone.GetData method, and
DynamicSoundEffectInstance.SubmitBuffer method is PCM wave data.
Additiona... | common-pile/stackexchange_filtered |
Adobe Acrobat is interfering with PDF files shown with WebView
I am using the WebView class from WebKit to display a PDF document.
I am creating an instance of NSURLRequest and passing it the URL to the PDF.
The PDF document does not display when Adobe Acrobat is installed on the system. Uninstalling Acrobat fixes t... | common-pile/stackexchange_filtered |
this.context.history undefined while using <Link> on child component
How do I populate context so that history is not undefined when using tags in react-router?
The error I am getting is :
Uncaught TypeError: Cannot read property 'pushState' of undefined
on function Link.handleClick at line:
if (allowTransition) this... | common-pile/stackexchange_filtered |
DPM 2016 System State Protection Windows Server Backup Event 19<PHONE_NUMBER>
I am using Data Protection Manager 2016 and have configured "System State Backup" on a server. The server has the agent installed, Windows Server Backup feature enabled, and the configured dpm user is in the backup operator group.
The backup ... | common-pile/stackexchange_filtered |
Can OpenRefine easily do One Hot Encoding?
I have a dataset like a multiple choice quiz result. One of the fields is semi-colon delimited. I would like to break these in to true/false columns.
Input
Student
Answers
Alice
B;C
Bob
A;B;D
Carol
A;D
Desired Output
Student
A
B
C
D
Alice
False
True
Tru... | common-pile/stackexchange_filtered |
Command Prompt freezing after pressing enter, invalid loop
I am currently making a program that allows you to choose 1 of 4 options, and in order to execute this properly, I have to use a loop. The point of this simple program is to allow the user to select 1 of 4 choices:
1 - Set percent to avg by
2 - Enter grade (and... | common-pile/stackexchange_filtered |
More settings for the facebook php API
Maybe I searched completely in the wrong way, and the facebook documentation pretty much sucks in my opinion.
I was wondering, I'm connecting to facebook with the settings below and that works (I'm able to retrieve the profile information of the logged in user allows my applicati... | common-pile/stackexchange_filtered |
Long Form writing for CS Educators. Is a Blog possible?
I have just written a long meta post that I'm told doesn't really belong here. I agree, but think something like it belongs somewhere if we are to really service educators.
What doesn't work.
Neither a Question/Answer format nor a Chat format works for such writin... | common-pile/stackexchange_filtered |
How do I loop through and access all sections of returned entries?
On my search results page I want to add a section filter depending on the different sections that are included in all of the returned entries.
I am getting all the sections like this:
{% set entries = craft.entries.section(['inspirationArticles', 'pages... | common-pile/stackexchange_filtered |
Trying to screen-grab an entire Spritekit scene
I'm trying to capture an entire Spritekit scene for the purpose of later magnify particular areas. To capture the scene I tried doing:
if let texture = view.texture(from: node) {
let sprite = SKSpriteNode(texture:texture)
// ... do whatever with sprite
}
Which w... | common-pile/stackexchange_filtered |
Is the intersection of $\sin(\mathbb{N})$ and $\cos(\mathbb{N})$ empty?
My guess is that the intersection is empty and this is as far as I got in an attempt to prove this by contradiction:
$\exists n,m \in \mathbb{N}, \cos(n)=\sin(m) \land n \neq m \quad (1)$
$\cos^2(n)=1-\cos^2(m) \iff \cos^2(n)+\cos^2(m)=1 \quad (2)$... | common-pile/stackexchange_filtered |
Multiple instances of same Entity
As far as I know JPA manages all the entities in the persistent context when entities get created. Will there be multiple instances of same entity? Suppose there are 2 methods being called at same time which creates same entity then will there be 2 instances of same entity created in p... | common-pile/stackexchange_filtered |
Can't to place categories module on product page
I need to place "Jshopping Categories" module at bottom of the product page.
On main page this module placed at the position 'position-22' .
I tried using this code:
$modules =JModuleHelper::getModules('position-22');
foreach ($modules as $module){
echo JModuleHelper:... | common-pile/stackexchange_filtered |
jQuery is() or has() on multiple elements
I'm trying to detect if array of elements $a contains the element $c where:
var $a=$('#b1,#b2,#b3,#b4');
var $c=$('#b3');
but no $c.is($a) or $a.has($c) works.
Looking for a jQuery answer.
Did you try .filter ? $a.filter($c).length > 0 (edit: changed to .filter rather than .... | common-pile/stackexchange_filtered |
CSS float div not working as supposed
I have a container div called main and then two divs floated left. The problem is that I need the main div background color visible (I supposed that the blue color background should be visible on the right side (300px which remains) and at the 4th row of the medium div as it is low... | common-pile/stackexchange_filtered |
Author+title of story of planet inhabited by intelligence which makes mouse and man evolve on ship
In my youth, I’ve read countless science fiction and fantasy books. One of these, when I finished it, I felt like a part of my life ended with the end of the book, and surely there must be a sequel… except there was none ... | common-pile/stackexchange_filtered |
Go Modules does not recognize files under GOPATH
I was trying to set up GO Modules in intellij and was trying import a package under GOPATH. When I use Go Modules, it doesnt seem to 'import' the packages from GOPATH. Any ideas on what I could be doing wrong?
Below is a screenshot. Left pic: GoModules, which doesnt rec... | common-pile/stackexchange_filtered |
Downgrade from SQL 2005 Enterprise to 2005 Standard on a clustered server
Can anybody help with downgrade Ent to Standard on a cluster. We have no place to test, so we want to make sure we get everything right.
I don't believe you can downgrade to a lesser version. You have to do a new installation of SQL Server 2005... | common-pile/stackexchange_filtered |
JQGrid with Column Reordering
I have a jqgrid and I can reorder my columns with this option in my JQGrid
jQuery("#list").jqGrid({
sortable: true,
...
});
This functionality let me reorder ALL my columns. But I want that some columns must be on fixed places. Is there a way to solve ... | common-pile/stackexchange_filtered |
Intermittent start 1999 Toyota Tacoma 4cyl
A few weeks ago I had an intermittant starting issue where the motor would start to turn but wouldn't fully turn over, it would just click. I took it to the mechanic, they said it needed a new battery/ cleaning terminals, and they checked the started motor and said that was fi... | common-pile/stackexchange_filtered |
OpenGL - Should I store Attribute/Uniform locations?
Are glGetUniformLocation and glGetAttribLocation time consuming?
Which way is better?
Call glGetAttribLocation or glGetUniformLocation every time I need it ?
Store locations in varables and use them when needed ?
Whether on Android or iPhone, for an opengl surface... | common-pile/stackexchange_filtered |
Nim static compilation
I'm totally new to Nim.
Does Nim automatically try to do everything it can during compilation? The documentation talks a lot about figuring static stuff out at compile-time, and it seems this is a guiding philosophy of the language.
I have a program in python which computes some stuff by going t... | common-pile/stackexchange_filtered |
TCP Choosing optimal window size?
I know I need to get the RTT but I really don't get how to calculate it.
For some contextualization:
I have a ns2 script which simulates a server and a receiver with 2 routers in the way. All three links - server to first router, first router to second router, second router to receiver... | common-pile/stackexchange_filtered |
Ruby: CSV to YAML
I have the following csv example:
en.activerecord.models.admin_user.one;Guide
en.activerecord.models.admin_user.other;Guides
en.simple_captcha.placeholder;Type here
Is there a ruby gem or method to turn it into a Yaml file:
en:
activerecord:
models:
admin_user:
one: Guide
... | common-pile/stackexchange_filtered |
Copying & renaming a VS solution folder and projects
What is the best way to copy my VS solution, including its projects? I'd like to do this so I can experiment, maybe even destroy, my solution in the name of learning.
It looks like I can just copy the solution folder and rename it to the desired new name. Correct? As... | common-pile/stackexchange_filtered |
Swift & Vapor/Fluent : How to pull values from another table during a post router request
I'm writing a backend app in Xcode 11.2 using Vapor3 and Fluent with SQLite. I have a route for a POST request to update a record in Table1, but before I save the record, I need to pull values from another table with a key that's... | common-pile/stackexchange_filtered |
Linked pulldown lists using MySQL, PHP/JavaScript/Ajax/jQuery
I am quite new to web development and have a task to develop a web application that will basically show the user 5-15 pull down lists on one page, where each selection will limit the choices in all other lists. The user should be able to start with any one o... | common-pile/stackexchange_filtered |
Proving linear independence of function factors
I have an algorithm for converting a two-variable function $F(x,y)$ into a sum of products of single-variable functions $F(x,y) = \sum_i g_i(x)h_i(y)$. I am attempting to determine whether (or when) the $g_i$ produced in this way are all linearly independent.
The algorith... | common-pile/stackexchange_filtered |
Schedul run Laravel 503 services unavailable error
I update the laradock and now my project is showing 503 error. Im not running any cron job.
Php version i have 8.1
Laravel 8
Node v14.17.0
NPM 8.1.3
I tried to install the composer, npm laravel roles permission, nothing worked.
Can't figure it out this error
(laradock... | common-pile/stackexchange_filtered |
Geometrical Rotation and Rotation operator relation and ambiguity
In Cohen-Tannoudji's it is said (vol.1 page 694):
$|\psi \rangle$ is the state of the system before the rotation.
$|\psi ' \rangle$ is the state of the system after the rotation.
$|\psi ' \rangle= R |\psi \rangle$ in the bracket notation.
Geometrically... | common-pile/stackexchange_filtered |
Django 1.7 Not Finding New Model w/ makemigrations
I have a project with several apps and many data models. I'm using Django 1.7 and Python 2.7.
I've organized the models into app-level modules.
- common/
-- models/
--- __init__.py
--- these_models.py
--- those_models.py
I've added a new file in this st... | common-pile/stackexchange_filtered |
Are these summation notation the same or do they express different rules?
Are these two the same?
$\sum_{u\in S}\sum_{v\in S}f(u,v)$
$\sum_{u,v\in S}f(u,v)$
Yes, you're right.
| common-pile/stackexchange_filtered |
Angular Date Incorrect
I am using angular 1 with a webapi service.
I have a html5 date input on the page and if I select 2nd June 2018 I get the following JSON returned
2018-05-31T23:00:00.000Z
My computer and the server are set to GMT so why on earth is it removing an hour from the time?
Yep... That was my mistake.... | common-pile/stackexchange_filtered |
Google Analytics POST request works fine in REST Client, but not using Python Requests
I'm trying to send an event to Google Analytics using a Python script.
When I try to send the event using the Google Analyics "Hit Builder", it works fine. When I try to do the same thing with a simple POST request using the VSCode ... | common-pile/stackexchange_filtered |
Is writing to a by-value function parameter good style?
I always heard the rule that changing a parameter that was given to the function by value is bad coding style. Instead it is preferred to create a copy that is modified.
But I think in the following case it would be acceptable to change the function parameters. Wh... | common-pile/stackexchange_filtered |
Integers >9999 in PIC C18
In this answer, I made a function to convert an integer to an ASCII string:
void writeInteger(unsigned int input) {
unsigned int start = 1;
unsigned int counter;
while (start <= input)
start *= 10;
for (counter = start / 10; counter >= 1; counter /= 10)
serialW... | common-pile/stackexchange_filtered |
Can't compile C++ function on my machine although it compiles fine using online compiler
I have a simple recursive Binary Search program in C++. The program compiles just fine using ideone: http://ideone.com/gMB96l
However, when I try to compile on my machine, using Xcode in OS X, it gives an error: control may reach e... | common-pile/stackexchange_filtered |
Are multidimensional arrays accessed via temporary pointers?
I've read that array subscript access is the same as pointer subscript access (can't find the proper link, but http://c-faq.com/aryptr/joke.html mentions that indirectly).
So what about multidimensional access? Obviously there is no pointer at c[0] in a multi... | common-pile/stackexchange_filtered |
Cant browse Android phone with KDE on Kubuntu
I'm using Kubuntu and my Android phone (Samsung s7) is connected to it with KDE connect. I can send files from the phone to the PC but it keeps on failing.
It successfully rings my phone and shows the charge percentage, but when I try to browse the device it says
Failed to... | common-pile/stackexchange_filtered |
How to get input argument from a mock method using PowerMock / EasyMock
I have a entity Person class.
A ProcessPerson class which contain process() method needs to be tested.
What I need is to get the object is created in the process() method and is called via mock method create() of mock object personDao.
public class... | common-pile/stackexchange_filtered |
Impossible to change gitlab project url
I downloaded rpm installer for Centos and installed gitlab.
I also fallowed this link: How to change URL of a working GitLab install?
I searched for 'how to change gitlab url' and similar... but found old results point to /etc/nginx/sites-enabled. But there is no directories lik... | common-pile/stackexchange_filtered |
Acess boost ptree across multiple threads
I'd like to make a system, that loads options out of an XML-file into a ptree and acess this ptree across multiple threads.
Sofar, i have mad a simple class, that is accessible to every thread, that contains the methods put(id) and get().
Unfortunately, ptree doesn't appear to ... | common-pile/stackexchange_filtered |
What parameter types are supported by Google Endpoints in an API method?
I can make String, Date and Long work. If I use byte[] I get an error when I run the endpoints.sh script. I can find nothing in the documentation that lists the types supported and the errors generated a pretty cryptic. I'd like to get a little bi... | common-pile/stackexchange_filtered |
User lingering systemd dependency on PostgreSQL
I have a user account on Ubuntu Server 17.10 with user lingering enabled for systemd, which is, in my opinion, a great function. However, it's poorly documented. While I've managed to start up my service as this user manually using systemctl --user ... commands, I have a ... | common-pile/stackexchange_filtered |
Unix - link my internal server on port 9000 to the web
I am on unix
I have an internal (on the machine) server running on port 9000
I want to access this server via my website, www.example.com
I would like to keep whatever i have already at www.example.com, but access my internal server via www.example.com/internal
Wha... | common-pile/stackexchange_filtered |
JavaEE PaaS for cloud applications
Are there any JavaEE platform for developing cloud based application? I am looking for something similar to what Microsoft Azure platform provides. And importantly I need a full stack implementation including EJB.
If you want full stack of J2EE I would highly recommend going with Am... | common-pile/stackexchange_filtered |
Should you use the Command Pattern for requests involving very little logic?
I am new to design patterns and want to get a better understanding of when to implement the command pattern. The command pattern from my understanding is intended to encapsulate a request and the logic needed to fulfill that request into its o... | common-pile/stackexchange_filtered |
Why does C++ span's C style array constructor need type_identity_t?
The C style array constructor for span is specified as follows
template<size_t N> constexpr span(
type_identity_t<element_type> (&arr)[N]) noexcept;
Why is type_identity_t necessary? instead of just:
template<size_t N> constexpr span(
element_ty... | common-pile/stackexchange_filtered |
is there a infinite loop in this happy number solution in leetcode?
Here is the happy number question in leetcode
This is one of the solution
Using Floyd Cycle detection algorithm.
int digitSquareSum(int n) {
int sum = 0, tmp;
while (n) {
tmp = n % 10;
sum += tmp * tmp;
n /= 10;
}
... | common-pile/stackexchange_filtered |
Definition TableModel removeRow() method
This is my tableModel:
public class d9 extends AbstractTableModel {
ArrayList<String> cols = new ArrayList<>();
ArrayList<ArrayList<String>> data = new ArrayList<>();
public d9() {
...
int c = resultSet.getMetaData().getColumnCount();
while (resultSet.next()) {
... | common-pile/stackexchange_filtered |
How can I change custom item in ListView
JavaFX - I have a class Record with a method(and other functionality) public String getName(). I have ListView<Record> listview and here is the code to display Record's name:
listview.setCellFactory(new Callback<ListView<Record>, ListCell<Record>>() {
public ListCell<Record>... | common-pile/stackexchange_filtered |
How to append the div element in jquery if don't exist
I am adding the form my current list in a div box at the bottom of the table.
I am appending the div box when someone clicks on add button.
But when i click add button multiple times , then many div boxes are appended.
Is there any way that no matter how many times... | common-pile/stackexchange_filtered |
Rings whose Frobenius is flat
Let $R$ be a ring of characteristic $p>0$. The (absolute) Frobenius is the map of rings $F_R:R\rightarrow R$ defined by $x\mapsto x^p$.
I am interested in rings for which $F_R$ is flat (hence faithfully flat). Here are some families of examples of rings $R$ with this property.
-Regular rin... | common-pile/stackexchange_filtered |
Excel VBA sort string macro
I have a word in each row that I want to sort. It does not matter which of the words comes first as long as they are sorted. Below is an example of my excel sheet where I have replaced the word with one single letter instead. Is it possible to write a macro to help me to sort?
Thanks in adv... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.