think.code.blog

on 3d, coding and design - a blog by Aleksey Fedotov

  • software projects
    • nginx ustats module
    • Yet Another Rubik’s Cube
    • Line counter
    • C# XML depth counter
  • 3d art
    • 2005
    • 2006
    • 2009
    • 2010
    • 2011
  • about

Macbook and wi-fi

Posted by 0xc0dec on May 10, 2012
Posted in: Uncategorized. Leave a Comment

If your Mac laptop fails to connect to Wi-fi without any visible reasons (endless “connecting…” Airport animation or “timeout” errors), deleting these files might help you, as it once helped me

/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
/Library/Preferences/SystemConfiguration/com.apple.network.identification.plist

You will need root access to delete them. Don’t forget to reboot after deleting. Please note that these actions will clear all your saved network preferences.
(solution found here)

Best copyright text ever

Posted by 0xc0dec on March 5, 2012
Posted in: Uncategorized. Leave a Comment

From the mari0 game sources:

NOT COPYRIGHT STABYOURSELF.NET
NO RIGHTS RESERVED
STEAL MY SHIT AND I’LL FUCK YOU UP
PRETTY MUCH EVERYTHING BY MAURICE GUЙGAN AND IF SOMETHING ISN’T BY ME THEN IT SHOULD BE OBVIOUS OR NOBODY CARES

THIS AWESOME PIECE OF CELESTIAL AMBROSIA IS RELEASED AS NON-COMMERCIAL, SHARE ALIKE, WHATEVER. YOU MAY PRINT OUT THIS CODES AND USE IT AS WALLPAPER IN YOUR BATHROOM.
FOR SPECIFIC LICENSE (I know you linux users get a hard on when it comes to licenses) SEE http://creativecommons.org/licenses/by-nc-sa/3.0/
NOW GO AWAY (or stay and modify shit. I don’t care as long as you stick to the above license.)

Gonna print it and use as a wallpaper, for sure! =)

New logo

Posted by 0xc0dec on February 22, 2012
Posted in: Uncategorized. Leave a Comment

Since my initials are “F.A.N.”, I always thought that my avatar should somehow reflect that fact. My first avatar (created by me) looked like that:

Not a fan at all, but something that looks quite similar and brutal :)

Not long ago I decided that it’s time to update my logo/avatar, because the old one looks to me really old-fashioned and just not very beautiful and clean. After some hours spent trying to draw a real fan, I came up with this:

This is actualy looks like a PC fan, so I think I did my job well. There’s also a version with the nickname text on it:

This is one of the intermediate versions I created before the final image came out:

Not a fan, but a circular saw instead. My friend told me that it symbolises the “Earth-Moon-Sun” trio. Had no idea about that when was drawing the pic, that was surprising :)

SOPA

Posted by 0xc0dec on December 18, 2011
Posted in: Uncategorized. 2 comments

Stop Online Piracy Act и Protect IP Act (SOPA & PIPA) сейчас на рассмотрении в конгрессе США. Эти законопроекты направлены на защиту прав интеллектуальной собственности и фактически позволят правительству США и стоящим за их спинами дядям с толстыми кошельками в любой момент запретить доступ к любому сайту, который, по их мнению, нарушает права интеллектуальной собственности или может в будущем потенциально их нарушить. Под запретом подразумевается не привлечение к какой-либо ответственности за пользование этими сайтами, а фактическая, технически реализованная блокировка доступа путем выпиливания доменных имен из DNS и подобным мерам. Это значит, что такие порталы как YouTube, Facebook, Reddit, LiveJournal, Blogger, WordPress, LastFm, и многие другие, где потенциально можно опубликовать что-то, что нарушает авторские права, в будущем могут оказаться недоступными не только в пределах США, но и во всем мире. Подвох в том, что под запрет попадают не только те сайты, где опубликованный контент действительно нарушает авторские права, но и тот контент, который, по разным причинам, покажется правообладателям опасным. Яркий пример – произошедшая недавно временная блокировка MegaUpload по запросу Universal Music. В поддержку MegaUpload ряд довольно известных американских исполнителей записали песню и выложили ее на YouTube. Эта песня была удалена по запросу тех же Universal Music, как нарушающая права, хотя понятно, что ни о каком нарушении там речи не идет.

Не так давно Гейб Ньюэлл, глава Valve, очень правильно говорил о проблеме пиратства:

Главная причина для пиратства – проблема с сервисом, а не с ценой. Например, если пираты предлагают вам доставить продукт к вам на компьютер в любую точку мира (торренты) в любое время суток, тогда как законный провайдер заявляет, что продукт заблокирован для определенных регионов и появится в вашей стране только через месяца после релиза в США и купить вы его сможете только в обычном магазине, в таком случае пиратский сервис более удобен для потребителей

Сами Valve утверждают, что решили решили проблему пиратства в своем сервисе Steam.

В конгресс уже направлено открытое письмо от группы из 83 человек, которые фактически являются основателями и создателями Интернета. В нем авторы дают понять, что своими действиями чиновники могут вызвать ряд серьезных нарушений в работе всей системы.

Влияние США на интернет слишком велико, поэтому принятие законопроектов может обрушить интернет в том виде, в котором мы себе его представляем. У меня есть подозрение, что чиновники других стран, насмотревшись на своих американских коллег, начнут воротить то же самое (в России уже были попытки ввести подобные законы). Данные законопроекты – очередной пример того, как кучка людей с властью в руках, не имея даже представления о том, что такое браузер, что такое файл, и что из себя представляет интернет, пытаются повлиять на Сеть и распространить заразу копирастии по всему миру. Лютая #ненависть.

TeamCity agent startup: no protocol tc/RPC2 error

Posted by 0xc0dec on December 15, 2011
Posted in: Uncategorized. Tagged: agent, city, protocol, rpc2, tc, team. Leave a Comment

If you happen to install TeamCity agent and see this error in output.log file, make sure that serverUrl property in buildAgent.properties file is correct and has http:// prefix! Today I spent a lot of time striving to fix the problem, until I decided to change serverUrl=tc to serverUrl=http://tc (“tc” is our TeamCity server address).

New 3d art: bolts

Posted by 0xc0dec on November 16, 2011
Posted in: Uncategorized. Leave a Comment


Render size: 1080p
Soft: Blender Cycles

Microsoft Tech Ed 2011 глазами очевидца

Posted by 0xc0dec on November 13, 2011
Posted in: Uncategorized. 2 comments

С 9 по 10 ноября 2011 года в Москве прошла конференция Microsoft Tech Ed 2011. По заявлению организаторов, Tech Ed – это логическое продолжение известной MS Platforma, с новым масштабом и на более высоком международном уровне. Поскольку на “Платформе” я не был, то сравнивать не могу, однако масштабы конференции действительно были поразительны. Об этом ниже :) .
Continue Reading

Abandoned hospital vs. unfinished hospital

Posted by 0xc0dec on September 25, 2011
Posted in: Uncategorized. Leave a Comment

I like this abandoned hospital located in one of the central parks of our city – it’s very impressive and murky.

Once I came up with the idea that I must reproduce this great place in 3D. Having said that, I made this “sketch”:

I hopefully think that I will have time to finish it: continue modelling, texture and render the final image. But yet, that’s all I have for now, therefore this post is like a TODO for me :)

C++: observer pattern via templates

Posted by 0xc0dec on August 22, 2011
Posted in: Uncategorized. Tagged: c++, c++0x, observer, pattern, templates. Leave a Comment

Observer pattern is very useful when you need one object to notify a number of other objects on its state changes. I had a plenty of times when I needed to implement this pattern in my projects, mostly related to real-time graphics. One of the problems I faced when following the pattern was that I had to write a separate interface for every type of event that was going to be supported (of course this drawback can be partially avoided by using various tricks like inheritance, flags, type casting, and so on). Here I present a template-based method used to implement the pattern. I thought templates can help me shorten my code size and eliminate some routine work. I don’t know if it is already known, however I’ve never seen it used in any library I worked with. I also don’t guarantee that it is perfect – probably, it’s only of academic interest :)
Continue Reading

QooXDoo: changing default theme

Posted by 0xc0dec on July 13, 2011
Posted in: Uncategorized. Tagged: change, default, qooxdoo, theme. Leave a Comment


The Javascript framework QooXDoo currently offers three standard themes that are shipped by default: Modern, Simple и Classic. Each new project you start is automatically set to use the first one. To use other theme, you should edit all files in the folder

./source/class/project_name/theme

where project_name is the name you gave to your project, changing the line

extend : qx.theme.modern.Appearance

with

extend : qx.theme.simple.Appearance

where simple stands for the theme name you want to use.
After the next ./generate build your application will have the new theme applied.

Posts navigation

← Older Entries
  • Recent Posts

    • Macbook and wi-fi
    • Best copyright text ever
    • New logo
    • SOPA
    • TeamCity agent startup: no protocol tc/RPC2 error
    • New 3d art: bolts
    • Microsoft Tech Ed 2011 глазами очевидца
    • Abandoned hospital vs. unfinished hospital
    • C++: observer pattern via templates
    • QooXDoo: changing default theme
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.com
Blog at WordPress.com. Theme: Parament by Automattic.
Follow

Get every new post delivered to your Inbox.

Powered by WordPress.com