I'm trying to connect to a website I made with auth that uses MD5.hex(password) to encrypt the password before sending it to the PHP. How could I achieve the same encryption in C#?
I want to create a hgrc file to set the username and password for all paths on some machine, e.g no matter in which directory I am in, hg clone some_path will always work without prompting for a username and a password (this is for an auto-deploy script).
I followed the instructions and created a file: /etc/mercurial/hgrc.d/deploy.rc
it's contents:
[auth]
default.prefix= http://myrepo
default.username = myuname
default.password = pwd
But when I do
hg clone some_path I get abort: error: Connection refused.
What Am i doing wrong?
I've been looking to make things a little more DRY, both on my personal projects (django) and at work (JSP/struts,PHP).
SASS+HAML seem to be quite popular, but, do those outside of the Rails community generally use these as well, or do they opt for other similar solutions? Which do you use, and what was the reasoning behind the choice?
I am looking to get into web application development. I am an undergrad CS major with experience in programming desktop apps, but with only basic knowledge regarding how web apps work. Any suggestions of where to start? Javascript, php, perl, ruby, python? Should I look into frameworks like django, seaside, ruby on rails, etc at first or wait until I am more experienced to use those?
I am using Django with MySql. I have a CharField with max length of 64 as the 2nd to last column, and a Boolean as the last column. Will reversing the order of these provide better optimization of space?
Hello,
I have been working with java and python, so I found a nice web host which has support for these.
But my question is, why can you find so hard such hosts?
I understand that php is easy, I also understand that oracle host is hard to find ($$$ of course), but what do they have against some good open-source, completely free java spring, jsp, django, python, ror, perl etc etc ....
So rare to find hosts ... not to mention freelancer bids
Thank you.
I've been reading all kinds of tutorials on how to deploy rails apps on heroku from windows.
I've tried installing git, heroku gem, generating ssh keys and setting paths and everything...
I get either public key error (without putty) or fatal no auth found (with putty)...
I've been looking to make things a little more DRY, both on my personal projects (django) and at work (JSP/struts,PHP).
SASS+HAML seem to be quite popular, but, do those outside of the Ruby/Rails community generally use these as well, or do they opt for other solutions? Which do you use, and what was the reasoning behind the choice?
I have page in my asp.net mvc website with a flash app on it, and the user can stay on that page for hours, but his auth cookie is going to expire, so I'm thinking to create a PingController and to call it using jquery $.post each 20 minutes.
is this a good idea ?
or there is something better ?
I'm kind of falling in love with Node.js not because you write app code in javascript but because of its performance.
I really don't care a lot about how beautiful a server side language might be but how much requests per second it can handle.
So anyway I'm looking forward to experiment building an entire webapp using Node.js (and going back to the actual question) is there a template engine similar to let's say the django template engine or something similar (that at least allows you to extend base templates) available for Node.js?
RestClient.post("auth/login/", loginparam, new AsyncHttpResponseHandler() {
@Override
public void onSuccess(String s) {
Toast.makeText(getApplicationContext(), String.valueOf(s.toLowerCase().equals("ok")), Toast.LENGTH_LONG).show();
if (s.equals("ok")) {
startActivity(new Intent(getApplication(), HomeActivity.class));
}
}
});
This is the code I used for login in android app, In the Toast text, I can see the server did returned "ok", but s.equals always failed in my case, can someone explain that? Thank you.
I use phpmyadmin to create mysql database. And I have set the auth type to cookie in the config.inc.php.
How do I change the time limit so that even if I logged in I stayed idle for hours it won't require me to log in again.
How can I protect an ASP Classic page with either HTTP AUTH (you must provide a username and password to service) or a randomly generated access key that will be included as one of the parameters of the HTTP POST using the variable name access_key.
Can anybody provide asp classic code in this regard?
Quick help will be appreciated...
PS: OrderGroove is a 3rd party service... neglect it.
I have authlogic going on my app, but now I need to have an an API. I
don't want to establish a session, just want a user to send in data in
a json request such as:
{"type":"address","password":"mypassword","name":"my notificaiton name
goes here","user":"myusername","text":"my interesting stuff goes
here"}
So questions -
1) is this a decent approach?
2) how do i do the auth inside my rails controller?
i have some knowledge of css,jQuery,Grails,django,servlets and jsp still i can't see me designing good professional looking websites .what am lacking ? should i start learning jQUery ui ,should i get into adobe products like flash i am pretty confused. i am pretty bad in the userinterface part,
In python (it's a Django filter), I'm doing this:
lReturn = re.sub(r'\[usecase:([ \w]+)]', r'EXTEND WITH <a href="/usecase/%s/\1/">\1</a>' % pCurrentProjectName, lReturn)
I'd like to use a function instead of a string (so I can check that the usercase is a valid name), so it would change to this:
def _match_function(matchobj):
lMatch = matchobj.group(1)
return "EXTEND WITH <a href='/usecase/%s/%s/'>%s</a>" % (pCurrentProjectName, lMatch, lMatch)
lReturn = re.sub(r'\[usecase:([ \w]+)]', _match_function, lReturn)
How do I get pCurrentProjectName into the _match_function() function?
Looking for a tool to UI testing on Linux .Platform used for development is django.
The idea is that the analysts will capture the tests thru some UI and it will be able to be played back over and over again.
I usually see Ruby on Rails books using
script/generate model Story name:string link:string
which is a singular Story, while when it is controller
script/generate controller Stories index
then the Story now is Stories, which is plural.
Is this a standard on Ruby on Rails? Is it true in other MVC frameworks too, like CakePHP, Symfony, Django, or TurboGears?
I see that in the book Rails Space, the controller is also called User, which is the same as the model name, and it is the only exception I see.
This is crazy, but I'm stumped! Once my user has logged into twitter via OAuth how do I determine their username using grackle?
@twitter = Grackle::Client.new(:auth => {
:type => :oauth,
:consumer_key => consumer_key,
:consumer_secret => consumer_secret,
:token => @access_token.token,
:token_secret => @access_token.secret
})
username = @twitte.something_here?
Well, I'm planning on releasing a Jar into the world but would prefer if the code was not readably available to anyone with a Java Decompiler as I want to control access to the program with usernames / auth codes etc.
After some Googling I haven't found any software to do this for me, so I was wondering what steps to take from here; if anyone can point me at any software or information on methodologies of obscurification I would be grateful.
Cheers again Stack Overflow.
I've been looking to make things a little more DRY, both on my personal projects (django) and at work (JSP/struts,PHP).
SASS+HAML seem to be quite popular, but, do those outside of the Rails community generally use these as well, or do they opt for other similar solutions? Which do you use, and what was the reasoning behind the choice?
I'm trying to install mercurial-server, but getting such errors...
$ hg clone ssh://hg@<domain>/hgadmin
remote: mercurial-server: no such repository hgadmin
abort: no suitable response from remote hg!
I've just added my public key to keys/root and refreshed auth..
Anyone know what's the problem?
I am trying to get PHP to extract the TOKEN (the uppercase one), USERID (uppercase), and the USER NAME (uppercase) from a web page with the following text.
{"rsp":{"stat":"ok","auth":{"token":"**TOKEN**","perms":"read","user":{"id":"**USERID**","username":"**USER NAME**","fullname":"**NAME OF USER**"}}}}
(This is from the RTM api, getting the authentication token of the user).
How would I go about doing this? Thanks!
Hello,
I have a ejb module which contains my ejbs as well as web services. I am using Netbeans 6.8 and Glassfish V3
I right clicked on my web service and clicked "edit web service attributes" and then checked "secure service" and then selected keystore of my server. This is my sun-ejb-jar.xml file :-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-ejb-jar>
<security-role-mapping>
<role-name>Admin</role-name>
<group-name>Admin</group-name>
</security-role-mapping>
<security-role-mapping>
<role-name>General</role-name>
<group-name>General</group-name>
</security-role-mapping>
<security-role-mapping>
<role-name>Member</role-name>
<group-name>Member</group-name>
</security-role-mapping>
<enterprise-beans>
<ejb>
<ejb-name>MemberBean</ejb-name>
<webservice-endpoint>
<port-component-name>wsMember</port-component-name>
<login-config>
<auth-method>BASIC</auth-method>
<realm>file</realm>
</login-config>
</webservice-endpoint>
</ejb>
</enterprise-beans>
</sun-ejb-jar>
Here MemberBean is my ejb and wsMember is my webservice.
Then i made another project and added web service client and again right clicked on "edit web service attributes" and gave password as test and test. This username and password (test) is in Glassfish server in file realm. But when i try to invoke my webservice i always get
SEC5046: Audit: Authentication refused for [test].
SEC1201: Login failed for user: test
What am i doing wrong? Am i missing something?
I'm using entity framework model first development, and I need to do database migration often,
The EF database generation power pack doesn't help a lot, because that data migration never worked here.
The database migration here I mean, change the model, and then I can update the existing database from the model, but creating a new one.
Is there any free of charge tool here invented here yet? Or would this going to be a new feature of next EF release?
PS: I love django's ORM.