Friday, 20 December 2013

Life Analyzer, a concept.


Last night when i was watching the famous series Dexter, i got struck by a wonderful idea. i.e,  "Why not make a complex life understandable". Which fulfills the basic question of each and every human being, "Am i living it right?"

So, having thought about this idea lately, i decided to pinpoint some algorithms which can actually help to analyze the life from being born until death.

How LifeAnalyzer works:

1. IDEA IN NUTSHELL:

This is a basic web application, where user registers and enter some information to produce a graph like structure which displays his/her own life from past/present and future events.

2. FACTORS: 

Now, the problem is how to make such complex algorithm which can actually decide whats the user life is going to be, by getting some of the life events from the user itself.

3. IMPLEMENTATION: 

The key metrics which is to be provided by users are:
Basic life events,Starting point, Decision points, Path taken on each decision points, Finish point(by estimated death)

INPUT TO BE TAKEN FROM USER:
1. Major decision points in lfe.
2. Expected scenarios from other decisions.
3. Lifeanalyzer will generate the happiness index, along with a flowchart/graph of users life, displaying what milestones he/she has achieved and will be achieving in future.



This is an example showing how life analyzer works:

This project is just not a web application that every web designer can implement with knowledge of web designing skills. This is purely a computer engineering project which includes usage of complex algorithms together with database handling mechanisms.




SWOT analysis:

STRENGTHS:

Great potential to attract large number of user's and can involve user to use LifeAnalyzer for long time.

WEAKNESSES:

Some decision points are hard to be judged, so this won't be an accurate measure.

THREATS:

Time consuming developments process.

OPPORTUNITIES: 

Able to meet the generosity of user's and their requirements.



HOW TO GENERATE REVENUE:

Just like Lumosity.com Charges user for more access to the features under Premium account section, LifeAnalyzer can charge for detailed life Analyzer. 



 



















Thursday, 28 November 2013

3:00 PM, the other day, found an interesting responsive template. The idea behind using responsive template is, the website can be run on diverse platforms. 

So i started converting my coded template to the responsive template i just found and making sure that no CSS and JS conflicts. Conflicts are avoided by taking notes of all the CSS and JS file import's, so that no two files are import at once.
I have adjusted the Boostrap Js with /theme/header.php to collapse the navigation bar for small window.
Rest of the part is included in /theme/index.php.
All the login sessions are handled in Header.php itself. 
Conversion of template took me 5 hour's of coding, resulting into cool responsive template supporting multiple resolutions.

Friday, 1 November 2013

9:00 AM: Started coding early in the morning, with only one motive to finish search. Search includes, "Search for books" and "search at location". I need to code for Autocomplete for retrieving book name from MYSQL using PHP. And after submitting that code, next page should include google map with POST request from book name textfield page. i.e, using $_POST['bookname']. So i searched for that particular book name and displayed it on map, if the book's available. It took me 3 hour's of coding.

Search for location includes searching random books at particular location. When user enter's any location. It redirects it to google map's page. Where all the books present at that locations are displayed. I have placed this search box for all the book worm nerds who just wants to read random books which are available close to their location. It took me another 3 hour's of coding with fixing some responsive template bugs and css fixes.

Wednesday, 23 October 2013

8:00 PM : 5 hour's of more coding left. I am still setting up the css property and handling the javascript for popbox login. Only the front page popbox is able to include the fields. Other pages does not suport the href links.
So, i come up with an idea that not to use the drop box for login. In replacement to that Id replace with fields using javascript will work.
3:00 in the morning, and the login backend + user profile code is still remaining. 

Thursday, 17 October 2013

I have started writing code for the login authentication. It's 5:00 in the evening and another 9 hours of coding is left. After spending a long time on CSS style clash and php login session interference with wordpress sessions, i have to comeup with an optimal solution which uses same sessions to work. However, i ignored the  "session cache limiter" for now and all the databases retrieval are working just fine.

2:00 AM at night : Finished working for login authentication. With proper wordpress header() and footer(). Need to add some more contents to extend the look and feel of the website. 

Tuesday, 15 October 2013

Just had 2 hour's of rest after having some excruciating boredom of college lectures. It's 4:00PM and i've got to finish with the security aspect of the login authentication which was up yesterday.
It includes proper message passing between the registration and login pages. Using Md5 encryption for password and  an email confirmation to avoid spam.
I believe that this much security would be enough to handle the traffic and will prevent the DB to be stolen by the college users.
3:00 AM in thr morning still a lot of coding left.

Wednesday, 15 May 2013

Remotely shutdown a computer with a cellphone.


Use your mobile phone to remotely turn off your computer.



What you must have?


1.A mobile phone with EDGE network activated to send an email from your mobile browser(or any browser/application).

2. A personal computer or laptop( That you wanted to shut down) at home which receives an email sent by your mobile phone.


Procedure:

What you have to do is accept an email at your computer(Using Microsoft outlook) which checks for headers strings of emails, and if that string matches the rules, you are gonna run an application which commands to forcefully shut down your computer.

YouTube Video showing the procedure step by step:






WATCH THIS VIDEO IN FULL SCREEN (720p)





Image of sending email from mobile phone:












It took approx. 2 minutes from sending this mail from mobile phone to shutting down of the computer.

                                                






Monday, 13 May 2013

Facebook hack. Photo Albums of non friends. ( EPIC HACK)

If you want to be creepy on Facebook. I have found the ultimate hack.



Now with my hack. You can access the photo albums of your non-facebook-friends.


Here is the trick.


1. Login to your facebook account. Open regular image of your's like this.

NOTICE: Regular, an in full image(Not the thumbnail). 
As an example i am showing you my profile.

















2. Open image in new URL. It should look like this.












3. Notice the Code in URL:   69626_10200508175211438_138039230_n


4. Now "Copy image URL" of the victim whose image you want to see.


Eg. VICTIMS page.






NOTICE: You wont be able to open the victims full image, as the image is not public. Just right click on the small image, i.e, the thumbnail itself and click "Copy Image URL" 




5. Victim URL should look like this:



Notice the code in VICTIMS url: 370303_100001264754872_414560566_n



5. Final Step:

Replace working full image URL code With Victims URL code.

E.g

Replace this URL:
https://m.ak.fbcdn.net/sphotos-f.ak/hphotos-ak-ash3/69626_10200508175211438_138039230_n.jpg

With

https://m.ak.fbcdn.net/sphotos-f.ak/hphotos-ak-ash3/370303_100001264754872_414560566_n.jpg

NOTICE: My code has been replace with victims Code.

6. Open the final URL. You are done. Full Image of non-facebook-friend.

Final IMG:


















Happy hacking.

Securing MySQL server in 5 minutes


Listen Only Where You Want to Hear

Just like memcache, the default mysql install is listening patiently on all your server’s ethernet devices for someone to connect. So, just like memcache, we need to tell mysql to only listen on the ethernet device we care about. For your average single-server web host, you only need to listen to your local host.
Find your my.conf file. On servers I manage, this is either at
/etc/my.conf
or
/etc/mysql/my.conf

Secure Your Root Password

When you first start mysql on a new install, it prints out a message that says something like “Don’t forget to set a root password!”, and gives you a couple of command-line examples. But guess what? A lot of people never get around to setting these (and I have been as guilty of that as anyone). Here are those commands again:
mysqladmin -u root password “newpassword”
mysqladmin -u root -h localhost password “newpassword”

Use an Application-Specific User

If you’re reading this blog, you probably have a Java, PHP, or Ruby application that isconnecting to your mysql server and accessing data in a database. We want to create a user specifically for our application, and give them just the abilities they need for our database.
dbock@my.example ~]$mysql -u root -p
you’ll be prompted to enter your shiny new root password. After you connect, we’ll type:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> GRANT ALL ON schpoo.* to 'my_app_user'@'localhost' IDENTIFIED BY '';
Query OK, 0 rows affected (0.11 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.06 sec)

Grant ALL? Seriously?

Well, I’m speaking with my Ruby on Rails hat on – and I’m generally going to use that user to read and write to the database as well as run migrations, so ‘ALL’ makes sense. If you want an extra dose of paranoia, you can grant different sets of privileges to different users – but doing that properly would become advice more tuned to configuring, say Hibernate, than mysql.

A Note About Passwords

We all know its bad to reuse passwords… so how do manage passwords for a dozen clients across a dozen applications, and not reuse passwords?
There is a great little command-line linux tool used for generating universally unique identification strings, called uuidgen. Here’s some sample output:
[dbock@my.example ~]$ uuidgen
b70b8753-bbc0-4881-9b81-5e00baacd39a
[dbock@my.example ~]$ uuidgen
8f79aadd-29a0-41b7-bf66-6ad23ea49f04
[dbock@my.example ~]$ uuidgen
ea56ef7f-556e-44d5-a808-8baebc74c3d1

Hiding address bar in pop up window using Javascript.

Hello guys


I was working on my project, and found out that all the latest browser's does not allow the hiding of Address bar( The URL display).
Here's my code:


<html>
<head></head>
<body>
<a href="http://localhost:8080/webSMA/WebManagement.html" onclick="window.open(this.href,'child','width=796,height=610,status=no,directories=no,menubar=no,toolbar=no,scrollbars=no,location=no,resizable=no,titlebar=no'); return false"><button type="button">WebManager EndPoint Editor</button></a>
</body>
</html>

PROBLEM

The above code will work properly in all browsers except Firefox. Because hiding the locationbar is disabled by default in Firefox3(and later versions) due to security reasons.
It works Fine in Internet explorer.
The problem with firefox, i figured out is the security issue. It ignores all the Javascript related to the
"Location= no and Resize=no" part.

SOLUTION

If you want to hide the address bar then,

We can hide/show the addressbar in Firefox by setting the below preference,
      Dom.disable_window_open_feature.location

Below are the possible values for this preference and their effects,
True:
Ignore "location=no" in the window features argument of window.open() and prevent popups from hiding the Location Bar. (Default in Firefox 3 and later versions)

False:
Allow popups to hide the Location Bar. (Default in Mozilla Suite/SeaMonkey and prior to Firefox 3)

You can modify this preference in two ways, about:config or user.js file. The below method shows how to change this preference using about:config option,

1) Type ‘about:config’ into the address bar and press enter
2) Filter for ‘dom’
3) Set ‘Dom.disable_window_open_feature.location‘ to false

There are also a bunch of other DOM options such as stopping new windows from opening with out the menubar (Dom.disable_window_open_feature.menubar), scrollbars (Dom.disable_window_open_feature.scrollbars) and such. You can find them here.