Open Side Menu Go to the Top

06-24-2012 , 08:32 AM
8gb compressed, that's a lot of wiki! I like Noah's idea though, it would be a good source for your information if there isn't an API anywhere
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
06-24-2012 , 11:13 AM
I wonder how much space you'd need if you'd do a daily wikipedia diff. Might be fun to keep an uptodate wikipedia on some machine with daily diffs so you can trace how it developed etc
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-24-2012 , 11:19 AM
All of wikipedia, including history, is a few terabytes uncompressed I think. Dunno if they're using diffs, but they're smart guys so I assume they are?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-24-2012 , 02:42 PM
Quote:
Originally Posted by daveT


Not sure how special this is. This must be available for PHP, Ruby, etc..?
yes, every web framework ever has some version of this plus lots of other stuff
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-24-2012 , 07:39 PM
Quote:
Originally Posted by clowntable
daveT using this thread as a rubber duck like a pro
Quote:
Originally Posted by TheIrishThug
Rubber Ducking FTW!!
Well, okay, I had to look that one up. In writing circles, this is considered by many to be the "writer's curse," in that once you write down the entire issue, you no longer have an issue, and thus nothing to write about. Sort of like "You don't give up on The Blues, The Blues gives up on you."

Let me now continue talking to the rubber duck. or in my case, my pillow, since I am lacking in the stuffed / fake animal department, which apparently needs to be fixed if I ever want to consider myself a valuable piece of the programming world...

Quote:
Originally Posted by Neil S
Programmatic routing is nifty the first time you run into it in any language, yes!
This isn't technically the first time I've been exposed to it. It was the first time I realized it, and now my entire sense of the world is blown.

This one piece of code encapsulates the entire first 3 chapters of SICP:

Code:
(defpage "/" []
         (common/layout
           [:h1 "Hello!"]
		   [:p "you are on page "]
		   [:p "see ya!"]))
Basically, the book introduces some easy concepts at each chapter, and toward the end, there is some notion of how to create code from pure magic. All this time, yes, create a function that takes a function as an argument and returns a function as it's answer, which can be passed into a function that returns a function as an argument, which....

Then there is one part where they talk about queues and using queues to emulate signal and message passing, and all of this really breaks down into seeing how to write the nth variation of factorial(n).

And of course, data abstraction, encapsulation, and modular design paradigms.

The above is an over-simplification for certain, but the code in question truly exposes and explains all of it in on tight package, and I've never been able to think of how it all comes together and how it is used in a specific example.

To create a new page:

Code:
(defpage "/new-page" []
         (common/layout
           [:h1 "Hello!"]
		   [:p "you are on page "]
		   [:p "see ya!"]))
simply pass an argument into a new function.

Up until the toy, I was thinking that web pages where made sort of like this:

Code:
import_template = (.....)
new_page = (.....)

Do code here:

Name the new_page to something_else

Export to file something_else.php(?)
So that in the file system, there is one distinct page for each page.

I never really seen Clojure code before, but I know that it is hard-core functional, and I know that there is a way to create code from magic. And noir has a link to this fully functional blog:

https://github.com/ibdknox/Noir-blog...views/blog.clj

And woah, there it is! I see that it's possible to have one page that creates N pages. How cool is that? 90% of what is visible in amazon.com could literately be one 200-line file that does a database call and creates thousands of product pages!

Those 2-3k lines of code transcribed + hw from SICP finally adds up to a whole piece. I'm still reeling after 2 days.

edit to add: Of course, I don't know which technique creates a faster page: individual files or one file.

Quote:
Originally Posted by gaming_mouse
yes, every web framework ever has some version of this plus lots of other stuff
Yeah, I've been thinking all this time that web coding is the dumbest thing in the world. Of course, this is coming from a guy who hard-coded HTML and CSS for the past few years, can't do JS or PHP, and thought Drupal was the shiz-bomb.

Now with something like this, the whole thing can be very interesting.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-24-2012 , 09:44 PM
Well, finally starting my journey of learning RoR. Don't know the Ruby language at all but I have taken a C and Java class and am well versed in js/php so hopefully it's not too crazy of a feat. The past two guests at my school for website courses have really talked it up and my school doesn't offer RoR courses, so I may as well start learning on my own now.

Quick question, I'm following this: http://oreilly.com/ruby/archive/rails.html and it says to DL MySQL Server, I've never used a nosql db before and don't need to for the rest of my schooling, but is this something I should learn now as well?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-24-2012 , 09:55 PM
Wouldn't it called MyNoSQL server if it was a nosql db?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-24-2012 , 10:02 PM
Yeah, bad wording on my part. I meant that I am familiar with mysql db's/code, should I try a nosql db while I'm learning RoR or just stick to MySQL?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-24-2012 , 10:41 PM
i try to stick to the defaults as much as possible when learning a new system. then i don't have to worry about whether my non-standard configuration is somehow causing the next weird problem.

worry about other stuff when you have a use case. learning a new language and a new web framework will keep you plenty busy on their own .
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 01:19 PM
Quick question:

What is the advantage of a mainframe?

Companies I work with use them (some extensively) and I genuinely fail to see any advantage that they would provide for a business.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 01:37 PM
Quote:
Originally Posted by Larry Legend
Quick question:

What is the advantage of a mainframe?

Companies I work with use them (some extensively) and I genuinely fail to see any advantage that they would provide for a business.
Are they running a lot of legacy software that would cost millions to move away from?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 02:17 PM
Quote:
Originally Posted by Larry Legend
Quick question:

What is the advantage of a mainframe?

Companies I work with use them (some extensively) and I genuinely fail to see any advantage that they would provide for a business.
Mainframes are good at lots and lots of I/O and lots and lots of uptime. If you have a lot of transactions to process and can't afford down time, and have lots of money, mainframes may be for you. The last mainframe stuff I worked on was analyzing all the long distance calls made on Worldcom every night looking for triggers that would indicate they were fraudulent. Couple hundred thousand calls a night and we weren't the only ones running jobs.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 02:37 PM
Quote:
Originally Posted by Neko
Are they running a lot of legacy software that would cost millions to move away from?
Undoubtedly yes, but they have said millions.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 02:47 PM
Quote:
Originally Posted by kerowo
Mainframes are good at lots and lots of I/O and lots and lots of uptime. If you have a lot of transactions to process and can't afford down time, and have lots of money, mainframes may be for you. The last mainframe stuff I worked on was analyzing all the long distance calls made on Worldcom every night looking for triggers that would indicate they were fraudulent. Couple hundred thousand calls a night and we weren't the only ones running jobs.
So my question is:

Is database clustering taking over where mainframes were popular?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 02:59 PM
Quote:
Originally Posted by Larry Legend
So my question is:

Is database clustering taking over where mainframes were popular?
And is database clustering a better way to do this in 2012?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 04:21 PM
Quote:
Originally Posted by ibetsports
quick python question. how can i do the following below?

Code:
def add_up_numbers(x, y, z):
    print x+ y + z

stuff = [3, 9, 1]

add_up_numbers(stuff)

new to python but:
Code:
def add_up_numbers(list):
    ttl = 0
    for i in list:
        ttl=i+ttl
    print ttl



stuff=[3,9,1]

add_up_numbers(stuff)

Last edited by _dave_; 06-25-2012 at 04:54 PM. Reason: edit: indents arent pasting correctly
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 04:53 PM
use code tags to preserve indentation

isn't a "mainframe" just a [cluster of] high end server anyhow?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 04:53 PM
Quote:
Originally Posted by ibetsports
quick python question. how can i do the following below?

def add_up_numbers(x, y, z):
print x+ y + z

stuff = [3, 9, 1]

add_up_numbers(stuff)
Code:
>>> stuff = [1, 2, 3]
>>> sum(stuff)
6
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 05:33 PM
Quote:
Originally Posted by ibetsports
quick python question. how can i do the following below?

def add_up_numbers(x, y, z):
print x+ y + z

stuff = [3, 9, 1]

add_up_numbers(stuff)
As mentioned above, just use sum but you can also use "unpacking" like add_up_numbers(*stuff)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-25-2012 , 06:55 PM
Quote:
Originally Posted by Larry Legend
So my question is:

Is database clustering taking over where mainframes were popular?
Quote:
Originally Posted by Larry Legend
And is database clustering a better way to do this in 2012?
Not sure, but I'd imagine the folks using mainframes have people motivated to get them onto something cheaper. Converting all the legacy code is probably a bigger expense than the savings they'd get moving into a non-mainframe data center.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-26-2012 , 12:20 AM
Hardware guys,

Whats a good hardware setup look like for converting video?

I'm currently using ffmpeg on a dedicated Amazon EC2 Large instance (7.5GB memory, 4 EC2 computer units) running 64bit Linux.

ffmpeg does work well but it takes too long. I'm impatient, but more importantly, users are impatient. Right now it's taking several minutes to convert a video that's 4 or 5 minutes long.

I know those aren't precise figures at all and I haven't given many helpful details, but is there a particular hardware setup that is best for converting video? Is it more important to have memory or cpu capacity for video conversion?

I can't change the conversion quality settings -- it's very important that the converted video be identical to the original. Or very, very close.

Any ideas?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-26-2012 , 12:24 AM
Why are you converting so much video?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-26-2012 , 12:31 AM
Quote:
Originally Posted by NoahSD
Why are you converting so much video?
I can't really go into specifics about what it's being used for, but basically, the users are uploading some somewhat sensitive videos (occasionally admitted into evidence in court), so it really isn't a matter of too much traffic.

Also, it seriously isn't nearly as exciting as you might think for "sensitive videos". It just isn't good for this sort of thing to be public.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-26-2012 , 12:46 AM
encoding video, it's almost always more CPU
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-26-2012 , 01:00 AM
Quote:
Originally Posted by sdturner02
Also, it seriously isn't nearly as exciting as you might think for "sensitive videos". It just isn't good for this sort of thing to be public.
What is it that you are doing? we promise not to tell anyone. And I would say you have a pretty big problem if its taking that long.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m