Recent Questions - Stack Overflow |
- Number comparison throws 'Text to date conversion' error in redshift
- Vue.Js: Alias configurations
- When to use $ for a variable in bash inside double parenthesis
- Block access for traffic to fake PDF pages
- Upgrading react 15 to 17 and it's dependencies
- Copy file from network directory with python
- ng-click for an entire DIV in AngularJS
- Laravel middleware doesn't give the access even to the admins
- How do I prevent webpack from building if there is an error in watch mode?
- Is there a way to create a JSON record to store in elasticsearch that only has the tip UUID?
- How to produce a feature importance plot for numeric predictions in XGBoost?
- Creating a Computed Int Column in SQL from a Text Column
- Rotate Left k cells where k is greater than the length of the array
- Running Simple Java Programs In Command Line
- Sed - find and replace text in html code (from one language to another)
- mongod command not working after installing on macOS Big Sur, showing this error below . Tried everything nothing worked
- Apache rewrite with and without Parameters
- How to implement .includes in JavaScript
- Is there a way for a consumer to stop listening to a topic by just using config/properties file?
- Sending dates into postgresql
- asp.NET 4.8 WebRequest errors with "The underlying connection was closed: An unexpected error occurred on a send."
- How to use first and last option to create new variable in Power Bi?
- Is there a way to acknowledge specific message in Pulsar?
- Index.html not loading when npx serve is run (caddy, nodejs)
- Invoking Django-river manually for workflow management
- Manual Post Save Signal creation makes the application slow, Django
- Biomod2 formatting error: incorrect number of layer names
- how can I create response curves using biomod2?
- How to return unauthorized using Laravel API Authentication
- Moodle Baracuda check bypass or highest antelope version
Number comparison throws 'Text to date conversion' error in redshift Posted: 04 Oct 2021 08:54 AM PDT I am running a query in redshift that compares a column with a value and filters the data. But, when i change the number from 1 to 0, redshift throws 'Text to Date Conversion Error' Any idea on how to resolve this |
Posted: 04 Oct 2021 08:54 AM PDT I am trying to make aliases for the jsconfig.json SomeFile.vue Error: What am I doing wrong here..? |
When to use $ for a variable in bash inside double parenthesis Posted: 04 Oct 2021 08:54 AM PDT Why do we need to express |
Block access for traffic to fake PDF pages Posted: 04 Oct 2021 08:54 AM PDT I have a lot of 404 hits to my site to PDF pages that have never existed on the site. These are all spammy-subject.pdf URLs. I get tens of these per day, which is much higher than genuine site traffic. I'm currently adding 410 rewrites for each. Can I use htaccess rule to totally block this traffic from reaching this site? Before it becomes a 404? |
Upgrading react 15 to 17 and it's dependencies Posted: 04 Oct 2021 08:54 AM PDT In our existing project we are using react 15, but want to upgrade to new version(react@17 or react@16.8) and it's dependencies, we can't change whole code. kindly suggest ways whether we can upgrade it, if yes then how we can do it with minimal changes. |
Copy file from network directory with python Posted: 04 Oct 2021 08:53 AM PDT i have this python's program that search (by input) files in specific directory and copy it in destination folder. I dont't know why its dont work with network directory, the program just dont found nothing, how can i use it for copy from big network directory? In my local pc that work fine. |
ng-click for an entire DIV in AngularJS Posted: 04 Oct 2021 08:53 AM PDT Whenever any element inside my DIV is clicked I want to execute a function in Angular controller. How to do this? Basically I am looking to place a ng-click on DIV element and expect the ng-click event be called when any/all elements nested inside the div are clicked. How to achieve this requirement? |
Laravel middleware doesn't give the access even to the admins Posted: 04 Oct 2021 08:53 AM PDT I have dashboard project and I made Admin model and configured it in the auth.php so any of the Auth::functions will execute on it, and now I created middleware IsLogin to redirect the user to the login page if he is not Admin and put all the routes into it and let the login route outside the middleware, but when I login it returns me to login page again and the credentials is right and exists in the database here is the code the login route the handleLogin function middleware code |
How do I prevent webpack from building if there is an error in watch mode? Posted: 04 Oct 2021 08:53 AM PDT I want to use webpack to do the following: If the resulting javascript is valid, then build it. If not, then don't build it. I was surprised to see that if I have invalid javascript, webpack will still compile the code and build invalid javascript. I came across the bail config option, but this will prevent me from being able to use watch mode. I want to watch, and only create the new file if the javascript ends up being valid. Is there any way of accomplishing this? |
Is there a way to create a JSON record to store in elasticsearch that only has the tip UUID? Posted: 04 Oct 2021 08:53 AM PDT I'm somewhat familiar to JSON and ElasticSearch through Java but I was requested to make an implementation that helps store elasticsearch data while minding the fact that there will be an expansion of the number of mapped values. Can anyone give me cookie crumb trail on how to start this and where I should go from there? |
How to produce a feature importance plot for numeric predictions in XGBoost? Posted: 04 Oct 2021 08:54 AM PDT I am trying to figure out how to retrieve the feature importance plot for a regression-based numeric prediction in XGBoost using R. On the last line of code there is no 'importance' heading and I just wanted to plot a conventional importance plot but I am struggling to see where I am going wrong. |
Creating a Computed Int Column in SQL from a Text Column Posted: 04 Oct 2021 08:55 AM PDT I want to create a new column in an existing SQL table that utilizes state abbreviations (an existing column) to recode the states into a number (1-50) for statistical analysis that will be performed after exporting the output. Assuming that Alabama is AL = 1 and Wyoming is WY = 50, how would I go about doing this for every state? |
Rotate Left k cells where k is greater than the length of the array Posted: 04 Oct 2021 08:54 AM PDT If the length of the given array is 6 and the value of k is 7 then the resultant array should be like this [20, 30, 40, 50, 60, 10]. My work. Output is [10, 20, 30, 40, 50, 60]. Expected [20, 30, 40, 50, 60, 10]. Can anyone help!!Thank you. |
Running Simple Java Programs In Command Line Posted: 04 Oct 2021 08:53 AM PDT I'm learning Java and wanted to run this simple program via the command line, and got this error. I have tried putting all my classes within another package but that does not seem to work. It works fine when I run it the typical way in IntelliJ (using f+10). How can I get it to run via the command line? I have tried |
Sed - find and replace text in html code (from one language to another) Posted: 04 Oct 2021 08:54 AM PDT I have html file index.html with english version. I want to create one more language version. I think the best way to do this is use sed. So I want to automatically change language version to another and save it in new file using sed. For example my index: Sed shoud find and replace all given english words to spanish inside my whole code. The Company (replace to) Empresa One (replace to) Uno Two (replace to) Dos Three (replace to) Tres Please help! Thank You |
Posted: 04 Oct 2021 08:53 AM PDT WITHOUT SUDO {"t":{"$date":"2021-10-04T20:40:10.650+05:30"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"-","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true}}} {"t":{"$date":"2021-10-04T20:40:10.651+05:30"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"} {"t":{"$date":"2021-10-04T20:40:10.651+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"} {"t":{"$date":"2021-10-04T20:40:10.651+05:30"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."} {"t":{"$date":"2021-10-04T20:40:10.653+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"} {"t":{"$date":"2021-10-04T20:40:10.653+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","ns":"config.tenantMigrationDonors"}} {"t":{"$date":"2021-10-04T20:40:10.653+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","ns":"config.tenantMigrationRecipients"}} {"t":{"$date":"2021-10-04T20:40:10.654+05:30"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":4418,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"leonofjudah-MBP.local"}} {"t":{"$date":"2021-10-04T20:40:10.654+05:30"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"5.0.3","gitVersion":"657fea5a61a74d7a79df7aff8e4bcf0bc742b748","modules":[],"allocator":"system","environment":{"distarch":"x86_64","target_arch":"x86_64"}}}} {"t":{"$date":"2021-10-04T20:40:10.654+05:30"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"20.6.0"}}} {"t":{"$date":"2021-10-04T20:40:10.654+05:30"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}} {"t":{"$date":"2021-10-04T20:40:10.655+05:30"},"s":"E", "c":"NETWORK", "id":23024, "ctx":"initandlisten","msg":"Failed to unlink socket file","attr":{"path":"/tmp/mongodb-27017.sock","error":"Permission denied"}} {"t":{"$date":"2021-10-04T20:40:10.655+05:30"},"s":"F", "c":"-", "id":23091, "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":40486,"file":"src/mongo/transport/transport_layer_asio.cpp","line":960}} {"t":{"$date":"2021-10-04T20:40:10.655+05:30"},"s":"F", "c":"-", "id":23092, "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"} WITH SUDO {"t":{"$date":"2021-10-04T20:44:59.700+05:30"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"} {"t":{"$date":"2021-10-04T20:44:59.702+05:30"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true}}} {"t":{"$date":"2021-10-04T20:44:59.706+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"} {"t":{"$date":"2021-10-04T20:44:59.706+05:30"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."} {"t":{"$date":"2021-10-04T20:44:59.708+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"} {"t":{"$date":"2021-10-04T20:44:59.708+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","ns":"config.tenantMigrationDonors"}} {"t":{"$date":"2021-10-04T20:44:59.708+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","ns":"config.tenantMigrationRecipients"}} {"t":{"$date":"2021-10-04T20:44:59.708+05:30"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":4430,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"leonofjudah-MBP.local"}} {"t":{"$date":"2021-10-04T20:44:59.709+05:30"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"5.0.3","gitVersion":"657fea5a61a74d7a79df7aff8e4bcf0bc742b748","modules":[],"allocator":"system","environment":{"distarch":"x86_64","target_arch":"x86_64"}}}} {"t":{"$date":"2021-10-04T20:44:59.709+05:30"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"20.6.0"}}} {"t":{"$date":"2021-10-04T20:44:59.709+05:30"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"E", "c":"CONTROL", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":{"error":"NonExistentPath: Data directory /data/db not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."}} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"CONTROL", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"ASIO", "id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"COMMAND", "id":4784923, "ctx":"initandlisten","msg":"Shutting down the ServiceEntryPoint"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"CONTROL", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"FTDC", "id":4784926, "ctx":"initandlisten","msg":"Shutting down full-time data capture"} {"t":{"$date":"2021-10-04T20:44:59.711+05:30"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"} {"t":{"$date":"2021-10-04T20:44:59.712+05:30"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}} |
Apache rewrite with and without Parameters Posted: 04 Oct 2021 08:54 AM PDT I need to rewrite URL's with and without parameters in the URL, I configured a It works but how should I handle the parameters like |
How to implement .includes in JavaScript Posted: 04 Oct 2021 08:54 AM PDT I'm developing a very simple chatbot using JS and HTML, and I have the following code which outputs an "answer" as a reply to what the user has asked. This works fine but when I try to implement .includes to check if a certain phrase has been asked it no longer outputs anything. For example, if the user asks "can you help" it should output the same answer as "help" since it contains the "help" keyword. Without .includes the code works fine. |
Is there a way for a consumer to stop listening to a topic by just using config/properties file? Posted: 04 Oct 2021 08:54 AM PDT Is there a way we can put in the properties/config file to stop a consumer from listening to a topic? I just want to know whether I can have an option that I can just simply like "Turn on/off" Kafka without having to build and deploy my project. |
Posted: 04 Oct 2021 08:53 AM PDT I have some doubts about this one, I already saw the others topics but I still can't make my code work properly. I want to send dates into my DB using JDBC, I'm using a jTextField (or a JformattedField, trying both ways) and all I get is an error by the database, Because I'm sending text instead date, so, how can I send dates ? EDIT1: I'm trying to send date of birth. Already made some tries, that's why I have: |
Posted: 04 Oct 2021 08:53 AM PDT On one particular website on my web server WebRequests have started throwing the following error: "The underlying connection was closed: An unexpected error occurred on a send."
Request code: I have tried adding the following to the page doing the request, and the global.asax, but it did not work. It should not be required, though, because I am using .net 4.8: |
How to use first and last option to create new variable in Power Bi? Posted: 04 Oct 2021 08:54 AM PDT I want to create a new variable based on the first and last records of each ID variable. A sample reference table is given below that will make it easier to understand the problem. Table: - I want to create variables Desired output table:- I have to achieve this by M query in Power BI. I tried so far to get the desired table but could not get any success. .First and .Last parts are not giving results as I thought initially. Can anyone help out with the problem or offer a suggestion to solve this problem? |
Is there a way to acknowledge specific message in Pulsar? Posted: 04 Oct 2021 08:53 AM PDT Is there a way to acknowledge a particular message in a topic on behalf of a specific subscriber? I couldn't find anything related to this in the api, both the admin and client api. |
Index.html not loading when npx serve is run (caddy, nodejs) Posted: 04 Oct 2021 08:54 AM PDT I'm running fastify on node.js and using Caddy server for reverse proxying localhost to a domain ( All was running fine until a couple days ago. Now, when I run I do have Caddy running with a reverse proxy set up. Not sure where or why index.html/serve.json is trying to be read and how to go about fixing it. I'm running macOs Big Sur v11.6 Some things I've tried.
package.json scripts |
Invoking Django-river manually for workflow management Posted: 04 Oct 2021 08:54 AM PDT Our application uses Django_river for workflow management. And currently, the river is being invoked based on the post save signal created by Django. But for performance-related issues, we had to use the bulk option for inserting data that does not support signals by default. We have generated signals manually, but this is slowing down our system. Is there a way to manually invoke the river from our code based on the business conditions? The river documentation is minimalistic, hence. |
Manual Post Save Signal creation makes the application slow, Django Posted: 04 Oct 2021 08:53 AM PDT We have a Django application that uses Django-river for workflow management. For performance improvement, we had to use bulk_create. We need to insert data into a couple of tables and several rows in each. Initially, we were using the normal .save() method and the workflow was working as expected (as the post save() signals were creating properly). But once we moved to the bulk_create, the performance was improved from minutes to seconds. But the Django_river stopped working and there was no default post save signals. We had to implement the signals based on the documentation available. And This got the workflow working again, but the generation of signals is taking time and this destroys all the performance improvement gained with bulk_create. So is there a way to improve the signal creation? More details |
Biomod2 formatting error: incorrect number of layer names Posted: 04 Oct 2021 08:53 AM PDT I keep running into an error while trying to run the BIOMOD_FormatingData() function. I have checked through all arguments and removed any NA values, the explanatory variables are the same for both the testing and training datasets (independent datasets), and I've generated pseudo-absence data for the evaluation dataset (included in eval.resp.var). Has anyone run into this error before? and if so, what was the issue related to? This is my first time using Biomod2 for ensemble modeling and I've run out of ideas as to what could be causing this error! Here is my script and the subsequent error: |
how can I create response curves using biomod2? Posted: 04 Oct 2021 08:53 AM PDT I am using R version 3.6.0. I have made some biomod models. There is one factor among my environmental variables. When I am trying to create response plots this error comes up: The code I use is: although I don't think that's the problem, but I have tried to use github biomod2: but it did not work and the following erro0r showed up: Can you tell me what goes wrong? Thanks |
How to return unauthorized using Laravel API Authentication Posted: 04 Oct 2021 08:54 AM PDT I am using Laravel API authentication with a token. (as explained here: https://laravel.com/docs/5.8/api-authentication#protecting-routes) I am running some tests with Postman and it works fine. When I try to access the route without a valid token, I see that the response is the (html of the) login page of my app. How can I return a Controller |
Moodle Baracuda check bypass or highest antelope version Posted: 04 Oct 2021 08:54 AM PDT On our server, we cannot change any database settings and newer versions of Moodle require the barracuda file format as opposed to antelope. We are running 3.4.1. 3.5+ requires innoDB. I thought a point upgrade to 3.4.4 would be ok, but that also has the same problems. What is the highest version I could use? Or is it possible to bypass these checks and continue using current database? |
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