Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,459 members, 7,808,637 topics. Date: Thursday, 25 April 2024 at 02:35 PM |
Nairaland Forum / Kudaisi's Profile / Kudaisi's Posts
(1) (2) (3) (4) (5) (6) (7) (8) (9) (of 9 pages)
Programming / Re: Please Advise Me! by kudaisi(m): 7:49pm On May 14, 2020 |
Who do you think came up with the core of maths libraries you code with ? Even encryption systems are based on maths. I have a friend who is a doctor but hasn't practiced in years. He runs a company that develops software based health management systems. I studied Computer Science, but I wish I majored in Maths. It wouldn't change anything since I'm self taught (like you). But every now and then, I find my self having to go back to catch up with the maths I missed out on while studying Comp Sci in Nigeria. Mind you, so called "boring" x and y determines how you transform coordinates in reality to other planes like 2D or 3D amogst other applications. Boy!! I wish you've worked with geospatial systems, you'll realize then that the Nigerian Comp Sci classes are mostly jokes. You'll wish you new more maths. The point is, you don't even need to be a graduate to be a programming guru. Honestly, mathematics is the next best thing for a developer. |
Programming / Re: Python Won't Install On Laptop by kudaisi(m): 7:22am On Apr 21, 2020 |
Did you mean to use myName = input()in line 3 ? In which case the value you enter in the terminal will be assigned to variable myName and you can then subsequently print the value as you wish. print('Good to see you, '+myName) |
Programming / Re: . by kudaisi(m): 2:02am On Oct 20, 2019 |
More details please, Web App, Mobile, Desktop ? JavaFX, Servlets, JSP, JSF ? Even better, share some code. But theoretically, I would save my state values somewhere, maybe a DB, or In-Memory When a control interaction occurs, I'll update the state, For every page Load, Focus....I'll update the controls with the values from the state 1 Like |
Programming / Re: Somebody Should Help Me Answer This Programming Question by kudaisi(m): 5:51pm On Sep 19, 2019 |
grossintel: C++ ? do you mean Unreal Engine ? Meanwhile OP, what you are looking for is Graphical User Interface (GUI) programming in C++. There are a lot of GUI frameworks in C++, most popular (in my opinion) cross-platform frameworks being Qt [url]https://www.qt.io/ [/url] and WxWidgets http://wxwidgets.org/. FYI, people built these frameworks from the same calculator knowledge. Your either rendering pixels based on\all matrices, or maybe using Affine transforms, calculating Bézier curves, interpolations........ |
Programming / Re: Blocky Coding by kudaisi(m): 5:28pm On Jun 21, 2019 |
stanliwise:I was wondering same. Closest to it is Google's javascript library Blockly. |
Programming / Re: Java Programmers Plz Help Out by kudaisi(m): 8:38am On Jun 03, 2019 |
asalimpo: Sum total is synonymous to grand total. Furthermore, according to Webster dictionary Sum total is a total arrived at through the counting of sumsWhile Cambridge dictionary has it as The sum total of something is the whole of it, or everything So can you please clarify this statement ? but you cannot say "sumtotal"FYI, English was besides the point of the post, and even if it was an error, I fail to see how it affects the message passed in the post. |
Programming / Re: Java Programmers Plz Help Out by kudaisi(m): 7:29pm On Jun 02, 2019 |
I know this is outside the scope of your question and since I don't know how your application works I shouldn't be too quick to judge. But I'm concerned about how you implemented the Cart functionality in your application, considering it requires you to pull up entities from a JTable or JTextArea when you need to get the sum total. For one, I see performance issues if your application gets bigger (remember Big O notation, considering the cost of looping every time you need a total), secondly your implementation will eventually make you code hardly reusable. For me, the idea would be that I should be to use the same Cart class in a Java SE or Java EE application with little or no changes (which can be achieved by inheritance), hence I would avoid tying items directly to my view. Correct me if I am wrong, but isn't the normal workflow to have a list of entities somewhere, then use it as a model for a view component where required rather than adding items to the view directly. For example, if I was going to implement something like that, I would probably have a class Cart that defines a method void addItem(ICartItem item), void removeItem(ICartItem item) and a int getSumTotal(), subsequently, each time I want to add an item to a cart I will simply call the addItem method which will in turn add the item to a list in the Cart and add the cost of that item to the a sumTotal variable within the Cart class, while the removeItem method will do the reverse. This way I have my sum total on-the-fly anytime I need it at no extra computational cost. So, to display in a JTextArea for example I would simple override the toString method (native to all Java classes) of the Cart class so that I can easily update the JTextArea by doing someTextArea.setText(someCart) and for the JTable I would then use the list of items as a model for the a JTable such that updating the list, updates the table. PS: These are just my opinions, it doesn't make it any better that what you might have implemented, but given the facts... , I hope you find this helpful. 2 Likes |
Programming / Re: Using Repository Pattern And Dependency Injection With ASP.NET MVC And EF by kudaisi(m): 6:49pm On Jun 02, 2019 |
Nice on bro, however, shouldn't you be making tutorials on .Net Core rather than .Net Framework, since .Net Core ports both ASP.Net and EF. According to Microsoft https://devblogs.microsoft.com/dotnet/net-core-is-the-future-of-net/ New applications should be built on .NET Core. .NET Core is where future investments in .NET will happen. Existing applications are safe to remain on .NET Framework which will be supported. Existing applications that want to take advantage of the new features in .NET should consider moving to .NET Core. I'm particularly worried about beginners picking up .Net framework where there should be beginning with .Net Core since its appears to be the furture of .Net. |
Programming / Re: How To Create A Motion-detection Camera Using Arduino, Webcam And Pir Sensor by kudaisi(m): 5:37pm On Jun 02, 2019 |
Generally speaking, Arduino boards are not capable of processing video data. If you were to use an Uno (for example) to record from a camera, it will take between 10-20s (maybe more or less) to save each frame in you memory card. However, If for some reason you insist on using an Arduino, I would recommend that you acquire a video recorder/mini DVR (this things come in many names) with cables for the external connections to act as an interface between your Arduino and the camera. Alternatively, you can get a module that transfers the video streams directly to a server using a network, then your Arduino has to only worry about detecting the time motion was detected. Subsequently, you can then cross reference that time with the video on your server. OCDAY DVR is one of such Mini DVRs https://www.aliexpress.com/item/OCDAY-ProDVR-Pro-DVR-Mini-Video-Audio-Recorder-FPV-Recorder-RC-Quadcopter-Recorder-For-FPV-RC/32842952584.html |
Programming / Re: Having Problem With Glassfish. by kudaisi(m): 3:27am On Apr 30, 2019 |
stanliwise: Remember that GlassFish is a Java EE implementation ? and Java EE is way beyond JSP alone, is JSF (which is just one framework out of many bundled within) outdated too ? How about helping with the GlassFish issue first before advising the OP on which framework to use. Anyway OP, ensure you can setup GlassFish as a server in eclipse by adding it as a server from the menu Windows\Show view\Other\Server\Servers then add new, select GlassFish add supply required details (you can add new adapters if GlassFish option is not presented in the dialog). Note: I'm assuming that you have Eclipse WTP (Web Tool Platform) setup. 1 Like 1 Share |
Programming / Re: Help In Create Virtual Environment For Python by kudaisi(m): 8:27am On Apr 11, 2019 |
What I do is to simply install both and add the python installation folder to PATH (located in the environment variable in window). The conflict now would be that you have 2 "python.exe" in your path. So to resolve that I go back and rename the "python.exe" executable for Python27 to "python2.exe". That way, when I execute > python something (python 3 works it way) > python2 something (in this case, python2 gets called) |
Programming / Re: How Do I Implement A Contact Page In ASP.NET/C#? by kudaisi(m): 3:32pm On Apr 10, 2019 |
If this is for MVC core, simply create a model, say for example
Then simply create migrations/scaffolding from this to create the database, controller and view without having to writing additional code |
Programming / Re: Developers In The House, Show Us What You're Currently Working On by kudaisi(m): 11:12am On Apr 10, 2019 |
RCP Lite A minimalist Rich Client Platform inspired by Netbeans Platform. The framework gives you the ability to develop dockable applications while focusing only on the core functionalities required by your application. Dockable components, menus, tools, modules can be created by simply annotating classes. https://github.com/yemikudaisi/RCP-Lite
|
Programming / Re: Php File Handling Help Needed by kudaisi(m): 11:53am On Mar 30, 2019 |
searched google for "php login flat file" to save our time and they were so many examples.... [url] https://steemit.com/utopian-io/@akintunde/how-to-build-a-login-registration-system-in-php-using-a-flat-file-database[/url] |
Programming / C# Programming Assistant Needed In Abuja by kudaisi(m): 3:41pm On Dec 05, 2018 |
In need a a programmer to work with me on a project. It's an ongoing project, but I am a little preoccupied with other projects so I need some assistance. The project shouldn't last more than a month, a down payment will be made so anybody looking for some quick Christmas should get in. I Need someone proficient with C#. Windows Presentation Foundation (WPF) and MVVM will be an added bonus. However. I don't mind sparing sometime to coach the person on WPF and MVVM. THE PERSON MUST LIVE ABUJA AND WILLING TO WORK ONSITE DURING THE WEEK. |
Programming / Re: Java Programming Tools Used In Application Development by kudaisi(m): 12:13pm On Sep 28, 2018 |
adeoyeyemi:Depending on the nature of your project, there's a community edition for free. |
Programming / Re: . by kudaisi(m): 12:27am On Sep 23, 2018 |
asalimpo: So what's the AES and brute force protection about ? |
Programming / In Need Of A Mobile Developer by kudaisi(m): 4:50pm On Sep 19, 2018 |
Please any experienced developer capable of developing an app (for IOS and Android) such as Channel's TV iWitness should please contact me. I would like to meet the person today (if possible), so it is required that the person is located in Abuja. I don't even mind an app powered by the web wrapped within a WebView, any one that works for you as long as you and can get the App running within the required time. Please email me at contact@yemikudaisi.online and I'll give you a call. |
Programming / Re: Php Vs Python by kudaisi(m): 3:48pm On Sep 16, 2018 |
Raypawer:.I'm just seeing this post, though my intention was not to condemn, I can't help the urge to reply. Asides the generalization as HLLs, when I said interpreted, I didn't mean it was interpreted the way python's code was. But the fact that the bytecode (which was compiled), can be interpreted at runtime (which is the possible instance I was referring to) or converted to native code ahead of time. |
Programming / Re: Lets Talk About C# by kudaisi(m): 10:37am On Sep 13, 2018 |
airsaylongcon: Code written for .Net core is portable across application stacks, such as Mono. As long as that code doesn't rely on WinAPI-calls, Windows-dll-pinvokes, COM-Components, a case-insensitive file system and doesn't have directory separator issues, that's correct. However, .NET Core code runs on .NET core, and not on mono. So mixing the two will be difficult. |
Programming / Re: Lets Talk About C# by kudaisi(m): 3:55pm On Sep 11, 2018 |
kaypompee:I never inferred that it was invalid, I only quoted it as an addition to the points earlier stated. |
Programming / Re: Lets Talk About C# by kudaisi(m): 10:39pm On Sep 09, 2018 |
kaypompee:winForms is based on the underlying windows controls provided via Win32/WinAPI. But WPF doesn't, it was built from scratch and doesn't rely one windows controls, you can pretty much build any control with WPF. The beauty of WPF is the flexibility it offers for building UI and it's data binding capabilities. |
Programming / Re: Lets Talk About C# by kudaisi(m): 10:27pm On Sep 09, 2018 |
kaypompee:There is a framework called AvaloniaUI, it does pretty much that with little difference, uses a css like styling rather that the XML based XAML. It's a young project but it seems promising and stable. 1 Like |
Programming / Re: Simple Form Validation In Reactjs Example by kudaisi(m): 5:27pm On Sep 08, 2018 |
skptricks:Once again, In an ideal react world , a register form container should handle the validation while the registration form itself should only worry about the view (I.e stateless, maybe a functional component). |
Programming / Re: Lets Talk About C# by kudaisi(m): 5:14pm On Sep 08, 2018 |
kaypompee:Note that I explicitly stated cross platform, as far as I know WPF is not yet supported. So what is the closest alternative ? |
Programming / Re: Lets Talk About C# by kudaisi(m): 7:26pm On Sep 06, 2018 |
What's the closest alternative to WPF with C# on .Net core for cross platform development ? |
Programming / Re: I Need Details Of Using Multiple Classes In A Java File. by kudaisi(m): 10:05am On Aug 17, 2018 |
Bambillo:Glad you think so of me. Unfortunately, I'm in Lagos. But, hey! everybody is online these days. I'll check on you. SilverG33k:I'll call bro. |
Programming / Re: I Need Details Of Using Multiple Classes In A Java File. by kudaisi(m): 9:39pm On Aug 01, 2018 |
The first problem should be the WHY and not the HOW. HOW can easily be googled, so i wont be doing you justice by just telling you how (FYI the concept is called inner classes in Java). So allow me touch on the WHY before the HOW. PS: They don't need to be in the same file, it always better to separate your concerns in Java parlance. That said, I'm going to try to be as practical as possible without dwelling too much about specifics. For more details i suggest you do an initial read on OOP and then more specifically OOP in java. You know like they say in OOP "Every thing is an Object". Focus on your problem, if everything is an object, then all the types of account should be objects, meaning they will all require a class. All the classes have things in common apart from just being an type account. Lets say, for each of them: - All account types are created by providing an initial amount. - They should be able to carry out the following actions..say for example deposit and withdraw only. - Also, each class should be able to keep track of their balance - Finally, lets assume the only difference between checking and savings account is the limit on withdrawal. In checking account your minimum balance is 10k, so this needs to be ensure when opening the account and during withdrawal for checking accounts. In OOP since they all have basic functionalities that they share, it implies that they should share a base class or an interface. But because we want to share some of the core functionalities (specifically codes) amongst all the account types we'll go for an abstract class(meaning the class cannot be instantiated on its own unless inherited) So we''ll create a class called Account and implement everything the accounts have in common within and make the required functions that they carry out differently abstract: abstract public class Account{ // **similarity - Each class should be able to keep track of their balance // ** secondly we make it protected so child classes can access it and use it for withdrawal Protected double balance // **similarity - All account types are created by providing an initial amount. So we can implement it in the Base constructor. public Account(float initialDeposit){ balance = initialDeposit; } // To satisfy Encapsulation in OOP we provide a getter to the account // Notice how we've provided only a public getter and no setter // we dont want people tampering with the balance from outside, so we // keep it internal public float getBalance(){ retrun this.balance; } // **similarity - The protocol for deposit is the same // for that reason we implement it it the base class public void deposit(float amount){ balance += amount } // This is specific to account types so we make it abstract: // - First it ensures that all account types implement it // - It allows all account types to implement them the way the want abstract public void withdrawal(float amount); } I need some feedback, so I'm going to stop here for now. Just to make sure you understand so far. When I get a response I'll go further. |
Programming / Re: Meaning Of Java Platform SE Binary by kudaisi(m): 3:59am On Jul 31, 2018 |
Are you a bot ? 1 Like |
Programming / Re: I Am Tired Of This by kudaisi(m): 10:09pm On Jul 30, 2018 |
sas101: My bad, didn't know you were referring to a data plan (So much for the long story >< ). |
Programming / Re: I Am Tired Of This by kudaisi(m): 1:08pm On Jul 30, 2018 |
sas101: I'm a little bit confused about your request, but I'm assuming that you want a situation whereby users of your website get an sms feedback when they place an order on you website. The simplest and most reasonable (even more economical, because the rate will be way lesser than whats being charged by you local operator) is to just go ahead and sign up for a text messaging service (why would you I want to stress my self by connecting a webpage to my sim card when I can get cheaper options with easily accessible APIs off the market). If you must however connect to you sim card (and you insist on implementing yourself), off the top of my hat. The first thing that comes to mind is to develop a mobile app that feeds off a service provided by your web application. That way, whenever a new order is concluded, the web service can queue the order details and recipients number somewhere and post an sms request to the app. The app then picks up items from the queue and sends them to the appropriate recipient. Another option in the same line, if you want a dedicated device for the message sending. Then you could use Arduino with WIFI and GSM shields (Hacking this should be easier than the whole mobile app wahala). But what I would recommend that you use one of the commercially available sms providers online. Its easier and cheaper to setup. Here's an example of what it takes to send an sms with twilio (Some might even offer it for free, because it gives them access to you bank of phone numbers, which is a big market in recent times). But paid versions will however give you more features such as schedules messages, birthday messages, newsletters, virtual phone numbers and the ability to add shortened urls to your sms (may be a url to the clients order).
PS: The same code can be written in python, C#, java, php and ruby Happy hacking. 1 Like |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (of 9 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. 78 |