Jump to content

proggR

Members
  • Posts

    431
  • Joined

  • Last visited

    Never

Posts posted by proggR

  1. I have never used LDAP in my life and now I'm trying to figure out a query for a project at work. I was hoping someone here had more experience. Also please forgive any misused terms since I'm pretty much clueless.

     

    We have course entries and student entries. I was originally hoping to query the students and use isMemeberOf to determine if they're a member of a course. Evidently, isMemberOf is not indexed so I can't search like that. So now I have to query the courses and use uniqueMember to have it return the entire student list for the course. The problem is I would then have to requery each student individually to get the Pkey of the student since that's not present in the information represented by uniqueMember. I was wondering if there was any way to have it return information about each uniqueStudent along with the results so I don't have to do this extra step.

     

    I'm sure you would need more information to give me a straight answer and in all likelyhood its probably something I don't know. Any help or direction would be greatly appreciated.

     

    Thanks in advance. 

  2. Bill Gates + Steve Jobs + Mark Zuckerberg = Shrewd business men

     

    (with a distinct lack of basic human morality)

     

    Business is no place for morals. :P

     

    I think that programmers can become famous amongst programmers but it takes a special kind to break out into the general public as noteworthy. Linus Torvalds is the only one that I think non-programmers/geeks would know and even then its far from common knowledge. No doubt in the future when people are studying the early years of computers his name will be in the textbook as a person who changed them.

     

    This thread makes me realize that I need to learn who more coders are. I know of the first list from this thread and Michael Lopp and I only know of him through his comics and blog. I apparently underappreciate my own field.

  3. Any other features people feel are required in a framework?

    MVC.

     

    I use my own framework. Any bits of code I write that may be useful I add into it such as caching, WURFL, mod-rewrite, Sphinx, the list goes on....

     

    Caching is something that I haven't even considered. Thanks for that. Also mail just came to mind.

  4. Zend, Symfony & Rails have really been the only three I've spent much time with and in the end, I'm rolling my own.

     

    This is actually why I was asking. I was talking to friend recently who's learning Cake and a lot of the things he liked about it the "framework" I've written does already so I've been considering taking the core of it out of my application, abstracting it a bit and releasing it as a barebones framework but since I haven't spent much time with existing frameworks I'm positive there are elements missing that I haven't thought of because I haven't come across them yet.

     

    It would definitely need some recoding to abstract it but it would work. I feel pretty much the same from what you've written although you have infinitely more experience on the subject than me.

     

    Any other features people feel are required in a framework?

  5. I use Netbeans. I have never really been a fan of Eclipse and after using IBM RAD for server side Java development I can't even look at the interface without cringing. Eclipse is decent enough but throwing RAD on top of it turns it into this monstrous program that made me hate every second of looking at it. WebSphere didn't help.

  6. What do you look for in a framework?

    A frame

     

    For you to work?? :P

     

    Zend offers more configuration over convention than many of the other frameworks so I'm not sure how you would find that limiting. If anything, you will likely find other frameworks more limiting in the way things are done.

     

    I didn't look too far into it. There were things I liked but I didn't like having my folders structured the way they required (or at least in the tutorials I looked at). Particularly was the way views were handled. Again, I didn't look too far into it but I've made a fairly adaptable templating system that I like to use and trying to fit it into the ZF way of handling views doesn't work well from what I saw of it.

     

    I didn't mean to have this turn into a thread convincing me that ZF is a good framework. I'm sure it is. I was just trying to find out what people that are more familiar with PHP frameworks than I am thought were minimum requirements of a framework. Worded differently, what does ZF do that makes it a good framework that all frameworks should do?

     

  7. I like the idea of being able to add or remove desired features, if that's what you'd call them. I find most that I've looked at do more than I want, though I haven't looked too deep into any one framework really. I'll take a look at Symphony.

     

    Any other things that a framework would have to do in order for you to use it? What basic needs would have to be met?

  8. Ya I wish that's what I paid. At my current apartment I pay $1.75 for each. In the apartment I'm moving to at the end of the month its $2 wash and $1.50 dry which is technically the same amount except that my dark load is usually too big to put in one dryer (they come out soaked still) so I split them up so the new prices will actually save me money in the end.

     

    If I had a large bathroom I'd definitely buy an apartment sized washer.

  9. I've looked at a few frameworks and started to play around with Zend for a bit but found it limiting in the way it structures things (which could be due to my lack of understanding of it or my unusual way of building a project). So for me I want a framework that can fit the way I code but still take care of the essentials. What have you found with using/reading about frameworks that you find is a requirement? What are core functions it should handle?

  10. I have a query that returns only distinct records based on a number of columns in my table that I'm using for reporting. The only catch is that I also need to know the number of times each of these records occured that were ignored by using distinct. The table in question is a statistics table and I'm creating a report to display these statistics. I could leave out distinct and loop through the results checking if the record has been accounted for already and sum up each instance of its occurrence but I'm sure there's a way to do it with a single MySQL query.

    The following query gives me each interaction with a specific community by a specific user as well as the type of interaction. The other information I need is the number of times this type of interaction occurred per community entity.

     

    SELECT DISTINCT proxy_id, module, action_field, action_value, action FROM statistics WHERE module LIKE 'community:2:%' AND proxy_id = 1;

     

    I'm sure the answer is simpler than I am making it out to be but I haven't found any way to do it yet.

     

    Thanks in advance for your help.

     

  11. Anyone heard of/used Opa yet? http://opalang.org/

     

    Looks interesting. I may give it a try but I have some things on the go so it'll be a while before I get a chance to. Was hoping someone here may have already/could see any pros and cons to it.

    I think its interesting that it has an embedded db but I don't know how that would translate in terms of performance/ease of use. I haven't looked much into it but I figured I'd share.

  12. I know the possibilities are staggering and unfortunately I don't know how they got in. I know they had open connections to an IRC server but I don't know how they got code running on my server in the first place. I'm going to redo all my validation and read anything I can in the meantime on secure server configurations.

     

    I'm working on a new project that I really don't want to have any downtime on and will probably pay someone to test my server to try to remove most vulnerabilities. I'm sure a server is never 100% safe but I want that one to be as close as I can get it.

  13. My server was hacked a while ago and I'm still in the interim of setting up/configuring a new server (they're VPS so I just deleted and recreated it). I'm wondering where would be a good place to start with securing it when I set it back up. I'm going to start by disabling all ports except 80 and 22 (I stupidly didn't even think to block ports before) but aside from that I don't really know what else would be a good idea. How do I test my own code for vulnerabilities? How do I test my system? Security has always been one of my weaker points of knowledge so I'm not sure the best route to take.

     

    Any help/direction would be much appreciated. Thanks in advance.

  14. I wouldn't likely do it this way given the option. It's part of a larger project and rather than having a separate table for statistics related just to communities the goal is to keep just the one table that works across the board. It was suggested to use the colon as a delimiter which has been working well for selecting up until now. The problem is that I need to select JUST the community ids from within the string. It seems possible with some  messy combination of SUBSTRING_INDEX calls to trim of everything to the left and right of the community id but that would need to be nested in some way that I'd rather not have to figure out if I don't have to.

  15. In a statistics table I'm working with there is a row called module. Its been slightly repurposed for the use of communities. Usually it would just contain one piece of information but in the communities it contains 3: the first specifies that it is a community, the second is the community id, the third is the module within the community that was accessed. These are all delimited by colons. Ex:

    communities:2:galleries
    communities:2:discussions
    

     

    The goal is to grab only the community ids that haven't been accessed in the past month. The problem is that I can't think of anyway to get just the id from that string without splitting it with PHP which won't work for what I need. The pseudocode for what I need to do is below.

    SELECT <community_id> FROM statistics WHERE timestamp < 6 months ago AND <community_id> NOT IN (SELECT <community_id> FROM statistics WHERE timestamp > 6 months ago)
    

     

    Is there anyway to split on a character in MySQL? I know how many characters will be before the community id, "communities:", but there's no way to know how long the id will be so SUBSTRING wouldn't really work.

     

    Thanks in advance for any help.

     

  16. This sounds like a very newbie question I know but is there any real reason to prefer getter/setter accessor methods in situations when all they do is get and set the values of variables? It seems to me thats adding a function call when its not necessary.

    I understand the point of having some variables inaccessible to outside classes or even only allowing access to things that extend your class. I can also see when you may want to only allow one or the other method of access to a variable. But is there any benefit when you're allowing both via the accessor methods anyway?

     

    Maybe I'm just thinking out loud when I'm tired but I figured someone here may know.

     

    Thanks in advance.

  17. I had always heard people say to use a form token and didn't know how to do it and for some reason never looked it up. I always assumed it would be more complicated but that is actually the easiest thing I've ever seen. I wasted so much time comparing the data being posted to existing data to check for a double submit that way. Thanks for the link KingPhillip.

     

    Being lazy is hard work.

  18. And on that note, has anyone tried Hype yet? I've been thinking about buying it but don't know if I want to spend $30. Worth it?

    http://tumultco.com/hype/

    share your emotions if you do try it soon please :) was thinking about purchasing it as well...

     

    I did end up purchasing it. I haven't really had too much time to play with it (~10 minutes) but so far so good. I was just using it to make a simple slideshow type thing for a friend and its much easier to use for that than Power Point ever was which is a good sign. I haven't had a chance to get into anything fancy but I'll make a thread once I do. It definitely seems like the start of something big and exactly what HTML5 needs to be adopted faster.

     

    One thing I intend to look at is the quality of code it spits out at the end. I really hope its not like Frontpage... ugh

  19. I'm just wondering if there is a function like array_key_exists that could take an array as the search parameter and check that all keys exist. It would be easy enough to code if I need to but I was hoping it would already exist. All wanted to use it for is a really quick form check to make sure that all the expected values were POSTed before I actually start filtering and validating individual fields.

     

    Thanks in advance for any recommendations

  20. I usually find the same problem with freelancing sites but have honestly been impressed with the way oDesk handles everything so you may want to look into that for future jobs as well (after looking here of course :P). For fixed rate jobs if the work isn't completed as agreed you don't pay (which could be potentially bad for coders if the employer decided to be a dick but is good for instances when you may have hired a bad choice) but while working on the hourly paid jobs the coders must keep the oDesk app open which takes screenshots every few minutes. If there is a block of time they aren't working you don't pay them for that block of time, the rest you do.

    They also offer tests that people can do that cover a variety of subjects so you can look for coders that have passed these tests and have a general idea what to expect from them.

    Just thought I'd point them out in case you hadn't seen them yet.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.