суббота, 19 ноября 2011 г.
sdfsdf
prime-suspect
Person.of.Interest LOSTFILM
american-horror-story LOSTFILM
Pioneer.One
A.Lonely.Place.for.Dying.Part.1.2011.XviD-VODO
Death.In.Paradise
Death.Valley
http://www.oneddl.com/movies/puncture-2011-limited-720p-bluray-x264-amiable/
http://www.oneddl.com/tv-shows/national-geographic-mystery-files-king-arthur-720p-hdtv-x264-vild/
http://www.oneddl.com/tag/national-geographic/
пятница, 18 ноября 2011 г.
среда, 9 ноября 2011 г.
понедельник, 31 октября 2011 г.
TurnkeyLinux русский язык
Вместо ru_RU.UTF-8 можно использовать любую другую кодировку, которые перечислены здесь
http://www.elxis.org/guides/developers-guides/elxis-languages-locales-li...
Редактируем файл /etc/environment
(Edit the file "/etc/environment")
nano /etc/environment
Вот как должен выглядеть вывод команды в «правильной» системе:
(Here's how to look at the output of the "correct" system:)
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LANGUAGE="ru_RU.UTF-8"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
Генерим русскую и английскую UTF-8 локали (Generating Russian & English UTF-8 Locales)
locale-gen ru_RU.utf8 && locale-gen en_US.utf8
Переконфигурируем локали (Reconfiguring locales)
dpkg-reconfigure locales
Определяем дефолтную локаль (Determine the default locale)
localedef ru_RU.UTF-8 -i ru_RU -f UTF-8
Для того, чтобы удалить из системы ненужные локали, заходим в папку
(In order to uninstall unneeded locale, go to the folder)
cd /var/lib/locales/supported.d
и правим, соответственно файлики en, ru и local.
(and edit respectively files en, ru, and local.)
echo "ru_RU.UTF-8 UTF-8" > ru
echo "en_US.UTF-8 UTF-8" > en
echo "ru_RU.UTF-8 UTF-8" > local
Перезагружаемся )) (Reboot)))
reboot
++ Всё SSH работает норм
далее
env LANG=C dpkg-reconfigure console-setup
reboot
всё теперь и не только SSH
понедельник, 26 сентября 2011 г.
DubStep
http://www.cafecircus.ru/DANJAH_Radio64.
http://yp.shoutcast.com/sbin/tunein-station.pls?id=134593
!!! http://yp.shoutcast.com/sbin/tunein-station.pls?id=655104
среда, 14 сентября 2011 г.
Android SDK Offline
2. Добавляем в переменную среды PATH путь к JDK (например c:\Program Files\Java\jdk1.7.0\bin)
3. Правим файл hosts (c:\WINDOWS\system32\drivers\etc\hosts), добовляем запись "127.0.0.1 dl-ssl.google.com"
Важно!!! порт 80 должен быть свободен на время установки Android SDK
4. Запускаем Abyss Web Server Х1 (abyssws.exe)
5. Вариант а - ручная установка Вариант б - рекомендует Google
5а. Распаковываем sdk_installer\android-sdk_rXX-windows.zip в папку куда будет установленно Android SDK и запускаем "SDK Manager.exe"
5б. Запускаем sdk_installer\android-sdk_rXX-windows.exe нажимаем "Next"))) тут сообщение что мол JDK не найдено)) ничего нажмите "Back" и потом снова "Next" и следуйте дальнейшим инструкциям по установке
6. В окне "Android SDK and AVD Mannager" в разделе "Settings" ставим галку как показанно на рисунке

7. Далее выбираем и устанавливаем пакеты))
8. После усановки не забудьте закоментировать или удалить в файле hosts (c:\WINDOWS\system32\drivers\etc\hosts) запись "127.0.0.1 dl-ssl.google.com"
это понадобиться для обновления))
9. Удачи)))
З.Ы. Так же можно в принципе и по лану устонавливать)) на сетевом компе нужно будет в пункте 3 вместо 127.0.0.1 вписать IP веб сервера с репозиторием
пятница, 19 августа 2011 г.
allow-hotplug eth1
iface lo inet loopback
mapping eth0
script /usr/local/sbin/map-scheme
map HOME eth0-home
map WORK eth0-work
iface eth0-home inet static
address 192.168.1.1
netmask 255.255.255.0
up flush-mail
iface eth0-work inet dhcp
iface eth1 inet dhcp
http://manpages.ubuntu.com/manpages/hardy/man5/interfaces.5.html
https://help.ubuntu.com/10.04/serverguide/C/serverguide.pdf
http://help.ubuntu.ru/wiki/%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_%D1%81%D0%B5%D1%82%D0%B8_%D0%B2%D1%80%D1%83%D1%87%D0%BD%D1%83%D1%8E
пятница, 12 августа 2011 г.
Spaces must be trimed
For
# # This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
allow-hotplug eth0
auto eth0
#Example 4-1. Bridge setup via dhcp
iface br0 inet dhcp
allow-hotplug br0
pre-up ifconfig eth0 down
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
pre-up ifconfig eth0 up
post-down ifconfig eth0 down
auto br0
post-down brctl delif br0 eth0
#In case you have static IP address add following lines to /etc/network/interfaces. Remember to replace tags below with your network information. Also if your network #interface card uses some other interface than eth0 replace it too.
#Example 4-2. Bridge setup statically
auto br0
iface br0 inet static address
netmask
network
broadcast
gateway
pre-up ifconfig eth0 down
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
pre-up ifconfig eth0 up
post-down ifconfig eth0 down
post-down brctl delif br0 eth0
#Eth0 is now included in your bridge configuration. We need to add an another interface there too. This will be your Bluetooth device's interface. It is probably pan0. Add #the following lines to /etc/network/interfaces
#Example 4-3. Bluetooth device setup
auto pan0
iface pan0 inet manual
pre-up brctl addbr br0
pre-up brctl addif br0 $IFACE
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
post-down brctl delif br0 $IFACE
allow-hotplug eth0
iface eth0 inet static
address 192.168.11.100
netmask 255.255.255.0
broadcast 192.168.11.255
gateway 192.168.11.1
dns-domain lan
dns-nameservers 192.168.11.1
четверг, 21 июля 2011 г.
понедельник, 4 июля 2011 г.
The .NET Framework SDK provides a helpful utility called mgmtclassgen.exe, which can be used to create .NET-friendly wrappers of the WMI classes. Open up a Visual Studio command prompt and enter the following:
mgmtclassgen Win32_NetworkAdapter -p NetworkAdapter.cs
This will generate a file called NetworkAdapter.cs which will contain a C# representation of the WMI Win32_NetworkAdapter class. You can add this source code file to your C# project and then access all the properties without too much extra effort.
SelectQuery query = new SelectQuery("Win32_NetworkAdapter", "NetConnectionStatus=2");
ManagementObjectSearcher search = new ManagementObjectSearcher(query);
foreach(ManagementObject result in search.Get())
{
NetworkAdapter adapter = new NetworkAdapter(result);
// Identify the adapter you wish to disable here.
// In particular, check the AdapterType and
// Description properties.
// Here, we're selecting the LAN adapters.
if (adapter.AdapterType.Equals("Ethernet 802.3"))
{
adapter.Disable(); // for disable
adapter.Enable(); // for enable
}
}
hope this will help you.
http://www.eggheadcafe.com/community/aspnet/2/10308416/enable-disable-lan-connection-in-cnet.aspx
пятница, 1 июля 2011 г.
Manage Time in Ubuntu Through Command Line
What if you would like to manage your computer’s time in Ubuntu? It’s easy if you are in a graphical desktop environment. But what if you are on the command line? For example, in Ubuntu Server? Well, it is easy as well. A very helpful, everything-in-one-place resource is Ubuntu Time.
View Time
To view the current date and time, the following command will be enough
date
Set Time
To change time means to set a new time. To set time in Ubuntu (or any Linux), just run the following command
sudo date newdatetimestring
where newdatetimestring has to follow the format nnddhhmmyyyy.ss which is described below
- nn is a two digit month, between 01 to 12
- dd is a two digit day, between 01 and 31, with the regular rules for days according to month and year applying
- hh is two digit hour, using the 24-hour period so it is between 00 and 23
- mm is two digit minute, between 00 and 59
- yyyy is the year; it can be two digit or four digit: your choice. I prefer to use four digit years whenever I can for better clarity and less confusion
- ss is two digit seconds. Notice the period ‘.’ before the ss.
Let’s say you want to set your computer’s new time to December 6, 2007, 22:43:55, then you would use:
sudo date 120622432007.55
It couldn’t be any easier, could it? The source of this information was a good post on Ubuntu Forums (Set time/date via command line).
Change Time Zone
You may update or change your time zone by
tzconfig
dpkg-reconfigure tzdata
(thanks to Mario, see comment below)
This command will guide you through the process of setting a new time zone. You may also choose UTC (GMT) if you want.
If your system does not have tzconfig, you may use something else.
tzselect
If your system does not have tzdata, install it as below:
sudo aptitude install tzdata
This will provide a set of different time zones to choose. If you would like to set the time to UTC, choose the option which says something like ‘none of the above’, or ‘none of these’ or something to this effect. In my case it was option 11. Then it asks for difference from UTC (GMT and GST is also the same thing). I chose GST-0 as the option and it set the time as UTC.
Sync Clock Via NTP
If you want to sync your clock with NTP servers, it is also very easy. Just make sure you have the file ntp.conf file in /etc. How can you check it?
ls /etc/ntp.conf
If you see /etc/ntp.conf
as a result, you already have that file. If the ls command gives an error, you do not have it. If so, you may create it yourself.
sudo vim /etc/ntp.conf
This file will be used to automatic synchronization of the clock. I do not know if the client uses this file automatically or one has to configure something first. Thanks to Sean (see comment below): You need to install ntpd in order to make use of this ntp.conf file.
Whether you have the file already or not, make sure it has at least the following data
driftfile /var/lib/ntp/ntp.drift
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server pool.ntp.org
Here you may replace, add, and/or remove any servers you wish. You will find a list of time servers from the public NTP time server list.
You may manually sync the clock using the following
sudo ntpdate servername
where servername can be any public or private time server. You may always choose the following without hesitation
sudo ntpdate pool.ntp.org
If you don’t have ntpdate installed, you can install it via:
sudo aptitude install ntpdate
See, it was quite easy. Enabling NTP Services helped me gain this knowledge.
суббота, 25 июня 2011 г.
LinuxSysInfo
http://www.softsoft.ru/search/12935/index.htm
Process And Port Analyzer
Process And Port Analyzer
Рейтинг: | ![]() |
Автор: | OpenPages.info | Весь софт этого автора |
Лицензия: | Бесплатная |
ОС: | Windows 2003/Vista/XP/7 |
|
![]()
|
TCPView
TCPView - Windows программа, которая покажет вам детальный список всех TCP и UDP endpoints на вашей системе, включая удаленный адрес и состояние TCP подключений.
TCPView обеспечивает удобно представленный поднабор программы Netstat, которая поставляется с Windows.
понедельник, 23 мая 2011 г.
ZOHO ManageEngine SupportCenter Plus Настройка исходящей почты
На примере Ubuntu Server Настройка исходящей почты:
Код:
1.find / -name mysql-ds.xml
2.cat /root/ManageEngine/SupportCenter/server/default/deploy/mysql-ds.xml
3.
4.
5.
6.сd /root/ManageEngine/SupportCenter/bin
7.Запускаем Приложение если не запущенно
8.юзаем Navicat Mysql для коннекта к БД через ssh или чтото другое=)
9.добавляем в таблицу “outgoingmail” новую запись с ID = 1!!! Остольное и так понятно по названиям столбцов
10.наслаждаемся =)))
+ Если возникает проблема что почта всётаки не отправляется, гляньте в лог возможно это связанно с сертификатами JAVA
на всякий случай вот настройка сертификатов:
Код:
1. Apt-get install python-software-properties
2. add-apt-repository ppa:sun-java-community-team/sun-java6
3. apt-get update
4. apt-get install sun-java6-jdk
5. wget http://blogs.oracle.com/andreas/resource/InstallCert.java
6. javac InstallCert.java
7. java InstallCert hostname:port
8. cp ./jssecacerts ./ManageEngine/SupportCenter/jre/lib/security/
вторник, 3 мая 2011 г.
MAIN LINKS
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_1xtra?cb=41992
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_radio_one?cb=43505
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_radio_two?cb=61208
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_radio_five_live?cb=42079
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_radio_five_live_sports_extra?cb=5310
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_6music?cb=44494
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_7
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_asian_network
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_world_service
http://www.bbc.co.uk/iplayer/console/bbc_radio_scotland
http://www.bbc.co.uk/iplayer/console/bbc_radio_ulster
http://www.bbc.co.uk/iplayer/console/bbc_radio_wales
http://www.bbc.co.uk/iplayer/console/bbc_radio_cymru
http://www.bbc.co.uk/iplayer/console/bbc_radio_foyle
http://www.bbc.co.uk/iplayer/console/bbc_radio_nan_gaidheal
http://www.bbc.co.uk/iplayer/console/bbc_london
http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_london?cb=54386
http://www.bbc.co.uk/iplayer/console/bbc_radio_merseyside
Clasica http://www.bbc.co.uk/mediaselector/4/mtis/stream/bbc_radio_three?cb=44494
BBC Radio 1
http://www.bbc.co.uk/radio/listen/live/r1.asx
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_he_radio1_p
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_he_radio1_q
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio1_p
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio1_q
BBC Radio 1xtra
http://www.bbc.co.uk/radio/listen/live/r1x.asx
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_he_1xtra_p
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_he_1xtra_q
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_1xtra_p
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_1xtra_q
BBC Radio 2
http://www.bbc.co.uk/radio/listen/live/r2.asx
BBC Radio 5-1
128k
http://www.bbc.co.uk/fivelive/live/surestream_int.ram
http://www.bbc.co.uk/radio/listen/live/r51.asx
четверг, 28 апреля 2011 г.
четверг, 21 апреля 2011 г.
RealPlayer 11+ WMV Files
2. RealPlayer 11
Here download link for "RealPlayer 14.0.1.609".
source
Наконец-то вроде финальная русская версия WMP11 вышла. И наконец-то (с помощью подсказки с одного форума) я решил проблему безболезненной установки этого продукта. А так не проходила проверку валидности и никакие WGA не помогали.
* Короче идем к дядюшке Биллу и скачиваем Windows Media Player 11 Final Русская версия
* Дальше это дело не запускаем, а распаковываем RAR'ом этот файл (wmp11-windowsxp-x86-ru-ru.exe) в отдельную папку.
* Запускаем из этой папки файл ‘wmfdist11.exe’.
* Следуем инструкциям англоязычного инсталлятора.
* Перезагружаемся.
* Теперь запускаем из папки файл ‘wmp11.exe’.
* Следуем инструкциям русскоязычного инсталлятора.
* Перезагружаемся.
* Наслаждаемся установленным Windows Media Player 11
И никаких проверок на подлинность

У меня усановка прошла без вопросов и проблем!
пятница, 15 апреля 2011 г.
Pol TV
mms://85.8.187.103:8081 Polsat 2
mms://85.8.187.104:8081 tvp kultura
mms://85.8.187.105:8081 tvp 3
RTSP://69.9.41.75/TVPolonia
WORK
mms://stream.sferatv.pl:8080 512 KB/s
mms://stream.sferatv.pl:8081 1.7 MB/s
mms://stream.mni.pl/ITV
mms://195.94.205.211/Trwam
mms://mediaserver01.artcom.pl/ctv
mms://tv.bs.katowice.pl:8880
mms://stream.star.net.pl:8080/
mms://217.113.224.22/TVToya
mms://82.139.8.249/dami/
http://pl.delicast.com/tv/Polska
http://beelinetv.com/
http://www.polishforums.com/archives/2009/society-culture-38/polish-tv-internet-8086/2/
понедельник, 11 апреля 2011 г.
utorrent on Ubuntu server
wget https://public.me.com/ix/jason.e.clark/uTorrent/Linux%20Server/deb/utorrent-server_3.0-24733_i386.deb?disposition=download+1302523138975 -O utorrent-server_3.0-24733_i386.deb
Ubuntu server Upgrade to new version
Network Upgrade for Ubuntu Servers (Recommended)
Install update-manager-core if it is not already installed:
sudo apt-get install update-manager-core
Launch the upgrade tool:
sudo do-release-upgrade
- Follow the on-screen instructions.
понедельник, 4 апреля 2011 г.
Music which i love=)
- junior_caldera_feat._sophie_ellis_bextor_-_cant_fight_this_feeling_radio_edit
- blue cafe - buena 2011
- Robyn - Indestructible
- Feel - Weekend
- Natalia Kukulska - Wiernosc Jest Nudna
пятница, 25 марта 2011 г.
http://peb.pl/
http://ewarez.pl/ewarez/
http://www.sdcv.pl/
http://all-4u.pl/
http://ewarez.eu/
http://dvdfanatic.pl/
http://megatorrent.pl/
http://e-torrent.pl/
http://www.warezisko.net/
http://all-4u.pl/
http://bitnova.info/
http://torrentbay.pl/
http://www.warezdark.com/
http://bitstrefa.net/torrenty/
http://torrentcity.pl/
http://karagarga.net/
http://other.pl/
http://tnttorrent.info/
http://darmowefilmy.eu/
http://torrenty.org/
http://forum.wiaderko.com
http://ssaki.org/
http://dvdfanatic.org
http://wilzone-x.pl/Forum-Polskie-Filmy-i-Seriale
http://nedds.pl/forum/220-filmy-polskie/page__s__f5ecd4e8ee71803c0fd533c33fe55313
http://precyl.pl/filmy-po-polsku/
ПОЛЬСКИЕ ФИЛЬМЫ ОНЛАЙН:
http://podawarka-filmowa.blogspot.com/2009/07/filmy-polskie.html
http://www.seans24.pl/index.php
http://www.qfilmy.pl/
http://www.playtube.pl/index.php
http://nafilmy.pl/polskie
четверг, 24 марта 2011 г.
пятница, 18 марта 2011 г.
Open SSL Static
+
Поэтому очень советую чтобы для openssl использоваете ./config no-shared zlib enable-rfc3779 . в смысле лучше static link между mod_ssl
http://www.codealias.info/technotes/des_encryption_using_openssl_a_simple_example
All WORK =))))
http://stackoverflow.com/questions/3943412/can-i-link-msvcrt-statically-with-mingw
http://www.metalshell.com/source_code/108/OpenSSL_Server_Example.html
вторник, 15 марта 2011 г.
LDAP + PHP + C++(Qt)
http://api.kde.org/4.5-api/kdepimlibs-apidocs/kldap/html/annotated.html
kldap
http://www.userbooster.de/en/download/openldap-for-windows.aspx
https://laas.mine.nu/uclibc/openldap-2.1.30/libraries/libldap_r/
понедельник, 14 марта 2011 г.
QT Modal Dialog
1) setWindowModality(Qt::WindowModal);
2) exec();
3) Only exec() instead show()
суббота, 12 марта 2011 г.
Changing default storage engine in MySQL
You first need to locate the MySQL config file named my.cnf. On CentOS 5.2 it is located at /etc/my.cnf but this will probably vary across platforms.
Then in that file find the [mysqld] and add add the following line below it as shown below.
[mysqld]
default-storage-engine = innodb
Finally, make sure you restart MySQL.
service mysqld restart
It's pretty easy wen you know how, and you'll now had transactional tables by default.
Alterantivaley though, you could use a much better database.
пятница, 11 марта 2011 г.
MySQL charsets
Для перенастройках самого MySQД-сервера на UTF-8 следует внести изменения в MY.CNF (желательно в каталоге /etc для *nix) или MY.INI:
character-sets-dir=/путь_к_папке_с_чарсетами # если запросит...
default-character-set=utf8
Выглядеть это должно так:
[mysql]... после чего перезагрузить MySQL-сервер
default-character-set=utf8
[mysqld]
default-character-set=utf8
вторник, 1 марта 2011 г.
вторник, 22 февраля 2011 г.
Shop.NET Known Bugs
Здраствуйте =)
MesaVerde228
Вообщем Баг есть если отображать сумму заказа в гриде заказов но теперь он не 25 сек а ~0.5 сек
MesaVerde228
это функция new_fn_OrderFinalSumm
в процедурах
sp_get_dcard_orders
sp_get_orders_by_Date_Ex1
sp_get_dcard_orders
repo_get_orders_by_DCard_Ex1
repo_get_orders_by_Date_Ex1
понедельник, 21 февраля 2011 г.
Бесплатные СУБД.
PostgreSQL:
автор |
---|
- есть и блокировочный и версионный(MVCC) механизм транзакций - есть распределенные запросы и распределенные транзакции (есть двуфазный комит) - есть секционирование (таблиц и индексов), реализуется через наследование таблиц и трегеы - есть мат.представления, но оптимизатор НЕ умеет переписывать запросы если данные можно взять из матвью - есть встроенные механизмы репликаций |
В Firebird
автор |
---|
- есть версионный(MVCC) механизм транзакций - есть распределенные запросы и НЕТ распределенных транзакций (НЕТ двуфазного комита) - НЕТ секционирование (таблиц и индексов) - НЕТ мат.представления - НЕТ встроенные механизмы репликаций (но есть внешнее ПО) |
В MySQL
автор |
---|
- есть и блокировочный MyISAM и версионный(MVCC)InnoDB механизм транзакций (на разных движках) - есть распределенных запросы и НЕТ распределенных транзакций (НЕТ двуфазного комита) - есть секционирование (таблиц и индексов) - НЕТ мат.представления - НЕТ встроенные механизмы репликаций (но есть внешнее ПО) |
Платные СУБД в бесплатных редакциях.
MS SQL 2008R2 Express (Ограничение БД 10ГБ, CPU 1шт, ОЗУ 1ГБ)
автор |
---|
- есть и блокировочный и версионный(MVCC) механизм транзакций - есть распределенные запросы и НЕТ распределенных транзакций (НЕТ двуфазного комита) (возможность создания федеративных серсверов начинается с Enterprise) - НЕТ секционирование (таблиц и индексов) - НЕТ мат.представления - есть встроенные механизмы репликаций (Только подписчик) |
ORACLE 11g Express (Ограничение БД 4ГБ, CPU 1шт, ОЗУ 1ГБ)
автор |
---|
- есть и блокировочный и версионный(MVCC) механизм транзакций - есть распределенные запросы и есть распределенные транзакции (есть двуфазный комит) - НЕТ секционирование (таблиц и индексов) - есть мат.представления (но оптимизатор НЕ умеет переписывать запросы если данные можно взять из матвью) - есть встроенные механизмы репликаций (Только подписчик) |
пятница, 11 февраля 2011 г.
понедельник, 31 января 2011 г.
To Watch
The Green Hornet 2011
Extraterrestrial 2011
Battle: Los Angeles 2011
White Wall 2010
Vanishing On 7th Street 2010
I am Number Four
Heartless
Priest 13 May 2011
Sanctum 2010
Never Let Me Go "Us release date : 15 september 2010"
Monsters "Us release date : 29 october 2010"
Mars 2010
Love 2010 A movie directed by William Eubank
Hybrid 2010
Hunter Prey 2010
Earthling 2010
Downstream 2010
Arctic Blast 2010
15 Till Midnight 2010 http://www.youtube.com/watch?v=qUncOZ_EHIs
Seventh Moon
Necromentia
Psych 9
7 Days
THE BLACKOUT (2010)
The Invited - Trailer HD (2010)
Office 2010: The Movie
суббота, 29 января 2011 г.
Pdf Print Server
PDF-Сервер на основе Samba.
Turn your Linux box into a PDF-making machine (CUPS-PDF)
+добавить random pass generation
+db pusher
вторник, 25 января 2011 г.
Qt + Berkley DB
http://forum.codeby.net/lofiversion/index.php/t18682.html
!!!!
http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.vc/2005-04/msg00731.html
http://nwn.virusman.ru/trac/nwnx4/browser/trunk/lib/mysql/mysqlclient.lib?rev=90
http://yassl.com/forums/topic64-need-help-linking-simple-app-with-vs2008.html
http://www.eggheadcafe.com/forumarchives/platformsdknetworking/Feb2006/post25948687.asp
понедельник, 24 января 2011 г.
CMAKE TEST_BIG_ENDIAN Error
John Wakeman wrote:
I usually get round it by changing the following line in CMakeLists.txt (round about line 109) from :
# determine system endianess
include(TestBigEndian)
test_big_endian(OGRE_TEST_BIG_ENDIAN)
to:
# determine system endianess
#include(TestBigEndian)
#test_big_endian(OGRE_TEST_BIG_ENDIAN)
set(OGRE_TEST_BIG_ENDIAN FALSE)
Building MySQL Connector/C from the Source Code
Building MySQL Connector/C from the Source Code
Obtaining the Source Code
A TAR file containing the source code can be downloaded from the MySQL Developers site. You will need to select the source code package from the drop down list.
The source code for development releases of the connector can be found at Launchpad. The project home page can be found here.
The source code for the 1.0 branch can be found here.
To obtain the code you will need to have Bazaar installed and use the command bzr branch lp:libmysql
.
-
Building on Unix
Examples of supported Unix or Unix-like operating systems include:
Solaris
Linux
HP-UX
AIX
OS X
Compiler Tools
Ideally, the native compiler tool set for the target platform is used for compilation. This would be SunStudio for Solaris and aCC for HP-UX for example. However, the GNU tool-chain can be used across all platforms.
You also need CMake 2.6 or newer, which is available online.
To Build
If using GNU AutoTools change to the MySQL Connector/C source directory and follow the procedure below.
-
To generate the makefile enter:
shell> cmake -G "Unix Makefiles"
or for a Debug build enter:
shell> cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
-
Then build the project using:
shell> make
To Install
By default make install will install the MySQL Connector/C files in the
/usr/local
directory. You can change this behavior by specifying another directory when generating themakefile
:shell> cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/mypath
Now, in the root shell, enter the following to install the MySQL Connector/C libraries and tools:
root-shell> make install
At this point all of the MySQL Connector/C files will be in place.
-
Building on Microsoft Windows
Older versions of Microsoft Windows are not supported. Supported versions are Windows 2000, Windows XP, Windows Vista, Windows Server 2003, or Windows Server 2008.
Compiler Tools
Microsoft Visual Studio 8 and 9 are recommended. The Express Edition of Visual Studio and other compilers may work, but are untested.
You also need CMake 2.6 or newer, available at http://www.cmake.org
To Build
You need to have the environment variables set for the Visual Studio toolchain. Visual Studio includes a batch file to set these for you, and installs a shortcut into the Start menu to open a command prompt with these variables set.
Build MySQL Connector/C using the CMake command-line tool by entering the following from the source root directory in a command prompt window:
shell> cmake -G "Visual Studio 9 2008"
This produces a project file that you can open with Visual Studio or build from the command line with either of:
shell> devenv.com libmysql.sln /build Release
shell> devenv.com libmysql.sln /build RelWithDebInfo
For other versions of Visual Studio or
nmake
based build, run the following command:shell> cmake --help
to check the supported generators.
To compile the Debug build, you must run set the CMake build type so the correct version of external libraries are used:
shell> cmake -G "Visual Studio 8 2005" -DCMAKE_BUILD_TYPE=Debug
Followed by:
shell> devenv.com libmysql.sln /build Debug
To Install
To create a install package you can choose between two variants:
Creating a Zip package
Creating an MSI install package
-
Zip package
To create a Zip package, run the
cpack
command from the root of your MySQL Connector/C source directory. -
MSI Install package
The required tools include Windows XML Installer toolset (WIX), which is available online.
To create the MSI install package change to the subdirectory
win
and generate themakefile
:shell> cmake -G "NMake Makefiles"
Create the MSI install package by calling
nmake
:shell> nmake
Build Options
The following options can be used when building the MySQL Connector/C source code:
Build Option | Description |
---|---|
-DWITH_OPENSSL=1 | Enables dynamic linking to the system OpenSSL library. |
-DWITH_EXTERNAL_ZLIB=1 | Enables dynamic linking to the system Zlib library. |
воскресенье, 23 января 2011 г.
Qt project file
For my Qt project, I use this scheme in *.pro file:
HEADERS += src/dialogs.h
SOURCES += src/main.cpp \
src/dialogs.cpp
Release:DESTDIR = release
Release:OBJECTS_DIR = release/.obj
Release:MOC_DIR = release/.moc
Release:RCC_DIR = release/.rcc
Release:UI_DIR = release/.ui
Debug:DESTDIR = debug
Debug:OBJECTS_DIR = debug/.obj
Debug:MOC_DIR = debug/.moc
Debug:RCC_DIR = debug/.rcc
Debug:UI_DIR = debug/.ui
It`s simple, but nice! :)
MySql Static windows
libmysql.lib - динамическая библиотека
mysqlclient.lib - статическая
просто заменил libmysql.lib на mysqlclient.lib и все работает без зависимостей
Тема исчерпана
суббота, 22 января 2011 г.
Програмно выбрать элемент в QListView
#include QListView
#include QStringListModel
int main( int argc, char **argv )
{
QApplication app( argc, argv );
QListView list;
QStringListModel model;
QStringList strings;
strings << "foo" << "bar" << "baz";
model.setStringList( strings );
list.setModel( &model );
QModelIndex index =model.index(1);
list.selectionModel()->select(index, QItemSelectionModel::Select);
list.show();
return app.exec();
}
четверг, 20 января 2011 г.
IBM
http://www.ibm.com/developerworks/ru/library/au-googletestingframework/index.html
Автоматизация для программистов:
Автоматизированная миграция баз данных
http://www.ibm.com/developerworks/ru/library/j-ap08058/index.html
Параллельная разработка для простых смертных
http://www.ibm.com/developerworks/ru/library/j-ap10078/index.html
Работаем с Mono. Часть 1: Основные принципы Mono, инструменты, создание простейшего приложения
http://www.ibm.com/developerworks/ru/library/os_mono1/index.html
Communigate: Часть 3. Настройка почтового домена, учетных записей пользователей
http://www.ibm.com/developerworks/ru/library/l-communigate_3/index.html
Безопасный Linux: Часть 6. Система мандатного контроля доступа Smack
http://www.ibm.com/developerworks/ru/library/l-apparmor-6/index.html
Системы управления версиями для Linux
http://www.ibm.com/developerworks/ru/library/l-vercon/index.html
Mercurial: введение в распределённые системы контроля версий
http://www.developers.org.ua/lenta/articles/mercurial-step-by-step-dvcs-intro/
Mercurial: основы.
http://www.developers.org.ua/lenta/articles/mercurial-basics/
Mercurial: расширения.
http://www.developers.org.ua/archives/piranha/2008/10/06/mercurial-extensions/
Лекция «Введение в Subversion» + VIDEO
http://team.custis.ru/2009/09/subversion.html
Личный опыт разработки ПО
http://www.devexp.ru/2009/11/sistemy-upravleniya-versiyami-na-primere-subversion-vvedenie/
Managing Software Development with Trac and Subversion By David J Murphy
Publisher: Packt Publishing 2007 | 120 Pages | ISBN: 1847191665 | PDF | 2 MB
http://book-vl.ru/book/nauka_ucheba/12238-managing-software-development-with-trac.html
Организация совместной разработки ПО на базе SVN+DocBook+Mantis
- Часть 1. Особенности разработки ПО в коллективе, контроль версий, подготовка документации и взаимодействие всех участников проекта
- Часть 2. Subversion – установка сервера, создание хранилища и рабочих копий
- Часть 3. Subversion – работа с версиями проекта
- Часть 4. Subversion – клиенты для разных ОС
- Часть 5. DocBook – подготовка проектной документации
- Часть 6. MantisBT – средство общения пользователя, тестировщика и программиста
IBM To Read
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 1. Знакомство с окружением разработки. Разбор параметров командной строки, поддержка встроенной справки, "демонизация" программы.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 2. Полноценный разбор параметров командной строки.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 3. Работа с конфигурационным файлом, инициализация внутренних структур программы.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 4. Обзор методик ввода/вывода в применении к сетевым соединениям .
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 5. Способы параллельной обработки сетевых запросов (процессы, потоки и их комбинации).
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 6. Механизмы проверки подлинности.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 7. Проверка уровня полномочий. Поддержка сессий.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 8. Исполнение команд клиента.
To Read
Часть 1: Введение
Часть 2. Структура и философия Git
//--------------------------------------
Управление исходным кодом с помощью Git
IBM
Source Version Control GIT + QtCreator
Хочу описать процесс создания репозитория Git на удалённом сервере и прикручивания его к QtCreator'у на Windows и Linux машинах.
Данный пост может быть использован для создания не большого howto в wiki. Но требует дополниний..
Ну а в крайнем случае, это будет моей маленькой памяткой))
Устанавливаем на рабочую машину msysgit и прописываем новую переменную серды PERL со значением C:\Program Files\Git\bin
На сервере делаем:
useradd -m gituser
passwd gituser
cd /home/gituser
mkdir example.git
cd example.git
git init --bare
теперь идем на нашу рабочую машину и пишем:
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub remote-user@remote-host
cd mysources
git init
git remote add origin ssh://username@example.com/home/gituser/example.git
git add --all
git commit -a -m "Initital commit"
git push origin master
Это можно сделать в консольке msysgit'а.
Таким образом, мы залили на сервер наш исходник.
В креаторе создаём новый проект из репозитория git.
Всё! Можно пользоваться. Креатор склонирует репозиторий с сервера в тот каталог, который вы указали и загрузит проект. Можно работать с локальным репозиторием достаточно долго. И переодически синхронизировать его с репозиторием на сервере.
Таким образом я теперь могу писать и собирать программы как на машине с виндовсом так и с линуксом. А так же, появилась возможность коллективной работы над одним и тем же проектом.
ЗЫ: Утилиты ssh-copy-id нет в msysgit'е. Я сделал это с другой линуксовой машины. Но можно и составить файл авторизации вручную.
ЗЗЫ: Прошу сильно ногами не пинать. Это всего лишь черновик..
Source Version Control
TortiseSVN
TortiseHG
TortiseGit
For Visual Studio
VisualSVN
VisualHG
Git Extensions
For QtCreator
Slik-Subversion
Mercurial
Git
Perforce
Repositories Hostings
Perforce Public Depot
Mercurial or code.google.com
SVN
Gitorius
My Choice gitorius=)
вторник, 18 января 2011 г.
Qt Mysql Plugin
Вот для себя небольшую инструкцию написал.
Компиляция клиента MySql для студии QtCreator и компилятора Mingw32.
.1 переконфигурирование исходников Qt.
cd c:\Qt\2010.02.1\qt\
configure.exe -debug-and-release -confirm-license ^
-plugin-sql-sqlite -plugin-sql-mysql -plugin-sql-odbc -qt-libpng -qt-libjpeg -openssl ^
-opensource -no-incredibuild-xge -dont-process -no-qmake
Важный параметр -dont-process который говорит qmake не делать переконфигурирование, а только обновить кеш настоек. Значительно ускоряет этап конфигурирования. Основные настройки при которых была собрана Qt можно увидеть в файле configure.cache.
.2 Сборка плагина QMySQL
cd c:\Qt\2010.02.1\qt\src\plugins\sqldrivers\mysql
qmake -o Makefile "INCLUDEPATH+=c:/Qt/MySql/include" "LIBS+=c:/Qt/MySql/lib/opt/libmysql.lib" mysql.pro
mingw32-make
.3 Установка
Необходимо скопировать библеотеку libmysql.dll в папку c:\Qt\2010.02.1\qt\bin
вторник, 11 января 2011 г.
The Interview Framework (QListView)
Sharing a Model Between Views
In this example, we display the contents of a model using two different views, and share the user's selection between them. We will use the QDirModel supplied with Qt because it requires very little configuration, and provides existing data to the views.
The main() function for this example demonstrates all the principles involved in setting up a model and two views. We also share the selection between the two views:
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplitter *splitter = new QSplitter;
QDirModel *model = new QDirModel;
QTreeView *tree = new QTreeView(splitter);
tree->setModel(model);
tree->setRootIndex(model->index(QDir::currentPath()));
QListView *list = new QListView(splitter);
list->setModel(model);
list->setRootIndex(model->index(QDir::currentPath()));
QItemSelectionModel *selection = new QItemSelectionModel(model);
tree->setSelectionModel(selection);
list->setSelectionModel(selection);
splitter->setWindowTitle("Two views onto the same directory model");
splitter->show();
return app.exec();
}
source
понедельник, 10 января 2011 г.
qt +add dynamic widgets
//pushButton->setGeometry(QRect(310, 20, 75, 23));
QPushButton *button = new QPushButton(this);
button->setText("Hello");
button->setGeometry(QRect(31, 31, 31, 31));
this->ui->pushButton->setEnabled(false);
QObject::connect(button, SIGNAL(clicked()), this, SLOT(View_MSG()));
//button.parent(this->ui->DialogXX);
button->show();
return;
среда, 5 января 2011 г.
qt russian text on windows in console application
#ifdef Q_WS_WIN
setlocale( LC_ALL, ".1251" );
#endif