text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Tensorflow: Normalization inside or outside graph?
I have a time series dataset, which i want to normalize before running training using RNN. I scan the data and create a tfrecord file. Then, training uses this tfrecord file.
My question is, how would I go about deciding whether to normalize the data before and create ... | common-pile/stackexchange_filtered |
Unable to replace an empty string in SQL Server 2017
I have a table with a varchar(100) column that has some empty values.
When I try to replace the empty strings with a value, nothing happens. I cannot figure out why.
I am sure the value in the cells is not null.
I can reproduce with a temporary table and some sample ... | common-pile/stackexchange_filtered |
Probability of winning
This is a game to teach children about probability - for each roll of the dice the counter corresponding to the total moves forward one space. Obviously 7 is the most likely to move followed by 6/8, 5/9 etc. so the race is unfair although the dice are fair.
This made me want to calculate the pro... | common-pile/stackexchange_filtered |
No icons after exporting a Swing application
I'm programming a GUI in Java (using Swing of course) and while running my application in Eclipse everything is fine and with icons and whatnot, but after exporting my application the icons are gone.
The icons are located under the class-path in the following directory resou... | common-pile/stackexchange_filtered |
Is it possible cookie free directory in apache.conf?
I have a website, the cookie did sent with every request, including images, javascript, css, this is unecessary. I'd solved this issue creating a virtualhost for load the static resources, the cookie is setted only in main domain.
Well.. Now i've setted up non-wildca... | common-pile/stackexchange_filtered |
Difference between .where() and .doc() related to number of reads
If I get a document by .collection('users').where('uid', isEqualTo, widget.uid) or by .collection('users').doc(widget.uid) will I read the database the same number of times?
You are charged one read for every document that matches your query when it is ... | common-pile/stackexchange_filtered |
The MU-puzzle from GEB
The MUI system only uses the three letters M,U,and I to make strings. The system has four rules that allow you to make new strings out of existing strings by manipulating them. Rules 1 and 2 lengthen the strings while rules 3 and 4 shorten the strings.
The MU puzzle gives you MI as your initial s... | common-pile/stackexchange_filtered |
Semantic-ui-react; footer at the bottom of the page
In my React app using semantic-ui-react, Have all the components in a <Container fluid> component.
The CodeSandbox
<Container fluid>
<Navbar />
<div className="AppContent">
<Content />
</div>
<Footer />
</Container>
and the cu... | common-pile/stackexchange_filtered |
DocumentRoot is password protected but no htaccess file?
At some point I pw protected /var/www/ for security purposes (my actual hosted websites are located in a different path), now I would like to host something publicly in /var/www/ but do not know how to remove the pw protection. There is no .htaccess file present ... | common-pile/stackexchange_filtered |
How can I return to the top of a file after an else statement?
I'm trying to understand how to return to the top of a Python script from an else statement.
print('lets do some math!')
math_operation = input('Which would you like to start with, addition, subtraction or division? ')
if math_operation == "addition":
... | common-pile/stackexchange_filtered |
redirecting to file from var
#! /bin/bash
if [ $1 ]; then
redirect="<"$1
else
redirect="<&0"
fi
mysql --host=a.b --port=3306 --user=me --password='!' -D DCVBase2 $redirect
wanna redirect from either file or stdin. May be use some quatation around $redirect?
You can't put the "<..." in a variable, but you can put ... | common-pile/stackexchange_filtered |
Some implicit makefile?
I am trying to understand makefile.
I took atmega168 bootloader's makefile and simplified it to this:
CC = avr-gcc
override CFLAGS = -g -Wall -Os -mmcu=atmega328p -DF_CPU=16000000L '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600
atmega328: ATmegaBOOT_168_atme... | common-pile/stackexchange_filtered |
Notation of expectation and random variables
I'm trying to understand the notation used at p18 of The Elements of
Statistical Learning. I suspect errors in notation. What do the authors mean and, if any notational errors, what would be the correct notation to use in:
"
We [...] place ourselves in the world of random v... | common-pile/stackexchange_filtered |
Text Similarities: which nlp methods to use?
I have data where there is text for each user A visiting a business B. I want to find similarity between each user using their text.
Question 1: Which NLP method should I start with?
I have tried cosine similarity, I know its a great method but it's very slow in computing s... | common-pile/stackexchange_filtered |
The metric to evaluate the efficiency of ANN based option pricing over mathematical option pricing models
The stock exchanges provide the data of option prices using theoretical formulations such as Black-Scholes formula. The dataset necessary for training an artificial neural network (ANN) to address option pricing mo... | common-pile/stackexchange_filtered |
Handling multiple event handler keypress on jquery
I have a page in where I have a form and I attach a jquery event handler to submit this form by hitting enter on the keyboard.
//Submit form when enter pressed
$(document).keypress(function (e) {
if (e.which == 13) {
$('form').submit();
}
});
I also h... | common-pile/stackexchange_filtered |
Call to a member function pro_events() on null
Hello I'm trying to fix this issue where the error
Call to a member function pro_events() on null
would not happen all the time. I'm not sure what's causing this.
Any idea how to prevent this error in case it would appear again? We just saw this error in the log but can'... | common-pile/stackexchange_filtered |
Will Raspbian move to 64-bit?
In this page, the official RPi3 announcement states:
You’ll need a recent NOOBS or Raspbian image from our downloads page. At launch, we are using the same 32-bit Raspbian userland that we use on other Raspberry Pi devices; over the next few months we will investigate whether there is val... | common-pile/stackexchange_filtered |
Importing a schema that imports another schema using the original namespace
I have a collection of schemas that I am trying to use to validate an XML document using Nokogiri.
I have a top-level schema with the namespace http://example.com/root. It imports another schema, Extension.xsd, with a namespace http://example.c... | common-pile/stackexchange_filtered |
Embeding a WSO2 gadget in any web page
I am thinking of using WSO2 BAM but could not find the answer to the next question anywhere.
Is it posible to embed WSO2 BAM gadgets in any webpage? can it only be displayed within the BAM server aplication?
Hi . I am new to wso2 gadget server.I am using 1.4.0 version. I have suc... | common-pile/stackexchange_filtered |
Why tty hangs after command is finished?
I want to run a command like this:
kubectl run busybox -it --rm --restart=Never --image=busybox --command -- sh -c "env"
Expected to run command and delete pod.
It prints the variables, but then terminal freezes, although pod is in completed state, but --rm not works.
Same thin... | common-pile/stackexchange_filtered |
Status corresponding to Minimum value
I am using SQL Server 2005. I have a table as given below. There can be multiple cancellations for each FundingID. I want to select the FundingCancellationReason corrersponding to minimum date for each funding. I wrote a query as follows. It is an SQL error
1) Could you please help... | common-pile/stackexchange_filtered |
Scanner input from terminal
First, I couldn't find any relatable post in StackOverflow.
I'm trying to get an file name input from the terminal as follow:
System.out.println("Get filename");
String m = scanner.next();
System.out.println("Get my name");
String n = scanner.next();
But I keep getting only the first part, ... | common-pile/stackexchange_filtered |
How can I combine my JavaScript files and still have my callbacks wait for a ready state?
I have lots of functions and event handlers that are split across multiple javascript files which are included on different pages throughout my site.
For performance reasons I want to combine all of those files into 1 file that is... | common-pile/stackexchange_filtered |
How to set Encoding
I wrote a small file joining program with some functionality, all works fine, but I have to set encoding of output file to utf8 without bom. I tried to add on the beginning of program this line "$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'" but result was that I've got a utf8 with bom. I'... | common-pile/stackexchange_filtered |
Replacing left logical shifts with other instructions in MIPS
So let's say that we have two registers $s0 and $s1. Register $s0 can take values from 0 to 31 and is used to show how many bits register $s1 will be shifted left. How can i do this without using sll or srl. I know that left logical shift by n bits is the sa... | common-pile/stackexchange_filtered |
Pyinstaller Unable to access Data Folder
Below is the game.spec file that I have created.
When running the below command, the app gets created perfectly
pyinstaller --onefile game.spec
When operating the game, it is unable to locate any of the datafiles. On further exploration found that it searches for all the datafi... | common-pile/stackexchange_filtered |
How do unit tests facilitate refactoring without introducing regressions?
We all know the standard TDD cycle: I first write a unit test, the smallest unit test that fails; then I write some production code, again the smallest amount of production code that is sufficient to pass the test; finally I refactor. In this way... | common-pile/stackexchange_filtered |
Javascript Class: Get Value from Ajax request
I'm new to classes in Javascript. I worked alot in C# but in JS classes are a bit different.
I want to fill a member variable in a class from a Ajax request but the value never changes. I think some scope issues?
Here is an example.
class bla {
this.test = []; // JS Err... | common-pile/stackexchange_filtered |
Why use HTML.ActionLink instead of a Common anchor
The sentence bellow generate a HTML anchor pointing to an action in a ASP.net MVC Controller:
@Html.ActionLink("Text", "Action", "Controller")
But the code bellow does the same thing:
<A href="~\Controller\Action">Text</a>
The Second option seems better to me, becaus... | common-pile/stackexchange_filtered |
VBS to ping a group of servers but not ping the group name
I am trying to modify an existing VBscript that pulls server names from my different sites from a text document and then pings them, the servers are all grouped together by the site they are located at. The script then displays whether the server is online or o... | common-pile/stackexchange_filtered |
How to remove effect of topography on Air temperature in Excel?
I traversed a route in a city. The route has different elevation. So I need to remove the effect of elevation from my air temperature measurements. The measurements done by temperature data logger mounted over a car and a GPS in it. So, the air temperature... | common-pile/stackexchange_filtered |
Select2.js - How do I prevent displaying the tags?
I've got select2.js setup something like this:
$searchBar.select2({
maximumSelectionSize: 1
, minimumInputLength: 1
, multiple: true
, placeholder: 'Search'
});
I'm sure this in the docs and right in fron... | common-pile/stackexchange_filtered |
ORA-00942 In grant select
I try to create a new Oracle user that it can only select from Tables (ReadOnly)
SO i had execute the next lines on SYS schema : (like 7502438)
1 - create user
CREATE USER my_user IDENTIFIED BY my_password DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
2 - grant create session
GRANT CRE... | common-pile/stackexchange_filtered |
How many ways are there to make $35¢$ change with these specific coins?
How many ways are there to make $35¢$ change with:a) $1952$ pennies, $1959$ pennies, and $1964$ nickels? (Numbers refer to the years of the coins, not the quantity.)b) $1952$ pennies, $1959$ pennies, $1964$ nickels, and $1971$ quarters?
For those n... | common-pile/stackexchange_filtered |
Symbol.for(string) in ECMAScript 6
It took me a while but I finally figured out what the purpose of symbols in ECMAScript 6 is: avoiding name collision when attaching properties to shared objects - HTML elements e.g. (In case you're stuck on the same question, I recommend this article.)
But then I stumbled upon Symbol.... | common-pile/stackexchange_filtered |
Noise covariance matrix
I am trying to find the noise covariance matrix of a random vector $\mathbf{x}$ with itself. The elements of this vector represent image pixels and are treated as random variables i.e, $\mathbf{x}=\{x_1,x_2 \dots x_n \}$. For a $M\times M$ image we have $n=M*M$. The resulting covariance matrix, ... | common-pile/stackexchange_filtered |
Durable azure function fanout with new context/request
Following the documentation for Durable Azure Function - Fan out/fan in
In the diagram above, say we have a static variable like
private static string _staticVar = "DEFAULT";
Some of the F2 instances need to set and then use _staticVar and some need to use its de... | common-pile/stackexchange_filtered |
C# AutoComplete
I am trying to add an autocomplete feature to a textbox, the results are coming from a database. They come in the format of
[001] Last, First Middle
Currently you must type [001]... to get the entries to show. So the problem is that I want it to complete even if I type the firstname first. So if an en... | common-pile/stackexchange_filtered |
Casting shadows using a directional light, plane, and cast shadow
In the WWDC 2017 video, apple explains about a trick to add shadows by using a directional light. Adding a directional light will cast a shadow and adding a plane will show the shadow. But I cannot seem to find mode and colour options of the cast shadow ... | common-pile/stackexchange_filtered |
Running a Zend Framework based Project on Eclipse
Currently I try to get PHP and Zend working on Eclipse. I'm not sure if there is a plugin for Zend or something that makes it comfortable to use in Eclipse, like automatically initializing default MVC-pattern like directory structure, and so on...
I was googling for it ... | common-pile/stackexchange_filtered |
How (or can) you formulate the Fisher information matrix in terms of a loss function, specifically cross-entropy loss?
I recently saw the following formulation of the Fisher information matrix in a paper on Transformer pruning:
$$
\mathcal{I} := \frac{1}{|D|} \sum_{(x,y) \in D} \left( \frac{\partial \mathcal{L}(x,y;1)}... | common-pile/stackexchange_filtered |
Best Way to Show Helpful hints for First Time Site Visitors RoR/Jquery
I'm looking for some advice to show tooltips/animations for first time site visitors. Any recommendations for existing plugins either for rails or jquery? I couldn't find any tutorials or examples out there. Thanks!
You have to use cookies to fi... | common-pile/stackexchange_filtered |
Angular directive with $sce and $compile
I'm making a template builder that eventually saves the html of a certain div to the DB with a bunch of inline styles and ng-click links.
I'm trying to render the saved html in the main container div with a custom directive, but I'm having problems with $sce and $compile playing... | common-pile/stackexchange_filtered |
How to pass a tree selection to another tree selection view in MFC
I have two tree view in MFC window application. Tree1 and Tree2
If i select any one item in tree1 and the same one should find and get select in tree2.
My code is like below.
Selecting first tree item and trying to pass the item to Tree2
void TreePage::... | common-pile/stackexchange_filtered |
Attempting to JIT compile method 'Akavache.Sqlite3.Registrations:Register (Splat.IMutableDependencyResolver)' while running in aot-only mode
Xamarin.iOS
Xamarin.Forms 3.6
akavache v6.4.1
The type initializer for 'Akavache.BlobCache' threw an exception.
Attempting to JIT compile method 'Akavache.Sqlite3.Registrations:... | common-pile/stackexchange_filtered |
In this program I have written my own memcopy function. I am printing destination string in the main as shown below
Below is the program
#include <stdio.h>
#include <stdlib.h>
void mymemcpy(void *f_dst, void *f_src, int n) {
int j = 0;
char *src = (char *)f_src;
char *dst = (char *)f_dst;
for (j = 0; j... | common-pile/stackexchange_filtered |
Create another website with subdomain
I want to create one test website to run on my server.
I created subdomain using CPanel. After creating, that folder is empty, with no cgi-bin folder (is this correct behaviour)?
I uploaded WP to that folder, created database, change wp-config.php file.
I tried to copy cgi-bin fold... | common-pile/stackexchange_filtered |
PHP object with soap XML identity claim property
I'm using PHP. I have an object that has a mobile phone as identity claim property. So my object looks like {'http:schemas.cmlsoap.org/ws/2005/05/dentity/claims/mobilephone': 1231231}. What's the easiest way to get that property value?
I tried using curly bracket {} to ... | common-pile/stackexchange_filtered |
Has my Mac been compromised?
I am running NOD32 on a Mac running Leopard 10.5.8. When I visited a website, NOD32 automatically detected it as a virus. For some reason I was taken to bing.com and I got a "page not found" error. Was this attack blocked or what? Upon further investigation, I looked into the history NOD32 ... | common-pile/stackexchange_filtered |
English Translation of Zohar online
I'm looking something up in the Zohar on Bereishis (Genesis), but I can't translate the words. Does anyone know where I can find an English translation of the Zohar on Bereishis, that's online?
I'm not saying that any of these are reliable, but why don't you try a Google search?
Ma... | common-pile/stackexchange_filtered |
bash function to handle file through symlink : problem with command line arguments
I wrote a little code that will copy files given either their name or symlinks to a given directory.
linkcp() {
cp `echo "$(realpath $1)"` "$2"
}
here is the file list:
$ ls -l
drwxr-xr-x 2 user1 users 4096 apr. 30 01:20 temp
-rw-r--r--... | common-pile/stackexchange_filtered |
Loading Data in Sortkey Order and VACUUM
I am loading a nightly snapshot of a table into Redshift.
I have added a column called "rundate" at the end of the table, which just represents when the data was pulled through my ETL process. It is also the primary sortkey.
The tables every night just gets longer and longer, a... | common-pile/stackexchange_filtered |
How do I load VMDK backups into a VMWare server?
It's a long story, but one of my VMs ended up not being backed up through Veeam, but we DO have the raw nvram, vm*, and log files. It appears that I need to load it onto our ESXi server's datastore. However, I've not been able to find a way with vSphere. The thick cli... | common-pile/stackexchange_filtered |
wrong edit made by a user
I have asked Homotopy invariance of de Rham cohomology question
Some user has changed the context from homotopy invariant(by which I mean homotopy equivalent) to diffeomorphic. This is totally different things. And that same user has answered question assuming it is diffeomorphic. I was reall... | common-pile/stackexchange_filtered |
How to find all files with a specific extension list
I have the following find command which will give me all files:
find /Users/david/Desktop/-type f
How would I find only those files with extension txt mpg or jpg ?
You need a space before -type
You can use -o in the find filter to combine different criteria with... | common-pile/stackexchange_filtered |
How to get Pdf Orientation using PyPDF2
I'm using Python/Django.
PyPDF2 to read my current pdf.
I want to read a pdf that I have saved and get the orientation of a single page within the pdf.
I'm expecting to be able to determine if the page is either landscape or portrait.
tempoutpdffilelocation = settings.TEMPLATE... | common-pile/stackexchange_filtered |
How do I check if column was removed?
I have a JTable with a lot of redundant columns. The user has options to customize the table which removes the columns by calling:
Table.removeColumn(Table.getColumnModel().getColumn(11));
When I close the program , settings are saved. But I cannot find a way to check if columns a... | common-pile/stackexchange_filtered |
How to find how much memory has been locked by a process under Windows?
Under Linux, I can get this info by looking at VmLck in /proc/$PID/status.
But on Windows, I couldn't find anything about how to find the current size of memory that's been locked so far of a certain process, in a programatical way (using WinAPI).... | common-pile/stackexchange_filtered |
How trivial is it to derive a private key from two public keys?
It turns out that what I was attempting to do was create a form of ECDSA threshold signature protocol by just giving away multiple public keys and then having the two parties solve for the private.
Original Question
I am currently working on building an a... | common-pile/stackexchange_filtered |
PowerShell does not show spanish text correctly
I am using PowerShell to send an email from a Windows Server 2008 R2 by scripting in spanish, but the text does not show correctly.
This is mi code:
$file = "c:\Contenido-Mail.txt"
if (test-path $file)
{
$from =<EMAIL_ADDRESS> $to =<EMAIL_ADDRESS> #Las direcc... | common-pile/stackexchange_filtered |
Refreshing an entity throws an NHibernate.UnresolvableObjectException
The entities and mappings I'm talking about in this question can be found here :)
Here is the context:
I have a parent view-model which helps to manage some entities, and which has its own session.
From this VM, I open another view-model (with its ow... | common-pile/stackexchange_filtered |
Product of First primitive roots equal to 1001
The First three primitive roots of 71 are: 7, 11, 13, in ascending order.
The product $7\cdot 11\cdot 13=1001$.
Can It be proven that there are infinitely many primes $p$ such that the product of their First three primitive roots in ascending order Is $1001$?
Is there any... | common-pile/stackexchange_filtered |
Trigger JS Function on HTML Page from PHP File
my problem is as following:
I have two files. Let's call them form.html and handler.php
As you may expected the html file is an email form and the php file is there to send it.
Now i want to trigger an BS4 alert on the html file from the php file when the mail is successfu... | common-pile/stackexchange_filtered |
Upload CSV file to servlet then pass it to java program
I have written a stand along java program that loads a CSV file with addresses line by line and geocodes them using an API. I have now been given the task of making this program run off a server. I have no experience dealing with servers. Basically what I need to ... | common-pile/stackexchange_filtered |
Gmapping Map and Scan Misalignment Issue with Ackermann Robot
I’m encountering an issue with gmapping in ROS where the generated map visually looks good, but when I use it as an occupancy grid with the robot’s actual location, the scan data does not align correctly.
Here’s my setup:
Robot Base: I’m working with an Acke... | common-pile/stackexchange_filtered |
Calculate time between 2 TDateTime, with a twist
I need to find out how to get the time between 2 times, but only if it is within work hours(Stored in a database)
This is what I got for now, but it is totally wrong. the total won't bee correct.
int __fastcall Organisasjon::CalculateResponsetimeInOpeninghours(std::auto_... | common-pile/stackexchange_filtered |
QGIS stalls on startup
Recently QGIS (currently using 3.10 A Coruna) hangs/stalls on startup. When I start the program, the splash screen appears and it runs through all the preliminary installation processes (JavaScript, plugins, etc.), then just hangs and doesn't actually open the QGIS program. The splash screen sa... | common-pile/stackexchange_filtered |
Can every 2NF relation be made into 3NF relation?
Can each and every relation which is in 2NF be made into 3NF with lossless join and dependency preservation?
Edit:
There is a relation R with set of functional dependencies F. R is in 2NF but not in 3NF. Can we decompose relation R into smaller relation which are in 3... | common-pile/stackexchange_filtered |
How to write SQL queries with respect to the following conditions?
I have a database table in which a column tags contain values such as:
"AutoMNRP, MNRP"
"Macro, MNRP"
"AutoMNRP, Micro"
"Macro, Micro"
where "...." represents a string.
I want to write a SQL query such that it filters out all results having MNRP tag in... | common-pile/stackexchange_filtered |
What is the relationship between (x | Z[a]), (y | Z[b]), and (((x^2 + y^2)^(1 / 2)) | Z[a])?
In other words, so to speak, how would I create a formula that would solve $$(\sqrt{(x | Z[a])^2 + (y | Z[b])^2}) | Z[a]$$ for either $x$ or $y$, given the other?
In English, what I want is a sequence of coordinates with $x$ as... | common-pile/stackexchange_filtered |
Having issues running pwsh shell in GitHub Actions with nektos/act locally
I'm super green to docker and looking for some troubleshooting direction for working with https://github.com/nektos/act.
I am able to successfully point to a workflow and run it and everything seems to be working as expected. The moment I add "p... | common-pile/stackexchange_filtered |
Can anyone help me with this? Its a login form but its giving errors
if(isset($_POST['submit'])){
$uname=$_POST['username'];
$pwd=$_POST['password'];
$acc_type=$_POST['acc_type'];
$_SESSION['user_type']=$acc_type;
if($acc_type=='Teacher'){... | common-pile/stackexchange_filtered |
VBA SUMIF formula not calculating result properly
I have some VBA code which goes through a couple of thousand lines of data, performs a SUMIF and then supposedly performs a "Calculate Now". It runs fine in the VBA, my problem is that in the output, the format is coming up as "General" and no matter how many times i ma... | common-pile/stackexchange_filtered |
How can I save external JSON data to DB(sqlite) with Rails
I have a form to add json url form, If user add json url and submit form, I want to save all json data to db.[form]1
Fetching json data from url using httparty gem works perfectly, now to store json data to db json_url
json data
{
"restaurant_name": "R... | common-pile/stackexchange_filtered |
google image search by image file(Not URL , From Endcorded Code )
Perhaps, you know that google image search by local image file ..
But, Google does not Support API about only file search.
Just URL or Text search APIs are suppoted..
So i tryed to use URL like this : ( Text = stackoverflow )
https://www.google.co.kr/se... | common-pile/stackexchange_filtered |
How convert Drawing.Color to Drawing.Brush, Windows Forms
How to Convert from 'System.Drawing.Color' to 'System.Drawing.Brush' ?
This cast does not work.
(Brush)colorDialog1.Color;
I have a color dialog, and I need to pick the color from it and use as Brush color
This video having a clear explanation but in Tamil -... | common-pile/stackexchange_filtered |
Confused because of for loop in for loop
I defined a used = [] as global var in my program. Now I have a function jimoti which is in while Loop. Inside of the function I'm looping over a results of web-scraping(bs4) and adding a title of web-scrape to used list. When the title exists in used I'm trying to not to print... | common-pile/stackexchange_filtered |
Xcode - iOS - Navigation controller scene order to be changed
I have created segues in the following way:
view controller VC1 is the root view controller
a segue from view controller from VC1 to VC2
In Xcode there is a section that shows the navigation controller scene (as shown in the attachment)
The navigation con... | common-pile/stackexchange_filtered |
Assembley procedure in pascal code?
I was reading pascal source code when i met this procedure:
procedure Copier_Bytewise (const source, target; const Count: word);
(* $ IFDEF VirtualPascal *)
assembler; (* $ Uses ESI, EDI, ECX *) (* $ Frame-*)
asm
mov esi, source
mov edi, target
mov ecx, Count
... | common-pile/stackexchange_filtered |
Kafka/Kubernetes and Autoscale
I have a question about Kafka in Kubernetes, specially autoscaling...
Let say I have 3 Kafka Brokers in 3 Pods in Kubernetes and there is a TopicA with 5 partitions (P1, P2, P3, P4, P5) and replication factor is 3 and all Brokers have their Persistent Volumes and I have auto scaling in Ku... | common-pile/stackexchange_filtered |
Rotating an object around the same pivot gives different results
Rotating an object around the same pivot gives different results
So I'm trying to make a door that opens when clicked on, and I have a door that works good as is, but for some reason when I try to make it work for another door using RotateAround, it moves... | common-pile/stackexchange_filtered |
JS, Images not working properly in IIS 7.5
When I deployed my project in IIS 7.5 in windows server 2008 R2 Standard, I noticed that the images and JS are not working properly even I Check the Static Content checkbox under World Wide Web Services / Common Http Features.
welcome to stackoverflow. can you share your code... | common-pile/stackexchange_filtered |
How to filter rows based on multiple criteria in R?
I have a df1:
ID ID2 Code
22 11 994
22 28 996
22 35 999
22 36 997
22 40 998
24 17 991
24 18 998
24 20 998
52 31 991
52 39 991
80 45 994
87 66 998
90 67 995
81 62 991
81 63 ... | common-pile/stackexchange_filtered |
How can I keep nested SWF files cached in the DOM?
I'm working on an app where users can switch between several fairly large swf files and make changes to them. I need those swf files to keep state as they are switched back and forth.
When the user navigates to a different swf file, we keep the current swf object in t... | common-pile/stackexchange_filtered |
Time Complexity of a Recursive Function with a Reducing Parameter
int func (int n, int m)
{
if (n<1)
return n;
else if (n<10)
return func(n-m, m);
else
return func(n-1, m);
}
This is the function. What's the big O notation and how can I calculate it? I'm new to this.
Is ther... | common-pile/stackexchange_filtered |
RF24 if statements are not reading properly, even if an "if" value is wrong, it still follows the associated code
My code is taking values from a remote and transmitting the state of it. Right now the states are just 1 and 0, on or off, and is writing over the serial monitor on the transmitting Arduino. On the receivin... | common-pile/stackexchange_filtered |
Why does caret::predict() use parallel processing with XGBtree only?
I understand why parallel processing can be used during training only for XGB and cannot be used for other models. However, surprisingly I noticed that predict with xgb uses parallel processing too.
I noticed this by accident when I split my large 10M... | common-pile/stackexchange_filtered |
Notation for "Amount of significant sign changes in interval"
I want to define a good notation for the number of how often the function $f:\mathbb{R}\rightarrow \mathbb{R}$ changes its sign in the interval $I\subset \mathbb{R}$ significantly.
By significantly I mean that the function changes its sign forgiven $\epsilon... | common-pile/stackexchange_filtered |
Is there a way to silently share a file when a cell is changed in g-sheets?
I have several hundred links to other sheets in a column, a checkbox column, and an email column. I'd like to share the sheet with the email when the checkbox is checked within each row. I can share the sheets with a function, but the code won'... | common-pile/stackexchange_filtered |
No C++ pthread support in build farm?
I'm trying to get some code compiling in a build farm. When I build it on my development machine things go fine:
checking if C compiler and POSIX threads work as is... no
checking if C++ compiler and POSIX threads work as is... no
checking if C compiler and POSIX threads work with ... | common-pile/stackexchange_filtered |
When we push a wall, we get tired Why?
When we push a wall the wall does not move so, no work is done but still we get tired Why? What energy changes occur in this process.
Do you get tired when you lean on a wall? Because that is also pushing on it ;)
Possible duplicate of Why does holding something up cost energy w... | common-pile/stackexchange_filtered |
MVC 4 Model and ViewBag error
Here i am using MVC 4 as per my hosting provider requirement i cannot use later version 4.5,4.5.1,4.5.2 my issue is in the image provided here
Three errors in one image
These three errors are not showing in 4.5,4.5.1 but in this version of 4 it is showing.
As i am trying to publish it in m... | common-pile/stackexchange_filtered |
principal curvature and its relationship to second fundamental form
In the Wikipedia definition of principal curvature, it says that the principal curvatures are the eigenvalues of the symmetric matrix $\left[I\!I_{ij}\right] = \begin{bmatrix} I\!I(X_1,X_1)&I\!I(X_1,X_2)\\ I\!I(X_2,X_1)&I\!I(X_2,X_2) \end{bmatrix}.$
By... | common-pile/stackexchange_filtered |
Creating a function which creates a vector without needing quotation marks for strings
I know that dplyr select has the ability to subset a dataset using column names without quotation marks:
function (.data, ...)
{
UseMethod("select")
}
I would like to do something similar, but instead of subsetting, I want the ... | common-pile/stackexchange_filtered |
Turning on React Native debugger in WebStorm
I'm dealing with like 7 files so it would be crazy to post them all. I'm getting a very vague error in my iOS simulator that says:
A valid ReactComponent must be returned.
You may have returned undefined, an array or some other invalid object.
I'm not getting any error in... | common-pile/stackexchange_filtered |
Calculate the sum: $\sum_{n=1}^\infty \frac{1}{n^3+3n^2+2n}$
I need to calculate this sum. what i tried is doing partial fraction decomposition.
so $$\frac{1}{n(n+1)(n+2)} = \frac{A}{n} + \frac{B}{n+1} + \frac{C}{n+2}$$
and after calculating I got $$A = \frac{1}{2}$$ $$B = -\frac{1}{4}$$ $$C = \frac{1}{2}$$
and so the ... | common-pile/stackexchange_filtered |
What is the Pandas equivalent of top_n() in dplyr?
What is the Pandas equivalent of top_n() in dplyr?
In R dplyr 0.8.5:
> df <- data.frame(x = c(10, 4, 1, 6, 3, 1, 6))
> df %>% top_n(2, wt=x)
x
1 10
2 6
3 6
As the dplyr documentation highlights, note that we get more than 2 values here because there's a tie: top_... | common-pile/stackexchange_filtered |
Why is half of my compiled (small) objective-C file a large block of zeroes?
I opened up my compiled Hello World Obj-C application in a text editor and, to my surprise, I found about 8 kilobytes of 00 00 00 00 00 00 00 00 ....
Why are these here? Is there a way to clear out these zeroes (which I doubt have too much fu... | common-pile/stackexchange_filtered |
using exit(1) to return from a function
linux gcc 4.4.1 C99
I am just wondering is there any advantage using the following techniques. I noticed with some code I was reading the exit number went up in value, as displayed in this code snippet.
/* This would happen in 1 function */
if(test condition 1)
{
/* somethin... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.