Here's an awesome tutorial on starting Java from C#. I really loved it. It's sincere and profound. Here is the link:
http://www.kynosarges.de/JavaCSharp.html
Friday, December 26, 2014
Wednesday, December 24, 2014
Download directly from Oracle
I wanted to download directly from Oracle. Whenever I tried to download without my web browser, like for example with a download manager, Oracle sends me a failure html. Thats not what I want. I want to download java with a download manager... My internet connection is too boring for browser download mangers to perform their magic!
Here it is. At least I got it working with wget, as my friend helped me.
Try this:
Just put the download link at the end of it. wget is awesome...
Here it is. At least I got it working with wget, as my friend helped me.
Try this:
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie"
Just put the download link at the end of it. wget is awesome...
Friday, December 12, 2014
صفحه های دانلود آفلاین آدوبی فلش پلیر و آدوبی ریدر
یه کشف بی ارزش دیگه! صفحه های دانلود ستاپ آفلاین پلیر و ریدر:
Adobe Flash Player:
https://www.adobe.com/products/flashplayer/distribution3.html
Adobe Reader:
https://get.adobe.com/reader/completion/?installer=Reader_11.0.10_English_for_Windows&direct=true&standalone=1
Adobe Flash Player:
https://www.adobe.com/products/flashplayer/distribution3.html
Adobe Reader:
https://get.adobe.com/reader/completion/?installer=Reader_11.0.10_English_for_Windows&direct=true&standalone=1
Thursday, December 11, 2014
Hey! Windows 8! Where the hell is bluetooth disconnect button!?
Well I found it. After lots of searching, here it is. (Don't blame me if its ridiculous)
Open control panel. Find the "Devices and Printers" and open it... Oh, wait! Where is it!? Wasn't it there a windows version ago? Yes it was. But now its merged with metro style settings. But if you go there, there will be no option for the "disconnection"! only removal and thats exactly what we don't want!!!!
Ok, now the real path to solution: Open control panel and switch the view to "Category". Open "Hardware and Sound", and open "Devices and Printers". So fortunately its still there!
Find your bluetooth device and double click it. A dialog will be shown which has a disconnect button! Sweet!
There is another problem, with some bluetooth handsfrees audio quality is crappy within Windows. While in "Devices and Printers", open properties for the bluetooth handsfree and uncheck "handsfree telephony" in services tab. Disconnect and Connect again in Windows. In some occasions a reboot of the bluetooth handsfree is needed too. And you're done.
Open control panel. Find the "Devices and Printers" and open it... Oh, wait! Where is it!? Wasn't it there a windows version ago? Yes it was. But now its merged with metro style settings. But if you go there, there will be no option for the "disconnection"! only removal and thats exactly what we don't want!!!!
Ok, now the real path to solution: Open control panel and switch the view to "Category". Open "Hardware and Sound", and open "Devices and Printers". So fortunately its still there!
Find your bluetooth device and double click it. A dialog will be shown which has a disconnect button! Sweet!
There is another problem, with some bluetooth handsfrees audio quality is crappy within Windows. While in "Devices and Printers", open properties for the bluetooth handsfree and uncheck "handsfree telephony" in services tab. Disconnect and Connect again in Windows. In some occasions a reboot of the bluetooth handsfree is needed too. And you're done.
Sunday, November 23, 2014
شرکت نرم افزاری
مشکلات یه مدیر شرکت نرم افزاری خیلی زیاده! زیر دستاش همه برنامه نویسن! مشکلش کجاست؟
بابا همش مشکله! تو رشته نرم افزار، چه تو کارشناسی چه تو ارشد فقط یه سری مهملات بار دانشجوها میکنن. بهترین تئوری های کاربردی مدیرتی فلان فلان رو وقتی تئوریک یاد میدن، دانشجو فقط حفط میکنه. این معلومات در نهایت تبدیل میشن به ابزار پاس کردن - یعنی مهملات.
چیزی که دانشجو باید یاد بگیره علاوه بر دانش تئوریک، تجربه عملی نحوه مدیریت یه پروژه تیمیه. این کجا به درد می خوره؟ معلومه خب، سر کار. وقتی فرد بدونه که به عنوان مدیر از اعضای تیم چه انتظاری داره می تونه بفهمه که مدیرش سر کار ازش چه انتظاراتی داره. اون وقته که سو تفاهم و نا رضایتی "معقول" میشه و تنش کاری کاهش پیدا میکنه. بدون گرفتن وقت زیاد می تونن طرز نگاه هم رو به موضوع کاریشون درک کنن.
کدوممون یادمون میاد که تو دانشگاه یه پروژه تیمی رو انجام داده باشیم؟ اگه انجام دادیم، چه تجربه های مفیدی کسب کردیم؟ چه روش علمی رو برای انجام کار انتخاب کردیم؟ چقدر جواب داده؟
یه شرکت بزرگ نباید فقط به سابقه علمی کارمنداش اتکا کنه. باید برای نیروهای تازه واردش یه دوره کوتاه آشنایی با کار بزاره که حتما شامل آموزش کوچیک مدیریتی هم باشه...
بابا همش مشکله! تو رشته نرم افزار، چه تو کارشناسی چه تو ارشد فقط یه سری مهملات بار دانشجوها میکنن. بهترین تئوری های کاربردی مدیرتی فلان فلان رو وقتی تئوریک یاد میدن، دانشجو فقط حفط میکنه. این معلومات در نهایت تبدیل میشن به ابزار پاس کردن - یعنی مهملات.
چیزی که دانشجو باید یاد بگیره علاوه بر دانش تئوریک، تجربه عملی نحوه مدیریت یه پروژه تیمیه. این کجا به درد می خوره؟ معلومه خب، سر کار. وقتی فرد بدونه که به عنوان مدیر از اعضای تیم چه انتظاری داره می تونه بفهمه که مدیرش سر کار ازش چه انتظاراتی داره. اون وقته که سو تفاهم و نا رضایتی "معقول" میشه و تنش کاری کاهش پیدا میکنه. بدون گرفتن وقت زیاد می تونن طرز نگاه هم رو به موضوع کاریشون درک کنن.
کدوممون یادمون میاد که تو دانشگاه یه پروژه تیمی رو انجام داده باشیم؟ اگه انجام دادیم، چه تجربه های مفیدی کسب کردیم؟ چه روش علمی رو برای انجام کار انتخاب کردیم؟ چقدر جواب داده؟
یه شرکت بزرگ نباید فقط به سابقه علمی کارمنداش اتکا کنه. باید برای نیروهای تازه واردش یه دوره کوتاه آشنایی با کار بزاره که حتما شامل آموزش کوچیک مدیریتی هم باشه...
Tuesday, November 18, 2014
Android Toast: Custom font or other things
Two things to do: Define a simple small layout for the custom toast and a simple startup sequence:
Toast background:
Toast layout:
Sample startup sequence in a static method:
Toast background:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@color/toast_back" />
<corners android:radius="3dp" />
<padding android:bottom="10dp" android:left="10dp" android:right="10dp" android:top="10dp" />
</shape>
</item>
</selector>
Toast layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/Toast_Root">
<TextView
android:padding="10dp"
android:id="@+id/Toast_Message"
android:background="@drawable/toast_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
Sample startup sequence in a static method:
public class Toast {
static private Activity mCurrentActivity;
static public void updateCurrentActivity(Activity act) {
mCurrentActivity = act;
}
static public void Show(int id) {
LayoutInflater inflater = mCurrentActivity.getLayoutInflater();
View layout = inflater.inflate(R.layout.toast,
(ViewGroup) mCurrentActivity.findViewById(R.id.Toast_Root));
TextView text = (TextView)layout.findViewById(R.id.Toast_Message);
text.setText(mCurrentActivity.getApplicationContext().getText(id));
android.widget.Toast toast = new android.widget.Toast(mCurrentActivity.getApplicationContext());
toast.setDuration(android.widget.Toast.LENGTH_SHORT);
toast.setView(layout);
toast.show();
}
}
Monday, November 17, 2014
کد های تلفن همراه
کد های تلفن همراه ایران:
اگه می خوای ببینی یه شماره واسه کدوم کشور و کدوم اپراتوره:
https://www.numberingplans.com//?page=analysis&sub=phonenr
ردیف
|
شماره ناحیه
|
پیش شماره |
استانهای موجود در ناحیه
|
1
|
ناحیه 1
|
0911
|
|
2
|
ناحیه 2
|
0912
|
|
3
|
ناحیه 3
|
0913
|
استان اصفهان، کرمان، یزد، چهارمحال و بختیاری
|
4
|
ناحیه 4
|
0914
|
استان آذربایجان شرقی، غربی، اردبیل
|
5
|
ناحیه 5
|
0915
|
استان خراسان شمالی، رضوی، جنوبی، سیستان و بلوچستان
|
6
|
ناحیه 6
|
0916
|
|
7
|
ناحیه 7
|
0917
|
استان فارس، کهگیلویه و بویر احمد، هرمزگان، بوشهر
|
8
|
ناحیه 8
|
0918
|
جهت مشاهده پیش شماره خطوط شهرهای مختلف در استانها بر روی نام استان مورد نظر در لیست بالا کلیک نمایید
به جز شماره های بالا که مربوط به اپراتور اول یعنی همراه اول MCI (ارتباطات سیار TCI) می باشد
پیش شماره
تلفن های همراه زیر از دیگر کد موبایل های ایران هستند که شامل سیم کارتهای
اعتباری و دائم اپراتورهای مختلف بوده که به شرح ذیل میباشند :
9 0932 – شرکت تالیا ، Taliya (عرضه در کلیه شهرهای ایران)
4 0932 ، 0931 – اسپادان ، Spadan (عرضه در کلیه شهرهای ایران)
0934 – شبکه مستقل تلفن همراه کیش ، TKC (عرضه در جزیره کیش)
0910 ، 0919 – اپراتور اول ، همراه اول ، MCI (عرضه در کلیه شهرهای ایران)
0901 ، 0902 ، 0930 ، 0933 ، 0935 ، 0936 ، 0937 ، 0938 ، 0939 – اپراتور دوم ، ایرانسل ، Irancell (عرضه در کلیه شهرهای ایران)
0920 ، 0921 – اپراتور سوم ، رایتل ، تامین تلکام ، سازمان تامین اجتماعی ، Rightel (عرضه در شهرهای بزرگ ایران)
- منبع، پورتال آسمونی http://www.asemooni.com/iran/phonebook/mobile-code#ixzz3JMXAIbyU
- منبع، پورتال آسمونی http://www.asemooni.com/iran/phonebook/mobile-code#ixzz3JMXAIbyU
https://www.numberingplans.com//?page=analysis&sub=phonenr
Thursday, November 13, 2014
Change Windows 8.1 default lock screen image
There are two points needing attention here! Lock screen image and Login screen color. For login screens currently there is no way to set an image.
Ok now. For the lock screen one, this is the path to group policies:
Ok now. For the lock screen one, this is the path to group policies:
Address: Computer Configuration\Administrative Templates\Control Panel\Personalization
Policy name: Force a specific default lock screen image
Wednesday, November 12, 2014
Force RTL layouts in Android
Yup. I'm writing a Persian oriented application. Of course I should provide RTL layouts in my application and use Iranian locale. So what to do?
In my custom Application class I use this to change the locale:
For the RTL layout part, I use this approach to force RTL on SDK v17+:
First add this option to Application section in AndroidManifest.xml:
Now add implement this function whereever in your application and call it on all Activity.onCreate event handlers:
@Override public void onCreate(){
super.onCreate();
Configuration newConfig = new Configuration();
newConfig.locale = new Locale("fa");
Locale.setDefault(newConfig.locale);
super.onConfigurationChanged(newConfig);
getBaseContext().getResources().updateConfiguration(newConfig, getResources().getDisplayMetrics());
}
For the RTL layout part, I use this approach to force RTL on SDK v17+:
First add this option to Application section in AndroidManifest.xml:
android:supportsRtl="true"
Now add implement this function whereever in your application and call it on all Activity.onCreate event handlers:
import android.annotation.TargetApi;
import android.os.Build;
import android.view.View;
import android.view.Window;
/**
* Created by Klaus on 11/13/2014.
*/
public class RTLProvider {
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
static public void forceRTLIfSupported(Window win)
{
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1){
win.getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL);
}
}
}
Monday, November 3, 2014
Using custom fonts in Android
The bad news: One can not yet (as of today) use custom fonts on UI when designing application. Custom fonts can be loaded run time only using certain methods.
The good news: In my searches, I found ways to easily use custom fonts in applications. (Yeah, easily... as in easily creating a custom turkey)
My proposal is a system containing one package and some customizations. In the package, 5 files should be implemented and AndroidManifest.xml should be altered. An enumeration, a Heart, a FontProvider and a CustomTextView.
1: The enum: To use multiple custom typefaces in application, I created an enum holding different typeface values.
2: The FontProvider: This is a static class, though it can be implemented by singletons too. The purpose will be to provide fonts from a pre-built cache to waste as little memory as possible. (Android v2* had a bug which resulted in poor memory management for fonts. In certain conditions created fonts were not correctly freed)
3: Heart: Taking in mind that fonts are needed to be customized for a certain application, one can see the need to customize other features of the application. For this, a "HEART" is created to manage different custom elements of the application. The heart is designed again as a static class but can also be implemented as a singleton.
4: A CustomTextView: Since custom fonts are more easily implemented in the code than specified in XML, creating a custom control seems less hassle:
5: Create a custom application class that starts up the HEART:
6: Modify AndroidManifest.xml to load you application class instead of the default one:
OK now. The hard part is finished. Just build your project and drag'n'drop your new TextView to any Activity you want.
.
.
.
.
PS: Just kidding. Copy your custom font in the assets folder. For AndroidStudio users: The place does not exist. Create it in
The good news: In my searches, I found ways to easily use custom fonts in applications. (Yeah, easily... as in easily creating a custom turkey)
My proposal is a system containing one package and some customizations. In the package, 5 files should be implemented and AndroidManifest.xml should be altered. An enumeration, a Heart, a FontProvider and a CustomTextView.
1: The enum: To use multiple custom typefaces in application, I created an enum holding different typeface values.
public enum FontNames {
Yekan
}
2: The FontProvider: This is a static class, though it can be implemented by singletons too. The purpose will be to provide fonts from a pre-built cache to waste as little memory as possible. (Android v2* had a bug which resulted in poor memory management for fonts. In certain conditions created fonts were not correctly freed)
public class FontProvider {
static private Map<FontNames, Typeface> mCache;
static public void Initialize(){
mCache = new HashMap<FontNames, Typeface>();
mCache.put(FontNames.Yekan, Typeface.createFromAsset(Heart.getAssets(), "BYEKAN.TTF"));
}
static public Typeface GetFont(FontNames font) {
if(mCache == null || mCache.isEmpty())
return Typeface.defaultFromStyle(Typeface.NORMAL);
return mCache.get(font);
}
}
3: Heart: Taking in mind that fonts are needed to be customized for a certain application, one can see the need to customize other features of the application. For this, a "HEART" is created to manage different custom elements of the application. The heart is designed again as a static class but can also be implemented as a singleton.
public final class Heart {
static private AssetManager mAssets;
private Heart() {}
static public void Initialize(AssetManager assets)
{
mAssets = assets;
FontProvider.Initialize();
}
static public AssetManager getAssets(){
return mAssets;
}
}
4: A CustomTextView: Since custom fonts are more easily implemented in the code than specified in XML, creating a custom control seems less hassle:
public class TextView extends android.widget.TextView {
public TextView(Context context) {
super(context);
init(null);
}
public TextView(Context context, AttributeSet attrs) {
super(context, attrs);
init(attrs);
}
public TextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
init(attrs);
}
private void init(AttributeSet attrs) {
if(attrs != null)
setTypeface(FontProvider.GetFont(FontNames.Yekan));
}
}
5: Create a custom application class that starts up the HEART:
public class Application extends android.app.Application {
public Application(){ }
@Override public void onCreate(){
super.onCreate();
ir.gnco.shila.ui.Heart.Initialize(getAssets());
}
}
6: Modify AndroidManifest.xml to load you application class instead of the default one:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="..." >
<application
android:name=".Application"
... >
<activity>
...
</activity>
</application>
</manifest>
OK now. The hard part is finished. Just build your project and drag'n'drop your new TextView to any Activity you want.
.
.
.
.
PS: Just kidding. Copy your custom font in the assets folder. For AndroidStudio users: The place does not exist. Create it in
<project>/app/src/main/assets
Friday, October 31, 2014
SLI Power requirements?
Wanna get a new PSU but don't know how much output should it cover?
I found this. Hope this helps:
http://www.realhardtechx.com/index_archivos/Page362.htm
This is the eXtreme version!
http://extreme.outervision.com/psucalculatorlite.jsp
For my i7 4820K + 2xGTX760: 750W
Glad I have 850W Gold :D
I found this. Hope this helps:
http://www.realhardtechx.com/index_archivos/Page362.htm
This is the eXtreme version!
http://extreme.outervision.com/psucalculatorlite.jsp
For my i7 4820K + 2xGTX760: 750W
Glad I have 850W Gold :D
Tuesday, October 28, 2014
Pin to start
Ever wanted to pin a java file to start menu in Windows 8.1? Or even a batch file? Here are the required registry fixes download and tutorial link:
http://www.eightforums.com/tutorials/15624-pin-start-files-windows-8-a.html
In case the hosted files should be deleted, here is the text inside them.
Replace registry:
http://www.eightforums.com/tutorials/15624-pin-start-files-windows-8-a.html
In case the hosted files should be deleted, here is the text inside them.
Replace registry:
Windows Registry Editor Version 5.00Revert registry:
; Created by: Shawn Brink
; http://www.eightforums.com
; Tutorial: http://www.eightforums.com/tutorials/15624-pin-start-files-windows-8-a.html
[-HKEY_CLASSES_ROOT\*\shell\pintostartscreen]
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[-HKEY_CLASSES_ROOT\exefile\shell\pintostartscreen]
[HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[-HKEY_CLASSES_ROOT\Folder\shell\pintostartscreen]
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=""
[-HKEY_CLASSES_ROOT\mscfile\shell\pintostartscreen]
[HKEY_CLASSES_ROOT\mscfile\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.eightforums.com
; Tutorial: http://www.eightforums.com/tutorials/15624-pin-start-files-windows-8-a.html
[-HKEY_CLASSES_ROOT\*\shell\pintostartscreen]
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\PintoStartScreen]
[HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[-HKEY_CLASSES_ROOT\exefile\shell\pintostartscreen]
[HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[-HKEY_CLASSES_ROOT\Folder\shell\pintostartscreen]
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=""
[-HKEY_CLASSES_ROOT\mscfile\shell\pintostartscreen]
[HKEY_CLASSES_ROOT\mscfile\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shellex\ContextMenuHandlers\PintoStartScreen]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\PintoStartScreen]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mscfile\shellex\ContextMenuHandlers\PintoStartScreen]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mscfile\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
Monday, October 20, 2014
Funny programming quotes
- Code so clean you can eat off it.
- If we can't fix it, it isn't broken.
- Never test for a bug you don't know how to fix.
- I think therefore I create bugs.
- Debug is human, de-fix divine.
- There's a bug born every minute, and two to replace him.
- The Bugs of Wrath
- There are 2 ways to write bug-free code; only the 3rd way works.
- Final message received from the Titanic: Fatal crash due to icebug.
- Bugs Bunny was an optimist.
- One small bug for man, one great program for mankind.
- The bug is mightier than the fix.
- Man does not live by bug fixes alone.
- For every bug fixed, there is a bigger bug not yet discovered.
- The bug stops here.
- I have just begun to debug.
- Bugs bugs everywhere, and not a fix in sight.
- A feature is a bug with seniority.
- Human knowledge belongs to the world.
- Programmers don't die, they just GOSUB without RETURN.
- Debuggers have been made by bug-creators.
systemd services
systemd services are replacements of old init.d scripts. To create one
this is an awesome post by "kezhang"@wordpress. tnx guy...
http://kezhong.wordpress.com/2011/11/19/creating-my-own-systemd-service-files-on-fedora-16x86_64/
Just a copy and paste:
http://kezhong.wordpress.com/2011/11/19/creating-my-own-systemd-service-files-on-fedora-16x86_64/
Just a copy and paste:
- Create any script file or program to be run
- Give it execute permission
- Create the service file:
# vi /lib/systemd/system/<name>.service
[Unit]
Description=Desired text of description
After=syslog.target network.target
[Service]
Type=simple
ExecStart=<executable address>
[Install]
WantedBy=multi-user.target
- Make symbolic link
# ln -s /lib/systemd/system/radinfo.service cd /etc/systemd/system/radinfo.service - Make systemd take notice of it
# systemctl daemon-reload - Activate a service immediately
# systemctl start radinfo.service - Enable a service to be started on bootup
# systemctl enable radinfo.service
سخن های گهر بار!
First they ignore you, then they laugh at you, then they fight you, then you win.
-Mahatma Gandhi
Just Cause there are things I don’t remember, it doesn’t make my actions meaningles.
-Memento
One often meets his destiny in the road he takes to avoid it.
-KungFu Panda
The reasonable man adapts himself to the world, فhe unreasonable man persists in trying to adapt the world to himself, therefore all progress depends on the unreasonable man.
-George Bernard Shaw
سیستم من! :دی
CPU: i7-4820k
Motherboard: ASUS p9x79 Deluxe
Ram: 2 x Kingstone HyperX 8GB
GPU: Gigabyte geForce GTX 760Hard #1: Samsung SSD Evo 850 500GBHard #2: Seagate 1TB sata3 7200+Power: Raidmax 850w gold
Case: Green Falcon
Monitor: Asus vs228hr
Keyboard: Razer Anansi, Logitech k90
Mouse: Razer Abyssus
Speaker: microlab m200
Fan: Buffalo Green
DVD RW: Asus
Motherboard: ASUS p9x79 Deluxe
Ram: 2 x Kingstone HyperX 8GB
GPU: Gigabyte geForce GTX 760Hard #1: Samsung SSD Evo 850 500GBHard #2: Seagate 1TB sata3 7200+Power: Raidmax 850w gold
Case: Green Falcon
Monitor: Asus vs228hr
Keyboard: Razer Anansi, Logitech k90
Mouse: Razer Abyssus
Speaker: microlab m200
Fan: Buffalo Green
DVD RW: Asus
سیاست یعنی چی؟!
یک روز یک پسر کوچولو که می خواست انشاء بنویسه از پدرش می پرسه: پدرجان! لطفا برای من بگین سیاست یعنی چی؟
پدرش فکری می کنه و می گه: بهترین راه اینه که من برای تو یک مثال در مورد خانواده خودمون بزنم که تو متوجه سیاست بشی. من حکومت هستم، چون همه چیز رو در خونه من تعیین می کنم. مامانت دولت هست، چون کارهای خونه رو اون اداره می کنه. کلفت مون ملت مستضعف و پابرهنه هست، چون از صبح تا شب کار می کنه و هیچی نداره. تو روشنفکری چون داری درس می خونی و پسر فهمیده ای هستی. داداش کوچیکت هم که دو سالش هست، نسل آینده است. امیدوارم متوجه شده باشی که منظورم چی هست و فردا بتونی در این مورد بیشتر فکر کنی.
پسر کوچولو نصف شب با صدای برادر کوچکش از خواب می پره. می ره به اتاق برادرکوچکش و می بینه زیرش رو کثیف کرده و داره توی گه خودش دست و پا می زنه. می ره توی اتاق خواب پدر و مادرش و می بینه پدرش توی تخت نیست و مادرش به خواب عمیقی فرورفته و هرکاری می کنه مادرش از خواب بیدار نمی شه. می ره توی اتاق کلفت شون که اون رو بیدار کنه، می بینه باباش توی تخت کلفت شون خوابیده و داره ترتیب اون رو می ده. می ره و سرجاش می خوابه و فردا صبح از خواب بیدار می شه.
فردا صبح باباش ازش می پرسه: پسرم! فهمیدی سیاست چیست؟ پسر می گه: بله پدر، دیشب فهمیدم که سیاست چی هست. سیاست یعنی اینکه حکومت، ترتیب ملت مستضعف و پابرهنه رو می ده، در حالی که دولت به خواب عمیقی فرو رفته و روشنفکر هر کاری می کنه نمی تونه دولت رو بیدار کنه، در حالی که نسل آینده داره توی گه خودش دست و پا می زنه.
پدرش فکری می کنه و می گه: بهترین راه اینه که من برای تو یک مثال در مورد خانواده خودمون بزنم که تو متوجه سیاست بشی. من حکومت هستم، چون همه چیز رو در خونه من تعیین می کنم. مامانت دولت هست، چون کارهای خونه رو اون اداره می کنه. کلفت مون ملت مستضعف و پابرهنه هست، چون از صبح تا شب کار می کنه و هیچی نداره. تو روشنفکری چون داری درس می خونی و پسر فهمیده ای هستی. داداش کوچیکت هم که دو سالش هست، نسل آینده است. امیدوارم متوجه شده باشی که منظورم چی هست و فردا بتونی در این مورد بیشتر فکر کنی.
پسر کوچولو نصف شب با صدای برادر کوچکش از خواب می پره. می ره به اتاق برادرکوچکش و می بینه زیرش رو کثیف کرده و داره توی گه خودش دست و پا می زنه. می ره توی اتاق خواب پدر و مادرش و می بینه پدرش توی تخت نیست و مادرش به خواب عمیقی فرورفته و هرکاری می کنه مادرش از خواب بیدار نمی شه. می ره توی اتاق کلفت شون که اون رو بیدار کنه، می بینه باباش توی تخت کلفت شون خوابیده و داره ترتیب اون رو می ده. می ره و سرجاش می خوابه و فردا صبح از خواب بیدار می شه.
فردا صبح باباش ازش می پرسه: پسرم! فهمیدی سیاست چیست؟ پسر می گه: بله پدر، دیشب فهمیدم که سیاست چی هست. سیاست یعنی اینکه حکومت، ترتیب ملت مستضعف و پابرهنه رو می ده، در حالی که دولت به خواب عمیقی فرو رفته و روشنفکر هر کاری می کنه نمی تونه دولت رو بیدار کنه، در حالی که نسل آینده داره توی گه خودش دست و پا می زنه.
Enable Drive$ shares on windows
UAC remote restritions: Drive shares are not shared by default even if you login with username and password.
To disable UAC remote restrictions:
Key:
To disable UAC remote restrictions:
Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
https://support.microsoft.com/kb/951016
If the LocalAccountTokenFilterPolicy registry entry does not exist, create it as a DWORD Value.
Set it 1 and all is done.
https://support.microsoft.com/kb/951016
تاریخچه اختراع زن
تاريخچه ي اختراع زن مدرن ايراني بي شباهت به تاريخچه ي اختراع اتومبيل
نيست. با اين تفاوت که اتومبيل کالسکه اي بود که اول محتوايش عوض شده
بود(يعني اسب هايش را برداشته، بجاي آن موتور گذاشته بودند) و بعد کم کم
شکلش متناسب با اين محتوا شده بود و زن مدرن ايراني اول شکلش عوض شده بود و
بعد، که به دنبال محتواي مناسبي افتاده بود، کار بيخ پيدا کرده بود
(اختراع زن سنتي هم، که بعدها به همين شيوه صورت گرفت، بيخ کمتري پيدا نکرد). اينطور بود که هرکس، به تناسب امکانات و ذائقه ي شخصي، از ذهنيت زن
سنتي و مطالبات زن مدرن ترکيبي ساخته بود که دامنه ي تغييراتش، گاه، از
چادر بود تا ميني ژوپ. مي خواست در همه ي تصميم ها شريک باشد اما همه ي
مسئوليت ها را از مردش مي خواست.مي خواست شخصيتش در نظر ديگران جلوه کند نه
جنسيتش، اما با جاذبه هاي زنانه اش به ميدان مي آمد. ميني ژوپ مي پوشيد تا
پاهايش را به نمايش بگذارد اما، اگر کسي به او چيزي مي گفت، از بي چشم و
رويي مردم شکايت مي کرد. طالب شرکت پاياپاي مرد در امور خانه بود اما در
همان حال مردي را که به اين اشتراک تن مي داد ضعيف و بي شخصيت قلمداد مي
کرد. خواستار اظهار نظر در مباحث جدي بود اما براي داشتن يک نقطه نظر جدي
کوششي نمي کرد. از زندگي زناشويي اش ناراضي بود اما نه شهامت جدا شدن داشت،
نه خيانت. به برابري جنسي و ارضاي متقابل اعتقاد داشت اما، وقتي کار به
جايي مي کشيد، به جواني اش که بي خود بي جهت پاي ديگري حرام شده بود تاسف
مي خورد.
گفتند که باید میهن را دوست داشت، که باید خود را فدای آن کرد، که باید به قهرمانان ملی افتخار کرد، که باید به نظم کشور احترام گذاشت، که باید از دشمنان متنفر بود.
گفتند که خانواده مقدس است، که باید به والدین خود احترام بگذاریم، که باید به خاطر زحمت هایی که برایمان کشیده اند از آنها ممنون باشیم، که باید به حرف آنها گوش دهیم، که باید هر کاری که انجام دهند باز دوستشان داشته باشیم،
گفتند باید از خداوند به خاطر اینکه به ما زندگی ارزانی داشته، آن را از ما نگرفته، و راه نجاتی در برابرمان گذاشته، متشکر باشیم.
بعد گفتند که باید این کار را بکنم و من هم چیزی نپرسیدم و آن کار را انجام دادم. بعد گفتند که باید به آنجا بروم و من هم چیزی نپرسیدم و به آنجا رفتم.
و بعد گفتند و باز من نپرسیدم ...
گفتند که باید میهن را دوست داشت، که باید خود را فدای آن کرد، که باید به قهرمانان ملی افتخار کرد، که باید به نظم کشور احترام گذاشت، که باید از دشمنان متنفر بود.
گفتند که خانواده مقدس است، که باید به والدین خود احترام بگذاریم، که باید به خاطر زحمت هایی که برایمان کشیده اند از آنها ممنون باشیم، که باید به حرف آنها گوش دهیم، که باید هر کاری که انجام دهند باز دوستشان داشته باشیم،
گفتند باید از خداوند به خاطر اینکه به ما زندگی ارزانی داشته، آن را از ما نگرفته، و راه نجاتی در برابرمان گذاشته، متشکر باشیم.
بعد گفتند که باید این کار را بکنم و من هم چیزی نپرسیدم و آن کار را انجام دادم. بعد گفتند که باید به آنجا بروم و من هم چیزی نپرسیدم و به آنجا رفتم.
و بعد گفتند و باز من نپرسیدم ...
مرد از نگاه زن - نسخه ای متفاوت
این نوشته رو از وبلاگ خانم الهام برداشتم،به نظرم خیلی جالبه و از یک خانم بعید !
یک وقت هایی فکر میکنم مرد بودن چقدر می تواند غمگین باشد. هیچ کس از دنیای مردانه نمی گوید. هیچ کس از حقوق مردان دفاع نمیکند. هیچ انجمنی با پسوند «... مردان» خاص نمیشود. مرد ها نمادی مثل رنگ صورتی ندارند. این روزها همه یک بلند گو دست گرفته اند و از حقوق و دردها و دنیای زنان می گویند. در حالی که حق و درد و دنیای هر زنی یکی از همین مردها است. یکی از همین مردهایی که دوستمان دارند. وقتی میخواهند حرف خاصی بزنند هول می شوند. حتی همان مرد هایی که دوستمان داشتند ولی رفتند...
یکی از همین مرد های همیشه خسته. از همین هایی که از 18 سالگی دویدن را شروع میکنند. و مدام باید عقب باشند. مدام باید حرص رسیدن به چیزی را بخورند. سربازی، کار، در آمد، تحصیل... همه از مرد ها همه توقعی دارند. باید تحصیل کرده باشند. پولدار، خوشتیپ، قد بلند، خوش اخلاق، قوی... و خدا نکند یکی از اینها نباشند...
ما هم برای خودمان خوشیم! مثلن از مردی که صبح تا شب دارد برای در آمد بیشتر برای فراهم کردن یک زندگی خوب برای ما که عشقشان باشیم به قولی سگ دو می زند، توقع داریم که شبش بیاید زیر پنجره مان ویالون بزند و از مردی که زیر پنجره مان ویالون می زند توقع داریم که عضو ارشد هیات مدیره ی شرکت واردات رادیاتور باشد. توقع داریم همزمان دوستمان داشته باشند، زندگی مان را تامین کنند، صبور باشند و دلداریمان بدهند، خوب کار کنند و همیشه بوی خوب بدهند و زود به زود سلمانی بروند و غذاهای بد مزه مارا با اشتیاق بخورند و با ما مهمانی هایی که دوست داریم بیایند و هر کسی را که ما دوست داریم دوست داشته باشند و دوست های دوران مجردیشان را فراموش کنند و نان استاپ توی جمع قربان صدقه مان بروند و هیچ زن زیباتری را اصلن نبینند و حتی یک نخ هم سیگار نکشند!
مرد ها دنیای غمگین صبورانه ای دارند. بیایید قبول کنیم. مرد ها صبرشان از ما بیشتر است. وقت هایی که داد میزنند وقت هایی هم که توی خیابان دست به یقه می شوند وقت هایی که چکشان پاس نمیشود وقت هایی که جواب اس ام اس شب به خیر را نمیدهند وقت هایی که عرق کرده اند وقت هایی که کفششان کثیف است تمام این وقت ها خسته اند و کمی غمگین. و ما موجودات کوچک شگفت انگیز غرغروی بی طاقت را دوست دارند. دوستمان دارند و ما همیشه فکر میکنیم که نکند من را برای خودم نمیخواهد برای زیبایی ام میخواهد، نکند من را برای شب هایش میخواهد؟ نکند من را برای چال روی لپم میخواهد؟ در حالی که دوستمان دارند؛ ساده و منطقی... مرد ها همه دنیایشان همین طوری است. ساده و منطقی... درست بر عکس دنیای ما.
بیایید بس کنیم. بیایید میکرفون ها و تابلو های اعتراضیمان را کنار بگذاریم. من فکر میکنم مرد ها، واقعن مرد ها، انقدر ها که داریم نشان میدهیم بد نیستند. مردها احتمالن دلشان زنی میخواهد که کنارش آرامش داشته باشند. فقط همین. کمی آرامش در ازای همه فشار ها و استرس هایی که برای خوشبخت کردن ما تحمل میکنند. کمی آرامش در ازای قصر رویایی که ما طلب میکنیم... بر خلاف زندگی پر دغدغه ای که دارند، تعریف مردها از خوشبختی خیلی ساده است
Remove Windows 8's default inclusion of user libraries in My Computer
So, you are irritated by Windows 8's default inclusion of user libraries within My Computer?
Remove them:
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
Desktop Folder – {B4BFCC3A-DB2C-424C-B029-7FE99A87C641}
Documents Folder – {A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}
Downloads Folder – {374DE290-123F-4565-9164-39C4925E467B}
Music Folder – {1CF1260C-4DD0-4ebb-811F-33C572699FDE}
Pictures Folder – {3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}
Videos Folder – {A0953C92-50DC-43bf-BE83-3742FED03C9C}
With some windows updates, these values are automatically added again.
Tell me manual labor...
Remove them:
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
Desktop Folder – {B4BFCC3A-DB2C-424C-B029-7FE99A87C641}
Documents Folder – {A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}
Downloads Folder – {374DE290-123F-4565-9164-39C4925E467B}
Music Folder – {1CF1260C-4DD0-4ebb-811F-33C572699FDE}
Pictures Folder – {3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}
Videos Folder – {A0953C92-50DC-43bf-BE83-3742FED03C9C}
With some windows updates, these values are automatically added again.
Tell me manual labor...
Subscribe to:
Posts (Atom)