Latest Comments
In response to: MySQL 101 - Referential Integrity
SQL dev [Visitor]
I have rarely seen programming taking advantage of Referential Integrity constraint e.g. CASCADE on UPDATE. It's immensely useful specially in large application where data is subject to change by multiple people. Here is another good example of referential integrity in MySQL http://javarevisited.blogspot.com.ar/2012/12/what-is-referential-integrity-in-database-sql-mysql-example-tutorial.html which explains cascading.
In response to: Predictions of a Long Hot Summer
karen [Member]
They don't call the Redbank Nature Reserve the Bealiba Second Cemetery for nothing (mine shafts everywhere...)
In response to: Predictions of a Long Hot Summer
Evan [Visitor]
"I've got a plan for a spot of stress relief."
Yes, but the ground will be too hard for grave digging...
Yes, but the ground will be too hard for grave digging...
In response to: Ducklings - Day 3
karen [Member]
Alas these days, some of the excess boys do end up on the table.
Whilst I end up in the back room pretending they aren't on the table.... others in the house are less conflicted...
Whilst I end up in the back room pretending they aren't on the table.... others in the house are less conflicted...
In response to: Ducklings - Day 3
Sally [Visitor]
I guess they're not destined for a yummy Duck L'orange when they grow up?
It's ok - I'm slapping myself - bad Sally!
It's ok - I'm slapping myself - bad Sally!
In response to: On badly behaved crawlers
Neil [Visitor]
Just an update...We applied the robots.txt fix and noticed a distinct drop in origin traffic and CPU usage.
Not all magpie-crawler connections have gone but most have. We will only block the IPs as the last resort but it may come to that if we can't get rid of them all via robots.txt.
Seems magpie is (as stated above) simply overly aggressive.
Not all magpie-crawler connections have gone but most have. We will only block the IPs as the last resort but it may come to that if we can't get rid of them all via robots.txt.
Seems magpie is (as stated above) simply overly aggressive.
In response to: Open for Business
karen [Member]
Oh the conversation was had.....
In response to: Open for Business
Evan [Visitor]
I dare you to change the sign to say, "Fresh Eggs. Direct from a chooks bum to you."
In response to: Dealing with pre-emptive grief
ajdonnison [Member]
Hi Eli,
Unfortunately I ended up having to make the decision, as I knew I would. One thing you learn when owning pets is that you will outlive them, and that more often than not you are going to have to make some hard decisions. What you have to remember is that you have to act in the best interests of your pet. It is not betrayal to end suffering, although the point at which you decide that quality of life has gone will be different for different people and different situations. In fact, I see it as a duty, a responsibility of ownership.
I hope that your situation is easy on both of you, but please, don't shy away from the hard decision if and when it becomes necessary. You will have doubts, that is only human - but if you love your dog the way it comes across from your words you will know when it is time to act.
Unfortunately I ended up having to make the decision, as I knew I would. One thing you learn when owning pets is that you will outlive them, and that more often than not you are going to have to make some hard decisions. What you have to remember is that you have to act in the best interests of your pet. It is not betrayal to end suffering, although the point at which you decide that quality of life has gone will be different for different people and different situations. In fact, I see it as a duty, a responsibility of ownership.
I hope that your situation is easy on both of you, but please, don't shy away from the hard decision if and when it becomes necessary. You will have doubts, that is only human - but if you love your dog the way it comes across from your words you will know when it is time to act.
In response to: Dealing with pre-emptive grief
Eli [Visitor]
I took my twelve yr old golden retriever for a checkup and although she had been put on a reduced calorie diet and lost some weight and her arthritis was starting she had some really good days. The shock was the blood test showed she has leukemia and will die in 30 to 60 days. She shows no signs except the blood counts, eats well, no stomach problems but has anemia which slows her down. I am hoping I will not have to make that choice unless she stops eating or drinking as I feel I would feel I am betraying the animal that loves me most and will do anythings to please me. I understand how you feel pray so that he goes before you have to make a choice and he does not suffer.
In response to: On badly behaved crawlers
Neil [Visitor]
Hi all
The magpie crawler is also causing us some nasty issues on several large sites. The main issue for us is in fact that they persist in crawling non-existent pages, one of which alone is causing us over 20,000 404s per day.
We are taking steps now to ban magpie from our servers.
Cheers
Neil
The magpie crawler is also causing us some nasty issues on several large sites. The main issue for us is in fact that they persist in crawling non-existent pages, one of which alone is causing us over 20,000 404s per day.
We are taking steps now to ban magpie from our servers.
Cheers
Neil
In response to: MySQL 101 - Creating your first database
ajdonnison [Member]
You are mistaken on a few fronts here. Firstly there is no error in the syntax, and the syntax used is 'best practice' for MySQL. Secondly, there is no single quote, they are backticks. Lastly it is not recommended to leave these out, as you set yourself up for problems in the future.
As to captcha - I'll look into that.
As to captcha - I'll look into that.
In response to: MySQL 101 - Creating your first database
vaz [Visitor]
Note - the syntax that you used is wrong
You have mentioned : CREATE DATABASE "bookshop';
Firstly - one can use either small oor caps for the create database
Secondly - if you give a single quote it will throw a ERROR 1064
Therefore, the correct syntax is as follows
create database sonic;
(no quotes)
Best....
(also one comment on the website caoptcha code - there is some problem, it refreshes the some captcha multiple times and does not allow to post, until one reloads the page and gets a new captcha. Also your captcha is little strange characters and one cant figure out the letters)
You have mentioned : CREATE DATABASE "bookshop';
Firstly - one can use either small oor caps for the create database
Secondly - if you give a single quote it will throw a ERROR 1064
Therefore, the correct syntax is as follows
create database sonic;
(no quotes)
Best....
(also one comment on the website caoptcha code - there is some problem, it refreshes the some captcha multiple times and does not allow to post, until one reloads the page and gets a new captcha. Also your captcha is little strange characters and one cant figure out the letters)
In response to: Doesn't Everybody have an incubator on their coffee table?
karen [Member]
I don't think temperature has much affect on chook hatchings, mostly it's a quantity game.
In order to get enough hens we just have to hatch more eggs than we can when "patiently" waiting for somebody to go clucky, stick and stay. We've had a couple of chooks recently that just gave up before the incubation period was completed and the goose last year kept pushing the eggs away so she could hatch more straw..... Once she starts laying again in Spring we can get goose eggs into this incubator as well as ducks.
In order to get enough hens we just have to hatch more eggs than we can when "patiently" waiting for somebody to go clucky, stick and stay. We've had a couple of chooks recently that just gave up before the incubation period was completed and the goose last year kept pushing the eggs away so she could hatch more straw..... Once she starts laying again in Spring we can get goose eggs into this incubator as well as ducks.
In response to: Doesn't Everybody have an incubator on their coffee table?
Sally [Visitor]
So chook eggs aren't like crocodile eggs - the temperature they're incubated at defines the sex?
In response to: On badly behaved crawlers
Dave [Visitor]
They're being a nuisance for me as well. Whole subnet blocked now, for all servers.
In response to: How to Write Crappy Code
JC [Visitor]
Here are some more:
Don't indent your code, or better yet, indent it randomly.
Put inexplicable white space in here and there to make the file longer.
Always leave out of date 'to-do' comments in place, and never change a comment when you change the code.
If you must comment your fixes, be sure to leave out any meaningful references like CR or QC numbers, eg "// change (jc)"
Finally - and it's not really a coding issue, but it does make for a good laugh - tell your boss that everything's fixed and he can tell his client to relax, then check in the wrong version of the file!
Don't indent your code, or better yet, indent it randomly.
Put inexplicable white space in here and there to make the file longer.
Always leave out of date 'to-do' comments in place, and never change a comment when you change the code.
If you must comment your fixes, be sure to leave out any meaningful references like CR or QC numbers, eg "// change (jc)"
Finally - and it's not really a coding issue, but it does make for a good laugh - tell your boss that everything's fixed and he can tell his client to relax, then check in the wrong version of the file!
In response to: MySQL 101 - Replication
Seppo Jaakola [Visitor]
Thanks for the writeup!
Galera Replication is missing in your reference list. Galera provides synchronous multi-master clustering for MySQL/InnoDB. And it is true multi-master, you can write to any row at any cluster node - just like MySQL/Cluster but works on InnoDB. And fully open source, downloads here: http://www.codership.com/downloads/download-mysqlgalera/
Galera Replication is missing in your reference list. Galera provides synchronous multi-master clustering for MySQL/InnoDB. And it is true multi-master, you can write to any row at any cluster node - just like MySQL/Cluster but works on InnoDB. And fully open source, downloads here: http://www.codership.com/downloads/download-mysqlgalera/
In response to: MySQL 101 - Replication
ajdonnison [Member]
Thanks Giuseppe, I should have remembered that. If I've forgotten anyone else, please chime in with a comment.
In response to: MySQL 101 - Replication
Giuseppe Maxia [Visitor]
Multiple masters replication, without the limitations found in MySQL, can be done easily using Tungsten Replicator (see http://code.google.com/p/tungsten-replicator/wiki/TRCMultiMasterInstallation#Multi-Master_Installation).
In response to: From MySQL to SkySQL - Reflections
ajdonnison [Member]
Hi Henrik,
From my personal perspective I'd say that it isn't a matter of sites being proactively shut down, but a "death of a thousand cuts". Ignoring the community sites is easy, they don't provide any direct bottom-line benefit, they require resources that could be deployed in efforts that are more aligned to revenue generation, and they allow a platform for uncontrolled commentary. A company that is so tightly centralised as Oracle doesn't have that sort of platform in their DNA. Unlike MySQL AB, which understood that the community would become their customer base, I'm not sure Oracle sees the benefit of Community. Users, yes, but users in Oracle's thinking are paying customers.
We are already seeing signs of the lack of commitment to Community. Take a look at the forums, or MySQL Forge and tell me if you see signs of active engagement and a commitment to the community.
As to who should build a replacement and what it would be called, there are issues there. The name "MySQL" is a registered trademark, and if the site attracted a huge following you can bet the Oracle lawyers would take a dim view of any use of the trademark. However there are precedents and many products have community-run support sites that are not affiliated with the company producing the product. It could be done. But who should do it? It probably doesn't matter much. As long as the future was assured and the site was unlikely to be dropped due to pressure from parties with their own agenda, who actually provides the platform is almost irrelevant.
The main thing required for any Community site is active moderation and management. I engaged with the community to put in place moderators for the MySQL forums, rather than have all of the moderation done by the ever-shrinking internal resources (the Community team was effectively decimated long before I left, and as mentioned, the web team was not doing much better). What I couldn't do was give them the resources they needed to effectively take control of the site. I think that any new site should have community engagement and have a means by which the community can effectively manage the site. There are limits, of course, but making the site as much a community resource as possible while protecting it from misuse is a worthwhile although delicate balancing act.
From my personal perspective I'd say that it isn't a matter of sites being proactively shut down, but a "death of a thousand cuts". Ignoring the community sites is easy, they don't provide any direct bottom-line benefit, they require resources that could be deployed in efforts that are more aligned to revenue generation, and they allow a platform for uncontrolled commentary. A company that is so tightly centralised as Oracle doesn't have that sort of platform in their DNA. Unlike MySQL AB, which understood that the community would become their customer base, I'm not sure Oracle sees the benefit of Community. Users, yes, but users in Oracle's thinking are paying customers.
We are already seeing signs of the lack of commitment to Community. Take a look at the forums, or MySQL Forge and tell me if you see signs of active engagement and a commitment to the community.
As to who should build a replacement and what it would be called, there are issues there. The name "MySQL" is a registered trademark, and if the site attracted a huge following you can bet the Oracle lawyers would take a dim view of any use of the trademark. However there are precedents and many products have community-run support sites that are not affiliated with the company producing the product. It could be done. But who should do it? It probably doesn't matter much. As long as the future was assured and the site was unlikely to be dropped due to pressure from parties with their own agenda, who actually provides the platform is almost irrelevant.
The main thing required for any Community site is active moderation and management. I engaged with the community to put in place moderators for the MySQL forums, rather than have all of the moderation done by the ever-shrinking internal resources (the Community team was effectively decimated long before I left, and as mentioned, the web team was not doing much better). What I couldn't do was give them the resources they needed to effectively take control of the site. I think that any new site should have community engagement and have a means by which the community can effectively manage the site. There are limits, of course, but making the site as much a community resource as possible while protecting it from misuse is a worthwhile although delicate balancing act.
In response to: From MySQL to SkySQL - Reflections
Henrik Ingo [Visitor]
Thanks for sharing!
Suppose some community site is actually shut down in the future... In your opinion, what should we do then? Who should build a replacement site and what would it be called?
Suppose some community site is actually shut down in the future... In your opinion, what should we do then? Who should build a replacement site and what would it be called?
In response to: MySQL 101 - Sorting and Searching: ORDER BY, WHERE, GROUP BY
ajdonnison [Member]
Francis, it is nearly impossible to answer the question without knowing more about your setup, and this probably isn't the right forum. Millions of records should not be an issue, there are plenty of sites out there with many millions of records in MySQL databases not having issues with single table queries.
You really should first check that you are using indexes effectively. This is pre-empting a future episode, however you can use the EXPLAIN syntax to find out how the query is likely to use indexes. The episode "Creating your first database" does try to explain the use of indexes and why you need them. You might want to take another look at that.
If you want more information, there are plenty of places where you can get some interactive help. There is the #mysql channel on irc.freenode.net, and the official forums site at http://forums.mysql.com/.
You really should first check that you are using indexes effectively. This is pre-empting a future episode, however you can use the EXPLAIN syntax to find out how the query is likely to use indexes. The episode "Creating your first database" does try to explain the use of indexes and why you need them. You might want to take another look at that.
If you want more information, there are plenty of places where you can get some interactive help. There is the #mysql channel on irc.freenode.net, and the official forums site at http://forums.mysql.com/.
In response to: MySQL 101 - Sorting and Searching: ORDER BY, WHERE, GROUP BY
francis tudlong [Visitor]
Hello i have this millions of records and im having problems with the retrieval of the data because its very slow. even for just fetching a single table what is the problem and what is the solution? any idea thanks in advance
In response to: MySQL 101 - Retrieving data: SELECT and JOIN
ajdonnison [Member]
Thanks, Sheeri, a very good point. Hopefully I explained both the correct way and why the short version was used in that particular example, however you are correct, people will often just use the example code.
In response to: MySQL 101 - Retrieving data: SELECT and JOIN
Sheeri [Visitor]
I recommend naming fields in your INSERT. Not doing so saves keystrokes but at the expense of having your code break if you add a field.
Remember that folks will copy and paste your example, so you have to set a good one!
Remember that folks will copy and paste your example, so you have to set a good one!
In response to: Book Review: Overclocked - Cory Doctorow
Taylor [Visitor]
Wowzers, reading your comments about this book definitely wants to make me get it. I must admit that I'm not into SF books BUT I did read "Ender's Game" a few years ago and I LOVED IT! It absolutely blew my mind. I had to read it for school and thank God I did or else I would have never stumbled upon it. I even told my younger brother to read it and he did. He also loved it. Either way. I might just have to trust you and get "Overlocked"
And I can't believe you got it signed! And haha you read it in less than 24 hours. Wow, trooper!
-Taylor
And I can't believe you got it signed! And haha you read it in less than 24 hours. Wow, trooper!
-Taylor
In response to: On badly behaved crawlers
SergeiS [Visitor]
I also had to block access via .htaccess
In response to: On badly behaved crawlers
Andrew [Visitor]
Thanks for the tip, their "crawler" still misbehaves.
In response to: How to Write Crappy Code
George Nagy [Visitor]
Great rant! I've run across similar code and want to add one more way to write crappy code: Use meaningless file names!
I've had to work on code bases with names like leftFish.inc.php (And not on code that had anything to do with aquariums either :( )
I've had to work on code bases with names like leftFish.inc.php (And not on code that had anything to do with aquariums either :( )
In response to: The First Day of the Rest of My Life
Max Mether [Visitor]
Welcome Adam!
In response to: The First Day of the Rest of My Life
Ivan Zoratti [Visitor]
Adam,
A very warm welcome!
I am sure you will enjoy working at SkySQL!
Let's make our first days a great and enjoyable experience to share with all!
-ivan
A very warm welcome!
I am sure you will enjoy working at SkySQL!
Let's make our first days a great and enjoyable experience to share with all!
-ivan
In response to: The First Day of the Rest of My Life
Kaj Arnö [Visitor]
Welcome Adam!
In response to: Time to Lock the Doors again...
karen [Member]
I was going to plant a second run - but I'm bloody glad I didn't now. We've got a few plants that have just started producing now as they were under the locust proofing shadecloth for a while - so they are behind. Either way I suspect we won't be craving them for a while.
In response to: Time to Lock the Doors again...
Karen M [Visitor]
Good work! Mine is slowly dwindling now. But I got a very early start this season. I best get some more in before it's too late I think.
In response to: Hanging Around
karen [Member]
I don't think they'll do much with the ducks... too high off the ground (vbeg)
In response to: Hanging Around
Evan [Visitor]
At least they'll help with the mosquitoes. *Ducks*
In response to: On badly behaved crawlers
Thomas [Visitor]
The exact same problem. Their entire range 94.28.34.192/26 has been blocked from all of my servers. Leeches!
In response to: Christmas Turkey Shopping my way and gardening
karen [Member]
The only problem with the new coffee machine is that the grounds are really sloppy - but we have been using them as well :) Makes for a very interesting smell when you first put them out.....
In response to: Christmas Turkey Shopping my way and gardening
Evan [Visitor]
You might want to try chucking the grounds from the coffee machine on the garden beds. That's suppose to keep the snails away too.
Sounds like you've been having fun.
Sounds like you've been having fun.
In response to: Christmas Turkey Shopping my way and gardening
karen [Member]
I have been watching your videos and stuff and you do seem to be a long way ahead of us - would your season keep going?
I plant rocket all year here - it doesn't like the really bad frosts so I just chuck frost cloth over it on the nights where it's going to be bad - but it survives better than most other salad veg in the winter. Out in the open anyway - the hot house can normally keep going over winter.
I love compost tomatoes - sounds like a real bonus. And you never know what they are...
One of the feral toms this year is the little yellow grape tomatoes - my favourite grazing food :)
I plant rocket all year here - it doesn't like the really bad frosts so I just chuck frost cloth over it on the nights where it's going to be bad - but it survives better than most other salad veg in the winter. Out in the open anyway - the hot house can normally keep going over winter.
I love compost tomatoes - sounds like a real bonus. And you never know what they are...
One of the feral toms this year is the little yellow grape tomatoes - my favourite grazing food :)
In response to: Christmas Turkey Shopping my way and gardening
Karen M [Visitor]
Wow everything looks really good. Never heard of shell grit for snails... Adds to brain bank...
I got started really early this year and some things I think are nearly done already. The crappy weather hasn't seen me outside much lately so it's all gone a bit feral. I haven't planted anything new lately either.. I really must do more rocket before it's too late. I have enough free compost tomatoes to sink a ship, i hope they all produce.
Good to have an update from you.. Thanks!
I got started really early this year and some things I think are nearly done already. The crappy weather hasn't seen me outside much lately so it's all gone a bit feral. I haven't planted anything new lately either.. I really must do more rocket before it's too late. I have enough free compost tomatoes to sink a ship, i hope they all produce.
Good to have an update from you.. Thanks!
In response to: Limping Ducks and Naked Alpacas
Sulari Gentill [Visitor]
Hi Karen
Heartened to know the lame ducks of this world are well defended!!
Cheers
Sulari
Heartened to know the lame ducks of this world are well defended!!
Cheers
Sulari
In response to: Limping Ducks and Naked Alpacas
karen [Member]
LOL - you have reminded me about dogs and bandages Jane - our German Shepherd boy had to have his leg heavily bandaged after an operation on his elbow as a puppy and they used a bright pink bandage. We often wondered whether it was the faulty elbow or the bandages that meant he never ever did learn how to cock his leg (or just that the female shepherd house trained him for us :) :) )
In response to: Limping Ducks and Naked Alpacas
Jane Burfield [Visitor]
I felt like i was there, strapping duck legs. When our late dog had to have her leg wrapped, my daughter Miranda used multi colours of pet wrap to make a fashion statement, and our dog loved it !
In response to: Climate change and feeling helpless
karen [Member]
I've managed to cut off some of the flow into the chook yard and get some drainage out the other side so it's still a part bog / part lake - but not quite as bad as it was.
But the wind has come up now and they are talking possible destructive - but you wouldn't bloody credit it - I'm up to my ankles in water and the bloody sun's just come out!
Weather bureau is talking possible thunderstorms - wouldn't be surprised it's 15 degrees outside and with that sun out - sheesh.
That big redgum in the soak - is now in the middle of a large fast running stream! I've got some photos - should have taken the video camera though - might try and get down there after a shower and a coffee.
But the wind has come up now and they are talking possible destructive - but you wouldn't bloody credit it - I'm up to my ankles in water and the bloody sun's just come out!
Weather bureau is talking possible thunderstorms - wouldn't be surprised it's 15 degrees outside and with that sun out - sheesh.
That big redgum in the soak - is now in the middle of a large fast running stream! I've got some photos - should have taken the video camera though - might try and get down there after a shower and a coffee.
In response to: I WANT A PONY!!!!!!!!!!!!
karen [Member]
My sister was very much the horsey person in our family - I could dodge horse events and chores for the Universe in those days... It's amazing the difference when you want to do something as opposed to "have" to do something....
In response to: I WANT A PONY!!!!!!!!!!!!
Evan [Visitor]
Get a pony! (and I'll be sending my daughter to your place next school holidays! Win-Win!)
I visited this coffee shop in Brunswick once, that was selling these tshirts that had, "I Still Want the Pony" written on them - which I though was very cute.
I visited this coffee shop in Brunswick once, that was selling these tshirts that had, "I Still Want the Pony" written on them - which I though was very cute.
In response to: I WANT A PONY!!!!!!!!!!!!
karen [Member]
Yeah
But
If I had a pony
I could maybe get out more
In a jinker cart
Like the pony and cart that a lovely old man rides around Avoca in - seems like a very civilised way of going to the pub to me.....
But
If I had a pony
I could maybe get out more
In a jinker cart
Like the pony and cart that a lovely old man rides around Avoca in - seems like a very civilised way of going to the pub to me.....
In response to: I WANT A PONY!!!!!!!!!!!!
Rose M [Visitor]
Oh honey, you do need to get out more LOL. What a fun story :D
