Recent Questions - Stack Overflow |
- EditButton() in SwiftUI doesn't trigger EditMode
- Google Sheets Query - Issue grouping rows into the header row
- Socket.io connection to different mySQL tables, Angular front end
- Ive been struggling with this and i do not know where to start
- Why my cgi file is changed upon image build when in /usr/lib/cgi-bi?
- Getting a persistent ID for an LLVM BasicBlock
- Microsoft VBScript runtime error: Permission denied - pyenv install 3.x.x on Windows 10
- Not able to catch error in plyer notification
- How to Fix php Array to string converions
- I need (help) with python I'm a beginner I wanted to create an input system [duplicate]
- How to loop through $request and extract specific parameters
- To print square with * by editing this given source code. without making any major changes
- SQL: mean of appearances in two columns
- Cascading databound <ajaxtoolkit:combobox> and <asp:dropdownlist> in asp.net
- Refactor small function using lodash/fp map, and a second argument
- Split html string in two array without breaking a tag / div
- BigQuery: Insert into temporary table
- MariaDB. connection re-use
- axios network error with cors activated still returns error
- Postgres DB Schema - multiple columns vs one json column
- A difficult web-scrape - Multiple values of interest in the same cell
- Tabulator processing ajax data before load
- Accessing Google Adsense API from a server with Python?
- Swift LinkedList resulting in segmentation fault
- Regex pattern for postal codes
- How do I obfuscate Javascript in Ember?
- C# Nlog - How to rotate log files so it creates rotated logs file and archives
- Deleting & Recreating NTFS Journals (Or How to Properly run the 'fsutil usn' Command)
- NPM scripts not shown in explorer sidebar
- Stop Visual Studio 2019 from automatically adding comment prefix when enter pressed?
EditButton() in SwiftUI doesn't trigger EditMode Posted: 21 Apr 2021 09:21 AM PDT It seems like the EditButton() in SwiftUI (Xcode 12.5 beta 3) has various issues. In my code, everything was working fine until I replaced the List with a ScrollView and added a LazyVGrid. Now, when a user taps on the EditButton, EditMode is not activated. Any ideas for a workaround? Having 2 columns is a requirement of the UI, and while I could work with a list I prefer the look of ScrollView. I've tried numerous things... putting the ForEach in a Section and putting the EditButton in the header, replacing it with a manual button... unfortunately none of them seem to work :-( Many thanks for any thoughts or anything anyone else has done to get round this. | |||||||||||||||||||||||||||||||
Google Sheets Query - Issue grouping rows into the header row Posted: 21 Apr 2021 09:21 AM PDT Whenever I query a large amount of data, it bunches up several rows into the header row row. I've tried =QUERY('Keywords-Raw'!A:O,"SELECT A,B,G,L,O WHERE L MATCHES '"&A1&"'",1) which removes the header, but I need the header. I've also tried =QUERY('Keywords-Raw'!A:O,"SELECT A,B,G,L,O WHERE L MATCHES '"&A1&"' OFFSET 1"), but this only skips a row that I'll need. Does anyone have any ideas? | |||||||||||||||||||||||||||||||
Socket.io connection to different mySQL tables, Angular front end Posted: 21 Apr 2021 09:21 AM PDT I have an angular app that displays a table of data (mySQL database) and updates whenever anything is added to the database. I feel that I should add I'm very inexperienced, i know angular but trying to learn more about backened operations. I'm using a websocket (socket.io) on a node.js server to achieve this. It works fine but I'd like to add a second unrelated table of data that will appear in a different part of my app. . Should I set up another websocket to achieve this? Or can one websocket interact with 2 different table in the one database. All of the SQL queries are handled in the backend and look like this. My front end just accepts and displays the incoming data. I'd be unsure of how to add a second socket to it. Here is my socket.service.ts in angular. and here is the component.ts I just iterate over localData to display the table. My ideal outcome would be to have the one websocket with multiple endpoints. I just don't know how to handle this with mySQL events. Similarly if I had 2 completely separate websockets I'm unsure how to handle that on the angular side. | |||||||||||||||||||||||||||||||
Ive been struggling with this and i do not know where to start Posted: 21 Apr 2021 09:21 AM PDT Read the following program named myQuicksort.cpp carefully. The program is to sort and display a random integer array. Implement the missing code as indicated by the comments. Compile and test your program using the command lines below before your submission: c++ -o myQuicksort myQuicksort.cpp ./myQuicksort n m Where n is the dimension of the integer array, m is the number of elements displayed per line. | |||||||||||||||||||||||||||||||
Why my cgi file is changed upon image build when in /usr/lib/cgi-bi? Posted: 21 Apr 2021 09:21 AM PDT I have two containers :
After I launch my "exec" container, I noticed that my cgi fails, because it does miss the above library, but from a previous version : while it should be "libzoo_service.so.1.8" : the one that is actually provided, and that was build along with the cgi app. I was quite puzzled, and thus tried to understand. When I do the same from the "exec" container, I see instead : And getting better : from the same "exec" container, when I copy the very same cgi file to 2 different paths, I have different results : And the best is that the cgi file under /usr/lib/cgi-bin is half the size of the one from /tmp/cgi-bin, although they were copied from the same file: So.... I am quite sure this is absolutey legitimate... and that it is about how Ubuntu/Linux do build libraries trees : the facts that only cgi files unders /usr/lib/ are affected sounds a good hint. But I am not familiar with either cgi or Linux to understand what does happen here... and how I can fix it so my cgi app is actually linked with its matching libzoo_service.so.1.8 Thanks in advance! | |||||||||||||||||||||||||||||||
Getting a persistent ID for an LLVM BasicBlock Posted: 21 Apr 2021 09:21 AM PDT I'm looking for a way -- using the LLVM API -- to obtain an identifier for a BasicBlock which I can use to look up (again via the API) the same block later. Whatever this ID is, I need it to be "stable over serialisation" (remain valid and refer to the same block after a bitcode serialise/deserialise cycle). The block ID needn't necessarily be globally unique: if the ID is unique to a function, I can make a globally unique pair by combining the block ID with the function's symbol name. Candidates:
Thank you. | |||||||||||||||||||||||||||||||
Microsoft VBScript runtime error: Permission denied - pyenv install 3.x.x on Windows 10 Posted: 21 Apr 2021 09:20 AM PDT I wanted to install a new The output for two different versions I tried is this (in Earlier, this was not a problem. I even tried with started the | |||||||||||||||||||||||||||||||
Not able to catch error in plyer notification Posted: 21 Apr 2021 09:20 AM PDT I am not able to catch errors produced when I provide the wrong directory path to the icon. by producing the error :
How to catch it? | |||||||||||||||||||||||||||||||
How to Fix php Array to string converions Posted: 21 Apr 2021 09:20 AM PDT I am using a 2008 php program to take an image, annotate it and create a thumbnail of the image. The program works but throws a notice of an Array to String conversion. The relevant code is: The error is in the $alpha = $alpha.$alpha_u.range(0, 9); line. The print_rs are my debugging attempts. I hate having any notices or warnings in my code and would sure appreciate any suggestions for a fix. Thanks. | |||||||||||||||||||||||||||||||
I need (help) with python I'm a beginner I wanted to create an input system [duplicate] Posted: 21 Apr 2021 09:20 AM PDT This script doesn't print "leave" when I enter the name's in input | |||||||||||||||||||||||||||||||
How to loop through $request and extract specific parameters Posted: 21 Apr 2021 09:21 AM PDT This is a screenshot dd($request) it contains alot information. I'd like to extract just the #parameter: array:10 bits. I know how to pull them out one at a time with the $request->get('parametername') method, but I was hopeing there's a way to do it with a loop. This will run in the controler. | |||||||||||||||||||||||||||||||
To print square with * by editing this given source code. without making any major changes Posted: 21 Apr 2021 09:20 AM PDT I want to print like the way given below (4 stars on one line) | |||||||||||||||||||||||||||||||
SQL: mean of appearances in two columns Posted: 21 Apr 2021 09:20 AM PDT I have the correlation within two time series stored into a PostgreSQL database in the following way:
And I would like to get the mean of the correlations where each identifier appears (in one of the both columns of identifiers):
Where: | |||||||||||||||||||||||||||||||
Cascading databound <ajaxtoolkit:combobox> and <asp:dropdownlist> in asp.net Posted: 21 Apr 2021 09:20 AM PDT I have an Something like this: There's also a third In code behind I have two event handlers: I tought in this way I should filter If I look into | |||||||||||||||||||||||||||||||
Refactor small function using lodash/fp map, and a second argument Posted: 21 Apr 2021 09:20 AM PDT I have a lodash/fp I pass the array and the string into the component and my function returns a mapped array of leads How do I add the prop | |||||||||||||||||||||||||||||||
Split html string in two array without breaking a tag / div Posted: 21 Apr 2021 09:20 AM PDT Let's say I have a variable like this : Is it possible to split this string in half in two array without breaking the html, so waiting for the end of div before splitting to end up with : Thanks in advance guys ! | |||||||||||||||||||||||||||||||
BigQuery: Insert into temporary table Posted: 21 Apr 2021 09:20 AM PDT What is the closest approximation in BigQuery to this MS-SQL (T-SQL) syntax? I am running the browser version of Google's BigQuery. In MS-SQL this will create a temporary table without having to specify the table structure. (I don't particularly care about how long the table persists.) Thank you! Hint: This will create a table without having to specify the table structure, but it's not a temporary table. | |||||||||||||||||||||||||||||||
Posted: 21 Apr 2021 09:20 AM PDT i have a database that thousands of users need to connect to (via ODBC) for very brief periods (it's a subscription licensing database for a win32 desktop app). They connect, get their approval to run and disconnect). max_connections is set to 1000 but am not seeing the re-use i would expect server side. i.e. server currently has about 800 processes/connections sleeping (and another 200 connected to real data in other databases on the same server) .... yet a new attempt by a client app was rejected 'too many connections'. What am i missing? have increased the max_connections for now to 1500 but if that just means another 500 sleeping connections it's not a long term solution. pretty sure clients are disconnecting properly but am adding some diagnostics to the win32 app just in case. MariaDB 10.3.11 with MySQL ODBC 5.3 ANSI Driver | |||||||||||||||||||||||||||||||
axios network error with cors activated still returns error Posted: 21 Apr 2021 09:20 AM PDT the link to the code link I am using axios and nodejs. All routes work and give a response except one. which returns The route works on its own but when used with redux actions it doesn't The network tab says that this request was blocked. So I tried to add cors but that didn't solve the issue. The file in question is .../actions/adActions this one is producing the error while others don't I will be uploading the code in a minute | |||||||||||||||||||||||||||||||
Postgres DB Schema - multiple columns vs one json column Posted: 21 Apr 2021 09:21 AM PDT I have a db that contains username with 3 different phone numbers and 3 different ids. also we will have 3 different type of notes for each username. I am using postgres and data are planned to increase to millions of rows. querying and inserting new data process are really important to be fastest way. which schema would be better for that: OR | |||||||||||||||||||||||||||||||
A difficult web-scrape - Multiple values of interest in the same cell Posted: 21 Apr 2021 09:21 AM PDT I am having some issues with web-scraping the wiki polls for the Spanish Political Parties (Link below). The issue is that the cells contain both the % score in the poll (the top number), but also the number of seats this equates to in Spanish Parliament. I have been using a basic Pandas web-scrape (read_html) for my other polling web-scrapes and they work fine. I am not sure if Pandas is even capable to read the numbers separately, so any guidance would be great. For reference, when you do pd.read_html, this table is table 1, so df[0]. Link: https://en.wikipedia.org/wiki/Opinion_polling_for_the_next_Spanish_general_election Current Code - really simple, but df adds all the objects together from the wiki page Any help much appreciated. Thanks | |||||||||||||||||||||||||||||||
Tabulator processing ajax data before load Posted: 21 Apr 2021 09:20 AM PDT I need help if it is possible to modify table data before load into table in Tabulator library. I need to convert decimal value of (8 poles)DIP switch to separate 8 bits and load it to table. I have data in json format like this: and I would like format data to this (for decimal value 15): to this table: I know how to extract each bit in c: but I dont know how to do this when data are loaded into table using ajax. Can somebody help how to do it please? I am newbie and I cant help myself. Thank you! | |||||||||||||||||||||||||||||||
Accessing Google Adsense API from a server with Python? Posted: 21 Apr 2021 09:20 AM PDT Is there any way to use Python to access the Google Adsense API from a server without any user interaction? This is typically done by setting up a "service account", but Google's docs say that "AdSense doesn't support Service Accounts". They say to use the web or installed application flows, but these require the user to manually confirm access for every access. My application needs to run on a headless server, without user interaction, so it can pull data every hour, so this won't work. This similar question suggests going through the user consent screen once and then caching the token on the server, but this isn't feasible in my case since my process needs to be 100% automated, and the token will eventually expire and require user interaction. Unfortunately, Google's docs are quiet unhelpful, and even worse their Python coding examples haven't been updated in 7 years, and don't even seem to have worked back then, as many of them don't even run Python 2.7, much less 3. | |||||||||||||||||||||||||||||||
Swift LinkedList resulting in segmentation fault Posted: 21 Apr 2021 09:21 AM PDT Just to learn more and practice some Swift, I attempted a LinkedList implementation. It appears to work as I am able to add and remove some integers and verify these two operations are working as expected. However, at the end of this main program, when I re-initialize the The complete class is below, and it is also executable here on Replit: | |||||||||||||||||||||||||||||||
Regex pattern for postal codes Posted: 21 Apr 2021 09:21 AM PDT I am trying to write a regex pattern for 4 digits hyphen or space continued by 3 digits e.g. I have tried this but it is not matching the requirements | |||||||||||||||||||||||||||||||
How do I obfuscate Javascript in Ember? Posted: 21 Apr 2021 09:20 AM PDT Does anyone know how to use the javascript-obfuscator (or similar) in Ember ? I guess it needs to be called inside ember-cli-build.js but I don't know where and how. Thank you in advance for any help :) | |||||||||||||||||||||||||||||||
C# Nlog - How to rotate log files so it creates rotated logs file and archives Posted: 21 Apr 2021 09:20 AM PDT I have a trouble with creating a following log rotation settings: 1 - Current log file (service.log) 10 - rotated logs file like service.1.log, service.2.log etc. Log files size are 10MB. 10 - archived logs When the file reaches 10mb, we discard it with the name .1 when there are 10 such rotated files, the last one is archived and there are also 10 archives. Example:
Thank you! | |||||||||||||||||||||||||||||||
Deleting & Recreating NTFS Journals (Or How to Properly run the 'fsutil usn' Command) Posted: 21 Apr 2021 09:21 AM PDT I have a Corrupted NTFS journals prevent However, I have heard the corruption can be repaired by deleting and recreating the NTFS journal. This can be done by executing the following commands at the command prompt or PowerShell with administrator privileges: followed by However, Microsoft documentation on the switches and parameters for these commands is very poor. Can anyone please advise :
Finally, how safe is it to delete the NTFS journals in this manner? Thanks. | |||||||||||||||||||||||||||||||
NPM scripts not shown in explorer sidebar Posted: 21 Apr 2021 09:20 AM PDT I have this problem with Visual Studio Code for Windows 10: I can't see anymore the NPM scripts in explorer sidebar. I deleted all the extensions, uninstalled Vscode cancelling also its folder and the extension folders, installed latest version of VsCode again with no custom options and no extensions, but not solved: NPM scripts menu does not appear. How could I solve it? Thanks for your support. | |||||||||||||||||||||||||||||||
Stop Visual Studio 2019 from automatically adding comment prefix when enter pressed? Posted: 21 Apr 2021 09:20 AM PDT I can't find the option to turn of the VS2019 editor from automatically continuing a comment to the next line. Example: I don't want it to add the // on enter. Where do I turn that off? Thanks. |
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