text
stringlengths
70
452k
dataset
stringclasses
2 values
ruby socket connection to outside I trying to make a connection with following ruby code server require 'socket' puts "server" socket = TCPServer.open(1000) client = socket.accept puts "connected" client require 'socket' puts "client" server= TCPSocket.open("<IP_ADDRESS>",1000) puts "connected" but client side alway...
common-pile/stackexchange_filtered
Why is the statement false: If a test is rejected at significance level α, the probability that the null hypothesis is true equals α? Since the answer is false, so it just means the probability that null hypothesis is false equals α. But α is defined as the probability that null hypothesis is rejected when it is actual...
common-pile/stackexchange_filtered
Completely confused about MapReduce in Riak + Erlang's riakc client The main thing I'm confused about here (I think) is what the arguments to the qfun are supposed to be and what the return value should be. The README basically doesn't say anything about this and the example it gives throws away the second and third ar...
common-pile/stackexchange_filtered
CSS or jQuery: text in two different colors in <select> dropdown menu I'd like to have the text in the <option> elements of a <select> menu displaying in two different colours, like so: I've been searching around for something definitive and mainly finding one or two really old threads indicating that it can't be done...
common-pile/stackexchange_filtered
What value series resistor should I use for USB data lines when two ICs require different impedance values? I'm using a USB hub (TUSB2036VFR) that communicates with an ATMEGA8U2 and an FTDI chip. The incoming USB signal comes through an isolated USB communications chip ADUM3160BRWZ. The TUSB2036VFR requires a 90 ohm di...
common-pile/stackexchange_filtered
Shadowbox to open a page I am starting a JSP page from my servlet. I want to know if I can put any code inside the JSP page so that the page would open in a shadowbox instead of a new tab I should have mentioned. http://www.shadowbox-js.com/ .Its something like what Facebook uses to display images what you will try.....
common-pile/stackexchange_filtered
Generate additional random number from array of 20 integers I am having trouble with this, I need to generate an additional single random number that has the same 1-10 span. I already have the code for the random generator that produces my 20 integer array of random numbers but how do I generate a single random number ...
common-pile/stackexchange_filtered
Correctness of adding "one" before a plural form (like people) or collection We are struggling to decide on a name for our company. Our preferred choice happens to be onefora.com. As a non-native English speaker, I am worried if it sounds odd to native speakers. Would "one fora" be as valid as "one people"? Can we in ...
common-pile/stackexchange_filtered
Disposable proxy for a phone number? I am in the process of making a deal on Craigslist but I do not really want to release my phone number to someone who I will eventually forget after a while and I am sure the next person would feel the same. So I desire some application that I can give my phone number, that returns ...
common-pile/stackexchange_filtered
Change Message Preview text in iMessages I'm developing a iMessages Extension app using Swift3 in Xcode. Everything is working good. I am curious if I can change the preview message to my app name in the messages display. I have attached the screenshot to explain it more.
common-pile/stackexchange_filtered
I have the probability distribution of a random variable, how do I generate a random set of 10 numbers based on this distribution? There is an answer in python: Generate random variables from a probability distribution It seems like they are using some built-in distribution function (i.e. exp). I have looked at the ran...
common-pile/stackexchange_filtered
How can I launch/switch foreground app on Windows 10 IoT I want to build a "Launcher App" to run on my Windows 10 IoT (Raspberry Pi 3) build 14986 (or later). The launcher app should basically just have two buttons to launch (or switch to) other apps already deployed on the device. I'm wonder if anyone knows how to lau...
common-pile/stackexchange_filtered
Find the limit : $\lim\limits_{n\rightarrow\infty}\int_{n}^{n+7}\frac{\sin{x}}{x}\,\mathrm dx$ I have this exercise I don't know how to approach : Find the limit : $$\lim_{n\rightarrow\infty}\int_{n}^{n+7}\frac{\sin x}{x}\,\mathrm dx$$ I can see that with $n\rightarrow\infty$ the area under the graph of this functio...
common-pile/stackexchange_filtered
How to determine if two objects are of the same type in Swift There's lots of past questions relating to this but all the ones I could find are for when you want to determine if an object is of a certain type of class (if myClassInstance is MyClassType {...}). I want to know how I can determine if object A and object B...
common-pile/stackexchange_filtered
RTL Snapshot test using React.createPoratl() I have a simple component import { createPortal } from 'react-dom'; import PropTypes from 'prop-types'; const MyComponent = props => { const { isVisible } = props; if (isVisible) { return createPortal(<div className="my-component" />, document.getElementById('page'...
common-pile/stackexchange_filtered
Using jQuery Tablesorter and divs in the cells not working I am using <div> to get the data into each cell. I recently found out about jQuery tablesorter and tried to implement it with no luck. I have this at the beginning of the code: $(document).ready(function() { $("#data_fm_op").tablesorter({ sortList: [[0, 0...
common-pile/stackexchange_filtered
"?" printed instead of emoji When coding the emojis, despite using utf-8s, it only outputs "?". System.out.print(boyName + ", will you be my boyfriend? "); String response = scanner.nextLine(); switch (response.toLowerCase()) { case "yes": System.out.println("Yay! \uD83D\uDE0A"); break; case ...
common-pile/stackexchange_filtered
Think about what happens when we have $0 \to A \to B \to C \to 0$ - the zero on the left forces the first map to be injective, right? Exactly, because the only map from zero is the trivial one, so the kernel of our first map can only contain the zero element. And the zero on the right means the second map hits everyt...
sci-datasets/scilogues
Continuation with Tasks (instead of delegates) I have a class where each method execute asynchronously, i.e. return a Task, but where each method should nevertheless wait for the completion of the preceding call. Continuation, right? Except that a task continuation takes a delegate (Action) in parameter, not another ta...
common-pile/stackexchange_filtered
APEX call to a dedicated server Can APEX call a code on a dedicated server? Then Pass and retrieve variables? Of course I need to pass a password for the server, Thanks This is only possible via WebServices (HttpRequest). Here's a simple example: http://boards.developerforce.com/t5/NET-Development/How-to-call-net-w...
common-pile/stackexchange_filtered
Attaching an array of effects to elements I'm trying to attach all jquery ui effects to click events on images: http://jsfiddle.net/jfv7qyff/1/ var effectArray = [ 'blind','bounce','clip', 'drop','explode','fade', 'fold','highlight', 'puff','pulsate', 'scale','shake', 'slide','transfer' ]; for(...
common-pile/stackexchange_filtered
Solve $\sin(x) = \cos(x)$ where $0°\leq x\leq 450°$ How many solutions are there: $\sin(x) = \cos(x)$ where $0°\leq x\leq 450°$? My solution: transform the equation to $\tan(x)=1$ , using the unit circle I see 3 solutions: $x_1 = π/4$ , $x_2 = 5π/4$, $x_3 = 9π/4$. The maths book says there are 7 solutions, where is my...
common-pile/stackexchange_filtered
Is this question part of a cryptocurrency scam? I came across this question by chance How do I recover from a cryptocurrency scam?. It is the first question of this account and it directly accepted an answer by another fresh account. The accepted answer has only 2 upvotes at the moment unlike the second one which has 3...
common-pile/stackexchange_filtered
unable to execute "normalize-audio out/*.wav" from java I am trying to execute "normalize-audio out/*.wav" command from java. for single file as follows, Runtime.getRuntime().exec("normalize-audio 0002.wav"); it works fine. but, when i use, Runtime.getRuntime().exec("normalize-audio out/*.wav"); it says: file *....
common-pile/stackexchange_filtered
Unable to understand python reversed function Why list is used while printing? Without using list why can't we just print the reverse string? My code: name = "prajwal" name1 = reversed(name) print(list(name1)) #result: ['l', 'a', 'w', 'j', 'a', 'r', 'p'] Which python version, 2 or 3? reversed return a reversed clas...
common-pile/stackexchange_filtered
How can i integrate Azure Mobile App win Azure API app We are building a mobile cross platform solution with Xamarin (Xamarin.Forms). We developed a backend API in Azure with Azure API Apps. Now we want to integrate and use Mobile Apps (Mobile Services) but using Azure API Apps we created previously. I see this BUILD p...
common-pile/stackexchange_filtered
How the HTTP methods are implemented in Spring RESTful (HEAD, OPTIONS, CONNECT, TRACE) I would like to find out what an example implementation of HTTP methods (HEAD, OPTIONS, CONNECT, TRACE) looks like in Spring Framwerok. Because I can't find much information on what it would look like other than the standard methods ...
common-pile/stackexchange_filtered
How do i add files to the startup folder? I am trying to make button1_Click cause calc.exe to be added to the startup folder. I would also like the calculator to randomly pop up on the screen. I am using Visual Studio 2015. if also using java what code can I use to add the file to the startup folder on a button click....
common-pile/stackexchange_filtered
Why has Nepal never been conquered or colonized? Why has no country conquered or colonized Nepal? Nepal lost the Anglo-Nepalese War with East India Company but was not colonized. Dear down voter please specify the reason for down vote so I can know the flaw in my question. Possibly because its mountainous location ma...
common-pile/stackexchange_filtered
swapping object references in the method In Java you can't do that without either wrapping into other objects or using arrays. This doesn't work. a; // Object@12345 b; // Object@56789 swap(a, b); a; // Object@12345 b; // Object@56789 void swap(Object a, Object b) { Object temp = a; a = b; b = temp; } B...
common-pile/stackexchange_filtered
A continuous generalization of the binary bandit There is plenty of reading out there about Bayesian (beta-binomial) multiarm bandits for 0/1 data, but I would like to extend this slightly. To give some context, suppose I have two webpages, A and B. Now I want to test which webpage gets more people to call in, so I be...
common-pile/stackexchange_filtered
Series expansion of square root function Could I please know how to expand: $$\sqrt{4-3x^2}$$ I simplified it to $\sqrt{1-\frac34x^2}$ but the question is if I let $x = x^2$, what will the coefficient of, say $x^5$ or $x^{10}$ be in the expansion? See binomial series. HINT : Rewrite \begin{align} \sqrt{4-3x^2}&=(4-3x...
common-pile/stackexchange_filtered
Proxy Redirect on NGINX not working as expected I set up nginx as a reverse proxy for two proxied servers. Each of them (proxy and proxied servers) is running as a container in a docker environment. Proxied server appalpha is simply an nginx:alpine serving a static webpage (just for demo and testing purposes). All work...
common-pile/stackexchange_filtered
How to split the table with condition and join with other table in SQL I got two tables: Sales: Staff: How can I split the Sales table by AM/PM in TYPE and join with Staff table? The result should look like: You can join the table sales twice, with different aliases a and b. For example: select s.id, s.name, ...
common-pile/stackexchange_filtered
How to use the standalone package with emacs This is a follow-up question from A simpleton's guide to (...)TeX workflow with emacs. The main answer stated that it is possible to use emacs together with standalone: the question is how? The main problem is that when you try to compile a standalone file with C-c C-c, the ...
common-pile/stackexchange_filtered
xsl:value-of vs xsl:apply-templates: what is faster? Looking at all the examples of XSL, I've noticed that some people use xsl:value-of while others use apply-templates. Which method is faster than the another and why? Such choice is limited to parents of text nodes only. You would have to conduct a comparison using...
common-pile/stackexchange_filtered
Promtail Config And Setup For Docker Swarm Containers I have a promtail and docker compose config and setup that works fine but when i try to follow same for docker swarm cluster, logs are not showing up for some reason I have searched online for a doc on working config and setup for docker swarm with promtail and unfo...
common-pile/stackexchange_filtered
Google Sheets - calculating range based based upon variable criteria, with added multiplication Working from this spreadsheet: https://docs.google.com/spreadsheets/d/1aiZzzOFzPDrw_siMhL8XiNIp3q7f8nz58HvwBKn14uA/edit?usp=sharing Trying to calculate sum of a column where value in another col is true: this works well, lik...
common-pile/stackexchange_filtered
What is the reason for 'Unable to resolve substream' error in ADTF? I'm having the following problem when trying to setup Substream Assembler filter with Substream Selector: I have the following basic setup in the ADTF tool: The input to Substream Assembly is simply a dummy filter, generating some random data and sen...
common-pile/stackexchange_filtered
Why is the general form of closed 1-forms on $\mathbb{R}^2 \setminus \{ 0 \}$ are as follows? Why is the general form of closed 1-forms on $\mathbb{R}^2 \setminus \{ 0 \}$ are given by $$ \omega = df + k d \theta, \qquad d \theta = \frac{-y dx + x dy}{x^2 + y^2}, \qquad k = \frac{ 1 }{ 2 \pi } \oint_{S^1} \omega....
common-pile/stackexchange_filtered
Joi object key type I have object with dynamic string keys with string values, { [string]: string } how can I do this? Joi.object().keys({ [Joi.string()]: Joi.string() }) not working :( Possible duplicate of Is there a way to validate dynamic key names in a Joi schema? You want to use Joi.object().pattern(). F...
common-pile/stackexchange_filtered
Notation question: bigraded direct sum of graded objects In some work I'm doing I have two graded modules $M$ and $N$ (graded on $\mathbb Z$, say) and need to take, not the usual direct sum, but the bigraded sum consisting of all $M_p \oplus N_q$ (so graded on $\mathbb Z \oplus \mathbb Z$). For the graded sum I would s...
common-pile/stackexchange_filtered
Bizarre behavior of a query I found this query from a developer: DELETE FROM [MYDB].[dbo].[MYSIGN] where USERID in (select USERID from [MYDB].[dbo].[MYUSER] where Surname = 'Rossi'); This query deletes every record in table MYSIGN. The field USERID does not exists in table MYUSER. If I run only the subquery: select US...
common-pile/stackexchange_filtered
Python - unit testing class that extracts data from html pages I am writing small application in Python and one module is responsible for downloading and parsing web pages using Beautiful Soup for parsing and urllib2 for page downloading. I am wondering now, how could I write unit tests for the class responsible for pa...
common-pile/stackexchange_filtered
why this rule is not valid for the following $\lim_{n \to ∞} \frac{(e^n)}{(1 + \frac{1}{n})^{n^2}}$? We know $\lim_{x \to a} \frac{f(x)}{g(x)} =\frac{ \lim_{x \to a} f(x)}{\lim_{x \to a} g(x)}.$ I'm provided $n ≠ 0$ Then why this rule is not valid for the following $\lim_{n \to ∞} \frac{(e^n)}{(1 + \frac{1}{n})^{n^2}}$...
common-pile/stackexchange_filtered
When should I use AsParallel() in linq/plinq I'm looking make use of the advantages of parallel programming in linq by using plinq, im not sure I understand the use entirely apart from the fact its going to make use of all cpu cores more efficiently so for a large query it might be quicker. Can I just simply call AsPar...
common-pile/stackexchange_filtered
How to load an audio/videos into Hbase I am looking for how to ingest audio/videos files in HBase. my videos/audio files are in HDFS and I would like to know how to ingest it in HBase and further how to retrieve it from HBase. can someone suggest? HBase documentation not contain these details but i have heard it from m...
common-pile/stackexchange_filtered
Integer solutions to $(a^x - b^y)/(a - b)=c$ I would like to know if all integer solutions to $\frac{a^x -b^y}{a - b} = c$, where $c$ is also an integer, are known. Is there an equation somewhere? Are $a,b$ restricted to be integers? Guess yes... Yes, they are also integers. The equation is equivalent to $$a^x-b^y\...
common-pile/stackexchange_filtered
SQL Pivot Multiple (15) Values returning in just 4 columns Microsoft SQL 2008r2 I have tried reviewing all the Pivot posts, Pivot with Multiple Values, but nothing seems to be what I need - this may be the closest Displaying multiple values into columns in sql server using pivot - but sadly no "results" so I can't be s...
common-pile/stackexchange_filtered
Cannot resolve symbol 'getAudioInputStream' ".getAudioInputStream(file)" give the error "cannot resolve symbol" (IDE Intellij, java 8) I try the solution in File > Invalidate Chaces / Restart ... but it doesn't work package com.Main; import javax.sound.sampled.Clip; import java.io.File; import javax.sound.sampled.Audi...
common-pile/stackexchange_filtered
I don't understand the windings inside my power drill. I was curious about how my power drill worked and I disassembled it. I understand the general principles at work here but I don't understand why the winding is set up this way. I assume running current through the solenoid in the center induces a magnetic field a...
common-pile/stackexchange_filtered
Ubuntu NTP server: no server suitable for synchronization found I am synchronizing 4 Raspberry Pi Clocks with an Ubuntu server (all in a local net, connected over ethernet), using NTP. All devices are offline, so the Server just listens to its local clock; The real time does not matter. When I reboot the host computer ...
common-pile/stackexchange_filtered
Remove Whitespace using Erlang Regex I want to remove all the whitespace i..e tabs/spaces/newline chars. T = {xmlelement,"presence", [{"xml:lang","en"}], [{xmlcdata,<<"\n">>}, {xmlelement,"priorit...
common-pile/stackexchange_filtered
Zend Framework Application Going white after application->bootstrap()->run() I have never used zend framework before today. Though I know PHP my client gave this site to me which seems to be stuck. I can't figure out what is wrong here. I tried these- I have enabled error reporting and writing some junk code on index....
common-pile/stackexchange_filtered
Can template specialisation be avoided in this case? I recently came across the following: // declare template <class> struct A; // specialise template <template <class...> class C, class... Fields> struct A<C<Fields...>> { template <typename... Args> explicit A(C<Fields...>* c, Args&&... args) {} }; // instantiate t...
common-pile/stackexchange_filtered
jQuery: Enable submit button only if the user enters correct string format I want to disable a login button, and enable only if the user has input correct number format with regex. This is not about the Regex issue. My problem is about the jQuery code is not working. Here is my code: $('#username').keyup(function ()...
common-pile/stackexchange_filtered
Pairwise spacings of an ordered sequence of uniform random numbers Given an ordered list of $m$ uniform random numbers in the range $1$ to $n$ $$a_{1} \le a_{2} \le \ldots \le a_{m}, \forall a_{i}: a_{i}\in [1;n] \cap \mathbb{N}$$ compute the pairwise spacings of these numbers: $$d_{1} = a_{2}-a_{1} d_{2} = a_{3}-a_{...
common-pile/stackexchange_filtered
I cannot install aptitude tool on ubuntu 16.4 I cannot install aptitude tool on ubuntu 16.4. Whenever I try installing it, an error comes up as follows: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? What does...
common-pile/stackexchange_filtered
Looping PHP Nested Arrays - Extract values into Blade Views (Laravel) I know there are many questions on this topic, but none quite deal with this (as far as I could see). I have a PHP array (which FYI, is returned via Guzzle response) in a Laravel Project. The PHP array $users = array(2) { ["error"]=> bool(false)...
common-pile/stackexchange_filtered
SQL Server : computed column error in dateadd formula These are the columns (simplifying): myDate as Date theMonths as int Then I create a computed column finalDate in Microsoft SQL Server Management Studio 2008 R2, with this formula: (dateadd(month, theMonths, myDate)) Very simple. But there is an error: Error vali...
common-pile/stackexchange_filtered
Sass on Grunt always creates an empty output I'm trying to compile SASS using grunt-contrib-sass, but I get an empty CSS file. Here is the simplest package.json I could come up with to compile SASS/SCSS: { "name": "sassgrunt", "version": "1.0.0", "scripts": { "sass": "node-sass" }, "devDependencies": { ...
common-pile/stackexchange_filtered
Two differently-versioned binary Debian packages from one source I'm thinking about properly Debianizing a package, which contains two parts in one upstream tarball/git branch: Userspace binaries and libraries, version 1.5.0 (foobard binary package) Kernel module, version 0.8.5 (foobar-dkms) The problem is that versi...
common-pile/stackexchange_filtered
How to set up Plover so Stenography can be broadcast on a LAN in real-time? A friend of ours is running the Plover software for her closed caption and other reporting work. She is trying to find a way to have this post in real time on a local server for others (Hard of Hearing) to watch in real time (but not allow them...
common-pile/stackexchange_filtered
Flutter: Use Navigator with TabBar and TabBarView I'm trying to understand the class Navigator. A Navigator Route seem to always return a new widget but what if I want to manage the TabBar and TabBarView so that each Tab when tapped or swipe on, will be pushed to the Navigator stack, I don't find a what to do that. On ...
common-pile/stackexchange_filtered
How to include a script if element has a class? Let's say I have: <body class="hello"> How can we do something like the following? if($("body").hasClass("hello")) { <script src="/demo_js/ion.rangeSlider.min.js"></script> } I was wondering if maybe doing something like: if($("body").hasClass("hello")) { document.wr...
common-pile/stackexchange_filtered
Autofac - Force Delegate Factories to pass a new instance even if type is registred as InstancePerRequest i am using Autofac Delegate Factory Feature: http://autofaccn.readthedocs.io/en/latest/advanced/delegate-factories.html The problem is that when i register a type as in my Web Application example: builder.RegisterT...
common-pile/stackexchange_filtered
What happens to the Gas Pressure when working out the Eddington Luminosity? I am looking at how the Eddington Luminosity is derived and I do no understand why we only care about $P_{rad}$? When working out $L_{Edd}$ you take the ratio between $dP_{rad}/dr$ and $dP_{hydrostatic}/dr$ which must be less or equal to than...
common-pile/stackexchange_filtered
$z\in\mathfrak R$ iff for every $a\in A$ there is $w$ for which $z+w=zaw=waz$. In his BAII, Jacobson gives the following exercise (Exercise 3 in §4.2 of Basic Algebra II), which he attributes to McCrimmon. Let $A$ be an (associative) ring with unity. Let $\mathfrak{R}\left(A\right)$ denote the Jacobson radical of $A$....
common-pile/stackexchange_filtered
Google Closure - Html5History fires NAVIGATE event twice Why does goog.history.Html5History object fire goog.history.EventType.NAVIGATE event twice each time when fragment is changed? This is the example of code: var history = goog.history.Html5History.isSupported() ? new goog.history.Html5History() : new ...
common-pile/stackexchange_filtered
Connecting to webapp with ftp in a release pipeline to download files Ive tried connecting to an ftp with the following powershell script: #FTP Server Information - SET VARIABLES $ftp = "ftp://XXX.com/" $user = 'UserName' $pass = 'Password' $folder = 'FTP_Folder' $target = "C:\Folder\Folder1\" #SET CREDENTIALS $cred...
common-pile/stackexchange_filtered
Azure DevOps Pipeline lockbehavior in simple build pipeline (no deployment/release) is it possible to use the lockBehavior (see https://learn.microsoft.com/en-us/azure/devops/release-notes/2021/sprint-190-update#support-for-sequential-deployments-rather-than-latest-only-when-using-exclusive-lock-checks) in a simple bui...
common-pile/stackexchange_filtered
Cannot login to ubuntu after startx command I wanted to manually configure the internet settings & decided to seek help from this website. Ubuntu did not allow me to perform step 1 saying, X: user not authorized to run the X server, aborting so I logged in as superuser by executing sudo -s. Then I executed step 1. Su...
common-pile/stackexchange_filtered
How to concatenate columns on top of each other in an array Say I have the following array: a = np.array([[1,3,5,2,3],[3,2,5,6,7],[1,7,3,6,5]]); How can I stack the columns on top of each other to form a single column vector to produce the following? b =np.array([[1], [3], [1], [3], [2], [7],[5],[5],[3],[2],[6],[6],[3...
common-pile/stackexchange_filtered
HDF5 variable length structure, of variable length (C API) I'd like to write data which is contained in a STL container to a HDF5 file. From what I gathered, I need to declare a contiguous memory block and use the "hdf5.h" C API to transfer the data from the memory buffer to the disk. For regular dataspaces, the proced...
common-pile/stackexchange_filtered
C++ How to loop dynamic arguments from function? I need to loop all the dynamic arguments i have gave to my function, how? I mean this kind of code: void something(int setting1, int setting2, ...){ // loop somehow all the ... arguments and use setting1-2 values in that loop } setting1 and setting2 are not part of t...
common-pile/stackexchange_filtered
Circular dependency of Business logic and Data access layer I am working on MVC project where I am following the layered architecture. After reading and researching on the web, I figured out that having seperate layers is optimal approach. So, my layers are: Presentation layer has: Controllers, Views Business Layer: S...
common-pile/stackexchange_filtered
How to fix window.CKFinder is undefined I want to use ckeditor 5 and ckfinder plugin to upload a file or image. I setup ckeditor and plugins step by step with this link. I can run ckeditor and see ckfinder icon on ckeditor but when click on the icon it will not open thel modal and the error is "window.CKFinder is undef...
common-pile/stackexchange_filtered
make a div appear and disappear between 2 heights on scroll down - - and reverse on scroll up In an earlier thread (How to make a div appear and disappear between 2 heights?) I found a script to add to my html that makes a div appear at a specified height then disappear at a second specified height. Unfortunately, whe...
common-pile/stackexchange_filtered
Layout of .NET value type in memory I have the following .NET value types: [StructLayout(LayoutKind.Sequential)] public struct Date { public UInt16 V; } [StructLayout(LayoutKind.Sequential)] public struct StringPair { public String A; public String B; public String C; public Date D; public doub...
common-pile/stackexchange_filtered
How to allow Guest Network access to internal server with port forwarding? Guest Network prevents access to internal network. That's perfect. However I have a server machine that is accessible externally. I have set up port forwarding to allow this. I can access the LAN IP within my network and the External IP: through...
common-pile/stackexchange_filtered
Populating RecyclerView with two sets of data from Firebase I have Firebase set up as so... { "items" : { "-LDJak_gdBhZQ0NSB-7B" : { //item "name" : "Test123", ... }, ... }, "likes" : { "YoTjkR2ORlcr5hGedzQs5xOK2VE3" : { //user "-LDJiY0YSraa_RhxVWXL" : true //whether or not the ...
common-pile/stackexchange_filtered
Rails Article.find 1 raises ActiveRecord::StatementInvalid on legacy database I'm creating a rails app over a legacy database table. Everything works fine locally, but on the server I hit this error whenever I do Article.find(1) Could not log "sql.active_record" event. NoMethodError: undefined method `name' for nil:Nil...
common-pile/stackexchange_filtered
In JavaScript, should an iterable be repeatedly iterable? I found that some iterable can be repeatedly iterable: const iterable = { [Symbol.iterator]: function* () { yield 1; yield 3; yield 5; } } console.log([...iterable]); console.log([...iterable]); console.log([...iterable]); While s...
common-pile/stackexchange_filtered
Enter/Space key doesn't work on only some buttons in JAWS + IE Having an issue just in JAWS 18 + IE 11 (it works fine in Chrome, Firefox and with NVDA and with just the keyboard, no screen reader). This works: <ul class="user-options"> <li> <button id="fa_lo" tabindex="0" class="step-one-button" aria-label=...
common-pile/stackexchange_filtered
CD in Azure PowerShell Failure In powershell cd works, but not in my Azure Cloud Shell. What am I missing? Copied session shows me trying to get into quickstart directory (which was created in the powershell shell) Welcome to Azure Cloud Shell Type "az" to use Azure CLI 2.0 Type "help" to learn about Cloud Shell MOTD...
common-pile/stackexchange_filtered
Nhibernate Tag Cloud I'm trying to get a Tag Cloud architecture working in NHibernate. public class Tag : Entity { public virtual int Id { get; set; } public virtual string Text { get; set; } } This table will map to a few entities in my schema so I don't want to add a collection to the Tag class for each asso...
common-pile/stackexchange_filtered
ERROR PIP INSTALL Paquetes o Librerías en python en UBUNTU Hola amigos quiero instalar Numpy desde la terminal de Visual Studio Code,pero no me sale error, de echo me salen dos ERRORES abajo les dejo los errores. (Ya intente actualizar el pip3) 1-ERROR: Could not find a version that satisfies the requirement numpy (fro...
common-pile/stackexchange_filtered
The sum of independent lognormal random variables appears lognormal? I'm trying to understand why the sum of two (or more) lognormal random variables approaches a lognormal distribution as you increase the number of observations. I've looked online and not found any results concerning this. Clearly if $X$ and $Y$ are i...
common-pile/stackexchange_filtered
MySQL Query that works fine through SQL pro not working in mysqli_query I tried many things but can't understand why this is not working... Basically, I am dropping and creating tables. The following query works perfect in SQL PRO, or mysqladmin SET foreign_key_checks = 0; DROP TABLE IF EXISTS `calendarCountries`; CR...
common-pile/stackexchange_filtered
CNN - multidimensional matrix as input or parallel input for parallel CNN I want to run CNN on 20 channels of images. One way is to run on a 20-channel multidimensional matrix (like RGB ). Another way is to run 20 CNN on one channel at a time ( R apart from G separately from B as separate inputs ) and finally connect b...
common-pile/stackexchange_filtered
Choose between abstract class and interface Among my two processes' functionality, there is a common function to merge files. I need not going to insist any of the processes to have some methods as interface does. And, also the two processes are independent. So, is it fine I just go with an Abstract class and have the ...
common-pile/stackexchange_filtered
SQL command not properly ended in fetch and union using Why this query return 'SQL command not properly ended' error? select column1, length(column1) from test10 order by length(column1), column1 asc fetch first 1 rows only union select column1, length(column1) from test10 order by length(column1) desc, column1 asc fe...
common-pile/stackexchange_filtered
Angular 8 autofill suggestions on password field I have seen various questions around this on stackoverflow but none has a working solution. Is there a working method to disable browser AUTO-FILL suggestions from poping up on fields? <mat-form-field> <input matInput formControlName="hkfj" aut...
common-pile/stackexchange_filtered
Images uploded but not saved in database When users upload images in application, they are successfully saved to the server's file system within a folder named "Images". However, despite the successful file storage, encountering an issue where the images are not being saved in the database. Notably, this problem is iso...
common-pile/stackexchange_filtered
PHP Batch upload array data I am working with a client API (master API) that does not have a bulk feature. I have taken data from 2 different API's (client API's) and merged it into one JSON file that is properly formatted. Checked in online JSON Validator. The JSON File is 1100 records of merged customer data. Takin...
common-pile/stackexchange_filtered
Change Table Name of an Entity on runtime? There is this table that is being generated on a monthly basis. Basically the table structure of all monthly tables is the same. Since it would be a lot of work to map the same entity just with a different table name, Is it possible to change the table name of an entity as fol...
common-pile/stackexchange_filtered
Java AES Encryption with CBC and PKCS7Padding I have been struggling with this for a couple of days now. I'm required to consume an API that takes an encrypted parameter. The API was written in C#. The encryption requested is the following: Algorithm: AES Cipher mode: CBC Padding mode: PKCS7 Block size: 128 Key ...
common-pile/stackexchange_filtered
How can I run an SSIS package from sql server using an ODBC connection? I am working with an integration services project. From visual studio I have created the SISS packages and they work correctly (it has an ODBC postgreSQL source and an OLE DB destination). But I have problem when I deploy the project to sql server ...
common-pile/stackexchange_filtered
Post object, status_type property doesn't work? We're able to post to user's FB timeline/page as the page, no problem. The issue is the post that our app is posting is way smaller than post that a page/user can post to the feed manually. We've tried to change status_type to one of mobile_status_update, created_note, ad...
common-pile/stackexchange_filtered
1 Keaveny: The tunneling current drops to zero when I rotate the probe past fifteen degrees. Something's breaking the momentum matching condition. 2 Boyer: But that's exactly what should happen. The electron wave functions in your graphene probe only interfere constructively with the sample when their momenta align pe...
sci-datasets/scilogues