Recent Questions - Stack Overflow |
- Is there a way to solve Apache HTTP Server Source Code Disclosure?
- Text filled with blurred background image
- cant get twitch clip download link in Python
- Upgrading legacy signing key to a new signing key
- Trying to test Wallet instantiation in Solana JS
- how to get email notification while created new user in splunk server
- How to execute PostgreSQL functions with PSQL-specific arguments as stored procedures with Npgsql 6?
- Using case_when with vector outputs of different length - can I avoid this doubling behaviour?
- I can't login as admin in wordpress site it shows me this link is faulty
- how to specify hourly time range in djagno?
- Sharing memory when using tokio Rust
- Flutter getting stuck in "Syncing files to device SM T550..." when running app on real SamSung device
- Elasticsearch _cluster/stats api vs _stats API
- Azure Logic App Condition is not evaluating as True or False
- Summing hours worked for a week, over the month - c# & LINQ
- how to read the whole web page with Python - bs4 /response read only first part of the page
- How can i apply a class to all elements inside a nested array but with an interval before apply the same class to the next nested array?
- how do I access struct enum values for use with UIsearchbar?
- Find first event occurring after given event
- printed value for high numbers is wronger than it should?
- Laravel groupBy and pluck some values
- TypeError: Updater.__init__() got an unexpected keyword argument 'use_context'
- Ruby - Check the length of each words and group them
- Oracle ORA_HASH alternative in Postgres(MD5)
- How to reference the value of an environment variable with using another environment variable in variable name?
- DIV fade in onscroll with JQuery but without triggering on each pixel
- Delphi IOS Iphone TWebbrowser (Wkwebview) setAllowsInlineMediaPlayback(true) does not work
- Amazon Managed Airflow (MWAA) import custom plugins
- How to test a Faust agent that sends data to a sink?
- How to determine if a Rails object is marked_for_destruction?
Is there a way to solve Apache HTTP Server Source Code Disclosure? Posted: 07 Jul 2022 09:21 AM PDT I have just received an Acunetix report from the network security section for my Apache server on 64-bit Windows 10, with Moodle 4.0 installed. Such issue is only observed in the Windows version of Apache but not the Ubuntu one. The report also states that this is a 0day issue but I wonder is there a way to get it resolved manually, as it is no longer possible for me to migrate the entire LMS to another OS/host. The report states the following: Apache HTTP Server Source Code Disclosure Due to a flaw in Apache HTTP Server, an attacker can read the source code of web application by sending a specially crafted request. An attacker can gather sensitive information (database connection strings, application logic) by analyzing the source code. This information can be used to conduct further attacks. Request Reference | ||||||||||||||||||||
Text filled with blurred background image Posted: 07 Jul 2022 09:21 AM PDT I'm trying to create a title that has a glass looking visual which blurs the background image. I was able to do it but I had to make references to the background image 3 times and it doesn't seem very optimal. Here is the code I used. https://codepen.io/marceltoma/pen/zYWGYwp I wonder if there's a better way to do this. | ||||||||||||||||||||
cant get twitch clip download link in Python Posted: 07 Jul 2022 09:21 AM PDT I am trying to get the downloadable link for twitch clips using requests-html and Beautifulsoup, What I get back is: Does anyone know what's going on? | ||||||||||||||||||||
Upgrading legacy signing key to a new signing key Posted: 07 Jul 2022 09:21 AM PDT After a new update in my app i got a warning on google play console asking me to upgrade the apps signature to a stronger one. OK, but now i can't update my app with my old keystore.jks Your Android App Bundle was signed with an incorrect key. Use the correct signing key and try again. It should be signed with a certificate with the following fingerprint what should i do to fix this? I have the old keystore.jks and the privatekey. Can i create a new keystore with the new certificates? I tried to import the new certificate in the keystore but no success. Thanks in advance | ||||||||||||||||||||
Trying to test Wallet instantiation in Solana JS Posted: 07 Jul 2022 09:21 AM PDT new to .js so sorry for the noob question around syntax. I'm trying to follow some code to test out instantiating a wallet in code. I'm hardcoding private key (will not do this in prod obviously) just to see how everything works. I'm getting this error : My code is as below : import fetch from 'cross-fetch' import { Wallet } from '@project-serum/anchor' import bs58 from 'bs58' const connection = new Connection('https://ssc-dao.genesysgo.net') const PRIVATE_KEY = 'my secret key is this very dumb long confusing and unnecessary string' const wallet = new Wallet(Keypair.fromSecretKey(bs58.decode(process.env.PRIVATE_KEY || ''))) Thanks | ||||||||||||||||||||
how to get email notification while created new user in splunk server Posted: 07 Jul 2022 09:21 AM PDT "how to get email notification while created new user in splunk web server, that receipts should get notification that user has been created for you. I am using splunk enterprise 9.0. | ||||||||||||||||||||
How to execute PostgreSQL functions with PSQL-specific arguments as stored procedures with Npgsql 6? Posted: 07 Jul 2022 09:20 AM PDT I'm having some trouble porting C# code from Npgsql 2.2.7 to Npgsql 6.0.5 (PostgreSQL is version 12.x). Following code works just fine with Npgsql 2.2.7: It doesn't work with Npgsql 6,
I've read about the breaking changes in Npgsql and yes, the behavior is more ore less expected, as some implicit conversions doesn't occur anymore. But how to specify the first argument of type
Changing the CommandType to Text and issuing a SELECT statement works, but I'm not fully happy with it: Is there a way to call such functions with PostgreSQL-specific type arguments as stored procedures and not as | ||||||||||||||||||||
Using case_when with vector outputs of different length - can I avoid this doubling behaviour? Posted: 07 Jul 2022 09:20 AM PDT When I use case_when as below, I end up with an unwanted doubling of outputs that were intended to be of length 1 - presumably because case_when matches the length of vectors The result is "B+ B+", when I just want "B+" When a=b, I get "A+ B+", which is what I want. Is there any way to stop this behaviour, or an alternative function? Please note that the above is just the simplest parallel I could write. I am using case_when as part of a custom function to define rules applied to numerous input variables to generate a result call. I had been using multiple if_else statements chained together, but that has significant readability/editing issues and I had been excited to discover case_when and use it instead. | ||||||||||||||||||||
I can't login as admin in wordpress site it shows me this link is faulty Posted: 07 Jul 2022 09:20 AM PDT Iam trying to get access through c panel but it shows page not found and this link is faulty i have so many things to solve 1. Deactivating plugin and themes 2. Changing url 3.tried uploading backup to /wp folder 4.loginn from domain name/login.php this shows the login form page but after giving credentials it shows can't acces page and etc etc... But this can't help my website is working properly but the thing is I can't login as admin. Pls help Site url- https://tractoragricultureimplement.com Link which should open my wordpress dashboard(without id and password) from cpanel - https://tractoragricultureimplement.com/sapp-wp-signon.php?pass=helghzy7hqfakrhnsby8v1iyamckipwr | ||||||||||||||||||||
how to specify hourly time range in djagno? Posted: 07 Jul 2022 09:20 AM PDT I want to accept orders within specific timeframe, simply i want to validated orders if they are within 8:00-19:00 no matter what day it is or what date it is. | ||||||||||||||||||||
Sharing memory when using tokio Rust Posted: 07 Jul 2022 09:20 AM PDT I am new to async Rust, and find myself stuck. I am trying to share memory for two WebSocket clients using I use In my Because I want to return a Currently, I am trying the following: As you might have guessed, this clears the state in the I have also tried moving the I am thinking that maybe I have used the library, but I am not sure, hence why I came here. :-) Thanks in advance. | ||||||||||||||||||||
Posted: 07 Jul 2022 09:20 AM PDT I am first time trying to run app on Samsung real device. But the app getting stuck at Syncing files to device SM T550... Here is the complete report: Doctor report is: | ||||||||||||||||||||
Elasticsearch _cluster/stats api vs _stats API Posted: 07 Jul 2022 09:20 AM PDT I am a bit confused on why I would be getting a relatively drastic different amounts for each of this api calls for doc count (Primary and Total), shard amounts, and even the amount of indices. Does anyone know why these two API calls would return different statistics for a given elasticsearch cluster? Thanks | ||||||||||||||||||||
Azure Logic App Condition is not evaluating as True or False Posted: 07 Jul 2022 09:20 AM PDT I'm trying to create an Azure Logic API that calls API1, gets a list of IDs then passes those IDs into another API call to API2 to see if the ID already exists. If it does not I want it to create the ID in API2. I've set it up as a timer-base trigger. When triggered I have it making an API request to get a list of IDs from the first API. It then parses the JSON so that I can use the IDs in a Foreach loop to take the IDs from one API and compare them with IDs from another API. It's then parsing the JSON response for another foreach loop to evaluate if it exists then skip and if it doesn't create the new IDs. The problem I'm having is when it doesn't exist in the second API it never kicks off the API request to create the IDs in the second API. The most logical way to set it up is if API1-ID does not equal API2-ID, then true otherwise false. The problem is, if the ID doesn't exist in API2 there's nothing to evaluate for true/false so the API call to create never execute. I had assumed that if ID didn't exists then it wasn't equal, so it would be true. I've even tried to use the empty expression or length if the JSON response body is zero, but I cannot get this fire off the API request to create the missing IDs. I feel like this can work because I've flipped it to where if ID = ID then it creates the ID (which gives me duplicates). If anyone can help that would be awesome! | ||||||||||||||||||||
Summing hours worked for a week, over the month - c# & LINQ Posted: 07 Jul 2022 09:20 AM PDT I am wondering how i can simplify my queries as I know I am carrying out bad practice and going the long way about things. Basically, I have shifts being entered into an app on a weekly basis, and i am calculating the hours worked each week. I am wanting to know how do I go about getting the start date of a week and the end date of a week based on a known shift, which has been entered into the app (ShiftDate). Quick example below of 4 weeks, where I have worked out the start and end of the week using moment.js and passed them down to the c# function (represented by vStart, vEnd etc...). I am struggling how to obtain start and end of a week that contains x.ShiftDate I want to figure out how to just write the sum function once, without having to repeat for each week within the month | ||||||||||||||||||||
how to read the whole web page with Python - bs4 /response read only first part of the page Posted: 07 Jul 2022 09:20 AM PDT I am trying to scrape the page to get the term and its definition from the page https://dictionary.apa.org/caffeine-intoxication (or similar pages at dictionary.apa.org) The following code (and bs4 too) gets only But I really need to get other elements of the page ( How can I get the rest of the page? | ||||||||||||||||||||
Posted: 07 Jul 2022 09:21 AM PDT My Goal today is to apply a class to all elements inside a nested array and wait a 1-sec delay before applying the same class to all elements of the next nested array and removing the class applied to the previous nested array. At the moment my class is been applied to all elements of all nested arrays simultaneously. This is as far as I can get with my code as I don't know how to proceed. Any help on what to look for to solve this with JavaScript or Jquery will be much appreciated. | ||||||||||||||||||||
how do I access struct enum values for use with UIsearchbar? Posted: 07 Jul 2022 09:20 AM PDT I am struggling to learn about creating and using more complex structs with UITableView and UIsearchbar. I have a table that displays the following structs in 2 sections. I have implemented the searchbar many times. But this time I am getting an error when trying to search the value of case barcode. This is the error. Here is my code attempt 1 attempt 2 I can print myitems to console and see the values it contains. How do I access the value of barcode for comparison to searchtext? Here is a sample of what I see when I do print(myitems) in console SOLUTION this seems to work, getting duplicates in the search results for some reason but prior error is gone. thanks @shadowrun | ||||||||||||||||||||
Find first event occurring after given event Posted: 07 Jul 2022 09:20 AM PDT I am working with a table consisting of a number of web sessions with various events and event id:s. To simplify my question, let's say that I have 4 columns which are session_id, event_name and event_id, where the event id can be used to order the events in ascending/descending order. Let's also pretend that we have a large number of events and that I am particularly interest in 3 of the events with event_name: open, submit and decline. Assume that these 3 events can occur in any order. What I would like to do, is that I would like to add a new column that for each session says which, if any, of the two events 'submit' and 'decline' that first follows the event 'open'. I have tried using the FIRST_VALUE partition function but have not made it successfully work yet. So for a session with event sequence: 'open', ... (a number of different events happening in between), 'submit', 'decline', I would like to return 'submit', and for a session with event sequence: open, ... (a number of different events happening in between), 'decline', I would like to return 'decline', and for a sessions for which none of the events 'submit' nor 'decline' happens after 'open', I would like to return null. You can use the following table with name 'events' for writing example SQL code: I hope the question and its formulation is clear. Thank you very much in advance! Sincerely, Bertan | ||||||||||||||||||||
printed value for high numbers is wronger than it should? Posted: 07 Jul 2022 09:20 AM PDT When printing a high number in R I expect to see a rounded value due to floating point magic. Indeed : However I expected that this rounded number would be rounded to itself, and it appears it isn't I found manually the min number that rounds to the original rounded value While an explanation would be appreciated, I have a practical issue. I'd like to design a faithful The constraint to satisfy is : If I've tried How can I achieve this ? | ||||||||||||||||||||
Laravel groupBy and pluck some values Posted: 07 Jul 2022 09:20 AM PDT I am using laravel 8.x and building rest API project. I am stuck with a query. I have a table
I want to do something like that,
and hope to get result like, Anyone help me? | ||||||||||||||||||||
TypeError: Updater.__init__() got an unexpected keyword argument 'use_context' Posted: 07 Jul 2022 09:21 AM PDT It occurred when I perform this : | ||||||||||||||||||||
Ruby - Check the length of each words and group them Posted: 07 Jul 2022 09:20 AM PDT I can't find the methods used to check the length of each word and group them per length. arr = ["john","roger","matt","john", "james", "Jennifer"] The method should return: There are 3 names with 4 characters I tried this one and it's working Thank you | ||||||||||||||||||||
Oracle ORA_HASH alternative in Postgres(MD5) Posted: 07 Jul 2022 09:21 AM PDT I am trying to find an alternative to the ORA_HASH Oracle function in Postgres(edb). I know there are hashtext() and MD5(). Hashtext should be ideal, but it's not documented and so I can't use it for some reasons. I'd like to know if there is any way of using MD5() and getting the same value that you'd get in ORA_HASH giving the same value for both of them. For example, this is how I use it and what I get in Oracle: I'd like to do something similar in postgres, so that if I pass the 'huyu' value, I'd get the exact same '3284595515' value. Now, I know that ORA_HASH restores a number and MD5 restores hexadecimal value. I think I'd need the function that converts the hexadecimal 32 into a number, but I can't get the same value and I'm not sure if it is possible. Thank you in advance for any suggestions | ||||||||||||||||||||
Posted: 07 Jul 2022 09:21 AM PDT I know that similar questions have been asked before and I have seen them but neither does I tried them and they don't work. What can I do?
| ||||||||||||||||||||
DIV fade in onscroll with JQuery but without triggering on each pixel Posted: 07 Jul 2022 09:21 AM PDT I have an SVG inside a DIV that is supposed to start at 0% opacity and then fade in to 100% via jQuery when I scroll down to 800px. Currently, it's:
How would I fix this to only fire once? Edit: I've adapted code that Johannes posted and replaced it below. Issue 2 is now resolved but issue 1 still remains. revised jsFiddle, original version jsFiddle Thanks! | ||||||||||||||||||||
Delphi IOS Iphone TWebbrowser (Wkwebview) setAllowsInlineMediaPlayback(true) does not work Posted: 07 Jul 2022 09:21 AM PDT I try to inbound a fmx.TWebbrowser (Delphi 11) for displaying an youtube stream in an iphone app. If I click the stream picture, the stream opens in the iphone movieplayer-window. So I have to zoom out, to view the video in the app. On Android devices it works fine. Also, when I write the app in Xcode, I can set "plays inline" and the stream works inline at the wkwebview. In Delphi / RAD, I can modify the FMX.Webbrowser.Cocoa. It is possible to use the function configuration.setAllowsInlineMediaPlayback(true). If I check this afterwards, configuration.allowsinlineMediaPlayback remains false. Example: test remains False. Apple writes: setAllowsInlineMediaPlayback must be set at creation. At FMX.Webbrowser.Delegate.IOS there is but there is no way to set .configuration.setAllowsInlineMediaPlayback(True); At FMX.Webbrowser.delegate.ios there is a function called but Delphi does not use this function. Is there an override or a solution to this problem? Thanks a lot. | ||||||||||||||||||||
Amazon Managed Airflow (MWAA) import custom plugins Posted: 07 Jul 2022 09:20 AM PDT I'm setting up an AWS MWAA instance and I have a problem with import custom plugins. My local project structure looks like this: I tried to match this structure in the s3 bucket: However when I use the custom operator on the local project the import works like this - and on the MWAA it only recognize imports like this - Is there a way to get the MWAA recognize the import as the local (from operators)? should I upload the files in certain way to the s3? I also tried to upload a plugins.zip file but it didn't work: | ||||||||||||||||||||
How to test a Faust agent that sends data to a sink? Posted: 07 Jul 2022 09:21 AM PDT I am trying to write unit tests using pytest for my Faust application. I have referred to the documentation here but it does not mention what to do when my Faust agent is sending data to a sink. Without a sink, my tests are working fine but when I use a sink, I get this error: I have tried various methods: such as patching out the decorator in my Faust app that sends the data to the sink, trying to test my function without the decorator (by trying to bypass it), patching out the sink parameter in my Faust app to have a None value (so it doesn't send my data to the sink), etc. I have had no luck with any of these. Here is my Faust agent: Here is my current testing code: I get the same error as mentioned above when I run this test. Is there any way to test my Faust app successfully? Thank you! | ||||||||||||||||||||
How to determine if a Rails object is marked_for_destruction? Posted: 07 Jul 2022 09:21 AM PDT I have some objects which happen to be nested_attributes of something else. When they are marked to be deleted, Rails creates a property "marked_for_destruction". How do I read this var? Sample Yaml dump: |
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