Comments for Crazy thinking – Just my Weblog https://crazythinking.wordpress.com Just another weblog Sat, 01 Aug 2020 21:03:11 +0000 hourly 1 http://wordpress.com/ Comment on Using matplotlib / pylab without a DISPLAY by YuehChuan Johnson https://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-492 Sat, 01 Aug 2020 21:03:11 +0000 http://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-492 ROCK!!!
Absolutely What I NEED!!!
THANK YOU!!!

]]>
Comment on Creating an application for checking lottery numbers – Design, Modelling and Code creation by Greg https://crazythinking.wordpress.com/2011/11/13/creating-an-application-for-checking-lottery-numbers-design-modelling-and-code-creation/#comment-472 Sat, 14 Sep 2019 11:23:07 +0000 http://crazythinking.wordpress.com/?p=226#comment-472 I love this article. I don’t anything about coding but I do have a unique idea on a Lottery club. if interested contact me.

]]>
Comment on Using matplotlib / pylab without a DISPLAY by Nick Dietz https://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-437 Fri, 07 Jun 2019 19:19:14 +0000 http://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-437 Still works. 2019. I wanted it both ways, so I put the import in a function and I added a conditional around the use() call…
if automated:
matplotlib.use(‘Agg’)
global plt
import matplotlib.pyplot as plt

]]>
Comment on Creating an application for checking lottery numbers – Design, Modelling and Code creation by Godoy https://crazythinking.wordpress.com/2011/11/13/creating-an-application-for-checking-lottery-numbers-design-modelling-and-code-creation/#comment-428 Tue, 07 May 2019 17:42:07 +0000 http://crazythinking.wordpress.com/?p=226#comment-428 In reply to Dorisvaldo paiva.

Olá! Sim, mas faz tanto tempo que não tenho mais o código… Envolvia alguma função do PostgreSQL para trabalhar com arrays. Baixava a versão de resultados já ordenados de forma crescente (e não na ordem do sorteio). O processo era:

1. importar os jogos – um script Python lia o arquivo HTML baixado, separava os dados todos e importava na base: como o custo é baixo, eu usei o número do sorteio como índice e inseria todos os dados, ignorando os erros de chave duplicada; poderia checar o último resultado disponível na base e importar dali pra frente, mas teria que processar todos os jogos no Python de qualquer jeito…

2. comparar, ordenadamente, os números fornecidos com os resultados disponíveis – filtrando por concurso.

3. para jogos do tipo “teimosinha”, criar uma entrada para cada concurso.

Não é complicado e nem estava muito elaborado, mas atendia ao que eu queria de forma fácil e rápida.

Hoje já há aplicativos no celular que fazem o mesmo… Meu incômodo atual é ter que digitar os números dos bilhetes. Estou pensando em como fazer o processamento via o código de barras ou alguma coisa envolvendo reconhecimento de imagem para que o sistema reconheça os números diretamente do cartão.

Programador é sempre preguiçoso 🙂

Desculpe a demora na resposta.

Abraços.

]]>
Comment on Creating an application for checking lottery numbers – Design, Modelling and Code creation by Dorisvaldo paiva https://crazythinking.wordpress.com/2011/11/13/creating-an-application-for-checking-lottery-numbers-design-modelling-and-code-creation/#comment-422 Tue, 09 Apr 2019 03:12:07 +0000 http://crazythinking.wordpress.com/?p=226#comment-422 Boa Noite .Você concluiu este projeto?

]]>
Comment on Using matplotlib / pylab without a DISPLAY by Ranvijay kumar https://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-354 Mon, 25 Sep 2017 08:55:29 +0000 http://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-354 Thank you so much 🙂 … Due to this issue I also learned R … Now again i am thinking for Python..

]]>
Comment on Updates, News and New Implementations by Godoy https://crazythinking.wordpress.com/2011/06/13/updates-news-and-new-implementations/#comment-301 Thu, 17 Mar 2016 12:50:24 +0000 http://crazythinking.wordpress.com/?p=219#comment-301 In reply to Timo.

You’ll have to play with the code. Sorry, I don’t have anything ready here.

]]>
Comment on Updates, News and New Implementations by Timo https://crazythinking.wordpress.com/2011/06/13/updates-news-and-new-implementations/#comment-300 Thu, 17 Mar 2016 04:25:03 +0000 http://crazythinking.wordpress.com/?p=219#comment-300 Thanks for the post.
Is there a way to keep the text-foreground opaque?

]]>
Comment on Using matplotlib / pylab without a DISPLAY by Godoy https://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-293 Fri, 11 Dec 2015 12:11:16 +0000 http://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-293 In reply to Noische.

Glad I could help! 🙂

]]>
Comment on Using matplotlib / pylab without a DISPLAY by Noische https://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-292 Wed, 02 Dec 2015 03:13:43 +0000 http://crazythinking.wordpress.com/2011/05/01/using-matplotlib-pylab-without-a-display/#comment-292 Many thanks, Godoy! It’s an almost 5-year-old tip but still works perfectly.

]]>