Tuesday, June 27, 2017

How to make adobe acrobat open a specific page using command prompt?


Use the following command

Acrobat /A "page=5" "xxx.pdf"


where xxx.pdf is the name of the pdf document.

The above command works in Acrobat 7 and up

Sunday, June 18, 2017

Did you brick your LG G4 H812 smartphone? Here are some tips that could salvage your device

This was successful in my Koodo LG G4 H812

Follow the instructions at https://forum.xda-developers.com/g4/help/lgup-install-kdz-mm-lp-t3249803 (section: TO GO BACK TO LP FROM MM )

Open LGUP on your computer, select "Upgrade", click on FILE PATH and point it towards your LP KDZ. Close LGUP and re-open LGUP. Make sure you select REFURBISH this will do a full wipe, tick BIN file. Press Start. Make cup of tea and be patient 

There is no need to enter download mode! LGUP will do it for you.

The software will take care of all the things automatically and reboot to Android.

Root Telus Rogers Koodo LG G4 H812 by downgrading from Marshmallow to LollyPop


There is  no root available for LG G4 H812 Marshmallow (MM) devices now, but root is available for LollyPop (LP). The strategy here is to downgrade to LP from MM and root the device. You need to disable the OTA updates, since the root will be lost if you upgrade.

  1. Download stock KDZ from https://forum.xda-developers.com/g4/general/canadian-guide-complete-source-lg-g4-t3212449
    1. I downloaded "H81210n_00_1204STOCKkdz". All carriers are cross compatible (Bell, Rogers, Telus, Wind)
    2. If you have downloaded 10n kdz, you should download 10n rooted image. I downloaded "H81210nROOTEDrogers.rar"
  2. Downgrade from Marshmallow to LP https://forum.xda-developers.com/g4/help/lgup-install-kdz-mm-lp-t3249803
    1. TO GO BACK TO LP FROM MM - Open LGUP on your computer, select "Upgrade", click on FILE PATH and point it towards your LP KDZ. Close LGUP and re-open LGUP. Make sure you select REFURBISH this will do a full wipe, tick BIN file. Press Start. Make cup of tea and be patient 

      If you are worried about losing your data after a full wipe, why not use the LG Bridge software to backup and restore.... it works fine!
      YOU WILL LOSE ROOT!
      There is no need to enter download mode! LGUP will do it for you.
  3. Install ROOT https://www.reddit.com/r/lgg4/comments/3ir4zn/guide_how_to_root_all_versions/
    1. Use dd if=/data/media/0/rootedsystem.img bs=8192 seek=65536 count=548352 of=/dev/block/mmcblk0 for H812 (all Canadian carriers LG G4)
  4. Install Xposed using https://forum.xda-developers.com/g4/themes-apps/guide-installing-xposed-locked-t3181593
    1. Follow instructions below worked for me
    2. Download FlashFire version 0.24, and xposed-v87-sdk22-arm64.zip
    3. Set your date of phone back to June 2015 .
    4. v0.24 has only one option (Auto-mount), which I left unchecked.
    5. 20 minutes of blank screen, then some flashfire text and a reboot, it optimized apps, and then finished normally.
    6. Install the xposed installer apk (XposedInstaller_3.0_alpha4.apk) and it reports v87 is active 

Saturday, February 20, 2016

Universal Naked ADB Driver

  1. Download from http://forum.xda-developers.com/google-nexus-5/development/adb-fb-apx-driver-universal-naked-t2513339 
  2. go to developer mode by clicking the build number 7 times (System--> About-->Build number)
  3. Plug in device
  4. In device manager point to this folder for adb driver
  5. Drivers will be successfully installed

Thursday, February 4, 2016

Lenovo Thinkpad T410 audio through displayport

Getting audio to pass through to TV when using displayport to HDMI cable

DisplayPort is actually capable of tranmitting audio and video. However some manufacturers or OEMs do not implement the audio pass through, luckily Lenovo has implemented this correctly in their Thinkpad T410.

Follow the step to get your laptop audio to TV.

  1. Start playing the video.
  2. When video is playing, go to Control Panel -->Sounds-->Playback tab
  3. You'll see a list of audio playback devices and TV (or amplifier if you are using one) should be one of the options. 
  4. Just choose TV and set it as the default audio device 
  5. The audio will be passed automatically to the TV from now on.

Move from Windows to Linux


  1. Install Linux Mint 17.3 Rosa with Cinnamon desktop (other good desktops are KDE MATE and XFCE)
  2. Install Libre Office instead of MS office
  3. Use Evolution instead of outlook
  4. Install Crossover linux or WINE:  is a Microsoft Windows compatibility layer available Linux.
  5. Install Oracle's virtualbox for running Windows virtual box

Wednesday, November 11, 2015

Solution - LG G2 stuck in TWRP recovery and does not boot to Android

If you get stuck in TWRP with no hope of booting to OS, here is the solution. Usually in these cases, any hardware button combinations will take take you to TWRP (and not to bootloader etc.)

This normally happens when you are trying to install an OS update from LG and your phone has custom recovery like TWRP installed.

Looks like you need to rebuild the boot system.

At TWRP recovery, go to advanced, select TWRP terminal command and press select (you do not have to select any file)

Type

dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota

(Remember - no space between sdcc.  and 1) hit Enter and wait for the command to execute

type

dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc

then hit enter and wait for the command to execute.

Reboot. Hope fully your phone will boot to Android OS. If not go ahead and install your favorite ROM. My favorite is CloudyG2.

This has worked for LG G2 D803 version and hopefully will work on other versions.

Wednesday, August 26, 2015

Install TWRP custom recovery on Koodo LG G3 D852 on Lollipop 5.0.1


  1. Install (D852) LG G3 AutoRec-Lollipop
  2. Install Reboot
  3. Open the app and grant root access using SuperSU
  4. Click the option to install TWRP and TWRP will be successfully installed.
  5. Verify TWRP installation by clicking Reboot app and reboot to recovery.
  6. The phone will reboot to TWRP recovery

Tuesday, August 25, 2015

Xposed for Koodo LG G3 D852 on Lollipop 5.0.1


  1. Root phone using steps described here and install custom recover TWRP.
  2. Download xposed-v71-sdk21-arm.zip or whatever is the latest (just make sure that download the arm zip, not arm64)
  3. Download XposedInstaller_3.0_alpha4.apk or whatever is the latest 
  4. Install the apk and do not open once complete (just click DONE)
  5. Now to to custom recovery
  6. Flash the zip file (should take only couple of seconds)
  7. Go back and Clear the Dalvik/Cache (very important)
  8. Reboot and you should have exposed installed.


Sunday, August 23, 2015

Root Koodo LG G3 D852 on Lollipop 5.0.1

ALL previous methods do not work with this phone. Use the following method

Pre-requisites:
  1. Enable ADB debugging
    1. Go to Settings > About Phone > Software Information and tap build number until you are presented with "You are now a developer".
    2. Back to Settings screen.
    3. In Developer Options, enable USB Debugging.

  1. Insert the original LG USB cable to your computer
  2. Download one-click script.
    Script and zipfile maitained by @NBreunig3. Questions about this method should be directed to him.

    Download and extract the zip file: 
    http://bit.ly/1Ln9FKB
    Then, run (double click) the root.bat script.
  3. Follow the instructions in the command mode

            You will get following message
============================================ 
Please make sure that USB debugging is enabled, and LG drivers are installed.

Starting adb server..

Waiting for device..

Device detected!

Pushing files..
3763 KB/s (1048328 bytes in 0.272s)
4044 KB/s (4017098 bytes in 0.970s)

Rebooting..

Looking for LG serial port..

Phone found at COM9! (could be different for your phone)

Rebooting into Download mode..

Waiting for device..

Phone found at COM9!

Rooting phone..

If you don't see the SuperSu installer script runs within about a minute,
then the root failed.
Once root is done you have to pull battery to exit download mode.

Author : blog.lvu.kr
SPECIAL COMMAND : ENTER, LEAVE

###########

root installer for LG (lollipop)
..... by digital-bug @XDA

##

remounting /system (rw)

#######

extracting SuperSU

#####

installing SuperSU

################################################################################
###

remounting /system (ro)

#####

cleanup

######

done!
please press control+c to exit...

#
==============================================
5.     Remove the battery and insert again to restart the phone.
6.     You will be rooted. See SuperSU installed.

           



All credits to http://forum.xda-developers.com/lg-g3/general/guide-root-method-lg-devices-t3129197 

Saturday, January 10, 2015

Flash tomato on Asus router RT-N10P

These steps are adapted from http://tech.surveypoint.com/posts/tomato-firmware-install-on-asus-rt-n10p-router/. I had simplified the procedure for you here.

  • Download the appropriate tomato firmwire. I used tomato-K26-1.28.RT-N5x-MIPSR2-121-Max.trx. You can download it from http://tomato.groov.pl/download/K26RT-N/build5x-121-EN/. Newer version (latest is v124) are available in http://tomato.groov.pl/download/K26RT-N/ .
  • Download and install asus firmware recovery program from http://support.asus.com/download.aspx?SLanguage=en&p=11&m=RT-N10P&hashedid=wU7ZgKmZf29DK6D0
  • Start the firmware recovery program.
  • Select the firmware (do not press upload yet)
  • Unplug the power from the router (no need to use static IP in your computer).
  • Holding down on the reset button, plug in the power to the router.
  • holding the reset button till the power light blink slowly,
  • Press the upload button in the recovery program. 100% upload will be completed in a minute.
  • Wait for 30 minutes more without disturbing the router. You'll probably see the errors in the firmware restore window. Do not worry about that as long as wait for 30 min.

  • Connect to 192.168.1.1 in your web browser.
  • Switch off the router, press wps button and turn on the router --> to reset the nvram.
  • Configure the router and have fun.

Wednesday, August 27, 2014

Extend the whatsapp subscription by one year using a landline number

If you do not want to pay for whatsapp subscription, you can extend the license for one year with this small workaround. You need to have a landline number for this to work.
  1. Delete the expired account. This option is available in settings>Account. You need to type your number before you can delete the account.
  2. Press change number available in settings>Account. 
  3. Type in the landline number. Whatsapp will attempt to verify this number by sending SMS. Since this number is landline, there will not be any SMS received.
  4. Whatsapp will wait for 5 min. After 5 min is expired, whatsapp will give you an option to call you at the landline number with the confirmation number.
  5. Confirm to call the landline number and input the confirmation received on landline number.
  6. You got one year free subscription to whatsapp.

Tuesday, July 3, 2012

Map Box.net drive in computer using WebDAV

We can create a local box.net virtual drive in computer using WebDAV. We will be able to do most of the file operations (copy/paste/rename) from local computer. Note that the local drive will be only a link to your box.net folder and contents, which means the actual folders and files will not be downloaded to local computer (like Dropbox).

In Windows 7,

  1. Go to (My) computer.
  2. Click Map network drive
  3. In the folder field, write  https://www.box.net/dav
  4. After few seconds, there will be prompt for user name and password. Provide your box.net user name and password.
  5. Windows will create a local drive pointing to your box.net folders.

Monday, June 25, 2012

How to Convert Magnet links into Torrent Files for Dropbox

Some of the torrent sites like Piratebay are now offering only magnet links. If you would like to start downloading remotely using dropbox, the magnet links won't work. To remote start downloading, you need the actual .torrent file.


Steps to follow:


  1. Click the magnet link. Your default torrent client (for example utorrent) will start. Press OK.
  2. After the download has started, go to %appdata%\uTorrent\ using Windows Run command (for other clients look for appropriate folder in  %appdata%.)
  3. You will see the .torrent file there (if the .torrent file is not there, it means the torrent downloading has not yet started - wait for couple of minutes. Once the download is started, the .torrent file will show up).
Now you have the .torrent file to email or copy to Dropbox.


Option 2: You can try to use http://magnet2torrent.me. However, it may not work all the time. It may work, if your torrent is a popular one.

Thursday, June 21, 2012

Calculation of Vapor Pressure using HYSYS.

1. Create the stream with required composition.
2. Enter the desired temperature in the stream properties.
3. Set the vapor fraction to 0.

Pressure calculated by HYSYS will be the vapor pressure of that stream. Note that HYSYS is actually calculating the bubble pressure when vapor fr is set to 0. But bubble pressure is the vapor pressure at the specified temperature (good for any temperatures below critical temperature).




Note that vapour pressure greater than operating pressure (for a multicomponent mixtures) just means that the liquid is flashing (Vapor-liquid mixture).


To keep a liquid phase the operating pressure of a two phase stream is usually greater than the liquid vapour pressure. Otherwise the liquid would flash so that the vapour pressure of the new liquid is below the operating pressure. This means for a two phase multicomponent mixture flow, the vapour pressure of liquid at operating temperature (not entire mixture) is equal to the operating pressure.



Sunday, May 20, 2012

DD-WRT Client bridge on Linksys E3000.


These steps are adapted from http://www.dd-wrt.com/wiki/index.php/Client_Bridged. However following those steps exactly did not work for me. So I modified the steps.

My Access point router IP address was 192.168.1.254 (not a DD-WRT router) and E3000 router IP address was 192.168.1.1.

  1. Download and install a recommended build for your router. DO NOT USE SP1. I used Kong build 19200M (SP2 build).
  2. Do a HARD reset on your router (press the reset buttom on the back of E3000 router for at least 15 seconds).
  3. Connect a cable from your computer to the LAN port on your router.
  4. Set your computer to a static IP address of 192.168.1.9
  5. Set your browser to 192.168.1.1 and open the dd-wrt webgui.
  6. You should be asked to change your password and username. Carefully type these in. (If you aren't asked for a password and username, do a hard reset, this time doing it properly!) Hit change password.
  7. Go FIRST to wireless, wireless security and enter the security type and key that matches your primary router.
  8. Hit SAVE, (NOT APPLY)
  9. Go to the wireless, basic settings page and change the wireless mode to Client Bridge.
  10. Your wireless network mode, channel and encryption should be set to the same as the primary router.
  11. Set the wireless network name to exactly the same as your primary router. Make sure spelling and capitalization match.
  12. Hit SAVE, (NOT APPLY)
  13. Goto Setup, basic setup and enter a router Local IP address of 192.168.1.1. (it will be already that IP address). Leave subnet mask at 255.255.255.0.
  14. Set the Gateway IP to the IP of your primary router. (192.168.1.254 in my case)
  15. Leave Local DNS blank
  16. Change your timezone and DST to match where you are.
  17. Hit SAVE, (NOT APPLY)
  18. Goto Security, Firewall. 
  19. Disable SPI Firewall
  20. Hit Save and then Apply.
  21. You are done. Wait for at least 5 minutes for the router to apply the configuration and get the internet connection from primary router. 


Tuesday, January 24, 2012

Full Vacuum Vs Half Vacuum (FV Vs HV)

Full Vacuum
FV - for vessels having steam as a signifacant component during normal operation (e.g. amine regenerators)
- for vessels operating under full or partial vacuum during normal operation
- for vessels that require steamout as part of routine operation
Half Vacuum
HV - for vessels that require steamout during maintenance only and does not have steam during normal operation

Thanks doct9960
Boiler and Pressure Vessel engineering - FV versus Half FV for BPVD?:

Wednesday, January 18, 2012

Interconnection tag number is P&ID.

Interconnection tag number is P&ID is called OPC.

"Interconnections (OPC) – are shown between lines (piping OPC) and instrument signals (Instrument OPC) present on two different P&ID sheets. Sometime these interconnectors are also assigned with a unique tag number. For easy identification of the connections between two P&IDs. A connector present on two different drawing connection a line or a signal carries the same tag number."

Tuesday, January 17, 2012

LOC acronym

In Chemical Engineering plant terms, we always talk about Loss of containment. So the acronym LOC is used in HAZOPs regularly to indicated "loss of containment".