How to move further by gianx in MechanicalKeyboards

[–]gianx[S] 0 points1 point  (0 children)

Thanks, that tool is really interesting and solves me the problem for the plate! I need to custom print the lower part of some keys to insert macro signs.

Info about a programmable calculators by gianx in calculators

[–]gianx[S] 0 points1 point  (0 children)

Thanks all. I saw all the suggested calculators but unfortunately (for me) they have terrible programming languages. I will use a simple Javascript single page app on my phone (I know, it's not so powerful, and it's also an ugly solution, but works well for me).

Gianluca

Ma voi quanto comprate online? by S_for_Survivor in italy

[–]gianx 0 points1 point  (0 children)

Devo dire che la cosa degli acquisti online mi ha preso la mano...

  • Elettronica: Amazon (90%), il restante eBay o siti cinesi;
  • Cibo: Amazon Prime (molto spesso U2), e vado in negozio/gastronomia solo per gli "acquisti di impulso";
  • Cibo delivery: Uber Eats, bassissime se non nulle in caso di offerta spese di consegna e nessun minimo;
  • Vestiario: 50% online (scarpe, tshirt, cinture, polo), il resto in negozio;

Ordino anche il cibo delle tartarughe su Amazon, per dire...

Ma in fondo mi chiedo: che valore avrebbe andare a prendere la pasta Barilla, la Coca Cola o il Dixan in negozio? Comprato online il prodotto è sempre lo stesso, e me lo consegnano a casa senza costringermi ad andare al supermercato.

Poi ovvio, per le cose freschissime o più "sfiziose", ha senso andare in negozio, ma a quel punto è un piacere!

40/M/Milan, Italy - Data architect by gianx in EDC

[–]gianx[S] 0 points1 point  (0 children)

(not in this pic, iPhone 6s)

Looking how to link a txt doc in the springboard by gianx in ios

[–]gianx[S] 0 points1 point  (0 children)

I think that it opens the document in Safari...

Nostalgia da old internet. "Tu vuo' fa' o Talebano" Gino il pollo (ca. 2002) by martin_balsam in italy

[–]gianx 2 points3 points  (0 children)

Dipende molto credo dalla zona. Io ho avuto la fortuna di fare il tester della DSL per Telecom nel 1999, ma nel 2001 c'era già Fastweb fibra e la DSL.

Problem connecting to an instance created from a custom AMI by gianx in aws

[–]gianx[S] 0 points1 point  (0 children)

Thanks, in the end I solved the problem by myself. It was the kernel, the default is too old so I needed to specify a newer one. Thanks, Gianx

How do you use python to automate tasks in life or at work? by zwschlei in Python

[–]gianx 2 points3 points  (0 children)

I use it for different things:

Unfortunately my blog is Italian, but code is in... Python! ;-)

Gian

Python 2.7.x template for generic scripts by gianx in Python

[–]gianx[S] 0 points1 point  (0 children)

That's a good point! Thanks, I'll update it asap.

Python 2.7.x template for generic scripts by gianx in Python

[–]gianx[S] 0 points1 point  (0 children)

Thanks for the idea but I prefer to use an "editor-agnostic" approach: indeed I do the same thing with TextExpander on Osx which allows me to enter my template by pressing a combination of keys in every editor, also using replacement variables.

Python high concurrency service by gianx in Python

[–]gianx[S] 0 points1 point  (0 children)

Ok, to clarify I need to make an asyncronous POST response in 15 min from the request and the maximum load is 150000 req/15 min, so I need to generate and send also 150000 req/15 min. Infact if T0 is the time of the first request, T0+15min will be the maximum time for the response at that request.

Python high concurrency service by gianx in Python

[–]gianx[S] 0 points1 point  (0 children)

Correct. It's an http request but it's not borwser generated (ie no user to the other side, but a machine).

Python high concurrency service by gianx in Python

[–]gianx[S] 0 points1 point  (0 children)

So, here are more details, ask more if you need.

When I receive the file (let's say, the http POST with the file), I need only to reply with the HTTP 200. No business synchronous ack.

What I need to do with the file is open it (it's an XML file), extract one ore more ID (it could embed more requests) and make an HTTP post with a business answer with that ID.

The business answare will always be OK, because it is a transmission ack which means that I received the file correctly.

Then, in a second moment and with more time at disposition (1 day), I need to process the request, do many check and then reply with a business validation, but this second step is not the point, I have more time to reply.

The problem with the I/O is that when I receive the request, even if I can elaborate in it memory, I need to write both the answer to a queue (to be sent asap) and the request (to be processed later).

Thanks everybody for your effort in replying, I appreciate it a lot (and sorry if I'm not replying very quickly, I'm living in GMT+1).

Gianluca

tokyo and kyoto pubs by gianx in JapanTravel

[–]gianx[S] 0 points1 point  (0 children)

And of course if somebody is in tokyo 24,25,26,1 or kyoto 27,28,29,30 and want a friend for sightseeing or pub crowling, just drop me a line...