« first day (1107 days earlier)      last day (3832 days later) » 

3:00 PM
I meant the php binary ?
 
i get this warning
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/amqp.sp' - /usr/lib/php5/20100525/amqp.sp: cannot open shared object file: No such file or directory in Unknown on line 0
 
mqp.sp
mqp.*sp*
so
 
@PeeHaa this is awesome i'm like watching it full
 
this is the line in the cli php.ini : extension=amqp.so
dont know where it gets the .sp from
 
check again, it comes from the config file ...
 
3:02 PM
i just copied and pasted that line from there
 
@BasicBridge Yesh watching it too. Pretty cool
 
when that warning was generated, the line read extension=amqp.sp
 
Now that I saw this question http://stackoverflow.com/q/19619440/
I thought maybe we should add type casting to this list http://stackoverflow.com/q/3737139/
?
 
well the line right now is what i pasted and that error is still showing on cli only
and it was never .sp
could there be another php.ini i am missing?
or some other config file i need to look at?
 
3:10 PM
@PeeHaa Why are you not using bootstrap grids
 
@BasicBridge Because I don't need it
 
@PeeHaa Then problem like this occur. You need to be good in css
 
@BasicBridge What problem?
 
Quite the chain of events going on :X
 
@PeeHaa overflowing of input area from div
 
3:12 PM
@BasicBridge Why?
It was a simple fix
No need to start using an entire framework fro something like that
 
@PeeHaa The select drop down padding is still a little wonky.
 
It works on chrome? :p
 
I'm using chrome.
 
Hmm let me open the stable version
 
3:14 PM
what could cause IE to be unable to open a page (i get "page unreachable" message) ?
 
in JavaScript, 1 min ago, by Benjamin Gruenbaum
New exercise. We have ~16 coders coming tomorrow, each from a different background. Some know HTML/CSS, some are hardcode C++ coders, some know Python etc. What I need is a list of ~10 exercises to give them. The goal is for them to have fun coding together and building something practical.
 
Ah damnit. I killed that line by accident :P
 
This is people we're training to participate in open source projects making the government information more transparent.
Ideas are very welcome
 
What's a HTML/CSS guy going to do along the same lines as a C++ guy? :-/
 
@Fabien They're both there because they a) want to learn web and b) want to contribute to open source projects.
 
3:15 PM
@Fabien Fun :P
 
The whole project is - we teach them web and in exchange they commit to open source
 
@Fabien better?
 
Exercise #1. Drink beer.
@PeeHaa All good. :)
 
\o/
 
@BenjaminGruenbaum It's a little large maybe, but there was a cool programming interview task I read about a few months back. Autofight
 
3:18 PM
23
Q: Spam edit approved?

Qantas 94 HeavyThis spam edit just got approved, which shouldn't have: This user I am sure is a spammer - see another post of his on Audio-Video Production SE: The link in this other spammy post (not the edit) goes to http://www.recovery-android.com/android-video-converter.html. The spammer's edit was o...

 
Hey guys shady's back!!
I've a question if you don't mind guys
 
@terešk-O
 
@nu
is there anyone here who i can ask about some query that i've had for a while?
 
Yo @Fabien
 
Hi
 
3:20 PM
> ¶ Chatroom Don'ts : Ask to ask a question. "I have a problem, can anyone help?!"
 
@ShadyAbdAlrahim Referring to yourself in the 3rd person is would automatically give me the legal right to shoot you in the hand if I ruled the world.
 
@DaveRandom hahahahaha seriously you made me smile man :D thanks for the laugh :D
 
@MadaraUchiha You want to go now?
 
@DaveRandom lol
 
3:21 PM
Sure
 
@MadaraUchiha yo man! i've been away for a while, i was wondering about some queries that i wanna ask about
 
Got GoKGS?
 
This, right?
 
Yeah.
Just sign in as a guest and you can register under the "User" option at the top.
 
@PeeHaa do you have more movies like that
 
3:23 PM
Let me know your username :)
 
@DaveRandom It's a terrible CMS in a blog's clothing.
 
Guys I've Lately been seeking UI/UX careers in my country and I found out that they require HTML5, Javascripts & JQuery expertise
 
@Fabien MUchiha
Lemme complete registration then I'm with you
 
and all the past time i've been working with Html 4 before HTML5 has come out
i know they're not so different, but i would be thankful if you can help me find great tutorials on how to develop a professional User Interface using HTML5, Javascript and JQery
 
@ShadyAbdAlrahim HTML5 hasn't come out. Anyone requiring HTML5 doesn't know what they are talking about ;-)
 
3:26 PM
@ShadyAbdAlrahim It will out like in 2022
 
@DaveRandom yeah dave but all companies here have been asking for it :/ and many projects have been launched on that behalf
and i'm seeking a UI developer job cuz that's what i'm most interested in
 
@BasicBridge Ask @wes
 
@DaveRandom It's very easy to define HTML5
And know what code is HTML5 and what isn't
user image
8
 
@BenjaminGruenbaum This made my day
 
Instastar
 
3:31 PM
ahahahahahahaha
 
However, in all seriousness, HTML5 just isn't defined.
> Implementors should be aware that this specification is not stable. Implementors who are not taking part in the discussions are likely to find the specification changing out from under them in incompatible ways.
(emphasis not mine)
 
trust me dave, in all seriousness they ask for it as if it was the only language
 
HTML5 is more of an HR buzzword than a technology.
 
i work with regular HTML and when i sent them the site i did for my graduation project
they didn't like it..
have you seen the website of league of legends?
 
Well in that case, you can go an blag it, since they are already blagging it, and will not be able to tell that you are blagging it.
 
3:32 PM
it's created by Html5
this is created in HTML5
 
@DanLugg The cloud.
 
@ShadyAbdAlrahim Really, how is that?
 
Check it yourself Dan
 
@BenjaminGruenbaum E_NOT_ENOUGH_CLOUD
 
3:34 PM
@DaveRandom Oh, obviously, all you need to do is check the specification - it says so right there.
 
@ShadyAbdAlrahim Yea, I'm familiar with it; it's a pretty normal looking website to me.
 
@DaveRandom Which is what your next line says which I just read -_-
 
Large scale backgrounds, some pretty standard transition effects.
 
@DanLugg i was surprised to know it's HTML5 too man :/
 
Just change the doctype to <!DOCTYPE html> and resubmit it.
 
3:34 PM
@ShadyAbdAlrahim It has an "HTML5" (i.e. invalid) doctype declaration, and no other features that are not available in HTML4.01
 
@ShadyAbdAlrahim
 
aahahahaha @Fabien ahahahahahahaha
 
@wes Excellent video
 
@wes I want more, please share if you have any
 
@DaveRandom okay can you help me find tutorials that allow me to create exciting UIs like that of League of Legends?
 
3:36 PM
@ShadyAbdAlrahim I think you need to do a bit of research and really define what HTML5 is before you start pointing fingers yelling "THERE IT IS, THERE IT ISNT!"
 
cuz that's all i'm trying to achieve :/
@DanLugg i've read about it, but i'm talking about the "new design/development" approaches
i'm not here to argue whether html5 is out or not guys
 
@ShadyAbdAlrahim Then you need design skills and talent.
 
@ShadyAbdAlrahim Photoshop.
 
I'm trying to find good, professional, and practical materials that allow me to develop and design such a site -_-
 
36 secs ago, by Dan Lugg
@ShadyAbdAlrahim Then you need design skills and talent.
 
3:37 PM
I'm not asking about the visuals and the pictures .. i'm asking about the modern design ways guys
for god sakes -_- you still don't get me
for instance
 
No, you don't get you. Define HTML5 and the collection of technologies you wish to leverage. After you've done that, you can work towards creating a powerful, effective application using them.
 
@ShadyAbdAlrahim most of the designs are created in Photoshop then they are converted to HTML
 
true for the "visuals"
 
@ShadyAbdAlrahim That's not even an exciting UI. That's just a bunch of static content with a flash animation behind it.
 
3:38 PM
i'm talking about the new "Layout" approaches
 
Nothing's really changed.
 
Note also that for the most part we a PHP developers, not designers, not even really UI people
 
like this one
is there a room for UI people here ?
 
@ShadyAbdAlrahim There's nothing special about that; it's just a bunch of fixed-position elements strewn about a page.
 
3:39 PM
@Fabien sorry, had a phone call (which also disconnected my connection)
 
@MadaraUchiha WHAT YEAR IS IT?!
:p
 
@DanLugg okay they're not special.. can you help me find tutorials that teach me how to do it????
 
Not landline
 
--___--
 
@MadaraUchiha 1997 called, they want their modem back.
 
3:40 PM
No worries. I'm still in the room :)
 
Cellphone, which is also tethering my WiFi :P
 
@DanLugg I lol'd way more that that warranted. I may still be a little drunk.
 
@ShadyAbdAlrahim Though it's not the right advice for your career, it's probably what your teachers are after net.tutsplus.com/?s=html5
 
@Fabien back in the room
 
3:42 PM
@Fabien you think that UI development is not much of an interesting career?
 
@ShadyAbdAlrahim No, UI is fine.
 
hmm.. what then?
 
@ShadyAbdAlrahim coding is pain buddy.
 
@ShadyAbdAlrahim The problem I see here is this "Hey guys! Hook me up with some tutorials cause I wanna go pro!". It doesn't work like that, and unfortunately the internet has propagated the idea that it's possible. You need drive, and a lot of time, and possibly a lot of formal training.
 
type type type and type is what you do
 
3:44 PM
Fuck, I can't grammar today.
 
@DanLugg it's not my first time coding, i've been working with html, css and javascript for a while.. my graduation project was an E-marketing website with a phpmyadmin host
it's just that i'm trying to practice the new layout approaches that people have been nowadays doing making my previous work outdated
 
@ShadyAbdAlrahim Then you should be able to appreciate the fact that developing powerful, eye-catching user interfaces is difficult, time-consuming, talent-requiring work.
@ShadyAbdAlrahim So create toy projects; copy what you like, or what you think is "new and hip"
Literally copy it.
Then start changing it, until you get something new and fresh.
 
@DanLugg yeah man i've been trying to look for tutorials or code samples for developing such sites
for example the site i last mentioned
 
The tutorials are the other sites.
 
3:47 PM
yeah but i only saw the site i have no idea how it is put together
do you understand?
i'ts just that i don't know how they have put together that way, it's pretty different than the old ways that are pretty boring
 
@ShadyAbdAlrahim just look at the code of the site its not hard
 
@ShadyAbdAlrahim Actually, no, it isn't.
 
it only shows the Html, not the javascripts that implement it or the Jquery within
and it also doesn't show me the best view of the Css used
 
@ShadyAbdAlrahim download all the css and js files, they will all be mentioned in the header of some tags in the html code
@ShadyAbdAlrahim any site you view has ALL the code in your browser, ALL OF IT or it wont run, learn how to view it
 
i use google chrome and i right click then i inspect element :/ is that what you mean?
 
3:51 PM
That's a small part of it, yes.
 
@ShadyAbdAlrahim thats a very small start, you can view the content of all file in chrome, just press f12 and look around there
 
okay let me try that hmm -_-
 
I am creating a site where instead of using GET variables I will just be looking at the url. I have come across two ways of creating a mod_rewrite rule that no matter what directs the user to index.php(Or some page). The first being use mod_rewrite with `RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /Blog3/index.php [L]` and the other way being `FallbackResource /Blog3/index.php` are there any advantages or drawbacks to a method that makes it better or worse to use?
 
there are no shortcuts in real HTML development, you want to be good you need to learn the tools first, no tutorials for that i am afraid. figure out what you want to make and learn all it takes to make it
 
3:53 PM
@EyalAlsheich okay, well how do i download all the files of Html alongside with its linked Css and javascripts?
 
@ShadyAbdAlrahim Read the Google Chrome Developer Tools help manual.
 
@DanLugg okay thanks i'll start reading now, thanks man..
 
(not gonna lie, never read that myself; perhaps I shall)
 
3:55 PM
@ShadyAbdAlrahim and one last advice, dont ask for help on HTML in a PHP channel, find the forums and groups that specialize in HTML and CSS and JAVASCRIPT
 
lol, Paul Irish.
 
@EyalAlsheich which group chat is it?
 
@DanLugg ?
 
@EyalAlsheich if you know its name i'll go on it immediately
 
@BenjaminGruenbaum In the linked Chrome Dev Tools manual.
 
3:56 PM
@DanLugg What about him?
 
@ShadyAbdAlrahim look around for them, i am sure there is a javascript or css channel here on stackoverflow
 
@BenjaminGruenbaum this would be the point in a lecture when to stand up and leave
 
@BenjaminGruenbaum I dunno, I just find that he's doing the video tuts funny.
 
in JavaScript, Oct 15 '10 at 20:25, by Paul Irish
i'm gonna write a "Letting go of jQuery for HTML5 developers" guide i thinkkk
@tereško I don't think they were being serious
 
@BenjaminGruenbaum That would be read-worthy.
 
3:59 PM
I don't think html is quite to the point where it can replace Jquery. But it would be interesting.
7
 
Although, any well written article titled "Letting go of jQuery for HTML5 developers" would be read-worthy.
 
@NoahHuppert wth are you talking about?
 
Which post?
 
@NoahHuppert lol
 
1 min ago, by Noah Huppert
I don't think html is quite to the point where it can replace Jquery. But it would be interesting.
 
4:00 PM
@NoahHuppert LOL xD}
 
I don't think outlook can replace centos either yet
4
 
@BenjaminGruenbaum HTML5 can do what jquery can do but jquery can do it w/ less code.
5
 
@PeeHaa it can :P
 
@NoahHuppert jQuery is a client side library used for DOM manipulation. HTML is a markup language and a standard that relates to the said language. Why do I even bother -_-'
 
@PeeHaa Hahahaha
 
4:01 PM
@NoahHuppert lolol
 
I've concluded that nobody knows what HTML5 is, including me, you, and everyone.
 
@NoahHuppert Wait sorry, nevermind - I was wrong. I misread what you wrote. That's an interesting opinion you have.
 
html5 kinda also consists of canvas and other shit
 
@DanLugg It's well defined, it's just not stable yet.
@NoahHuppert Can't jQuery do that?
 
@BenjaminGruenbaum I know. It's just its so misused in and out of correct context
 
4:03 PM
Exactly my point...
 
Wake me up when gets drafted.
 
@DanLugg Not going to happen they created a living standard moving target ;-)
 
@BenjaminGruenbaum To do something in HTML5 with lets say canvas(html5 and js I guess) you have to type more code. Lets say you want to make a circle you would have to type all this html5canvastutorials.com/tutorials/html5-canvas-circles but if you were to use jquery(Or a type of it) all you would have to type was this calebevans.me/projects/jcanvas
 
@DanLugg html7 will support teleportation
 
4:07 PM
http://hasin.me/2013/10/27/install-and-run-symfony-2-3-0-in-openshift-instances-in-just-one-minute-with-this-boilerplate-repository/
Planet PHP
Install and Run Symfony 2.3.0 projects in OpenShift instances in just one minute with this boilerplate repository
Hasin Hayder
1382888520
 
Good, hopefully that'll preface time-travel in and I can go back in time and kill Tim Berners-Lee and stop all this from happening.
 
@NoahHuppert you seem to know quite some good stuff :D
 
@ShadyAbdAlrahim ?
 
@NoahHuppert So, I don't have to use HTML at all? Can I write only jQuery and no JavaScript or HTML?
 
@NoahHuppert i've been asking about some new layout options for HTML5 here
 
4:08 PM
I'm just going to point out:

HTML / CSS / WebDesign

This room is now defunct. RIP.
^^ Go there.
 
@BenjaminGruenbaum ...
 
@DanLugg thanks ^_^
 
@DanLugg I think this is inspired from movie 'source code' which has no relation with coding then it's name
 
@NoahHuppert ?
 
4:11 PM
@BenjaminGruenbaum You still need HTML to display a page.
 
user1642018
do i need to repair/check/optimize/analyze read only table in mysql ?
 
@NoahHuppert Didn't you say jQuery is better than HTML5?
 
@BenjaminGruenbaum Isn't JavaScript better than jQuery? I mean, if I can write Python in CSS won't my HTML automatically turn into JavaScript and I don't even need jQuery?
 
@BenjaminGruenbaum Things like Jquery ui widgets might/are better than some html5 counterparts.
 
@DanLugg Cat.
 
@BenjaminGruenbaum cat jquery.js | sass --trace > html.py
 
4:31 PM
@DaveRandom Dammit! I have stuff to do!
 
inorite
 
@BasicBridge That's pretty damn sweet.
If it wasn't a tech-demo, my day would've been over.
 
4:48 PM
hi guys, why are this PDO request failing ? error_log suggests last part
$stm = prepare("SELECT * FROM posts WHERE userId IN (:userid) ORDER BY id DESC LIMIT :max");
$stm->bindValue(':max', (int) 50, PDO::PARAM_INT);
$stm->bindParam(':userid', $userid);
 
Let me consult my magic eight ball to see what the error message is...
 
haha funny, sorry
Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''13,13,14' ORDER BY id DESC LIMIT 50'
 
Probably because you're using IN when you should be using =
 
grr ...wasp sucks ... 2 wasp entered in my room and take 10 minutes to kill :(
 
You killed them? :(
 
4:50 PM
...WHERE userId = :userId...
 
well, it should be checking the 3 id's given
 
Ah, it's an array.
 
You have to convert it to string first
 
@Fabien yes ... . one was dead after direct shot of book and another one after spray ..:)
 
4:52 PM
ah, ill try that
 
...WHERE userId IN (:userId1, :userId2, :userId3)...
$stm->bindValue('userId1', $userIds[0]);
$stm->bindValue('userId2', $userIds[1]);
$stm->bindValue('userId3', $userIds[2]);
 
the problem is that its a variable amount of user ids being checked
 
@NullPoiиteя Poor wasps. :( Hornets I could understand :P
 
Hornet sting are nasty ... they cause more swollen than pain
 
4:59 PM
And they look like they'd beat you up and take your wallet too.
 
ah god.. im still getting 500 internal error, but nothing shows in the error_log
 
@AndersFejerskov 3v4l.org/mF7W0
You have to build the placeholders dynamically.
Try changing the $userIds array in that example, add a few, remove a few; watch the output.
 
@DanLugg ah very nice, thank you ill have a look at this.
 
There's probably far more robust examples for this sort of functionality on SO, but this is the general idea.
 
im not looking for minimalist obfuscated code, just something that works :)
This is good, thanks :)
 
5:05 PM
@AndersFejerskov lol, I meant something that has more case-coverage, but yea, this'll work for your specific case. Consider wrapping this behavior into something a bit more reusable, so you can use it elsewhere in your application.
 
@DanLugg Not really that more robust. It always will be clunky
 
@PeeHaa Clunky and robust ;-)
 
:D
 
function generateSqlCollection($prefix, $collection, &$placeholderString)
{
    $collection     = (array) $collection;
    $collectionKeys = array_map(function ($key) use ($prefix) {
        return ":{$prefix}_{$key}";
    }, array_keys($collection));
    $placeholderString = implode(', ', $collectionKeys);
    return array_combine($collectionKeys, $collection);
}
That's what I meant about "robust".
 
5:22 PM
You just couldn't let it go could you? :)
 
function generateSqlCollection($prefix, $collection, &$placeholderString)
{
    $sqlCollection = [];
    foreach (((array) $collection) as $key => $value)
    {
        $sqlCollection[":{$prefix}_{$key}"] = $value;
    }
    $placeholderString = implode(', ', array_keys($sqlCollection));
    return $sqlCollection;
}
There, even more obvious; less array_* shit.
(you can bin those if you want)
 
:|
 
:)
 
Casting as Array makes me cringe though
(array)
:o Don't know why :(!
Is it safer to do that rather than not?
 
No, but I did it so you could pass in an object. Otherwise, I'd type-hint array for the $collection argument.
 
5:29 PM
I seeee =)
 
@Fabien if your app is built correctly, that would be the job of the router
 
Ah I understand.
Makes sense
 
The router should be able to take the resource, the action and the parameters, and generate a proper link to it
 
Ok so say I have this link "http://lamephp.com/post/Jim-Vs-Clint". In order to create that link from the array... $post['title'] = 'Jim vs Clint'; Where should that be done.
 
@Fabien You could make the slug the primary key of the post
 
5:37 PM
@Fabien That ^
 
Sorry I don't understand. Slug?
Ah right. Slug
 
Slug is the urlified part of the url that is the title
 
So store two forms of it?
printable and urlified.
 
Yes. The title and the slug
That would give you more flexibility
 
Is there no place for the logic otherwise?
 
5:40 PM
Yes
You could have things like example.com/blog/mvc-explained with a title of "The MVC Pattern Explained"
 
Yeop. Typically the slug is generated from the title, where Foo and Bar! => foo-and-bar, but depending on the setup, it can be edited independently of the title.
 
The router first will have to find out whether it is a post URI. e.g. the path start with /post/
 
^^ like that.
 
After that it needs to verify the post exists
 
Okay. what about when I want to do some funky date stuff? Like I have a date in the table of the post but I need to split it up for the template to look fancier?
 
5:42 PM
As in, you want to format it differently than that of the raw value?
 
Yeah
 
In that case I often go for a domain object which has a datetime object
 
That's the templates responsibility; the formatting that is.
 
Once you have the DT object you can do whatever you please
 
So it's okay to make those conversions in the template?
 
5:43 PM
Certainly.
 
@Fabien The actual converion I often do in the view
Fuck damnit I connut tipe enymoar
 
@PeeHaa Ah cool. I just wanted to make sure.
 
Converizon!
 
Coolio. Made some decent changes to lamephp and beginning to feel like it's not so lame anymore.
 
Next version release, rename it to "Less-lamephp"
 
5:44 PM
lol
 
hehe
 
I'll subdomain it :p
 
lol, lameness is calculated by base-lameness / version-number
 
Would be some crazy versioning.
Time for some dinner and Homeland.
 
Does anybody has a javascript snippet for me to smoothly scroll to a div without jqueery?
 
5:46 PM
Cheers guys
 
hi room, I am new to php and learning things a bit, I am going through a code of an ecommerce website , admin control panel , where in the admin logs in and is presented a template for admin, here is a question I could frame up
http://stackoverflow.com/questions/19620356/php-program-loading-admin-login-template-in-an-ecommerce-system-using-smarty
I am not sure if I have made the question clear but will be glad if any one can help me to clear my confusion
 
enjoy @Fabien
 
lol, v7 will be 2.3809% less lame than v6.
 
6:03 PM
@RegisteredUser if you are "new to php", why are you messing with some e-commerce software ?!
 
well that does not mean I can not mess with it that is how you learn
it is not that I am a complete newbie I am confused in the code
I already learned a few things
but in admin control panel I am getting confused
that is what I mentioned in my question
 
6:25 PM
@DaveRandom didn't you have a easing JS thingy some while back?
 
that easing.js thingy? :o
 
easing.js?
link?
 
@RegisteredUser Well, for one thing, you can format the damn code.
 
@tereško I'm conflicting here.
 
6:29 PM
But now I have to go eat, so I'll share my thoughts with you later :D
 
It's jquery :(
 
It's naaawt, it's the mathematical functions to create the easing effect isn't it :o
Ah sorry then
 
Well, I'm going to buy some fast-food to take my multivitamins with.
 
I have formatted the code some thing in stackoverflow automatically adds spaces to the edited code when I save it , I have formatted it again
 
that's BS
 
Hello guys.
Long time.
 

« first day (1107 days earlier)      last day (3832 days later) »