@Dashrender Perhaps if the assumption is that it's unpacked, uncompressed high definition or something. You can send audio at like 16kbps quality and it's still fairly decent, and video not much higher. I don't know why he'd suggest that at all.
Posts made by tonyshowoff
-
RE: 1984 is Here, Samsung Smart TV is Monitoring You
-
RE: 1984 is Here, Samsung Smart TV is Monitoring You
Finally, the TV can yell at me when I'm not working out correctly or hard enough. And also people are not looking at the other bright side: when you're alone it can automatically unlock specific programming
-
RE: Palindrome Checking with Lua
@scottalanmiller Are we a Lua fan or was that some sort of erotic thing I inadvertently took part in?
-
Palindrome Checking with Lua
@scottalanmiller suggested, nay demanded, a new tradition be started of writing palindrome checkers in various languages, here's the thread:
http://mangolassi.it/topic/3833/palindrome-checking-with-php
Here is Lua:
io.write("Your palindrome is: ") pal=io.read() if pal == string.reverse(pal) then print("It's good."); else print("Fail"); end
-
Palindrome Checking with PHP
@scottalanmiller created two threads involving Python and palindromes:
http://mangolassi.it/topic/3472/palandrome-checking-with-python
http://mangolassi.it/topic/3471/recursive-palandrome-checking-in-pythonI thought I'd be a smarty pants and do the same thing in PHP, also without a loop:
<?php echo 'Your palindrome is: '; $pal = trim(fgets(STDIN)); if ($pal == strrev($pal)) { echo 'It\'s good.'; } else { echo 'Fail'; }
Just remember: in interpreted languages, native functions/methods are always faster, don't reinvent the wheel and make it into a triangle.
However, typically the point of questions like this may be to test if the developer knows how to do recursion without using classic loops (for, while, do, foreach, whatever), and the secret sauce here is simply calling a function from itself:
<?php itsaloop(); function itsaloop($i = 0) { echo $i . "\n"; // One could also use global $i instead of passing the variable as a parameter or get even more fancy and pass by reference. if ($i < 10) { itsaloop($i); $i++; } }
I use this as one of three primary test questions for hiring programmers, almost everyone fails this one, and it's the first one -- and they can be completed in any Turing complete language. Some even claim that it's impossible. Understanding a language, how it works, and being able to think of things in a simple manner is important to being a good programmer, and unfortunately most programmers aren't any good. Being able to pass questions like this, in any language, really shows that one could learn essentially any programming language.
-
RE: Too Afraid to Compile
This happens to me a lot, it's the point where I take a break, knowing I'll have to spend a while debugging. However, every once in a while, it's perfect and those moments are amazing, but you take a long break anyway, because, hey, why not?
-
RE: Are you (your users) a Hack waiting to happen?
@scottalanmiller Social engineering is a great way to get what you want. Buffer overflows, unescaped SQL queries can be patched, people wanting to be "helpful" is an aspect of our culture and I imagine only by hiring the most irritating, least helpful people on the planet can you begin to really secure yourself against your own employees.
-
RE: Happy Birthday to my Boss
@Vidya I hear that, my last birthday the cake my employees got me said "Go to hell you old bastard"
-
RE: How can you help to make our 1st Birthday Party Awesome?
If I've learned anything from my kids, on your first birthday you destroy the cake, put some in your hair, and cry a lot. I think we can all do that for MangoLassi.
-
RE: Best Editors for JavaScript
I primarily use PhpStorm to edit JavaScript (as it's a part of PHP projects most of the time), however my wife uses WebStorm and says it's the best editor. Additionally, I've used it a bit as well, it's not far off from PhpStorm, and it's definitely the best. I think what a lot of people don't consider are things like code completion, parameter suggestions/hints, context linking, etc which things like Notepad++ do not do. Those things alone make things go much faster.