Recent Questions - Stack Overflow |
- Insert text into Microsoft Access data base
- How to restrict Release Deployments during office hours in Azure DevOps?
- sum of the same words in list Python
- How do I set a hostname of a new Win10 instance being added to an AD domain using Terraform? Was working....now not working
- kubernetes pods are terminated and restarts by CrashLoopBackOff
- Connect to hidden WiFi "network", transmit data and reconnect to original network
- using await fetch in flask
- Where is the dll file for the rlang package?
- Find the Twitter text box element with python selenium
- How to get double nested data with gorm?
- How to upload .xlsx file successfully
- How can I ignore all of the rows that come before a successful login in mysql?
- Cannot handle Unhandled Promise Rejection using try-catch
- I'm trying understand some code and how it works but when it runs nothing shows up
- append column values to row pandas
- Triple dot CSS animation on a loading screen
- How to determine the best number of threads for I/O in an application
- Flask - CGI - need to fix issues with htaccess
- Google Sheets keep max value constant
- POST method problem in php in trying to create CRUD
- Javascript file blocked by a corporate firewall
- How to get params and query params from url in angular 9
- How to debounce ajax requests in typeahead.js
- Openpyxl copy and paste as values in new workbook
- Laravel Eloquent - querying Transactions on the bases of months
- How can I install a pecl extension like mcrypt in DDEV-Local's web container?
- How to store data from Google Ngram API?
- Why is composer not using my repository fork for a package?
- Word wrapping in phpstorm
- Exceeding Max Char Limit in Excel
Insert text into Microsoft Access data base Posted: 19 May 2021 08:15 AM PDT I have a simple test mdb https://dropmefiles.com/tU0BG and html document https://dropmefiles.com/wezmb, I read some text between tags and then I want to insert it into my mdb column here is the code: So, how can can I get the value from |
How to restrict Release Deployments during office hours in Azure DevOps? Posted: 19 May 2021 08:15 AM PDT In Azure DevOps we only want that Release Pipelines are allowed to being manually triggered for deployment by engineers from 0:00 AM to 8:00 AM (for example) on workdays. Anything outside that timeslot needs to be disallowed, unless there is a critical issue going on, in this case the engineers should be able to ignore/exclude/omit the timeslot. Is there a way to restrict deployments for Release Pipelines in Azure DevOps? |
sum of the same words in list Python Posted: 19 May 2021 08:14 AM PDT For example I have a list with this words: I need to get a numbers of x and y (in this case - five "x" and two "y", because I have to use it this integers to my next calculations. Thank you. |
Posted: 19 May 2021 08:14 AM PDT I created a terraform to build a variable number of Win10 instances in an AWS VPC and used a user-data powershell script to set the domain and hostname. It worked up until a few weeks ago. Now, the domain sets properly, but the hostname won't set. I updated to 0.15.3, but continue to have the issue. here is my terraform: I tried it with and without quotes around the domain and hostname....still not working... any assistance is appreciated! |
kubernetes pods are terminated and restarts by CrashLoopBackOff Posted: 19 May 2021 08:14 AM PDT I create pod image from docker hub and the status is unavailable. Never starts and restarts with error CrashLoopBackOff: rancher-v2.4.9 % rancher kubectl get pods -n lorawan NAME READY STATUS RESTARTS AGE lorawan 0/1 CrashLoopBackOff 6 10m cockroachdb 0/1 ContainerCreating 0 10s please advice |
Connect to hidden WiFi "network", transmit data and reconnect to original network Posted: 19 May 2021 08:14 AM PDT I have very little experience with non-embedded programming, so i wanted to do a sanity check before I go down this path. Basically just need to know whether the titular line of actions are possible to do as a 1-click solution in Windows:
I am not looking for someone to make this for me, I just need to know whether i have to change approach :) To clarify a bit, the fans on my Lenovo Legion y530 is a pain in my backside, and there doesn't seem to be a way to fix it in software/bios. So i have decided to make a small, non-intrusive ESP8266 based board that goes between the fans and motherboard, to smooth out the changes in fan-speed, and force the fans to stay above certain speed. My problem is, i want to be able to adjust this minimal fan speed, as well as the size of the averaging on the PWM signal from the motherboard, so i need to be able to communicate with the ESP8266, without modifying existing hardware on the laptop (and without having to take it apart). I could go with an ESP32 and use bluetooth, but that would quadrouple the hardware cost, so rather use the 8266. |
Posted: 19 May 2021 08:14 AM PDT I'm trying to use await fetch in JS to use a function that I created in Flask. My code for the JS is: and my code in flask is: why does this not work? to be specific to causes the website to have a 400 bad request. |
Where is the dll file for the rlang package? Posted: 19 May 2021 08:14 AM PDT Perhaps an odd question but I've deleted the entire rlang folder in my R packages folder and am still seeing the same error message when I try and install the package via install.packages("rlang"): The DLL version does not correspond to the package version. Please update rlang to the latest version. I'm on Windows. I've read various threads on this topic and have followed the suggestions as far as I can - I'm using Windows on a work laptop and don't have access to the C:/ drive. My packages folder is on a drive I can access |
Find the Twitter text box element with python selenium Posted: 19 May 2021 08:14 AM PDT I made my own Twitter complaint bot that tweets at my ISP if the network drops. Code works perfect, until it has to find the Twitter textbox to type the tweet. Main error is: I have tried:
When I comment out the first function call to test, it will find and type 6/10 times. But when both functions are called the tweet_at_provider() always fails at grabbing the textbox and I get the StaleElement error. |
How to get double nested data with gorm? Posted: 19 May 2021 08:14 AM PDT I am developing an application that manages quotes using go and gorm. Users create quote, quotes have multiple tags, and users can add quotes to their favorites. I want to get a list of quotes that a user has added to their favorites. And at that time, I want to get the tag attached to the quotes. Here is my data models. I tried the following and got the favorite quote, but the tags was null. Is there a way to do this with gorm? Thank you in advance. |
How to upload .xlsx file successfully Posted: 19 May 2021 08:14 AM PDT I'm trying to upload an .xlsx file using Karate and after dozens of hours spent on that.. I give up. Here is a piece of code I'm using. This is one of hundreds versions of it, but I'm putting just this one, because every time the result is the same. Uploaded file has 0 B size... I have read and applied suggestions from all over the internet (of course including examples from Karate docs) and each and every time I have exaclty the same result - 0 byte file on the server. In a few of threads here, I saw comments that for 'thousands' of Karate users it works, so I'm kindly asking one of you to share some real-world working example of successfull .xlsx file upload. |
How can I ignore all of the rows that come before a successful login in mysql? Posted: 19 May 2021 08:14 AM PDT In order to block a user in my application after a certain amount of failed attempts, I'm using this query: This counts how many failed attempts the user has got in 30 minutes. The thing is that if the user does a successful login and then log out and then make another failed attempt, his user will be blocked. This is a pretty rare scenario but still an unwanted behavior. How can I ignore all of the rows that come before a successful login? Succesfull login saves in this table as a 'succesfull' on d_accion. Table binnacle has the following columns: |
Cannot handle Unhandled Promise Rejection using try-catch Posted: 19 May 2021 08:14 AM PDT Hi I just downloaded ytdl-core module and I am encountering a Promise Rejection which I cannot handle! Can anyone please help? Here is the code I wrapped the whole thing in a try catch block but still cannot handle the Promise Rejection Any pointers is Appreciated. Here is the stacktrace if this helps: I know I provided an invalid quality param and that is intentional, I want to handle this rejection in my code |
I'm trying understand some code and how it works but when it runs nothing shows up Posted: 19 May 2021 08:14 AM PDT here is the code in question. I have been trying to figure this out to no progress if anyone has even a slight clue about what I should do please let me know. |
append column values to row pandas Posted: 19 May 2021 08:13 AM PDT I have this df and am trying to copy or move the b,c to new columns in row one. I've tried But there may not always be three rows in the This has been my last attempt. I don't remember exactly what I tried with |
Triple dot CSS animation on a loading screen Posted: 19 May 2021 08:14 AM PDT I have a simple loading screen where I would like to have one dot appear at a time at the end of the text. Unfortunately I can only get them to blink, when I would like for one to appear at a time and then start over. I am currently using a fade in animation that looks like the following: Here is a sample of what I have: As you can see, currently, it does show one at a time, but then just has all three of them blinking. How could I make them show one at a time, and then start over? Thanks! |
How to determine the best number of threads for I/O in an application Posted: 19 May 2021 08:14 AM PDT I'm writing an application that will run on a Windows Server with 6 cores. Big picture -- 10,000 users attempting to access the same files on a disk with read/write operations. 10,000 users are queued into a certain number of "Access Threads". These access threads are queued into a single "Disk Access" thread. Besides a WAG - how to determine what a "good" number (X) of "Access Thread" should be used? I stated that the computer has 6 cores but I'm not sure that would impact the number since the whole application is 80% disk access and 20% data processing. What are the potential trade-offs I should consider to implement 10,000 to one --- OR ---- 10,000 to X to one -- and if the later is true what should X be? I'm using C++ as the language. Thanks for any insight. Several comments about overlapped IO I should clarify on. The application is NOT centered on single disk access (as IO) but one acquiring data from multiple disk files - process that data (differently for each "Access Thread" and returning a "package" of resultant data. I'm sorry I did not clarify this as the comments appear to be treating "Disk Access" as the main question |
Flask - CGI - need to fix issues with htaccess Posted: 19 May 2021 08:14 AM PDT So I have successfully deployed a Flask app using CGI. In order to get the app working, my .htaccess file had to look like this: However, I am facing a couple of issues.
I'm not sure if the above two issues are related, but I'd like to fix both. |
Google Sheets keep max value constant Posted: 19 May 2021 08:14 AM PDT |
POST method problem in php in trying to create CRUD Posted: 19 May 2021 08:14 AM PDT I'm trying to create a CRUD data grid with php it is very simple but facing a problem with POST method every time I refresh my page it enters my previous data. Im trying to learn php i have basic knowledge of different languages like c# and java. Kindly answer me as soon as possible. here is my code : home.php : This the the process.php : |
Javascript file blocked by a corporate firewall Posted: 19 May 2021 08:14 AM PDT We have a site where we're using zxcvbn by Dropbox to inform users of their password strength, however, we've been getting occasional reports that it doesn't work. Turns out that these users (reasonably rare) are accessing our website from their workplace which has a strict corporate firewall policy, because the js file contains swearwords and NSFW words (to mark the password as insecure if it contains these commonly used words), the whole JS file is being blocked from loading. The rest of our site loads fine, including other JS files. How could we encrypt or minify this js file to a point where it didn't get blocked for having "bad" words in the request, but be successfully decrypted at the client side to actually do it's job and detect unsafe passwords? This JS Fiddle will (sort of) demonstrate the problem: https://jsfiddle.net/0cgap96m/3/ That should work fine normally - now try blocking https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js using an adblocker or something, and it'll obviously start failing. This is essentially what's happening for the users, but it's blocked by their corporate firewall rather than a local adblocker. |
How to get params and query params from url in angular 9 Posted: 19 May 2021 08:14 AM PDT I have a url , I want to get params and queryparams both and each request parameter should be separated out using '&' except first one.First one will be separated by '?' For Ex Request URL:abc.com/abc:abc:abc:0xa35df9cdf?ab=1234567?lang=en I should get in variable let result = abc:abc:abc:0xa35df9cdf?ab=1234567&lang=en , I have used this, but I need in a single variable and also dynamic, my query param can be multiple app.component.ts |
How to debounce ajax requests in typeahead.js Posted: 19 May 2021 08:14 AM PDT I am using twitter typeahead library to implement searching functionality. I found the approach of sending POST request through ajax in typeahead. Problem is: It is firing requests for every word I type no matter how fast or slow and on backspaces too. Here is my code snippet: I tried: Using lodash library's debounce in source like this, but it is not sending any ajax requests. Code snippet: Can anyone help how to solve this? I tried seeing similar posts on stack overflow but couldn't find any solution. |
Openpyxl copy and paste as values in new workbook Posted: 19 May 2021 08:14 AM PDT I am trying to copy the first 100 rows in a source file to a new destination file with openpyxl. My source file has formulas, but I want to copy and paste as values in the new workbook. When I add data_only=True, (see code below), it copies only the values of my source sheet and therefore not the data in the formula cells - these are just empty in the destination file. How do I copy everything and paste as values in the destination sheet? |
Laravel Eloquent - querying Transactions on the bases of months Posted: 19 May 2021 08:14 AM PDT I have a transaction table in which I have a date on which a transaction occurred. Date is stored as "04-24-2021" as "m-d-Y" format. I want to get transactions occurring in every month from the latest to oldest transaction. For example, if the latest transaction occurred in '04-24-2021' and the oldest occurred in '02-04-2020' then I want to get transactions grouped by months from 04-2021 to 04-2020. What is the best way to do so? |
How can I install a pecl extension like mcrypt in DDEV-Local's web container? Posted: 19 May 2021 08:14 AM PDT In PHP 7.2 and higher the mcrypt extension is no longer available, but my project depends on it. I know that the project shouldn't be using something as ancient as mcrypt, but I don't have any say in this. I know that mcrypt was removed from PHP7.2+ but is still in pecl. What can I do for this project to support php-mcrypt in 7.2 and higher? |
How to store data from Google Ngram API? Posted: 19 May 2021 08:14 AM PDT I need to store the data presented in the graphs on the Google Ngram website. For example, I want to store the occurences of "it's" as a percentage from 1800-2008, as presented in the following link: https://books.google.com/ngrams/graph?content=it%27s&year_start=1800&year_end=2008&corpus=0&smoothing=3&share=&direct_url=t1%3B%2Cit%27s%3B%2Cc0. The data I want is the data you're able to scroll over on the graph. How can I extract this for about 140 different terms (e.g. "it's", "they're", "she's", etc.)? |
Why is composer not using my repository fork for a package? Posted: 19 May 2021 08:14 AM PDT I followed information on the internet and this post (Change Composer git source for a package) but am still having no luck getting composer to use my fork of the repository. What is wrong here? I've tried using the SSH url instead of HTTPS. I've tried with --prefer-source. I just can't seem to get it to pull in from my repo. |
Posted: 19 May 2021 08:14 AM PDT How can I enable Word wraping in phpstorm? I need to enable it only for some of my files (with extension .txt). Is is possible? |
Exceeding Max Char Limit in Excel Posted: 19 May 2021 08:14 AM PDT How do I use more than 255 characters in Excel's CONCATENATE function? I am actually also using the CONCATENATE function within the HYPERLINK function in EXCEL. An example looks like this: UPDATE: It's not issue with CONCATENATE function, but an issue with the first parameter of the HYPERLINK function. Using a string longer than 255 characters directly/indirectly (ex: =HYPERLINK(K204,"link") where K204 contains the 256-character length link) fails the HYPERLINK function I realize that I can use a URL shortener, but I am doing this for ALOT of links which would require ALOT of manual use of the URL shortener. |
You are subscribed to email updates from Recent Questions - Stack Overflow. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment