The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
cmd /v:on /c "set TITLE=Programming Thread & echo !TITLE!"
Since he has kids, maybe he's forming the new Partridge Family. Driving from town to town in a psychedelic bus, singing family-friendly pop folk music, etc.
So yeah, this guy contacted me through my blog with some questions, which isn't new, but 40 emails later and he's still asking... I don't want to be a dick, but I think I'm going to tell him I'm sending him an invoice.
jackfaces
"If you're going to play tiddly winks, play it with man hole covers."
- John McCallum
So yeah, this guy contacted me through my blog with some questions, which isn't new, but 40 emails later and he's still asking... I don't want to be a dick, but I think I'm going to tell him I'm sending him an invoice.
I'm looking at the link in your sig, and ... would I be correct in assuming that that is not your blog?
Monkey Ball WarriorA collection of mediocre hatsSeattle, WARegistered Userregular
edited September 2012
Running around cleaning up "deprecated conversion from const char* to char*" warnings.
No I'm not just casting it and calling it good, most of them have been solved by fixing a function signature or a declaration...
And most of them would never have happened they had been using std::string for most of this
Still this is the first time they've set me loose on the code, so I'm feeling useful, though a bit worried I'm going to break it in some what I can't even imagine yet.
Monkey Ball Warrior on
"I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
So yeah, this guy contacted me through my blog with some questions, which isn't new, but 40 emails later and he's still asking... I don't want to be a dick, but I think I'm going to tell him I'm sending him an invoice.
I'm looking at the link in your sig, and ... would I be correct in assuming that that is not your blog?
Or is there a hilarious story in there? =P
haha, no. the root of that link goes to my blog. I think I've been pretty cool, but yeah
jackfaces
"If you're going to play tiddly winks, play it with man hole covers."
- John McCallum
Oh god, why with all the APIs out there is someone using ARC? I fucking HATE ARC. I had to do a project with ARCEngine and it was the biggest catastrophe. It was so bad that I reverse engineered all of things we needed from it and completely scrubbed ARC from my code.
Given, I have no idea what's going on here, I just clicked the link Bowen posted....but....Fuck ARC.
Yeah, he took one of my samples and is trying to use it in a way I told him I didn't intend it to be used, but he was free to hack at it. The ArcGIS JSAPI is more large scale friendly flexible the kind of work I do. Other mapping APIs are better suited for small projects, like leaflet, osm or even MapQuest. Although I have been getting more friendly with leaflet, ArcGIS pays the bills.
jackfaces
"If you're going to play tiddly winks, play it with man hole covers."
- John McCallum
I got tired of CodeIgniter's standard convention for views, so I took some time to split it up into layouts and partials. Layouts are the basic HTML structure, partials are the various components that go into the layout (menu, sidebar etc).
Used to be this to load a view in the controller:
public function index()
{
$data['user'] = $this->user_model->get_user();
$data['title'] = 'Showing users';
$this->load->view('templates/header', $data);
$this->load->view('user/index', $data);
$this->load->view('templates/footer');
}
Three separate load->view() to load three separate components. That doesn't belong in the controller at all. Now I do this instead:
public function index()
{
$this->data['user'] = $this->user_model->get_user();
$this->data['title'] = 'Showing users';
$this->data['subview'] = 'user/index';
$this->load->view('layouts/default', $this->data);
}
I define a subview (I made $data an instance variable so I can set a default subview for the controller in the constructor), and I only have one single load->view() that loads a layout, which in turn loads various partials (header, footer for now), and the subview that is the partial view for the main content of the page.
Echo on
0
ASimPersonCold...... and hard.Registered Userregular
Can anyone recommend me a book describing various algorithms? I realized I don't actually have a 'generic' one and given that I am self-taught I might have some significant holes in my knowledge.
Grey Paladin on
"All men dream, but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity; but the dreamers of the day are dangerous men, for they may act their dream with open eyes to make it possible." - T.E. Lawrence
0
GrobianWhat's on sale?Pliers!Registered Userregular
Can anyone recommend me a book describing various algorithms? I realized I don't actually have a 'generic' one and given that I am self-taught I might have some significant holes in my knowledge.
The algorithm bible seems obvious, but it's more of a reference than a book to read in full. It's also ~$200.
I already have a pair of $200 tomes on AI and database systems, so I am not terribly shocked. Thanks.
"All men dream, but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity; but the dreamers of the day are dangerous men, for they may act their dream with open eyes to make it possible." - T.E. Lawrence
0
TavIrish Minister for DefenceRegistered Userregular
I took some third year classes last year and because of the way my schedule worked out, I have no programming at all this year.
I've been running that new font for a few days. I think I like it. Went from 12pt Menlo to 13pt Source Code Pro, it's smaller with an increased line height.
I already have a pair of $200 tomes on AI and database systems, so I am not terribly shocked. Thanks.
I love TaoCP, but it's worth mentioning that it is a reference with potentially limited breadth even now. I've frequently been looking for graph algorithms, though, so that contributes. CLRS may be worth investigating – it may be titled Introduction to Algorithms, but that doesn't mean it's a poor reference. Vazirani's text is freely available, and I recall some good things in Kleinberg & Tardos, but I've not delved particularly deeply into that one.
So is anybody going to VisWeek or SuperComputing this year?
I know that we have programmers from all areas, so what do people consider to be the must go to conferences? Or are you a firm believer that it is a complete waste of time.
I don't get to go to conferences. They take time and cost money. I may try to get my current employer to pay for me to attend a local one that is coming up in a couple months, though.
I wish I could figure out which factors in the combination of Aptana, Ubuntu, and VirtualBox make my dev environment a piece of shit where Aptana randomly just loses the project on occasion. I'll close Aptana with no errors, shut down the vm with no errors, then start up the vm and open aptana and all of my open tabs are just blank and nothing is in the package explorer and I have to go re-set a bunch of shit up.
Yeah, Aptana is a stripped down Eclipse + PyDev. I've used Eclipse a ton for Java in the past and never had any issues with it, but was always reading about people having issues. I had similar weird issues with some other big java based ide for python that I can't think of right now where the project file for that ide would just randomly get corrupted when I shut down, which makes me think it's actually something to do with the vm setup or this computer itself having some sort of weird ass issue.
I already have a pair of $200 tomes on AI and database systems, so I am not terribly shocked. Thanks.
I love TaoCP, but it's worth mentioning that it is a reference with potentially limited breadth even now. I've frequently been looking for graph algorithms, though, so that contributes. CLRS may be worth investigating – it may be titled Introduction to Algorithms, but that doesn't mean it's a poor reference. Vazirani's text is freely available, and I recall some good things in Kleinberg & Tardos, but I've not delved particularly deeply into that one.
Thank you. I'll give these a look.
"All men dream, but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity; but the dreamers of the day are dangerous men, for they may act their dream with open eyes to make it possible." - T.E. Lawrence
0
GnomeTankWhat the what?Portland, OregonRegistered Userregular
Running around cleaning up "deprecated conversion from const char* to char*" warnings.
No I'm not just casting it and calling it good, most of them have been solved by fixing a function signature or a declaration...
And most of them would never have happened they had been using std::string for most of this
Still this is the first time they've set me loose on the code, so I'm feeling useful, though a bit worried I'm going to break it in some what I can't even imagine yet.
Don't lie, you just went and changed them all to const_cast to shut it up.
Running around cleaning up "deprecated conversion from const char* to char*" warnings.
No I'm not just casting it and calling it good, most of them have been solved by fixing a function signature or a declaration...
And most of them would never have happened they had been using std::string for most of this
Still this is the first time they've set me loose on the code, so I'm feeling useful, though a bit worried I'm going to break it in some what I can't even imagine yet.
Don't lie, you just went and changed them all to const_cast to shut it up.
Probably 1/4th of the time I actually did, though I'm going back through the diffs and making sure every time I did, it was somewhere the code interacts with either the Postgres stuff or the Perl stuff, neither of which seems to understand that "char *" is bad.
I even used a "reinterpret_cast" once just because someone on the internet said not to use the normal "(foo) bar" cast in c++.
"I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
Posts
Because that's the only thing that justifies such a stupid story.
"If you're going to play tiddly winks, play it with man hole covers."
- John McCallum
I'm looking at the link in your sig, and ... would I be correct in assuming that that is not your blog?
Or is there a hilarious story in there? =P
No I'm not just casting it and calling it good, most of them have been solved by fixing a function signature or a declaration...
And most of them would never have happened they had been using std::string for most of this
Still this is the first time they've set me loose on the code, so I'm feeling useful, though a bit worried I'm going to break it in some what I can't even imagine yet.
haha, no. the root of that link goes to my blog. I think I've been pretty cool, but yeah
"If you're going to play tiddly winks, play it with man hole covers."
- John McCallum
http://odoe.net/blog/
Given, I have no idea what's going on here, I just clicked the link Bowen posted....but....Fuck ARC.
... So I wrote my own.
"If you're going to play tiddly winks, play it with man hole covers."
- John McCallum
Used to be this to load a view in the controller:
Three separate load->view() to load three separate components. That doesn't belong in the controller at all. Now I do this instead:
I define a subview (I made $data an instance variable so I can set a default subview for the controller in the constructor), and I only have one single load->view() that loads a layout, which in turn loads various partials (header, footer for now), and the subview that is the partial view for the main content of the page.
Anyone tried it?
I still use Courier on Linux :rotate:
The algorithm bible seems obvious, but it's more of a reference than a book to read in full. It's also ~$200.
:rotate:
I love TaoCP, but it's worth mentioning that it is a reference with potentially limited breadth even now. I've frequently been looking for graph algorithms, though, so that contributes. CLRS may be worth investigating – it may be titled Introduction to Algorithms, but that doesn't mean it's a poor reference. Vazirani's text is freely available, and I recall some good things in Kleinberg & Tardos, but I've not delved particularly deeply into that one.
I know that we have programmers from all areas, so what do people consider to be the must go to conferences? Or are you a firm believer that it is a complete waste of time.
Don't lie, you just went and changed them all to const_cast to shut it up.
Probably 1/4th of the time I actually did, though I'm going back through the diffs and making sure every time I did, it was somewhere the code interacts with either the Postgres stuff or the Perl stuff, neither of which seems to understand that "char *" is bad.
I even used a "reinterpret_cast" once just because someone on the internet said not to use the normal "(foo) bar" cast in c++.