WhiZTiM's Posts
Nairaland Forum › WhiZTiM's Profile › WhiZTiM's Posts
1 2 3 4 5 6 7 8 9 10 (of 18 pages)
Jarus:Actually,.... Take off is probably (no evidence here) more scary in the case of engine failures |
thesicilian:Bros, do you know energy possessed by an airplane already in flight is massive, When it crashes, it has to lose all that energy upon impact. Assuming the fuel wasn't going to explode, the occupants are still going to have to loose the energy possessed by their inherent speed and mass. There's only little the human body can tolerate before fatal injuries occur. Yet still, the fuselage is definitely going to fail and flying parts will kill them... If they are luck to survive that, The fuel will explode to seal the death fate of the passengers. it's literally impossible for any to survive a plane crash. Every lucky survivor of a plane crash is a miracle |
This is so sad; Do you know some of those children killed would have done better jobs than some of us; Some of those people killed, given a good opportunity will do much better than the collective wisdom of all generations of the animals we now have in the corridors of power. This is just so pathetic. ![]() This is why I always feel like beating the crap outta anybody that says "Let's pray for Nigeria"; How da hell do you pray for leadership wisdom for devils?... Kick em out! And to those not speaking out, As I've said before, I'll leave you with the words of Martin Niemöller, First they came for the Socialists, and I did not speak out— |
sparkle6:There are a lot of missing pieces in your estimates; as I say, that's the "Ego salary" - yes, "Ego" in its English meaning. All figures you see are almost always gross salary. - There are multiple Taxes to be paid, some countries with progressive tax can get you a cumulative tax of up to 50% of your Gross salary, depending on Tax band. For your specific calculation, in the US, depending on multiple factors(state you live, other deductibles, etc), you are likely to take home $48K ~ $57K net... in practice, the numbers(gross salaries) are higher for fortune 500 companies - heavily depending on where you live, county/state, the rents are at astronomical numbers compared with what you pay in Nigeria. Rental prices are monthly... And your rents are easily from N300K per month (studio or single bedroom) to N1m per month (3 bedroom house. And still, this is typically outside utilities costs... - So house rents (converted to the Nigerian sense) will be between N3.5Milion per year (self con) to N12.0Milion per year(comfortable family of 5+) ...so, you can expect your net to drop from 1.7M as you said to 1.3M on taxes and deductions; further to N800K+ after rent's... .... however, that doesn't mean they don't live a better life than Nigerians. Sadly. |
THis is bad.... Really bad In the words of Martin Niemöller, First they came for the Socialists, and I did not speak out—You all may think its good for Dino... But it just shows the crab mentality we have in Nigeria... This is just sad for Nigeria.. If Police will do this to a senator with networks of some who-is-who... Just know that the day someone up there uses Nigerian Police against you, you are dead |
CodeTemplar:Ewo!
|
For those reading this thread, Do not be intimidated by the salaries you are hearing or reading. Everything I write here is applicable globally, but any number you see here is based on Nigerian economics and Nigeria specific I'm a Software Engineer, and I very much know some numbers out there. When people come out and tell you that they earn at least N500K/month as a developer, you must learn to see this through a different angle; There's a lot of ego being portrayed online about Salaries. While the reality is that some do earn up to that and more, A few factors do come into play: - Irrespective of how good they are, there's a factor of Time and Chance of getting their current Job; - They are likely to posses a particular skill that fits the needs of that particular company, and are considered mission-critical to the company; - There's local economics; You don't expect same salary for a company in VI or Ikoyi, Lagos, to pay the same as a Company in Ojota, Lagos Again, when it comes to earning money as a remote developer, online, its a bit of a different game... the earnings are high because somehow we in Nigeria avoid paying taxes on that, the most popular remote jobs Nigeria's take are Web development, Support Engineering or some form of DevOps... If you earn N100K/month, do not grumble about the pay, but take more time to build yourself. Specifically in Data Structures and Algorithms, then Systems Design. Find a way to make yourself visible online (participating in Stackoverflow, Hackerrank, Leetcode, or careercup) and in some months of sucking up frustrations, you are likely to land an interview with fortune 10000 companies and get a job that will skyrocket above the Ego-wielding N500K/monthly earners. (don't think this is possible in 6 months, it takes some time) Do not compete with those who earn more than you, try and learn from them just in case they know something you don't (a lot have bad ego, be prepared for this); There will always be people to talk down on your pay anyway; |
Piuscrown:No sir, you aren't the only one |
The other day, that's how Lai Muhammad said that "President Buhari is our father" - for once I wanted slapping him through my TV. .. what kind of god is Buhari to these people ![]() |
Use booking.com. they are very reliable |
NaHiim:In Java 8, you can do:
While that works ... In future, It may sound crazy... But "random" is a bit vague to Mathematicians and Engineers. How random? You've defined a set (in your case a range of numbers). Good! You've not defined a distribution of the probabilities. - uniform distribution? - normal distribution? - discrete distribution? - ... |
MrImole:Which experience? Care to give some details? |
And according to Wikipedia, the guy is just 24. Damn! At 24... And I'm still here dulling myself? |
EFCC detectives uncovered 40 houses, 38 of which are believed to be Mrs Olojeme’s.What kind of stupid people are these?? For crying out loud, convict a criminal and give the person a sentence then come out and give us the news... Every blawdy news of such has never been concluded... Dasuki? Maina?... etc. For what its worth, this news is just some "news porn" for short sighted Nigerians to use and masturbate for a while... ![]() |
Its quite annoying that some folks can't just find a good job to do... I was shocked to find out that there are still a few people who fall for well known scams, such as BVN... WTH!.... Here's a screenshot of one I received and replied sometime, early this year.
|
So, I got an "opportunity" from this scammer; Naturally, I would have ignored it, but I couldn't resist ignoring him.. Here's a screenshot of his text message, and my response. ![]() Cc: lalasticlala
|
RichiB:You forgot the last procedure: - And ignite one match stick... |
I assume you know the kind of stuff you dream of building. While the course you will study for your undergraduate degree provides basic foundations for your occupation; Years into your career, things you did in your undergrad will likely be less visible in portfolio. So, the closest to what you seek is in Mechatronics Engineering. It first appeared in Nigerian schools around 2010 (I stand to be corrected). So, we have at most 3 graduated sets as per COREN/NUC's 5 year Engineering plan (I wish it was flexible)... Judging NYSC atop, we have at most 2 sets in the job market. So, there are fewer people who can speak of their experiences. However, a little search online shows me what the typical curriculum will look like; as seen in Bayero University, Kano's course outline for Mechatronics Engineering. Judging by the contents, you are good to go. Good to go, except: I don't see any course dedicated to Kinematics and Dynamics; and Path (Motion) Planning, neither any on Autonomous Systems or even Computer Vision (though, not strictly necessary, there are other sensory methods). So, you would have to study these on your own. I studied Mechanical Engineering back in school; And I was very much interested in Control Systems, as thought in Electrical Engineering then (We also did too, but for just a semester), I can tell you that the depth which Control and Systems Engineering is being thought in Nigerian universities is poor. You'll also need to go father than your curricula on this. - You will need a great deal of knowing how to program. With strong emphasis on embedded systems. This means you'll do yourself a lot of good to learn C++. - You'll do yourself a lot of good to get Arduino Kits, and some Raspberry Pi to start experimenting with... ...Source? My job occasionally involves Systems Engineering. And I have Arduino Kits (Mega, Uno, Uno); Have Raspberry Pis, plenty actuators and toys....and love coding |
DanielTheGeek:Good to know about the GCD thing! ... However your explanation just doesn't cut it for me... especially where you wrote So therefore, a layman shoul be able to deduce from the little things we know that we can come up with a formulaI am not (yet) a PhD holder in a Mathematics heavy field, however, I am not a layman in basic mathematics, yet I didn't deduce it... I think you should rethink your assertions, or one down a bit on it. However, I found this to be more helpful. Nonetheless, thanks for posting, I first knew about this armotized solution from your post, quoted above... Thanks... ------- Ummm, quick question... While I know the question assumes square grids, does the GCD solution work for rectangular grids? Or what tweak can we do to make it work for rectangular grids...? |
@DanielTheGeek, I am not into this hullabaloo contest you guys are doing here, but I loved the question below... Cc: Cc: 4kings DanielTheGeek:I probably don't have the requisite knowledge (or not smart enough, whichever one) to bring up mathematical tricks to quicken this up... But I used the basic maths skills to work out the problem.. And I wanted to try an online algorithm that spits out the cells as it walks through its process... -------- Olyboy16:Nahh... You didn't type nonsense, I realized my thoughts were wrong about the question... I didn't mean to come off that way. Sorry about that. Ok, so I took some time out today to look at this question because I found it interesting... While tinkering on a possible solution, I realized one edge case we (perharps only myself) haven't clarified... The edge case: what if the points lie on the same coordinate axis... for example... Between two points A(x=0, y=0) and B(x=0, y=2).... Clearly when you draw this line, it doesn't technically cross any cell. In such cases, what should we do? In my own solution, I assumed such doesn't cross any cell hence I return 0. So, the story today goes- (remember, I expanded the problem to make my code identify the cells being crossed)... At first I was tinkering along a possible solution that involves line intersections, wrt that line AB and the cell grids. While I was confident that was going to work, I quickly saw how much coding effort would be involved, so I ditched the idea. I mean, this problem looks simpler than this... Secondly, I was thinking of the previous solution but with a Breadth First Search approach... I quickly saw that it was going to be an O(N^2) complexity, which just doesn't seem right for this problem... However, I noticed the complexity could be improved if we add a heuristic... Effectively making it a variant of an A* algorithm... That would involve too much work, so I ditched it again.... Do I even recall how to code A*? Thirdly, I used drawing softwares to draw grids. then started making lines from one arbitrary point to another; while observing the behavior of the box occurence, I realized, I would have to sweep the plane... And I started... Anyways... heres a solution in Python... 1. Check for corner cases such as the one raised above, if we are have a corner case, return early
2. We want to walk the grid from left to right, in order to do that, we must ensure that, based on the horizontal x-axis, A comes before B
3. Next, we must confirm that A.x is a positive number, if it's not, we rebase it to zero. and adjust B.x appropriately. If we don't do this, our left-to-right walking algorithm may at some point switch from a negative number to zero, then to a positive number; handling these scenarios is more work; rather add more code, its better we rebase our coordinates to ensure our left-to-right sweeping of the coordinate remains positive...
4. We calculate the slope... Secondary School stuff.
5. Steps 5, code first..
5 (a). The logic here is to follow the line AB with referenced on the x-axis, sweeping from left to right... in this case from 0, 1, 2, all up to the x-value of the second point. 5 (b). We then use the equation for straight lines to determine `y`, whenever we move x to the next cell using our good old, y = mx +c ... py = slope * x + Origin 5 (c). py will be the new position, of y when when x has been upped one step forward.... We need to know the lateral distance covered by the difference between y and py, and use this to count how many gridlines crossed by this delta.... 5 (d). That job is done by countBoundariesCrossed. 5 (e). The gridlines crossed tells us how many cells we've passed; we increment our counter with this info 6. We are done... Complexity: Armotized O(n). where n is the maximum distance between the two points on x-axis or y-axis. Armotized here because, the answer may be larger than N, but definitely in the realm of O(kN), where k is a number greater than zero, but significantly less than N The full code is here below:
NOTES: - I really enjoyed this problem... after solving it... I decided to search the internet for its application, and I came across [url=https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm]Bresenham's line algorithm[/url] used to approximate straight lines in Bitmap images.... - A quick glance at Bresenham's line algorithm shows it achieves its work in O(N) time, which I find really cool! Mine does same! - There may be a bug lurking somewhere, while I doubt it, I am opened to learning from failure cases of my algorithm. - before posting this, I decided to go through the whole nonsense on this thread and I am only just realizing there is an amortized O(1) algorithm for counting the cells... And hell no, there was no way I was close to thinking that GCD direction... So, I am definitely not the smartest here. - Once again, I enjoyed the problem, thanks for posting. Another thing that makes me feel good is that, with only two changes to the code, the above solution can work for rectangular grids...
|
Olyboy16:Nevermind... |
Olyboy16:Hmmn |
This is a real danger... But its a good feat for Engineers... I like it! ![]() However, We seem to have forgotten law of energy... Unfortunately, kinetic energy increases exponentially (actually, quadratic) with respect to speed... The energy you and your car have at 100Km/hr is about 771 times half the total mass of yourself and your car!... Think of it. 771 times!!! Imagine a collision with that energy (aka, trying to extract that much energy from a moving body)... its typically fatal... Now, adding a simple (you say) 40Km/hr extra speed to your 100km/hr doubles that energy!... So you are twice more likely to die at 140Km/hr than at 100Km/hr... At 480Km/hr, you are obviously dead for any slight driving, judgement or mechanical error. |
Lucasiangrey:Ok. Can you install JDK1.8? You can download the Netbeans 8.2 and Java8 bundle here: http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html Once you do so, buzz me. |
laskilala:Ok, coming off the horse now. Assuming the OP didn't post a very vague question, Compiler error's shouldn't depend on IDEs. I suspect you may have had a problem using Codeblocks before, and you resolved that problem by doing what you prescribed to the OP; fine. Codeblocks actually invokes your compiler toolchain using options from its "build system", or options specific to the active project. The invocation of the "gcc" or "g++" compiler is just an abstraction of the real deal. For GCC, calling "g++" or "gcc" doesn't do the compilation; those programs are known as "Compiler Drivers"; a different program does the compilation. For GCC, its another program called "cc1plus" that does the compilation for C++ programs. The drivers are "somewhat" smart; they can invoke the appropriate language compiler simply examining the file extension. Hence I can write a c++ source file, save it as ".mp3" and compile it - however, the g++ compiler driver will be unable to deduce the target language, hence I will need to specify the language with the "-x" flag. The drivers do other things apart from simply invoking the appropriate compiler. ---------------------- @OP princehassan:1. You don't need anyone's Facebook to solve this problem... we are here for you. Ok? 2. What's the error? Can you post your build log? 3. Also post the source code for the program you are trying to compile. (I hope its really small) |
laskilala:Wow. I am stunned by your advice. What in the name of Bjarne Stroustrup is this? ![]() I really wish I had a horse whip to whop you throughout the weekend.. ![]() ----------------------------- ...if there is no syntax error. it will runI find this kinda cute... ![]() |
Lucasiangrey:Wow .. Thank you for the kind compliments. This, and the apparent evidence for your passion has motivated me to go a step further with your project... So, lets attempt improve your work... First, what JDK version are you using? ...or which IDE are you using? And what version? I simply want to confirm whether you can use Java 8 features. |
Jacktheripper:@OP, don't mind this one... He's prolly high on some rare stuff. Stop using nairaland's code feature for long codes... Its crappy... really buggy... Use some other online code pasting services. BTW, where and what is the definition of the function "checkWin();" ...? ![]() |
Sleekydee:- You have a computer. - You have a technical background... (Engineering or Sciences). However, if you don't have such technical background, exceptions are made... but you'll probably need to work a bit harder than others with a technical background ... If you have no technical background, and you've applied, buzz me.The duration is 10 months. You'll need to be available for at least 6months... |
Hi there, nHub Nigeria is currently accepting applications for it's 2018 Fellowship programme. The fellowship programme is actually a boot-camp to groom Software Developers. The current goal is to propel participants to be good Software Developers with strong focus on problem solving. No, there's no guarantee you would be a "World class" Software Engineer solely by the training provided. You would need a lot of hard work and resilience to get there. Currently, the programme covers you on Modern Web Development, and Mobile Apps: - JavaScript on NodeJS; - PHP, using Laravel; - Java and Kotlin, on Android; (Though, in the first month, C++ may be used for algorithm classes, not to worry, you will be taught) The emphasis is on scalable micro-services based architecture, rather than the usual monolithic architecture. COST: - Training cost is incurred by nHub; Hence you pay nothing to nHub. - Training is onsite; You will be responsible for your living costs in Jos, Plateau State, Nigeria (nHub can help you look for a studio apartment) - You will need to put in a lot of efforts, its pretty intense. - Your time, several hundreds of hours of your life. BENEFITS: - Learn a lot of Data Structures Algorithms which will be useful for your career and useful for interviewing at companies of your choice - Get placements in companies within and outside Nigeria; Get handsomely paid for your work; (nHub already has requests for such "contractor" developers) - Complete access to work on any project being handled by the hub; even from the second week, stupid mistakes are very welcomed! - Get tutored live in the industry - Tours, travels, fun, partying, gaming; we don't like people to be overly stern here. WHAT TO EXPECT: - Most parts of the first month is language agnostic; but will have strong focus on developing basic problem solving skills; and learning Computer Architecture; This includes stuffs like how Filesystems work, TCP/IP stack and a lot more. - From, the second month, you will hit the ground running... Every participant will be placed on multiple and concurrent live projects, and be mentored all the way. - Algorithm classes will continue throughout the fellowship programme. - Travels, tours, games, contests - Teaching approach is very practical. nHub management was pleased to see the 2017 fellowship participants being taught sorting algorithms with Decks of Whot cards on the conference table... APPLICATION DEADLINE: 30th September, 2017. (If you are unable to apply before then, please let me know on this Nairaland thread) APPLY HERE: http://nhubnigeria.com/fellowship/ I currently work for nHub Nigeria; If you have questions, please ask. Regards, Timothy |





