Programming › Re: Chinedu Daniel (andela Programmer) Creates Chrome Extension For Nairaland by orimion(m): 10:27pm On Jul 13, 2018 |
You guys are the ones keeping it alive for him. Even me, I don't know what's making me come back once in a while to the forum, there's absolutely nothing attractive on the site. Just a haven for tribalistic and religious zealots. It's also absolutely useless for programmers. The programming section is filled with idiotic topics. And the front page? The less said about that, the better. Just make a decision today to stop visiting the website, you lose nothing. Change begins with you. |
Programming › Re: Do We Have Competent Programmer From Scratch In Nigeria? by orimion(m): 10:17pm On Jul 13, 2018 |
webapi: There are wordpress developers and they are also called web developers. Creating a wordpress platform from scratch is more difficult than create a web app with laravel (i use both though) but my point is, not everyone that uses wordpress are non-developers... Facebook uses wordpress, does that mean the facebook team are non-developers? What matters is use the platform that suits your need. Facebook using WordPress? Nothing you won't hear in this world. Does Google use joomla? WordPress developer, a software developer? Ha! |
|
Sports › Re: Nigeria Vs Croatia: World Cup - 0 - 2 On 16th June 2018 by orimion(m): 10:09pm On Jun 16, 2018 |
orimion: Let the permutations and combinations begin TonyeBarcanista: If Nigeria can beat Iceland by 3 goals
Argentina beat Croatia by 3 or 2 goals
Croatia Play draw with Iceland and
Nigeria draw Argentina in the last match, we will qualify for the next round. They have started  . If only we could devote our skills at permutating and combinating to getting better |
Sports › Re: Nigeria Vs Croatia: World Cup - 0 - 2 On 16th June 2018 by orimion(m): 9:54pm On Jun 16, 2018 |
Oya guys let's do our normal permutation. Even Buhari self go calculate join.
CALCULATION
If Croatia win Argentina,Nigeria beat Iceland, we go qualify?
If Argentina win Croatia, we beat Argentina, Croatia beat Iceland we go qualify?
Let the permutations and combinations begin |
Sports › Re: Nigeria Vs Croatia: World Cup - 0 - 2 On 16th June 2018 by orimion(m): 9:48pm On Jun 16, 2018 |
ghettowriter: no ish, we fit nock Argentina and Iceland #Believe. na people like you make us remain mediocre |
Programming › Re: Sunday's Service Scripture For All Programmers by orimion(m): 3:43pm On Jun 10, 2018 |
Because of what you did, the Windows will disappoint you and eat up all your Resources; and you will have to use lousy programs;  genius |
Programming › Re: If Women Were Programing Languages,, (laugh Time) ;D by orimion(m): 1:01am On May 24, 2018 |
CodeTemplar: Java will be a well built, light skinned woman who can multitask - do many things. secure the home - security. make good decisions - control logic. socialize well - web services work any where - multiplatform But you have to talk talk talk to get her to do anything (too verbose) |
Programming › Re: Challenge Me by orimion(m): 3:14pm On Oct 23, 2017 |
DanielTheGeek: Can you run a benchmark test against both in Haskell? I'm not sure I can, maybe someone in anothe language? |
Programming › Re: Challenge Me by orimion(m): 2:34pm On Oct 23, 2017 |
DanielTheGeek: (a+b-1)*gcd(x,y) to get the total count of cells in any condition... here I tested your answer with mine for every possible pair combination of the arrays [356, 357,... 800] and [119, 120,...715. Both gave the same answer. The language is haskell. Please try to do in your preferred language
|
Programming › Re: Challenge Me by orimion(m): 1:29pm On Oct 23, 2017 |
DanielTheGeek: Minus GCD of what and what? I appreciate your effort but please don't just google and implement straight away..
Although I really commend your effort and at this stage you have gotten to I'd really like to know you more.... (That's for another day though, let's not derail) because you're getting a tad bit close to the actual efficient solution..but your answer is just not correct as it lacks mathematical logic.. let v = gcd of x and y let n = number of cells n = (x + y) - v I just realized if x = y, gcd of x and y = x = y  I only googled the meaning of gcd (and found out it meant hcf, americans with their naming wahala  ) and used "v" hint you provided |
Programming › Re: Challenge Me by orimion(m): 1:11pm On Oct 23, 2017 |
DanielTheGeek: Really nice shot, but this is not correct....it's not also efficient, it seems you didn't get the question correctly... We are trying to calculate or come up with a formula that calculates the amount of cells a line passes through from the origin to it's destination.. In the figure I shared you can denote that based on the line the cells are moving either to the right or upwards, for x,y being positive integers (not equal)...the cells will move either to the left or downwards given that x,y are negative integers (not equal).. We aren't looking for the slope here but the amount of cells the line passed through.. I changed my answer if x = y, n = x = y else n = (x+y) - gcd (or hcf) |
Programming › Re: Challenge Me by orimion(m): 1:08pm On Oct 23, 2017 |
4kings: x and y in the diagram are not equal.
But assuming x is 5 and y is 5. n = (x+y)-1 = 9 is wrong.
If you trace the diagram to y and x at 5 max. The number of cells are 6 not 9. check my rule 1 above also 5 and 5 gives n = 5 |
Programming › Re: Challenge Me by orimion(m): 1:06pm On Oct 23, 2017 |
orimion: my deduction
if n is the number of cells
1. if x = y, then n = x = y 2. if x is odd or y is odd n = (x + y) - 1 3. if they are both even n = (x + y) - (level of reduction * 2) where level of reduction = the number of times we can divide by 2 until one of them is odd
is this right? you didnt answer this from your discussion about gcd, I googled it and found out rule 2 and 3 (both wrong) can be combined into n = (x + y) - gcd |
Programming › Re: Challenge Me by orimion(m): 12:37pm On Oct 23, 2017 |
DanielTheGeek: But before then, I have a simple question.. I don't need to see code; just logical reasoning.. (Taken from an interview of a company I worked for)
In a co-ordinate plane, a line segment is drawn from the origin to a point A(x,y). With great efficiency, find the number of cells the line passes through Assuming X and Y are ints...
Google may not be of too much help, this is largely theoretical.
Mod: let's have more of this kind of questions as the ones involving code can easily be Googled or outsourced.. This tests the fundamental knowledge of computer science.. Programming is more of thinking than coding my deduction if n is the number of cells 1. if x = y, then n = x = y 2. if x is odd or y is odd n = (x + y) - 1 3. if they are both even n = (x + y) - (level of reduction * 2) where level of reduction = the number of times we can divide by 2 until one of them is odd is this right? |
Programming › Re: Serious Php/go/scala/python/javascript Developers Needed To Join A Start Up. by orimion(m): 6:19pm On Oct 16, 2017 |
I'll love to be a part of |
Christianity Etc › Re: Are Atheists And Skeptics Just An Angry Bunch Or Are They Actually Realistic? by orimion(m): 11:44pm On Oct 09, 2017 |
I don't think atheist hate God. From that picture, imagine if someone is convinced beyond all reason that leprechauns exist, is convinced everyone who doesn't believe in leprechauns will receive some kind of punishment and is actively looking to convince everyone. Imagine how it will look like to you. Now imagine if its not just one people but a sizeable percent of the worlds population. If you speak up regularly against these people, do you hate leprechauns? I am not selling any idea, I'm just saying you should try another point of view once a while. |
Technology Market › Re: Taking your Ebay/Amazon order@1560upwards/$,shipping to Lagos from 8$/lbs upward by orimion(m): 10:25pm On Oct 07, 2017 |
Laredojohn: Order arrived Nigeria picked up. Laptop in excellent condition. Superb service and timely constant updates and feedbacks. Hope to do business with you again. Thanks
|
Programming › Re: Astro Programming Language 0.2 (indefinite release) by orimion(m): 10:36pm On Oct 02, 2017 |
appcypher: But they were not flexible enough so I decided to write another parser from scratch in Python, then Typescript and now Javascript. . parser? did you ever look into Haskell? |
Christianity Etc › Re: Why I Converted To Islam After 20yrs Of Being A Committed Christian by orimion(m): 9:31pm On Sep 30, 2017 |
all you christians trying to correct with arguments and/or insults, I hope you were led to do it |
Programming › Re: Simple Algorithm Exercise by orimion(m): 3:41pm On Sep 30, 2017 |
deedat205: orimion and Haskell are 5 and 6
def dirReduc(l): cor = ['NORTH','SOUTH','WEST','EAST'] i = 0 while i < len(l)-1: if l[i] == cor[0] and l[i+1] == cor[1] or l[i] == cor[1] and l[i+1] == cor[0]: del(l[i]) del(l[i]) i = 0 elif l[i] == cor[2] and l[i+1] == cor[3] or l[i] == cor[3] and l[i+1] == cor[2]: del(l[i]) del(l[i]) i = 0 else: i += 1 return l
 don't you just love how it reads frankg1: i dont understand this haskell one bit... but it works though http://learnyouahaskell.com it'll challenge everything you know about programming |
Programming › Re: 13 Year Old Indian Boy Hired By Google At A Package Of 1.25 Million Dollar/year by orimion(m): 9:55pm On Sep 27, 2017 |
this your link  ah no fit click |
Programming › Re: Simple Algorithm Exercise by orimion(m): 7:23pm On Sep 27, 2017 |
Haskell dirReduce :: [Direction] -> [Direction] dirReduce xs = case reduce 0 [] xs of (0, ds) -> reverse ds (_, ds) -> dirReduce $ reverse ds
reduce :: Int -> [Direction] -> [Direction] -> (Int, [Direction]) reduce t acc [] = (t, acc) reduce t acc (North:South:ds) = reduce (t + 1) acc ds reduce t acc (South:North:ds) = reduce (t + 1) acc ds reduce t acc (West:East:ds) = reduce (t + 1) acc ds reduce t acc (East:West:ds) = reduce (t + 1) acc ds reduce t acc (d:ds) = reduce t (d : acc) ds
|
Webmasters › Re: Reasons You Should'nt Make Use Of Slider In Your Website by orimion(m): 8:09am On Sep 18, 2017 |
http://shouldiuseacarousel.comMost websites using a carousel doesn't need it, do you expect me to wait and be reading everything on each slide  I wonder who came up with the idea. |
Technology Market › Re: Taking your Ebay/Amazon order@1560upwards/$,shipping to Lagos from 8$/lbs upward by orimion(m): 12:17pm On Sep 14, 2017 |
Laredojohn: cost of purchase 469.57 * 330 =154958.1 shipping to Lagos =12950 Total = 154958.1 + 12950 = 167,908.1 How do I proceed with payment |
Technology Market › Re: Taking your Ebay/Amazon order@1560upwards/$,shipping to Lagos from 8$/lbs upward by orimion(m): 12:00pm On Sep 14, 2017 |
|
Programming › Re: How Best Can I Read DOM Of External Pages? by orimion(m): 4:12pm On Aug 29, 2017 |
Sounds like you want to do web scraping, search for a web scraping library in your language of choice |
Education › Re: ASUU Turns Down Invitation By FG For Talks by orimion(m): 4:02pm On Aug 29, 2017 |
Who cares. Lautech students have spent only one and a half month in school in the past 16months. Two weeks strike, already crying  |
Christianity Etc › Re: Oshun River Goddess Possess A Beautiful Girl At Osogbo Festival (video) by orimion(m): 3:47am On Aug 28, 2017 |
iamgenius: I'm a muslim, even many worst comments in the Islam For Muslims threads. I know someone will call me a terrorist now. Cheers! not me though, I haven't got any problem with any belief. Whatever works for you bro |
Christianity Etc › Re: Oshun River Goddess Possess A Beautiful Girl At Osogbo Festival (video) by orimion(m): 1:43pm On Aug 27, 2017 |
iamgenius: I was born believing those rubbish up there. How I wish I could forget all of those things. It saddens my heart whenever I see people doing those idol worshipping. How I wish you could understand. I hope you aren't outraged when atheists post things like this on a christian topic |
Programming › Re: They "Hate" PHP, Yet PHP Job Is All Their Hope - Noise Making Amateurs by orimion(m): 8:28pm On Aug 24, 2017 |
thing is, no matter the language a good programmer will write good code and a bad programmer bad code. That is why you should (as you said) learn [url=teachyourselfcs.com]programming[/url] before learning a programming language. Some languages make it easy to write bad code though.
My $0.02 |
Video Games And Gadgets For Sale › Re: Garnet PC Games For Sale @ The Cheapest Price (N100 Upwards). by orimion(m): 11:49pm On Aug 19, 2017 |
omotolsy: unfortunately pes 17 is demanding pes demanding  pes is one of the most undemanding game I know |