quinta-feira, 10 de março de 2011

Safari and IE8 get shamed at Pwn2Own, Chrome still safe... for now

Safari and IE8 get shamed at Pwn2Own, Chrome still safe... for now: "
Safari and IE8 get shamed at Pwn2Own, Chrome still safe... for now

Ahead of the most recent Pwn2Own, Google made a rather proud challenge: it'd pay $20,000 to any team or individual who could successfully hack Chrome. Two takers signed up for that challenge -- and then both backed down. One individual didn't show up and a second entry, known as Team Anon, decided to focus their efforts elsewhere. There's still time left for someone to come out of the woodwork and scrape off that polish, but as of now no brave souls have registered intent. Meanwhile, IE8 was taken down by Stephen Fewer, who used three separate vulnerabilities to get out of Protected Mode and crack that browser's best locks. Safari running on a MacBook Air got shamed again, cracked in just five seconds. Not exactly an improvement compared to how it fared in 2008.

Safari and IE8 get shamed at Pwn2Own, Chrome still safe... for now originally appeared on Engadget on Thu, 10 Mar 2011 07:56:00 EDT. Please see our terms for use of feeds.

Permalink | sourceComputerworld (1), (2) | Email this | Comments"

quarta-feira, 9 de março de 2011

Android – Hidding the status and title bar of your application

Android – Hidding the status and title bar of your application: "


An Android application provides a titlebar. The Android platform provides a statusbar.


If you desire to hide them you can do this either via code or via the theme setting in your “AndroidManifest.xml”.


To hide the titlebar of your application you can use the predefined style android:theme=”@android:style/Theme.NoTitleBar”. If you also want to hide the statusbar of your application use android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”. For example in my Android development tutorial :


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.vogella.android.temperature"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Convert"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>
<uses-sdk android:minSdkVersion="9" />

</manifest>

Give the following result.



You can archive the same via coding. Here is a corresponding snippet.


 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// hide titlebar of application
// must be before setting the layout
requestWindowFeature(Window.FEATURE_NO_TITLE);
// hide statusbar of Android
// could also be done later
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.main);
text = (EditText) findViewById(R.id.EditText01);

}

For more about Android Themes and Styles please see Android Themes.


I hope this helps. You can follow me on Twitter here.


flattr this!

"

terça-feira, 8 de março de 2011

Want to learn how to program for Android? Coding Green Robots plans to teach you just that.

Want to learn how to program for Android? Coding Green Robots plans to teach you just that.: "


Founders of Mobicartel, Matthew Patience and Greg Carron, have always been deep in the Android community in many ways from helping fellow Android lovers out with problems regarding app development (such as myself) to releasing some of their own great applications like Twitoc. Now they want to teach you!



Read more...

"

How to host your website on Google for free

How to host your website on Google for free: "google1

It’s a little-known fact that you can use Google to host a website for free using the company’s service designed for web apps.


The trick is to use Google App Engine to take advantage of 1GB of bandwidth per day and 1 GB of free storage space. Getting set up is a little different to setting up with a standard hosting provider, but, inspired by the news this week that the official website for this year’s British Royal wedding is being hosted by Google, Digital Inspiration has put together a guide that walks you though it all.


Image source




"

Things We Missed, You Shouldn’t [March 8th]

Things We Missed, You Shouldn’t [March 8th]: "

This image has no alt text

Lots of new apps announced, released, and updated today. There’s a bit to be had here for developers, too. Check out the things we couldn’t get to, but the things you shouldn’t miss in your daily dose of Android news. We’ll be back tomorrow with even more.

"

How Traffic Jams Happen

How Traffic Jams Happen: "

Via Autoblog, we get The Science Behind Traffic Jams:


>


"

Introducing the Google APIs Explorer

Introducing the Google APIs Explorer: "

Google is always looking for new ways to make it easier for developers to get started with our APIs. When you come across a new Google API, you often want to try it out without investing too much time. With that in mind, we are happy to announce the Google APIs Explorer, an interactive tool that lets you easily try out Google APIs right from your browser. Today, the Explorer supports over a half dozen APIs – and we expect that number to grow rapidly over the coming weeks and months.






By selecting an API you want to explore, you can see all the available methods and parameters along with inline documentation. Just fill out the parameters for the method you want to try and click “Execute”. The Explorer composes the request, executes it, and displays the response in real time. For some APIs that access private data you will need to “Switch to Private Access” and authorize the Explorer to do so.



To get you started, here are some sample requests; follow the links and press “Execute”:




The Explorer makes it easier for developers to discover what APIs we offer and get started using them within minutes. If you have any questions or comments, visit the help page or the support forum. We’d love to hear your feedback.



Happy exploring!




By Anton Lopyrev and Jason Hall, Google Developer Team


"

domingo, 6 de março de 2011

Frases Famosas sobre Programação

Frases Famosas sobre Programação: "


Caros leitores do JornalJava. Passeando pela internet mundo afora, me deparei com um artigo muito interessante sobre frases famosas sobre programação, e sendo do interesse geral dos leitores do nosso estimado blog, repasso na integra!


Não garanto a fonte, ou a veracidade das frases. Só garanto boas risadas que somente nós nerds da programação vamos entender.



  1. “A programação hoje em dia é uma corrida entre engenheiros de software tentando fazer programas maiores e melhores a prova de idiotas e o universo tentando fazer idiotas maiores e melhores. Até agora o universo está ganhando.” – Rick Cook

  2. “Andar sobre as águas e fazer software a partir de uma especificação é simples se ambas estiverem congeladas.”- Edward V Berard

  3. “Uma linguagem de programação é de baixo nível quando exige atenção com o irrelevante.” – Alan J. Perlis

  4. “Um programa em C é como uma dança rápida sobre chão encerado, executada por pessoas segurando navalhas.” – Waldi Ravens

  5. “Eu sempre desejei que o meu computador fosse tão fácil de usar quanto o meu telefone; meu desejo se tornou realidade pois eu não consigo mais usar o meu telefone.” – Bjarne Stroustrup

  6. “O estudo da ciência da computação não consegue transformar qualquer um em um excelente programador, da mesma forma que o estudo de tintas e pinceis não transforma qualquer um em um excelente pintor.” – Eric S. Raymond

  7. “Não se preocupe se não funcionar direito. Se tudo funcionasse, você estaria desempregado.” – Lei de Mosher da Engenharia de Software

  8. “Certo, Java PODE ser um bom exemplo do que uma linguagem de programação deve ser. Mas as aplicações escritas em java são um bom exemplo de como as aplicações NÃO DEVEM ser.” – pixadel

  9. “Considerando o triste estado dos programas de computador, o desenvolvimento de software claramente ainda é uma arte obscura que ainda não pode ser chamada de uma disciplina de engenharia.” – Bill Clinton

  10. “O uso de COBOL deteriora a mente; o seu ensino deve, portanto, ser considerado uma ofensa criminal.” – E.W. Dijkstra

  11. “A versão orientada a objeto do ‘código espaguete’ é o ‘código lasanha’ – camadas em excesso” – Roberto Waltman

  12. “FORTRAN não é uma flor, mas sim uma erva daninha – é dura, raramente floresce e aparece em todo computador.” – Alan J. Perlis

  13. “Por muito tempo eu não entendi como algo tão caro pudesse ser tão inútil. Aí eu percebi que os computadores são máquinas estúpidas capazes de fazer coisas incrivelmente inteligentes; enquanto que os programadores são pessoas inteligentes capazes de fazer coisas incrivelmente estúpidas. Em resumo, nasceram um para o outro.” – Bill Bryson

  14. “Na minha opinião egoísta, os programas em C da maioria das pessoas deveria ser identado 6 pés para baixo e coberto de terra.” – Blair P. Houghton

  15. “A evolução das linguagens: FORTRAN é uma linguagem não tipada. C é uma linguagem fracamente tipada. Ada é uma linguagem fortemente tipada. C++ é uma linguagem cuja utilidade é fortemente exagerada.” – Ron Sercely

  16. “O bom projeto adiciona valor mais rápido do que custo.” – Thomas C. Gale

  17. “Falar é fácil. Mostre-me o código.” – Linus Torvalds

  18. “A perfeição é atingida não quando não se tem mais o que colocar, mas sim quando não se tem mais o que tirar.” – Antoine de Saint-Exupéry

  19. “C é excêntrico, defeituoso e um enorme sucesso.” – Dennis M. Ritchie

  20. “Na teoria, teoria e prática são iguais. Na prática, não.” – Yogi Berra

  21. “Você não consegue um grande software sem uma grande equipe, e a maioria das equipes de software se comporta como famílias disfuncionais.” – Jim McCarthy

  22. “PHP é um mal menor criado e executado por amadores incompetentes, enquanto que Pearl é um grande e perversivo mal executado por profissionais habilidosos mas pervertidos.” – Jon Ribbens

  23. “Pearl – A única linguagem que parece a mesma antes ou depois de ser criptografada.” – Keith Bostic

  24. “Eu inventei o termo ‘orientado a objeto’, e garanto que não tinha em mente o C++.” – Alan Kay

  25. “Aprender a programar tem a ver com desenvolvimento de software interativo tanto quando aprender a datilografar tem a ver com a escrita de poesia.” – Ted Nelson

  26. “Fique atento para bugs no código acima; eu apenas provei que ele está correto, eu não o testei.” – Donald E. Knuth

  27. “Análise de sistemas é como criar uma criança; você pode fazer um estrago imenso mas não pode garantir sucesso.” – Tom DeMarco

  28. “Não me interessa se roda na sua máquina! Nós não estamos entregando a sua máquina!” – Vidiu Platon

  29. “Medir o progresso de um programa por linhas de código é como medir o processo de montagem de um avião pelo peso.” – Bill Gates

  30. “A complexidade de depurar é o dobro da de escrever o código. Portanto, se você escrever código os mais inteligente possível, por definição você não será esperto o suficiente para depurá-lo.” – Brian W. Kernighan

  31. “A maioria dos softwares atuais são como as pirâmides do Egito, com milhões de blocos empilhados um em cima dos outros, nenhuma integridade estrutural, feita apenas pela força bruta e milhares de escravos.” – Alan Kay

  32. “O problema com os programadores é que você nunca consegue saber o que eles estão fazendo antes de ser tarde demais.” – Seymour Cray

  33. “Em duas ocasiões [os membros do Parlamento] me perguntaram: ‘Diga, Sr Babbage, se eu entrar na máquina números errados ela conseguirá sair as respostas corretas?’ Eu não sou capaz de entender a confusão mental capaz de gerar este tipo de pergunta.” – Charles Babbage

  34. “Codifique sempre como se o cara que for dar manutenção seja um psicopata violento que sabe onde você mora.” – Martin Golding

  35. “Existem duas maneiras de construir um projeto de software. Uma é fazê-lo tão simples que obviamente não há falhas. A outra é fazê-lo tão complicado que não existem falhas óbvias.” – C.A.R. Hoare

  36. Matemática simples: qdo um programa está 90% concluído, significa que os outros 10% restantes vão gastar o mesmo tempo que os 90% anteriores


  37. Vc não termina um programa. Vc desiste dele e as vezes ele teima em funcionar

  38. Um dia, se tudo der muito certo, a computação vai se transformar em uma ciência exata


Para completar, recomendo uma olhada nas maiores figuras históricas da computação através da memorável Smashing Magazine: http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/06/aboutprogramming04.jpg


fonte: http://www.junauza.com/2010/12/top-50-programming-quotes-of-all-time.html


traduzido por: http://dqsoft.blogspot.com/2010/12/lista-35-frases-sobre-programacao.html


Ficou faltando alguma? Mande a sua frase pra gente nos comentários!





"

7 Tips for Productively Working from Home

7 Tips for Productively Working from Home: "

There are a lot of benefits of working from home, from being able to see more of your kids to a flexible schedule and more. But it’s also very dangerous if you’re easily lured in by procrastination and the numerous distractions that can present themselves and hamper your work and productivity. If you’re going to work from home, be it a day here or there, or full-time, you’ll want to plan it out. Here are some tips for successfully working from home:



  1. Make yourself an office, or at least a work “station” area. This will be the spot that you do your work. If you don’t have a room that you can turn into a home office, you can set up shop at the kitchen table, although this is not ideal. Taking your laptop and plopping down on the couch in front of the television will present many temptations. You’ll want to make sure that your home office has everything that you need, and that may even mean getting an extra phoneline, be it a landline or a Skype account where you can be contacted at. Invest in a good desk, chair, and computer so you’ll be comfortable working, but not so comfortable that you’ll be tempted to slack-off.

  2. Try to set aside long periods of time for work. Working from home can give you much more flexible hours, but if you’re constantly interupted it’s going to be a lot harder to get things done. Try to make sure you get a few large blocks of time. For example, if you need to get in 8 hours of work, make 3 blocks of 3 hours, 2 hours, and another 3 hours. If you need to run errands or take care of other things, do them outside of the blocks of time during your “breaks.”

  3. Try to leave the house each day. Nothing will drive you crazier faster than being at home 24/7. It’s a great opportunity to go for a walk outside, clear your head, and get your bearings.

  4. Create a to-do list for the tasks you need to accomplish each day. Because it is so easy to get off task while working from home, having a checklist of the things you need to get done will help you visualize your progress. I’m not typically a list person, but I have found this to be very helpful, and when I’m slacking off it’s clearly visible by the lack of things checked off.

  5. Minimize distractions and set limits online. If the bulk of your work is done on a computer, you probably know all to well the distractions of the internet. It’s easy to fall into the trap of Facebook or other sites if you keep it open on one of your browser tabs all day. Allow yourself to check in before you start your work and on breaks only. When it’s work time, close any non-work related tabs and websites. If you keep Facebook open, you will undoubtedly keep flipping back to it to see if there’s anything new posted.

  6. Don’t procrastinate. Look at your to-do list and actually do everything on it. Don’t do 90 percent of it and tell yourself that you’ll just make it up and do it tomorrow. You’ll create a cycle of constantly pushing things off to another day that is very hard to get out of. There will be days when an emergency interrupts your work, as there would be if you were going into the office each day. If you’re already behind it can really put you back further.

  7. Take care of yourself. Make sure you eat a good breakfast so you don’t have to stop working when the hunger pangs kick in, and schedule yourself a reasonable lunch break. Some also find it helpful to dress as if they were going to work. It’s not necessary to put on a suit, but something more than sweatpants and a tshirt might help you feel more on-task. Schedule a lunch date to maintain social connections outside of your home.


Working from home takes discipline. If you’re just starting out, it may take you a little time to find your groove, but if you follow the tips above you’ll find it a lot easier. The key is to keep a good work-life balance, establish boundaries, and take care of yourself.



"

Android Becomes Number One in U.S. Smartphone Market Share

Android Becomes Number One in U.S. Smartphone Market Share: "

Today Nielsen is reporting that Google's Android mobile operating system has beat out RIM BlackBerry and Apple iOS to become the number one mobile OS in terms of consumer market share. Android has now reached 29% market share, compared with RIM's 27% and Apple's 27%. However, that's only one way to slice the pie.


Nielsen also notes that when looked at from a different angle - manufacturer market share, a way to break up the market by the handset makers' individual takes - it's Apple and RIM (each at 27%) who are clearly ahead. HTC is in third place using that metric, with devices running Windows Mobile/Windows Phone (7%) and Android (12%).


Sponsor



Manufacture os share


This isn't the first time headlines touting 'Android is #1' have been seen recently. In January 2011, analyst firm Canalys reported that Android reached the number one spot in terms of shipments worldwide, finally displacing Nokia from its longtime throne. Competing analyst firms questioned those numbers. They said they were seeing the same overall trends, but didn't believe Android had reached the number one position just yet.


Canalys had also previously claimed Android had reached the top position in the U.S. back in Q3 2010.


But all these numbers were tracking handset shipments, not consumer market share - that is, market share based on the phones actually purchased and used by end users. It's yet another way to slice the market share pie.


And there's a fourth way as well: profits. As independent mobile analyst Horace Dediu of asymco points out, with RIM and Apple, the two handset manufacturers that also make their own operating systems, 'not only are the volumes higher, but so are the margins and hence the profit share.'


Android More Popular with Young Consumers


In addition to general market share numbers, Nielsen also looked at buying trends among various age groups and found that those in the younger demographic were more attracted to Android. As always, Nielsen doesn't speculate as to why that is. But it could be something as simple as the more affordable prices of Android phones, at least in some cases. There are several mid-range to low-end Android handsets on the market that make for a decent enough 'first' smartphone for feature phone/messaging phone upgraders.


Smartphone age os


Discuss



"

Minha lista de blogs