Reply
Thread Tools
Posts: 299 | Thanked: 557 times | Joined on Aug 2012
#4601
Originally Posted by Schturman View Post
For landscape mode I think we don't need it, because all N9QT menu for portrait mode
And 2 files is ok Sometimes I need one file and sometimes 2
Ok great. I am not actively following this thread so if you have further requests in the future please pm me.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#4602
Originally Posted by brkn View Post
Ok great. I am not actively following this thread so if you have further requests in the future please pm me.
OK, thanks
But what with error in your last script ?
 
Posts: 299 | Thanked: 557 times | Joined on Aug 2012
#4603
Originally Posted by Schturman View Post
OK, thanks
But what with error in your last script ?
Attach the modified script + how you execute it.

Last edited by brkn; 2012-11-11 at 19:18. Reason: typo
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#4604
Originally Posted by brkn View Post
Attach the modified script + how you execute it.
I'm not changed anything:
Code:
#!/bin/bash

bar="========================================"
barlength=${#bar}
FOLDER="https://dl.dropbox.com/u/17706605"
FILE[0]="N9_QuickTweak_en_v9.4.pdf"
FILE[1]="N9_QuickTweak_ru_v9.4.pdf"

echo "Calculating download size ..."

for (( i = 0 ; i < ${#FILE[@]} ; i++ ))
do
    if [ -f "${FILE[$i]}" ] ; then rm -f "${FILE[$i]}" ; fi
    length=$(wget "$FOLDER/${FILE[$i]}" --spider --server-response -O - 2>&1 | sed -ne '/Content-Length/{s/.*: //;p}')
    totallength=$(($totallength + $length))
    touch "${FILE[$i]}"
    nice -n 19 wget -N -q "$FOLDER/${FILE[$i]}" 2>/dev/null &
done

echo "Downloading $totallength bytes"

tmp=1
totaltmp=1

while [[ $totaltmp -lt $totallength ]]; do
    tmp1=$(stat "${FILE[0]}" | grep Size | awk '{print $2}')
    tmp2=$(stat "${FILE[1]}" | grep Size | awk '{print $2}')
    totaltmp=$(($tmp1 + $tmp2))
    n=$(($totaltmp * $barlength / $totallength))
    percent=$((100 * $totaltmp / $totallength))
    printf "\r[%-${barlength}s]" "${bar:0:n}"
    printf " $percent%%"
    sleep 0.1
done
printf "\n"
And I run it with:
Code:
bash /opt/N9QTweak/Tweaks/downloader.sh
But it complain about "+"...
 
Posts: 299 | Thanked: 557 times | Joined on Aug 2012
#4605
Originally Posted by Schturman View Post
I'm not changed anything:
Code:
#!/bin/bash ...
And I run it with:
Code:
bash /opt/N9QTweak/Tweaks/downloader.sh
But it complain about "+"...
Which folder you are in when you are running the script?
Working fine here:
Code:
~/MyDocs/Downloads $ bash /opt/N9QTweak/Tweaks/downloader.sh 
Calculating download size ...
Downloading 6089447 bytes
[========================================] 100%
~/MyDocs/Downloads $ ls
N9_QuickTweak_en_v9.4.pdf  N9_QuickTweak_ru_v9.4.pdf
~/MyDocs/Downloads $
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#4606
weird
It run from script named START in /opt/N9QTweak. It run as root..
I use:
Code:
      cd /home/user/MyDocs/Documents
bash /opt/N9QTweak/Tweaks/downloader.sh
I will try again.... a few minutes...
 
lorenzo's Avatar
Posts: 491 | Thanked: 299 times | Joined on Jul 2012 @ Pordenone IT
#4607
hi, after refresh when i unlock the screen it became black (both lockscreen and homescreen) but the lps shows the oplogo and clock correctly
 
Posts: 117 | Thanked: 20 times | Joined on Aug 2012
#4608
Did you add iphone keyboard style to v9.4 ?
 
Posts: 73 | Thanked: 13 times | Joined on Dec 2011 @ Philippines
#4609
Hi there, someone here having the same issue as mine? I am using Billboard Screen and everytime I use tweak A for faster transitions only (w/o landscape and portrait), the info on my billboard screen goes at the very edge where I can't read some of the info anymore.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#4610
Originally Posted by Travz03 View Post
Hi there, someone here having the same issue as mine? I am using Billboard Screen and everytime I use tweak A for faster transitions only (w/o landscape and portrait), the info on my billboard screen goes at the very edge where I can't read some of the info anymore.
use tweak f-2 for custom oplogo size and change the size to 45 for both minimum and maximum size... Read the PDF / wiki...
 

The Following User Says Thank You to thedead1440 For This Useful Post:
Reply

Tags
hebrew vkb, n9 qtweak, n9 quick tweak, n9 quicktweak, root-ssh

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:06.