Jump to content

shortysbest

Members
  • Posts

    414
  • Joined

  • Last visited

Everything posted by shortysbest

  1. And thankfully, you can avoid people who would hire them by having reasonable market rates. HTML/CSS, $20-30 is a fair rate. For PHP/MySQL, it can easily go up to 40-60. How long have you been doing it professionally? I started at 15, then each year went up by 5 or 10, until I found a good market to work in and jumped from 60 to 100 for freelance. (I also don't particularly want a lot of freelance work, only projects I really want to do, so $100/hr is a good way to weed out projects.) Well I have been doing this sort of work since I was about 16, between 16 and 17 I mostly did just basic HTML and CSS, then when I was about 17 I began PHP, MySQL, and a lot of javascript/jQuery. Since then I have done a lot of work with javascript/jQuery as I have been doing a great amount of work with ajax content loaded websites, the real source of my knowledge has been my social networking website that I started working on when I was about 17, which is the main source of my current skill level (which I believe to be quite high given my age and relatively short period of time doing this (I am 19, well just about 20 now)) I have done a few professional websites, and I have done a bit more freelance.
  2. Hello, I am relatively new to doing professional website work, and I am trying to figure out how much I should generally charge for work? I feel like I am quite good at what I do, and could charge quite a lot, but how much is too much or too little? I am good in HTML, CSS, PHP, MySQL, JavaScript/jQuery, and node.js/socket.IO. I have generally charged about $20/hour for local work that I do for people that I know, however now I am getting into more business. On average what should I charge an hour to do this work? Also taking in consideration that I feel like I can get work done a lot quicker than most people (as far as I have seen), so perhaps I should take that into account? Would something like $40-$60/hour be a reasonable rate? I also have a question about what I should charge to do this work below: I do freelance work for a company, and this particular project they have for me is a very basic and simple one. A pre-designed 7 page html website that includes some javascript/jquery, but mostly just html/css. How much would you charge for something like this? And what about a basic html/css pre-designed E-mail job?
  3. Thanks for you time and suggestion, but my client doesn't really want to go in this direction as far as image modification like so. I was more looking for design/layout help.
  4. I am currently working on a website for a client. She is an artist and is going to be renting out studio spaces on the water, as well as an apartment for artists to come and visit and do their work. There will be workshops and other types of things going on as well. I have got a couple pages put together, but the homepage is what I really need to get underway. I am not the best with homepages no matter the project. Basically she would like to have an image of the ocean and land in front of the studio space to take up a good portion of the homepage, and she would also like to have a small description about what it is she is trying to do and everything. Any help would be greatly appreciated (perhaps you would sketch it up or something) as well as any feedback on the rest of the site if you wish. Link: http://www.kithell.com/test/sandy_v2
  5. The way my friends table is it has one row for each friendship, there is no specific column for a user, it just depends on who adds who. So this just takes and whenever one row matches the users id, it sets the friend id as the other column.
  6. I'm having trouble getting this to work: SELECT * FROM usersActivity (JOIN friends ON usersActivity.userID=friendID CASE WHEN friends.userID=$session THEN friends.userID2 ELSE friends.userID END AS friendID WHERE (friends.userID=friendID AND friends.userID2=$session) OR (friends.userID=$session AND friends.userID2=friendID) ) WHERE usersActivity.setActivity!=3 AND usersActivity.userID!=$session ORDER BY usersActivity.setActivity ASC I want to return who's online, based on who you're friends with. Currently I have to do this to get it to do what I want: $onlineUsers = mysql_query(" SELECT * FROM usersActivity WHERE setActivity!=3 AND userID!=$session ORDER BY setActivity ASC "); while($users = mysql_fetch_array($onlineUsers)) { $friendID = $users['userID']; $friend = mysql_fetch_assoc(mysql_query(" SELECT CASE WHEN userID=$session THEN userID2 ELSE userID END AS friendID FROM friends WHERE (userID=$friendID AND userID2=$session) OR (userID=$session AND userID2=$friendID)")); if($friendID==$friend['friendID']) { print $friendID; //userID that is online } }
  7. I've been searching the internet for the last few days and I have not been able to find much for help with learning socket io and everything, I was hoping I could find someone that knew quite a bit about it and have them help me through it, very much appreciated.
  8. I actually fixed the problem, I just had to add another JSON.parse in my receiving code to get to the next level of data. Thank you.
  9. Upon trying more things, I have noticed this: When I have the console with this: console.log(message); it returns: { type: 'utf8', utf8Data: '{"data":{"msg":"hey","userID":881}}' } When I have the console with this: console.log(message.utf8Data); it returns: {"data":{"msg":"hey","userID":881}} Then I have the console with this: console.log(message.utf8Data.data); it returns "undefined"; the same when I add "msg" to the end of the console.log
  10. Thank you, but it still returns the error of 'msg' undefined.
  11. I am using nodejs and websockets, and I am new to this and I am trying to make some tests with it, what I need help with is handling json data (I'm also quite new to json data as well) So what I'm doing is sending json data to my node.js websocket server, the problem I'm having is getting the information out. I log the variable it receives in the console and it shows: { type: 'utf8', utf8Data: '{"data":{"msg":"hey","userID":881}}' } So I need to somehow get the msg data "hey" and the userID data "881" but it doesn't seem to be working, I have however been able to do this on the reverse side, on the client end of the javascript handling. Here's the code I'm trying to make work: ( I have commented through it to show my problem and intentions. connection.on('message', function(message) { console.log(message); // <--- This returns: { type: 'utf8', utf8Data: '{"data":{"msg":"hey","userID":881}}' } //The message variable in the function above is the json, I then are trying to pass the data to a new json object to return to users var obj = { text: message.data.msg, //This should be: "hey" instead i get an error sent to my console: text: message.data.msg, TypeError: Cannot read property 'msg' of undefined id: message.data.userID //This should be "881" }; // broadcast message to all connected clients var json = JSON.stringify({ type:'message', data: obj }); for (var i=0; i < clients.length; i++) { clients[i].sendUTF(json); } Thanks.
  12. Thank you very much, I know nodejs is the way to go for what I want to do, long polling is very ineffecient and would only be a temporary solution anyways. The problem is that I have been trying to figure out how to get nodejs working (installed, and then how to code it) but all of that is very new to me and I have been having troubles even installing it. (well I think it's installed, but idk how to check or anything) I haven't been able to find anyone that knows a lot about nodejs, and you seem like you know exactly how it all works. Do you think it would be at all possible for you to take a bit of your time to help me set everything up and write simple working examples so I know how to use it? That would be very much appreciated as my social networking site is in need of this technology. (I am going to private message)
  13. I am trying to learn how to do comet based things for my website. It's a social network and I want to have as much realtime content as possible, IE. Comments, notifications, chats, etc. I have been looking for hours on google and such for some of these and I cannot find anything, well I found one that seems to work perfectly, yet it's in prototype and I work with jQuery and I cannot figure out how to adapt it to my needs, since I'm not programming with prototype, someone had converted it to jQuery but I couldn't get it to work for me, perhaps someone could help me adjust that? if not maybe someone that knows about this could teach me about it, or point me into the direction to basic level tutorials and such. The prototype one i was referring to earlier is: http://www.zeitoun.net/articles/comet_and_php/start (it's the 2nd example, labeled:Comet with classic AJAX : litte chat demo) (the jquery attempt is in the comments)
  14. I'm using the jQuery Address plugin for Hash URLs for my website as the main navigation system and I am trying to come up with a solution for loading in multiple pages through ajax (Ajax loading is not the problem). Here's what I'm trying to do: $.address.change(function(event) { var hash_value = event.value; //Hash value from the list of URLs before would be everything after "www.site.com/#" so for the first URL the result would be: "/home" // Okay, so this is how my URL looks: // www.site.com/#/home // www.site.com/#/profile/1 // www.site.com/#/profile/1/photos // www.site.com/#/profile/1/photos/album // www.site.com/#/profile/1/photos/album/82920 // etc, those are all of the URLs I will be using, and probably even more. (as far as levels of navigation, values can and will be different) //when the entire website first loads it should load the first level of the URL (home and profile from the URLs above) //since the data that needs to be return is JUST the name of the php file we have to split it to different parts to get different information to use to propogate the page. var uri = hash_value.split("/"); var page = uri[1] ? uri[1] : ''; // returns from the above URLs: "home" or "profile" var user_id = uri[2] ? uri[2] : ''; //returns from the above URLs: "1" var sub_page = uri[3] ? uri[3] : ''; //returns from the above URLs: "photos" //(This is how I'm doing it right now, however I'm sure there is a better way using "for each" or something a little more complex. //Now here's the part I need the most help with. //the first thing this should do is load the first page in the URL, so "home" or "profile" $.ajax({ type: "POST", url: "inc/"+page+".php", data: "id="+user_id, success: function(html){ $("#content").html(html); } }); //Now, after the first page loads, if there's another page in the URL to be loaded it should load, however it should not reload the previous page, entirely as well $.ajax({ type: "POST", url: "inc/sub_pages/"+sub_page+".php", data: "id="+user_id, success: function(html){ $("#sub_content").html(html); } }); //By now you should get the idea of what I'm trying to do });
  15. Ahhh I completely forgot about that, I have used that in the past. Been on break from coding haha, thank you.
  16. I am building a hash navigation system for my website, but this problem is something I find with everything in javascript. For this particular problem what I'm doing is splitting the hash url to get different data from it, the problem is when there are levels of the url not there instead of returning nothing, it returns "undefined" which goes into the spot the real data should have gone had there been data present. example URL scenarios: www.mysite.com/#/home www.mysite.com/#/user/2 www.mysite.com/#/user/2/info www.mysite.com/#/user/2/photos/album www.mysite.com/#/user/2/photos/album/922 and it could just keep going on. Here is the code I am using at the moment: var hash_value = event.value; //would be /user/2/info (or whatever the URL might be as shown above) var uri = hash_value.split("/"); var page = uri[1]; var user_id = uri[2]; var page2 = uri[3]; That code works perfect if "user" "2" and "info" are all there, however if it were to be: "/user/2" var page2 would be "undefined", I need it to just return blank "" Any way I could do this?
×
×
  • 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.