Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

09-05-2013 , 06:45 PM
vote_type seems like the kind of thing that should be numeric if you want to do these kinds of comparisons efficiently, especially if you know the number of possible values is constrained and you don't need it to be changed by the user. Even if you do, it's better to have a vote_types table with a numeric ID

what do you return when the two highest vote_type's are not within 1?

You can do something like

SELECT vent_id, count(vent_id) FROM votes GROUP BY vent_id, vote_type ORDER BY count(vent_id) and it will give you an ordered list of the vent_id/count(vote_type) combos, where the combo with the highest count(vote_type) for any vent_id will be first.

If you want to restrict it to a particular vent_id just add a WHERE vent_id=N

Then you can just have the code compare the first couple rows (edit: and even use a LIMIT 2 if you want), which I think will turn out to be easier than doing all the logic in one query, although I think it's doable with a self-join and a CASE WHEN, or subqueries

Last edited by well named; 09-05-2013 at 06:51 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2013 , 07:06 PM
Quote:
Originally Posted by well named
vote_type seems like the kind of thing that should be numeric if you want to do these kinds of comparisons efficiently, especially if you know the number of possible values is constrained and you don't need it to be changed by the user. Even if you do, it's better to have a vote_types table with a numeric ID

what do you return when the two highest vote_type's are not within 1?

You can do something like

SELECT vent_id, count(vent_id) FROM votes GROUP BY vent_id, vote_type ORDER BY count(vent_id) and it will give you an ordered list of the vent_id/count(vote_type) combos, where the combo with the highest count(vote_type) for any vent_id will be first.

If you want to restrict it to a particular vent_id just add a WHERE vent_id=N

Then you can just have the code compare the first couple rows (edit: and even use a LIMIT 2 if you want), which I think will turn out to be easier than doing all the logic in one query, although I think it's doable with a self-join and a CASE WHEN, or subqueries
Cheers. I agree with the vote types being numeric, but I didn't set them up that way at the time and I'm getting a bit too close to launching to bother right now.

I want to return all the vents that meet the equal or less than 1 criteria. So if there are none, return nothing. It just serves as one of 4-5 filters a user can apply.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2013 , 08:38 PM
Quote:
Originally Posted by daveT
Gimp is terrible.
you shut your whore mouth!

Last edited by tyler_cracker; 09-05-2013 at 08:39 PM. Reason: ok yes it's terrible but nothing that costs <$adobe is even in the same sport, and gimp's pricepoint is pretty compelling!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2013 , 10:31 PM
I meant to write count(vote_type) I'm pretty sure. in both the select list and the order by. I mean I'm not double checking right now but reading it back I'm fairly sure that's what I meant :P

oh yeah I even used count(vote_type) later on. Herp de derp
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2013 , 10:39 PM
Gimp is great for many things. The most obvious is if you are looking to learn how to use a photo-editing program. It is also great if you are a poor schmuck like me who can't afford anything better. If you are a professional or are working in an environment where you are making money from photos and images, the price of PS will pay for itself in less than a month. Yes, I am asserting that Gimp is so bad for real world work that it slows you down by hours. Hell, I've experienced it multiple times myself, where a 20 minute job in PS would take several hours in Gimp (and still not up to professional quality), mostly because the fuzzy select is broken beyond practical use and pixel-zooming is less than satisfactory.

Of course, there is the plug-in ecosystem that is Adobe-only, in particular Pantone, and I agree that it is a terrible thing for openess. However, I don't think that Gimp has ever stated that it was meant to be a PS replacement, and no one has ever stepped up to the plate to take down that behemoth.

Other short-comings with Gimp include the paltry text-manipulation, no CMYK, no "smart objects" (no usable vector-conversions), etc.

With all that said, I still use Gimp because I'm cheap and I really don't enjoy working with image-manipulation software, so I have no desire to get much better than I am. I've learned that it is very good to make sure that, if you are creating images for a website, to opt strictly for pages that have a white background color.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2013 , 10:57 PM
Quote:
Originally Posted by Larry Legend
I was obviously trolling with the whole incompetent thing. The reality is it is unfortunate that they were expecting this to be some type of out of the box super business solution for all of their sales and support needs. Businesses are unique and when it comes to large scale applications, often times, the more complex of a solution the more it is going to be a pain in the ass to get to work the way you want it. That really is so often true, the more things that software does, the more things it now is not doing exactly how you want. You either need to piece together a bunch of point solutions and integrate them in a way that more or less works, or pick the best all-in-one available to you.
Admittedly, you are a very good troll. I was about 80% convinced.

Yes, this is sort of what I told my bosses, and I of course, played the idiot and said I had no idea how to do anything of this sort. For the official record, I believe I could do it, but not getting paid enough.

Quote:
The reason salesforce is awesome for sophisticated companies (from a resource perspective) is because it has the potential to be a super customized all-in-one solution. The force.com platform is infinitely flexible, and if you have the right budget and talk to the right people, you can change literally anything to suit your business needs. There is no other CRM that comes anywhere close to that level of performance and flexibility.
I don't fault you for liking it. Certainly, "flexibility" is a great thing. I've talked to more than one CRM/ ERP/ [Solution] sales person in my life who trumped up the the customization angle. I asked one, who was irritating me to no end, to clarify, because I have poor comprehension skills, and I thought he said something about this costing more money than my company earns in a year.


Quote:
Originally Posted by well named
fwiw, In my experience this usually represents a disconnect between the developers and the marketing people more than anything else. It wasn't product development that came up with the tagline. All larry is saying is that anyone with a half a technical clue or any experience realizes that the marketing speak is like 5 layers removed from reality. Integrating business software is hard
Marketing people? No, it is the CEO giving the OK to present themselves this way. It is the entire company operating on this assumption, and the entire sales and CSR operating as if this is true. Basically, you have a group of people from the top to the bottom telling lies who know damn well they are telling lies to the customer to get them to call their silly 800 number, only to bait-and-switch them after SF swallows up all the license fees and the customer says, "but I want..."

That is why they are playing coy with us. We haven't got the consistency ball rolling in their favor yet, so of course they are going to act the mum and wait it out.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2013 , 11:03 PM
Careful Dave, SF is turning you into Lirva...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2013 , 11:25 PM
Yeah, I'll lay off that sauce for a while then.

I wanted to share a Rich Hickey talk. I think he encapsulates everything I felt was wrong about the music - programming worry-dream article that I debated with gaming_mouse.

http://www.infoq.com/presentations/D...on-Performance

Hope you enjoy it (and hate it, too. I don't care).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 01:48 AM
i agree that if you are even a little bit srs bzns, you should go directly to photoshop without passing go. i just need the occasional layer+mask for an hilarious meme image; gimp gets me from point a to point lol.

Last edited by tyler_cracker; 09-06-2013 at 01:48 AM. Reason: /me cue kerowo
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 03:04 AM
My #1 complaint about Gimp is that half the people that use it mispronounce the name.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 03:11 AM
GIMP is awesome.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 06:52 AM
Quote:
Originally Posted by kerowo
Careful Dave, SF is turning you into Lir.va...
Always add a dot.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 08:02 AM
Quote:
Originally Posted by tyler_cracker
i agree that if you are even a little bit srs bzns, you should go directly to photoshop without passing go. i just need the occasional layer+mask for an hilarious meme image; gimp gets me from point a to point lol.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 08:40 AM
I wonder how gimp compares to: http://pixlr.com

I've always used pixlr for light weight editing that's a bit beyond what irfanview can do.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 10:25 AM
Quote:
Originally Posted by kerowo
Careful Dave, SF is turning you into Lirva...
Quote:
Originally Posted by LirvA
GIMP is awesome.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 03:47 PM
dave don't argue. Everyone knows SF is crap, our ERP will be better.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 04:40 PM
Quote:
GIMP is awesome.
As is Inkscape
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 04:44 PM
Quote:
Originally Posted by clowntable
dave don't argue. Everyone knows SF is crap, our ERP will be better.
Looking forward to the demo on Monday...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 04:46 PM
Work on this on my side won't start before April next year (possibly later depending on PhD).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 05:31 PM
Pulling in data to a website from a public google doc csv cannot be good...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 07:01 PM
Quote:
Originally Posted by Grue
Pulling in data to a website from a public google doc csv cannot be good...
Moar storie pleeze!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 10:02 PM
Not much to say, the data for this client's wordpress site tabular data comes from a direct php link to the google drive csv that anyone can edit. I guess its secure if you don't know the link? Maybe?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 10:10 PM
If you go to google's web search and add a site:docs.google.com/spreadsheet to your search it seems to find public files. I think you could modify that for various file types that google drive handles

so it's probably not impossible for someone to figure out the URL if they wanted
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 10:17 PM
Michael, if you read this, its probably not worth commenting on threads that haven't been updated in 5 months.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-06-2013 , 10:25 PM
Quote:
Originally Posted by jjshabado
Michael, if you read this, its probably not worth commenting on threads that haven't been updated in 5 months.
bump
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m