Cannot launch Strider in my local browser when hosted in AWS
-
تاریخ: 1395/5/11 ساعت: 23:11
Vote count: 0 After much pain, I have finally managed to get the prerequisites for Strider installed; nodejs, git, mongodb and node-gyp. I have checked and they all appear to be functioning correctly. Following these instructions, I found that pm2 was a nice way to stop and start services, so I am g...
Getting org.springframework.expression.spel.SpelParseException error from Watson Conversation API
-
تاریخ: 1395/5/11 ساعت: 23:11
Vote count: 0 I'm trying the conversation API service from Watson (using the Python API client available on pypi: 'watson-developer-cloud'. When i make a request, i am getting the following error: "output": { "text": [], "error": "Error when updating output with output of dialog node id:node_3_14700...
Share photo on Facebook Android SDK
-
تاریخ: 1395/5/11 ساعت: 22:05
Vote count: 0 I'm trying to share a photo on Facebook with Android SDK. The problem is that my Bitmap image is null. This is my code: public void sharePhoto(View view) { if (Session.getInstance().getUserFace().getBestphoto() == null) { Intent i = new Intent(Intent.ACTION_PICK, android.provider.Media...
How implement AWS Identity and Access Management instead of Amazon Cognito
-
تاریخ: 1395/5/11 ساعت: 22:05
Vote count: 0 I'm looking how to implement use AWS Identity and Access Management (IAM) instead of Amazon Cognito in one of my iPhone apps. I have:Access key id ,Secret access key,Region. I am try use this link But is here i need put CognitoPoolID; How i can implement it , maybe you have some exampl...
Looping through pandas dataframe for speed
-
تاریخ: 1395/5/11 ساعت: 22:05
Vote count: 0 I'm trying to understand the fastest way to loop through in pandas. I read in many places that itertuples is much better than just regularly looping through data, and the best is apply. If this is the case why do regular loops come out the fastest? Maybe I'm not understanding the resul...
Variable doesn't work inside JQuery scroll function
-
تاریخ: 1395/5/11 ساعت: 21:03
Vote count: 0 my goal is to create and display variable which will record scroll position. While the scroll function seems to be working (for example i can alert a message inside it) but when I add a scroll_pos variable it just stops working. I have followed this tutorial https://www.youtube.com/wat...
Understanding COUNT(ALL) and COUNT(DISTINCT)
-
تاریخ: 1395/5/11 ساعت: 21:03
Vote count: 0 Why does MySQL/MariaDB allow SELECT COUNT(DISTINCT NAME, SURNAME) FROM PEOPLE, but doesn't allow SELECT COUNT(ALL NAME, SURNAME) FROM PEOPLE? I tried to look up the syntax of COUNT between the documentation of MariaDB and MySQL but all I got is COUNT(expr), the problem is that I found ...
how to create data volume from image for use in nginx container
-
تاریخ: 1395/5/11 ساعت: 21:03
Vote count: 0 I have an image (not container) which has the data baked in at /store. The image does not do anything else, it is only a vessel for holding the data in. I want to create a docker-compose file so that my nginx container has access to everything in /store at /usr/share/nginx/html Do I ne...
play audio is not working in cordova
-
تاریخ: 1395/5/11 ساعت: 19:58
Vote count: 0 <audio controls> <source src="/storage/emulated/0/h.mp3" type="audio/mpeg"> </audio> here is the html code . Its not working . Please help me resolve this issue . asked 58 secs agounknown Let's block ads! (Why?)
Awk dealing with variables containing whitespace
-
تاریخ: 1395/5/11 ساعت: 19:58
Vote count: 0 I want to pass a string with whitespaces as a variable to awk from a Bash script, but independent of how I escape it, awk will complain. Please consider the following example: list1: one two three four The output: [user@actual ~]$ ./dator.sh list1 1470054866 two (...) A working script:...
Export large data to xls format: System out of memory Exception
-
تاریخ: 1395/5/11 ساعت: 19:58
Vote count: 0 I am exporting a large DataTable to an Excel sheet (.xls) format. I call stored procedure here, which retu s the DataTable. The stored procedure used to retu 7,50,000 rows with 93 columns. In back end, if I pass the parameters for the stored procedure, it takes 8 mins to complete the p...
Python scikit learn multi-class multi-label performance metrics?
-
تاریخ: 1395/5/11 ساعت: 18:57
Vote count: 0 I ran Random Forest classifier for my multi-class multi-label output variable. I got below output. My y_test values Degree Nature 762721 1 7 548912 0 6 727126 1 12 14880 1 12 189505 1 12 657486 1 12 461004 1 0 31548 0 6 296674 1 7 121330 0 17 predicted output : [[ 1. 7.] [ 0. 6.] [ 1. ...
Difference between breaking and non breaking space ascii characters
-
تاریخ: 1395/5/11 ساعت: 18:57
Vote count: 0 I have two identical strings in javascript with some spaces. When I printed the ascii values by using str.charCodeAt(n) it is showing the values as 32 and 160. I googled the values and it is showing me as breaking and non breaking spaces. So can anybody explain what is this behaviour. ...
Have multiple check in/out/lunch time and get total hours
-
تاریخ: 1395/5/11 ساعت: 18:57
Vote count: 0 I have 2 date time picker. assume that in my database already saved the data needed //Status //Date //Time //name ---------------------------------------------- Check In 1/8/2016 12:30:36pm ali Lunch 1/8/2016 2:40:36pm ali Check In 1/8/2016 3:40:36pm ali Check Out 1/8/2016 6:40:36pm al...
SourceTree crashing when hitting commit
-
تاریخ: 1395/5/11 ساعت: 17:53
Vote count: 0 I am using SourceTree 1.8.3.0 (I Know this isn't the latest version, but that version immediately crashes when starting up) on Windows 10 64bit. SourceTree crashes when I want to commit, giving me the following error in the log file (sorry automatically translates to Dutch). This is a ...
Android recyclerView item layout params not working
-
تاریخ: 1395/5/11 ساعت: 17:53
Vote count: 0 I'm writing a simple chat UI. I am using a nine-patch file to to this work. When I first initialize my Adapter with some mock data, it works fine, but if I add something during runtime, the layout inside the recyclerView breaks. It doesn't throw any errors, though the layout params whi...
Delete #NULL! in blank cells
-
تاریخ: 1395/5/11 ساعت: 17:53
Vote count: 0 While exporting an SPSS (.sav) data file to excel, the blank cells were imputed as #NULL! .Is there any way to overcome this? Even, we can replace the #NULL! by find and replace in Excel, but i need to do this in SPSS end itself. Please assist. Regards Satheeshkumar asked 33 secs agoSa...
How Static function in C reduce memory footprints?
-
تاریخ: 1395/5/11 ساعت: 16:48
Vote count: 0 I've recently lea ed that declare functions or/and variables as static can reduce footprints, but I can't figured out why. Most article online focus on the scope and readability but not mentioned any benefit about memory allocation. Does "static" really improve performance? asked 12 se...
Adding Django form widgets
-
تاریخ: 1395/5/11 ساعت: 16:48
Vote count: 0 I'm new to django and am working with the Calendarium package, i needed to edit it most places to make it fit my need and this is the last problem i cant get round. I have never seen anything like the way this package is set up and cant figure it out i have tried many ways to try to ge...
How to create a 3-dimentional Dataframe?
-
تاریخ: 1395/5/11 ساعت: 16:48
Vote count: 0 I have a select processs which has three parameters and each of these params values from 0.0 to 1.0 with stop of 0.2. In order to get the most optimal params I have to run my process many times with different param conditions. I can do this by two params, i.e. two-dimensions since I ca...