₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,153 members, 8,420,588 topics. Date: Friday, 05 June 2026 at 05:38 AM

Toggle theme

Larisoft's Posts

Nairaland ForumLarisoft's ProfileLarisoft's Posts

1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)

ProgrammingRe: Rastvorlabs Code Week, Ota. by larisoft: 5:43am On Apr 15, 2016
While one week is sufficient to wet their appetites, saying "they ll be taught all they need to know about the Java language" in that time frame is a little dishonest, Dan.

You should have anticipated before posting this that the error will be uncovered and criticised here...what with all the Java devs prowling...

Good luck with the program shaa
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 5:50pm On Apr 14, 2016
Am really grateful for how far this has spread and thought you guys should know that this app is currently being upgraded to incorporate the new features demanded by esteemed users.

The new version amongst other things Will be

1. Very fast: This Will be achieved by preventing repeat messages and closing all background data apps without allowing for 'are you sure dialogs'.


2. Less obtrusive. A widget Will be used to control it now... Not a window....


3. Better ui

4. Notification sounds.

5. Many more...

Pls watch out for it.
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 5:50pm On Apr 14, 2016
.
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op):
adedolapo4:
Sup boss. I downloaded your app and sharperly installed it on my old machine running windows 7. I also sharperly connect am to my phone's hotspot say make I dey flex o, cos na this undergound data chopping prevent me to dey use my laptop dey browse. I expected the app to display the list of those annoying apps consuming my data, but no be so o.
I also launched my mozilla firefox thinking may be the underground data chopping app are yet to surface. I constantly got messages from firefox requesting to close the 'more than one tab' opened, and I also constantly rejected it. after about 30 mins of flexing na so I disconnect am o, as Glo sef no gree make I check my data balance. As I come wan shutdown the machine na so I see say the thing don download updates anyhow! it took it about 15 mins before it was able to shut down.
Abeg shey the app any minimum requirements for the laptop ni, cos I really need this app.
ProgrammingRe: Help Needed by larisoft: 7:21pm On Apr 11, 2016
liliian:
I like this, thanks. After following the instructions



this is what happens when compiling
are u entering '1' rather than 1? do not enter quotation marks pls
ProgrammingRe: Help Needed by larisoft:
here: I wrote a program that does what I described.

It accepts students names and their scores, then it asks the user to select what format the output should be in.
option 1 is FIFO queue, option 2 is priority queue.

Its written in such a way that you can easily add more features by adding more properties to the student class.

will love to hear your feedback.
ProgrammingRe: Help Needed by larisoft: 3:55pm On Apr 11, 2016
Your assignment, as I understand it, requires you to accept students scores, grade them, and output them based on

1. First to submit
2. Highest scorers.

You will use an ordinary queue for the first output method and a priority queue for the second. I imagine the user will have the option of choosing in what format he wants the output from amongst the two options.

I could make this app (console) this evening if I find time on my side. It never hurts to add something to my github account I guess.
ProgrammingRe: How To Hire Good Programmers In Nigeria (an Experience Based Article) by larisoft(op): 3:45pm On Apr 11, 2016
asalimpo:
Yeah, there's a difference but knowing only how to use pre built products - framework/libraries - doesnt
qualify you to bear the title "software engineer" . People who can only cobble together libraries are called
code monkeys/"programmers" in a derogatory sense.
Software engineers, are very sound mathematically, and very hands on. Can architect large applications and know enough science to judge efficiency of algorithms they use.
I know the term has been bastardized by every tom dick and harry coder but your example falls way too short.
Anyway, the more math you know, the more fundamentals you grok, the deeper your insight and the more original your products can be. any aspiring coder should aim to go higher.
I feel you...
ProgrammingRe: JS Script Not Working(for_in Loop) by larisoft: 3:43pm On Apr 11, 2016
asalimpo:
i dont do javascript but
isnt your logic toxic?

for(var i in Players_name)
document.write_Line(" "+i);

players_names is an array of Strings,
so 'i' is a string.
the type 'i' will be string . casting it , and trying to use it as an array indexer will cause casting errors
so chnge the line
"+Players_Name[i])...
it's logically wrong.

Use either the explicit for loop (<int>,<condition>,<int>wink
or the for-in loop (<type> in <collection)

Correct me house if i'm wrong..
See why languages with strong typing are recommended? They make certain kinds of errors impossible to commit.
I see what you mean, bro...but it just doesnt work that way in javascript. IF you run that code, you will see that I is actually just an index...not an array element.
ProgrammingRe: JS Script Not Working(for_in Loop) by larisoft:
<script language="JavaScript">
var Players_Name=new Array()
Players_Name[0]= "L Messi"
Players_Name[1]= "Neymar"
Players_Name[2]= "C Ronaldo"
Players_Name[3]= "Suarez"
Players_Name[4]= "Higuean"
Players_Name[5]= "Kaka",
I;

for(var i in Players_Name);
{
document.write{"The Players are :"+Players_Name[i]+"<br>"};
}
you are using braces instead of brackets here:
document.write { "The Players are : " + Players_Name[i] + "<br>" };

change it to document.write("...."wink ;

also remove the ';' in front of your 'for' statement here

for(var i in Players_Name) ';'

it should be

for(var i in Players_Name) {

}

keep coding, bro.
ProgrammingRe: How Not To Learn Programming by larisoft(op): 11:14am On Apr 11, 2016
eNelo:
Great post @ OP. Three additional unsolicited pieces of advice:
Do not be afraid of bugs
I personally fell for this big time for a while before calming down. I now see bugs as a step forward, because every bug I meet and conquer is one more lesson learned, one more subconscious way of realising how the underlying system works, etc.

Try to crack your bugs for a while before asking for help
I have been a firm believer in this from day one. Theres nothing quite like the journey towards cracking a logical bug. I believe that if you do not enjoy this or at least stick to trying as hard as you can and researching the net and books and thoroughly debugging your code before asking for help, then maybe programming is not for you.

Be ready to pay your dues
One, two or even ten projects does not a great programmer make. If you ever want to surpass mediocrity as a coder,you must be in for the long run; ready to stay up late, read like a maniac, code even more and have the computer tell you over and over again, just how limited your capacity as a human is.
mmm... am always happy to criss-cross productive opinions like we are doing now.
ProgrammingRe: How Not To Learn Programming by larisoft(op): 2:33am On Apr 11, 2016
Craigston:
I have read thy words, your codeness, and they are true! wink
May I add this for those of us in our undergraduate years now. I contributed this, a few minutes ago, to stream of advice to someone finding
his way into the programming world and it can be helpful here.
Thanks, Craig.
ProgrammingRe: How Not To Learn Programming by larisoft(op): 2:28am On Apr 11, 2016
mbatuku2:
Nice one Larry. I have a question. How does one get ideas on what to code daily? I mean I have 2 apps ive been working on since learning C#. Sometimes, I abandon working on them with the hope I that I will one day read somewhere how to solve the deadlock and continue with the app.
For me, its always been; what software do I need that I dont have cause its not available? If you are not the type of guy who reasons that way, you can pick up a project that's already done and make your own version of it. I know a girl that made a personalized version of windows calendar and her version accepts diaries and a lot of cool stuff the original one doesn't offer.

Keep coding.
ProgrammingRe: How Not To Learn Programming by larisoft(op): 8:46pm On Apr 10, 2016
crotonite:
NICE WRITE DOWN. REALY EDUCATIVE. TNX
thanks for reading, bro.
ProgrammingHow Not To Learn Programming by larisoft(op): 7:59pm On Apr 10, 2016
Am just a guy who feels really lucky to be in this amazing industry and am still learning like most of us. But having passed the fledgling stages where some of our upcoming badoos currently are, I thought it wise to share common pitfalls they will …or are already facing which can stop them from learning to become programmers.


1. Wait till you find the perfect language
: if I was given a dollar for every time I heard someone say, larisoft, I want to learn programming, which language should I start with? I’d never have to work again. The problem is; the language you start with really doesn’t matter most of the time. Every language you start with has something essential to teach you. While starting with a generally difficult language like C++ can be daunting and protracted for most people, it makes up for the delay by teaching you programming principles you will learn ‘years to come’ if you start with a higher-level language. On the other hand, starting higher up with a language like PHP hurries you to those ‘years to come’.
Pick a language…any language and start! There is no way you wont learn something that will guide you for the rest of your journey. If I may recommend I’d say, choose any amongst PHP, python, or javascript. But end that language search right now!!!

2. Start Coding without a project in mind: Programming is not like academics where you are handed down theory and expected to regurgitate months later. It’s a practical field. You need to have something towards which you are coding. It could be a simple personal website, or an organizer, or a calculator, or an idea of an app you have which you’d be proud to share with friends.
Till date, I don’t know any badoo who learnt to code only by reading tutorials and repeating the examples in them. Maybe I will after this article. Roll up your sleeves and build something! I’d be happy to review any any app you share with me anyday.

3. Don’t ever try to solve a problem yourself:
this is one of the reasons why there are so very few female programmers. There are usually so many guys flocking around…trying to help!
Programming is not just about writing code that works. Its also about writing code that doesn’t work, understanding why it doesn’t work, and making it work. If you spend 4 hours figuring out why a script doesn’t work…yeah! That’s the spirit.
If even after staring at code for a long time, you don’t understand it; use google first before contacting someone you know. Not only will internet resources show you the ‘standard’ and ‘non standard’ way of doing things, they will also subconsciously teach you how to learn programming (i.e. how to follow tutorials)…and boy! Is there a lot of learning to do?

4. Start Making huge sums of money as soon as you can:
This is where a lot of people get it wrong. Mark Zuckerberg is a billionaire today, but before he became that; he coded for at least 7 years. (Built stuff for his dentist father at age 14). Bill Gates had being coding for a long time before he started Microsoft. Without a donkey-years experienced programmer like Wozniac, apple would have kicked its pants no matter how much of a sales Genius Steve Jobs was.
If your major aim in learning to code is to make money FAST, consider saving yourself the trouble by getting a friend that will do the coding while you do the business. Better still, you could spend your time acquiring bogus certificates. Serious tech firms will reject you, but a lot of prejudiced firms will welcome you and pay you well. If however, you insist on making money from programming, you should know that nothing in programming happens FAST.

Let your efforts for the first 2 years be focused on gathering as much knowledge as you can. Am not saying you shouldn’t make money every now and then, but put your learning first and where both conflict, choose learning over money.

It is worthy of note to mention that about 4 years ago, you could come into the Nigerian tech landscape and become really super rich from building wordpress sites and crappy unscalable applications. Very few people knew tech then. Today, things are fast changing. Wordpress sites are getting done for 15k and Nigerians expect your app to be fast, bug-free and elegant, just like all the international apps they are used to. The best gift you can give yourself right now is proficiency-not money. Money will come in tons later if you know your stuff.

5. Do not allocate too much time to coding everyday: You should have a life-code balance.: [/b]the truth is, once you start learning to code, your life should experience a paradigm shift. You should begin to have fewer friends…begin to appear in public less frequently. If you are doing it right, you should be spending so much time with your computer that sometimes, you realize the day has come and gone without you stepping out of your house. If you eventually drop out from school, or do something really socially awkward BECAUSE YOU JUST CANT STOP CODING …Halleleluyahh…the spirit is firmly planted in you and its only a matter of time.
If you are just starting to code and you are not spending up to 3hours a day coding…I am not an authority; but I have my doubts ooo.


[b]
6. Once you have accumulated a couple of projects and are now accepted as a programmer in many circles; relax: you have arrived:

It’s unfortunate that many many coders in Nigeria never go beyond the stage of writing crappy software, collecting money and leaving clients’ business to flounder in a matter of months. Programming is not easy. If you think it is; it’s a sure fire sign you have no idea what it is yet.

At the stage where you can now make usable software, you should immediately identify programmers that are better than you and understand why they are better than you. Engage in competitions at sites like codeforce, codechef, topcoder, coderbytes e.t.c. Always have a new technology/language you are learning. I would add and “Be humble”, but there is no way you would be doing this and not feel very humble knowing how much you still have to learn.

There it is! I would really appreciate it if senior developers in the house can chip in their own advice for future badoos on Nairaland.
ProgrammingRe: Solving Real Problems by larisoft: 7:44pm On Apr 10, 2016
[quote author=proxy20 post=44576741][/quote]We are talking optimized algorithms here. Besides, any one asking you to process images and recordings of an entire nation probably knows or should know what they are up against.

I'd be thrilled to hear better solutions though.
ProgrammingRe: Solving Real Problems by larisoft: 10:15am On Apr 10, 2016
asalimpo:
A system like this would certainly be very hard to create because of the human element.
Humans are far smarter than machines.
Say, the machine succeeded and a terrorist cell was brought down.
The other cells will change their tactics and beat the system hands down.
e.g

they'll communicate codedly, such that their communication will go under the snoopers noses undetected.
imagine this kind of conversation:
A : Man, i saw a fine shoe i like but it was very expensive?
B : How much?
A : $1000
B: why didnt you borrow money to buy it
A : The bank wouldnt lend me?
B: ugh, banks are no good, next time, go to a lender
A : dyu know any?
B : Yes,
A : where?
B: i know one at 18 broad street, and another at 20 minks street
A : okay, i'll check them out
B: ok, tell me how the next bargain goes.

How would you suspect a terrorist activity from such a conversation?!
But this could be terrorist conversation transpiring codedly!

for those still confused here's a lil of the top of my head encoding.

"i saw a fine <whatever> " - I've found a suitable target but
"it was very expensive " - the security detail is too much
"why didnt you go to banks " - will the usual avenue not work?
"bank's wouldnt lend me " - no, brute force or usual tactic will fail
"go to the dealers " - meet master strategists, higher ups, to pull strings.
"18 broad street, mink street " - useless detail that doesnt mean anything , meant
to confuse any eaves dropper.
the other person knows who the "dealers" are.
for computers to be bought into the equation, we have to assume that relevant data is already available and need to be processed into information. how these data are gotten is not our businesses but that of the law enforcement agents
ProgrammingRe: Solving Real Problems by larisoft: 9:53pm On Apr 09, 2016
uhmmm...let me try

I d have a listener triggered every time a new batch of data is received,make objects of these data and pass the objects, each with fields like type, content, sender, receiver etc, as parameters to a 'process' method.


in this method, using several objects, algorithms and libs, I ll search for occurrences of terrorist-like words in the data like " bombs, explode , target. Match pictures to faces of known terrorists. match recordings to vocals of radical sentences. and grade each object based on the frequency by which these words/pictures/audio occur before inserting into db and notifying listeners that new information is ready.


at the front end, an Ajax call simply monitors one of these listeners every 5 or so seconds (could be a txt file containing the no of updates made to db so far) once it detects a change, it queries the.database and refreshes the screen with new results of the highest threats.

pretty much all technologies can be used but java and c# could be favored since this system will require a lot of processing power that ll be missed in interpreted languages...

ngwa, correction, sir.
ProgrammingRe: Help Solve This Connection Error On Mysql Workbench by larisoft: 6:01pm On Apr 09, 2016
the likeliest problem is that your mysql is not running. This maybe because you have not installed mysql (benchmark is just a front end) or you have it installed but its not running.

if you have installed mysql navigate to
C:\Program Files\MySQL\MySQL Server your versoon\bin using command line and type 'mysqld' to start the mysql server.

if you have not installed it at all, download and install it first and do the above.

keep coding, bro
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 1:42pm On Apr 08, 2016
SupremeDimeji:
Hey bro,
When I choose the add exception button, and I click on the dropdown menu. Nothing shows... just empty
Has it encountered and closed any background program at all?

the app sets the options of the exceptions by saving the names and ids of the programs it encounters in its war against background data consumption. Hence, if it has not encountered any program, it will not have any options for exceptions.

If this is the case, just make sure its running, connect to the internet and wait for it to encounter and close the programs you will like to be able to consume background data. Now, go to exceptions, you will see them there. Select and add each of them individually, and they wont be closed henceforth.

Please keep me posted.
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 10:02am On Apr 08, 2016
SupremeDimeji:
Nice software bro, this should save lives...
Thanks, bro.
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 10:02am On Apr 08, 2016
geosilbert:
I need ur assistance in starting up c andc+ what do I need to install on win 8 to run the interface where I can do d coding?
Any text editor will do. e.g. emacs, sublime_text, notepad++. This is where you will write your code.

Then you will need a compiler. This is what will convert your code to a file the computer can execute. For windows, download and install mingw from https://sourceforge.net/projects/mingw/files/ . Then when you open it, mark mingw-base, gcc++ , msys-base, and mingw-developer tools for installation.

after they have been downloaded, you will set your variable path to include the directory of your mingw installation so you can compile and run your code from the commandline without having to navigate to that directory every time.

Please, if you do not understand some of these things, just calm down and google them. Never ever give up.
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 12:59pm On Apr 07, 2016
izyericson:
just downloaded

thanx. did you make one for android yet
Will do that soon, bro. Thanks for downloading and using. Please share with friends.
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 12:58pm On Apr 07, 2016
paranorman:
Oga Larisoft, how do one check if a number is even, odd, a factor e.t.c...?

I have an idea though. To check if a number is even or nor, I divide the said number by 2 and check if the solution is an integer or a floating point vaue using the gettype() function, PHP.
You use the modulus operator "%", bro. The modules operator returns the remainder from dividing a number by another. for instance
<?php
$a = 3 % 2;
echo $a; //output will be 1

$b = 2 % 2;
echo $b; //output will be 0
?>

hence any number that when divided by 2, has a remainder of 0 is even.

To check if a number is a factor of another number, you also use the modulus operator. A number is a factor of another, if the number can divide the other number without remainder.

E.g. 2 is a factor of 4. 3 is a factor of 6. Thus, by simply doing ($num1 % num2==0) you will get true if the second number is a factor of the first.

Keep coding, bro.
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 12:47pm On Apr 07, 2016
emmaak2:
SO NICE AND THIS DESERVES A FRONT PAGE

cc lalastica
Thank you my brother.
ProgrammingRe: How Much Does It Cost To Make An App? by larisoft: 12:44pm On Apr 07, 2016
Depends on the app. You have to take into consideration such factors as whether the app will be hybrid (browser based) or native (relies on core phone functionalites) ...will it require a backend? will this backend be so data intensive you will contemplate using cloud services amongst others. Also, are you doing it with a company (500k and above but you get great after-deployment support, speed, assurance and other perks) or an individual developer (100k upwards).

Anyway, I charge 150k to 300k for native android apps. excluding hosting costs. The price shifts forward based on the number of object classes I foresee the app will require. (more classes, more complexity).

Finally, speaking from experience, its not wise to do an app for IOS, Android,Windows, e.t.c at the same time. You should target one platform and if you succeed on it, expand.
ProgrammingRe: Help Java Programming Project Using Genetic Algorithm by larisoft: 8:33pm On Apr 06, 2016
This is the part where you post what problem exactly you are facing, what you are trying to optimize, and what error you are getting. And you should also be generous with your code.
PhonesRe: This Is Why You Should Uninstall Flash Share Now!!! by larisoft(op): 6:43pm On Apr 06, 2016
stkingz89:
Is this peculiar to Flash Share? What of Xender and others, are they also vulnerable to this?
Yes. xender also accesses your SMS, Call log, e.t.c.
PhonesRe: This Is Why You Should Uninstall Flash Share Now!!! by larisoft(op): 6:31pm On Apr 06, 2016
The major problem here is that the guys behind flashshare are not known and are therefore not regulated.

Google, Microsoft, MTN, AIRTEL, e.t.c. are all heavily regulated companies and the most they can do with your data is serve you ads that are personalized to your tastes.

However, with random, unknown developers, you might become a public figure tommorrow and they will use it to blackmail you. And the government, or other regulatory agencies have no business tracking these people.

PLEASE, UNINSTALL EVERY APP ON YOUR PHONE WHOSE VENDOR IS NOT TRUSTWORTHY AND WHOSE PERMISSIONS ARE UNECESSARY FOR THE PROPER FUNCTIONING OF THE APP. EXCEPT YOU ARE A CRIMINAL (UNDER WHICH CIRCUMSTANCES YOU CAN BE TRACED SO LONG AS YOU USE THE INTERNET), YOUR PRIVATE DATA SHOULD NOT BE IN THE HANDS OF PEOPLE YOU DO NOT KNOW. PERIOD.

My recently released app called "This Nonsense Must Stop!", blocks all background data activites on laptops/desktops so viruses can't send your data to their makers. You can use this to protect yourself too. Here is the link to the app:https://www.nairaland.com/3011574/new-c-open-source-app

The source code is open for all to view and see that their is no monkey business going on.
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 5:59pm On Apr 06, 2016
thanks bro @leopantro
ProgrammingRe: My New C# Open Source App Prevents Laptop Background Data Consumption On Windows by larisoft(op): 5:57pm On Apr 06, 2016
lakefist:
How am i sure this your app is not collecting my data secretly?
because you can view the source code for yourself and see exactly what is going on when its going on. that's why its open source
PhonesRe: This Is Why You Should Uninstall Flash Share Now!!! by larisoft(op): 11:24am On Apr 06, 2016
Donald3d:
Guy you funny o, if i tell you how many things are spying on you, that wont even tell you, at least flash share made it known that they need all this permissions and really no big deal, the android operating system you dey use , who you think get am, no be Google , u no wetin dem dey collect for your phone huh, bro whether you like it or not you would be spied on , anything that was created by man can be cracked by man, even if you be ultimate hacker wey fit protect yourself from spying , extra ultimate hackers fit open your yansh within the blink of an eye.So what am i saying ,just do what is right and forget about who is spying on you, protect yourself the best you can , if something is extra private , discuss it in person, even MTN dey recored your call u no know. Bros this is what technology was created for , we have to live with the repercussions and consequences.I don dey talk too much already.even Microsoft dey spy on you . sorry i ay i no go talk again lipsrsealed lipsrsealed, i no fit hold am, all of una wey dey rush go install windows 10 SMH , I reserve my comments.


NOTE:If you dont want to be spied on

1. Go and manufacture your own gadgets, phone, laptop etc
2. Go produce your own internet , launch santellite abi satellite anyone grin
3. Dont use any third party apps (no be party owambe i dey talk oo,) i mean no go use application wey another person do
4. Live on an island with just trees,animals and yourself grin grin grin grin
My dear, you have a point; but you should know that
1. Google is regulated by several agencies/standards and what they do with your data is supposed to be innocuos as the data is de-personalized first.
2. Your network provider is regulated by many agencies including government and if they breach user privacy, they will answer to NCC.


In this case however, flash share is distributed by an unknown, unregulated vendor. No one knows what they do with your data and they are not answerable to anyone! AND THE ONLY REASON IT CAN DO WHAT IT DOES IS THAT IT COMES PRE-INSTALLED WITH MOST TECNO PHONES AND USERS DONT EVEN GET TO READ THE IMPLICATIONS OF ALLOWING IT IN THEIR PHONES FIRST!

And if you take care to protect your phone by installing a security app in your phone that checks every outgoing data packet (I have already written an app like that for Desktops/Laptops named "This Nonsense Must Stop!" link: https://www.nairaland.com/3011574/new-c-open-source-app#44117476 ) there is no way hackers can access your data except they come to you in person and physically copy it.

So, its not a must to be spied on.

1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)