Tag Archives: windows

Programadores Java por favor ajudem

Sorry for all readers, this post will be initially in Portuguese since is completely directed to Brazil, but a version of it in English can be found here: https://mcloide.wordpress.com/2013/05/31/java-developers-please-help/.

Ja nao programo Java a um bom tempo e honestamente a ultima vez que programei Java foi com o J2ME e o framework ainda era a versao 1. Recentemente me deparei auxiliando meu pai, um senhor de 70 anos, a resolver um problema que acontece especificamente com o site do Banco do Brasil (www.bb.com.br).

Estarei contando o acontecimento abaixo e no fim voces entenderao por que peco ajuda a mais programadores Java no assunto.

Por algum motivo o site do Banco do Brasil nao funciona em nenhum dos computadores do escritorio, mas funciona no computador pessoal dele em casa. Para uma definicao technologica, tanto a configuracao do computador pessoal quanto a configuracao dos computadores do escritorio sao:

  •  Windows 7 Profissional
  • Marca Dell
  • Browsers IE10, Chrome e Firefox
  • Java 7 (ultima versao)

Conversando com o pessoal do suporte tecnico do banco a principio nos foi sugerido que tinha um virus no computador e que este estava bloqueando o funcionamento do site do banco. Foi pedido um tecnico de informatica para avaliar o problema e o que foi sugerido pelo tecnico seria que tem alguma coisa que o site instala ou requer que foi danificado e apenas formatando o computador resolveria. A principio foi estranha a ideia mas considerando tudo que tinha sido passado, toda a frustacao, toda raiva e o fato que o computador precisava de uma boa limpeza, decidimos por formatar.

Se o computador foi formatado, tudo instalado com a ultima versao (drivers, software, etc), logica indica que o site deveria funcionar, certo? Errado o site do banco ainda nao funciona. Nao apenas o site mas tambem o gerenciador financeiro de empresa, outra aplicacao java.

O tecnico do banco que estava no escritorio deu 2 sugestoes:

  • ou o computador, que acabava de ser formatado, estava com virus novamente
  • ou o provedor Velox estava bloqueando o funcionamento do site

SERIO!!!!! O provedor Velox esta bloqueando o funcionamento do site do banco??????? So podem estar de sacagem comigo.

Neste momento eu tive mais do que certeza que tudo que tinha sido falado ate o momento era: rebimboca da parafuseta ou como fala-se nos EUA bullshit.

Verdade seja dita tem algum problema ou com o site do banco ou com o compuador ou o conjunto dos dois que impede o funcionamento correto do site, mas como o site ‘e uma aplicacao java, gostaria de ter uma opiniao sincera dos programadores java, Brasileiros ou nao, sobre o acontecido.

Para mim ja nao faz sentido saber que o site nao funciona com nenhuma versao anterior do Java e que o site nao funciona em nenhum dos browsers instalados nos computadores.

Como programador PHP toda aplicacao desenvolvida deve ter um suporte mimino de browsers e nao se tem uma restricao de Sistema Operacional a nao ser que o SO nao suporte algum browser.

Por isso venho por meio deste pedir a todos os programadores java que me ajudem a achar uma explicacao logica ou pelo menos sensata pela qual uma aplicacao Java que no caso ‘e um site, nao funciona de adequadamente em um computador que tem uma especificacao tao commun a milhoes de outros pelo resto do munto.

P.S. O unico supporte que existe para o site do banco ‘e via telefone (SAC) e sinceramente, para conseguir um tecnico de informatica do outro lado da linha ‘e necessario que a chamada seja feita por um gerente de contas da agencia do banco (ridiculo).

UPDATES

Conversando com o @gritante e @ratones no Twitter tive uma pequena pista que o problema pode estar numa atualizacao do plugin da GAS. Procurando um pouco de informacao sobre o assunto achei o seguinte artigo do Globo News: http://g1.globo.com/tecnologia/noticia/2013/04/software-bancario-brasileiro-pode-ser-causa-de-travamento-do-windows-7.html

Advertisements

Windows 8

I have finally taken a look on the new Windows 8 and it is truly a beauty, but, it is visually made for e-pads and not for normal PCs.

The welcome screen is like a big gadgets block with access to a app store. No more the old style Windows bar when you hit the windows key.

Annoying things:

  • the scrolling is side-ways so your mouse is useless
  • finding the control panel is a pain in the ….
  • most of the stuff is very well hidden

Fun things:

  • cntrl + alt + del still works
  • trying to find how to turn off the windows

Playing with it today I learned, with a friend of mine, a very good trick, with the welcome screen open, if you right click on a empty space, the full menu with the control panel will appear.

Windows 8 is an open space for a change on the current PCs and it clearly makes space for e-pads, phones, and a lot of new small apps in the same way that Google Chrome and Apple app store have.


How to get Zend_Tool working under Windows 7

This is a great post and resource form Calevans Blog. It’s a small step by step on how to get the Zend Tool working under XAMP in a Windows 7 environment.

http://blog.calevans.com/2010/02/23/how-i-got-zend_tool-working-on-windows/

Have fun.


My 1st impressions of a MAC

I have been always working with Windows and recently I have changed to Linux so it would be possible to boost my Desktop performance without much investment.

Working with Xubuntu for the past months has been wonderful, but now a major performance was need for necessary work. Talking with colleagues and friends, I have choosen a MacBook Pro, a extremly light weight notebook with a lot of power for the size.

Going to the Apple Store was fun. I had come to a store employee and told him that I needed a MacBook Pro that could hold a couple of Virtual Machines running at time and one of them was Linux. He got spooked, but actually helped a ton on choosing the correct one.

Easy setup, beautiful opening and yes, it is impressive. The first steps where easy, installing Skype, MSN Messenger Live, configuring email, installing the Eclipse PDT, VPN and installing VirtualBox, my main reason for using a Mac. I got pretty part of the setup of my environment done until I got stuck into some small problems.

Getting Apache working, configuring the httpd.conf and setting up some other development stuff. It took time, but most is done, now is just fine tunning.

There are some tricks that are usefull on a Mac and those I have learned today. Don’t get me wrong, I’m a confessed newbie on Mac’s, even knowing that I have already used Linux for a long time (believe me, it’s very similar, including commands, but is not the same).

The best trick: Use sudo nano to edit files that you wouldn’t normally do with a text editor because you don’t have permissions or the system don’t have permissions to it.

A very useful trick: Hit command + space to open the Spotlight. A mix of finder with run that allows you to execute command that is being searched and open documents.

There is much to learn with a Mac. Feels like that I’m on a Linux that was transformed into a “good guy” that can play cool games. Well, maybe we can change it back to a “bad boy” (Linux) and still play cool games 😉

So far, working with it has been wonderful, let’s see how it goes when I push it to the limit…


New resources

Happy Friday everybody ….

2 New resources for you to check out:

  1. Javascript Bookmarklets
  2. Zend Framework and Firebug – Log PHP warning, errors and exceptions

Don’t forget also of the PHPArch Free Webcast today about Running PHP on Windows with Hank Jansen and Zack Owens.

Have fun .. .


Context menu disable with JQuery

I have found a ton of tutorials teaching how to disable the context menu on browsers and in all of them I have found one flaw:

Does not work with Opera

It’s an anoying situation that got me thinking and searching for a solution through most part of the day and with no luck.

The function is simple:

$(document).ready(function()
{
$(document).bind(“contextmenu”, function(e)
{
return false;
});
});

and it works with (tested):

and it does not work with (tested)

After a lot of research I have found why it does not work with Opera:

Opera (9.5) has an option to allow scripts to detect right-clicks, but it is disabled by default. Furthermore, Opera still doesn’t allow JavaScript to disable the browser’s default context menu which causes a usability conflict.

You can try to disable by disabling the mousedown event filtering only for Opera, but I do suggest a lot testing on this.

To complete just an extra note: this function does not bind the documents inside an iframe, so in this case you should complete the function by disabling the context menu in the iframe document as well.


Test mail server tool

The main reason why I have created this blog was to keep all my resources and libraries at one place and share them with every developer on the web.

Today I found out that one good resource that I have used for a while was not blogged. The test mail server is a simple application that will take over your mail server locally so you can fully test your applications (basic mail config). If you are developing on Windows, that’s a must have tool.

I have added the link on my Resources page, but you guys can see the original post at: http://www.tiredrobot.com/2008/11/03/test-mail-server-tool/ .

Note: This is a great blog that have the same concept that this one (that I helped and help until today), but a bit older, so you can find more stuff like this and a lot more stuff for Flex programming.

Have fun.


Multi-plataform development notes

If you have a Windows box to develop web applications and then, for production and quality, uses Unix / Linux box you should know that there are some little things that you should take care of. No need to mention the fact that on Unix / Linux everything is case sensitive and on not on Windows (even knowing that Apache threats everything as case sensitive on Windows) is the number one thing that can break if you are migrating from Windows to Unix / Linux, but there are some functions that might work differently and break if you don’t take a more chirurgical look.

For a smart and small example take a look on the mkdir function from php. All you need to do is enter the path, writing mode (chmode) and if is recursive. On a Windows box if you enter something like mkdir($path,’0777’,true) or mkdir($path,0700,true) it will create the folders in the path but will as well set them as writable, even if you said not to, but on Unix and Linux that would not work.

Take a look on the first function, mkdir ( $path , ‘0777’ , true );

If you set your script to create the folder path like this in a UNIX box, it will be created, but the permissions will be wrong. The second argument for the function is an integer and not a string, therefore the permissions would not be created correctly and if you tried to upload a file to the directory, it would fail on permission denied. On a Windows box this is totally bypassed.

Another thing to consider is the way that Windows creates the path. If you use something like c:\path\to\root it will fail on a UNIX or Linux box. To avoid this you need simply change the back slash for the forward slash (c:/path/to/root). This will work on both platforms’.

Small cares like this can make your life way easier while developing in PHP.

Have fun.


We got a new writer

I have got some developers asking to post other information and resources here that is not about PHP. Unfortunately that’s not my area. I’m not a great programmer in .NET, Java or even know how to manage a Windows server, considering that, I have asked a couple of friends to help me and the first one have already answered me.

I want to introduce you guys to Vlad Cruz, a good friend of mine, and a infrastructure analyst with specialty in hardware, Windows Servers and Oracle.

Soon enough we are going to have a post from him and meanwhile I will be lobbying other friends to bring more resources to the blog.


%d bloggers like this: