Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,676 members, 7,955,490 topics. Date: Sunday, 22 September 2024 at 07:23 AM |
Nairaland Forum / Davidsmith8900's Profile / Davidsmith8900's Posts
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (of 12 pages)
Programming / Re: Nairaland Has Multi-Billion Dollar Potential Startup Value If Taken Seriously by davidsmith8900: 8:05pm On Jul 31, 2014 |
curiouslad: So if I may ask, what is the difference between Reddit and Nairaland? To me it seems only the customers and the user interface? Or what do you think? |
Programming / Re: Nairaland Has Multi-Billion Dollar Potential Startup Value If Taken Seriously by davidsmith8900: 8:03pm On Jul 31, 2014 |
Djtm: I really dont understand that "yahoo is a website with no description". Can you please explain further? What if Nairaland had its own email service with an additional file upload service. Could it be Dropbox, Gmail & Yahoo in the Nigerian Market? I think so. It can even reign in the African market. U have some Ghanians who come to Nairaland. |
Programming / Re: Nairaland Has Multi-Billion Dollar Potential Startup Value If Taken Seriously by davidsmith8900: 8:01pm On Jul 31, 2014 |
ClintonNzedimma: Its what you guys think. What do you think Mr. ClintonNzedimma? Do you think Nairaland has a shot at being a billion dollar startup? I think that by now Nairaland should have about 50 million users all or majority from Nigeria and the rest from the Diaspora in UK or USA. Nairaland just needs to step up their game. Add features here and there, and market better. As well as work on their user interface. |
Programming / Re: Nairaland Has Multi-Billion Dollar Potential Startup Value If Taken Seriously by davidsmith8900: 7:59pm On Jul 31, 2014 |
GodMode: GodMode I believe you can, but the question is how long will it take you to get the million hits per day that Nairaland receives? Like anyone can build a forum but getting people on it, is something else. Also, what you fail to realize is that Nairaland is like a big fish in a pond of small fish while Warrior Forum is more less like a big fish in a pond of other big fish. Like be realistic, who do you think has a better chance of survival? Nairaland just needs to hurry up before it has competitors. |
Programming / Re: Nairaland Has Multi-Billion Dollar Potential Startup Value If Taken Seriously by davidsmith8900: 7:56pm On Jul 31, 2014 |
SpaceGoat: do you think it good business you sound like you know thing about bussines management and profit return , i like people who kmow thing about bussiness manage and profit return !! do you read it in skul? is youre pm working?? re you still student? if Personally, I think it's good business. I mean think about. This is a forum that gets million hits per day. Like what else do you need. It just needs to be upgraded. |
Programming / Re: How Dyu Play Mp3 files In Java? by davidsmith8900: 9:48pm On Jul 24, 2014 |
asalimpo: You are welcome, you've been helpful too me on many occasions. |
Programming / Re: NEWBIE Into Programming; Need Help by davidsmith8900: 8:35pm On Jul 24, 2014 |
youngestpr: What help exactly do you need? There is a thread somewhere up there if what you want to know is which programming language to start with Great answer. OP, can you please be more clear and let us know what u need help with and what you are trying to learn? Also what type of system did u buy, so we can help you out. |
Programming / Re: C++ Experts Please Come To My Aid.... by davidsmith8900: 8:20pm On Jul 24, 2014 |
Ezechinwa: i will read up the links... and buy enough mb for watch the video.. thanks What is your input? Can we see a source code? What do you have, so you wont have to buy enough mb just to watch a video. |
Programming / Re: C++ Experts Please Come To My Aid.... by davidsmith8900: 8:12pm On Jul 24, 2014 |
Ezechinwa: Okay, I see what you are saying. The input is an equation or certain x/y data and as an output you want to find an equation. Here is a video that can get you started ~> https://www.youtube.com/watch?v=VvPBbNNMC-A Here are 2 topics that have answered your question before: A. http://stackoverflow.com/questions/2982167/integration-math-in-c B. http://stackoverflow.com/questions/1564543/c-math-library-with-integration This tutorial might be able to help you out ~> http://www.cplusplus.com/doc/tutorial/variables/ THIS LOOKS LIKE WHAT YOU ARE LOOKING FOR ~> http://www.cplusplus.com/forum/beginner/91632/ BUT DOUBLE CHECK ME ON THAT. |
Programming / Re: A First Time Programmer Needs Help In Python by davidsmith8900: 8:04pm On Jul 24, 2014 |
Here Are 10 Free Books For Python 1. An Introduction To Python For Absolute Beginners ~> http://www.ucs.cam.ac.uk/docs/course-notes/unix-courses/PythonAB/files/handout.pdf 2. Beginning Game Development In Python ~> http://filepi.com/i/nYTMhpK 3. Beginning Python ~> http://filepi.com/i/P70ByLF 4. Hands-On Python: A Tutorial For Beginners ~> http://www.nervenet.org/pdf/python3handson.pdf 5. Learning Python ~> http://filepi.com/i/pRrwxJS 6. Python & AWS Cookbook ~> http://filepi.com/i/rV3DHiN 7. Python Algorithms ~> http://filepi.com/i/IvXw4B0 8. Python For Absolute Beginners ~> http://filepi.com/i/L6Tcsms 9. Python For Dummies ~> http://neerci.ist.utl.pt/~neerci.daemon/neerci_shelf/LERC/1%20Ano/1%20Semestre/Fundamentos%20da%20Programacao/Bibliografia/Python%20For%20Dummies.pdf 10. Python Programming For Absolute Beginner ~> http://lgm.fri.uni-lj.si/PA/PYTHON/PythonProgrammingfortheAbsoluteBeginner.pdf |
Programming / Re: Matlab: A Program For Mathematicians? by davidsmith8900: 8:02pm On Jul 24, 2014 |
Matlab is better than Java in CV (Computer Vision) beacuse Java is slow when doing CV but majority of the time Java is better and cheaper, if not free. Matlab is expensive. |
Programming / Re: Please Help!!! by davidsmith8900: 7:58pm On Jul 24, 2014 |
jerryboiii: Please I'm back again,sorry for asking too much questions...How can I send an email message to multiple people at a time without without d receiver seeing the email addresses of others...Thanks.... A simple answer is to BCC (Blind Carbon Copy) it. THIS IS FOR MICROSOFT OUTLOOK ~> http://www.howtogeek.com/185233/how-to-hide-email-addresses-when-sending-to-multiple-recipients-in-outlook-2013/ THIS IS FOR GMAIL ~> https://support.google.com/mail/answer/57143?hl=en THIS IS IN GENERAL ~> http://email.about.com/od/emailmanagementtips/qt/How_to_Send_an_Email_to_Undisclosed_Recipients.htm If those top 3 dont answer your question, then this might help ~> https://www.google.com/search?q=how+to+hide+email+addresses+when+sending+a+group+email&oq=how+to+hide+email+addresses+when+&aqs=chrome.1.69i57j0l5.8838j0j7&sourceid=chrome&es_sm=93&ie=UTF-8 |
Programming / Re: C++ Experts Please Come To My Aid.... by davidsmith8900: 7:55pm On Jul 24, 2014 |
Ezechinwa: hello guys, am kinda new to this awesome compiler called cplusplus, so far so good have written few programs on a cgpa calculator, etc... but i discovered that my knowledge on c++ is mainly on the input/output platform,,, ok see what i mean, i want to start writting programs on Calculus, for example What are you trying to display as output? The graph? The equation? The final answer? Can u please be more clear on your questions, if you want it answered? |
Programming / Re: How Dyu Play Mp3 files In Java? by davidsmith8900: 7:53pm On Jul 24, 2014 |
Programming / Ebola App Challenge/Competition - Disease App That Will Prevent African Genocide by davidsmith8900: 7:10pm On Jul 24, 2014 |
As we all know Ebola is on the rise, what about if we had an app challenge/competition to create an app that can detect Ebola, cure Ebola and prevent Ebola. |
Programming / Re: How Dyu Play Mp3 files In Java? by davidsmith8900: 4:02am On Jul 24, 2014 |
Play mp3 file in Java ~> http://java-demos..com/2012/11/java-code-to-play-mp3-file.html |
Programming / Is It That Most Nigerians Can't Afford The Internet Or They Dont Want It? by davidsmith8900: 5:59am On Jul 23, 2014 |
According To This Link ~> http://www.internetworldstats.com/af/ng.htm Back In 2011, Only 28.5% of the population use the internet. I recently did a google search and only 32.6% are on the internet. Is that Nigerians, want to be on the internet and they can't afford it? Or they dont find it useful? Or is the internet just so bad that some people have given up on it? |
Programming / Re: Best Nigerian Cities For Starting A Tech Start-up by davidsmith8900: 5:57am On Jul 23, 2014 |
asalimpo: Nice. Thanks for the explanation. I guess the next question is what type of apps will sell in 9ja? 1 Like |
Programming / Javascript For Java Developers by davidsmith8900: 3:33pm On Jul 19, 2014 |
Link ~> http://blog.jhades.org/javascript-for-java-developers/ This post will go over the Javascript language from the point of view of a Java developer, focusing on the differences between the two languages and the frequent pain points. We will go over the following: Objects Only, No Classes Functions are just Values The 'this' Keyword Classic vs Prototypal Inheritance Constructors vs Constructor Functions Closures vs Lambdas Encapsulation and Modules Block Scope and Hoisting Why Javascript in the Java World ? A lot of Java frontend development work is done using Java/XML based frameworks like JSF or GWT. The framework developers themselves need to know Javascript, but in principle the application developers don't. However the reality is that: For doing custom component development in for example Primefaces (JSF), it's important to know Javascript and jQuery. In GWT, integrating at least some third-party Javascript widgets is common and cost effective. The end result is that Javascript is usually needed to do at least the last 5 to 10% of frontend work, even using Java frameworks. Also it's starting to get more and more used for polyglot enterprise development, alongside Angular for example. The good news is that, besides a few gotchas that we will get into, Javascript is a very learneable language for a Java developer. Objects Only - No Classes One of the most surprising things about Javascript is that although it's an object oriented language, there are no classes (although the new Ecmascript 6 version will have them). Take for example this program, that initializes an empty object and set's two properties: ? 1 2 3 4 5 // create an empty object - no class was needed !! var superhero = {}; superhero.name = 'Superman'; superhero.strength = 100; Javascript objects are just like a Java HashMap of related properties, where the keys are Strings only. The following would be the 'equivalent' Java code: ? 1 2 3 4 Map<String,Object> superhero = new HashMap<>(); superhero.put("name","Superman" superhero.put("strength", 100); This means that a Javascript object is just a multi-level 'hash map' of key/value pairs, with no class definition needed. Functions Are Just Values Functions in Javascript are just values of type Function, it's a simple as that! Take for example: ? 1 2 3 4 5 var flyFunction = function() { console.log('Flying like a bird!'); }; superhero.fly = flyFunction; This creates a function (a value of type Function) and assigns it to a variable flyFunction. A new property named fly is then created in the superhero object, that can be invoked like this: ? 1 2 // prints 'Flying like a bird!' to the console superhero.fly(); Java does not have the equivalent of the Javascript Function type, but almost. Take for example the SuperHero class that takes a Power function: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public interface Power { void use(); } public class SuperHero { private Power flyPower; public void setFly(Power flyPower) { this.flyPower = flyPower; } public void fly() { flyPower.use(); } } This is how to pass SuperHero a function in Java 7 and 8: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 // Java 7 equivalent Power flyFunction = new Power() { @Override public void use() { System.out.println("Flying like a bird ..." } }; // Java 8 equivalent superman.setFly( ()->System.out.println("Flying like a bird ..."); superman.fly(); So although a Function type does not exist in Java 8, this ends up not preventing a 'Javascript-like' functional programming style. But if we pass functions around, what happens to the meaning of the this keyword? The 'this' Keyword Usage What Javascript allows to do with this is quite surprising compared to the Java world. Let's start with an example: ? 1 2 3 4 5 6 7 8 9 10 var superman = { heroName: 'Superman', sayHello: function() { console.log("Hello, I'm " + this.heroName ); } }; superman.sayHello(); This program creates an object superman with two properties: a String heroName and a Function named sayHello. Running this program outputs as expected Hello, I'm Superman. What if we pass the function around? By passing around sayHello, we can easily end up in a context where there is no heroName property: ? 1 2 3 var failThis = superman.sayHello; failThis(); Running this snippet would give as output: Hello, I'm undefined. Why does this not work anymore? This is because the variable failThis belongs to the global scope, which contains no member variable named heroName. To solve this: In Javascript the value of the this keyword is completely overridable to be anything that we want! ? 1 2 // overrides 'this' with superman hello.call(superman); The snippet above would print again Hello, I'm Superman. This means that the value of this depends on both the context on which the function is called, and on how the function is called. Classic vs Prototypal Inheritance In Javascript, there is no class inheritance, instead objects can inherit directly from other objects. The way this works is that each object has an implicit property that points to a 'parent' object. That property is called __proto__, and the parent object is called the object's prototype, hence the name Prototypal Inheritance. How does prototype work? When looking up a property, Javascript will try to find the property in the object itself. If it does not find it then it tries in it's prototype, and so on. For example: ? 1 2 3 4 5 6 7 8 9 var avengersHero = { editor: 'Marvel' }; var ironMan = {}; ironMan.__proto__ = avengersHero; console.log('Iron Man is copyrighted by ' + ironMan.editor); This snippet will output Iron Man is copyrighted by Marvel. As we can see, although the ironMan object is empty, it's prototype does contain the property editor, which get's found. How does this compare with Java inheritance? Let's now say that the rights for the Avengers where bought by DC Comics: ? 1 avengersHero.editor = 'DC Comics'; If we call ironMan.editor again, we now get Iron Man is copyrighted by DC Comics. All the existing object instances with the avengersHero prototype now see DC Comics without having to be recreated. This mechanism is very simple and very powerful. Anything that can be done with class inheritance can be done with prototypal inheritance. But what about constructors? Constructors vs Constructor Functions In Javascript an attempt was made to make object creation similar to languages like Java. Let's take for example: ? 1 2 3 4 function SuperHero(name, strength) { this.name = name; this.strength = strength; } Notice the capitalized name, indicating that it's a constructor function. Let's see how it can be used: ? 1 2 3 var superman = new SuperHero('Superman', 100); console.log('Hello, my name is ' + superman.name); This code snippet outputs Hello, my name is Superman. You might think that this looks just like Java, and that is exactly the point! What this new syntax really does is to it creates a new empty object, and then calls the constructor function by forcing this to be the newly created object. Why is this syntax not recommended then? Let's say that we want to specify that all super heroes have a sayHello method. This could be done by putting the sayHello function in a common prototype object: ? 1 2 3 4 5 6 7 8 9 10 11 function SuperHero(name, strength) { this.name = name; this.strength = strength; } SuperHero.prototype.sayHello = function() { console.log('Hello, my name is ' + this.name); } var superman = new SuperHero('Superman', 100); superman.sayHello(); This would output Hello, my name is Superman. But the syntax SuperHero.prototype.sayHello looks anything but Java like! The new operator mechanism sort of half looks like Java but at the same time is completely different. Is there a recommended alternative to new? The recommended way to go is to ignore the Javascript new operator altogether and use Object.create: ? 1 2 3 4 5 6 7 8 var superHeroPrototype = { sayHello: function() { console.log('Hello, my name is ' + this.name); } }; var superman = Object.create(superHeroPrototype); superman.name = 'Superman'; Unlike the new operator, one thing that Javascript absolutely got right where Closures. Closures vs Lambdas Javascript Closures are not that different from Java anonymous inner classes used in a certain way. take for example the FlyingHero class: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public interface FlyCommand { public void fly(); } public class FlyingHero { private String name; public FlyingHero(String name) { this.name = name; } public void fly(FlyCommand flyCommand) { flyCommand.fly(); } } We can can pass it a fly command like this in Java 8: ? 1 2 3 String destination = "Mars"; superMan.fly(() -> System.out.println("Flying to " + destination )); The output of this snippet is Flying to Mars. Notice that the FlyCommand lambda had to 'remember' the variable destination, because it needs it for executing the fly method later. This notion of a function that remembers about variables outside it's block scope for later use is called a Closure in Javascript. For further details, have a look at this blog post Really Understanding Javascript Closures. What is the main difference between Lambdas and Closures? In Javascript a closure looks like this: ? 1 2 3 4 5 6 7 var destination = 'Mars'; var fly = function() { console.log('Fly to ' + destination); } fly(); The Javascript closure, unlike the Java Lambda does not have the constraint that the destination variable must be immutable (or effectively immutable since Java . This seemingly innocuous difference is actually a 'killer' feature of Javascript closures, because it allows them to be used for creating encapsulated modules. Modules and Encapsulation There are no classes in Javascript and no public/ private modifiers, but then again take a look at this: ? 1 2 3 4 5 6 7 8 9 10 function createHero(heroName) { var name = heroName; return { fly: function(destination) { console.log(name + ' flying to ' + destination); } }; } Here a function createHero is being defined, which returns an object which has a function fly. The fly function 'remembers' name when needed. Continue ~> http://blog.jhades.org/javascript-for-java-developers/ |
Webmasters / Re: Who Knows The Code For An Email Extractor by davidsmith8900: 3:01pm On Jul 19, 2014 |
Weselion: ok, I used a phone to download it, I will check what's in it Ok, please do and give us feedback so that we may know whats going on. |
Programming / Re: There Are 11 Million Nigerians On Facebook But 1.2 Million On NairaLand, WHY? by davidsmith8900: 2:20pm On Jul 19, 2014 |
pjosh1: It's funny how people compare nairaland with facebook...it's just like you comparing warriorsforum with linkedin. Personally I think that NairaLand is way bigger than Facebook + Topix. Or how do u feel? NairaLand = CraigsList + Google + Facebook + Twitter. By now, NairaLand should be a billion dollar startup. I just feel as if certain things need to be implemented in the startup as well as the management needs to be more competitive. |
Programming / Are There Nairaland APIs (Application Programming Interfaces) That We Can Use? by davidsmith8900: 2:15pm On Jul 19, 2014 |
Good Afternoon & Happy Saturday Everyone (& Mr. Seun), I believe that Nairaland is more than just an online community. It is like the CraigsList + Twitter + Facebook + Google of Nigeria all in one. With data mining and algorithms, many of the data on Nairaland can be used to predict certain things, as well as give the internet a great information of whats going on in Nigeria at the present time. As it has been said before, DATA IS THE NEW OIL OF NIGERIA. Thus are there any Nairaland APIs that I or some other may use in order to develop apps that may help or benefit our society? |
Webmasters / Re: Who Knows The Code For An Email Extractor by davidsmith8900: 2:09pm On Jul 19, 2014 |
Weselion: Thanks for your help, I found one but the problem is, its in zip format and I need it in html code. does not accept zip files or plugins When you say that it is in zip format, are u trying to say that it is a zip file? Did u extract the files and see whats in it? |
Webmasters / Re: Who Knows The Code For An Email Extractor by davidsmith8900: 11:50pm On Jul 18, 2014 |
Weselion: Hello fellow webmasters, please I want to add an Do u have a specific programming language? Like do u want it in Java, JS, PHP or Python? If not, plz check these open source sites. They might be able to help you out: GitHub (email extractor) ~> https://github.com/search?q=email+extractor&ref=cmdform Google Code (email extractor) ~> https://code.google.com/hosting/search?q=email+extractor&sa=Search SourceForge (email extractor) ~> http://sourceforge.net/directory/os:linux/freshness:recently-updated/?q=email%20extractor |
Programming / Re: If Possible, Mr. Seun Should Plz Remove Clutter Of Sticky Old Threads Or Topics by davidsmith8900: 10:56pm On Jul 18, 2014 |
Nastydroid: it is ok this way To you it is, since this is an online community, lets see how others feel and from there we will move forward. |
Programming / Re: Phonegap!!!! by davidsmith8900: 10:53pm On Jul 18, 2014 |
martfrank: Please what is the reliability of PHONEGAP and other services? I can't speak for others but as for me it is reliable and pretty nice. I think it really depends on what you are trying to use it for. |
Programming / Re: If Possible, Mr. Seun Should Plz Remove Clutter Of Sticky Old Threads Or Topics by davidsmith8900: 10:50pm On Jul 18, 2014 |
Nastydroid: HELL NO...SOME ARE HELPFUL We know some are helpful, thats why they belong somewhere else. Maybe in a 'Helpful' Forum that will be dedicated to helpful stuff, threads and topics. |
Programming / Re: If Possible, Mr. Seun Should Plz Remove Clutter Of Sticky Old Threads Or Topics by davidsmith8900: 10:46pm On Jul 18, 2014 |
Also, if possible Mr. Seun can you please add Karma points to each thread or topic? So that those threads or topics that people think are good for others to read or view will be upvoted and get noticed more? |
Programming / Re: Am Confused About Java And C++ by davidsmith8900: 10:40pm On Jul 18, 2014 |
Where will you like to start? |
Programming / If Possible, Mr. Seun Should Plz Remove Clutter Of Sticky Old Threads Or Topics by davidsmith8900: 10:31pm On Jul 18, 2014 |
Mr. Seun, Good Evening & Happy Friday Sir, I understand that there are important threads that have been sticked to the top, but if possible can you please remove them and put them somewhere else? Like maybe at the bottom, so that me or anyone else wouldn't have to scroll down 4 threads in order to see the freshest or newest threads or topics? Thank you very much and have a Great Weekend Sir. |
Programming / 5 Blogs That Can Tell You About Whats Going On In The Programming World by davidsmith8900: 8:35pm On Jul 18, 2014 |
Programming / 10 Free Python Ebooks So That People Can Learn As They Make Apps by davidsmith8900: 5:39pm On Jul 18, 2014 |
Here Are 10 Books For Python 1. An Introduction To Python For Absolute Beginners ~> http://www.ucs.cam.ac.uk/docs/course-notes/unix-courses/PythonAB/files/handout.pdf 2. Beginning Game Development In Python ~> http://filepi.com/i/nYTMhpK 3. Beginning Python ~> http://filepi.com/i/P70ByLF 4. Hands-On Python: A Tutorial For Beginners ~> http://www.nervenet.org/pdf/python3handson.pdf 5. Learning Python ~> http://filepi.com/i/pRrwxJS 6. Python & AWS Cookbook ~> http://filepi.com/i/rV3DHiN 7. Python Algorithms ~> http://filepi.com/i/IvXw4B0 8. Python For Absolute Beginners ~> http://filepi.com/i/L6Tcsms 9. Python For Dummies ~> http://neerci.ist.utl.pt/~neerci.daemon/neerci_shelf/LERC/1%20Ano/1%20Semestre/Fundamentos%20da%20Programacao/Bibliografia/Python%20For%20Dummies.pdf 10. Python Programming For Absolute Beginner ~> http://lgm.fri.uni-lj.si/PA/PYTHON/PythonProgrammingfortheAbsoluteBeginner.pdf 1 Like |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (of 12 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 85 |