« first day (1844 days earlier)      last day (3098 days later) » 

8:00 PM
You have the United States government to blame for that one.
Or you could just blame Vint Cerf for giving it to them.
 
I am facing an issue i have number of devices that i connect to a local server, but the issue is that if the local server is restarted then its IP might change , I want all the devices to keep updated with the new IP of the local server, how do i do that
 
@JibinMathew Configure your DHCP server to assign a specific address to your server, or have your local DNS server dynamically configurable by your server.
 
@JibinMathew I agree, DHCP to a static address is your best solution unless you don't have any control over your DHCP server then you'll need something like Zookeeper to handle things like distributed synchronization of configuration data. Obviously the later becomes slightly more complicated because you'd have to reconnected the devices when an update occurs.
 
@Sherif nah, we should blame him for not realizing how small 2^32 really is.
 
@bwoebi Hey, at least the guy didn't limit the upperbound on interconnected networks. It was the 70's. Give the man some credit :p
and I know you were being sarcastic there
 
8:13 PM
hehe
 
Who knew we'd have more devices connected to the Internet than people in less than 30 years.
 
So… the JetBrains licensing people responded within one business day. Not bad, not great.
 
Then again, he did work on Interplanetary Internet protocols so...
 
They fixed the error but now I have another.
Essentially our open source license which was good for everyone on the PHP project is now assigned to a single person after the license update :D
 
@Sherif Interplanetary? Is that now sarcasm or serious?
 
8:16 PM
@bwoebi No, that was his 20% project at Google.
He worked on a new protocol tested for the Mars rover or something.
I have no idea of the specifics or whether or not it was successful, but I did read that.
@bwoebi I mean we probably won't have any commercial application for an Interplanetary Internet for quite some time, but you never know... At least you can't say the guy isn't thinking big enough now :)
 
now. Maybe he learned… :-D
 
For guy in his 70s I'd say kudos that even still continuing his work.
 
Yeah, I agree ;-)
I wonder why there never was IPv2… 2^16 addresses… somehow they must have realized 2^16 is never going to be enough… :-D
or maybe there was, just I don't know of it.
 
He explained that once at a conference. I can't recall now.
ahh, heheh
good old wikipedia
 
@bwoebi rfc-editor.org/ien/ien28.pdf for IPv2... which had a variable length address split into host and network, with the example given a 1 octet network and 2 octet host, and stated that the network was responsible for assigning addressing schemes within its domain.
 
8:29 PM
how ironic… IPv2 indeed had a two byte host then :-D
hmm, actually nah, it had variable length
for up to 16 bytes.
well… lol.
@Sherif so, we had (up to) 128 bits in IPv2, got 32 bits in IPv4 and now 128 bits again in IPv6 :-D
 
@bwoebi Yea, they didn't have machines capable of supporting 128 bits in those days.
Remember, the entire point at the time was to figure out if you could build a system of communication that was capable of surviving a nuclear attack.
 
@Sherif which is why you segment it then in like 4 32 bit parts…
 
I doubt anyone cared about scale at the time.
 
nuclear attack? not sure… but the EMP would probably have made every electronic communication impossible…
 
EMP has a finite blast radius
The point of going with packet switching instead of the then prominent circuit switching communication method was that you could easily build in redundancy.
 
8:34 PM
@Sherif ah okay
 
The packets could ultimately find another route in case one route went down.
You couldn't do that with circuit switching without redesigning the infrastructure.
 
Was supposed to be resistant to sabotage and normal outages... Blowing away whole cities tends to drop packets, no matter how redundant your network is.
 
For that city... it doesn't take down the entire network.
Besides, I doubt anyone could survive a nuclear blast let alone have a need for a telephone.
The project was intended to keep the military's line of communication open regardless of which central switches went down.
 
No, but the nuclear threat at the time was for dozens of ICBMs to penetrate the defenses. They threw their hands up at that, and went smaller, to just a couple of major network outages at a time.
 
Yes, it was a fail safe.
 
oh that old story again
 
I agree about the fail safe part. I disagree about the nuke part.
 
@Sherif but after all, if you want to cut communications, the issues is that there are just very few thick cables international data is routed through… it's not even that hard… compared to launching nuclear missiles…
 
@bwoebi Yes, but the advantage of the Internet protocols that Vint Cerf and his colleagues helped refine (i.e. TCP/IP) was that you could interconnect as many networks as you wanted. So eventually you couldn't take down an entire network with a single point of failure.
At least not trivially.
Now whether or not any of that actually materialized into reality is a different story.
Without the packet switching protocols they developed it wouldn't have even been possible.
 
@Sherif but in turn BGP is very vulnerable though, once you have earned the trust to participate.
 
8:43 PM
Yes, they never completed the project.
The government just ran off with his prototype and said "see ya!"
Clearly it was never finished as so evident by the lack of security built into the Internet protocols of today.
 
If you want, I guess, one can create much chaos… Needs some time until you can reorganize routes…
 
One can very easily create chaos on the Internet of today.
That already happens quite often. It's a miracle that the Internet even works at all.
 
@Sherif not that easily though, as a normal user.
 
It's all about trust now. People have to trust that there are those who want the Internet to remain open and free.
 
Right… ISPs have the power and those who influence them… but a normal user can't do much.
 
8:47 PM
Not just ISPs. You can be a major corporation with a BGP too.
 
The only reason why BGP is still in use is because of the utter terror of starting the switch to a different protocol.
 
these are strictly seen ISPs too for their internal network.
 
Did you know General Motors has their own BGP ASN?
 
I didn't know that, but it's not surprising.
 
no idea… but … if they need it, they can have it.
 
Abe
InnoDB: AUTOINC next value generation is disabled for ...
 
Look at the number of major corporations that can influence Internet routing today ;)
 
Abe
i'm so tired of your shit mysql
 
The government does want that btw
 
@salathe There seems to be some confusion about the open source license for PhpStorm 10 provided to the PHP project. I've cc'd you in a ticket and they may ask you some questions – I dunno.
 
Abe
8:52 PM
i have a goddamn table that is getting corrupted every day for some reason
 
@Abe Let me guess, you're using statement based replication?
 
@Sherif Right, but they have all interests in not doing shit, else they probably quickly will loose their privilege of having an ASN.
 
@bwoebi Not when the government has them in their pocket. Look at what happened in India and Egypt. The US government isn't any better.
We live in an age where wars are now waged over the Internet.
 
@Sherif what happened in India?
 
@bwoebi The government blocked youtube for some time during some civil uprising or something.
Same thing the Egyptian government did during their revolution.
They blocked certain social media sites to prevent rallying.
Basically by bringing DNS to a crawl.
 
8:58 PM
@Sherif thought that was Pakistan and they accidentally sent the blackholing updates via EBGP instead of IBGP?
 
oh right Pakistan my bad
Anyway, governments tend to want control over everything and the one thing they haven't managed to control yet is the Internet and that scares them.
 
@Sherif The control the internet just as much as they control the world in general…
 
The UK prime minister is trying to get his parliament to pass a bill that would outlaw network service providers from providing end-to-end encryption.
 
@bwoebi Nah, the Internet is a much newer domain for them. They've known the world a lot longer and they've managed to at least become acquainted with some of its dark corners.
The truth is we're just so vulnerable and we don't always realize by how much. I mean look at Stuxnet! That was a wakeup call.
 
If you really want to be paranoid, look up the Equation Group.
 
9:04 PM
Hi All
 
Abe
@Sherif nope
 
@Abe What then?
 
Abe
nothing like that, it's a plain simple innodb table
i'm not even using foreign keys
 
Can any one can help me in mysql database
 
@Abe Do you delete a lot of rows from a large table?
 
Abe
9:06 PM
nope, it barely contains stuff
about 500 rows currently
 
A table that barely contains stuff that is repeatedly getting corrupted?
That sounds very dubious.
Are you sure it isn't a hardware issue?
 
Abe
only the autoinc thingy gets corrupted
 
Oh, well that could be a programming issue.
 
Abe
so when i add new stuff. otherwise it works perfectly
 
Someone trying to manually reuse the autoinc in a race condition?
Yup, sounds like it.
 
Abe
9:08 PM
nope, my app is the only using that table
 
Now the only question is "does your app have a race condition?"
;)
Also, it's time to define "corrupted" I guess.
 
Abe
but why kill the autoinc index?
 
Kill?
 
Abe
it literally gets killed, set to 0 and prevents any new rows to be added
 
o.0
 
9:11 PM
@shrif can you help me in mysql.
 
Are you sure you're not setting it to 0? I've never seen mysql just randomly change your schema like that.
 
@RobiKumarTomar "Don't ask to ask, just ask"
 
@RobiKumarTomar What's mysql? Is that some new rock band?
 
This isn't a MySQL room... so you'll probably be ignored... but you'll definitely not get an answer if you don't ask your question, and no, nobody is going to say yes when asked if you can ask your question.
 
Abe
2015-11-03 21:19:07 238c InnoDB: AUTOINC next value generation is disabled for xxxx
2015-11-03 21:23:23 238c InnoDB: MySQL and InnoDB data dictionaries are out of sync.
InnoDB: Unable to find the AUTOINC column xxx in the InnoDB table xxxx.
InnoDB: We set the next AUTOINC column value to 0,
InnoDB: in effect disabling the AUTOINC next value generation.
InnoDB: You can either set the next AUTOINC value explicitly using ALTER TABLE
InnoDB: or fix the data dictionary by recreating the table.
happens nearly every day, from 3 days now
 
9:14 PM
Ok, I am trying to fetch 5000 row from mysql table into json, but failed to load. Is it possible to get this data into json.
 
Abe
(mean that happened already in the past but i didn't give it much importance)
 
@RobiKumarTomar Yes, it is possible.
 
@Abe Have you looked at? dev.mysql.com/doc/refman/5.7/en/…
 
Abe
reading
 
but I am only able to fetch 100-150 rows from server.
 
9:15 PM
Sounds like you may need to revise "Restoring Orphaned File-Per-Table ibd Files"
 
What's stopping you from getting more than 150 rows?
 
If trying for all rows then it does not load the json and i gets the empty response@Ghedipunk
 
If error reporting isn't on, then turn it on. Also, have a look at your error logs.
 
Abe
meh i will just try to make a new db
 
It sounds like it could be a simple timeout... in which case, either speed something up, or have PHP wait longer before quitting. It could also be a memory issue... in which case, only work on the data that you need.
 
Abe
9:18 PM
hopefully that will fix it, thanks anyway @Sherif
i bookmarked it in case
 
@Abe You weren't copying the database files around from one server to another before this happened, were you?
 
Regardless of the root cause, there should be something in the error logs, and turning on error reporting will probably make the issue painfully obvious.
 
Abe
myisam was much better. REPAIR TABLE MAGIC // yay 1 full month without corruptions!
nope @Sherif it's a nearly dead projects nobody cares of
and apparently it feels lonely... seeking for attentions
 
Please have a look, how i am doing this@Ghedipunk
 
Abe
*project
 
9:23 PM
@RobiKumarTomar Don't use raw integers when the function calls for a bitmask of constants... but... there's nothing inherently wrong with your code; it should work, and it's probably either timing out or it's running out of memory. Look at your error logs.
 
Hey thanks, but i am not getting any thing into the log file,@Ghedipunk
 
Then turn on error reporting.
 
Actually I am not the champ in database, but i have tried many solution from google but no luck. Code working fine if i am fetching some row, I dont know why. @Ghedipunk
 
error_reporting(E_ALL); Stick it in there. Right above the line where you're pulling from the database. You know you wanna.
 
Ok, thanks. Let me check it.
 
9:28 PM
hint hint memory_limit </hint>
 
Could be max_execution_time... Probably memory... could be something else entirely.
 
I am using vps server so i can change the max execution time and memory limit, But no success.
could you please suggest how it will be?
 
@RobiKumarTomar All that I know is that without an error message, we're really not much help.
 
Allowed memory size of 67108864 bytes exhausted (tried to allocate 95074304 bytes)
@Ghedipunk
 
9:43 PM
You called it, Sherif.
@RobiKumarTomar Paginate your results. You know that you can safely load 100 at a time, so load 100, write it to your file, load another 100, write, etc., until you're done. You'll have to write a custom JSON encoder, since you won't have the full result set to send to json_encode() all at once.
 
Yes, any help how to make custom json_encode for it. My need to fetch the large data in the form of json in one go.
 
Take a look at what json_encode() generates for a dozen rows. Copy that format.
 
Ok, Thanks. I will give it to a try.
 
10:03 PM
tyger! tyget! burning bright
 
Hello guys
if i have a textarea and in the database i mark that text area as varchar255
 
What if we're not male?
 
the text gets cut out
 
Correct.
 
what other options do i have apart from varchar255
?
 
your the man !
 
char, varchar, binary, varbinary, tinyblob, tinytext, blob, text, longblog, longtext, enum, and set.
Google's the man. I'm just the axon.
Dendrite?
 
enum would only work here in the event that your database is storing copypasta, and even then it should be a fkey, not inline.
 
I need to study neurology: Looking for the term of a connection between two neurons, but not synapse.
 
@Ghedipunk Neurite?
 
10:21 PM
@Ghedipunk I think you're looking for axon
 
TY guys ;)
 
Oh wait, @bwoebi already said neurite :)
 
Yeah, axon seems to be the closest to what I was looking for. Got confused because dendrite also popped into my mind.
 
Yea dendrites and axons are the parts that send information in and out of neurons basically
axons send information out and dendrites send them in
So neurites may be a more appropriate term there
 
> Test-driven development (TDD) is a development technique where you must first write a test that fails before you write new functional code.
So what happens if your test passes before you write your functional code?
 
10:27 PM
@Ghedipunk Then you failed
 
@Ghedipunk You've misunderstood what you're trying to write.
 
TDD: writing tests which will still fail after you've written your code because the test was wrong.
 
Or possibly what you're testing.
 
@bwoebi :)
 
@Sherif well, this still may happen in case you assert getting nothing for some special case… and well… without the code you also get nothing ;-D
 
10:35 PM
<?php

include 'inc/connect.php';

$db = connect();

$sql = "SELECT * FROM testimonials";

foreach($db->query($sql) as $row) {
    echo $row['title'] . ' ' . $row['testimonial'] . '<br><br><br>';
}

?>
the above works
the below does't
<?php

                                include 'inc/connect.php';
                                $db = connect();
                                $sql = "SELECT * FROM testimonials";
                                foreach($db->query($sql) as $row) {
                            ?>

                                <div class="item">
                                    <blockquote>
                                        <h3><?php  $row['title'];  ?></h3>
                                        <p><?php  $row['testimonial'];  ?></p>
$row['title']; and $row['testimonial'] print null values ! :/
 
You're missing echo statements.
<?php $row['title']; ?> should be <?php echo $row['title']; ?>
 
DANM !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
You should get a rubber duck.
 
(Also, remember to sanitize for HTML... Never trust your inputs, and for all purposes, your database is an input)
 
@Sherif hmmmm for what ?
 
10:44 PM
For rubber ducking of course!
Rubber duck debugging is an informal term used in software engineering for a method of debugging code. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck. Many other terms exist for this technique, often involving different inanimate objects. Many programmers have had the experience of explaining a programming problem to someone else, possibly even to someone who knows nothing about programming, and then hitting upon the solution in the...
5
 
GOt it !
 
Top-tip: deleting the installed.json file in the vendor/composer directory and then doing a composer update makes it ignore all of the directories that have been edited, and deletes all the changes.
 
will buy one thanks !
LOOL
 
Abe
11:12 PM
my rubber duck used to be a html room regular's photo, but i left it at my previous office. now it amuses and helps debugging my ex colleagues :(
need to find a photo of @PeeHaa
 
@Danack > So, the whole point of this RFC would go away if someone wrote a plugin for a diff tool that understood PHP?
 
Those are words yes.
 
If "wrote a plugin" means supporting PHP-specific diffs in upstream Git and all relevant Git-based tooling, yes.
 
PSR-4 was introduced to solve the problem of having too many subdirectories in git repos, and now github has collapsed those directories.
 
@Abe true story, I made a cutout thingy of a regular in GIMP and the italian mofo had to one up me and make it all 3D and witty and shit. (here is mine)
 
11:17 PM
I'm probably not going to vote against the RFC, but adding stuff because of a problem with your tool chain seems weak.
 
Abe
haha
 
@Danack I'm not a big fan of the RFC, I just think that argument is particularly bogus
 
11:39 PM
What RFC exactly are we talking about?
 
@LeviMorrison I don't think they thought it through... I've sent a couple of mails today, let's see what happens.
 
Thanks.
 
@Danack Ah… yea… not that happy about that RFC either.
 
11:51 PM
I have a very visceral response to it. I can see how it would be a benefit........and at the same time I think it's aesthetically displeasing.
Sometimes the stuff that you can put a value on is less important than the stuff that is hard to put a value on.
 

« first day (1844 days earlier)      last day (3098 days later) »