To turn on hibernate mode in Windows 7, use command
powercfg /h on
To turn on hibernate mode in Windows 7, use command
powercfg /h on
Some time ago I’ve been faced with issue when i should been send REST requests from javascript to another domain. It was connected with REST API of some web service.
I’ve been forced to use PHP proxy. And I want to share my proxy.php
Features
Using
proxy.php?type={GET|DELETE}&url={website_url}
proxy.php?type=POST&url={website_url}&data={data}
If you need implement of HMAC-SHA1 on javascript, use crypto-js lib.
<script type="text/javascript" src="http://crypto-js.googlecode.com/files/2.3.0-crypto-sha1-hmac.js"></script>
<script type="text/javascript">
var hmac = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase");
var hmacBytes = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase", { asBytes: true });
var hmacString = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase", { asString: true });
</script>
var ts = Math.round((new Date()).getTime() / 1000); console.log(ts);
You can check it through http://www.unixtimestamp.com/ service.
If you want to edit file in muCommander with F4 on mac, you should
1. create link to TextMate
ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate
2. go to
/Users/{user_name}/Library/Preferences/muCommander/commands.xml
3. and edit or create file
<?xml version="1.0" encoding="UTF-8"?>
<commands>
<command alias="edit" type="system" value="mate $f"/>
</commands>
There ara some commands that can be useful fo you — http://trac.mucommander.com/wiki/CommandsXml
Столкнулся с проблемой, когда мое изображение ImageView находящееся визуально у правого края дисплея внезапно исказилось, стало выглядеть не так, как я ожидал. Оказалось, что его правый край пересекает правую границу родительского контейнера. В таком случае, отрисовка изображения происходит с учетом установленного ScaleType (Options for scaling the bounds of an image to the bounds of this view). Continue reading “Android: ImageView пересекающий границы родительского слоя”
Возможно, вы сталкивались с проблемой, когда анимация не запускается сразу при запуске приложения (когда мы пытаемся вызвать ее из метода onCreate текущей Activity).
Решением проблемы является запуск анимации в отельном потоке. Continue reading “Android: Sprite (frame by frame) animation running from onCreate method”
Add flag WindowManager.LayoutParams.FLAG_FULLSCREEN to android.view.Window. Continue reading “Android fullscreen layout”
If you faced with “Invalid project description” error when trying to crete project from existing source, you should
Continue reading “Creating Android proj from existing source”
There is simple way to get Twitter entries in JSON format with AJAX in few minutes. Continue reading “Simple way to get Twitter entries with AJAX”