And both featuring Jason Statham:
Transporter3
Death Race
Via Miss Geeky
Today, I bring you three interesting resources from the Python World. The first one is a different approach to SQL in Python, using decorators. DB-agnostic (based on python db api 2.0), pySimpleDb makes it almost fun to use SQL in Python, object-oriented. Personally the best approach I have seen was Pungi’s1.
The second one is more for Unix geeks with a bit of Python flavor. Would you like to be able to pipe code inside python? Like xrange(-10, 10) | grep(lambda x: x % 3 == 2) | (x * (x + 1) for x in STDIN) | list
? Well python-pipeline is your solution!
Finally, I have spent a lot of quality time with Django (that is approaching 1.0) and here is a list of semantic apps and snippets to improve your projects.
1 which obviously was written by me. As an example of the syntax:
db = AutoDB('localhost',"user","pass","database")
for row in db.table:
row['field'] = row['field'].upper()
James Bennett wrote an interesting article called Let’s talk about DVCS
I agree 100% with him. People are all migrating to git and other DVCSs, but that approach is not the better for everyone. Myself, I like to have a central repository to all my team projects. I want users to commit to this repository, and not to have another ones. (I use SVN repos as a backup, and I trust myself more that I trust any of the people I work with for this kind of task).
But with SVN you can’t have offline commits, and that may become handy. Yes, that’s true. I’d love SVN guys to add what Bennett called waypoints, a way of doing intermediate commits in your local copy.
Please, get this thing in 1.6, and the GUI tools, please!
Friends don’t let friends run old browsers!
That’s the spirit of the PushUpTheWeb, a movement for people to include a small javascript code that alerts the user when he’s not using the latest version of his browser. I’ll definitely add it to some of my websites :)
Btw, if you make websites, take a look at A List Apart’s 2008 survey
Federico Mena-Quintero has given an interesting presentation on a Document-centric GUI for Gnome.
From my experience with non-tech people, I must agree with him that people waste too much time looking for their documents. Although I agree that a journal of files would do miracles, search is also something very powerful, and in most systems it’s too slow to use.
Estou quase a mudar de casa e está na altura de decidir o ISP a usar. Nos últimos 5 anos tenho sido Cliente SAPO ADSL com os quais tive vários problemas a nível de facturação (marcavam-me uns picos de tráfego que era impossível com a minha largura de banda. Depois tem um tarifário muito limitado que não excluí a assinatura do telefone. Ao longo destes anos todos a única coisa que gostei foi o serviço de dynip automático. Mas acho que vivo bem com outras alternativas como dyndns ou no-ip.org.
Como existe a possibilidade de começar a ter televisão por cabo ou IPTV para alargar a escolha a mais do que os 4 canais que temos actualmente, fiquei indeciso entre Zon, Meo e Clix.
Clix | Meo | Zon | |
---|---|---|---|
Downstream | 12Mbps | 8Mbps | 18Mbps |
Upstream | 512 Kbps | ? | 1Mbps |
Tráfego | Ilimitado | Ilimitado | Ilimitado |
Mensalidade Internet | €29,65 | – | €35,30 |
Televisão | 45 canais + 5 opcionais | 35 canais base + 2 Packs | 80 canais |
Mensalidade com Televisão | €48,00 | €49,54 | €57,69 |
Notas: | Já tenho router-modem compatível, pelo que era menos um custo. O IPTV parece ser o futuro, mas ter de comprar uma box para cada televisão, não me agrada muito. | Depois da Review do Macaco fiquei bem impressionado pelo serviço. Mas não devo poder esperar pela próxima box. | Nunca gostei da TVCabo/Netcabo. Demasiadas reclamações e serviço fraco. No entanto, gostei agora do Zon@Fon que parece que o tráfego FON não conta e tal só é possível por ser cabo. Mas eu não sou grande adepto de cabo, porque entre ADSLs posso mudar sem grandes problemas. E nDSL está a caminho! |
Notas gerais:
Tendo isto em conta, gostava de ouvir opiniões de clientes actuais, ou de quem saiba de alguma coisa que possa influenciar a minha decisão, uma vez que vendo este quadro, os concorrentes estão bastante empatados, mas estou mais inclinado para a Clix.
The main fears managers have around Python are: Risk, Recruiting, Performance and Immaturity. At this stage I can say we have overcome all these reservations.
- Recruiting – It turns out that smart and innovative people are attracted by Python .Innovative smart people can also learn Python very quickly.
- Risk – in one year we had only five cases where a Python specific bug occurred. We had many more ASP. NET, JavaScript, HTML and even Java specific problems.
- Maturity – not only is Python very solid, so is IronPython. The code is stable, the smart features work, the community is responsive and the libraries are rich. The only downside is the IDE and Visual studio integration, but this is progressing as well.
- Performance – Python flexibility allowed extremely fast optimizations at the system and algorithmic levels, without requiring premature optimization. The system and algorithm changes are the ones critical in a real world environment. Some issues are showing up, but it seems they can be solved with a reasonable cost.
Python for Executives a first-person story of moving from the Java\J2EE combo to IronPython/.NET and the beneficts that may bring to your company.
JeKnowledge é uma Júnior Empresa da Faculdade de Ciências e Tecnologias da Universidade de Coimbra, da qual faço parte e assumo o cargo de Director de Projecto.
Há algum tempo o Rafael Jegundo convidou-me para este projecto que estava a arrancar juntamente com uns colegas do departamento de física, eu era o primeiro de fora. Fomo-nos informando com as outras junior empresas já existentes no país e finalmente na última sexta-feira (18 de Julho de 2008), usando a Associação na Hora, os 22 membros fundaram a JeKnowledge1, tiveram a primeira assembleia geral e foi eleita a primeira direcção, da qual faço parte.
Os elementos da JeKnowledge podem ter duas categorias: juniores e seniores. O sénior é aquele que já tem experiência e que poderá orientar um projecto, ou desenvolvê-lo sozinho. É também da sua responsabilidade passar algum conhecimento aos outros elementos juniores.
Poderemos em casos pontuais ter a participação de professores, elementos da empresa cliente ou mesmo elementos de outsourcing, para garantir a qualidade dos projectos.
1 Legalmente houve uns problemas com a marca, e temos de usar a denominação “Conhecimento Prévio”, mas estamos a tratar da incorrecção.
Regina Spektor – Ghost of Corporate Future
Known thanks to Weeds OST
Even though Jeff Atwood believes that metaprogramming will lead to the apocalypse, I’ve recently discovered occasions where the metahammer has proven most useful.
Tony Perrie replies to Jeff Atwood about why monkey patching is okay to use. As long as you know what you are doing.
Oddly, I would get behind a law to make drunken monkeypatching a felony.
Writing Humble Javascript is a manifesto of some principles you should follow when developing in Javascript for web interface, that will make you have a clean and unobtrusive code.
If you follow this ideal, you will not mix javascript’s domain (behavior) with HTML’s structure and content nor with CSS’s presentation. Your website will run fine without CSS, Javascript or both. But you should read the whole thing to get the right idea.
a Vodafone deverá comercializar o Asus Eee PC na sua versão Linux, incluindo diversas aplicações open-source de produtividade, em conjunto com uma pen USB para acesso à Internet móvel de banda larga.
Fonte: Tek
O iPhone para o resto de nós…
Adeona is the first Open Source system for tracking the location of your lost or stolen laptop that does not rely on a proprietary, central service.
There are already some applications that do this, but they aren’t free nor open. This one is both.
Já várias pessoas me disseram para fazer um Ninjas a nível nacional. Pessoalmente nunca achei que seria boa ideia, porque estes projectos vivem muito da comunidade envolvida. E a nível local seria mais fácil. O que poderia ser comum a várias universidades seram sebentas, porque o resto varia de professor para professor. E para isso já existia o Sebentas.com.
Mas parece que agora estão a lançar um projecto à semelhança do que tinha pensado: Chama-se ucUckoo e em vez dos créditos que eu sugeri, usam mesmo dinheiro, e apenas 60% vai para quem fez o upload (o que poderá até ser justo tendo em conta que muitas vezes não é o autor). Aliás, um dos problemas era o copyright, que podia gerar alguns problemas. Gostava de ver como é que este projecto trata disso.
Fonte: Portugal Geração Start-up
It’s the one before tm(Open In TextMate)
As I stated in my Versions.app review, I believe VCS should adapt to your workflow, and not otherwise. I find myself doing so many SVN updates, that I even find it too painful to use the excelent SCPlugin menu.
What would be perfect is a button in Finder’s toolbar!1 And that’s what you can download here.
If you want Commit and Checkout buttons, just bug me to do the same trick to get them
This isn’t all result of my work, I just made the mashup of a lot of stuff together to achieve my purpose. This was inspired from Open in Textmate, from which I stole the base artwork.
The code that actually runs, its stolen from Subversion Scripts for Finder with a few modifications.
So I just did some Fireworks-fu and glued the whole thing together.
Since I’m kinda new to OS X, I struggle a bit to get the image right, so here’s a guide to do the same for your own scripts.
The icon in the finder is 32×32px and you can find in the zip the Fireworks png version of the one I made, and also a vanilla one for your purposes. Just edit with Fireworks, or your favorite editor. Now to get an ICNS file, DON’T use img2ics. Instead, use Icon Composer (in /Developer/Applications/Utilities, but you must have installed XCode first!!), edit the default icon, and drag-n-drop your PNG to the 32px square. Save it, replace droplet.icns and you’re done!
I usually release opensource stuff like this under WTFPL, but since I’m using other sourcea, this is GPL 2.0
1 As of Leopard, you can drag Applications to the toolbar. Just drag them and wait 2 seconds and drop it.
Webster Cook participou numa missa no campus da universidade no dia 29 de Junho. Depois de receber a hóstia, Cook, que fora à missa com um amigo não católico, em vez de a consumir imediatamente decidiu mostrá-la ao amigo que continuava sentado e nunca vira uma. Ainda não tinha dado três passos, quando foi agarrado e uma senhora lhe tentou abrir a mão à força. O jovem não gostou da violência e intimidação física que se seguiu e resolveu levar a hóstia para casa e devolvê-la apenas depois de receber um pedido de desculpas da igreja pelo sucedido.
Caiu o Carmo e a Trindade na comunidade católica norte-americana com este «crime de ódio» como nunca se viu, o jovem foi repetidamente ameaçado de morte, recebeu uma quantidade assombrosa de «hate mail», mesmo depois de se ter assustado com as proporções que o incidente assumiu e ter devolvido a hóstia «raptada» (sem pedido de desculpas).
Bill Donohue, o presidente da Liga Católica, não se conformou com a devolução do «refém» e organizou imediatamente uma campanha nacional contra o estudante que tinha cometido algo tão abominável, exigindo consequências para o acto que incluem a expulsão de Cook da Universidade.
‘Modern Web Standards’
What utter crap from Apple. A grand, holier-than-thou claim that IE’s failure to fully support web standards is the reason Apple discourage access to their new site.
A new site whose front page uses tables for layout, whose applications contain precisely no content in HTML and are entirely generated by JavaScript, a site which uses browser sniffing rather than progressive enhancement, fails to provide alt text on various images and suffers divitis littered with inline style elements. A web site whose meta redirect takes you to a faux 404 Not Found page if you have JavaScript disabled.
Even the fake 404 page, with a single column of content, uses tables and doesn’t validate.
Me.com has about as much in common with modern Web Standards as as a rhino and a quad bike.
I might agree with the lack of support of IE6. But lacking support for IE7 may not be the best choice. I know a few companies that their employees can only use IE7 and they are being excluded. Although IE7 may not follow the spec like the other browsers, it is the major browser around, and that should mean something.
Of course as a webdesigner I hate to hack around IE’s rendering, but in some cases I even find IE7’s approach better (like padding being inside width). But I understand that I must address IE7 browsers right now. And Apple doesn’t. Do they want to push Safari3 to their windows users?
Yes, I’m getting back to this subject. I’ve already wrote about the piece Stallman wrote on Gates leaving MS and that he shouldn’t be talking about proprietary software like that. Well, Matt Maroon writes Free & Proprietary and I agree with him at 100%.
Stallman, upon any research at all, appears to be the tech-industry equivalent of a communist. He thinks that proprietary software (software whose source code is not freely available) is essentially evil, and free software has become religion to him. He evangelizes it at every opportunity, demonizes anyone working toward a dissimilar goal (as in the Gates piece) and seems to be immune to any evidence that there might even be an opposing argument, let alone one that holds any truth.
I have already written about my view on proprietary vs opensource software, but they can both co-exist. I don’t believe that all website should be free, in fact many great opensource companies (like RedHat or MySQL) have used a community/opensource version and also a commercial proprietary version that has all the cutting-edge technologies that will eventually be available in the opensource version. Are they also evil? I don’t think. Oh, and Microsoft also has OpenSource software available ( IronPython, IronRuby and lot of stuff in CodePlex)
That, rather than insults, should be the Free Software Foundation’s approach. Don’t argue that Bill Gates was unethical for promoting proprietary software. Argue that he would have better served Microsoft shareholders (that was his job) by building and promoting open ones instead, because proprietary software is a bad idea. Raise awareness for your cause, but do it without vilification.
The problem is, Stallman clearly can’t win that argument. It’s hard to argue that the man who was the world’s richest for decades could have somehow done better for himself or his shareholders, or the world at large. It’s obvious that up to this point, proprietary software has created a vibrant ecosystem and immense profits that probably would not have existed were all software open source. It’s driven the computer revolution, which is the most significant shift in technology and user behavior in living memory. It may be that the tide is turning, and it’s becoming easier every day to make money from open technologies as well. But Bill totally won round 1.
So rather than trying to pose a logical argument, which cannot be done, like any religious man Stallman resorts to insults and vilification. Bill Gates isn’t a tech and business genius rolled into one (something incredibly rare) but instead he’s an enslaving, monopolistic, unethical software super-villain, whose only purpose in life has been to ensure that you cannot do what you want with your computer. He’s a very narrowly-focused Satan, the Beelzebub of the Free Software Religion, and therefore anything he does, including being by far the greatest philanthropist in the history of the world, is, by definition, evil.
Jacques Chester defends that Shared Hosting is doomed. I actually agree with his points: Manpower for administration server is becoming more expensive and hardware incredibly cheaper! So at some point, it would be cheaper to buy a VPS than a Shared Hosting account. And he has some pretty graphs to show that off.
He also refers to two examples of each kind of hosting and by coincidence (or not), I have one account in each of them( Dreamhost and Slicehost). And I use them for different reasons. I run a VPS on slicehost to run all the non-LAMP I have: Django and some non-web Python scripts. In Dreamhost I have the regular Wordpress blogs, some CMSs, a lot of backups (since they give me 200+ GB for storage) and also easy-to-configure SVN repositories.
This is why I think Shared Hosting will survive: A lot of people would gladly pay for someone to make all the admin-fu needed to keep their website running without a problem. They just want a write-and-upload workflow (or even something like Heroku). And they will want it to be scalable, but that’s another issue.
And I believe Shared Hosting will also move to another areas, like backups or syncing (somewhat like Apple’s Me.com), that I use through webdav in Dreamhost, to host SVN, Git or your favorite version control repositories (like BeansTalkApp) , to some online shared folders for office documents ( like Office Workspace or GoogleDocs) or even to some kind of online sharing I’m not thinking of right now.
Sure many developers will migrate since for a cheaper price will get more control over their stuff, but large-storage and other benefits from shared hosting will still hold a large slice of the pie.
Let’s say you want to open a video download from a remote machine. IPETEE would first test whether the remote machine is supporting the crypto technology; once that’s confirmed it would then exchange encryption keys with the machine before transmitting your actual request and sending the video file your way. All data would automatically be unscrambled once it reaches your machine, so there would be no need for your media player or download manager to support any new encryption technologies. And if the remote machine didn’t know how to handle encryption, the whole transfer would fall back to an unencrypted connection.
So if it’s technically possible, let’s go for it! Sure this brings some issues with security (like CSI-like need to identify who downloaded that content), but I guess we all deserve a little privacy on the web, right?
But he seemed optimistic that he would have at least a proof of concept implementation ready by the end of the year.
Source: NewTeeVee