Hello! I have an image folder called “i” in site’s root folder, it has
many subfolders like 0, 100, 200, 300 … 600000, etc…
So in folder “200” there are images from 200.jpg to 299.jpg, in folder
“300” there are 300.jpg to 399.jpg ans so on. As you can see i create a
new folder for every 100th image because i don’t want to have all the
images in one folder (there are too much).
The problem is that i can’t calculate a proper folder name, i tried like
this:
Hi!
I’ve recently wrote a simple module nginx-let-module for myself
providing arithmetic (and string op) support in NGINX.
it supports parentheses, hex, simple ops. here’s an example:
let $value ( $uid + 0x12 ) * $offset - 100 ;
it’s here
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.