text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
React-hook-form's register function is showing Type argument cannot be inferred from usage error in TypeScript
I am building a React JS application and I am using React hook form plugin for handling form input values, https://react-hook-form.com/. I am using it with TypeScript. But it is showing me an error.
This is my... | common-pile/stackexchange_filtered |
In a client-server relationship, should the server always rethrow the exception to the client?
I have a set of web services (the server), and an app which consumes this (client). In this sort of relationship, should the server always throw exceptions (ie in the throw block, rethrow the caught exception), and the client... | common-pile/stackexchange_filtered |
Blank screen, CentOS 6.5
I'm on a Dell PowerEdge 2850, and I recently installed CentOS 6.5, and it worked well for a while, then recently whenever I booted into the OS like after the BIOS screen, everything went blank and it stopped outputting through my graphics card. I was still able to access it through VNC, but not... | common-pile/stackexchange_filtered |
Start thread with member function (with inheritance)
So my problem starts pretty much like this question:
Start thread with member function
I have some class Foo, that looks like this:
struct Foo
{
int y;
thread t;
void set(int x){
y = x;
}
void plan(int x){
thread = std::thread ([&... | common-pile/stackexchange_filtered |
Correct axes to use dot product to evaluate the final output of a listwise learning to rank model
I'm not being able to find the correct configuration to pass to a tf.keras.layers.Dot to make a pairwise dot product when the entries each have lists of values, like from a listwise learning to rank model. For instance, su... | common-pile/stackexchange_filtered |
How do I take a long screenshot in Linux?
I'm currently using Ubuntu 22.04. I want to take a screenshot of a long reddit comment to save it later in the note-taking app Obsidian. The default screenshot app in Ubuntu 22.04 doesn't offer that option as of now.I looked up for linux apps that could do it but couldn't find ... | common-pile/stackexchange_filtered |
Difference between current and voltage expressions in fully differential circuits
This is an old, unimportant question. I am adding a bounty on it to effectively raise the bounty of the question linked below. Please answer the linked question for the bounty. Both bounties will be awarded (effective bounty 200).
Two por... | common-pile/stackexchange_filtered |
Offline not working in mobile Safari with cache manifest
I'm working on a mobile site for the iphone. I've added a cache manifest and loaded it with a list of resources needed for offline capability. The manifest file has the correct content type. If you view the response header for the file, the content type is text/c... | common-pile/stackexchange_filtered |
Use case of Avro in Hadoop applications
I am new to hadoop and mapreduce framework. I was going through some of the serialization formats . One of them is Avro. which seems to be very efficient and compact format.
Now lets say I have some text data in HDFS , normally I write the mapreduce job to read that data and gen... | common-pile/stackexchange_filtered |
Where should Shake Share's .shake.cache directory be stored?
We're planning to start using Shake's share functionality more heavily, and one question that has come up is where to store the "share" cache.
Should it be (ignored by VCS) in the code repository so that it gets regularly cleaned, or is the expectation that i... | common-pile/stackexchange_filtered |
How can I hide a Column in DataGridView from another Form c#
I want to hide a column in a datagridview which is in Form1 from Form2. I wrote this code on a button Click in Form2 but that doesn't work.
private void button_Click(object sender, EventArgs e)
{
Form1 form = new Form1();
form.datagridview.Columns["Co... | common-pile/stackexchange_filtered |
Error Prompt modifying cells using EpPlus
I used the code below to allow me to modify the cell [J10] using EpPlus] The modify code work sucessfully but when I try to open the excel file I get prompted this error We found a problem with some content in 'test.xlsx'. Do you want us to try to recover as much as we can? If ... | common-pile/stackexchange_filtered |
Font Awesome trouble with fa-bed
I am trying to use Font Awesome icons, the problem is that the size of fa-bed is 0X0 though the other icons are displayed properly.
Here is my html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<link href="css/bootstrap.min.css" rel="sty... | common-pile/stackexchange_filtered |
Server Login Failed: Classic ASP App with Service Account - only when windows auth is turned on
I have configured an ASP Classic application with an application pool running under a service account, which has access to the database I'm connecting to.
The connection string includes a Trusted_Connection=yes setting.
When... | common-pile/stackexchange_filtered |
Disable hikari pool in development environment
In development environment, spring boot with hikari, jdbc connection is unstable, if idle for some time, then call api again, it will fail(guess the network unstable cause it, because in production environment is ok)
2022-03-08 12:13:35.571 [http-nio-9090-exec-6] WARN com... | common-pile/stackexchange_filtered |
SQLAlchemy - aggregate inner query joining to outer query
The below is an example of a query which I'm trying to write in SQLAlchemy without much luck. I'm quite new to SQLA and am able to convert some queries but not this this:
select car, min(units)
from (
select car,
(select sum(case when side = 0 then 1 els... | common-pile/stackexchange_filtered |
c# creating then doing stuff to a file
I am trying to create a small program which allows the user to create/open a file, then read/write to it. So far the file seems to only exist after I quit the program, I get opening errors when I try to access it, but if I rerun the program it says the file is in use elsewhere... ... | common-pile/stackexchange_filtered |
"Sidings" what is it?
guys. I deeply apologize for deleting some questions number of times.
My next job would be definitely English related, so I have to get used to.
The question is,
Currently I am reading this article, and a paragraph says,
Dunedin, a small seaside city outside Tampa, cracks down on code violations,... | common-pile/stackexchange_filtered |
playing animation movie in iPhone application
I am currently working on a game, which has a long story at its initial.
It just telling the user that what happened before the war that is the causes of war.
So, I wish to show all these things like a movie.
I used the MPMoviePlayerController for this, now I am facing th... | common-pile/stackexchange_filtered |
Is it possible to define method for a class instance in objective-c
In Ruby, I can define method for any object:
jack = "jack"
def jack.say_hi
puts "hi, I'm #{self}"
end
jack.say_hi
Is it possible to do the same thing in Objective-C? How?
Have a look at Categories, they should do this very nicely.
There's a slight ... | common-pile/stackexchange_filtered |
Match everything except a selection of words starting from word1 and ending at word2
I am trying to match 'match me please' within the following String in Python flavor:
bar\nStartOfString\nignoreMe\ntoBeIgnored\nmatch me please\nignoreYou\nEndOfString\nfoo
The result has to exclude ignoreMe, toBeIgnored and ignoreYou ... | common-pile/stackexchange_filtered |
How __toString works in this example?
So I found this problem:
// name1.php
namespace Examples\Names;
class Name {
public function __toString() {
return "Laurel";
}
public static function get() {
return "Eminent";
}
}
// name2.php
namespace Examples;
include "name1.php";
class Name {
... | common-pile/stackexchange_filtered |
Filter object from list based on property value spring boot
I have a rest service that will return List of objects
public class MyObject {
private String name;
private String state;
}
Now, I need to filter object from list based on fields provided on rest call:
http://localhost:8080/myuri?state=NY
Now, I need... | common-pile/stackexchange_filtered |
What to use when sealing floor-to-wall and window-to-wall?
During my infiltration (air leakage) test we found two other major places where air is leaking through into my home:
the joints between the wood floors and the wall (wood) molding
the joints between the windows and the walls
In both cases I was told to simp... | common-pile/stackexchange_filtered |
How to throw exception in Web API?
How can I throw a exception to in ASP.net Web Api?
Below is my code:
public Test GetTestId(string id)
{
Test test = _test.GetTest(id);
if (test == null)
{
throw new HttpResponseException(HttpStatusCode.NotFound);
}
return test;
}
I don't think I am doing... | common-pile/stackexchange_filtered |
JavaSound API not available
I have started a new modular JavaFX project based on OpenJDK14 and OpenJFX14. This is a modular project with maven. I now have the problem that I would like to use the Java Sound API but cannot import any classes.
When I type (inside Netbeans): import javax. ... there is no code completion f... | common-pile/stackexchange_filtered |
Git Extensions 'Do not commit' not working
I’m using the Git Extensions version [2.50.02 - latest (current)]. When I open the "Merge branches" I see the checkbox “Do not commit” is checked.
When I perform a Merge, I see all changes are committed (not pushed to the remote). I was expecting these changes are not to be ... | common-pile/stackexchange_filtered |
how to get the required result, the result is array list?
I have an array of object, which is basically an Arraylist.
The input and output data look like this
data= [
{
id:1,
parent:0
},
{
id:2,
parent:0
},
{
id:3,
parent:1
},
... | common-pile/stackexchange_filtered |
Slotted item not filling height of container in Safari
I'm trying to get the slotted item to fill the parents container in Safari.
The following works in Chrome, FF, even Edge-Chromium, but not Safari.
I only have ability to modify the content and styles of the slotted item and not the slot's container (i.e i can modif... | common-pile/stackexchange_filtered |
Can i use a predictive kalman filter to 'increase' my sample rate?
I have a slam algorithm that outputs at around 30Hz, an implementation of ORBSLAM2.
https://github.com/raulmur/ORB_SLAM2
I am reading this into a renderer that expects 60+ Hz.
Because my sample speed is low, I am getting 'shuddering' in the display, as ... | common-pile/stackexchange_filtered |
Single for loop for multiple Dictionary
I was wondering, if it is possible to run 1 for loop for multiple Dictionaries.
Something like this
for i in obj1 and obj2 and obj3:
print i.obj1_name
print i.obj2_name
print i.obj3_name
looks like you need zip
the for loop format is incorrect for i in obj1 and obj2 and obj3:... | common-pile/stackexchange_filtered |
How to install programs into user directory without sudo
I mean how to install programs from repos into the user directory without sudo?
There are two ways (and even more) of installing software: from repos and from the software developer's website (tarball). First method requires one to have the superuser password. On... | common-pile/stackexchange_filtered |
Ignore missing variables in Django templates
How can I make Django (1.11) ignore missing variables in template during rendering? I need to render the same template with different data in multiple steps. I need to use the Django template engine for all the features that it includes and I can't modify the templates.
Inst... | common-pile/stackexchange_filtered |
Dynamic group-based filtering in R Shiny - search by tag replication
I want to create a filter in Shiny that would work like the details below.
I currently do not have anything close to working with the functionality described. The closest I have achieved is using selectizeGroupUI/Server. But this module from shinywidg... | common-pile/stackexchange_filtered |
Laravel many to many relationship error
I'm having two models under the name of Plugins and User with tables respectively. I'm trying to have many to many relationship with a pivot table named plugin_user in the migration named create_users_plugins_table.php.
Following is the schema:
public function up()
{
Schema::... | common-pile/stackexchange_filtered |
scikit-learn SGDClassifier warm start ignored
I'm trying to use SGDClassifier from scikit-learn version 0.15.1. There doesn't appear to be any way to set convergence criteria other than number of iterations. So I'd like to do that manually by checking the error at each iteration, then warm-starting additional iteration... | common-pile/stackexchange_filtered |
Extract Dump Files Files Names
I'm trying to automate a database refresh but, now I'm stuck at a part trying to extract the dump files filename to use it with the IMPDP command.
The thing is that we use this parameter doing the export:
dumpfile=dbname_env_date_%u.dmp and a 16-degree parallelism, which creates 16 files ... | common-pile/stackexchange_filtered |
Xcode 8 iOS Simulator is not prompting for location services authorization in my Swift 3 project
I have followed the apple developer guide on location services.
I have included the info.plist key value pair:
key: Privacy - Location Always Usage Description
value: The application myTestApp needs access to location servi... | common-pile/stackexchange_filtered |
Regular expression grammar & NFAs
[a-zA-Z][a-zA-Z0-9_]*
I have the above regular expression. To my understanding:
the first letter must be 'a to z' uppercase/lowercase and the rest of the letters must be 'a to z' uppercase/lowercase and/or digits.
So,
aJoieri_ => valid
7aaaG => invalid
a^ghr => invalid
AsS_ => valid
... | common-pile/stackexchange_filtered |
Axon framework snapshotevents not getting populated after exceeding threshold on Axon 4.4
I am currently implementing a cqrs application using Axon4.4/Springboot/Java.
My application works well except for the fact that it isn't generating the snapshots after exceeding the event count snapshot trigger threshold (which f... | common-pile/stackexchange_filtered |
Java reusablitity
What is the proper way to make java reusable components that is capable of used in various applications. I mean for example I'm doing a application that has its own user interface and database and etc. If I want to make this app reusable for many other applications as a component of other applications... | common-pile/stackexchange_filtered |
SubSonic - Serializing Classes with Nullable types and collections?
Using SubSonic v2.x: The first issue is the error discussed here:
Server Error in '/......' Application.
Cannot serialize member '.....' of type System.Nullable
I'm not sure where to place the code in my DAL from this post to get this working. I tried... | common-pile/stackexchange_filtered |
Issues scrolling horizontally in Java/Selenium
I've gone through previous posts on this and am still having problems getting this to work.
I have a small scroll bar I need to move to the right so that I can access items I need to test. The code for the scroll bar is as follows:
<div class="ngscroll-scrollbar" ng-style... | common-pile/stackexchange_filtered |
F1-F12 keys don't work
I bought compact keyboard. F1 = Fn + 1 and F2 = Fn + 2 ...
But F1-F12 keys don't work on my Ubuntu 16.04. For example F1 makes brightness up. I checked keycodes of F1-F12 keys and they are invalid. So F1 returns 232 keycode (instead 67).
I tried fix it using: xmodmap -e "keycode 232 = F1 F1 F1 ... | common-pile/stackexchange_filtered |
Update foreach()'s iterator inside itself
Is there an easy way in PHP to add more iteration in a foreach() loop?
Example:
$iterator = [1, 2, 3];
foreach($iterator as $item){
echo $item;
$iterator = [1, 2, 3, 4]; // Update the foreach()'s iterator here from database!
}
// Actual Output: 123
// Desired Output:... | common-pile/stackexchange_filtered |
IIS worker process: Cache % Process Memory Used is more than 100 %, how is this possible?
PerfMon counter : Cache % Process Memory Used is more than 100 % . How is this possible??
Note : only one worker process was running, hosting one website.
There are upper and lower limits imposed on IIS worker processes. It co... | common-pile/stackexchange_filtered |
n error occurred. java.io.FileNotFoundException: test_scores.txt n error occurred. s.txt (annot find the file specified) .io.FileInputStreanputStr
My code is not working and I was wondering what I need to to do to fix it
This is the question and expected output:
Write a program that reads a text file named test_scores.... | common-pile/stackexchange_filtered |
Question about flow with relay and capacitor (Make Electronics-Charles Platt, Exp. 8)
I'm a newbie working my way through Charles Platt's Make: Electronics (2nd Ed). I'm on Experiment 8 and I'm confused about something. The circuit looks like this:
What is supposed to happen is that when the button is pushed the capac... | common-pile/stackexchange_filtered |
Batch script for automatic file swapping
I have tool in java that can convert values in xml files into 3d models (using transformation matrix with some textures).
To run it I'm using very simple batch script :
java.exe -cp path/to/tool.jar;path/to/3dlib.jar;path/to/textures.jar -Dsomejavaoptions -Dappdir=directory tool... | common-pile/stackexchange_filtered |
Login prompt in spite of having windows authentication enabled
We have enabled Windows authentication (Anonymous access is disabled) in IIS but, I am getting prompt to enter user-credentials for application
Checked for the providers under authentication and the order is correct as well.
Any pointers would be helpful.
F... | common-pile/stackexchange_filtered |
Search files in project folder dynamically
In my Windows Store project I have some .jpg files in my Assets folder. How can I dynamically get all the .jpg files from that folder?
I've tried:
StorageFolder folder = await StorageFolder.GetFolderFromPathAsync("ms-appx:///Assets/");
var fileList = await folder.GetFilesAsync... | common-pile/stackexchange_filtered |
Can you use jemalloc arenas to implement 32-bit pointers on a 64-bit architecture?
Is it possible to set up an arena with jemalloc that only allocates pages from a reserved 2^32 byte area of virtual memory
void* arena_start =
mmap(nullptr, 1ull<<32,
PROT_NONE,
MAP_PRIVATE | MAP_ANONYMO... | common-pile/stackexchange_filtered |
How can I hide div on click outside using angularjs without writing directive
I want to hide a div content on click of outside( body or document ). I don't want to write any directive for this.
I have written already, but button click and body click is merging one on one. SO if I click button , it is taking body click.... | common-pile/stackexchange_filtered |
Why are commercial propeller aircraft smaller than commercial jet aircraft?
I've read that turbo-prop aircraft are more efficient than jet-aircraft. Browsing this Wikipedia page it looks like in general, jet airliners burn less fuel per passenger. I imagine this is due to jet aircraft typically carrying more people, an... | common-pile/stackexchange_filtered |
How can I create an annotation processor that processes a Local Variable?
I'm trying to create an annotation for a local variable. I know that I can't retain the annotation in the generated bytecode, but I should be able to have access to the information at compile time by doing something like this:
@Target({ElementTyp... | common-pile/stackexchange_filtered |
MySQL - group by criterion AND count # of items that are grouped together - how?
Is there a way to execute 1 query that would select all items ("SELECT * FROM t-shirts), group them by certain criterion ("GROUP BY style, color") but at the same time count the # of UNIQUE 'color' items that were grouped together? I can d... | common-pile/stackexchange_filtered |
How to set Cordova Android project to use NDK
I am trying to do what this question/answer has
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader
but in cordova instead.
android {
....
defaultConfig {
....
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
... | common-pile/stackexchange_filtered |
How do I see git added files?
Sometimes I run git add . and big files that weren't supposed to get added are added. How can I see which files were added without commiting? And how to 'un-add' those files or all files at once so I can fix the .gitignore?
(Disclaimer : none of the commands below modifies your changes in... | common-pile/stackexchange_filtered |
Can't see any link button next to a question
I was just reading about the Announce, Booster and Publicist badges and only today did I learn about them. Out of curiosity I went to look for the link button on a question but I can't see any. Do we need some minimum reputation to see the link button? I have 700 reputation.... | common-pile/stackexchange_filtered |
PHP Parse error: syntax error, unexpected T_STRING
I'm getting this syntax error and I know it's PHP 101, but I wouldn't know php if it hit me over the head with a curly bracket.
Any help would be appreciated. Thanks
<?php echo ($this->getProduct()->getCategory() ? $this->getProduct()->getCategory()->getName() : ‘no ca... | common-pile/stackexchange_filtered |
How to solve the .Net framework version compatibility error with .net core?
This question may be asked before but I did not got the issue solved visiting many questions on Stackoverflow.
I am creating a test project for my for my console app project.When I add referance of console app to the test project it shows me ... | common-pile/stackexchange_filtered |
What is the value of $BC^2$ in the following diagram?
Let $ABC$ be a triangle with $AB=20$ and $AC=22$. Suppose its incircle
touches $BC,CA$ and $AB$ at $D, E$ and $F$ respectively, and $P$ is
the foot of the perpendicular from $D$ to $EF$. If $\angle BPC=90$
degrees, then compute $BC^2$.
I couldn't figure out where... | common-pile/stackexchange_filtered |
Converting Strings independent from decimal symbol
Following situation:
I am reciving a XML file with an XSD restriction:
xs:decimal
Now I want my code to sum up some of those decimals and do something with it.
Luckily I recognised that the CDbl function acts differently with different decimal symbol settings in window... | common-pile/stackexchange_filtered |
How can I mock a method which is not defined in the interface?
In my php file I am using Zend\Cache\Storage\StorageInterface. I have bind this interface with Zend\filesystem cache. I have to unit test the main php file. Problem is StorageInterface does not define flush method. Filesystem have flush method from differen... | common-pile/stackexchange_filtered |
20.04 -- power settings for display -- it doesn't turn off
I installed 20.04 and went to the settings tool for displays and set it to go blank after 5 minutes. It never turns off.
Depending on your laptop type maybe you should remove the battery and then the AC cable from the laptop and hold the power button for 15... | common-pile/stackexchange_filtered |
utf8 characters in custom url scheme
I made a custom url scheme.
when the keyword is in English it's OK.
NSLog :
myscheme://withkeyword/?keyword=english
When the keyword is in Korean, in Japanese etc, look like the below.
NSLog :
myscheme://withkeyword/0.000000keyword=2.122748E-314D99C3.246487E-314AB88
What's wrong?
... | common-pile/stackexchange_filtered |
How to reduce an audio signal to proper input level?
I'm working with an audio ADC that supports a max audio input of 500mVRMS before it will start clipping. This is sufficient for lots of equipment that does a 1VPP/.35mVRMS line level, but I'm finding that lots of equipment like computers, and MP3 players and things ... | common-pile/stackexchange_filtered |
Reorder indices alphabetically in each term of a sum
Here is a challenge for you. I have an expression that has an arbitrary number of terms that look like
expression = a[i] * f[g[y, i]]
+ b[i, j] * f[g[x, j], g[y, i]]
+ c[i, j, k] * f[g[x, j], g[y, k], g[x, i]]
+ ... | common-pile/stackexchange_filtered |
How to return an empty List when nothing found
I wonder how to return an empty List when i try to find some WebElement but nothing found.
Of course i want to avoid crash so this is what i have try:
def getList(): List[WebElement] = {
try {
driver.fineElements(By.xpath("bla bla))
}catch{
case e: Tim... | common-pile/stackexchange_filtered |
Knockout -how to transfer multiselect listbox items(any orde selected items) to another listbox using Knockout?
I have Two multiselect list view (dropdownList multiple) and when the user selected one option in the first list, automatically insert/transfer to second multiple list (dropdownList) and also remove that opti... | common-pile/stackexchange_filtered |
creating automatic backup when webdeploying
So what I want is that whenever i deploy from my dev-machine to the server-machine that an automatic backup of the current files for the site gets backuped.
I followed this guide for the configuration
http://www.iis.net/learn/publish/using-web-deploy/web-deploy-automatic-back... | common-pile/stackexchange_filtered |
extract the row of the text files based on minimum value in the column
i have many text files(.txt) files in the directory that contain 5 columns as sample data given below:
data1.txt
/home/lijun/data 1.0 2.0 5.0 1.0
/home/lijun/data 1.0 2.0 5.0 0.5
/home/lijun/data 1.0 2.0 5.0 2.3
/home/lijun/data 1.0 2... | common-pile/stackexchange_filtered |
Xamarin Live Player Visualization Error: Didn't Find Class
I've been trying to get the OneSignal Xamarin SDK setup complete to test it out for an app I'm working on, but I've run into a wall after finishing the setup according to the instructions here OneSignal Documentation - Xamarin SDK Setup. When I go to test the a... | common-pile/stackexchange_filtered |
Implementing wildcard file copy/rename (test.txt + *.js = test.js)
I wrote a file manager, and I receive a number of requests to implement a wildcard(asterisk copy/rename, file mask copy/rename) based file copy/rename. I found myself confused, because I actually have no idea what kind of algorithm is behind this functi... | common-pile/stackexchange_filtered |
Is there anyway to repeatedly grab `pkg.json` version as a variable to replace the version of `index.js` file in Grunt?
I have a grunt build. There are grunt-bump and grunt-replace in it. I use grunt-bump to bump up one version up in pkg.json every time I run it. And I'd also want to replace the index.js version with p... | common-pile/stackexchange_filtered |
How do I bake this correctly?
Ok, I've been struggling with this all day,
I'm trying to bake the materials of the mesh on the left into a single image texture.
Everything looks good in the original one, but the baked texture always comes out flat and it just looks terrible.
Is there anything I can do to bake the one on... | common-pile/stackexchange_filtered |
Stokes’ Theorem for arbitrary surface and boundary curve in $xz$-plane?
I am tasked to find $\iint (\nabla \times {\bf V}) \cdot d{\bf S}$ for any surface whose bounding curve is in the $xz$-plane, where ${\bf V} = (xy + e^x) {\bf i}+ (x^2 -3y){\bf j} + (y^2 + z^2) {\bf k}$. I have attempted this via two methods and am... | common-pile/stackexchange_filtered |
How to exit a video from cv2.VideoCapture() once the video duration ends?
I am trying to do a project using mediapipe for pose detection. I want the input data to be mp4 files --> "video_path". Currently the video just keeps going on loop - How do I get the video to close once it finishes? For eg. my input video is cur... | common-pile/stackexchange_filtered |
Nano 33 BLE Sense LED flashing 3/5 slow/fast after upload
I'd successfully got my Nano 33 BLE Sense to read accelerometer data and subject to there being a difference between current and last readings, to send this via the EasyTransfer library to an XBee module over hardware serial that communicated with another module... | common-pile/stackexchange_filtered |
Create custom XML from Access VBA
I'm rather a newbie in XML, but I have a pretty good experience in VBA-access.
We need create an XML file to send daily overnight actual driver information of about 1500 cars
Searched for hours always ended on a dead end.
What would be the best approach?
DOM?, PLAIN TEXT? Love you get... | common-pile/stackexchange_filtered |
getting rid of blank information
I'm still new to Crystal Reports so I'm not sure how to ask this question, but I'll try: my report is set by job #'s I added a table for serive operations. I only want the description of these services to print on my report (some of these services have descriptions some do not). Right... | common-pile/stackexchange_filtered |
Binomial Expansion negative power with complex numbers
The following is an exercise from my book:
We want to find the Taylor Series of $f(z) = \frac{1}{1-z}$ about $z = 0$ where $z\in \mathbb{C}$. Since $f$ is holomorphic at $z=0$, we can choose to calculate its derivatives at this point by taking the limit along the ... | common-pile/stackexchange_filtered |
Save values generated via API as taxonomy terms
I'm using the IMDB Connecter plugin to grab meta data for movies and I'm wondering if I can save some of the information it generates as terms in a custom taxonomy that already exists.
What I want to do is to be able to save the "Director" and "Actors" information generat... | common-pile/stackexchange_filtered |
Is there a builtin alternative to std::put_time for GCC <5?
I'm stuck on GCC4.8 for the time being. I want to print out the current time as something other than seconds. If put_time worked, my code would be something simple, like this:
std::cout << std::setw(24) << std::put_time(c_time, "[%T%z %F] ");
Without put_time... | common-pile/stackexchange_filtered |
Difference between Django validate and a validator
From the Django docs
https://docs.djangoproject.com/en/1.11/ref/forms/validation/
The validate() method on a Field handles field-specific validation that is not suitable for a validator.
This implies that validate() is different than a validator. What is the differ... | common-pile/stackexchange_filtered |
Generate new Variables in java
I'd like to automaticly create a new Variable for my Storage.
It should work like:
int var_count = getConfig().getInt("var_count");
++var_count;
int "var"+var_count = 123
If var_count is for example 4, it should generate a Variable named var4.
You need to use another language.
Is ther... | common-pile/stackexchange_filtered |
How to upgrade my facebook Graph API app from v2.1 to v2.8 directly?
Facebook message :Currently you has access to Graph API v2.1 which will reach the end of its 2-year lifetime on 30 October, 2016. To ensure a smooth transition, please migrate all calls to Graph API v2.2 or higher.
There is no way to do that, app wil... | common-pile/stackexchange_filtered |
Debian Server no HTTP response data
i have a little problem with my Server. I moved a an Application from one Server to another. The Webpage is available and works fine. But my ajax calls do not work fine. jQuery is active and works, the $.post also works and waits for a json response. And there is the problem, no resp... | common-pile/stackexchange_filtered |
Excel - Retain Values Only Up to Limit Based on Column Criteria
In Excel I have 100,000 rows with a column of bird species and another column for the city where it was spotted.
There are roughly 150 cities. Some cities are represented in thousands of rows and some only have a handful. What I'd like to end up with is a... | common-pile/stackexchange_filtered |
How to check if a text contains only int values in Java?
I want to determine if JTextField.getText() contains only numbers between 0-9, where anything else is not accepted such as letters and other characters. What's a good way to do this? thanks.
With JTextField.getText().matches("\\d+");
Parse it and catch the pos... | common-pile/stackexchange_filtered |
onClickListener in PreferenceActivity
I have this onClickListener in onCreate method of my PreferenceActivity, but it gives me error.
Here is the PrefereceActivity:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.settings);
... | common-pile/stackexchange_filtered |
Tight bound on the number of divisors of n
The inner loop of this pseudocode runs only for the divisors of n
for i=1 to n:
if(n%i==0):
for j=1 to n:
Do something in constant time
If I can get a bound on the number of divisor of n(The condition in the if statement) then I can get its time complexity.... | common-pile/stackexchange_filtered |
Array pointer to find largest number
#include <stdio.h>
#include <stdlib.h>
int main()
{
int *a= malloc(sizeof(int)*10);
scanf("%d %d",a,a+1);
if(*a<*(a+1))
{
*a=*(a+1);
}
printf("%d",*a);
return 0;
}
Can I use the same array pointer to input 2 numbers and find largest number a... | common-pile/stackexchange_filtered |
How to use AsyncTask?
I am writing a program and need to run separate thread for server connection, but I don't know how to properly use the AsyncTask. I have read the documentation and am still not certain as to how I would properly use it.
The method that's supposed to connect me to the server:
public boolean start()... | common-pile/stackexchange_filtered |
how to find width and height of a video file using javascript
Possible Duplicate:
Using jQuery to determine video file size
i need to find the height and width of a video file and resize the video file to particular height and width, whatever may be the actual width and height of a playing video.
Can anyone please h... | common-pile/stackexchange_filtered |
Is array in smarty returns error
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "./templates/diet-report.tpl" on line 3 "{if is_array($dietcontent) }" - Unexpected " }"' in ...
I did this:
{if is_array($dietcontent) }
There is something..
{else}
Noope..... | common-pile/stackexchange_filtered |
How to align the legend key and text in ggplot?
I have the following data frame:
df = data.frame(
x = c(1:10, 1:10),
y = 1:20,
group = rep(c('male', 'female'), each = 10))
ggplot(df, aes(x=x, y=y, color = group)) +
geom_smooth()
As you can see, the text legend (male, female) appears right to the key legend ... | common-pile/stackexchange_filtered |
RxJS - Loading indicator
I'm struggling to get my head around the "Rx" way of displaying a loading indicator for an AJAX stream.
$scope.$createObservableFunction("load")
.take(1)
.do(function(){
$scope.loading = true;
})
.flatMap(contentService.AJAX_THINGY_AS_OBSERVABLE)
... | common-pile/stackexchange_filtered |
When I add dropout to tensorflow NN, the test accuracy gets worse
Hi I am trying to add dropout to my tensorflow MNIST data set classifier. Before using dropout, I get a test accuracy of around 95%. When I add dropout, it goes to around 10% (the normal odds of guessing) even though the cost is being reduced. when I cha... | common-pile/stackexchange_filtered |
Javascript calendar
I am working on a simple availability/booking system for a small hostel and am looking for a useful javascript/jquery calendar.
I need this calendar to render available/blocked dates, a user has to be able to select dates (date range) and possibly the calendar has the ability to display days in diff... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.