List methods from a source file

Sometimes source files can become quite large. This is common mostly in C. But this may happen in other languages too. It makes working with these files particularly hard. Off-course there are IDEs which lists method and properties and what not. But there is a fun way to do the same stuff using python. The regex for the signature of Java methods is, (public|protected|private|static|\s) +[\w\\[\]]+\s+(\w+) *\([^\)]*\) *(\{?|[^;]) You can use this regex in python and have some fun summarizing your Java source files. Here is the script: on Github and via Gist, Cheers!


Web Colors Chart

Preview of the Web Colors Chart PDF
Colors are beautiful, albeit they are. And we need them a lot, everywhere – in web designing, in using Photoshop, in doing graphic art, vector drawing, in paintings, dresses and anywhere we like to sooth our eyes with, or even to puzzle our eyes. Indeed, colors have names, but in computer, we need to have some models, like RGB, HSB etc. In CSS/HTML we often need to set colors, we can chose it literally from infinite set of them; whereas choosing them from a standard set with some name rather than numbers is pretty worthy. And, we can use the X11 standard for SVG, HTML or CSS.I have prepared a single page PDF chart containing all these color with their key names and RGB values (in both hex and decimal). You can get it from: go.nafSadh.com/WebColorsChart and it is in Public Domain.

ref:

http://www.w3.org/TR/SVG/types.html#ColorKeywords

http://www.uize.com/examples/sortable-color-table.html

https://en.wikipedia.org/wiki/X11_color_names

Google plus (vs) Facebook

Today I, and many of my friends and acquaintances, have started experiencing the new sensation on the web, Google’s new SNS – Google+ which people have already started to abbreviate as G+.

It was bit tricky starting up with G+, coz like all other projects they have started it with a limited access test phase. After getting an invitation, I opened Google plus with a great expectation to see amazing things and find some awesomeness but with great disappointment I found myself somewhere in just like another Facebook. At first I felt like I’m in a place where someone added a skin, some features of HTML5 and CSS on regular Facebook. They even have the layout noway other than that of FB! OK, I’m going to do a comparative study on this to.

Similarities

  • both have sharing (stream) options: status, links, photos, video
  • users can get connected with other users (friends on FB, people on G+)
  • the home has a 3-column layout
    • main contents (feed/stream) are in the middle
    • left column is for menus, links and chat
    • right column is for highlights, suggestions, AI generated material
  • people can comment on and re-share things of other people in both
  • you can tag and comment on photos in both
  • there is integrated chat feature from both having a link on the left column, and if you start chatting a new sub-window appears in the bottom right corner
  • there are home and profile for each users in both
  • each user have to set up a profile on both providing basic identity information and other info
  • both have notifications system
  • users can search people on both networks
  • Customizable sharing visibility; in both users can change the visibility of post while sharing

Similarities using different terms

  • Connection Cluster: You can make lists of your friends on FB, circles of people on G+
  • Click to appreciate: you can like posts on FB, click +1 on posts at G+
  • Interests: On FB you can like or show interests on things, pages, and subjects. On G+ you have spark

Differences

  • You can share locations on G+, not yet on FB
  • On G+ people can have group video chat (hangouts) but not on FB. FB have group text chats though with predefined or existing groups
  • FB has groups and networks. G+ don’t have yet
  • FB has notes and other applications, G+ don’t yet
  • FB has a lot of apps, hopefully G+ might have them as well
  • FB has public questions
  • On G+, you can add custom hyperlinks (links with texts); but on FB you can only place URLs

Who is better?

It is not yet the time to say who is better. But Facebook has the advantage of being first successful SNS and has built a nation in seven years. Google is a very popular brand with lot of fans and cults but Google plus has yet to start growing its circle. Google has advantage of having a lot of other web apps and features like Gmail, maps, web search, Picasa, Docs, voice and video chat, readers and lot more. Google has already integrated the G+ with all other of its service. Google have phone OS and going to pioneer OS for cloud user. Facebook has also plans for its own phone OS and have a good partnership with Microsoft. FB uses some of MS features like Bing and MS Office.

Google’s earlier projects in SNS were not successful; especially wave was shut down pretty soon. Buzz – which was Google soldier to battle against twitter was obviously not pretty welcome. People were forced not to disable Buzz completely because they were linked with Gtalk status. But, G+ is not same as the previous projects, it is lot better.

Let us see proves to be better.

But the ultimate question is, why and how people will move from Facebook to Google+? I’m pretty sure a lot of people will have G+ profiles, like as many of us have unused MySpace, AOL, Yahoo! Profiles. But will the total population move on to Google plus?

Facebook has a very big nation, almost every people with whom we usually make contacts have and regularly maintain FB accounts. Celebrities, brands and products have opted in FB for keeping in touch with fans, clients, users and well-wishers. It is really tough to take the risk of making another fan base right away. There are lots of pages in Facebook and they are actually acting as a ubiquitous feed reader. Instead of subscribing to RSS or ATOM of a web content provider like lifehacker or Gizmodo it has been better to like their FB pages and see their casts on FB home. There are lots more reasons people are so much into FB. So, what I’m asking, is not “if G+ can be a better alternative or not”, but is “if people would opt into another platform when the platform’s main metric of attraction is its population?”

I’ll end this post with the first posts of my friends on Google+

“facebooking in the google way!” – my first post on G+

“ফেসবুকের নয়া ভার্সন আর কি!!” – in Bengali meaning: “Whatever! Just a new version of Facebook!”

“রোদন করার নতুন অরণ্য পেলুম :-)” – in Bengali meaning: “Got another place to shout :-)”

“googling and adding (plusing)” followed by “best thing about google plus (till now) is that it is not blocked in office :D”

and some tweets:

#Google+ is a step forward but I’ll need at least 2 more social networks if I’m to become truly successful at getting Nothing done.

“Dear Steve Jobs how long will it take you to copy #google+ and call it magic?” – I found this tweet hilarious

“Is #Google+ making you guys re-evaluate your friendships?”

See also:
http://techcrunch.com/tag/google/
http://twitter.com/#!/search/%23google
http://xkcd.com/918/ – the most comprehensive definition of G+ is right there on XKCD
lifehacker on G+

HTML5, CSS3 — the lovely couple

 

Long since the inception of the idea of making a Semantic friendly HTML and designer friendly CSS…
Now, in the early summer 2011 we’ve seen a joint-force welcome initiative for HTML5 & CSS3 by all major browsers with the launch of Firefox 4, Chrome 11, Safari 5 and IE9 and the web world is ready to see the happy reign of HTML5 and CSS3. Opera seems to be bit late now in this regard. But I’m happy to see even IE is up for it!

When I’m posting this blog, HTML5 is still in Working Draft and CSS3 has a Candidate Recommendation . But, hopefully they’ll be standardized soon. For this while, to experience them, you may visit:

Check State of the support on browsers at findmebyIP.com’s this page

Now, I’m listing some links, which helped me working with CSS3 & HTML5:

Ok, you have read a lot on webpages, now you can have a cup of tea and read this book using Fx4 🙂

Computer Science Brain Hammers

I’m writing here after pretty long while. Several times I felt like writing, but could not do it altogether. Life seems a bit busier. It is almost just a “get up from bed – go to job – drink movie – sleep” cycle. By the way, in a discussion with my colleagues I found myself trying to remember some textbook names that I studied in the univ as an undergrad student.

You know, computer science is lot more about science than just about engineering and programming. Even though, I studied this subject in an engineering university I had no option to go away from the science and arts those lie (or may possibly lie in future) behind the screen (and cpu, gpu, ram, those programs u r running for ages, the shiny new app u r proud of, the new thing Steve Jobs announced about, the market’s hot new technology everyone is dreaming to buy blah blah and blah…). You want to graduate in computer science from a school, I assure you, it is just not learning some tools and languages. In fact, may be you are very capable of using WordPress, codex, Joomla and jQuery… you call yourself a php expert… ok! you are really a very kewl guy – I admit; but yet you are not a computer graduate… you may claim yourself to be very geeky but you are not amongst those geeks and nerds who turn the world into a new one everyday. To be a computer graduate, to become a software engineer or an embedded system architect you have to know a lot of things that are taught in all but many computer graduate schools. let me list some core courses you’ll see in Computer schools:

  • Basic programming
  • Discrete mathematics
  • Object Oriented Programming
  • Data structures
  • Algorithms
  • Numerical Methods/ Analysis
  • Applied statistics
  • Computer Organization and Architecture
  • Digital Logic Design/ Digital System Design
  • Microprocessor, Peripherals, Interfacing…
  • Computer Networks
  • Database
  • Operating System
  • Automata theory/ theory of computation
  • Compilers
  • Information System
  • Software Engineering
  • Artificial Intelligence

There are also some advanced subjects those you or your school may chose, including: Computer Graphics, VLSI design, Computer and Info Security, Machine Learning, Pattern Recognition, Neural Networks, Distributed Computing, Parallel Computing, Image Processing, Bio Informatics, Biomedical Engineering, Wireless networks, Digital Signal Processing, Decision Support System, Modeling and Simulation, Computational Geometry, Multimedia Technology, Computer Gaming, Augmented Reality,  Computer Systems, Embedded Systems, Data Mining, Cryptography, Natural Language Processing, Principles of Programming Languages, Machine Vision, Human machine Interfaces etc.

All these subjects there are to hammer your brain to shape it into a sharp and shiny piece of tool to do smart thinking. But still you are confined in a little world, you should also know the basics of some other engineering subject like basic engineering drawing. Many schools will also ask students of Computer Science and Engineering to acquire basic knowledge on related Electrical engineering and electronics subjects. for example:

  • Electrical Circuits (a.c. & d.c.)
  • Basic Electronics, Analog and Digital electronics
  • Basics of Signals, Filters, Pulse techniques
  • Electrical Machines
  • Basics of Power Electronics
  • Electrical Measurement and Instrumentation
  • Data Communication
  • Basics of Communication Engineering

Nevertheless, you will have to do a lot of mathematics and study a little bit of physics, chemistry and even sociology. Industrial Management, Accounting, Economics are those three subjects that might seem as pain in your a** in the graduate school, but u’ll really need them in real life (at least to manage your wealth and handle your boss… in cases what you’ll study in school will seem inadequate).

I started to write this blogpost aiming at making a list of important text books I read in my undergrad school and started to list some of the important subjects. But now as I’m feeling bit sleepy (Oh! God! I’ve remembered the names of a lot of subjects those made me sleep) I hope to make the list in a later post. Off the record: to make this list I’ll have to search the names in the deep corners of my natural neural network and also into the paper and electronic documents I’ve with around me. Wish me luck in this 🙂