|
2011-05-05
, 05:04
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#362
|
The Following User Says Thank You to Mentalist Traceur For This Useful Post: | ||
|
2011-05-05
, 08:25
|
|
Posts: 519 |
Thanked: 123 times |
Joined on Oct 2010
@ Malaysia
|
#363
|
|
2011-05-05
, 08:55
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#364
|
And our winner of the "gratuitous use of cat*" award for today is...
*Also, echo. And output substitution.
Or was this meant as an entry to the obfuscated code competition?
Anyway, congrats on the Russian roulette script, had me lmao for a good 5 minutes.
For the critics regarding "it's different people each time" -- no, it's a bunch of people all doing it this time, and you can bet they all did it last time they saw a long thread about non-production software, and chances are quite good they'll all do it next time.
Not that I really think getting them to wipe their filesystems will change that, though.
|
2011-05-05
, 09:13
|
|
Posts: 2,021 |
Thanked: 1,060 times |
Joined on Apr 2010
@ Hong Kong
|
#365
|
|
2011-05-05
, 09:21
|
Posts: 701 |
Thanked: 585 times |
Joined on Sep 2010
@ London, England
|
#366
|
My crumby scripting skills aside, what is a better/safer way of retreiving the temperature value and formatting it for use in a script/DCEW?
awk '{ print $1/10}' </sys/class/power_supply/bq27200-0/temp
|
2011-05-05
, 09:37
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#367
|
I don't know about better but the echo and command substitution are redundant (try removing them). To save on the cat you can use input redirection, try:Code:awk '{ print $1/10}' </sys/class/power_supply/bq27200-0/temp
The Following User Says Thank You to vi_ For This Useful Post: | ||
|
2011-05-05
, 11:30
|
|
Posts: 474 |
Thanked: 368 times |
Joined on Jan 2010
|
#368
|
|
2011-05-05
, 11:37
|
|
Posts: 552 |
Thanked: 183 times |
Joined on Oct 2009
@ Not decided
|
#369
|
|
2011-05-05
, 14:05
|
Posts: 72 |
Thanked: 35 times |
Joined on Jul 2010
|
#370
|
Tags |
battery-status, bq27x00_battery, kernel, kernel-power, misiak4king, noobs-cant-read, pali4president, patches, readdirections, revolverspinyou |
Thread Tools | |
|
That said, I didn't say it's okay in my eyes to be so intentionally ignorant/inattentive as to not read a thread, or at least try to skim for relevant info (sometimes threads are massive). But if the demographic you're trying to change is defined by the fact that collectively they ask the same question repeatedly in the same thread, then that demographic isn't exactly likely to learn from an incident obscurely tucked away in the middle of one thread.
I'm not supporting the behavior of those who don't bother to at least read a couple of pages of the thread; I am just pointing out that the flaws in the way it was dealt with in this case.
- Edit -
You can get Google search of this site through this forum btw: Just use Power Search. It's in the top of the menu on the right above the recent posts list.
Last edited by Mentalist Traceur; 2011-05-05 at 03:42. Reason: Comment on Google Search