Skip to main content

Node.js – Database connection depends on environments

I hate when I need to use the same password on all of my computers only because I develop on multiple machines. For instance, I want to connect to the +MySQL database from my +node.js application , but my local configuration differs from the production environment (surprising thing is not it?).

(more…)

Related Posts:

Ingress Problem

Dear +Ingress and +Niantic Project,

I am an agent. I like this game and try to figure out how can this game more fun. My (and a lot of agents too) problem is the resonator strength.

If we unite and build a portal 2 agent and me and our portal will be L4 then a L1 agent can destroy it in a minute. When I got the mail about the attack, our portal is destroyed. L4 vs L1 is not problem, but the 3 vs 1 is a problem. Please upgrade your equations with this factor.

For instance, each resonator in a portal would get an extra multiplier about the agents number. If a portal has 8 resonators with 3 agents then each resonator get a 1.3 multiplier to their health. This would enhance the teamwork. Teamwork is the most epic line in the game but now teamwork is needed only for capturing. If 10 agents build a lot of portals then 1 agent can destroy all of them. I know you need to calculate about new agents but it is not fair.

P.level() = Level of Portal (P.level():3 = Portal L3)
P.agents() = Agents on the portal (P.agents():3 = 3 agents work on this portal)
Rx.level() = Level of Resonator #x (R1.level():6 = Resonator #1 L6)
Rx.portal() = Portal of the Resonator #x
Rx.damage(distance, xmp) = Damage on Resonator #x with an XMP (R1.damage(20, 1):230 = Resonator #1 got 230 unit as damage from 20 meters with a L2 XMP)


Rx.damage(distance, xmp):
return super.damage(distance, xmp) / (1 + (self.portal().agents()/10))

Or something else. But please give us some respect if we unite. Please make a difference between 1x8xL1 and 2x4xL1 resonators.

Related Posts:

  • No Related Posts

3 ways to be a Healthy Programmer

Are you healthy? Stand up! Leave your keyboard for a moment!

Few days ago I started to read a book. My best quote from this book was a short but really intense sentence and I started to think again. Think about my past and my current life.

We aren’t born unhealthy — we become unhealthy through a combination of bad habits and environmental pressures
The Healthy Programmer: Get Fit, Feel Better, and Keep Coding by Joe Kutner

 

It’s true. When I was young, innocent boy, then I tried to do something new, something interesting. I sat at my Commodore C64 and read books about programming. I loved that, but sometimes I left this desk and I went out to the garden and the park.

Now I grew up (a little bit) and I have not forgotten this. Sometimes I stand up and go to the nearest park, walk up and down, sit on a bench and sometimes I run just for fun. It’s ok. I love that way but how?

(more…)

Related Posts: