Recent Questions - Stack Overflow |
- Decrypting a Caesar Cipher with ord() and chr()?
- Linting rule to ban specific method in Kotlin (not Android)
- Try to tidy an excel worksheet using R
- Python selenium webdriver
- Properly setting up LuaBinaries files on Windows?
- Monitor 3 different processes with particular pid with a child process executing execvp("ps", argv)
- How to find rows with duplicate values that exist across JSON arrays
- This function only runs outside of the event listener
- Length mismatch: Expected axis has 0 elements, new values have 6 elements
- How to fill in an from excel imported dataframe with an other from excel imported dataframe row by row?
- C++ is completely ignoring a while loop, why?
- Function on created jquery droppable element
- SDK and android studio issue in flutter doctor
- Convert integer to string, split at the decimal and then include the decimal in the 2nd part of the array?
- How to make body divided into 3 equal part using container?
- How to change 'this' keyword color in vscode custom theme
- Combining two 8-bit integers to a 16-bit integer
- IntelliJ Maven error: Repository is non-nexus repo, or is not indexed
- How can I change the color of one portion of a font icon?
- when I Installed Python on Windows and it doesn’t configure the path
- HTML required form validation is not giving any warning
- I'm creating nav_graph to link one fragment to another but it's showing error
- Recup input value through screen manager kivy
- How to pass array in C# program that will record the number of hours a student studies in a week
- Create an array with all the links of the years' archive (of a custom post type)
- .Net5 Core API: In Post action, Dictionary object is not received in [FromForm] but received in [FromBody]
- databricks code to send filename and size to another table
- How to use ExceptT to replace lots of IO (Either a b)
- How to "rebuild" the CDK entrypoint
- Entitlements file "Entitlements.plist" not found. error
Decrypting a Caesar Cipher with ord() and chr()? Posted: 28 Sep 2021 09:37 AM PDT I have an assignment for a lab that asks me to decrypt an input file that has been encrypted with a ceasar cipher. As background, my instructor has already let everyone know that the cipher has a shift distance of three. I was able to get my to write to an output file, but my output.txt is completely unreadable, and not close at all to what the expected output should be. I remember my instructor mentioning that we could use ord() and chr() combined with arithmetic to transform the encoded characters to plaintext. I appreciate any help or advice you can offer! Thanks!! |
Linting rule to ban specific method in Kotlin (not Android) Posted: 28 Sep 2021 09:37 AM PDT I am trying to add a linting rule to my Kotlin/Gradle project to ban a specific method from ever being called (specifically DateTimeTz.local from the Klock library - it has been causing some timezone issues due to devs calling it without fully understanding its purpose and I would like to add a barrier to make it harder to accidentally use). This is in the core code of a Kotlin Multiplatform app, so no access to Android libraries. Ideally, I'd like it to be possible to override this rule. This looks like the sort of thing I want to do, except it's not Android code: Custom lint rule which ensures a specific method is not called Does anyone have any recommendations for a good library/approach for this problem? I'm quite new to linting rules in Kotlin. |
Try to tidy an excel worksheet using R Posted: 28 Sep 2021 09:36 AM PDT I am using the following libraries in R: I have data like this: I know the start date and the end date, so I have them set: What I am trying to do is get my data out of the weird wide format and make it long. Monday 00:00:00 Value, Monday 01:00:00 Value etc. Possible? |
Posted: 28 Sep 2021 09:36 AM PDT I m new in selenium automation with python. I was designing this hybrid frame work for login . This error i get i don't know what is the problem but if you guys can help that would be great Error : " def test_login(self): self.driver=webdriver.Chrome("C:\Users\91808\Documents\Chrome selenium package\chromedriver.exe") self.driver.get(self.baseurl) #import login action methods from page object file self.Lp=Logintest(self.driver)
E AttributeError: 'Logintest' object has no attribute 'setUserName' |
Properly setting up LuaBinaries files on Windows? Posted: 28 Sep 2021 09:36 AM PDT I'm trying to setup the files from LuaBinaries (specifically Lua 5.2.4 64-bit), and there are a few things I'm confused about. There are two zip files provided, the binaries: So, these are my questions:
|
Monitor 3 different processes with particular pid with a child process executing execvp("ps", argv) Posted: 28 Sep 2021 09:36 AM PDT I'm trying to make a program where parent process creates 3 child processes creates another process to monitor the processes. The monitoring child process executes and sends them to parent with pipe lining and redirecting stdout to stdin. But I am having problem as the process STAT never changes in consecutive iteration even after the processes are dead it still shows that the p1,p2,p3 are running Here is my code: If anybody have any advice or any solution for this that would be great. Thank you in advance. |
How to find rows with duplicate values that exist across JSON arrays Posted: 28 Sep 2021 09:36 AM PDT I'm working with a table defined as follows: The Where the length of the or: I want to find all the rows where any or all of the ids are duplicated across rows. For example: would match and The part that has me stumped is the array. Without the array, I've been able to find duplicates via the following: In my efforts to include the array, I've tried different variations of the following, to no avail: While this does indeed find duplicates in To focus on the issue, I've simplified the query to: Which doesn't return any rows, even though duplicates across the arrays do exist. |
This function only runs outside of the event listener Posted: 28 Sep 2021 09:36 AM PDT I was fetching a promise with an asynchronous function and using a compose function to handle the data, but i need to add an event listener to make the site dynamic, but the function doesn't run inside the eventlistener, if i run it outside of the event in the global scope it works just fine |
Length mismatch: Expected axis has 0 elements, new values have 6 elements Posted: 28 Sep 2021 09:36 AM PDT Hi I am trying to run an exercise from Howard B. Brandy's book "Quantitive Technical Analysis" I know he used python 2.x but I am using Python 3.9 therefor updating the code. The Code is listed below and the error I get I think when Calling the function to retrieve historical intra-day data looks like a mismatch with the index but not sure how to resolve is. Could you please guide me what needs to be modify to have it runing in Python 3.9 This is the code I am using: I am getting the following error : Could you please guide me what needs to be modify to have it runing in Python 3.9 |
Posted: 28 Sep 2021 09:36 AM PDT I have two dataframes imported from different sheets from excel and i need to fill in the row of the one dataframe with a row of the other dataframe but i dont want to create new rows, it has to replace the values of the existing row . Thankyou in advance |
C++ is completely ignoring a while loop, why? Posted: 28 Sep 2021 09:35 AM PDT I understand that while loops are ignored if the condition is false, however in this instance the variable "helper" is never entered yet the program returns 0, so I don't understand why C++ skips the while(cin >> helper) loop. In this exercise we have to write a program that can convert from decimal to binary, binary to decimal, binary to hexadecimal, and so on. That's easy, I can do that, although I probably don't use the most optimal, nor the smartest method, but that's not a problem. The problem is that (unless I comment out the entirety of int main() until the point where I would prompt the user to enter a hexadecimal number), the program simply stops and returns 0 without ever allowing the user to enter a hexadecimal number. (PS: sorry if I used some weird variable names, and sorry if this is a dumb question, I'm still learning) Thanks for your answers in advance! |
Function on created jquery droppable element Posted: 28 Sep 2021 09:36 AM PDT Please tell me why the droppable function does not work on the added |
SDK and android studio issue in flutter doctor Posted: 28 Sep 2021 09:36 AM PDT How do i resolve these 2 errors in flutter
|
Posted: 28 Sep 2021 09:36 AM PDT I would like to split a number at the decimal in order to convert the number after the decimal into a fraction. This gets me |
How to make body divided into 3 equal part using container? Posted: 28 Sep 2021 09:35 AM PDT I want to make my screen into 3 equal part using container class in flutter. How to do that? |
How to change 'this' keyword color in vscode custom theme Posted: 28 Sep 2021 09:35 AM PDT I'm working on a custom theme over the Atom One Dark Theme, but I just can't figure out how to change the 'this' keyword color. When opening Developer: Inspect Editor Tokens and Scopes it shows as a variable. with dark one theme on But with vscode regular dark theme it does appear in a different color. with vscode dark theme Any ideas on how to do it? Thanks! |
Combining two 8-bit integers to a 16-bit integer Posted: 28 Sep 2021 09:35 AM PDT IN C Programming, how do I combine (note: not add) two integers into one big integer? So if i have int a = 8 int b = 6 in binary it would be int a = 1000 int b = 0110 so combined it would be = 01101000 |
IntelliJ Maven error: Repository is non-nexus repo, or is not indexed Posted: 28 Sep 2021 09:36 AM PDT Hello, I'm getting this error for the sonatype repository. I'm pretty sure I set it up correctly in the pom.xml: I have already tried invalidating caches, reinstalling my entire IDE, deleting the .m2 folder or clicking every reload button I found. Nothing was successful. What is the issue here? Note: The https://s01.oss.sonatype.org/content/repositories/snapshots/ repository did not work either. |
How can I change the color of one portion of a font icon? Posted: 28 Sep 2021 09:35 AM PDT I am implementing upvote button using I have also tried by adding Any help would be much Appreciated. |
when I Installed Python on Windows and it doesn’t configure the path Posted: 28 Sep 2021 09:36 AM PDT When i entered the code its showing this error as I attached on picture. [Environment]::SetEnvironment Variable("Path", "$env:Path;C:\Python27", "User")
|
HTML required form validation is not giving any warning Posted: 28 Sep 2021 09:37 AM PDT I have a register form and I have 3 inputs. They are working well when I post the values to the controller but when I don't fill them in and click the submit button, it's not allowing me to submit this form. When it's not allowing me to submit it, it should give me warning about those input like 'This field is required' or etc. but its not giving me that error. The form: I think there is something which overrides those warnings and not letting them to become visible but I just could not find it. When I remove the |
I'm creating nav_graph to link one fragment to another but it's showing error Posted: 28 Sep 2021 09:36 AM PDT 09/28 20:43:56: Launching 'app' on Pixel 3a XL1 API 26. Install successfully finished in 4 s 64 ms. $ adb shell am start -n "com.example.fragment_communication_we1/com.example.fragment_communication_we1.StudentDetailsActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 24447 on device 'Pixel_3a_XL1_API_26 [emulator-5554]'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/zygote: Not late-enabling -Xcheck:jni (already on) W/zygote: Unexpected CPU variant for X86 using defaults: x86 D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.fragment_communication_we1, PID: 24447 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.fragment_communication_we1/com.example.fragment_communication_we1.StudentDetailsActivity}: android.view.InflateException: Binary XML file line #13: Binary XML file line #13: Error inflating class androidx.fragment.app.FragmentContainerView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: android.view.InflateException: Binary XML file line #13: Binary XML file line #13: Error inflating class androidx.fragment.app.FragmentContainerView Caused by: android.view.InflateException: Binary XML file line #13: Error inflating class androidx.fragment.app.FragmentContainerView Caused by: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment android.navigation.fragment.NavHostFragment: make sure class name exists at androidx.fragment.app.FragmentFactory.loadFragmentClass(FragmentFactory.java:97) at androidx.fragment.app.Fragment.instantiate(Fragment.java:611) at androidx.fragment.app.FragmentContainer.instantiate(FragmentContainer.java:57) at androidx.fragment.app.FragmentManager$3.instantiate(FragmentManager.java:483) at androidx.fragment.app.FragmentContainerView.(FragmentContainerView.java:175) at androidx.fragment.app.FragmentLayoutInflaterFactory.onCreateView(FragmentLayoutInflaterFactory.java:52) at androidx.fragment.app.FragmentController.onCreateView(FragmentController.java:135) at androidx.fragment.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:319) at androidx.fragment.app.FragmentActivity.onCreateView(FragmentActivity.java:298) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at android.view.LayoutInflater.inflate(LayoutInflater.java:374) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:699) at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195) at com.masai.fragment_communication_we1.StudentDetailsActivity.onCreate(StudentDetailsActivity.java:17) at android.app.Activity.performCreate(Activity.java:6975) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: java.lang.ClassNotFoundException: android.navigation.fragment.NavHostFragment at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:453) E/AndroidRuntime: at androidx.fragment.app.FragmentFactory.loadClass(FragmentFactory.java:53) at androidx.fragment.app.FragmentFactory.loadFragmentClass(FragmentFactory.java:94) ... 30 more Caused by: java.lang.ClassNotFoundException: Didn't find class "android.navigation.fragment.NavHostFragment" on path: DexPathList[[zip file "/data/app/com.example.fragment_communication_we1-EmNvUY7d7SPFTv3-S2408g==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.fragment_communication_we1-EmNvUY7d7SPFTv3-S2408g==/lib/x86, /system/lib, /vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 34 more |
Recup input value through screen manager kivy Posted: 28 Sep 2021 09:36 AM PDT I want to catch a value from my first screen into my thirdscreen. In the first, I write my name in an input field. I go to the next window. And I try to show my name in this last window. So I share the code with you and I hope I will find an issue. Python code : My KV CODE : Could you help me ? Thank you Romain |
How to pass array in C# program that will record the number of hours a student studies in a week Posted: 28 Sep 2021 09:36 AM PDT I'm creating a C# program that will record the number of hours a student studies in a week. I'm having a problem linking my hours array created within the Student Class into the StudentUI class. Is it correct to pass the Student object inside the methods The proper output of the Console is shown in the two images I've linked below. |
Create an array with all the links of the years' archive (of a custom post type) Posted: 28 Sep 2021 09:37 AM PDT I have a custom post type called "papers" and I need to create an array with all the archive links per year that exists. Something like: I've been told to use |
Posted: 28 Sep 2021 09:36 AM PDT I have two actions The class contains only one property of Dictionary type In case I send the data using swagger to these methods, The method having FromBody is working but the method having FromForm is not working. Using: FromBody, I am able to receive the dictionary in the request Using: FromForm, I am not able to receive the dictionary in the request Question: Why I am not able to receive the object in FromForm type of request? |
databricks code to send filename and size to another table Posted: 28 Sep 2021 09:35 AM PDT I have a code to check whether the incoming files had data or not.it checks for each of the files and performs the actions as mentioned in the code. wanted to know how to send the file name, file size, and time at which that file was read to another table created using data bricks? |
How to use ExceptT to replace lots of IO (Either a b) Posted: 28 Sep 2021 09:36 AM PDT I have a function which connects to a database, then runs a query. Each of these steps results in One of the things I have really liked about using My expectation here from reading blog posts, the This answer in particular is really good, but I'm struggling to apply it to my own case. A simpler example of my code: My problem is that (a) I'm not really understanding the mechanics of how I'm sure every (relatively) new Haskeller says this but I still really don't understand monad transformers and everything I read (except aforelinked SO answer) is too opaque for me (yet). How can I transform the code above into something which removes all this nesting and error handling? |
How to "rebuild" the CDK entrypoint Posted: 28 Sep 2021 09:36 AM PDT A bit of background, started a CDK in typescript project and didn't know the conventions as I'm new to AWS so the code was written on the "entrypoint" in the /bin directory. Upon further reading I found out that I was doing it incorrectly
So my question is, after I move my code from the /bin file to the /lib, how do I then generate the bin/cdk-workshop.ts file again? |
Entitlements file "Entitlements.plist" not found. error Posted: 28 Sep 2021 09:35 AM PDT I am trying to run a simple app on an iPod touch. The code complies and runs on the emulator just fine, but as soon as I try to run it on the device I get the error above. I have run other applications this way and have tried different provisioning profiles. The Entitlements file is in the root of the project. I have also tried a wildcard id and a specific id as well. I am not sure what is happening. Any help is appreciated. |
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