Oct 19 2009

URL Shortener using Auto-Increment field.

Good Night,

This is a new version of URL-Shortener that don’t create random IDs to websites, it uses the auto-increment field and replace it to other base.

Read more »

Oct 19 2009

Change numeric base using Python

Hello,

How to change the numeric base of a number? This is a implementation in Python.

def convert(decimal,newBase,str,letters):
        if decimal >= newBase:
                x = decimal % newBase
                y = decimal / newBase  
                str = letters[x] + str
                if y < newBase:
                        str = letters[y] + str
                return convert(y,newBase,str,letters)  
        else:
                if len(str) == 0:
                        str = letters[decimal] + str
                return str
let = "0123456789ABCDEF"
print convert(17,16,"",let)

The variable let means what values used in the base. For an example if you want binary you should replace with 01.

Matheus

Oct 15 2009

Conversion table – 4 – Computer Organization (INE5411)

Hello,

This post have some extra conversion.

Matheus Bratfisch

Tabela de conversão de páginas:

106-109, 112 -> 78-85
2-8 -> 2-7
12-14 -> 9-11
27-32 -> 21-25
48-68 -> 37-50
68-78 -> 50-57
79-85 -> 58-62
85-90 -> 62-66
90-105-> 66-78
106-108->78-80
116-129->85-96
121-129->85-96
130-134->96-99
134-143->99-106
160-175, 190 -> 120-128
76 -> 55-56
240-254 -> 182-193
254-266 -> 193-201
268-270 -> 203-204
108-114 -> 80-84
284-300 -> 214-225
300-318 -> 225-239
318-324 -> 239-244
325-340-> 244-256
340-350-> 257-264
382 -> 279
423-424->317-322
370-379->278-285
379-384->285-289
384-402->289-303
421-423->316-322
432-442->326-334
442-450->334-340
468-479->354-362
479-491->362-371
492-504->371-381
505-508->381-383
511-523->385-395
566-568->428-430
581-585->439-443
589-593->445-449
593-596->449-452
603-606->457-459

Conversion table – 3 – Computer Organization (INE5411)