« first day (1771 days earlier)      last day (3168 days later) » 

11:00 AM
Does somebody know why this is considered a risky test? cc @SebastianBergmann
 
@HassanAlthaf I'd rather not spend any money as my income is pretty much negative at the moment.
 
Guys, what length should an IP address be?
 
v4 or v6?
 
11:16 AM
v4
CREATE table `contact_forms` (
	`id` INT(11) PRIMARY AUTO_INCREMENT NOT NULL,
    `sender` VARCHAR(50) NOT NULL,
    `subject` VARCHAR(75) NOT NULL,
    `message` VARCHAR(2000) NOT NULL,
    `ip_address` VARCHAR(15) NOT NULL
);
 
32 bits
 
mornin
 
Guys, what is wrong in my MySQL Query?
 
VARCHAR(2000) wut?
 
Morning @PaulCrovella, @Ja͢ck
 
11:17 AM
good moaning
 
varchar(2000)?
 
Ye, is that wrong?
 
mysql has TEXT column for that
 
I think you should use text maybe? (not a database expert)
 
or MEDIUMTEXT
 
11:18 AM
Oh, yeah, forgot that.
 
How's the job with that dreaded technology @Ja͢ck? :-) Still fun?
 
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 'AUTO_INCREMENT NOT NULL,
`sender` VARCHAR(50) NOT NULL,
`subject` VARC' at line 2
 
@PeeHaa dreaded technology? i know not what you speak off, php mortal >D
 
I don't know why it is showing that error.. :/
 
@HassanAlthaf you changed varchar(2000) to text, right?
 
11:20 AM
Yeah
 
yeah, it's great! the rails idiosyncrasies aren't always that obvious, but surely this is not limited to one framework ;)
 
@Ja͢ck :P
 
but postgres totally rocks!
 
morning'ish
 
Yes. yes it does
 
11:20 AM
@HurricaneDevelopment all are good, just suggest not using cryptlib
 
@tereško Morning sir
 
o/
@ircmaxell so .. did you give the Lost Fleet a try?
 
Oh, missed the KEY keyword after PRIMARY.
No wonder.
 
does any of you gents have practical knowledge of PCI DSS?
 
@HassanAlthaf You missed KEY.. Oh, you figured it out...
 
11:22 AM
@HassanAlthaf I was about to write it. :D
 
@Trowski I would suggest splitting them apart into separate RFCs. Also, you're missing the ZPP failure case with random_*.
@tereško no
 
=/
 
@deadsource @VeeeneX Thanks for trying to help me. And @Ja͢ck Too
 
@HassanAlthaf you will need a timestamp field in that table
 
OH CRAP
FORGOT
@tereško Thanks for reminding. :P
 
11:24 AM
@ircmaxell Agree, pcre is a separate issue
 
Is there anyway, in SQL that if I just leave the timestamp column empty, it fills it with the UNIX timestamp on time of entry automatically?
 
@NikiC hence why splitting them into separate RFCs
$comparableSalt = password_hash("mypassword", PASSWORD_BCRYPT, [
  'salt' => "mypassword"
]);
 
awesomesauce!
 
@ircmaxell ...
 
@ircmaxell If that wasn't that sad I would lol
 
11:27 AM
@NikiC someone who just was complaining about deprecating salts
 
@NikiC Consider adding an .htaccess file for Apache users for your fastroute package.
 
@HassanAlthaf huh? why?
 
@ircmaxell internet makes me sad
 
you're not kidding
 
btw, how's Kohana?
 
11:42 AM
the lesser of my FW issues
 
that sounds ominous
 
yup
 
12:31 PM
Quick question: is strlen O(1) in php?
 
@PeeHaa yes
 
tnx
 
@PeeHaa what does it do ?
 
@NullPoiиteя ?
 
this O(1)
 
12:37 PM
In mathematics, big O notation describes the limiting behavior of a function when the argument tends towards a particular value or infinity, usually in terms of simpler functions. It is a member of a larger family of notations that is called Landau notation, Bachmann–Landau notation (after Edmund Landau and Paul Bachmann), or asymptotic notation. In computer science, big O notation is used to classify algorithms by how they respond (e.g., in their processing time or working space requirements) to changes in input size. In analytic number theory, it is used to estimate the "error committed" while...
In that specific example it means that the time to get the length will always be constant no matter the length of the string
 
thanks
 
np
 
@PeeHaa Really? Another repository just for github.com/CodeCollab/CsrfToken?
@HassanAlthaf I know, I was talking about Java without any GUI.
 
what is CodeCollab ?
 
@kelunik Yeah I decided to split all the stuff up so I can re-use it for other projects as I please
Lazyness +1, but it takes some effort first :P
The stuff on github are the generic parts of the project
 
12:52 PM
how to limit the user if his rep are < 150 then he can not give vote down to the posts ?
 
@kelunik Also I will drop the encryption thing once @ScottArciszewski annoyed his mate to the point he gives clarification about the license of defuse :)
 
@JoeWatkins and @ircmaxell: you guys might find this interview interesting (about dtrace, some solaris and event scheduling): bsdnow.tv/episodes/2015_08_19-ubuntu_slaughters_kittens
 
1:08 PM
At a conference, will look on Monday.
 
1:27 PM
   IF (NEW.vote_value not in (1,-1)) THEN
        SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'value out of range';
   END IF;
what is 45000 ?
it is constant ? and it has a special mean ?
 
Bonus points available:
0
Q: Browser requesting for mobile (m.) version of site?

DanackOn my webserver I log requests that reach it for domains that are not hosted on the server. I noticed that there are entries that appear to be trying to connect to a mobile version of the site i.e. the domain name in the log is 'm.example.com' instead of 'example.com' The site itself is fully re...

 
@Danack Really wild guess: "request mobile site"?
Also do you still see those things in the log?
 
I tend to just delete logs...so haven't seen it today, but was seeing it when the question was asked.
 
@Danack this seems to be a bot from verisign.
(ips-agent)
> This is Verisigns ips-agent bot. What this does is index your site for verisigns Internet Profile Service. This is something that they use to provide traffic data to prospective buyers of domains that are about to be expired. Verisign is in a unique position of running the .com and .net domain name servers and knows when domains will expire. They are using this information to help sell expiring domains with traffic to bulk domain buyers at registrars such as dynadot.
 
Assholes
 
1:39 PM
Motha-farjers.
 
Andi just claimed that the jit they built and released is "the most advanced and fastest jit in the world"
 
@ircmaxell where did he say that?
 
His opening keynote at NorthEast PHP
 
...
how can he say that...
@Danack I updated the answer with some more proof
 
cool.
 
1:51 PM
but yeah, just ignore it
or maybe fool it if you can
 
@ircmaxell Because fastroute doesn't work without an .htaccess file.
@kelunik Why though Why not UI? I made 2 apps alr with UI. :P
 
@HassanAlthaf Because UI in Java sucks. I had to rewrite some editor, skipped that and built a web version of it...
 
I thought it might be an actual phone that was delaying showing a web page to the user while it checks a mobile domain first. Yeah, if it's just Verisign being naughty, then yeah it's not worth worrying about.
 
@kelunik You use JavaFX Scene Builder to create UI's. :)
 
1:53 PM
I don't know about JavaFX current state, but I had a lot of issues with it when I last tried it.
 
@HassanAlthaf sure it does
 
@HassanAlthaf Of course it does.
 
@ircmaxell It does? I didn't see one. I used the Laravel Frameworks .htaccess instead as it does the same job.
@kelunik What?
 
@HassanAlthaf Nginx doesn't even have .htaccess. :P
 
But there is something called Apache
MAMP got apache only, and I cbf to setup stuff on my own.
lol
 
1:56 PM
Even there, you don't need .htaccess for it.
 
You do.
It didn't work for me without it.
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
This is the one I used.
 
You can setup these things in your server config as well.
 
Oh, for the sake of completeness, I'll leave it as an .htaccess file.
So that I can make it work on my webhost aswell.
 
You can use index.php/routename without needing rewrites.
 
It didn't work either. :P I tried that too.
 
2:02 PM
s/it didn't work/you couldn't get it to work/. That doesn't mean it doesn't work.
 
If that was the case, then everything on earth works, but you can't make it work.
 
2:16 PM
@ircmaxell wut
 
Has anyone pushed a tag to github and then had the updated version appear on Packagist today?
 
@Sajad so, how the VPS setup went?
 
@tereško actually I doubt on Linux (Ubuntu, CentOS, ...) ! And honestly I embarrassed to ask questions about it here ...
 
2:31 PM
what questions?
technically you could go to this room, but it is silent on weekends:

 Root Access

For all you Super Users out there. You have backups, right?
 
someone tell me go with Ubuntu, and someone tell me go with CentOS and someone tell me go with slackware, I'm really confuse ...
@tereško ok :-)
 
the person who told you to use slackware was trolling
 
@Sajad Use Ubuntu, it is the best.
 
@HassanAlthaf I don't know, @tereško offered me CentOS ...
 
@HassanAlthaf please, explain how exactly it is "the best"? You must how some really good arguments, if you are so sure about it not only being good, but the best
 
2:35 PM
@tereško Cuz it is not as ancient as CentOS and if you find the command line hard, you can get the GUI with just a few commands. :)
 
@HassanAlthaf he needs an OS for a VPS
 
I know. ;P
 
also, how exactly age comes into this?
 
I prefer to use the latest stuff. :)
 
@HassanAlthaf Ubuntu is the newest version ?
 
2:37 PM
Ubuntu came after CentOS.
 
Ubuntu 15,04 experience - "systemd-journal was slowly hogging all of the RAM"
 
@HassanAlthaf please, elaborate. CentOS 7.1 was released this march, Ubuntu 15.04 was released this april
 
Because it is not LTS.
 
@HassanAlthaf are you trolling or just ignorant?
 
@tereško Ubuntu is 1 month newer.
 
2:38 PM
@tereško If I want to install Ubuntu, still you will help me ? (Or your condition is using of CentOS ?)
 
no, for same reason as why I would not help you with Wordpress
 
@tereško no what ? don't help ? or it is not your condition ?
 
@Sajad Dude, where did you get your VPS from? Get it from DigitalOcean, they do it for you within 55 seconds.
 
Will anyone of you use the Ubuntu on mobile?
 
@HassanAlthaf I will buy it from Digitalocean
 
2:39 PM
@deadsource Hell naww, iOS and Android all the way.
@Sajad You can use my referral code for $10 free.
 
besides, @Sajad, it looks like you already found you an expert: @HassanAlthaf sounds like has years and years of experience
 
No, I'm new to all this shit.
 
@tereško :-) wrong ! I just ask from everybody for more information !
 
I was talking about my personal preference.
 
@HassanAlthaf so, based on what you came to the conclusion that "ubuntu is the best"?
 
2:41 PM
Based on personal preference.
And I'm more used to ubuntu.
I've never used CentOS.
 
so, what HAVE you used?
 
@tereško wordpress ? is it relevant to linux version ?
 
Ubuntu is da best because I don't need 2min. workarounds to get my packages c:
 
@Sajad Be sure to get free stickers :P
 
I've used Ubuntu, OS X and Windows.
And Linux Mint.
 
2:42 PM
awesome, @Sajad, you have your expert
you will be just fine with @HassanAlthaf helping you out
 
@kelunik yay free stickers!
 
@tereško Chill.
I did state it is my personal preference. :)
 
no, you stated that it is the best
 
It's like asking someone why do you prefer tea over coffee.
 
2:44 PM
ha ha ! actually I can not undrestand your mean of this:
no, for same reason as why I would not help you with Wordpress
 
@HassanAlthaf and I cannot help it. I have this severe mental reaction when I encounter a mix of both ignorance and arrogance.
 
@Sajad Every person has their own opinion. Some people just prefer not to help with certain things as they do not like that software.
@tereško arrogance
I simply said that it is the best in my opinion, doesn't make me arrogant.
I would accept the fact that I am ignorant, but not arrogant.
 
Just to show off my server provider, s3.postimg.org/5qp2vsvo3/Capture.png
 
@deadsource Rich boy.
I don't have any servers at all.
 
ok well, I don't know english very well, so please just give me a word, If I want to use Ubuntu, do you help me ?
 
2:49 PM
50 Euros per year
 
I got free premium unmetered hosting for 2 years.
@Sajad He refused to give you help.
 
@HassanAlthaf ah ok, I felt !
 
I don't remember the website for CentOS help, but if you need help with ubuntu, http://askubuntu.com/
 
Also, notice that "Counter-strike 1,6"
 
@deadsource Multiplayer Counter-strike server?
 
2:50 PM
Maybe?
Never tried it tbh
probably it's just some sort of Control Panel
at least that's what the table is called
 
@HassanAlthaf I will not help someone to use Ubuntu, since I consider it to be one of the worst distros for a server
alongside with Lindows and Mandriva
 
@tereško Okay..
 
@tereško why you think like that ? Ubuntu hast several advantage
It is good for novice users
 
@tereško Lindows?
 
There is a lot of question and answer for it.
 
2:54 PM
@Sajad I don't really know if it's possible to run into any issues when installing Ubuntu...
 
.. and now I will make some food
 
If I didn't have OS X, I'd use Ubuntu. :)
It's such a cute OS.
 
@HassanAlthaf such ? it is not a OS ?
 
@Sajad What?
 
@HassanAlthaf what is Ubuntu exactly ? It is a OS, right ?
 
2:56 PM
:D
 
No it is a fkin toy.
Such a dumb question. -_-
 
look, I don't know english, I can not undrestant some of your points
 
It's a kernel that you install into your BIOS to make Lindows run so you could access Windows 10
 
@Sajad Learn english then.
 
I'm learning :-)
 
2:57 PM
English is like my 3rd or 4th language..
 
intresting, It is also 4th for @tereško
 
English is quite easy to learn if you read a lot, but meh, can't be bothered.
 
I tried learning German as my third but failed at it. Though I like the way the language sounds. Especially when someone shouts angrily in German c:
 
@Sajad When you apply for a job, and if you do not know proper english, then I don't think they will even ask you to have a seat to discuss..
@deadsource TOP KEK!
 
@PeeHaa Run PHPUnit using "--verbose" and it will tell you.
 
3:04 PM
> Test code or tested code did not (only) close its own output buffers
tnx
 
Say, does the systemd-journal hog up all of the RAM on other distros that also have systemd? All of the Google results were mostly about Ubuntu and a few about Fedora.
 
mus
hello everyone
can someone here help me please?
I'm working with PHP Simple HTML DOM Parser
and I need some help to start with it
 
@mus Stop now while you still can easily use domdocument
 
mus
can you send me a tutorial please?
where I can understand it
 
Smashes my head on the wall
 
mus
but can I replace html tags with domdocument?
 
Yes
 
"Thank you very much,Work's like a charm!"

Damn never knew codes work like 'a charm'
 
mus
my example is that I want to replace all divs in an html source
<div align="center" class="css" id="idelement" >
 
If you want to replace a string, there's a function for it
 
3:11 PM
@mus Simple..
 
mus
for example I want to replace all div but keep only class and id
 
@deadsource That doesn't work with html
 
mus
if the div has other attributes then clear it but take only css and id from it
 
Lel.
I doubt that is possible.
 
mus
so I want to replace this
<div align="center" class="css" id="idelement" > so it will look like this <div class="css" id="idelement">
 
3:12 PM
But changing div to something else is very simple.
 
mus
no I don't want to change it to something else
I just want to clear the div
and delete other attributes
 
@PeeHaa If you just want to replace the tag name, str_replace("<div ", "<foo ", $html); could work fine. :P
 
Oh, didn't you say that above?
 
mus
but keep only css and id
 
@kelunik What about the closing tags? :P Don't you think div> would be a better match?
 
mus
3:13 PM
hehe
str_replace is dumb
you can use preg_replace
 
@kelunik :P
 
mus
but with regex
 
@mus why so?
 
mus
well preg_replace is better
is not dumb like str_replace
because you can use regex on preg_replace
that's what I'm doing now
 
3:14 PM
@HassanAlthaf "div>" wouldn't match any divs with attributes, better use another match for the closing tag: "</div>". :P
 
mus
but I got stuck so I'm looking for domdocument
 
@Kelunik Oh yeah.
 
@SebastianBergmann I have something that can throw in here. Am I correct when I assume I cannot prevent that risky message at all?
 
@Mus MAGIC!! Magic can do it.
 
mus
hehe hassan
 
3:15 PM
@PeeHaa Always use a try { ... } finally { ... } there.
 
@kelunik wow
 
mus
preg_replace('~<div.*?>~i','<div etc>',"html source here");
 
@kelunik And manually asserting the exception?
 
This is the first good example for try/finally I've seen
 
mus
preg_replace('~<div.*?>~i','<foo etc>',"html source here");
 
3:16 PM
@PeeHaa The exception will just throw as normal, but the output filter will be cleared.
 
Ah ofc
 
I had the same issue with my templating system.
 
<3
 
mus
so?
no help with my issue? :p
 
@NikiC Basically everywhere where you have to make sure something is cleaned up in the end.
 
3:18 PM
@PeeHaa so you are working on really big thing :) <3
 
Yes it kinda keeps growing :P
 
mus
what are you working at?
you coding it from zero?
or using already made script
and modfying it
 
it happens will all of us... but you are more experienced than me so i understate you can manage them :D
 
From scratch, but I use some libraries
 
mus
ah
good luck :)
 
3:22 PM
ty :)
 
mus
I have website 1xx.xxx alexa rank
I'm looking to get below 100.000
from my experience I think the best way is to link your website with facebook
 
still >100k looks good
 
How to include a file in Composer which is not a class?
 
mus
so people can share everything from your website to fb
like this you can save money on advertising
or google adwords
on
yes @NullPoiиteя thanks ;)
gokano.com
is a new website
 
> The rank declined 12,897,299 positions versus the previous 3 months.
 
3:24 PM
i have website too and i dont care it :D
 
My personal site :P
 
mus
hehe peehaa :p
 
@PeeHaa I need a new hosting provider, requirement is more memory than cpu, any recommendations? My current one for 1€ / year is limited to 128 processes / kernel threads. :P
 
mus
@kelunik
 
Never mind.
 
mus
3:25 PM
best of the best :)
that's what I'm using now
their vps are cheap
 
digitalocean?
 
Obviously that is the best of the best.
 
mus
no
they are expensive
 
It's the father of the best of the best.
 
really?
 
3:26 PM
lol
 
ramnode
 
stop saying everything is the best
 
mus
from my experience , ovh is better
 
@meh-_- Yeah, one option as I have 100$ credit there anyway.
 
mus
but I won't lie
u will get problems with ovh
like vps shutdown without any reason
but not all times
 
3:27 PM
Yeah! digitalocean is the cheapest i ever found
 
host your on server ... buy static ip its like 30$ a year
 
DigitalOcean no problems I used it for over 5 months.
 
mus
meh
 
?
 
mus
digitalocean hosting
 
3:27 PM
it rocks
 
mus
shared hosting
or vps?
 
But then I took out all my $100+ credit because I got 2 year premium hosting for free worth £200.
 
Okay .. now gotta
 
@kelunik Not really. Whenever I go host hopping I just guess who will be sane :P
 
i have hosted it.. with 12mbps fiber-optics internet and core i5 and worked awesome
 
3:28 PM
And I have another year on another host which i will use after 2 years. ;)
 
@kelunik 1€ / year?
 
@mus I also had some issues with ovh, but others seem happy with them
 
@NikiC lol how do you even though about that
 
@NikiC Oh lol. Didn't even see that with the sun directly on my screen :P
 
@PeeHaa I will try limiting the elastic thread count, because it spawns ~ 40 threads currently on startup. ^^
@NikiC 1&1 student offer, but it doesn't seem like they continued that.
 
3:30 PM
github student pack has $100 digitalocean credits
 
godaddy is worst of all
 
@meh-_- I think we can all agree with that
 
education.github.com/pack this is really awesome but i saw that after my graduation :(
 
@NikiC yes, as long as you pay 5$ :)
 
@NullPoiиteя woo! never saw that before !!
 
3:33 PM
i still dont afford all of them :D
 
@NikiC How long did they need to confirm your student request?
 
@NullPoiиteя I thought the unreal engine was free either way?
 
So, anyone have any experience on running a php script with terminal (php code.php) for a long time with a time interval (sleep(120))?
 
@meh-_- Somewhat yeah
 
@PeeHaa going to check it out
 
3:36 PM
@PeeHaa I don't know, but Atom is free for all as well. :P
 
True
 
@meh-_- yeah - use supervisord.org to keep it up.
 
> When you ship a game or application, you pay a 5% royalty on gross revenue after the first $3,000 per product, per quarter. It’s a simple arrangement in which we succeed only when you succeed.
 
and let the script just exit every few minutes.
 
So not really free
 
3:39 PM
@Danack never saw that before :) my python crawler working since morning, it collects photos of my favorite photographers rightinto my pc harddrive .. wanted to convert it to php and let see how it goes ...
 
3:51 PM
@kelunik I didn't send a request (yet)
 
> Sorry, Tridiv is not compatible with Firefox.
 
@NikiC Having private repositories is always nice. ;-)
 
@kelunik I'm using a university gitlab instance for most of my private stuff
 
I don't think we have something like that.
 
Seems like Anatol is open to an RFC, so let's get it out. @Trowski mind if we use that as a good starting point?
 
3:58 PM
@ircmaxell General exception vs. error RFC or throwables in functions?
 
0
Q: How to check the number of user reputation before storing his vote via trigger

SajadI have two tables. Posts, Votes. I have a column in the Posts table named total_votes. Also I have a trigger for updating it when user gives a vote to the post. Here is my trigger: delimiter // CREATE TRIGGER total_votes AFTER INSERT ON Votes FOR EACH ROW begin update posts set total_vote...

 
two separate ones, and specific for the two problem cases. We'll do another RFC for general policy after 7.0 goes gold
 
Didn't Anatol want a general RFC?
 

« first day (1771 days earlier)      last day (3168 days later) »