Jump to content

krillz

Advanced Member
  • Posts

    150
  • Joined

  • Last visited

Everything posted by krillz

  1. I would just install firebug plugin for firefox, hit the html mode then select the DIV and se them light up in the browser. And as I assume you are aiming to learn and understand where they are located nested and so forth. I think that is one of the quickest and cheapest ways of accomplishing a good visual effect that you can study.
  2. You can solve this in very different ways, one could be initiate the class you need in the class, preferably in the costructor so when you call on let say the loginclass who in turn depends on the QueryClass it's all handled by the classes and you do not have to be sending refferer adresses back and forth. class loginClass { private $queryClass = null; public function __construct($param1, $param2 ... ) { $this->queryClass = new loginClass($params) //if required //... code } } Or if you wan't to treat one of the classes as a library you could build a class with static function that do not require you to initite. class queryClass { // variables and what not static public funciton name($param1, $param2 ...) { $var1; $var2; // do what you want return $result //maybe return something } } // then you can call them from everywhere, that is it has access to the class file $catch = queryClass::name then you could build inheritence with the parent class being a static library and calling the functions by parent::Name. It all depends on what you are aiming at and what you find working best. Just try
  3. Depends what your contract says.. I mean if you did not promis any specific position (which would be very stupid to do) then they can't really argue with you. Also try to add as much as possible in the contract you sign with the client to minimize the risk of hitting one of these roadbumps that sometimes are a real pain in the ass to fix. You should also consider the shit throw effect this can cause, especially if the client is an important party among your potential future clients as a bad word could shut you down.. that's another reason to have good contracts that cover most of it, so your client and you can refer back to it when questions or arguements break out. Any way I would do it this way, contact the client. Have a meeting with them where you present what you have done explain it fully then bring up how much it costs to hire full time real SEOs and why they are not on position 1. Then ask them what their goals were with hiring you? And why they feel these were not met. Use their explanation of goals to show them that you actually achieved what they were asking for and be amazed that they reacted this way. Then tell them that in the future to not get into these situations the client should put down all their requirements written on a paper, you will then check them and send back feasible tasks that you can accomplish. If they accept what you can offer then write a contract where these points are included a long with terms and conditions and everything else that can save you later on, Then send it to them to sign (accept). This business can be nasty and one idiot who has dreams and goals set somewhere high above the moon and that only tells you one per cent of them can really destroy your reputation in the worst case even though the blame is not on you.
  4. implicit transformation just cuts off the decimals it does not conduct a mathematical calculation to round the number to the nearest integer following the mathematical rules.
  5. if it's not done by you, then it's your host doing it to ease the server load, you need to ask them not to do that or do it more frequently for your page.
  6. have you found these files somewhere: c, 1r.txt and 2r.txt check whats inside. From the looks of it it's some kind of link generator however I don't like that it is using the system() function at all. You're only bet is to run the stuff in a sandbox and try it out, could be anything from link generator to a XSS injector to steal user info.
  7. maybe time to increase the security on the system, as that is no good. If he has an upload script make sure you check it first.
  8. Been writing a couple of aps and system tweaks for android, when it comes to iphone only done some aps for personal use and a swedish app. However I do not like objective C can't stand it for some reason.
  9. krillz

    convert

    I think what you saw was image hidden with css displayed as a background in a div to make it harder to get. But what you saw was a simple counter, each time you visit the page tries to load the image adding a count, here is an example of it http://px.sklar.co m/code.html/id=67
  10. But then again if we did that all the time we wouldn't have a job now would we as it would be converted to a one to two man tops position instead of having a whole team. I've been there a lot in the past but then you have to pitch why that old class can't be reused then finally spend time rewriting the existing class so the boss doesn't notice it's the exact same code. good thing I moved away from being a full time coder for a living.
  11. krillz

    Define "Spam"

    Well within SEO there is something called bad links, that is if you are linking to pages that google have labeled as spam or payed links. So yes they can hurt you as their bad label will spill over at your site for supporting these sites by linking to them. You could just click and quickly evaluate the site that is linked to, any spam related like pornography, drugs and such is a no brainer. Then you got the links that link to these feed blogs that just post chunks of peoples articles then sends a pingback to get a link, you will see a lot of articles and when you press read more you are taken to another blog. You could just apply the nofollow rule to anything shade that you directly can't make out if it's spam or not.
  12. krillz

    Arrays

    Undefined index: If I remember from my debugging days that's caused by an variable being empty.. most often caused when you try to write out content from let say a $_POST or $_GET that is empty. So are you vardumping something that is depending on something being sent through a form or by other means to the script? Add the isset() function to only assign the value from $_POST or $_GET if a value was sent, that should fix your problem. example: // of course you need to apply this to your code with the correct indexes etc. if( isset($_POST['send']) { // the code that uses the $_POST }
  13. krillz

    Define "Spam"

    add a nofollow to all links in the comments section of your blog. That way they spider crawling your site won't leave your site anytime they stumble on them as you just declared them as links with no value to you. Or you could implement a system that requires them to post let say 10-20 comments before links are rendered as links in the comments. But I suppose you have one of them spambusters installed on you blog, you might be able to add the links they are posting as they pretty much are the same to the banlist.
  14. See CMS as a ready to go tool that saves a lot of time. You can't really take the two head to head and say what to choose it's all about what you are aiming at doing. A lot use a good CMS as a base then tweak it into doing what they want using perhaps PHP/HTML depending in what language it's written. Others decide to reinvent the wheel and spend months on coding something that ends up working pretty much the same as the ready to go CMS in the first place and then ponders why they coded it when it was there all a long. I go by the motto: If you need something solved and there is something on the market that solves your problem with a good userbase and content users, then go with it, even if it does parts of what you are aiming it is a lot easier to add the functionality you are missing yourself than recoding the entire stuff from scratch. If you look at companies creating their own CMS solutions they are doing so for a reason, most often because they need very unique functionality or complex functions that might mean that adding them into an existing CMS can prove to be more work or it's just not possible. Or they do not want a highly used platform that many people use for the simply reason as when you got a lot of people using something then you got the hundreds of scriptkiddies doing exploit sniffing to get access and they don't want to bother about being targeted 10 minutes after an exploit for that platform is published on the net. OT: I say: If you are not aiming at becoming a PHP developer or full time html coder then just learn the basics or enough that you can handle fixes or adding something minor.. changing some small parts yourself then use the CMS's functionality. Otherwise it's pretty much a waste of productive time to learn a bunch of stuff that you will end up not using anyway.
  15. OOP functionality is that you write modules that are standalone or co-modules that work as supplements to existing modules. What this means is when you are cooding in a OOP-fashion you need to start thinking differently. And this is something I see people not doing as they simple put a bunch of functions and wrap them inside a class. For example if you are writing want to create a good login system you are no longer writing a page filled with functions you will use specifically for your login system, but you are aiming at coding a class that is standalone and it so happens that this class can be used for the login system you are using.. but it also means it should work with anyother system that requires a login without needing specific code other than a childclass or a supplement class. So what you are doing with OOP is creating lego blocks, after a time you have a whole bucket full of them. And when the time comes where you need to code something new you look in your bucket of lego blocks pick the ones you need and assamble them. Of course sometimes you notice that you need to change or add functionality what you do then is not go in and change in the original class but use the OOP way and write a child class with what you needed or write a supplement class this way you will create packages and you get new lego blocks in your bucket. It's hard to view it this way but this is the goal of OOP and people need to start utulizing it this way. And I'm sorry for any random strangeness in the text above after all it's valborg day in sweden and I'm drunk as hell .. but with the good amount of years coding I think my point is valueable!
  16. sounds like a XSS attack, start by looking at user submited data.
  17. you have a tip for people having a hard time building muscle mass, as I got this mate who is naturally slim all the time, and we have been working out for the same time and he is stronger but you can't visually see the muscle mass as on me or my other friends.. so he gained in strenght but looks the same. So we told him to eat a lot more to stimulate the body into growing muscle mass as you need to show it it can afford building it.. well he is now slim with a big beer-like belly so that didn't work either it seems. Any tips?
  18. krillz

    HTML5 features

    Yeah I watched the google team successfully patching a java version of the doom game engine into javascript code compatible with the features in html 5 and they played it... with 30 fps for a game made out of javascript and html 5 api function is pretty good. A lot more interaction is to come in the near future.. I predict a very cool future within webdevelopment, we will see a lot of new very powerful API's pop up.
  19. any IDE that isn't pure crap has that functionality. A good option that is completely free is netbeans for example. Then of course you got a few more powerful applications than netbeans but depending on your workarea these can cost a good fortune.
  20. Might get it, after all I have 80% discount on pretty much all of adobe's products, so it doesn't sting as much as it would when buying.
  21. everyone in the SEO business are pissing their pants now when DIYSEO service by Patrick Gavin one of the top togs in SEO launched. Basically if you are pretending to know anything and really fool your clients that you can compete with the major SEO service firms, get over yoruselves and just tell them to go there or use that to help your clients at least this way you will actually accomplish something. But as far as small companies if they know about that service that will make you lose that client, and the bigger firms won't ever hire you.. last step is targeting the small businesses that don't know anything about seo and thus not heard about it yet.
  22. in one hour you could code a nice little cms that allows your client to post feedback and your contract developer to respond.. that way you can minimize the risk of them starting to talk and eventuelly fading you out of the picture completely. Hey you just gave me a business idea.. you get contractors and you get clients and they do what they want and develop, payment is done, I take a chunk of it and a salery is paid to the developer.. hmm needs some fine tuning but this could be good.
  23. They look at the content and pretty much ignore the markup for the most part.. Anyway create a google webmaster tools account, add it to your site then you can better see and analyze how for example google is seeing your pages any errors and other goodies that are awesome to see in order to better get your site up there. Also you can upload your sitemaps to it, that way you can somewhat decide what is cached by google and create a sitemap script on the site that pings google eachtime a update or change to the content has happened, which updates the sitemap it currently holds. A way to speed up the updates.
  24. He coded all the lines seperately so it's clearer to read, but for the search index spiders it looks like one continous line anyway. And if you are wondering why the css is all in each element and not in a seperate css file.. well most likely he used a WYSIWG editor remember getting such lines from frontpage or xara applications.
  25. krillz

    Calendar

    search for a calender script preferably an open source free one. As coding one yourself would just be a waste of resources. 1) Too time consuming. 2) If you don't know how to code serverside code for webapplication, then you will need to spend even more time learning that first.
×
×
  • Create New...