Facebook email permissions problem

Leave a comment

I just found out that if the user has an unconfirmed email in Facebook (i.e. Facebook sent him a validation mail to his email address but he didn’t respond) Facebook WILL NOT pass that email to your app even if he gave you the email permissions (!!!).

So what I did is use his Facebook email if he has a user name (i.e. userName@facebook.com).

How to take a screenshot in Facebook Poke without your friend knowing

Leave a comment

mzl.lvmquimn.175x175-75

Facebook just released Facebook Poke in the App Store, where You can send pokes, messages, photos and videos, to friends.
The nice feature is that when you send messages, photos and videos, you can choose how long they’ll be available for your friends to view up to 10 seconds. After that, they disappear from the app.

If you do take a screenshot, your friend will see304363929683337_1446266656聽next to your name letting them know聽you took it! Like a little snitcher 馃檪

AND HERE COMES THE HACK

In order to not “get caught” what you need to do when you got your friend聽poke, message, photo or video:

  1. Press the home button
  2. open settings app
  3. enable “Flight Mode”
  4. Press the home button again
  5. Open again聽Facebook Poke
  6. Press your friend message to see it.
  7. Quickly screenshot the message (Home and Sleep buttons at the same time).
  8. Press the home button
  9. Press the home button twice and kill聽Facebook Poke

And voila! Your friend聽poke, message, photo or video screenshot is in your device, and your friend would not get the infamous聽304363929683337_1446266656! 馃檪

Try it for yourself!

Thingies

Leave a comment

Logo_12_12_12

My new iOS app,

The first STEALING聽app in the world!

 

Want to know more? click聽here

How to remove Wikipedia Blackout with Chrome

5 Comments

As you all aware of, Wikipedia blackout their English website to protest against SOPA.

Although I’m very much against that law, the blackout can really damage other people work and education.

So for them here is the way to remove the blackout with using nothing but the chrome browser:

1. Go to your desired Wikipedia entry.

2. Right click the mouse on the big black W, and choose inspect element.

3. Press the delete button to remove the blackout div (It’s this one:

<div id="mw-sopaOverlay">...</div>

but you are already on it, so just press delete).

4. Go to the first element of the inspection – the head element – and press the arrow to open it and see all its contained elements.

5. Go to the last head contained element – this one:

<style id="mw-sopa-blackout">...</style>

and press delete button to remove it.

6. Now go to the body element and press the arrow to open it (if it’s not opened yet) and see all its contained elements.

7. Go to the content div element, this one:

<div id="content" style="display:none;">...</div>

double click “display: none;” and press the delete button to delete the style.

And voila, Wikipedia is as it was like no !@$#% SOAP Law was ever conceived! 馃檪
Enjoy

Muzik Market 2011 competition code parser for not just music Page

2 Comments

This is the code I’ve written to sum up the votes for the聽Muzik Market 2011 young artists competition.

The competition was in facebook here:聽https://www.facebook.com/NotJustMusic?sk=app_6009294086

here is a screen shot:聽

The voters can play each one of the youtube videos, and than write in the comment box which young artist the vote for.

I needed to parse their comments, and could not used the facebook graph api, because the comments are really the deprecated FBML fb:comments.

So I used a little bit of C# ,LINQ and regex matching to get the votes.

I saved the html source in a file (that you can download with the full html from here: 聽http://db.tt/6FthoYs)

the code is:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;

namespace NotJustMusic
{
public class MuzikMarketParser
{
private static IDictionary<long,string> mUsersMsgs = new Dictionary<long, string>();
public static void Main(string[] args)
{
int totalVotes = 0;
var s = File.ReadAllText(
“muzikmarket2011CodeBehind.txt”);

var m = Regex.Match(s, “<a href=\”http://www.facebook.com/profile.php\\?id=([\\d]+)\”>[^<]+</a><span class=\”wall_time\”>[^<]+</span></h4><div><span dir=\”rtl\”>([^<]+)”, RegexOptions.IgnoreCase | RegexOptions.Compiled);
AddVotesToDic(m, ref totalVotes);

m = Regex.Match(s, “<a href=\”http://www.facebook.com/profile.php\\?id=([\\d]+)\”>[^<]+</a><span class=\”wall_time\”>[^<]+</span></h4><div><br>([^<]+)”, RegexOptions.IgnoreCase | RegexOptions.Compiled);
AddVotesToDic(m, ref totalVotes);

m = Regex.Match(s, “<a href=\”http://www.facebook.com/profile.php\\?id=([\\d]+)\”>[^<]+</a><span class=\”wall_time\”>[^<]+</span></h4><div>([^<]+)”, RegexOptions.IgnoreCase | RegexOptions.Compiled);
AddVotesToDic(m, ref totalVotes);

m = Regex.Match(s, “<a href=\”http://www.facebook.com/profile.php\\?id=([\\d]+)\”><span dir=\”rtl\”>[^<]+</span></a><span class=\”wall_time\”>[^<]+</span></h4><div>([^<]+)”, RegexOptions.IgnoreCase | RegexOptions.Compiled);
AddVotesToDic(m, ref totalVotes);

m = Regex.Match(s, “<a href=\”http://www.facebook.com/profile.php\\?id=([\\d]+)\”><span dir=\”rtl\”>[^<]+</span></a><span class=\”wall_time\”>[^<]+</span></h4><div><span dir=\”rtl\”>([^<]+)”, RegexOptions.IgnoreCase | RegexOptions.Compiled);
AddVotesToDic(m, ref totalVotes);

var mNotMatched = Regex.Match(s, “<a href=\”http://www.facebook.com/profile.php\\?id=([\\d]+)”);

while (mNotMatched.Success)
{
var id = long.Parse(mNotMatched.Groups[1].ToString());
if (!mUsersMsgs.ContainsKey(id))
{
Console.Out.WriteLine(id);
}
mNotMatched = mNotMatched.NextMatch();
}

var theAssembly = mUsersMsgs.Values.Count(p => p.Contains(“讗住诪讘诇讬”) || p.Contains(“assembly”) || (p.Contains(“砖讬专”) && p.Contains(“1”) && !p.Contains(“10”)));

var netaGalGal = mUsersMsgs.Values.Count(p => p.Contains(“neta”) || p.Contains(“gal”) || p.Contains(“谞讟注”) || p.Contains(“讙诇”) || (p.Contains(“砖讬专”) && p.Contains(“2”)));

var setler = mUsersMsgs.Values.Count(p => p.Contains(“住讟诇专”) || p.Contains(“住讟讗诇专”) || p.Contains(“诇讬讬谉”) || p.Contains(“stelar”) || p.Contains(“lane”) || (p.Contains(“砖讬专”) && p.Contains(“3”)));

var epicSign = mUsersMsgs.Values.Count(p => p.Contains(“epic”) || p.Contains(“sign”) || (p.Contains(“砖讬专”) && p.Contains(“4”)));

var asaf = mUsersMsgs.Values.Count(p => p.Contains(“assaf”) || p.Contains(“asaf”) || p.Contains(“讗住祝”) || p.Contains(“驻讬讬讘讬砖”) || p.Contains(“驻讬讘讬砖”) || (p.Contains(“砖讬专”) && p.Contains(“5”)));

var hofitDror = mUsersMsgs.Values.Count(p => p.Contains(“dror”) || p.Contains(“hofit”) || p.Contains(“讞讜驻讬转”) || p.Contains(“讚专讜专”) || (p.Contains(“砖讬专”) && p.Contains(“6”)));

var daniel = mUsersMsgs.Values.Count(p => p.Contains(“daniel”) || p.Contains(“讚谞讬讗诇”) || (p.Contains(“砖讬专”) && p.Contains(“7”)));

var moish = mUsersMsgs.Values.Count(p => p.Contains(“dokler”) || p.Contains(“moysh”) || p.Contains(“诪讜讬砖”) || p.Contains(“诪讜讬砖”) || p.Contains(“讚讜拽诇专”) || p.Contains(“讚拽诇专”) || (p.Contains(“砖讬专”) && p.Contains(“8”)));

var omer = mUsersMsgs.Values.Count(p => p.Contains(“注讜诪专”) || p.Contains(“住讜诇讜讚讜讱”) || p.Contains(“住讜诇讚讜讱”) || p.Contains(“omer”) || (p.Contains(“砖讬专”) && p.Contains(“9”)));

var benia = mUsersMsgs.Values.Count(p => p.Contains(“讘谞讬讛”) || p.Contains(“讘谞讬讬讛”) || p.Contains(“讘专讘讬”) || p.Contains(“barbi”) || p.Contains(“benia”) || p.Contains(“讘 谞 讬 讛”) || (p.Contains(“砖讬专”) && p.Contains(“10”)));

Console.Out.WriteLine(“theAssembly: ” + theAssembly);
Console.Out.WriteLine(“netaGalGal: ” + netaGalGal);
Console.Out.WriteLine(“setler: ” + setler);
Console.Out.WriteLine(“epicSign: ” + epicSign);
Console.Out.WriteLine(“asaf: ” + asaf);
Console.Out.WriteLine(“hofitDror: ” + hofitDror);
Console.Out.WriteLine(“daniel: ” + daniel);
Console.Out.WriteLine(“moish: ” + moish);
Console.Out.WriteLine(“omer: ” + omer);
Console.Out.WriteLine(“benia: ” + benia);

Console.Out.WriteLine(“Total Votes: ” + totalVotes);

Console.Out.WriteLine(“Total Unique Votes: ” + mUsersMsgs.Keys.Count);

Console.Out.WriteLine(“Total Unique Legal Votes: ” +(int)( theAssembly + netaGalGal + setler + epicSign + asaf + hofitDror + daniel + moish + omer + benia));

}

private static void AddVotesToDic(Match m, ref int totalVotes)
{
while(m.Success)
{
totalVotes++;
var id = long.Parse(m.Groups[1].ToString());
var msg = m.Groups[2].ToString();
if (!mUsersMsgs.ContainsKey(id))
{
mUsersMsgs.Add(id, msg.ToLower());
}
m = m.NextMatch();
}
}
}
}

the output is:

theAssembly: 4
netaGalGal: 2
setler: 179
epicSign: 9
asaf: 174
hofitDror: 10
daniel: 42
moish: 150
omer: 1070
benia: 1018
Total Votes: 2844
Total Unique Votes: 2675
Total Unique Legal Votes: 2658

So the winner with 1070 votes is the young artist

Omer Solodoch!

The Wheel Of time: Padan Fain Character Resemblance

1 Comment

Padan Fain

I want to add my 2 cents to the resemblance of Padan Fain from Wheel Of Time to Gollum and Mr. Smith:

  • Padan Fain resembles much Gollum from The Lord of the Rings, the points of聽parallel are:
  1. Both were changed to something much evil and possessed by a sinister artifact (the ring / the dagger) which they treasure the most
  2. Both are considered insane.
  3. Both had a name when they were 鈥渘ormal鈥 (Sm茅agol/Padan) and a name after the possession (Gollum / Ordeith || Jeraal Mordeth).
  4. Both chased the main character and a friend for retrieving the artifact (Gollum聽chased Frodo and Sam, Padan chased mat and Rand).
  5. Both tried to kill them but failed (Gollum聽tried to strangle Sam and kill them by luring them to Shelob cave, Padan tried to kill Rand and lure them to a trap in Far Madding).
  6. Both were in the possession by the dark one in its stronghold for retrieving information (Gollum by Sauron in mordor, 聽Padan by the dark one in Shayol Ghul)
  • Padan somewhat resembles Mr. Smith聽from The Matrix as both are considered anomalies in the pattern / Matrix, and second villains to the 鈥渘atural鈥 villains (the Machines / the dark one).
    As I see it both will play a significant role in the final showdown against the supposedly greater evil.

What do you think?

The plot of Lost explained 鈥 The incident, “It worked” and the Long Con.

1 Comment

This is the Lost Plot Explanation which its starting point is not in the crash of oceanic flight 815, but whether the blast of the hydrogen bomb by Juliet;聽聽 (讘注讘专讬转 讻讗谉)


It explains why the incident is so important, why Juliet said it worked even though the flash sideway was not created by it and what is exactly the Long Con:

a. In 1977 Juliet detonated the Jughead hydrogen bomb in the Swan construction
Site.

b. 2 major things set in motion by the blast:

1. The losties got back to their time otherwise Jacob would not have any candidates.

2. The hatch and its button were built in the future to preserve the electromagnetic energy.

c. Desmond reaches the island to guard the hatch and receives the fail safe key.

d. Desmond causes the losties to crash on the island the one time he did not push the button.

e. Here set in motion the “long con” of the smoke monster:

1. He appears as the smoke monster and chase Jack, and by that luring him into finding the “Adam and Eve” Cave.

2. The Finding of the cave leads to a cave-in on Jack and Charlie, which causes Charlie (by the explanation of Jack on the cave moth struggle that is strengthens him) to get off drugs,
which later be vital.

3. The smoke monster continues its long con and appears as Anna Lucia telling eco to help Locke.

4. Than it appears as Yemi (the brother of Eco) telling Eco he need to find the ? sign.

5. It appears again as Yemi telling eco to look for it in the cliff.

6. Eco goes to the cliff, finds nothing till he looks down and see the question mark in the grass.

7. Eco helps Locke to discover under the plane in the question mark spot the pearl station 鈥 the psychological Station.

8. That station that supposedly conducted psychological experiments on the people pushing the button
causes Locke to loose fate (fate VS Science yeah?) in the Island and wanting to prevent the button being pushed in the Swan station.

9. Locke later prevents Eco from pushing the button, and causing the start of the release of the
electromagnetic Energy that could destroy the World. And who comes to rescue?

10. Desmond with its Fail Safe Key (Do not forget than in the end he’s defined as a failsafe himself) uses it , stop the energy flow, and by that receives massive amount of electromagnetism.

11. That electromagnetism energy influence him in 3 ways:


i. Electromagnetism Resistance.


ii. To be unstuck in Time.


iii. Get its foretelling ability at least for a short while.
(He was not born with these abilities as some may think and the proof of that lies with that all of them happened only after the electromagnetism release through him, and even in its own words to Charlie: “You do not want to know what happened to me when I turned the failsafe key”)

12. The foretelling causes a vision to Desmond where he sees Charlie flipping a switch with a blinking Yellow light and drowning,and Claire leaving the island on the chopper,聽 and JUST because of the drowning they realize that the switch is in the underwater station, which leads him to take Charlie to that Station.

13. Remembers that Charlie was off drugs from the cave in lead to by smokie? Well that helped in 3 ways:
i. He was alive and in good shape to dive into the station.

ii. To realize that it’s truelove is with Claire and not the drugs (just as we saw in the limbo memories of the last episode).

iii. To lose his selfishness and sacrifice himself (for Claire to get off the Island) in order to turn off the
switch although he knows聽 he will drown.

14. Turning off the switch got Widmore to be able to put his team on the Island.

15. His Team chased Ben Linus , and the smoke master again appearing as Christian continue its Con and got Ben into turning the Wheel and moving the Island.

16. The turning of the wheel caused these things:


i. Prevented Widmore get a grip on the Island and killing all nominees ( as he
instructed his team to do).


ii. Moving Ben far from the island, letting him the possibility of organize the losties who managed to get off the Island into returning to the Island on Ajira
Flight.

17. The Ajira flight caused these things:


i. Returned some of the losties to the island but to the year 1977.


ii. Returned the other losties to the original timeline

18. Now comes the interesting part:
The return of the losties to 1977 caused in circularity to Cause number a! (wonderful circularity that would not happened if they would not get off the island) meaning the Detonation of the Jarhead Bomb by Juliet.
And let us not forget Faraday that could not have helped them with the bomb if he had not had a constant keeping him in time and that was Desmond (As Faraday wrote in its journal That if everything will went wrong His constand is Desmond).

19. At last the Long Con of the smoke monster (I refuse to call it the MIB as he is not Jacob brother at all) comes to an end by enabling Desmond to stand in the pool of light and plug of the cork without dying of electromagnetism, and by that turning off the
restrictions about him leaving the Island.

But here also comes to end the Smoke Monster himself; he did not realize that by turning off the restrictions he would turn off his immortality which lead to Jack finally being able to kill him, which lead to the conclusion that the Long con was actually Jacob Long Con has he let Smokey do all of the above knowing that eventually his immortality will wear off and lead to the final destruction of the monster.

Yes and one last thing, Juliet said it worked as she saw whole of the plot unfolds like it was unfold here, and realized that the bomb she detonated it鈥檚 the incident that set the things in motion and making Jacob Long Con to
succeed鈥

Older Entries