« first day (334 days earlier)      last day (4838 days later) » 

18:00
but in your situation i would choose one from following list and end expand you skills in NIX administration : Gentoo, FreeBSD, OpenBSD, Arch
I've got a CentOS box I'm trying to get going in Hyper-V, maybe I'll goof around with that more.
My friend really likes the BSD stuff. Says the structure of things makes sense.
all of them have integrated tools for downloading source , compiling it and installing for you with single command
( some text-based dialogs might pop up sometimes )
Sounds pretty slick.
Upgrading my 10.04 ubuntu to 11 lts, hoping that they have php5.3 in the apt-get listing =/
it takes time ( but not much of attention ) to build system , but when it is done , it is optimized for your hardware
last time i built freebsd system , it took me about 4 hours to compile and configure all the things i needed
Soooo much time. I could read a book in that span
New route. Books/tutorial suggestions?
I understand how low-level things work, is there something that would take me through how linux is built?
And progress to a high-level thing?
18:06
low level things?
I'm not being clear...
I'm wondering if there's a tutorial or lesson out there that takes you through everything linux is. How/why it was designed that way, the evolution of it, etc.
So by "low level" I mean, how the kernel is written, why
Then take you through how it ties into other components, the file system.
Takes you up to things like webservers and X.
ie, going from atomic scale components to molecules to organisms to structures.
@Incognito you can read a book while doing that
@tereško Oh geeze, I thought you meant 4 hours of me doing work, not watching it compile.
> it takes time ( but not much of attention ) to build system (..)
you need to glance at the shell sometimes to see if application is already done , or maybe there is some dialog waiting for you
and for a webserver you dont need X
=P
@tereško No no, but I'm looking at other things-- linux is more than webservers.
Which is when I was asking for something that takes you from low-level architecture into larger systems such as X.
I wouldn't run a GUI on a server =/.
18:12
well , if you leave out compiling gnome or kde , then i would say: less then 8h
kde/gnome can be installed from packages , or , you go hardcore , then you can install something like fluxbox , and use it while kde or gnome is built
but they take a loooooot of time
@Incognito what if you need to run a gui application?
@ircmaxell On a linux server?
It's never come up :P.
@ircmaxell then you find someone who knows what he is doing , and slooowly step away from the server
if you want a good desktop environment , you can build it up from the previously named system , or you can use something more user-friendly like Sabayon (gentoo based) or PC-BSD (freebsd based) , which both have all the trappings of ubuntu-like starting point , but give you access to all the server-level tools
though , building your own desktop environment from scratch is kinda nice in itself
Would a quick SQL question be acceptable in here?
to a limited extent
18:21
meaning?
woop, ubuntu 11 has 5.3
@Incognito , this is an especially old screen , from a system built in 2005th : i.sstatic.net/yva5E.jpg
this was when winVista was only a far prospect
@Shawn do not ask us to make SQL procedures
I have a trigger in SQL Server like this:
    CREATE TRIGGER tblMMMaterials_ITrig ON dbo.tblMMMaterials FOR INSERT AS
    [all sorts of stuff that works...]
    INSERT INTO tblMMMaterialCategoryMatrix (materialid, categoryID, [Primary]) VALUES (inserted.MaterialID, inserted.CategoryID, Yes) WHERE inserted.CategoryID IS NOT NULL
but when I click the **check syntax** button, I get the following error message:
    Error 128: The name 'MaterialID' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.
The question: How can I insert a row in tblMMMaterialCategoryMatrix with the data of the row inserted in tblMMMaterials?
Okay-- so I'm on 5.3, how do I make a callback with arguments?
1 hour ago, by Charles
$my_key = 'derp'; usort($myArray, function($a, $b) use(&$my_key) { return $a[$my_key] - $b[$my_key]; });
Two questions here--
18:36
@tereško :-D
1. Does "use" work as expected as if I'm passing regular function arguments?
2. Do I need the reference to &$MyKey or is the value $MyKey fine to use?
@Incognito use($MyKey) will bind the value at define time, while use(&$MyKey) binds by reference, using whatever current value is in $MyKey at call time instead. If you're only going to use the sort once, it won't matter.
@Incognito And with regard to "work as expected," I'm not sure what you expect. I advise RTFMing to make sure. us2.php.net/manual/en/functions.anonymous.php
In this instance, define time is when I call usort, or when the code is read?
@Charles Point taken.
Ahahah, the manual doesn't actually show the use clause.
Useless....
@Incognito The define time is when the line of code that creates the function is run.
In the case of the usort call, it happens that you'll be creating it and then immediately using it.
This isn't always the case.
@Shawn inserted is a virtual table, so you'd need to select from it
so:
18:42
$foo = function() { ... };
// ... later
usort($derp, $foo);
INSERT INTO tblMMMaterialCategoryMatrix (materialid, categoryID, [Primary]) SELECT (inserted.MaterialID, inserted.CategoryID, Yes) FROM inserted WHERE inserted.CategoryID IS NOT NULL
(afk)
quick, hack him while he's away and can't defend himself
@Charles Alright I get it now. Thanks!
That does look like it worked, but now I'm getting this error:
Error 170: Line 63: Incorrect syntax near ','.
Line 63 is that INSERT statement. Any ideas?
18:48
You got me, I'm not an expert on SqlServer
The problem is around the first comma in the select statement, weird
Anyways, thanks for you help, at least I have a different problem now :)
Got it, I had left in the parens, had to take 'em out. Thanks a lot @ircmaxell
perhaps remove the () in the select
;)
18:51
no problem
19:20
Wow, we could land on the moon with only 32kb of ram to guide us, but need over 100mb of ram to display a single webpage...
Dam CS, you wack...
@ircmaxell lol
man I'm at a clients office in their lobby on a computer fixing it for them -- and i'm listening to one of the marketing guys try and walk a guy through some stuff on the phone and i have to try not to laugh
he's trying to teach him atm, how to use internet explorer tabs lol
haven't you heard UncleBob's rant about the paradox of constant computer boot time ?
19:28
bye
well .. start listening/watching to all the stuff you can find from Robert C. Martin , ad you will find it
@tereško I think it was in Clean Code. Is it the one where he says that they used to punch numbers really fast, and it'd take them a minute to start a computer up, back in the ancient times?
not like he wouldn't benefit from going all UncleBob's stuff anyway
The mini-lectures he gives before actually starting the talk are fascinating as well.
20:11
Hi folks
Hi @DownDown
I gtg, laters
Wich you prefer for echo-ing strings double quote or single quote. On the internet people saying that single quote is faster... what do you guys think
@DownDown I use single quotes usually because you need to escape less and they signify that I will not use any escape sequences. There is no performance difference between the two.
Okay tnx NikiC
Where you from?
20:19
Hm, I hit the rep limit today. Didn't manage to do that in quite some time already
@DownDown , usually : echo 'cogito ' , $ergo , ' sum';
notice that there are commas instead of dots .. there is no point in to concatenate the string you you will print it right away
@tereško , the way i print/echo like this: echo 'hi my name is ' .$name . ' for sure.' ;
emm .. so .. what is the reason why you want to concat the string before print it ?
20:46
@NikiC Is it? I read that single quoted string faster than double quoted, because interpreter doesn't have to check it for variable occurence.
20:58
that's true
the difference was 4x
but its kind of micro-benchmark , @Deshene , it is just a bad style to use double-quotes when you do not need them
21:36
hi All, need a help..... any body used reddit api before ?
nope
if you think that issue is directly linked to reddit , then there should be a section someone in it just for that topic
I wish there someone willing to answer that.
21:52
@tereško I use " - everywhere
mostly because php is not the only language I use and ' don't work there (always)
it must me a habit from some other language , @KamilTomšík
I'm curious - capitalizing every single letter of every word of your topic name makes it more significant?.. Argh, don't like caps :|
WHEN YOU WRITE LIKE THIS IS MEANS THAT YOU ARE SHOUTING !!!
no, it means you're sick
that too .. or maybe you are twelve
21:58
:D
@tereško I'd like to see reference for that. Quote can only theoretically affect lexing performance, which by itself already takes only a small amount of the compilation phase. You will not be measure the difference.
Although, i didn't have an internet access when i was twelve. Maybe for good...
heh , found the marvels of world wild web only in university
( which , incidentally , wasn't so long ago )
I remembered an old joke, which is - i assume - true enough: when there was no 100mb internet access, people used 56k modems to browse internet, and one of the pipedreams was to make images load from bottom to top.
@teresko "You are twelve" means what? is that an idiom or phrase
22:13
as in "twelve yours old"
ok thanks :)
I need an opinion - is there any way to combine CRUD-style and descent usability? Examples?
are you talking about structure like this ?
it is not recommended
if you have an object which handles logic , then it should not care about details of storage
instead what you should use looks more like this
Nope, not some patterns, but more common stuff. I mean CRUD-like user interfaces in web apps en.wikipedia.org/wiki/Create,_read,_update_and_delete and

« first day (334 days earlier)      last day (4838 days later) »