« first day (1545 days earlier)      last day (3628 days later) » 

17:00
@Ocramius no, the extension lets gpg handle the private key. It just handles communicating with gpg.
@FlorianMargaine and since it has access to an executable, it may as well have access to cat ;-)
guess programming language used by this smart watch (you have NaN attempts left) [via http://www.theverge.com/2015/1/7/7511883/lg-webos-smartwatch-hands-on-ces-2015 ] http://t.co/G9PuU02M8B
@Ocramius well, except you have access to the source code.
posted on January 08, 2015 by kbironneau

/* by Andarack */

@FlorianMargaine unless it auto-updates every week
17:03
@PeeHaa lol
@FlorianMargaine I'd like to check all what I install all the time, but ultimately, I don't have the time to do that
@ircmaxell I think it can be patched with super glue in the thunderbolt port.
@Ocramius that's a kinda bad argument, since the same can be said of gpg
@Danack nope, since you can still open the case
@FlorianMargaine now you're getting it
17:06
"Getting it" means "don't use gpg"?
If someone is in a position to open the computer then there's no defence against them.
no, it means it's impossible to do anything securely without trusting someone you can't verify
@Danack I agree
@FlorianMargaine yes, but I trust the gpg guys more. If I can't trust them, then I don't even have the toolset to have basic gpg security
and yes, trust is a flaw in the security model
well, it's not just them
it's also the OS authors/distributors, the filesystem authors/distributors, the driver authors/distributors (for every driver), the kernel authors/distributors, the hardware manufacturers (for all hardware). You need to trust the entire stack
@Ocramius the native app is barely ~100 lines tbh, easily auditable
But well, you have to trust the compiler too.
17:14
yup
@ircmaxell yeah, and the less has access to core stuff such as private keys, the better :X
The other issue with browser plugins is that they run privileged (chrome) code
which means that if the developer of the plugin exposed access to any privileged code somehow, then the plugin can be exploited via XSS
@Ocramius so you use gpg in the CLI to encrypt your mails?
@FlorianMargaine no, still thunderbird
So you give access to your private keys to thunderbird
but I wouldn't use a browser plugin (the architecture is similar, tho)
yes
17:19
It's not a plugin, it's a chrome extension... Not really the same
it's the same xpi shiet
:P
Hello
Is anybody here ?
I need some help
Actually it's my first time here
user924016
First so profile?
user924016
Welcome =] If you have a question, just ask
17:32
Can u help me with ajax as well ?
user924016
No not really, I am going to go eat now, but maybe someone has time. Feel free to ask, but do not expect anyone to answer
user924016
but somebody might help if they think it is a good question that is not easy to search for
user924016
or just have time..
user924016
pulled chicken is ready in about 1 min =] yay
17:34
When u will be free ?
Haha
My question number 1 is:
"Is it necessary to wrap html checkbox in a form tag ?"
Cause I wanna update my database records via ajax
@ZahidSaeed Why not try it, and then upload the html to a html validator?
Danack u know ajax ?
Fastest, strongest and easiest crypt?
@ZahidSaeed Just ask your specific question, somebody will answer if he / she wants.
What cryption are you using guys?
17:40
@ThomasDavidPlat wrong question
@TomášAresakMalčánek ???
Impossible to answer
@TomášAresakMalčánek what specifically are you trying to do?
@ircmaxell What is the fastest, strongest and easiest crypt.
Nothing, just wondering
For future use maybe
Encryption is always good
Isn't it?
17:41
there is no such thing as a generic tool, especially in cryptography
so again, what specifically are you trying to do?
So here's the situation:
I have table in which record is being fetched from the database. Each row has a checkbox in it's first <td>
So what i wanted is when the user checks that box, it will automatically select the corresponding row from the mysql database and then update or delete it according to the user action
Without the page being reloaded !
I put a bounty on this question. I am here for a while if anyone wants to chat with me about the question. stackoverflow.com/questions/27672207/…
I seriously not trying to do anything. I just want to know your favorite encryption way, if you have any. I want to crypt chat, account data etc.
Favorite encryption...
17:43
@TomášAresakMalčánek you need to understand the attack vector to understand how to protect against it. So it really boils down to the specific details of what you're doing
Tead up on the topic because it doesnt really make sense
Damnit no edit on mobile chat?
encryption or hashing?
@PeeHaa there is, but only for the last
17:44
hit "menu"
it's the bottom left button, iirc
Ow wow. Well too late now :p
there's also "delete last"
gotta go. cya.
Tnx and cya
evenings
Will anybody answer me?
Hola @tereško
Can anybody help me ?
@iOSAaronDavid delete the noise (first paragraph)
17:50
ok
If you meant the first paragraph of the question it's gone.
Also fix your html and create an isolated and minimal example of the pronlem code
ok one sec
Also look up "header injection vulnerability"
@PaulCrovella ok I got it :)
17:53
@PeeHaa header injection... You mean forging some http request with a specific header?
Ok I limited code, hopefully I didnt cut anything important. I dont think I did.
@iOSAaronDavid can you reproduce the issue with your limited code?
@iOSAaronDavid If you're unsure, this is probably useful
hello guys, somebody here ?
i have a query.
17:58
@FlorianMargaine @PaulCrovella same issue
@PeeHaa Haven'T been active here for quite a while. What were you referring to in the ping?
@FlorianMargaine yeah. By blindly adding client data to headers
Does the form need to be inside the body?
@iOSAaronDavid what is this about forrmail.pl? that's a perl script...
18:00
ya do you want me to send you the actual website URLs? I can show you what's working and what's not.
@PaulCrovella perl, php. Same shit different day...
Well I actually got this one working k9scoopers.com/contact.php
but... at least pick a single form action and stick with solving one problem instead of... I lost count of how many there are there
I need to use this site though k9scoopers.com/Untitled4.php with this exact setup.
If I just keep waiting like this then I will be dead !
18:07
@ZahidSaeed rurounijones.github.io/blog/2009/03/17/… - also you haven't actually asked a question, apart from the one earlier that I answered.
I have asked a question...
I have table in which record is being fetched from the database. Each row has a checkbox in it's first <td>
So what i wanted is when the user checks that box, it will automatically select the corresponding row from the mysql database and then update or delete it according to the user action
without the full page reload
send an xhr request with js
@ZahidSaeed That's not a question. That's a statement of desire.
@ZahidSaeed I dont know if this will help, but you can check it out stackoverflow.com/questions/27839925/…
@iOSAaronDavid I want to update the database without the page reload
18:11
@ZahidSaeed please don't repeatedly copy-paste the same question over and over again
@ircmaxell I repeated the question because Paul Crovella didn't got my question
3 mins ago, by NikiC
send an xhr request with js
yay, new scalar type-hints RFC. Just noticed
18:14
I beat the stackoverflow search engine until I find an answer. That's the way I became a decent iOS developer lol
I'm the first one to figure out how to share through Whatsapp on iPhone :3
Cant understand it...
@ZahidSaeed Build up your knowledge until you can.
You could also consider Google Helpouts
@webarto Alright you're going to solve my question?
the one and only?
lol
Nay.
18:21
It has a bounty
Can you spread that on bread?
Your form method is POST\ instead of POST
@webarto Thanks for catching that. I'm getting the same error still and I extra checked my code again after seeing that.
@iOSAaronDavid you have two form actions, one pointing to formmail.pl the other pointing to send_contact2.php; and you've included code for send_contact.php ... it's not at all clear what you intend or expect to happen with any of it
clearly you want to send an email but just hucking scripts at the wall until one sticks isn't going to help
18:33
@PaulCrovella Ok, I think you might be confused so I will remove the one that I am not asking about so it's not confusing. Or at least I'm confused.
I will edit the question
Yes, I am confused.
@PaulCrovella I edited it. Sorry about the confusion. I edited to where I only show the 2 files I have problems with and everything there should be correct. The one before was the right file, I mistyped.
1 hour ago, by Zahid Saeed
Can anybody help me ?
internet makes me sad
18:48
@tereško All we can do is help one another and have hope for humanity.
you misunderstood me
@tereško lol
@tereško I have a bounty on this question if you're interested. stackoverflow.com/questions/27672207/…
@iOSAaronDavid all I can recommend to you is: stop using mail() function directly, it's shit
instread try PHPMailer or SwiftMailer
for beginner PHPMailer will be easier to get working (Swift requires some understanding in lib tools and namespaces)
also, as it is now, you have no sanitation for your user inputs and there are various vulnerabilities that could be exploited there
@tereško Thanks for the advice. If you heard of cpanel, do you think it's built into that or do how could I use it? This is what I need working, but I assume I have to build from scratch on an interface builder, which is fine too if that's the case. k9scoopers.com/Untitled4.php
PHPMailer is a library (collection of classes)
you just download it and add in your code
18:56
@tereško Ok sounds good I'll try it
there also should be some manual, which will show you example for sending a mail
Is a thing? Because it looks like it is used by lazy people and can be burninated :P
It's a meta tag. Destroy it.
@tereško ya I done this kind of thing with iOS frameworks.
@Charles Nuking...
18:59
@PeeHaa @Charles Yes kill it with fire
you will probably want to look for google query like: "phpmailer sendmail example"
because "sendmail" it looks like you could be using it
i think
well ... am guessing
Well I also hate random down voters. They should at least comment first.
I got -6 on a question where I asked how to convert hex to iOS color.
harsh
@PeeHaa Dear God that last one
I thought the first one was the worst :P
@PeeHaa It was really dumb but not the worst.
Damnit that rest question needs more delv power
so, lemme know when/if you get PHPmailer working, because there are actually other issues with that code of yours
19:17
@tereško Ok do you think that will work though? I mean honestly, this is just for a business ran by like 3 friends of mine. But they want it done by Spring. I have to get this done ASAP
What other errors are there?
@iOSAaronDavid you are not escaping the output (one can do an XSS attack via email), you should always use post-redirect-get when submitting form, don't use tables for layout, nested forms wont really work
hey, I responded on internals to something :-)
@ircmaxell you could call your sponsor then to get back on straight and narrow
@ircmaxell huh, weird. I'm understanding now, even more than before, why people don't like crypt
I remember being confused in the past by it, I was told it was better for password hashing
But I couldn't figure out how to use multiple algorithms
It looked like it just did whatever the hell it wanted to
19:32
phpmd: The method __construct has 28 parameters. Consider to reduce parameter number under 10. sigh ...
Hey everyone ---> As the OP i asked a question, a SO user made some comments that did not answer the question but did change how I looked at the problem which led to me answering my own question. How would you suggest I "credit" him and what should i do with the question? Vote to close it? delete it? or what?
@AndreaFaulds which is precisely why I designed password_hash, to get rid of that cruft
@ircmaxell Yep, and thank you (again) for it :)
@AlmaDo oO
@tereško Ok i get it. I'm going to work on PHPMailer for the rest of the day. Cya all thanks for the help and advice.
19:34
@DMSJax you can answer you own question and accept it
@ircmaxell messy messy legacy code. I found cyclomatic complexity as 54 here and there ..
@AlmaDo I care less than 28 contructor parameters, holy crap
well.. what can I say
@DMSJax and if that user made a helpful commen, he/she has definetly written some proper answers too. Read what he/she has written, and when you do, give hi an upvote or two
@ircmaxell I think we need an extra measure of code cruft to account for 28 constructor parameters
19:35
but don't go overboard
yeah, not CRAP, beyond CRAP
hello, could someone give me regex to select words like $$my_variable$$ so it should start with $$ and ends with $$
@ircmaxell BULLCRAP?
ohhhh, no, idea
Guess I'll just upvote the comment and find a answer or two he provided. Vote to close my question.. thanks
19:36
@Teomanshipahi regexone.com
@Teomanshipahi Honestly, that should be easy to figure out yourself.
My next book is gonna be learning regex, I am really bad at this
@Teomanshipahi regexes are pretty simple really, the syntax is the confusing bit
I need a word starting with O that describes bad code
Obsolute
:P
19:39
@AndreaFaulds EBOLA score: the Extremely Bad Operational Liability Assessment.
@ircmaxell Brilliant.
@tereško This website looks really cool, thanks
I dont know how to, but if someone knows how to delete those urls in the chat box, that would be great. Not a big deal I guess.
@Teomanshipahi Get the O'Reilly book Mastering Regular Expressions - it's very very good
eh.. classes complexity as 400+, 60+ methods or what.. "OOP" which stands for Only Oldschool Procedural
19:41
@AndreaFaulds google made me lazy for regex, because whatever I google I found up to this moment, from now on I will learn it :)
@AlmaDo class-oriented-programming FTW
@PaulCrovella I will check it thanks
@Teomanshipahi At the most basic: A regex matches any characters in it. So '/a/' matches the letter a, '/foobar/' matches the letters foobar (in order). Then there's just a few specifiers like *, +, {x,y}, |, [] that can specify how many to match.
I am both too and not sufficiently humble about my intelligence :p
19:53
same here
but I definitely get that comic 100%
what, that you don't like hearing "you're the smartest person I know"?
@AndreaFaulds equally surprised at what you get right and what you get wrong?
@PaulCrovella Not what I mean
It's more along the lines of: Am I smarter than the average person? I'd like to say I'm not, but that seems too humble, on the other hand maybe I am, but that's not humble at all. Solution: don't think about it because intelligence is meaningless and can't be quantified, and being a rational and kind person is more important.
"smarter" isn't a single linear thing, I think. I'm way smarter than a gorilla when it comes to baking, but they're rocket surgeons compared to me when it comes to jungle survival.
Yeah
And "smart" people can be irrational, there was a good article on HN about it
20:04
nah, I'm smarter than them in terms of jungle survival, in that I know how to operate the gun which will kill them so I can eat them :-P
@PaulCrovella I posted that on Hacker News, eheheh: news.ycombinator.com/item?id=8856765
I knew that had to be one of you, that's just too coincidental otherwise
@KevinMGranger My HN username is the same as my GitHub username ;)
There any zend framework 2 guru's out there?
20:09
Didn't see it, was on mobile :P
Anyone got any ideas to make a non-static method fireable via a static method?
i.e. using the $this->select() method within a static method in Zend Framework 2 using the TableGateway class
@Titanium yes, don't use a static method in the first place
But they're nicer to call from, for example: Blog::findById(422);
@Titanium Make $blog variable and pass it around.
I'm going to have to just accept that aren't I
20:11
Hey @PeeHaa
@PeeHaa you're always on here!
> Issue codes may not be duplicated in a report
halpz
@ircmaxell This is interesting: Do people use static methods because Blog::foobar() is shorter than $this->blog->foobar()?
I haz no real dupe code in there
20:12
Ooh, let me try...
Within a controller, it would be nice to call something like that on one line so the instance is the one you want rather than having to make a new instance of that object and then defining your results
@Titanium yes I have no life whatsoever
@AndreaFaulds mostly because it's easier than managing dependnecies
@ircmaxell ...yep
@AndreaFaulds Yes, because you also have to instantiate it. I have seen people do this, and was guilty of it briefly when I was a total noob.
20:13
@AndreaFaulds No, bullshit argument
@LeviMorrison same here
yes 3 pings for that
@PeeHaa c'mon, it's true
@LeviMorrison me too
Odd, works for me. Hmm, I wonder if there is a browser issue - what browser are you using?
FF/Ubuntu here.
@ircmaxell 2 ** usages of global state
20:14
chrome canary / win. I do have similar code in there but not exactly the same
Rather than $this->blog->foobar() it will be used as a different class:
<?php

namespace Blah\Blah;

use Something\Blog;

class SomethingController
{
public function indexAction()
{
$blogArticle = Blog::findById(2);
$this->showMe = $blogArticle->title;
...
}
}
I find that nicer to use than:
@Titanium \o/ magic dependencies
And what issue code? I'll see if I can replicate it.
Let me pastebin what I have in the boxes
When I look at @Titanium's picture I think they're Feeds
20:15
<?php

namespace Blah\Blah;

use Something\Blog;

class SomethingController
{
public function indexAction()
{
$blog = new Blog();
$blogArticle = $blog->findById(2);
$this->showMe = $blogArticle->title;
...
}
}
Please, that would be good
@AndreaFaulds hehe
@Titanium don't instantiate it internally in the class, pass it in as a dependency to the controller
/me watches chat window woosh past
:-)
20:16
@ircmaxell could you show a quick example
?
@ircmaxell What passes it to the controller? The ControllerController?
;)
@halfer pastebin.com/3fEYa44m I suspect it is the sha512 thing in there, but not sure
The ControllerParameterPasser
<?php

namespace Blah\Blah;

use Something\Blog;

class SomethingController
{
    protected $blog;
    public function __construct(Blog $blog) {
        $this->blog = $blog;
    }
    public function indexAction() {
        $blogArticle = $this->blog->findById(2);
        $this->showMe = $blogArticle->title;
        ...
    }
}
20:17
Thanks, will give it a go.
lemme know
Ah okay so just dependency injection, but is that recommended via a controller?
As the controller will be initiated via zend through the autoloaders
@halfer You need a ticket to go with this?
Are each of those blocks separate issue blocks? If so let me know what each code is.
Nah, it'll be an easy fix, whatever it is.
Yes the ------------------------------ delimits the separate issue blocks
20:21
@ircmaxell I'm sorry you see it that way. I've been sharing my PHP knowledge since 1997. It's unfair you talk about my efforts with disdain.
God he has been spreading that crap since 1997
it was useful in 1997
but the rest of the world evolved, and he hasn't kept up
"fair" ugh...
@ircmaxell Well I don't know exactly but as I remember it it stopped being useful pretty fast
php-di.org/doc/best-practices.html: "Using dependency injection in controllers is usually where it is the most painful." - sigh
user924016
20:24
@Titanium is it not painful at all
user924016
start doing it, drop the statics and I am sure you will never look back after doing it for a while
I shall change my ways. Thanks guys
Even better. Start unit testing your code and you will see you just made that impossible
user924016
yea =] writting unit tests really helped me clean up some of my code..
At least that is what worked for me to go from shitty code to a bit less shitty code I am writing now :)
20:28
just don't write shitty tests
No no no the tests are fine it really just is my shitty code :)
@PaulCrovella that's the key
PeeHaa, can you try in another browser? Can't replicate on Chromium/Ubuntu either. I'm off for dinner, so if you could raise a ticket that'd be good. Will look at tomorrow.
@Danack people using assert is the problem ;-)
20:30
@Pee
@PeeHaa ^
oops, heh heh
@halfer Sure let me open update firefox and try again
20:34
Maxwell, are you any good with Silverlight applications?
@ircmaxell how long have you been clicking that button?
/me grins at that "w"
Or anyone else?
I'm looking for an object identifier within a silverlight application on a website, is this at all possible?
@RahulKhosla This is the PHP room.
Is there a Silverlight room?
20:36
@RahulKhosla by using linux and disallowing silverlight installation :3
@Ocramius And I will be able to see the raw code?
@RahulKhosla Dunno. The PHP and Silverlight venn diagrams don't usually intersect.
@RahulKhosla no, I'm just messing around
I don't always mute users, but when I do I'm glad I did
@PaulCrovella too long
5.7 failed?
20:40
@RahulKhosla What kind of object identifier, on a random website?
Random @salathe.
@Danack Maybe we should allow classes to define "self" properties; static properties available to only the exact type. /s
Just put up an rfc for 5.8 instead. It will inexplicably stand a chance.
9
20:43
@LeviMorrison I see the /s but I have wanted that before....super private properties. It would be useful when you've mucked up your class design.
@LeviMorrison in other words private static?
Not quite.
the problem there is the static is not on the class, but on the method itself
Sub-classes would get their own static private without you doing anything.
you'd have the same exact problem with an instance
20:47
@ircmaxell yep :(
Yes 14:19 No
explosm.net/rcg/TenseMiceGuide ... dammit now I'm trapped too
Hi!
Can you take a look on this question please?
0
Q: Check if website is available in fastest possible way

Ty221foreach($links as $link_content) { $handle = curl_init(LINK_BASE.$link_content); curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE); $response = curl_exec($handle); $httpCode = curl_getinfo($handle, CURLINFO_HTTP_COD...

@Ty221 The answer Mike gave you is correct.

« first day (1545 days earlier)      last day (3628 days later) »