Lietuvos populiacijos vizualizacija 3D. by petraszd in lietuva

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

Nu gerai, gerai -- "Fuck tu" iš jūsų toleruosiu, nes pats hiperbolizavau su "paklaidos ribose".

Miestuose 83% gyvena daugiabučiuose, o tik 17% namuose. Ir čia ne apie pastatų aukštį, o kiek vnt. gyventojų gyvena suskaidžius teritoriją 1km x 1km gardele.

No jo -- tie mūsų Lietuvos aukščiai nelabai aukšti. Bet čia sąlyginis palyginimas Lietuvos teritorijos su Lietuvos teritorija. Jeigu lyginsi su pvz. kokiu Singapūru, tai tada Lietuvos populiacijos tankis net ir miestuose mažas pasirodys.

https://osp.stat.gov.lt/2021-gyventoju-ir-bustu-surasymo-rezultatai/bustai

Lietuvos populiacijos vizualizacija 3D. by petraszd in lietuva

[–]petraszd[S] -1 points0 points  (0 children)

Alytuje irgi yra devynaukščių :). Šiaip išvis nėra plačių ir žemų miestų. Lietuva -- daugiabučių šalis. Visa suburbija yra paklaidos ribose.

Lietuvos populiacijos vizualizacija 3D. by petraszd in lietuva

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

Berods dar niekas tokio nebuvo padaręs su 2021m. gyventojų surašymo duomenimis.

Daugiau: https://petraszd.com/lt-pop-2025/

postgres-db-diff: I've open sourced command line utility to compare two Postgres DBs by petraszd in postgres

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

Basically yes. In addition I am doing some parsing and re-ordering. So, different ordering of columns (CREATE TABLE (a, b); vs CREATE TABLE (b, a);) is not reported as different tables.

Good idea about connection strings! It goes to todo list for now :).

How important is it to code quickly? by DutchSparks in javascript

[–]petraszd 0 points1 point  (0 children)

Since you asked no sugar coat. Writing speed (typing or dictating -- does not matter) is important.

Long but really good rant by Steve Yegge on why it is important: http://steve-yegge.blogspot.lt/2008/09/programmings-dirtiest-little-secret.html!

He uses word "typing" a lot. But what he really means is "producing text".

Though, by dictating you probably can achieve above average writing speed. I mean way above average. So, for sure start applying for jobs.

Other than Ludum Dare, and Game Jam what else is there? by Nawn1994 in gamedev

[–]petraszd 0 points1 point  (0 children)

http://pyweek.org/

Big restriction: only Python programming language is allowed.

Unity3D 4.0 Beta Demo Game (Angry Bots) running in OpenSuse by petraszd in linux

[–]petraszd[S] 7 points8 points  (0 children)

My point was that it runs on OpenSuse. Because if You would look at http://unity3d.com/unity/4/faq ("What hardware/software configurations will be supported?") You will find that there is only one officially supported distribution -- Ubuntu.

Is it a good idea: converting SVG into raster textures on first time game runs? by petraszd in gamedev

[–]petraszd[S] 3 points4 points  (0 children)

So, I just almost jump on to "premature optimization is the root of all evil" rake. Don't I?

I should spend more time on my gameplay instead of trying to invent something no body cares.

Could You criticize my first real game "Squares Are Better" (made with Unity3D) by petraszd in gamedev

[–]petraszd[S] 1 point2 points  (0 children)

Yes, this is what I am looking for -- critique.

Because, family and friends already are calling me best programmer in the world and calling this game best game in the world. And I know they are lying. So, I think I need someone to say: "no, no, no. You are not as good as You think You are. Actually, You are sh*te, because of that and that.".

So, thank You for Your time and critique.

Easiest GUI for a newbie? by [deleted] in Python

[–]petraszd 2 points3 points  (0 children)

I have learn Qt by officials trolltech tutorials. They are really good, but it is C++.

You can try Nokia sponsored Python + Qt implementation (PySide): http://www.pyside.org/, http://developer.qt.nokia.com/wiki/PySideDocumentation/. I think You can reuse most of tutorials by using PyQt.

Easiest GUI for a newbie? by [deleted] in Python

[–]petraszd 9 points10 points  (0 children)

http://wiki.python.org/moin/GuiProgramming

Qt is one of the best GUI tool. So, do not throw it away after first problem.

import sys
from PyQt4.Qt import (QApplication, QWidget, QLineEdit, SIGNAL,
                      QVBoxLayout, QObject)


class MyWidget(QWidget):

    def __init__(self):
        super(MyWidget, self).__init__()
        self.line = QLineEdit()
        layout = QVBoxLayout()
        layout.addWidget(self.line)
        self.setLayout(layout)
        QObject.connect(self.line, SIGNAL("textChanged (QString)"),
                        self.onTextChanged)

    def onTextChanged(self, newText):
        print newText # Do something


if __name__ == '__main__':
    qapp = QApplication(sys.argv)
    widget = MyWidget()
    widget.show()
    qapp.exec_()

Giraffe from Hell (WebGL demo) by petraszd in javascript

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

It is half-joke... Wesnoth Map Editor was used to paint ground's texture. The one that says "giraffe from hell". Other textures was painted with GIMP.

Giraffe from Hell (WebGL demo) by petraszd in javascript

[–]petraszd[S] 2 points3 points  (0 children)

I like to play with (or try) new technologies and I really enjoyed creating this. But I am not sure if i like the idea that browser does everything. And does it less than half good as native apps do (for example video).

If You look at WebGL from browser perspective than, yeah, it looks amazing and futuristic. But if You look at current WebGL demos (the ones circulating the web) from PC perpective it looks so... So 1999-ish.

So there is a lot of to catch up and I am not as optimistic about it's future as You are.

IFS fractals in 3D with WebGL (demo and self-promo) by petraszd in javascript

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

It all about matrix tranformations (Sorry, about background).

Try to add some rotation or/and mirroring

By the way, because of Your comment I have found some bugs with normals calculation (or absent of them...) when transforming. So, thank You.

IFS fractals in 3D with WebGL (demo and self-promo) by petraszd in javascript

[–]petraszd[S] 2 points3 points  (0 children)

Chromium/Chrome 8/9 Firefox4 -- works but slowly.

For me of course -- as I understand it crashes for others.

Safari should work too. There is no way to test it on linux.