This is a small function i wrote in C# to calculate the density of say twitter posts or events … it takes as a parameter a list of UNIX timestamps. It can be easily moddified to get a list of DateTime items.
private static DateTime ConvertFromUnixTimestamp(double timestamp)
{
DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0, 0);
return origin.AddSeconds(timestamp);
}
public Dictionary<int, int> CalculateDensity(List<int> timestamps)
{
// the Key represents the hour ,
// and the value represents the number of timestamps sent during a given hour
var converted = new Dictionary<int, int>();
foreach (var stamp in timestamps)
{
var hour = ConvertFromUnixTimestamp(stamp);
if (converted.ContainsKey(hour.Hour))
{
converted[hour.Hour]++;
}
else
{
converted.Add(hour.Hour, 1);
}
}
return converted;
}
JD: Honestly? The only thing that gives me comfort, you guys, is while I’m sitting at home, staring at the ceiling, just wishing that I had someone to talk to, is knowing that none of you idiots realize how lucky you are!
JD : I don’t think people are meant to be by themselves.
That’s why if you actually find someone you care about , it’s important to let go of the little things… even if you can’t let go all the way.
Because nothing sucks more than feeling all alone, no matter how many people are around.
хм … мисля да направя отделна категория само за rants …
Screw you! Screw you and every other person that doesn’t appreciate what they have ! Screw you all for not appreciating your friends for taking all your crap ! Be thankful for them, because without them you are nothing!
Още едно хубаво късометражно филмче.
Enjoy
Моментът в който осъзнаваш всичко. моментът в който знаеш къде си , кой си , и какво искаш да направиш. Моментът няма да продължи повече от няколко часа защото след няколко часа ще си изтрезнял , и въпреки всичко усещаш всичко. всичко ти е толкова ясно въпреки , че е толкова замъглено и няма да помниш нищо на сутринта. Някои хора живеят за този момент , а ти …. гледаш как да избягаш от него. Не е яко да знаеш всичко и да виждаш всичко. НЕ. Усещането , как всичко си идва на мястото и как а-логичните действия на хората добиват смисъл и ти е ясно кое, защо и как. Неописуемо е. Не искам да се повтаря.
И когато искам теб ми даваш само спомени
И когато търся теб намирам само спомени .. спомени!
Inside outside представя StreetArt художници от New York, Stockholm, Copenhagen и São Paulo и енергията която тези художници получават когато работят на улицата. Енергия която не могат да получат когато представят работите си в музеи и галерии , енергия която вдъхва живот на тяхното изкуство и на техния собствен живот.
Изгледайте го , струва си единият час.
- Humor.
The ability to laugh and smile and not take life too seriously. - Creativity
The ability to create whether it is art, design, music or some other creative field. - Passion
The ability to follow your heart and let it guide all your actions. - Uninhibited
The ability to live free from all that which suppresses and restrains. - Intelligence
Intelligence is sexy. Being a nerd is sexy. Being a bookworm is sexy. Knowing contemporary culture is sexy.
Склонен съм да направя компромис с до 2 от гореспоменатите неща (:
Изключително пристрастяваща комбинация от Psychedelic и Sci-Fi !
‘ISAM’ – Full album with track-by-track commentary from Amon Tobin by Amon Tobin
Categories
- Google (3)
- infinity (1)
- ROFL (9)
- Shit i like! (18)
- Still Life (18)
- Uncategorized (2)
- web 3.0 (4)
- Социална медия (2)
- Wish List (2)
- Благинки (6)
- Изблици (5)
- Лични (8)
- Мисли (7)
- музика (15)
- Мюзик ланд (2)
- Опера (3)
- Пари от интернет (3)
- Програмиране (4)
- C# (2)
- Разни (22)
- Скукотрепач (16)
- Филмотека (10)
Последни коментари
- Sem Marinovi1 on Lockerz
- Fireballbg on 5 things I look for in a woman
- Pepo on Опера-Смяна на облика(Skin-a)
- I’m different, I’m difficult. Awkward, Real. | Method-X on I’m different, I’m difficult. Awkward, Real.
- liliana0 on Шум
Мои неща
Tags
C# edno23 FaceBook Google hip-hop ILLMATE love love story in pictures manifesto Manu Chao matrix me Micro23 Music Opera pronobozo Qlimax song sotry Still Life Мисли Опера Пари от интернет Песен Програмиране Скукотрепач въпроси живот интернет лудост любов миризма музика наркотици неща нов помощ смърт смях социална мрежа усмивки училище филм хора чорапи
live form edno23.com- aviatrix: някой да се сеща как се казваше този актьор или поне в кой филм е участвал ?
- aviatrix: :Д току щщо забелязах че имам същия стол като хаус :Д
- aviatrix: @LoveCappuchino Честити рожден ден ! :) :)
- aviatrix: He's nervous, but on the surface he looks calm and ready
- aviatrix: :D the fresh prince remix !

