OpenID Attribute Exchange demo site
Posted by as Personal, blog, linux, network, news, php, soc
I have put up an demonstration site for my Google Summer of Code project evaluation purposes @
http://soc2008.hotdrupal.com/~anshu_p/op/
You may please post your comments/reviews at
http://drupal.org/project/openid_ax
or at
http://groups.drupal.org/node/10902
cheers ![]()
Popularity: 4%
OSS camps!
Posted by as linux, network, news, php, web
Am planning to attend the phpcamp to be held in pune on 20th September 2008 (saturday). http://phpcamp.org/
But of course if there are no dates clash with our respected placements!
“PHPCamp is a ‘ad-hoc gathering‘ for PHP community. It similar to barcamp , but more focused towards PHP based web application development. This means that anyone can come to PHPCamp and participate.”
And whats more, I might even have a opportunity to speak at the camp! If I get to attend it, I ll be speaking on my GSoC experience and about drupal in general.
Also there is the OSScamp Bengaluru Mobile 2008 to be held on july 18th. Lets see if I get to attend it also. Being in my final year now I plan to grab onto as many of these as possible.
Coming to GSoC, mid term evals are around the corner. They start from july 7th. Am almost done with my prep for mid term evals. Launching new sandboxes to test the setup. Will let you know soon more as and when things get done!
Popularity: 3%
Know your Opcodes
PHP programmers don’t really understand PHP.
They know how to use PHP - but they hardly know how it works,
mainly because it Just Works most of the time.
Very true. A level of abstraction is important for the programmer to concentrate on the logic, than handling cases for memory leaks and socket connections. With that said, it is equally important to know what is being done to the code to give the output.
PHP Code is compiled to Opcodes (like instruction codes) and instruction stack is processed. To see your opcodes, you need pecl/vld. Download it, compile it. For compiling, you might need the php-dev package. In ubuntu, php5-dev is the package name. To install :
$ phpize; ./configure; make; sudo make install
It puts the ‘vld.so’ shared object in your php-lib folder. Check whether vld is installed:
$ php -d extension=vld.so -m
Above command should list all the loaded modules, alongwith vld. Now, try it out :
$ cat test.php
define('MY_BLA',42);
echo MY_BLA;
?>
$ php -d extension=vld.so -d vld.active=1 test.php
Branch analysis from position: 0
Return found
filename: /tmp/test.php
function name: (null)
number of ops: 7
compiled vars: none
line # op fetch ext return operands
——————————————————————————-
2 0 SEND_VAL ‘MY_BLA’
1 SEND_VAL 42
2 DO_FCALL 2 ‘define’
3 3 FETCH_CONSTANT ~1 ‘MY_BLA’
4 ECHO ~1
5 5 RETURN 1
6* ZEND_HANDLE_EXCEPTION
That gives a lot of opcodes! (Remember 8085?) All these opcodes are C macros .
For now, have a look at opcodes for your code and see how you can optimize your it until I come back with the next.
Popularity: 2%
my tryst with OpenID
Posted by Anshu Prateek as NITT, network, php, web2.0
The first time I had heard of OpenID was sometime in last sem when Taggy had told me about it. That was the time when we were hacking wordpress-mu to only allow authentication using ADS server. Later on we also managed to implement LDAP and use it for system login and mail and svn and trac ![]()
Well then after that got busy with pragyan and the CMS developement, not to mention the Micromouse event.
And then came Google SoC. And I turn to the two things I know best, php and MySQL and something that I kept using in between, my openID (anshprat.wordpress.com)
Well now that am reading more and more about it, let me put in some of the things that I have stumbled across so far and which I have found intresting.
First and foremost the specifications. Its a first time that I have actually been able to read some specs and actually follow them more thoroughly than usual. Maybe the pleasant looks of the specs page also has a big role to play in that.
http://openid.net/specs/openid-authentication-2_0.html
Will soon put up a copy of my OpenID authentication
Then something that James Walker introduced me to, the OpenID attribute exchange.
You can read more about it in my Google SoC proposal out here
OpenID attribute exchange implementation
And another of my GSoC proposals out here
http://anshprat.wordpress.com/google-soc/
Ok, so coming back to OpenID.
Well openid.net is the place to begin all your head hunting.
Ok, after so much of wasting your time with my personal experience, and if you are yet to check out the above linked sites, here is a brief summary of what OpenID is.
OpenID is a shared identity service, which allows internet users to log on to many different web sites using a single digital identity, eliminating the need for a different user name and password for each site. OpenID is a decentralized, free and open standard that lets users control the amount of personal information they provide.
Using OpenID-enabled sites, web users do not need to remember traditional authentication tokens such as username and password. Instead, they only need to be registered with any OpenID “identity provider” (IdP). Since OpenID is decentralized, any website can use OpenID as a way for users to sign in; OpenID does not require a centralized authority to confirm a user’s digital identity.
OpenID is increasingly gaining adoption among large sites, with organizations like AOL, Google, IBM, Microsoft, Orange, VeriSign, Yandex and Yahoo acting as providers.[1][2][3][4][5] In addition, integrated OpenID support has been made a high priority in Firefox 3[6] and OpenID can be used with Windows CardSpace.
Other than the list of OpenID Identity providers listed here, the following are a few of my preferred identity providers.
wordpress.com. Yes! anshprat.wordpres.com is an openid! Basically username.wordpress.com can be used to sign up on any openid enabled sites. (Of course provided you are already logged into your wordpress account!)
yahoo.com
Beginning the february of 2008, all yahoo users can use their yahoo account as openid.
and some other identity providers like
Well the last one in the list is verisign provided OpenID. But just that the openid you get is a bit too long, as in username.pip.verisignlabs.com
Maybe they should come up with something like sf is for sourceforge. So maybe a pvl.com?
Will post my GSoC proposal for OpenID soon as that contains more info about the OpenID.
Popularity: 7%
Google SoC
Posted by Anshu Prateek as Life, news, php, web
Well, my experience of Google Summer of Code 2008 has been pretty nice so far. Even if I don’t get selected, the entire participation part has been a great experience. Got to interact directly with some people who are at the top of theire respective fields/projects. Notable ones are James Walker, from drupal. I had proposed OpenID server integration to Drupal. Walkah suggested OpenID Attribute Exchange rather as server support had already been done and only a few porting issues were left. Also was lucky enough to get a very constructive review from Rob Loach on my earlier openID integration application with drupal.
From the other organisation, Geeklog, I had the opportunity to interact mostly with Dirk Haun(dhaun) and Tony Bibbs.
These two are the main organisations I ve been dealing with. Will post all my other experiences as and when they happen. Will go back to work on further improving my application.
By the way, Google SoC students’ application deadline has been extended by a week. I was amongst the first few hundreds to know as the news was very much announced while I was there on the gsoc channel. when Lesli Hawthorn announced the news and changed the topic for the #gsoc channel. lh, as she is known at #gsoc is a Program Manager for Google’s Open Source Team.
Popularity: 8%
Drupal and OpenID
Posted by Anshu Prateek as mysql, network, news, php, web
Drupal now supports OpenID in their core with the release of their version 6.0.
From Drupal.org
“OpenID support is built in, making it even easier for your visitors to become a member of your site. OpenID is a free and easy way to use a single digital identity across the internet. With OpenID, login to all your favorite websites and forget about the online paperwork.”
But what surprised me in this case was Google’s failure to throw up relevant results.
Searching for “openid drupal” or “drupal openid” fails to through up any relevant results about drupal6.0 release and its integration/support of openid. Though the latter search query does give a result from the blog of one of the developers
http://walkah.net/blog/walkah/drupal-6-and-openid
Well am really surprised. This is the first time a google result has failed me. Maybe its time to start looking/using the alternatives. And maybe Google is just google and not Google. Makes no sense?Never mind!
Well looking forward to more sites supporting OpenID. So that I can logon everywhere with anshprat.wordpress.com (or maybe I ll delegate a personal openid site for such usage ![]()
http://wiki.openid.net//Delegation
Popularity: 6%
SDLC
Posted by Anshu Prateek as NITT, network, php
SDLC. Software Development Life Cycle.
Well you can read about the intricacies and the details at the above link. But here am gonna talk about the fastest SDLC that I ever saw and maybe was the only time I ll get to see., unless I decide to repeat it. Lolz
Well the pragyan CMS has been released on sorceforge.net
http://sf.net/projects/pragyan
And you can download the latest beta package at
http://sourceforge.net/project/showfiles.php?group_id=220286
Well, now here is the fun part. We released a package, 5.2.3, and within minutes of release it was outdated coz we made some important changes, removed the old package and put in a new one. Well maybe it aint apt to call it SDLC but still ![]()
Popularity: 7%







