« first day (1434 days earlier)      last day (3519 days later) » 

12:37 AM
answer1: don't use eval, use declare
answer2: don't use declare
answer3: don't use eval, use declare
4
Q: How to assign space-containing values to variables in bash using eval

Sébastien ClémentI want to dynamically assign values to variables using eval. The following dummy example works: var_name="fruit" var_value="orange" eval $(echo $var_name=$var_value) echo $fruit orange However, when the variable value contains spaces, eval returns an error, even if $var_value is put between do...

 
 
13 hours later…
1:28 PM
> echo "shits broken yo"
 
Hey @terdon. What's shakin'?
See, I can sound street!
 
:)
 
Breaking bad is that drug dealer thing, right? Nice stuff to show the kids.
 
Best bloody thing to ever hit television.
In terms of acting, scenario, photography, direction, you name it.
 
@terdon So I hear. Never watched it. Better than Buffy, even?
 
1:30 PM
Different league. Better than Six Feet Under and Sopranos FFS!
 
@terdon Sopranos is about gangsters. Nice stuff to show the... Wait, I said that already.
I liked Buffy. I was sad when it was over.
 
Buffy was about vampires, nice stuff to show the...
 
Plus they killed off my favorite character.
@terdon Touche. Well, it was about the battle between good and evil, female empowerment and all that jazz. Or so the womens studies people would doubtless say.
I think there is a positive message or two buried in there somewhere. Though of course it was mostly about making money. Like pretty much all of US television.
 
Please. I stopped watching that as soon as they brought in angels.
 
@terdon angels? What angels?
 
1:42 PM
At some point they had angels appearing I think. Dunno, watched it many years ago. I loved the first few seasons but then it devolved into a soap opera as I recall.
 
@terdon No angels. There was a character called Angel. Who was definitely not an angel. And everything on US tv devolves into a soap opera eventually.
Angel left the show after season 3 for his own show.
 
@FaheemMitha Not true. Watch some of the good stuff. Breaking Bad, Six Feet Under, Sopranos, The Wire. You know, series where the people actually act, not just sit there looking pretty.
 
@terdon I've never seen any of those. I hate crime stuff. Is any of that stuff actually not about crime? About, you know, normal people, who aren't criminals?
 
@FaheemMitha Yes, Six Feet Under. That's pure drama, no violence, no crime.
 
Apparently Six Feet Under was not about criminals.
 
1:46 PM
It's about a family owned business.
 
@terdon Party Down was pretty good. Ever watched it?
Six Feet Under actually sounds mildly interesting.
 
It's excellent!
 
2:26 PM
@terdon totally
 
:)
 
Arrested Development!
 
Ha! lol.
 
@Braiam Good grief.
 
 
1 hour later…
3:45 PM
I think this is called an exponential curve.
The binaries are not that large. This my kernel, I think
-rw-r--r-- 1 root root 2.8M Jul 23 22:56 vmlinuz-3.2.0-4-amd64
 
@FaheemMitha Yep. y = a * b^(c*x) + d is an exponential
Not sure that's the normal variables used :-)
 
@derobert Normal variables?
 
I believe most of that growth has been in drivers and additional architectures.
 
@derobert I imagine so.
Changed a lot in two decades, though
 
@FaheemMitha Well, like how a linear equation is y = m*x + b. 'm' and 'b' are the normal variables used there. Of course, the math works the same with y = a*x + b, but that's not the tradition.
 
3:54 PM
@derobert Tradition? You mean the constant names?
 
@FaheemMitha Yeah. None of those are part of your kernel image, since distro kernels build almost all of them as modules. Try du -sh /lib/modules/$(uname -r)
@FaheemMitha Well, m is used instead of, e.g., a.
 
@derobert good point.
 
anthony@Zia:~$ du -sh /lib/modules/`uname -r`
160M    /lib/modules/3.16.1-p+
 
@derobert I don't think there is really any rule here. And i've got two math degrees, and a statistics degree, and have seen too many equations to count.
@derobert hmm
This is debian, right?
 
No, that's not a Debian kernel... though its basically me just rebuilding a kernel with the Debian config.
 
3:57 PM
@derobert Oh, custom kernel?
 
149M    /lib/modules/3.14-2-amd64    # that one is Debian
 
running on testing?
@derobert Oh, Ok. And the other one?
 
@FaheemMitha The other one is taking the Debian config as a base, adding a patch, saying 'm' to any new questions, and building that. Patch due to bugzilla.kernel.org/show_bug.cgi?id=82961
 
@derobert Also running on Debian, though?
I think the kernel has a very conservative approach to removing hardware drivers. So probably todays kernels would run on 10 year old hw.
 
@FaheemMitha Yeah, also running Debian. Both of those are from the same machine.
 
4:02 PM
And of course, it has a very wide user base.
@derobert ok. why did you build a custom kernel? stock not working for you?
 
3 mins ago, by derobert
@FaheemMitha The other one is taking the Debian config as a base, adding a patch, saying 'm' to any new questions, and building that. Patch due to https://bugzilla.kernel.org/show_bug.cgi?id=82961
@FaheemMitha More than 10, I bet.
 
@derobert so, bugfix?
Is the patch in the kernel now?
 
@FaheemMitha Yeah, weird incomprehensible one.
 
@derobert Possibly, I was being conserative.
 
@FaheemMitha No. No one understands the behavior my machine exhibits. So I keep building custom kernels. Someday I might get fed up and send a patch to add a boot flag instead...
 
4:04 PM
10 years is 2004, which is not really that long ago. I had a machine built in early 2007 running without fuss as of last year, on debian stable.
 
I have a machine from ~2000 running oldstable. But I plan to retire it, not upgrade it.
 
@derobert Don't understand. You can get a patch to fix the issue, but nobody understands the behavior? Is this related to one of the questions you asked here?
@derobert Long time.
 
@FaheemMitha Yep. Nobody understands the behavior. The short story is that Intel realized the hardware in this machine has a bug. Their workaround is to disable a feature in the chipset. But on this machine (and, apparently, only this machine) disabling that feature results in problems.
So the patch I have is just to ignore Intel, and leave the supposedly broken feature enabled.
Given, I don't know if anyone else with the same board has tested. Maybe its unique to the mobo.
Its odd too, because the vendor (who'd normally be responsible for disabling the feature in the BIOS in response to the Intel errata) instead puts out new BIOS versions enhancing the feature. So they act as if the errata is not there...
And they don't support Linux, of course, so are no help.
 
Weird. Have you had an expert look at it?
And who is the vendor?
I see you just reported this bug. But this is an old problem?
 
4:23 PM
@FaheemMitha Yeah. I sent it to the relevant mailing lists a while ago. Links in the bug.
 
@derobert But not reported it till recently?
 
@FaheemMitha Yeah. One of the folks contacted me off-list recently and suggested I actually fill out a bug report. So I did.
 
@derobert Oh. I would probably have done so earlier. I file bug reports at the time. People mostly ignore them.
But I recall you file lots of bug reports too.
 
Yeah. Just didn't think to do it for that bug, for some reason. Of course, how easy debbugs is helps :-)
 
@derobert True.
 
4:30 PM
Speaking of bugs, I need to report one that newer kernels broke the brightness keys on my laptop. Once I find the kernel with the regression.
 
@derobert Oh. Sounds like a lot of work.
 
Exactly. Well, mostly a lot of rebooting. But there is a clear solution, the kernel just needs to not have bugs. ;-P
 
@derobert :-)
Send a memo to Mr. Torvalds. "Linus, fix all the bugs."
 
5:03 PM
Entertaining read, if someone has a spare 15 min - cs.vu.nl/~ast/brown
 
5:24 PM
Bit of historical trivia. Once upon a time, a chap called Stallman was trying to write a free (as in freedom) C compiler. He saw Prof. Tanenbaum has written a compiler entitled Free University Compiler Kit, and apparently misunderstood the meaning of the word Free used there. As Stallman puts it, he derisively replied that the university was free, but the compiler was not, and then tried to recruit Stallman to work on the compiler.
 
6:08 PM
Is there anyone here that is good with building RPMs
 
 
1 hour later…
slm
7:28 PM
@ryekayo - I am but cannot get into it currently. Perhaps later tonight after work.
 

« first day (1434 days earlier)      last day (3519 days later) »