text
stringlengths
70
452k
dataset
stringclasses
2 values
How to find the dynamic range of ADC? I bought a Analog to Digital Converter but did not gave much attention to Dynamic range. The resolution is 12 Bit. Minimum input voltage is 0V and maximum is 5V. The problem is I don't have the datasheet and want to know how can I find the Dynamic range of this ADC? Additional inf...
common-pile/stackexchange_filtered
Centroid given a list of vectors I have to calculate the mean vector given a list of vectors such as this one '((2 3 56) (22 45 34) (21 2 23) (4 8 3) (4 4 1) (4 4 5)) In short words I have to find the centroid given a list of lists. (defun vsum (x y) (cond ((not (= (list-length x) (list-length y))) (error "dimension e...
common-pile/stackexchange_filtered
Early 80s sci-fi movie, cyborg(?), shooting .. had this stuck in my mind for about 30 years This is an incredibly vague scene depiction, but I'm trying to recall a sci-fi movie I watched as a very young kid. It would have been out perhaps early 80s. I don't recall any of the story but the image has stuck in my head and...
common-pile/stackexchange_filtered
Initializing a Tesseract I try to get some text of an image by using OCR. I have to initialize a Tesseract for that and this was my try: Imports Emgu.CV Imports Emgu.Util Imports Emgu.CV.Structure Imports Emgu.CV.OCR Imports Emgu.CV.UI Imports Emgu.CV.CvEnum Public Class Form1 Private Sub Button1_Click(sender As ...
common-pile/stackexchange_filtered
Problem getting methods in JavaScript from Java Spring Boot model objects I am trying to build an application using Spring Boot (Java 15, Spring Boot 2.4.2) and Thymeleaf (version 2.4.2), which would allow me to add some electronic parts to database and generally use the database in an accessible way. One type of those...
common-pile/stackexchange_filtered
discoverSchema converts the column names to small case from camel case in loopback disoverSchema function in loopback converts all the camel-cased column names to small-case. After reading a bit I found out its loopback-datasource-juggler which is responsible for this. Also, I read that its possible to preserve the nam...
common-pile/stackexchange_filtered
Updating a Matplotlib plot with user imput Once again I am in need of aid... I am very new to python and I am trying to plot the Mandelbrot set in a GUI. Currently I am working on a function where I can change the colors in which the fractal is rendered in. The problem is that I cant figure out how to replace the old p...
common-pile/stackexchange_filtered
Set localhost port fixed/static for project debugging in vs2015 l am using Asp.Net Maker 2016 for generating my project. So, l browse my project via vs2015. The problem is after I generate my project from Asp.Net Maker tool and open it in vs2015, the URL of my project is changed. something like : http://localhost:5162...
common-pile/stackexchange_filtered
Create custom lead button to look up that leads url in the search box At my old company we had a custom lead button that read "Who's Working?" When you clicked the button it would run a search for url from the leads email. The point was to see all the stuff going on at that account so reps wouldn't step on each-others ...
common-pile/stackexchange_filtered
QLPreviewController playback video I've found strange behaviour on the QLPreviewController modal where Im trying to preview a video and QLPreviewController carries on playing a video after I've dismissed the modal via the "done" button which is provided by default. Any ideas on why this could be happening or how I can ...
common-pile/stackexchange_filtered
Executing Child Component Function from Parent Component Problem: I'm facing an issue with executing a function from a child component when triggered by an event in the parent component. Here's a breakdown of my situation: I have a React application with two components: ParentComponent and ChildComponent. In ChildCompo...
common-pile/stackexchange_filtered
VSeWSS 1.3 created web part solution not adding SafeControl entries We have several VSeWSS 1.3 projects that add web parts to SharePoint. We have a problem with one of the projects in that it does not add SafeControl entriees for the web parts when deploying. It also deploys the solution Global. I have looked add the s...
common-pile/stackexchange_filtered
remove a bunch of rows by rownames - how do I initialize a null string in R? I have this sparse-matrix I named N: 4 x 4 sparse Matrix of class "dgCMatrix" C1 C2 C3 C4 V1 . 3 5 2 V2 . 5 1 . V3 . . . . V4 . . 4 . I'm trying to remove rows that have two or more missing values. I expect to end up with t...
common-pile/stackexchange_filtered
Hyperlink color in firefox changes depending on URL I am new to html and css. I have 2 links one after the other. I have set the a:link and a:hover classes in css. The second link has a purple link color, where it should be silver. They both have a gold hover color which is as it should be. The second link color is cor...
common-pile/stackexchange_filtered
Bail bond mission GTA 5 I was doing the bail bond mission with Trevor and found the second character Maude requested but on engaging his gang members i accidentally killed him, I know there is a way to replay all the main missions, strangers and freaks etc but is there a way to replay this bail bond mission? Unconfirm...
common-pile/stackexchange_filtered
Dense, codense, finite subcategory I found in some lecture notes a statement, that there exists an inclusion of full subcategory $\mathcal C \hookrightarrow \mathcal D$ which is both dense and codense, and moreover $\mathcal C$ is finite and $\mathcal D$ is large, however no example were given, so I'd appreciate to see...
common-pile/stackexchange_filtered
Model properties not filled on jquery Ajax post I have a strange issue doing an ajax post. The data is sent to the request, but for some reason the data does not arrive in the controller function. This is my post function: $.ajax({ type: 'POST', url: url, contentType: 'application/x-www-form-urlencoded; cha...
common-pile/stackexchange_filtered
splitting a string with some kind of whitespace I've got the following code: $output2 = 'text

more text

ja'; $explode = explode('

', $output); This works fine and the $explode array prints the following: Array ( [0] => text [1] => meer text [2] => ja ) Ho...
common-pile/stackexchange_filtered
Asp.Net Core [FromRoute] auto url decode If we have such controller endpoint in Asp.Net Core: [HttpGet("/api/resources/{someParam}")] public async Task<ActionResult> TestEndpoint([FromRoute] string someParam) { string someParamUrlDecoded = HttpUtility.UrlDecode(someParam); // do stuff with url decoded param... ...
common-pile/stackexchange_filtered
Can I use the water that collects on our large pool cover? My wife and I have a large inground pool that we winterize and cover all winter. It collects a hefty sum of water and other organic material all winter and in the spring I end up pumping this bog water off into the yard and shoveling the solid stuff onto the br...
common-pile/stackexchange_filtered
Google Play Game Services C++ SDK does not find NativeSdkEntryPoints java class The Google Play Games Services works well, but there comes following error after creating GameServices object. I'm using SDK with cocos2d-x. Java Activity is initialized within JNI_OnLoad. Creating the GameServices object is initialized as...
common-pile/stackexchange_filtered
How do I get the cartesian product of 2 vectors by using Iterator? I have 2 Vecs: let x = vec!['1', '2', '3']; let y = vec!['a', 'b', 'c']; Now I want to use iterator to make a new vec like this ['1a', '1b', '1c', '2a', '2b', '2c', '3a', '3b', '3c']. How can I do? Why not simply two loops, one inside the other one ? ...
common-pile/stackexchange_filtered
Error after exporting and building a tensorflow graph After i trained a model successfully, exported the graph with the freeze_graph.py and built it with the customized /tensorflow/examples/label_image/main.cc using bazel, i am getting following runtime error. Running model failed: Invalid argument: Matrix size-compati...
common-pile/stackexchange_filtered
Does IPv6 Prefix Delegation work with SLAAC, without the need of a DHCPv6 server/client? All the (cisco) documentation I found about this topic always uses a DHCPv6 server or client to configure Prefix Delegation. But I never read that this is a requirement. Can Prefix Delegation be configured without a DHCPv6 server o...
common-pile/stackexchange_filtered
New ceiling light works does not work I have an old ceiling rose configuration and tried connecting a new chandelier 5 bulb style light but it keeps tripping the mains when I try to turn it on. The electrician I first had out said there was a fault with the new light so I got a new one. Same thing. I've put the ceilin...
common-pile/stackexchange_filtered
Angular 2 AsynPipe isn't working with an Observable I'm getting the following error: EXCEPTION: Cannot find a differ supporting object '[object Object]' in [files | async in Images@1:9] Here's the relevant part of the template: <img *ngFor="#file of files | async" [src]="file.path"> Here's my code: export class Image...
common-pile/stackexchange_filtered
Why can't I access objects through the window object when using jQuery? I'm trying to access a function through the window object. In my code, my function gets referred to by a string so I have to use the window object (or eval) to grab it. I tested out my code in pure JavaScript and it works perfectly. But when using ...
common-pile/stackexchange_filtered
VS.NET - Add in for automatically formatting C# code Is there any VS.NET add in for formatting C# as you type based on the given rules? Except for ReSharper, as it does so many other things and slows down VS.NET due to that, so I'm looking for a light add-in just for code formatting. I just came across codemaid a few ...
common-pile/stackexchange_filtered
BluRay-R, DVD+R, DVD-R I am presently saving data on DVD+R was always told to use +R, but never knew why. I am looking into possibly upgrading to BluRay, but can only find -R writable discs: What is the difference between +R and -R, and why are there no +RW BluRay discs? I can only find 25GB writable discs, but there...
common-pile/stackexchange_filtered
CORS policy blocks XMLHttpRequest With Ionic Angular running in on my localhost I made this call to my Django backend (running on different localhost): test() { return this.httpClient.get(endpoint + '/test', { headers: { mode: 'no-cors' }, }); } And on the backend side I have following code to respon...
common-pile/stackexchange_filtered
Python NOOP replacement Often I need to temporary comment some code, but there are situations like the following where commenting a single line of code will get a syntax error if state == False: print "Here I'm not good do stuff" else: # print "I am good here but stuff might be needed to implement" Is there so...
common-pile/stackexchange_filtered
Changing the quality of icons on leaflet I'm creating a map with the leaflet package for R but I feel a bit disappointed with the quality of the icons and would like to improve it. I'm using free png icons from The Noun Project. The pngs look just fine but when plotted, they lose their "smoothness" and look low quality...
common-pile/stackexchange_filtered
Using AddIpAddress()/DeleteIpAddress() with info from GetAdaptersAddresses() I need to change the IP address and submask of a specific network interface from a C/C++ program. In Windows documentation, I have found that I should use AddIPAddress()/DeleteIpAddress() from the Windows API. However, DeleteIpAddress(), for i...
common-pile/stackexchange_filtered
ValidationMessage already triggered when loading the view When I load a view all the validation messages are already triggered, so it won't stop me from submitting to POST if leave all the values as null View (shortened): @model MyProject.ViewModel.VentasViewModel @{ Layout = null; } @using (Html.B...
common-pile/stackexchange_filtered
How to refresh as well as savstate of datatable when status is updated in laravel In my project, I want to refresh as well as savestate of the data table (datatable saveState) while updating the status in Laravel, the status is getting updated into the database but the data table is not refreshed nor the savestate is d...
common-pile/stackexchange_filtered
cant set the size of a multi line text box mvc can anyone tell me why this wont work ? no matter what I use for cols & rows, the text box is always the same size @Html.TextAreaFor(model => model.Report.EmailMessage,new { htmlAttributes = new { @class = "form-control", @cols = 100, @rows = 20 } }) You can remove the ht...
common-pile/stackexchange_filtered
How can I expand my current setup? I currently have an HTTP server running on a single machine (it runs Ubuntu Server Edition, if that helps). In the past that has been sufficient, but as traffic has grown I have begun to need more power and storage space. I have a second machine, and have installed Ubuntu Server Editi...
common-pile/stackexchange_filtered
Need to add values into existing rows and columns I have a table called CUSTOMERS with 5 columns and 3 rows: LAST_NAME, FIRST_NAME, ADDRESS, CITY, ORDER_PRICE and I keep screwing it up and having to delete new rows I create because I'm unsure how to insert into the ORDER_PRICE column, values for rows 1 2 and 3. i've tr...
common-pile/stackexchange_filtered
Leaflet fitBounds issue on mobile/small viewport I've been running into some odd issues with Leaflet's fitBounds method that only seem to occur when I test it in a mobile-sized browser window (either on a mobile device or a desktop). I am giving fitBounds a southwest corner and a northeast corner corresponding to two m...
common-pile/stackexchange_filtered
Sequence Strategy for MYSQL not working (EclipseLink, Glassfish) Sequence Strategy for MYSQL not working I have an Id defined in my entity: @Id @GeneratedValue(strategy = GenerationType.AUTO) private int id; When persisting an entity I get the following error. I checked several hints, but noone worked for me. Exceptio...
common-pile/stackexchange_filtered
Is it correct to say : "Can you confirm this email reach you properly ?" When I write an email to someone, I like to get a confirmation that the guy in front received and read properly my email. So I'd like to know if : Can you confirm this email reach properly. Is it correct? I'm not sure, but I think you're perhap...
common-pile/stackexchange_filtered
PostSharp 1.5 and .Net 4 Postsharp is great, but only the 1.5 version is still opensource. Does it work with .net 4.0? If not, are there any other good AOP weavers out there? I'm not interested in the proxy type. Why not use the community version of Postsharp 2.0? To answer my own question: PostSharp 1.5 does appe...
common-pile/stackexchange_filtered
JTS Geometry.intersects() method produces infinite loop I'm trying to check whether a Multipolygon intersects with which Polygon in a list, using JTS library. However, the method stucks in an infinite loop and end with an out of heap space error. The method works fine for pairs that apparently don't intersect. The infi...
common-pile/stackexchange_filtered
GIT says I have no commits in repo -- how to recover? Using Win7, 64-bit. I use the GitExtensions GUI, which has been working fine for 3 months. Today I did a commit, immediately pushed to my server repo, and shut down. When I powered back up later in the day and tried to do another (local) commit, GitExtensions told ...
common-pile/stackexchange_filtered
Is it possible to use 1 html file to view different items on different pages? I am currently in the process of creating a website for a small enterprise. I made a nav item called "Collections" where it is divided into various categories for the type of products that will be sold (Rings, Bracelets etc). And then Under "...
common-pile/stackexchange_filtered
Renamed image does not appear in imageView After renaming an image with this code: String path = "/storage/emulated/0/Download/"; File from = new File (path, "old.jpg"); File to = new File (path, "new.jpg"); from.renameTo (to); String newpath = to.getAbsolutePath(); If I try to open the gallery and select the same ima...
common-pile/stackexchange_filtered
Calculating score for a level with time and lives variation I am developing a game where based on steps to be performed in a particular level, time and lives are pre-calculated. As the level gets completed, remaining lives and time are retrieved. Calculating score based on remaining time and lives will not work in this...
common-pile/stackexchange_filtered
Terminate compound statements in IPython I am new to python (and programming), so please forgive me if I don't follow the correct nomenclature. It makes finding answers to even the most trivial questions hard. Thanks! In IPython I typed the following: for i in s: print([s:i] The white space was added by IPython au...
common-pile/stackexchange_filtered
In Microsoft Outlook 2016, immediately mark an new email as read In Outlook 2016 and in Folder view Pane, when I receive a new e-mail and I'm reading it as follows: It's not immediately marked as read until I click on another e-mail or I press CTRL+Q. How can I change this? You can specify the seconds it takes to mar...
common-pile/stackexchange_filtered
Is the real-imaginary Schanuel's conjecture equivalent to the full Schanuel's conjecture? Schanuel's conjecture says the following about the transcendence of numbers related by the complex exponential function: Given any $n$ complex numbers $z_1, ... z_n$ that are linearly independent over the rational numbers $\mathb...
common-pile/stackexchange_filtered
Whats the best Windows Server platform to run Apache / PHP / MySQL? Anyone out there running this setup ? What is the best Windows Server setup to keep it running smooth ? Thans Er... Linux? For stability, freeness and betterness. 'nuf said. For production? VMWare and LAMP? Did you take a look at how to solve the sec...
common-pile/stackexchange_filtered
How do you hide a hidden list? If you set the SPList.Hidden property to true, the list isn't shown in the Quick Launch, All Site Content, Lookup lists, etc. However, it is still possible to navigate to the list by typing in the list's URL, or by using an old bookmark. So how do you actually hide a list, so that it won'...
common-pile/stackexchange_filtered
Composite ViewModels in a WPF application I came accross the following situation: I have 2 view models and a single view which contains 2 user controls on which the view models will be bound to. The first VM is a Search functionality which returns a list of Persons, and the second VM is a more detailed description of e...
common-pile/stackexchange_filtered
JavaFX: How to add calculated Integer value to TableColumn I have a bill table where I want to list all products which are on the bill. I saved the ProductInBill objects within an ArrayList<ProductInBill> on the bill. When I created a TableView my common approach is to create the JavaFX fields. On the controller class...
common-pile/stackexchange_filtered
How to confirm a radio button selection with an alert box So i have this code: <html> <head> <title>Form</title> <script type="text/javascript"> function showConfirmationDialog() { var textbox = document.getElementById('textbox'); var location = document.getElementById('location'); alert('You chosen:'+'\n'...
common-pile/stackexchange_filtered
Why do I get reference error for fetch when I do unit tests using Jest? I'm new to unit tests using Jest but basically I have a file client.js looking like this: function add(a, b) { return a + b; } const fetcher = () => { return fetch('http://localhost:3000/').then(res => res.json); } module.exports = {add...
common-pile/stackexchange_filtered
What's the best CSS property for detecting browser support for selectors I'm writing some Modernizr extensions to detect browser support for things such as :first-child, :last-child in CSS. In order to do so I'm applying a style and then checking to see if teh element has that style. What's the most-reliable CSS proper...
common-pile/stackexchange_filtered
How to compute the size of the allocated memory for a general type I need to work with some databases read with read.table from csv (comma separated values ), and I wish to know how to compute the size of the allocated memory for each type of variable. How to do it ? edit -- in other words : how much memory R allocs f...
common-pile/stackexchange_filtered
lazysizes need to work for only device width. not for device height I have a problem with https://github.com/aFarkas/lazysizes <img class="figure-image lazyload" src="{{ image.src|resizeDynamic(800) }}" srcset="{{ placeholderImage(800, 800 / image.aspect) }}" data-srcset=" {{ image.src|resizeDynamic(1...
common-pile/stackexchange_filtered
Look up value from array in another array, and then match a second value Google Apps Script Javascript JSON API I'm importing data from my crm Pipedrive into Google sheets using Google Apps Script. This is part of a larger process but I'm at an impasse with this section of the script. I need to return a value by matchi...
common-pile/stackexchange_filtered
Can we find upper bound for loss functions? Is it easy to find upper bound for loss functions like 0-1 loss and hinge loss ?!. I always find this sentence, which is "hinge loss is an upper bound of 0-1 loss", Can we compute the upper bound of convex loss functions?!. Does convex loss function have upper bound?! if yes ...
common-pile/stackexchange_filtered
Changing UK visa appointment date I am applying for a UK standard visitor visa from Egypt through TLScontact Cairo Visa Application Centre. I booked my appointment for 28 June 2018. I have some personal circumstances that will prevent me from attending on this date. I have contacted UK Visas & Immigratio,n asking if I...
common-pile/stackexchange_filtered
Launching Activity from PendingIntent singleTop not working I have a PendingIntent set as the contentIntent inside of a foreground notification and this PendingIntent should launch the last running activity with singleTop so that another instance of the activity is not created. The issue I am having is that when Don't...
common-pile/stackexchange_filtered
Run commands in Docker during run process I want to be able to run a docker run... command for my custom Ubuntu command where the docker will run two commands as if they were typed once the docker begins running. I have my docker mounted to a local folder and have a custom code within the mounted folder, I want running...
common-pile/stackexchange_filtered
Amplifying current for PWM load My load requires a PWM wave input with at least 5 mA and 5-15 V but my controller can only provide up to 2 mA. My first thought was to use two NPN transistors like this. I used two so that the PWM input was not inverted. But the voltage and current provided to my load would depend on th...
common-pile/stackexchange_filtered
SQL - How to convert columns to rows I have the following SQL script: DECLARE @Month AS INT = 5 --Set the MONTH for which you want to generate the Calendar. DECLARE @Year AS INT = 2015 --Set the YEAR for which you want to generate the Calendar. DECLARE @StartDate AS DATETIME = CONVERT(VARCHAR,@Year) + RIGHT('0' + CONVE...
common-pile/stackexchange_filtered
make subdomain have a namespace as root? Would it be possible to have a namespace to be the root for a subdomain in rails 3? Currently my routes are: namespace :mobile do resources :home resources :profiles root :to => "/mobile/home#index" end constraints subdomain: 'm' do root :to => 'mobile/hom...
common-pile/stackexchange_filtered
Unable to install R package When I tried to install the package coxphf, the following error appeared. Please let me know how to solve this: install.packages("coxphf") > Installing package into ‘C:/Users/User/R/win-library/3.4’ > (as ‘lib’ is unspecified) > trying URL 'https://cran.rstudio.com/bin/windows/contrib/3...
common-pile/stackexchange_filtered
Update using select query with multiple Rows in Oracle Can any one please help me to solve this issue Table Name:RW_LN LN_ID RE_LN_ID RE_PR_ID LN001 RN001 RN002 LN002 RN002 RN003 LN003 RN003 RN001 LN004 RN001 RN002 MY Update Query is: ...
common-pile/stackexchange_filtered
php - array - Illegal string offset I am trying to display single value from array of values. If I use print_r($arr) it shows this values { "a": 14, "b": 3, "c": 61200, "d": [ "2014-04-22 12:00:06", "2014-04-23 12:00:06", "2014-04-24 12:00:06" ] } But when I tried to use ec...
common-pile/stackexchange_filtered
How to change text in another div by clicking on different icons I'm mainly an inbound marketer, but I'm good at HTML and CSS. My knowledge doesn't go beyond these two. I'm currently building a homepage for my business. I'm stuck at this point. I have the main homepage with six icons which represent a different benefit...
common-pile/stackexchange_filtered
Target only one element with Angular I have a little problem with Angular, but I really don't find any solution. I have a ngRepeat with several elements. One of them, a simple button, had to change color on click. But if I click on it, other buttons change color too. How can I target only one ? In my Controller :...
common-pile/stackexchange_filtered
Predictive distribution Reading Bishop's book, I was trying to prove eq 2.19. I have seen this and this and I understand how $$p(x=1|D)=\int_0^1p(x=1|μ)p(μ|D)dμ$$ My question is in the second part. How does $$\int_0^1p(x=1|μ)p(μ|D)dμ=\int_0^1\mu p(μ|D)dμ$$ In other words, how does $p(x=1|\mu)$ equal to $\mu$. What is ...
common-pile/stackexchange_filtered
MFMailComposeViewController delegate method not working in iOS 16.0 or above device when device orientation is in portrait mode I present MFMailComposeViewController on top of another viewController and that viewController support both landscape and portrait orientation. Here is the way I tried if MFMailComposeViewCont...
common-pile/stackexchange_filtered
Show that any subset of $(\mathbb{N},d)$ is open and closed Show that any subset of $(\mathbb{N},d)$ is open and closed, where $$d(m,n) = \frac{|m-n|}{1+|m-n|}$$ my attempt: let $A \subset \mathbb{N}$ then for any $x \in A$ we have that $B(x,1/3) = \{x\} \subset A$ Hence $A$ is open. (here $B(x,1/3)$ is the open ball c...
common-pile/stackexchange_filtered
Grails hbm2ddl.SchemaUpdate Unsuccessful error when i am running my grails application i am getting schemaUpdate fail error; hbm2ddl.SchemaUpdate Unsuccessful: alter table lifecycle add index FKEDFAE76ABF1565B0 (round_up_emailed_updated_by_id), add constraint FKEDFAE76ABF1565B0 foreign key (round_up_emailed_upd...
common-pile/stackexchange_filtered
ax.get_position wont give me position of all plots on multiple subplots I am trying to overlap a matrix of subplots. The code I am using is: fig, axes = plt.subplots(ncols =2, nrows = 2, figsize=(8,8), sharey=True, facecolor = "#FFFFFF", subplot_kw=dict(polar=True) ,constrained_layout=True) fig.tight_layout(h_pad=-5) ...
common-pile/stackexchange_filtered
Add var +1 to Label on button press (kivy) Source func - add_click add +1 to self.click to Label (self.RightBar) by press button I write a function for the game (clicker), the essence of which is that by pressing the button in the label a counter was added. def add_click(self, instance): self.click += 1 ...
common-pile/stackexchange_filtered
Bootcamp - Stuck on "Partitioning Disk..." When attempting to add a Windows 10 (April 2018, build 1803) partition to my 2019 iMac, I get stuck on "Partitioning disk..." perpetually. When I look at Disk Utility, the OSXRESERVED and BOOTCAMP partitions appear: My iMac is running the latest stable release of macOS, 10.1...
common-pile/stackexchange_filtered
How should we deal with incorrect comments? On this site, there is a tendency for users to answer questions with terse comments. It's especially prevalent for low quality questions which are in danger of being closed. Recently, I've been noticing a lot of comments that are misleading or downright incorrect, especially ...
common-pile/stackexchange_filtered
How can I turn an op address into the right kind of B::OP? In a running Perl program if I have an Op address (either by B::Concise, Devel::Callsite or via mysterious other ways) is there a simple way to cast that into the right kind of B::OP, short of walking an Opcode tree? To try to make this clearer, here's some cod...
common-pile/stackexchange_filtered
Pandas, I get dataframe full of nan when reading from xlsx I am reading from an Excel file ".xslx", it's consist of 3 columns, but when I read from it, I get a DF full of nans, I checked the table in Excel, it consists of normal cells no formulas no hyperlinks. My code: data = pd.read_excel("Data.xlsx") df = pd.DataFra...
common-pile/stackexchange_filtered
How can I run the same python script in parallel started from a cron job? I have a watchfolder where files are dropped. Via a cronjob I start a python script that first checks for new files. def file_to_process(): filePath = "".join([base_url_gpfs, '/*']) if glob.glob(filePath + "*.xml"): set_pid_file(...
common-pile/stackexchange_filtered
SED with variable that migth contain " / " I have this code: echo $content | grep -o '<a href="[a-z]\+[^>"]*' | sed -ne 's/^<a href="\(.*\)/\1/p' | sed -ne 's~/^http[s]*:\/\/*\(.*\)/\1/p' | sed -ne "s;/\([^/]*\)\/\(.*\)/$1:::$2:::\1:::\2/;p" If you look at the last sed command, you can see the variable $2. And the $2...
common-pile/stackexchange_filtered
Cardinality of a subset of an ordinal Let $\alpha$ be an ordinal number. How can I show that every subset $x$ of $\alpha$ has either the same cardinality as $\alpha$ or there exists an cardinal number $\beta$ such that $|x|=\beta < |\alpha|$? First prove that if $x\subseteq\alpha$, then there is an ordinal $\beta\leq\...
common-pile/stackexchange_filtered
Interface in method signature inside interface definition I want to have something like this: type MyInterface interface { MyMetod(interface{}) } and to have the type type MyType struct {} with method func (mt *MyType) MyMethod(SomeConcreteType) { // body } implementing MyInterface. But it seems that Go can't...
common-pile/stackexchange_filtered
Java realm and secured request I'm developing a game with separated and isolated universes (like ogame for those who know this game). One player (account) is associated with one universe but one player (physical) can create one account per universe. So a player can login to multiple universes and switch universe when h...
common-pile/stackexchange_filtered
Vaadin - generate table dynamically I have a Vaadin application. One of it's components is a table. I need a possibility to add as many columns as the user wants (well, let's say max. 20 at the moment) to that table. At the beginning, there are 5 colums, so in fact the user can add column 6 - 20. However, after doing "...
common-pile/stackexchange_filtered
Android Wifi Manager network switching not working In my application I have to show list of access points and then connect to a selected network. When the app is launched and a network is selected the connection goes through and the selected network is also reflected in the phone settings->wifi. But when I try to switc...
common-pile/stackexchange_filtered
Google Street View Black Screen I am trying to put a Google Streetview Panorama instance inside of a tab inside of an offcanvas element using Bootstrap 5. If the default tab is the tab that contains the Streetview everything works fine as is demonstrated here: https://codepen.io/taylormhicks90-the-bold/pen/OJxxqQN If I...
common-pile/stackexchange_filtered
Dynamic single-line printing in Python (time?) I'd like to make a simple clock (CLI) that prints the time into one line, and updates it every second. Is this even possible? Should I just print a new line every second? This is what I have at the moment, which functions terribly: import calendar, time a = 1 while a == 1...
common-pile/stackexchange_filtered
The Duchess of Cambridge has been delivered of a son Recently the Duchess of Cambridge gave birth to a healthy baby boy. The announcement from Buckingham Palace said "The Duchess of Cambridge has been delivered of a son." This struck me as a very odd grammatical structure that I don't quite understand. Of course I unde...
common-pile/stackexchange_filtered
Javascript ES6 "not a function" error I have been working on a bunch of JavaScript tutorials that are using some ES6. So far two of the lessons have been throwing the same error, and being new to JavaScript I'm still trying to understand the logic, and so not very good at debugging. I have tried using Babel to convert ...
common-pile/stackexchange_filtered
How to check user status on my app? In App Billing I´m implementing In app Billing on my app, which let the user go to a "premium version of the app". In the premium version of the app the user will be able to click 3 buttons and use their functions. But that is not the problem. The problem is how to check if the user ...
common-pile/stackexchange_filtered
Problem with Copy Pasting Array Formula in VBA I am trying to put a vba formula which helps me find the median for a range of cells if these values pertain to a paricular category. Here is the sheet sample with data: This is the code i want to put in Cell B2 and then be able to drag it down till B7: =MEDIAN(IF(F2:F100...
common-pile/stackexchange_filtered
react-router-dom match object isExact false I am working on a react project. I try to access the url parameters in the Header component. However, it always returns empty. import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { ConnectedRouter } from 'connected-react-router' import SamplePa...
common-pile/stackexchange_filtered
Add delay constructing a Future Playing with Dart, is it possible to create a delay constructing a Future?: Future<String>.value("Hello").then((newsDigest) { print(newsDigest); }) // .delayed(Duration(seconds: 5)) Yes, this is possible: factory Future.delayed(Duration duration, [FutureOr<T> computation()...
common-pile/stackexchange_filtered
How can I perform a case-insensitive filter on a JTable? I am making a table with a text field below it where you can type in a word to filter the table. It works, but what I want to do is be able to filter it with the word typed in, but ignoring the case of the word. Is there a way to accomplish this without creating...
common-pile/stackexchange_filtered
Security difference between webmail access and desktop email client? Is there a difference in privacy and security between webmail access and desktop email clients? Is one inherently more secure than the other? Is it more secure to use an email service that does not offer webmail, but only access via IMAP, POP, SMTP in...
common-pile/stackexchange_filtered
According to the Catholic Church, what marks a document as Scripture? Not much to ask beyond the title, but the thing I'm trying to get at here is how the Church determines what is and isn't scripture. Does the church have markers they try to follow? The Canon of Holy Scripture was infallibly fixed by the authority of...
common-pile/stackexchange_filtered