Recent Questions - Stack Overflow |
- Go: internal package resolution/importation
- syntax error at or near "DECLARE" in PostgreSQL Stored Procedure
- Tablayout Title donsen't appear
- Write to remote MySQL server
- Calling a class activity implementing asynctask via Intent on mainActivity doesn't work
- My program keeps increasing its memory usage and i dont know why
- Tinymce upload image with no url
- Pandas - replace NaN with previous row value
- Cython function keeps spawning new processes
- Sequence id is not properly inserted
- Spring Data Jpa: union all two unrelated tables
- WARNING: This is a development server. Do not use it in a production deployment [closed]
- understrap child theme - scss changes are not appied/visible
- How to create an array from three comma separated strings in PHP? [duplicate]
- Sql server 2014 slow remote insert
- Separating whole date and time in VBA
- How do I deploy a website to Netlify that doesn't use React?
- Flask Admin Nested Inline_models
- How to round a decimal number to whole number in android studio?
- How to open an app in splitview content area?
- CRUD Typescript cancel edit
- How to make a part of ListHeaderComponent sticky on React Native FlatList
- Bootstrap 4 modal cancel
- Having to destinations to select for state design pattern
- Why comparing a small floating-point number with zero yields random result?
- transaction underpriced in BEP-20 Token transaction
- Import tasks or playbooks with a boolean condition in Ansible
- Create a presigned S3 URL for get_object with custom logging information using Boto3?
- How to use settimeout with vue.js watchers?
- How to fix Error: laravel.log could not be opened?
Go: internal package resolution/importation Posted: 15 Jun 2021 08:14 AM PDT ContextI am an absolute noob with go and I am trying to write a toy project for learning purpose. I find internal imports quite tricky, feeling that I am missing something important. Say my project is structured this way: And here is ProblemHow to properly import Based on |
syntax error at or near "DECLARE" in PostgreSQL Stored Procedure Posted: 15 Jun 2021 08:14 AM PDT I am creating a stored Procedure in PostgreSQL9.6 but I am getting syntax error . I am new to PostgreSQL . is there more syntax error ? and Also how can I call this procedure to test if its working ? Thanks |
Tablayout Title donsen't appear Posted: 15 Jun 2021 08:14 AM PDT I have a Tablayout to show three fragments via ViewPager and adapter, the problem is that the titles doesn't appear: MainActivity.java: MyAdapter.java Rem: my problem is different from this post: (Titles in TabLayout donsen't appear) |
Posted: 15 Jun 2021 08:13 AM PDT I am trying to learn about how programs and apps communicate with servers. I have Ubuntu server set up with MySQL server. I have adjusted the bind-address and port 3306 with ufw allow. When I run a python program on a different machine to update the MySQL database I get an interface 2003 and 10060 error for no communication response. I am new to this sort of thing I have intermediate experience with programming and I am having trouble finding answers. I am 99% sure I missed something small or just did something stupid or possibly didn't do something. Any ideas? |
Calling a class activity implementing asynctask via Intent on mainActivity doesn't work Posted: 15 Jun 2021 08:13 AM PDT I'm having trouble calling a browser class implementing asynctask from Main activity using intent in the format below; MainActivity.java StartActivity(intent); And in my browser class I have the following code; //* AsyncTask and Java URL class in background *// } The problem in whole here is, on start of the mainactivity I needed to call another class activity having AsyncTask, like the subclass Http from
MainActivity. How do I go about this? Browser activity is also declared in the Android manifest. When I go about in the format above the app crashes on runtime. Your help is highly appreciated. |
My program keeps increasing its memory usage and i dont know why Posted: 15 Jun 2021 08:13 AM PDT I have a vb.net aplication that connects to several devices via TCP connection. The problem is that i should be able to keep the memory usage under 100 MB but it keeps increasing and increasing non stop. I am using GC and disposing manualy all objects created. The problem happens because i have to keep the aplication running for days and i cant keep increasing the memory usage. Can anyone help pls? |
Tinymce upload image with no url Posted: 15 Jun 2021 08:13 AM PDT Im wondering if theres a way to upload an image into the tinymce editor without having to use a URL. The issue being with security we dont allow foreign URLS into our servers as it may pose a risk without being verified. I want to be able to allow the user to upload the image directly into the editor from their PC folder. |
Pandas - replace NaN with previous row value Posted: 15 Jun 2021 08:13 AM PDT Given the following dataframe: How do I replace the NaN value with the previous column value, ending up with: |
Cython function keeps spawning new processes Posted: 15 Jun 2021 08:13 AM PDT I have some C++ code that I wrapped in Cython. It works exactly as expected if I execute it just once. However, I need to call it in a for loop many times with different parameter combinations. And this is where I noticed the additional spawned processes. In the beginning, there is only one process called "python exec_test.py" which uses 100% of one of my CPU cores and some RAM. Over time, new processes spawn which do not use any CPU capacity but reserve some RAM. Interestingly, it does not spawn a new process on every execution of the Cython function, but there are always four or five additional processes active. I guess I am asking how multiple function calls to external code are handled by python (or cython?). I looked at the cython documentation, but couldn't find any information about this. I think, I know that external variables are reused in some way if there are multiple function calls. In the beginning, I had a global variable, like so and on subsequent calls to I would be glad if someone could point me to some documentation or articles about this. Also, are the additional processes expected behavior? Thanks for the help! |
Sequence id is not properly inserted Posted: 15 Jun 2021 08:13 AM PDT I have created a sequence but its not inserting ids in sequence order. For Ex: -> First I have created one set of record seq number generated as 1 , 2 , 3 , 4 -> Again I have created another set of records seq started from 8 , 9 , 10 -> For 3rd time I have created another set of records seq id got generated as 5 , 6 , 7 (which is not correct, I want the seq id to be continued as 11 , 12 , 13 ) So 5 , 6 , 7 is wrong, I need 11 , 12 , 13 to be generated What's wrong in my below sequence create query Kindly assist Create Query: |
Spring Data Jpa: union all two unrelated tables Posted: 15 Jun 2021 08:14 AM PDT I have two tables which are not related to each but have some common column names. I want to pull records from both tables for a city and using union all doing a ntive query Here Getting |
WARNING: This is a development server. Do not use it in a production deployment [closed] Posted: 15 Jun 2021 08:13 AM PDT code is herei m using Jupyter notebook and i m doing project on fake news detection. using flask web framework i want to open index.html page but i get this error: SystemExit Traceback (most recent call last) in 19 20 if name=='main': ---> 21 app.run(debug=True,host="localhost") c:\users\admin\appdata\local\programs\python\python39\lib\site-packages\flask\app.py in run(self, host, port, debug, load_dotenv, **options) 920 921 try: --> 922 run_simple(t.cast(str, host), port, self, **options) 923 finally: 924 # reset the first request information if the development server c:\users\admin\appdata\local\programs\python\python39\lib\site-packages\werkzeug\serving.py in run_simple(hostname, port, application, use_reloader, use_debugger, use_evalex, extra_files, exclude_patterns, reloader_interval, reloader_type, threaded, processes, request_handler, static_files, passthrough_errors, ssl_context) 998 from ._reloader import run_with_reloader as _rwr 999 -> 1000 _rwr( 1001 inner, 1002 extra_files=extra_files, c:\users\admin\appdata\local\programs\python\python39\lib\site-packages\werkzeug_reloader.py in run_with_reloader(main_func, extra_files, exclude_patterns, interval, reloader_type) 426 reloader.run() 427 else: --> 428 sys.exit(reloader.restart_with_reloader()) 429 except KeyboardInterrupt: 430 pass SystemExit: 1 |
understrap child theme - scss changes are not appied/visible Posted: 15 Jun 2021 08:13 AM PDT I am having problems with "creating" an Understrap Child theme. I am using Visual Studio Code and I have a plug in Live Sass Compiler. The problem I am facing is that when I change/create the variables in _theme.scss and save it, no changes are shown on the website. My child theme structure: My understanding is that a scss file with an underline is a partial scss file, and as such is not a stand alone file. If I save a regular scss file, without an underline it creates a regular file. So my questions comes down to, do I need another .scss / .css file where the values from _theme.scss would be applied? If I can provide any additional information, please let me know. |
How to create an array from three comma separated strings in PHP? [duplicate] Posted: 15 Jun 2021 08:13 AM PDT I can do this with one string, but having trouble with combaining 3 different strings into one array. I have three comma separated strings e.g. like: I would need to create an array from these so it would look like this: How could I achieve that with three separate strings? Thanks in advance! |
Sql server 2014 slow remote insert Posted: 15 Jun 2021 08:13 AM PDT I have several linked servers and I want insert a value into each of those linked servers. On first try executing, I've waited too long for the Below of my code snippets I worked before Also below, figure of how I check my estimation execution plan of my query I check only How can I get best practice and best performance using Remote Insert? |
Separating whole date and time in VBA Posted: 15 Jun 2021 08:13 AM PDT I only can separate date and time to one column. How can i separate date and time to all columns? [ |
How do I deploy a website to Netlify that doesn't use React? Posted: 15 Jun 2021 08:13 AM PDT I'm trying to deploy a website to Netlify but the only problem is that it doesn't use React. The website can only be opened on my computer by typing in the folder location in the browser. How do I deploy such a site to Netlify? I tried looking for answers online but it doesn't give me any. Edit: I forgot to create a package.json. Apologies |
Flask Admin Nested Inline_models Posted: 15 Jun 2021 08:13 AM PDT I am looking for the ability to have one inline model contain another inline model. If this behaviour was possible I was assuming this would accomplish that: Unfortunately this appears to do nothing. Does anyone know if this is possible in flask-admin? Or maybe there is another solution to accomplish this behaviour? In this github post one user made it seem like it was possible with the screenshots they provided, but no code was ever linked. |
How to round a decimal number to whole number in android studio? Posted: 15 Jun 2021 08:13 AM PDT Let's say the decimal numbers are 1.12, 8.23, 2.35, 9.44 & 5.14 What I want is I want to round all the numbers whose decimal is less than 0.3 to the lesser whole number and the remaining to the greater whole number. For example 1.12 would become 1 8.23 would become 8 2.35 would become 3 9.44 would become 10 5.14 would become 5 How do I do that? Please help |
How to open an app in splitview content area? Posted: 15 Jun 2021 08:13 AM PDT I basially want to open an app within my project directory into the splitview content area. XAML XAML.CS This is how i intended for the app to work: -User click button on Navigation menu item(s), e.g. Colours -Then colours page is loaded into a new frame, then new frame into window, then window into splitview.content |
Posted: 15 Jun 2021 08:14 AM PDT I have a project in Angular 11 and Spring Boot where I am developing a button editable table. I am missing a function with which I am having problems, cancel the edition, I do not know how to keep the data when pressing the This is my This is my |
How to make a part of ListHeaderComponent sticky on React Native FlatList Posted: 15 Jun 2021 08:13 AM PDT I have a React Native FlatList with a ListHeaderComponent with 2 internal Text. The structure is:
This means that as the list scrolls up, Section 1 should disappear (non-sticky) whereas section 2 should stay at the top of the list (sticky). This is the code: I have to set the indices to [0] so it picks the header but there is no way to select the second within the header. Any ideas? BTW - I thought of capturing the vertical offset as the list scrolls and then put on the HeaderComponent main <View style={{marginTop: -offset }}> so it simulates a scroll. But my understanding is that Android does not support negative margins. BTW-2 - I am using react-native-draggable-flatlist so I wouldn't like to put the Text in the list itself as it would complicated the logic of the list items. Thanks! |
Posted: 15 Jun 2021 08:13 AM PDT In pure jQuery I can do this: ...so by just adding a class "confirmClick" to a link, clicking the link now requires the user to confirm the action before carrying it out. I would like to do the same with a bootstrap 4 modal, because it just looks better. I am perfectly happy to add two attributes to a link, like: ...in which case I would make sure ot have a modal with id confirmClickModal always available. The problems in cancelling/proceeding with the click depending on the user action. Thanks in advance. |
Having to destinations to select for state design pattern Posted: 15 Jun 2021 08:13 AM PDT I am implementing a state pattern, my cause when the pause state is reached, I have two states that the user can back tow, that depends on the button the user click.
Currently, the code but I know there is something wrong because switch statement breaks the benefits of state pattern that encapsulate behaviours , the code above shows ugly of switch statement |
Why comparing a small floating-point number with zero yields random result? Posted: 15 Jun 2021 08:13 AM PDT I am aware that floating-point numbers are tricky. But today I encountered a case that I cannot explain (and cannot reproduce using a standalone C++ code). The code within a large project looks like this: This piece of code causes a random behavior. Using gdb, it's identified that the random behavior is due to the comparison Also in case a floating number comparison is needed (in such case, the floating number is not casted from integer as shown above), I also changed the comparison to After that, I also wanted to reproduce it using a simple test program, but it seems I cannot reproduce it. (The compiler used for the project is different from what I am using for compiling the test program though). The following is the test program: I am wondering, what could be the reason for the random behavior of the comparison with zero? |
transaction underpriced in BEP-20 Token transaction Posted: 15 Jun 2021 08:14 AM PDT I had do some transaction in Binance Smart Chain in Binance-Peg BUSD-T and it worked successfully. But after 5 transactions. I face to a problem that said I have increased my gas 10% and add a nonce more than the value which was given to me by calling |
Import tasks or playbooks with a boolean condition in Ansible Posted: 15 Jun 2021 08:14 AM PDT Effectively I need something like this: But it gives an error like: I understand this is not supported but is there any way to do this? |
Create a presigned S3 URL for get_object with custom logging information using Boto3? Posted: 15 Jun 2021 08:13 AM PDT I am using Boto3 and in accordance with the Boto 3 documentation. I need to add the identity of the user requesting the URL into the presigned URL itself, so that it will be immediately apparent whose credentials had been used to generate it! Now the AWS Documentation says that it is possible to include custom query string parameters in the URL:
The Javascript SDK library has the following recipe in Github issues:
for creating a presigned url with How do I achieve the same in Python (3), preferably (but not necessarily) using Boto 3? P.S. please do note that I am not asking how to force the client to pass a header or anything such - in fact I cannot control the client, I just give the URL to it. |
How to use settimeout with vue.js watchers? Posted: 15 Jun 2021 08:13 AM PDT I have custom watcher for search field in my application: Here as you see I've send request to server on everey change value of How I can do it correctly inside vue.js watchers? |
How to fix Error: laravel.log could not be opened? Posted: 15 Jun 2021 08:13 AM PDT I'm pretty new at laravel, in fact and I'm trying to create my very first project. for some reason I keep getting this error (I haven't even started coding yet) I've read this has something to do with permissions but |
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