For what reason I can access the resources by curl, but not in the browser?
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
7:02
Vote count: 0 On the server side I'm using Rails. Purposely, I did not configure the CORS. Thus, as I expected, in the browser I can not do requests to the Rails server because I get this error: But I can do for the terminal, using curl: macabeus@macabeus-acer ~ $ curl http://localhost:3000/people [...
why i didn't get an app - delphi x2
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
6:00
Vote count: 0 i tried to work with dll's. so i create an dll. [dll] uses System.SysUtils, System.Classes, vcl.dialogs; procedure gugug(); begin showmessage('DA'); end; procedure gugug2(); begin showmessage('DA'); end; {$R *.res} exports gugug, gugug2; [unit1] in this unit i include the dll and proce...
How to compare 4 strings(3 identical and 1 different) and find the different one in javascript
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
6:00
Vote count: 0 I have table with 4 columns. Each row has set of 3 identical values and one different value. I want to highlight the one which has the different value than the rest of the three. How do I do it in react js ? asked 1 min agouser17422 Let's block ads! (Why?)
Which asp.net server control has both multi-line and click event?
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
6:00
Vote count: 0 For my web application I'm searching for a control that can have both multi-lined text and a server side click event. Is there any control that can serve my task or any procedure by which I can achieve this? asked 51 secs agoParvez M Robin Let's block ads! (Why?)
Trying to upload a video to a server and then play it back to a video view (Xamarin android)
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
4:54
Vote count: 0 I'm currently working on a xamarin.android project, and am attempting to upload a video to an aws server, and then also be able to play it back. The upload is working correctly as far as I can tell. I'm retrieving the file from the user's phone, tu ing it into a byte array, and uploadi...
Cannot read property 'payload' of undefined
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
4:54
Vote count: 0 Hey so I am having a problem getting the payload form my message. It keeps telling me something is undefined. This is an example of the object I am using. However when I call things like message.payload.headers[x] I keep getting an error saying it's undefined. I am using the the gmail ...
NodeJs equvalent implementing simple SOAP
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
4:54
Vote count: 0 this below code is my PHP solution to use SOAP and work fine, now i want to implementing that on NodeJs, but i can't and after opening url with /sendsms i dont get any result. this soap is for send sms, after get empty result, i dont get any sms from that public static function SendRES...
Raise NSError in RubyMotion
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
3:48
Vote count: 0 I write an application which is basically just client to http API. I am trying to reuse code from Redis Search sample (DataParser and JsonParser), but when error occurs during the API call, RubyMotion is not able to raise that error. It tries to raise first error in error pointer, whic...
Problems with cleaning a data frame with ifelse
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
3:48
Vote count: 0 I am a novice at R, and trying to clean a data frame (MSdatanew) using ifelse. I want to change a variable E2_new so that wherever it was coded as "<0.057" it is now coded as "0.57". However, wherever it isn't coded as "<0.057", I wanted it to stay as originally coded. MSdataclean<-MSd...
UI-Router give cannot GET error on page refresh
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
3:48
Vote count: 0 I am building an angular site and using UI-Router, if I click a link to go to a route it works fine but whenever I refresh the page, or if I type the url in manually I get 'Ca ot GET /find-a-vendor. I have this in my routes file: $stateProvider .state('home', { url: '/', templateUrl: '...
Sequelize js query through hasMany relationship
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
2:42
Vote count: 0 I am trying to retu a list of Users based on a search term I am receiving from the client. User hasMany Skills. I would like to retu all users by searching for the term in all the possible User fields this includes the Skill title. my tables and relationships are in a db file this is w...
how to add bottom spacing of a div tag with css
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
2:42
Vote count: 0 Here is my example I want to show you. I have a div tag with the id of form-bubble in the middle of the container. I added a margin:20px auto; to the form-bubble. But the form-bubble is not getting any space at the bottom. I don't know how to create space at the bottom. I'm pretty sure...
Visual Studio Add-in: CodeElement2.RenameSymbol not works on Namespaces
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
2:42
Vote count: 0 The method CodeElement2.RenameSymbol not works on Namespaces My code loock like this: Sub RenameNamespaces() For Each aProject As EnvDTE.Project In DTE.Solution.Projects If aProject.CodeModel IsNot Nothing Then For Each elem As CodeElement In aProject.CodeModel.CodeElements If elem.Kin...
days Of Week for weather info in angular
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
1:40
Vote count: 0 i want get days of week from data weather json , am useing this code ' var dayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; var date = new Date(); $scope.wDay = dayNames[date.getDay()]; html {{wDay}} get result only one day 'sun' not all days of week json data `"daily": { ...
how does Python handle "from __future__ import division"?
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
1:40
Vote count: 0 I've looked at the source code for __future__.py and it makes no sense to me -- how does this actually work, to change the behavior of division? asked 49 secs agoJason S Let's block ads! (Why?)
What is the highest value that can b input for an integer variable in c++ by a user?
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
1:40
Vote count: 0 So, I made a c++ program to calculate the volume of a pool. It is a console application. All the user has to do is input the dimensions of the pool and the program will retu the volume, amount of water and the area of the pool. The problem is that I tested out the program with really h...
How to create a plan programmatically?
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
0:29
Vote count: 0 Is there a way to create plans programmatically? It's a bit strange to read To create a subscription, you only need a stored paymentMethodToken and a planId, which must be created via the Control Panel. in the documentation. Why wouldn't there be a way to create a payment plan using th...
Does calling printf without including stdio.h invoke undefined behavior?
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
0:29
Vote count: 0 Does this i ocent looking program invoke undefined behavior: int main(void) { printf("%dn", 1); retu 0; } asked 36 secs agochqrlie 1 Answer Vote count: 0 Yes invoking printf() without a proper prototype from standard header <stdio.h> invokes undefined behavior. As documented in C11 A e...
Rancher: Nginx configuration to access rancher server at https:/rancher
◷
تاریخ انتشار:
1395/5/11
|
ساعت:
0:29
Vote count: 0 I am trying to set up an Nginx reverse proxy server which will perform https termination for multiple docker containers one of them being the Rancher server. My wish is to set up the reverse proxy server as following: https://<server>/rancher -> rancher-server https://<server>/jenkins ...
How to solve phpmyadmin error?
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
23:24
Vote count: 0 I am trying to install phpmyadmin on my server but I am receiving errors: Error: php70u-common conflicts with php-common-5.4.16-36.1.el7_2.1.x86_64 Error: php70u-json conflicts with php-common-5.4.16-36.1.el7_2.1.x86_64 You could try using --skip-broken to work around the problem You c...