2014年10月31日 星期五

andjoy-tech theme menu

 <li class='dropdown'>
              <a class='dropdown-toggle' data-toggle='dropdown' href='#'>
                Dropdown
                <b class='caret'>
                </b>
              </a>
              <ul class='dropdown-menu'>
                <li>
                  <a href='#'>
                    Action
                  </a>
                </li>
                <li>
                  <a href='#'>
                    Another action
                  </a>
                </li>
                <li>
                  <a href='#'>
                    Something else here
                  </a>
                </li>
                <li>
                  <a href='#'>
                    Separated link
                  </a>
                </li>
                <li>
                  <a href='#'>
                    One more separated link
                  </a>
                </li>
              </ul>
            </li>

2014年8月9日 星期六

八個方式讓你重新找回自己



生活總是充滿酸甜苦辣,有時候,你可能會面臨一個時刻,你可能覺得自己的生活已經陷入了低潮,無法感受到快樂,直到你改變你的觀念與想法為止。試著思考以下八個方式讓你重新找回自己。

一、改掉一個壞習慣

如果你想展開新的生活與進入新的人生階段,你應該改掉壞習慣。壞習慣是你性格中的弱點,此外,他們可以成為你身體的無聲殺手。雖然它很難一次打破所有壞習慣,但你總能想辦法克服你最糟糕的壞習慣,並跟它說「再見」。

二、培育新的特質

培育新的特質是最有效的方法來重新找回自己的,你需要創建一個你認為會改善你的個性的清單,有些人想變得更加活躍,而其他人則傾向於更加勇敢和堅定。這份清單將幫助你體現所有需要的素質。知道自己想成為什麼樣的人、過什麼樣的生活,通常有更多的機會來實現自己的目標。

三、你如何定義自己?

有些人認為,家庭是他們生活中的主要優先事項,其他人則認為職業生涯為主要考量。花一點時間,找出你如何定義自己的人生,這些想法可以替你找出更好的方向,並幫助你更加享受你的生活。

四、追隨你的熱情

不要說你太老了,跟隨你的熱情吧。每個人都有一個夢想,只是缺乏機會實現而把它忘了。現在是時候去重新找回那些屬於你的熱情,做一切可能的事情,使他們成為真實,即使那代表你需要走出你的舒適區。

生命太短暫,你應該明白,找回你的熱情和夢想可以替你的人生展開新的一頁。

五、擬定計畫

重新找回自己是一個具有挑戰性的事情,所以你需要逐步達到你想要的改變,所以更加需要擬定一個計畫。在你的計畫與目標逐步實現之前,隨時提醒自己正在往正確的方樣前進。

六、做你喜歡的事

生活有時候是如此的緊張和忙碌,你經常會發現自己妥協和避免某些事情。人生最大的浪費莫過於花時間在一些連你自己都不喜歡的事情上,但只要是做自己喜歡做的事,就變成為了理想工作而不再感到那麼辛苦。

七、別在意別人的想法

人們總是會評論你的,因為他們總是以自己的親身經驗來評論他人,你只需要忽略他們的意見並專注於你內心的想法。另外,不要試圖討好你周圍的人,因為那只是在浪費時間。

八、正向思考

重新找回自己最有效的方法之一便是讓自己正向思考,讓自己的生活充滿正向能量。如果你想過一個正向的人生,那麼你應該讓積極的習慣和積極的想法取代消極的想法。不久之後,你會發現無論你的生活還是個性,都有了非常好的變化與進步。

人們往往喜歡跟積極與散發正向能量的人交往,讓自己正向思考可以讓生活越來越好。

你有沒有試過重新找回自己?歡迎分享。

2014年6月30日 星期一

copy Assets to sdcard & install apk

 private void copyAssets() {
        AssetManager assetManager = getAssets();
        String[] files = null;
        try {
            files = assetManager.list("");
        } catch (IOException e) {
            //Log.e("tag", "Failed to get asset file list.", e);
        }
        for(String filename : files) {
            InputStream in = null;
            OutputStream out = null;
            try {
              in = assetManager.open(filename);
              File outFile = new File(Environment.getExternalStorageDirectory(), filename);
              out = new FileOutputStream(outFile);
              copyFile(in, out);
              in.close();
              in = null;
              out.flush();
              out.close();
              out = null;
            } catch(IOException e) {
                //Log.e("tag", "Failed to copy asset file: " + filename, e);
            }    
        }
    }
    private void copyFile(InputStream in, OutputStream out) throws IOException {
        byte[] buffer = new byte[1024];
        int read;
        while((read = in.read(buffer)) != -1){
          out.write(buffer, 0, read);
        }
    }

------------------------------------------------------------
//Install APK
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")), "application/vnd.android.package-archive");
startActivity(intent);  

[Fixed]avast2014開機服務關閉,無法打開(cause ofMactype)


如果装了Mactype,原因是avast与mactype冲突。在你的mactype当前使用的配置文件的[UnloadDLL]中添加三行:
afwerv.exe
avastsve.exe 

Avast.setup
(AvastUI.exe可以不用排除,若排除前三个依旧无效,推荐再排除了这个试试)
排除后再重启下系统(切记)。

2014年2月25日 星期二

Xampp Server Public

go to start > cmd > ipconfig

copy ipv4 address

192.168.1.1

forward > add > port80, HTTP

+ NOIP

2014年2月24日 星期一

step by step Ubuntu 12.04 install of Realtek RTL8188CE driver (wifi usb)

I am completely new and have never even used terminal before, let alone try install a driver, so while I’ve read countless answers in response to the above problem, I don't even understand when I should press 'enter' in terminal.
My situation is I bought a new Toshiba Satellite C850- F0155 with no OS. Installed Ubuntu 12.04 from a CD. But only way to connect to net is through ethernet cable (i.e. no wireless option). The wireless card is a Realtek RTL8188CE. My Kernal is 3.2.0-52-generic.
I downloaded rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013(1).tar.bz2. I attempted to follow the instructions in the read me file, but i don't for the life of me understand them, nor any others in forums i've poured over.
If there is a kind soul who could help me with step by step (à la idiots guide) I would be deeply deeply greatful.
P.S. I have emailed Realtek with my query but was just sent the same read me file I couldn't understand to begin with.
shareimprove this question
 
Do you still need help? I maintain a forked version of the driver that fixes the compile errors you'll likely encounter, especially as you upgrade. It can be found here: github.com/FreedomBen/rtl8188ce-linux-driver I can help you if you are still struggling. –  Freedom_Ben Nov 29 '13 at 23:49
add comment

3 Answers

  1. Move the file you downloaded to your home directory using your file manager or terminal
     mv [destination of downloaded file]  /home/[username] 
  2. Now we move to our home directory and Unzip the file using the following command or right click and select Extract here:
     cd /home/user 
    tar xvjf  rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013(1).tar.bz2 
  3. Now access the Directory which we extracted
    cd rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013(1) 
  4. Next we install the necessary dependencies to compile the driver
    sudo apt-get install gcc build-essential linux-headers-generic linux-headers-$(uname -r)
  5. Now we start the compilation
    make
  6. and then sudo make install
  7. Execute modprobe rtl8192ce
  8. Now If all went right your system should be running the wireless driver,Now we need to tell the system to load it whenever it starts, so we will edit the file /etc/modules
    sudo nano /etc/modules
The file initially will look like this
enter image description here
we add the line rtl8192ce to it and it will look like this
enter image description here
Press ctr+O to save it and ctr+X to exit nano editor
There seems to be a bug in the manufacturers driver and in case you are not able to compile it pleaseread this. See the NOTES in the link.
shareimprove this answer
add comment
The driver you're looking for is no longer maintained by RealTek, so I've put it up on GitHub where I maintain it from version to version so that it compiles and works. So far, I as well as several others have had good experience using this driver. You can find the driver here on Github:https://github.com/FreedomBen/rtl8188ce-linux-driver
There are full instructions located on the project page (that link will take you there) and also in the README.md file that comes with the checkout.
The commands you see in the instructions should be entered into a terminal prompt, and enter should be pressed at the end of each line.
Please let me know of any issues you encounter and I'll try to help.
shareimprove this answer
add comment
The driver for your device comes with ubuntu when it is installed but it can be problematic.
Please do:
echo 'options rtl8192ce swenc=1' | sudo tee /etc/modprobe.d/rtl8192ce.conf  
sudo modprobe -rfv rtl8192ce
sudo modprobe -v rtl8192ce 
shareimprove this answer

2014年2月21日 星期五

Virtualbox boot (dual-boot) partition

In Ubuntu:
VBoxManage internalcommands createrawvmdk -filename usbdisk.vmdk -rawdisk /dev/sda
sudo chmod 777 /dev/sda
sudo chmod 777 usbdisk.vmdk

In Windows:
VBoxManage internalcommands createrawvmdk -filename "C:\ubuntu.vmdk" -rawdisk "\\.\PhysicalDrive0"

2014年2月19日 星期三

finish() animation


55down voteaccepted
i can override a pending transition just calling after finish();
in my case i have done it to avoid transitions.
finish();
Details.this.overridePendingTransition(R.anim.nothing,R.anim.nothing);
Order is important :)
Hope it helps to someone!
share|improve this answer
3 
This is the correct answer. Please upvote. –  Sky Kelsey Sep 6 '12 at 1:55
 
Only this answer works for me.... Thanks for this valuable answer. –  Deepak Sep 28 '12 at 8:58
 
Just what I have been looking for! Thanks for sharing!! –  vm204 Oct 11 '12 at 17:11
 
by "Details", @Goofyahead is naming his enclosing Activity--ymmv. This technique worked for me to replace an animation from Theme.Dialog on 2.x, but not 3.x or 4.x –  larham1 Oct 25 '12 at 23:49
 
Thanks a lot it helps me lot –  Yerram Naveen Mar 22 '13 at 12:01
show 2 more comments
Related Posts Plugin for WordPress, Blogger...