Bunun Burada Ne İşi Var?
Dün şehre inmek için Sayın Menderes Türel’in zamanında Hafif Metro ...
RSS sağolsun yüzlerce siteyi takip edebiliyorum. Okuduğum yazılar arasından gözüme takılan son 10 tanesini aşağıda görebilirsiniz.
Beğendiğim yazıları buradaki RSS bağlantısı ile takip edebilirsiniz.
Bu sayfada gösterilen yazılar yazarlarına aittir. İçerikler kopyala yapıştır değildir, otomatik olarak çekilmektedir.
2011′in en hızlı büyüyen ve en etkili sosyal platformu kuşkusuz twitter oldu. Türkiye’de geniş kitlelerin kullanmaya başladığı, ünlü isimlerin de katılımıyla giderek şenlenen twitter, olayların hızla yayılmasında önemli rol oynadı.
41? 29! tarafından ‘Türkiye’nin Twitter Açılımı ve Alt Kimliklerimiz’ başlığıyla hazırlanan infografikte, Türk kullanıcılar farklı karakter tiplerine göre yorumlanmış. Twitter’daki Foursquare bağımlılarından, ‘paylaşmazsam ölürüm’ diyenlere, ‘olay yerinden bildirenler’den, ‘bana ilgi gösterin’ diyenlere dek toplam 17 karakter tipi belirlenmiş.
Görsel olarak çok zevkli olan infografiğe yazının devamında ulaşabilirsiniz.
Bu yazı Ali Altuğ Koca tarafından yazılmış olup Webrazzi'de yayınlanmıştır.
Sponsorlarımız:
Sendloop.com l Sahibinden.com l Kral Oyun l Kadınlar Kulübü l Tam indir l gruppal l Hepsiburada l Bigibid l Tamindir l Sporcum
Webrazzi'ye sponsor olmak ister misiniz?
Imagine if you could only get data from an API when things have changed or there is new data? Well, you do not have to imagine anymore, the Facebook Graph API now supports HTTP ETags. ETags support on the Facebook Platform can help you reduce bandwidth consumption and client-side overhead by suppressing output when making Graph API calls. In addition, clients (especially mobile devices on slow connections) can increase performance and reduce data usage when calling the Graph API with ETags.
This is how it works:
When you make a Graph API call, the response header includes ETag with a value that is the hash of the data returned in the API call. Pull this ETag value and use in Step-2. Next time you make the same API call, include the If-None-Match request header with ETag value pulled from step-1 for this API call. If the data hasn’t changed, the response status code would be 304 – Not Modified and no data is returned. If the data has changed since last pull, the data is returned as usual with a new ETag. Pull the new ETag value and use for subsequent calls.
Note: While ETags help reduce the data traffic, the If-None-Match GET will still count against the throttling limits for your app and must not be performed at a frequent rate. We recommend only do it for data that doesn’t change frequently like user’s friends, likes, photo albums, photos etc. Do not use it for news feed, messages etc.
The ETag is calculated using the entire response from the API call including its formatting. Developers should be aware that the formatting of API response output may be impacted by the user agent string. Therefore, calls originating from the same client should keep the user agent consistent between calls.
Example:
Install Firebug and Modify Headers add-ons on Firefox.
Fetching user’s friends: https://graph.facebook.com/me/friends?access_token=<token> returns friends data in JSON output and ETag in the response header. You can quickly test by visiting the Graph API Doc and clicking on the Friends sample link that auto generates access token for the session user and makes this API call.

Next create the If-None-Match request header in the Modify Header add-on tool with the ETag value in the quotes. Make sure the header is enabled (green lit).

Now call the friend Graph API again - https://graph.facebook.com/me/friends?access_token=<token>. Note that the API returns no data and the status code is ‘304- Not Modified’:

PHP Code Example:
The php code demonstrates ETags while fetching user’s friends. The code pulls the ETag from the response header and then call the same API again while passing the ETag value in the If-None-Match request header. Notice that the response for the second call is 304 – Not Modified.
<?php $app_id = 'YOUR_APP_ID'; $app_secret = 'YOUR_APP_SECRET'; $my_url = 'YOUR_REDIRECT_URL'; $code = $_REQUEST["code"]; echo '<html><body>'; // Auth the app using the server side OAuth 2.0 if(!$code) { // get permission from the user to publish to their page. $dialog_url = "http://www.facebook.com/dialog/oauth?client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url); echo('<script>top.location.href="' . $dialog_url . '";</script>'); } else { // get access token for the user $token_url = "https://graph.facebook.com/oauth/access_token?" . "client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url) . "&client_secret=" . $app_secret . "&code=" . $code; $access_token = file_get_contents($token_url); // get user's friends now we have the access token $friend_url = 'https://graph.facebook.com/me/friends?' . $access_token; // initialize curl if not yet initialized if (!$ch) { $ch = curl_init(); } /* * Disable the 'Expect: 100-continue' behaviour. This causes CURL * to wait for 2 seconds if the server does not support this * header. */ curl_setopt($ch, CURLOPT_HTTPHEADER, 'Expect:'); // set the URL to Graph API URL curl_setopt($ch, CURLOPT_URL, $friend_url); // we want header in the output curl_setopt($ch, CURLOPT_HEADER, true); // but do not display the curl output curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // execute the curl and get the info $response = curl_exec($ch); $info = curl_getinfo($ch); // extract the http code, header and body $http_code = $info['http_code']; $headers = substr($response, 0, $info['header_size']); $body = substr($response, -$info['download_content_length']); // convert header string into an associate array and extract the ETag $headers_arr = http_parse_headers($headers); $etag = $headers_arr['Etag']; echo '<a href="' . $friend_url . '"/>' . $friend_url . '</a/> <br /><br />'; echo 'HTTP Code: ' . $http_code . '<br />'; echo 'ETag: ' . $etag . '<br /><br />'; /* * Execute the same API curl call while passing the * ETag value in If-None-Match request header */ echo 'Executing the same API call with request header <br/> <b/>If-None-Match: '. $etag . '</b/> returns : <br/><br/>'; curl_setopt($ch, CURLOPT_HTTPHEADER, array('If-None-Match: ' . $etag)); $result = curl_exec($ch); $http_code = curl_getinfo( $ch, CURLINFO_HTTP_CODE ); echo 'HTTP Code: ' . $http_code . '<br />'; curl_close($ch); } echo '</body> </html>'; /* * Function to convert header string into associative array * Source - http://php.net/manual/en/function.http-parse-headers.php */ function http_parse_headers( $header ) { $retVal = array(); $fields = explode("\r\n", preg_replace('/\x0D\x0A[\x09\x20]+/', ' ', $header)); foreach( $fields as $field ) { if( preg_match('/([^:]+): (.+)/m', $field, $match) ) { $match[1] = preg_replace('/(?<=^|[\x09\x20\x2D])./e', 'strtoupper("\0")', strtolower(trim($match[1]))); if( isset($retVal[$match[1]]) ) { $retVal[$match[1]] = array($retVal[$match[1]], $match[2]); } else { $retVal[$match[1]] = trim($match[2]); } } } return $retVal; } ?>Sample Code Output:
https://graph.facebook.com/me/friends?access_token=<access_token> HTTP Code: 200 ETag: "84a290085a1bb6df44534ac017bfed800c407a15" Executing the same API call with request header
Geçtiğimiz yılın üçüncü çeyreğinde Apple’ı geride bırakarak en çok satış yapan akıllı telefon üreticisi konumuna yükselen Samsung, dördüncü çeyrekte karlılık rekoru kırdı. Firma, en son 2010′un ikinci çeyreğinde ulaştığı rekor kar rakamının üzerine çıkarak 2011 Q4′te 4.5 milyar dolar kar beklediğini bildirdi.
Firmanın karlılığında son tüketiciye cihaz satışının yanında bellek yonga setleri ve ekran satışlarındaki yükseliş de önemli rol oynadı. Ancak kayda değer olan, kar tablosundaki en büyük payın firma tarihinde ilk kez cihaz satışından gelmesi.
Firmanın duyurduğu Q4 beklenti rakamlarına göre işletme karı bu dönemde 5.2 trilyon won (4.5 milyar dolar) olacak. Yıl başında sözkonusu dönem için belirlenen hedef 4.7 trilyon won (4.05 milyon dolar) idi. Tahmini rakamın zamanında analisterce ‘iyimser’ olarak nitelendirildiği düşünülürse, karlılıkta gerçekleşen artışın daha da belirgin bir başarıyı işaret ettiği değerlendirmesi yapılabilir.
Firma bundan önceki rekorunu 2010′un ikinci çeyreğinde yaşamış, o dönemde 5 trilyon won kar açıklamıştı.
Galaxy farkı
Apple’ın yoğun patent davalarıyla köşeye sıkıştırmaya çalıştığı Samsung, tablet satışlarında bazı ülkelerde zaman zaman ‘ihtiyati satış yasağı’ gibi kararlarla karşılaşsa da akıllı telefon kategorisinde Galaxy serisinin başarı kardaki patlamada önemli rol oynamış görünüyor.
Dördüncü çeyrekte küresel pazara 35 milyon adet akıllı telefon süren firmanın 2012′de toplam 170 milyon adet satış yapması bekleniyor. Bu rakam 2011′de 95 milyon olarak gerçekleşmişti.
Geçen ay tanıtılan tablet-telefon melezi, 5.3 inç ekrana ve çift çekirdekli işlemciye sahip Galaxy Note’un Avrupa ve Asya pazarlarındaki başarısı, başta ABD olmak üzere tüm diğer pazarlardaki satış tahminlerini de yükseltmiş durumda. Ayrıca akıllı telefon ve tablet pazarlarındaki hızlı büyüme, Android işletim sisteminin en büyük taşıyıcısı konumundaki Samsung’a yarayacak.
Samsung, 150 milyar dolar civarındaki hisse değeriyle halen Asya’nın en değerli teknoloji firması konumunda.
Bu yazı Noyan Ayan tarafından yazılmış olup Webrazzi'de yayınlanmıştır.
Sponsorlarımız:
Sendloop.com l Sahibinden.com l Kral Oyun l Kadınlar Kulübü l Tam indir l gruppal l Hepsiburada l Bigibid l Tamindir l Sporcum
Webrazzi'ye sponsor olmak ister misiniz?
When it comes to web development tools for the Firefox web browser, Firebug is usually named at the top of everyone’s list. The program integrates well into the Firefox browser, offering tools to edit, debug or monitor outputs for web pages on the Internet and local web pages that are still in development.
Firebug 1.9 has been released yesterday. It will be the main version for all Firefox versions up until Firefox 12, when Firebug 1.10 will take over. The first 1.10 alpha is expected to be released in the coming week.
A blog post at Mozilla Hacks details the changes and new features that the developers have built into Firebug 1.9.
The Firebug windows, originally displayed at the bottom of the browser window can now be displayed at all four sides of the browser window. It is furthermore possible to detach it from the window. The option can be interesting for users who work with widescreen monitors or on multi-monitor systems.
Another interesting new feature is the syntax error positioning, which now highlights the exact position in a line of code where an error occurred. Instead of having to check the code manually, that’s now done automatically by the extension.
A new column in the Net panel is now displaying the protocol of a connection. This offers some interesting options, for instance the ability to check if a secure site is sending all items with the https protocol.
A font viewer and font tooltips have been added to the web development extension as well. Tooltips work by simply hovering the mouse cursor over font information ina style sheet. The Font Viewer instead can be used to check all fonts that are loaded by a page, provided they are in woff format.
Check out the blog post for additional information and details about Firebug 1.9. Interested Firefox users can download the latest version from the official Mozilla Add-ons repository.
© Martin Brinkmann for gHacks Technology News | Latest Tech News, Software And Tutorials, 2012. | Permalink |
Add to del.icio.us, digg, facebook, reddit, twitter
Post tags: firebug, firefox add-ons

Geeks and repetitive tasks (Bruno Oliveira) [via Geeks are Sexy]
HTG Explains: Are Mirrorless Cameras the Future of Digital Photography? How To Make Photoshop Cartoons In About One Minute How to Use Your Android Phone as a Modem; No Rooting Required, Redux

Twitler yükleniyor... 5 saniye sonra
Bıdı bıdı bıdı bıdı dıdı dıdı dudu dudu hıdı hıdı hödü hödü yüklüyoruz öhüm öhüm bıdı bıdı vs vs... 6 nanosaniye önce
Yüklenmenin geç olmasının sebebi ben değilim, Twitter API'sinin yavaş olması. Gudu gudu hıdı hödö büdü büdü... 25697 asır önce
Ha tabi bunları okumuşsan, bu sitenin çok gizli bir özelliğini bulmuşsun demektir. ;) Tebrikler. Bu "sürpiz yumurta"yı bulduğunu bana da haber verir misin? Tıkla! 6 dinazor önce
Yeni yazıları takip etmenin
bir sürü yolu var!