Delomos's Posts
Nairaland Forum › Delomos's Profile › Delomos's Posts
1 2 3 4 5 6 7 8 9 10 (of 12 pages)
Nice, nice, nice! |
I just simplified the process of development to deployment (if you're tired of doing "rails s" and getting shocks in deployment) -- Just open-sourcing the development tools I use on my project -- see: https://github.com/delomos/vagrant-puppet-rails Suggestion/Improvements are welcomed. |
I will be happy to -- I thin the best way is to follow me on github: https://github.com/delomos (create an account if you don't already have one ) and/or say hello on twitter (www.twitter.com/delomos). |
@lordZOUGA: a platform for discourse, one that encourages communication. |
After months of dormancy and feet dragging; I"ve settled on an interesting direction for this project-- if you have some experience in RoR (Ruby on Rails) aand/or Ember.js (http://emberjs.com/) -- get in touch ![]() |
@ekt_bear: I strangely had the same question on my mind |
Many solid points that hits home, to quote on of the points: "Pretty standard. The reason why we chose each of these things was the same — reliability. Even memcached, which is the conceptually simplest of these technologies and used by so many other companies, had some REALLY nasty memory corruption bugs we had to deal with, so I shudder to think about using stuff that’s newer and more complicated. My only suggestion for choosing technology would be to pick lightweight things that are known to work and see a lot of use outside your company, or else be prepared to become the “primary contributor” to the project." http://cloudspring.com/scaling-lessons-learned-at-dropbox-from-4k-to-40-million/ |
Not sure, but seems that the problem has being solved here: http://www.yourbudgit.com/ |
I think what was done here can set some light on this project -- that solves the same exact problem: http://www.recovery.gov/Pages/default.aspx (which was also in .NET) |
I agree to many of your points, you're right, it's frustrating and outright discouraging to see it in that respect. I'm pointing it out to be an encouragement, whatever you're working on, do your best, sometimes it might poop, but don't beat urself up for it, even the best poop. @beaf: They truly might not be the best, but there are a lot of their engineers I respect (a lot), for at least their contribution to the [open-source] community. And the role twitter has taken in shaping online communication is not trivial, so maybe I should, say, they are the best at the problem they are solving. |
@lordzouga: Today I was talking to someone whose main argument for why we shouldn't build it, is because we don't know all possible requirements -- "I want to build the perfect software, how do you think places like G, Tw, FB, do it?" -- and my argument was, there is no perfect software, there never will be, no matter how rich you get, build all the redundancy, and even more redundancy --failure will happen. Coincidentally, this happened. So it's not in rejoicing in other's pain (what's the point), it's in understanding that even the big boys fumble, understand your limitations. |
Oh in that case, if you know the person's facebook ID/username, you could just use the same pattern like you do for twitter's REST,the API https://graph.facebook.com/<username>/<what you need>?access_token?xxxxx (just be sure you have the token). So if you want to get info about my own timelime, you do: https://graph.facebook.com/dele.o/statuses?access_token=AAAAAAITEghMBACvVBB7elnD6rPzVVT4aGDiDfmVPrVkgX2AQRdckRAJiFOM8qfeXD8kGusNehLUAWNOKXdX6ChOeYvNVrmJ3qE4YCgZDZD (this gives you a JSON of all my info), or to get post my notes https://graph.facebook.com/dele.o/notes?access_token=AAAAAAITEghMBACvVBB7elnD6rPzVVT4aGDiDfmVPrVkgX2AQRdckRAJiFOM8qfeXD8kGusNehLUAWNOKXdX6ChOeYvNVrmJ3qE4YCgZDZD the documentation is here: http://developers.facebook.com/docs/reference/api/ Then of course, you json_decode() and loop. |
You touch on interesting point which looks very close to the argument made here: (which was trending recently on Hacker News) "Being a Developer Makes You Valuable. Learning How to Market Makes You Dangerous", http:///P3tYtQ Though I'm not sure I follow your argument on not going to meet-ups (because it's too tech oriented? dates are not flexible?) IMO, righting code is "easy", what is tricky is building the right "team" to shoot you vision in everyone's face. My dream team is: Business Developer/Marketing + UI/X Engineer + Back-end Engineer (each having that core and willing to switch hats as need be). |
Give more detail on the kind of website you're build and what language your doing so in -- PHP a la Wordpress, Joomla, CodeIgniter,; or Python a la Django, etc. |
Twitter is worth about 8-10 billion $(yes, with 10 zeros), and when you go to their website, you get this (See image below) -- This folks can sure afford the best of the best engineers, and they actually do have them. So be easy on yourself when your app poops.
|
This is where you will want to be: https://developers.facebook.com/docs/sdks/ |
Your idea is not really new, it's being a point of research in computer science for a bit:, you can read this (it'd put you to sleep quickly): www.cs.umass.edu/lfw/results.html">http://vis-www.cs.umass.edu/lfw/results.html And when you wake up, you can read up on this: http://developers.face.com/docs/ (this is "what" facebook uses to match faces, Facebook now owns this, so you know what that means) http://www.quora.com/Algorithms/What-is-the-algorithm-used-by-Google-Search-by-Image-1 < HOw google approaches the problem which gives an interesting insight on how to tackle this problem. Anyways, this is not a trivial thing -- so if it's worth your time, well, the links above will explains the magnitude of your "idea". |
Read my above analysis carefully. |
kodewrita: ^^^^*** ___ **** R.I.P Mr. Dele Giwa |
kodewrita: Probably all programmers should leave a forwarding address in their code so we know where to send the bomb when they leave crappy code behind.sucks that I really can't hide, googling dele.o or delomos f'ing rats me out. |
I'm using that as an example. Just use that as an example for multiple states, same principle applies |
Try do some work pal....
|
If you're trying to represent countries and their respective states, a schema you can consider is: [countries] <-- table 1 + id (auto_increment) + name (country names) [states] <-- table 2 + id (auto_increment) + name (state name) + country_id (foreign key referencing countries.id, be sure your MySQL engine is set to InnoDB if not this will not work) So to see what country has what state or vice-versa If someone selects a country ID of 45, your DB structure will look like: [countries] id name ---- | --------- 45 Nigeria [states] id | name | country_id --- ------ ----------- 23 Lagos 45 And your query is: "SELECT name FROM states WHERE country_id=".$_REQUEST['country_value_selected'] OR if you want to see what country Lagos belongs to, now comes the fancy query : "SELECT c.name, s.name FROM states AS s INNER JOIN countries AS c ON c.id = s.country_id WHERE s.country_id=".$_REQUEST['country_value_selected'] (notice how I used aliasing now, because I'm referencing two different tables vs when i'm referencing the same table) So it's up to you, just keep your data as rational as possible to get the query you want (btw, i didn't test any of these, just from the top of head, so test carefully if you're using this in production). |
looking at your query: "SELECT countries.country, state FROM countries, state WHERE <b>countries.country_id = state.state_id</b>" perhaps what you intend to say is: "SELECT state FROM countries WHERE country_id=". $_REQUEST['selected_country_id'] (notice I've made the query shorter, and a bit more efficient, you don't need the aliases) then: $row["state"] should give the right state. |
Kobojunkie: A Book? Are there no libraries out there?It's good to at least know some SQL basics before using libraries that abstract it. |
you might find this helpful too: http://sqlfiddle.com/ |
pc guru: I've seen it before, the Laravel Framework something about it screams JavaScript, it has this JS/Node feel to it, but I'll look at it again,Yii just makes my life so easy.If you're referring to it's heavy use of callbacks/closure (as is heavy w/ JS things), perhaps -- and that's actually a new feature to PHP, (PHP 5.3+), and it's actually very, very sweet. While Yii is sweet in many respect, it forces its way on you, heavily. Yii, is very heavy handed.That said, if you don't have PHP 5.3+ it can't run Few things about Laravel that might make it worth trying: A stronger [flexible] ORM/ActiveRecord, flexible (very), written on 5.3 (btw, Yii 2.0 will be too and they'll def be introducing closures, and it'll be JS-like too, I read the map that Yii 2.0 will NOT be backward compatible, so if you're having new dev work with 1.1.x that might be worthy of consideration), very, very, very friendly community. Yii's Giis and Ziis and quite sweet, but having to fall into a specific paradigm, ummmm.... |
Very nice projects @lojik & @KoolPitt. My challenging project (ongoing) is making Classic ASP speak modern web dev, not by choice, just a bind I find myself in with the start-up / mid company I'm engaged with; they have all its "things" written years back, now the company can't scale upwards. So trying to manage poorly written legacy code, a running business and porting things over --- and for those who are in the same bind, I'm reviving this: http://www.ajaxed.org/ (hopefully I have time to push to the final port to GitHub) @lojik: you should consider having a designer touch up the site -- @pc_guru: check out Laravel framework for some of those goodness @KoolPitt mentioned, that is if you're wanting to explore it the PHP way. |
lordZOUGA: just that you still have that your occupy9ja ish still on. has it been abandoned?This is not a project, it's just a blog where I share (tech/software) tips separate from my other blog www.delewrit.es, where I share my philosophies. occupy9ja.com, is an ongoing project (as a few other concurrent project), hence why I need collabo on that (another shameless plea). So generally, the idea is, paying gigs gets precedence (as the case is with the ASPAjaxed project that I haven't even pushed to GH yet) -- writing to thing will be much easier since it's fits into my coding workflow (I work a lot with github for private/public projects) than the other WordPress one (side note, I've being writing on that for about 4-5 years). |
So, after push from people's here and there, I'm starting a newer blog on the African perspective to software (God knows I have no idea, but I go fake am), well, as proper Lasgidi boy, we gotta do am with style -- in my first post, I walk through setting up a blog, hacker style, in few minutes, no Wordpress or Blogger BS, just setting up a blog with Github... pretty fun. An interesting skill that will be learned is compiling Linux packages from scratch, and even building your own ruby gem!! Chai Anyways, it's [url]tech.delewrit.es[/url], stop by make some comments, love or hate or if na curse, that wan good too. |
