I made again fresh install of Ubuntu, because I have crashed DPKG manager, by deleting it’s folder
So I will setup again all the stuff needed to develop on php/mysql
and Rhodes Mobile Framework
1) First update your system
I made again fresh install of Ubuntu, because I have crashed DPKG manager, by deleting it’s folder
So I will setup again all the stuff needed to develop on php/mysql
and Rhodes Mobile Framework
1) First update your system
Here you can find some logo inspiration
Hm… A day ago I was playing to make some enhasments on mysql, and suddenly nerved I have closed terminal without waiting debconfig to finish his job… Then after trying to make some
sudo apt-get install XXXXX
command I have got
Ubuntu? Natty? You have installed 11.4 and have problem, that Nautius is not opening any folder? Hm… If you don’t care and need Ubuntu One syncro service, than just do
I was thinking on how to integrate phpThumb in CodeIgniter when I found a great answer on StackOverFlow.com
”
You can do this with the codeigniter image manipulation class.
Just create a helper with your image resize code, here is a basic example:
In the Helper
if ( ! function_exists('generate_image'))
{
function generate_image($img, $width, $height){
$obj =& get_instance();
$obj->load->library('image_lib');
$obj->load->helper('url');
$config['image_library'] = 'gd2';
$config['source_image'] = $img;
$config['new_image'] = './resources/images/img_tp/tn_img.png' ;
$config['width'] = $width;
$config['height'] = $height;
$obj->image_lib->initialize($config);
$obj->image_lib->resize();
return $config['new_image'];
}
}
Name as you wish and ensure to load the helper in your controller constructer.
Then in your view:
; ?>)
You can create a set of functions in the helper to perform different manipulation tasks and use them directly in your view using this method.
Here is the image manipulation documentation. http://codeigniter.com/user_guide/libraries/image_lib.html
”
Source: http://stackoverflow.com/questions/3336627/how-to-integrate-phpthumb-into-a-codeigniter-applications-architecture
Скоро НГ, а в Ереване УЖЕ началось… Цены странно повысились. Например за день сыр который был от силы максимум 1600драмов сразу же вырос до 2800драмов. Цены не только на сыр а в общем очень высокие. Картошка, Хлеб, Сахар, ЯБЛОКИ!
Яблоки стоят 500др, что есть почти евро! А в австрии те же яблоки 2кг я покупаю за 1,4Евро.
Вот люди и убегают….
Часто нам надо работать а друзья всё пишут и пишут в чат на фейсбук.. В одноклассниках есть например функция , правда не бесплатная-Невидимка. На фейсе же есть один очень универсальный путь… Можно для одних быть видимим, а для других уйти в оффлайн..
Сначала нажмите на кнопку “Списки Друзей” и создайте одну специальную… Я назвал свою ‘??????” что на армянском и значит “специальная”…
Сначала правда ваш лист будет пуст. Не знаю почему у меня не получилось в пустой лист в самом чате путем перетаскивания бросить людей из нижнего списка в пустой список “??????” … Наверное не усмотрели… Поэтому идем в модуль Друзья, и нажимаем на Редактирование друзей. и выберем первую жертву. И кидаем его/ее в список первым.
После этого можно в самой окошечке чата путем перетаскивания бросать друзей снизу из группы Другие пользователи в наш магический специальный лист.
И все!Вы имеете например 3 человека в вашем специальном списке. Если они те которые вас достают иногда и не дают работать просто уйдите оффлайн для них нажав на волшебную кнопку ….
А может вы захотите вырубить просто всех остальных а видимым оставаться для Специальной группы?
Ну на вкус и цвет …….
(c) Gevork Grigorian
Hi there.. I am not sleeping and searching for a good library to use . I am looking a multipurpose cache library for my social network made on codeigniter. So Now question about the scaling stands out and I am gonna to integrate some memcache .
So will do parallel list of all found libs. Maybe you will need it.
Add some more in comments if you know
How to install memcached on ubuntu?
Just go to System-> Administration-> Synaptic Package Manager
Enter in search field memcache and then find 3 packages on the screen below. It’s memcached, libevent, and php5-memcached. The last is optional , libevent is required for memcached.Even if you will not check green it for installation ,the system will force you to install it
That’s all.
If you don’t have synaptic package manager, and maybe you are installing it on server via command line,
then use
sudo apt-get install libevent memcached
In Next post I will tell you how to use it with CodeIgniter Framework
Mr Gewa
Sometimes you can find in internet a lot of nice info. How to do this , how to do that…
So I decided to start more professional blogging and will write a lot on finance. Because I love finance and I should make a research in this field.
So each topic I will cover will help me to remember the material I am learning or will be learning.
So let’s go some basics.
Risks
What are risks? Usual people will mostly say that it’s a probability to loose something. Financials would say that it’s not only about to loose something . Risks are basically probability of getting less than expected value or more than expected.
I will say it less complicated. Let’s assume that you have a small very small peace of land. Let’s say 12cm x 20 cm. Enough to put just potato. So if you in early spring will buy a potato and will put it in this ground and will water it, till the end of the autumn you should get the result. Potato seller , let’s say “Gold Potato’s and Batatas GmBH” salesman , give you a sertificate, where they proove that you will get in average 400-450g potato from each one.(Farmville players instead of 450g read 450points )
)))
So ExpectedValue (1potato) = 450g
So what is the risk here? There are 100s of types and subtypes of the risks, but here the risk from this investment could be not only not getting even 1potatoe in the end, but also getting 500,600 or 700g. potatoe in the end.
As I found out in the Book of Aswath Damodaran
INVESTMENT VALUATION: SECOND EDITION,
“… Thus, risk includes not only the bad outcomes, i.e,
returns that are lower than expected, but also good outcomes, i.e., returns that are higher
than expected. In fact, we can refer to the former as downside risk and the latter is upside
risk; but we consider both when measuring risk. In fact, the spirit of our definition of risk
in finance is captured best by the Chinese symbols for risk, which are reproduced below:
The first symbol is the symbol for “danger”, while the second is the symbol for
“opportunity”, making risk a mix of danger and opportunity. It illustrates very clearly the
tradeoff that every investor and business has to make – between the higher rewards that
come with the opportunity and the higher risk that has to be borne as a consequence of
the danger.”
From the first point of view it’s somehow strange, why the over-performed result is also risk. It should be advantage many starters should say. Hm.. Let me explain why. The simple explanaition of this could be following.
Imagine you have a Company A very conservative business,which stocks are sold very good, it’s stocks are growing or dropping in a very small altitude , lets say they are swimming in 20-26 amplitude ,and you have Company B, which management is very risk-loving persons team, and they do the business in a way that they or have very high profits or very high loses, so their stocks price changes in very big amplitude. Lets say today they cost 12, tomorrow 50, after tomorrow 5. Would you invest in Company B? YES? Then maybe you like ventures…
We will come to Venture Investments bit later, but now, the basic Idea is that usually how big is the probability of the over-performing amplitude, there is the same probability that the investment will down-perform in the same amplitude.
When you have possibility to overearn 20% there is also maybe not the same but very close possibility that you will loose so much.
So be careful with something over-perfoming
Regards
Mr Gewa
