₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,465 members, 8,445,595 topics. Date: Wednesday, 15 July 2026 at 09:51 AM

Toggle theme

Seunthomas's Posts

Nairaland ForumSeunthomas's ProfileSeunthomas's Posts

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

ProgrammingRe: Challenge Me by seunthomas(op): 6:05pm On Oct 28, 2017
The only way we will have any real challenges here is when people are original.
I can appreciate some attempts at solving questions here. Though some of them got the solutions wrong or not totally correct, their efforts show they are real programmers...
Some people are here to just make noise. Those people i really want to challenge....
ProgrammingRe: Challenge Me by seunthomas(op): 6:03pm On Oct 28, 2017
dhtml118:
Na so o, we bin dey manage small small.

@thread people, we are having too much talk on this thread and no serious codes, what is going on?
With all your coding experience dont you know when someone is just code lying abi is @DanielTheGeek anoda of your monickers....
ProgrammingRe: Challenge Me by seunthomas(op): 6:01pm On Oct 28, 2017
I can't challenge that liar (@DanielTheGeek). I will extinguish him from all the known universes..
grin
He just makes too much noise and its obvious he is not that experienced. Every explanation he has always starts with an excuse.
If he claims he is competent, let him make a hoot again. I promise i will take up the challenge.
I think we should try to be original and not claim to be what we are not...
Thats progress and not saying you wrote code for someone you did not.

Like i said let him throw the first punch, will reply the liar am sure any question he asks me would be something he gets from online...
ProgrammingRe: Challenge Me by seunthomas(op): 2:50pm On Oct 28, 2017
DanielTheGeek:
WTF! I just looked at that guys post on Reddit... You can tell first hand that he didn't write that code if you read his other posts..



That looks 100% like my code so best guess is the book already launched, since said he just started learning Rust recently and he posted that this year... I really have to find that book and in between i'm gonna ask the dude where he copied that from too.. Someone who just learnt Rust can't write a Mandelbrot set just like that, especially in a time when Rust was still a bit partially esoteric...

Someone that can't even compile his program properly, shey na him go come do Mandelbrot program?
Oga you are the biggest shameless thief i have seen. Why do you lie so much like this??
The code you posted here and claimed was yours is someone else's work for a Rust Lang tutorial. I started learning Rust last year and as soon as i saw that code i knew i had seen it from somewhere before. But so as not to jump the gun i chilled until someone just posted here that people were googling code. Then i searched deeper and i discovered the exact copy paste code on that guys tutorial. I am 100% sure you are not the author. I think at this juncture it would be wise to apologize to all of us here.
Who are you fooling....
See all the nonsense justification you are posting....
You are shameless. Mtcheew...
By the way the original author is one of the early contributors to RustLang..
ProgrammingRe: Is There Any Programmer Here Who Can Do This? Paid Job by seunthomas: 7:34am On Oct 27, 2017
PM and lets discuss more. I have something like that in the works.
ProgrammingRe: Challenge Me by seunthomas(op): 7:07pm On Oct 25, 2017
DanielTheGeek:
I did a Mandelbrot program in Rust, nothing close to a pixel manipulator but something cool

use std::io::Write;
fn main() {
let args: Vec<String> = std::env::args().collect( ) ;
if args.len() != 5 {
writeln!(std::io::stderr(),
"Usage: mandelbrot FILE PIXELS UPPERLEFT LOWERRIGHT " )
.unwrap();
writeln!(std::io::stderr(),
"Example: {} mandel.png 1000x750 -1.20,0.35 -1,0.20 ",
args[0])
.unwrap( ) ;
std::process::exit(1 ) ;
}
let bounds = parse_pair(&args[2], 'x')
.expect("error parsing image dimensions" ) ;
let upper_left = parse_pair(&args[3], ',')
.expect("error parsing upper left corner point" ) ;
let lower_right = parse_pair(&args[4], ',')
.expect("error parsing lower right corner point" );
let mut pixels = vec![0; bounds.0 * bounds.1] ;
render(&mut pixels[..], bounds, upper_left, lower_right) ;
write_bitmap(&args[1], &pixels[..], bounds)
.expect("error writing PNG file" ) ;
}
Why do i suspect this guys code?? You thief this code online abihuh?? See person wey wan challenge me wey dey thief code online.
Programmer wey dey thief code online dat one na real programmer...
Mtchewwwww Ole buruku....
Plagiarism King.....
ProgrammingRe: Challenge Me by seunthomas(op): 7:03pm On Oct 25, 2017
dhtml118:
Hmn, I cannot help but notice too. . . .I am somewhere else off nairaland battling someone over advantages of xml over json (i am for json, while the other unfortunate dude is for xml - we are still at draws, no winner yet)
In most use cases json is much better as its more compact. I will always pick json over xml where i have a choice...
ProgrammingRe: Challenge Me by seunthomas(op): 6:47pm On Oct 24, 2017
DanielTheGeek:
This Is me proving that you can't USE just ANY language

You asked me to throw a challenge in any language I like... If you can't do that simple data partition task the challenge would be null.

I see you like the piece of cake to have opted for Python... grin
I am sure i can dabble into your Glass. Its not one of the languages i already know but am sure i can learning it within a few hours (syntax). If you want to play around with languages then we can start making the problems restrictive by compelling each other to use a specific language. The challenge is still open. If you insist i must use glass then i will go ahead and do it and you will get your solution by tomorrow morning.....
ProgrammingRe: Challenge Me by seunthomas(op): 5:17pm On Oct 24, 2017
4kings:
Do you know assembly?
I do but would have to dust the cob webs for tough tasks.
ProgrammingRe: Challenge Me by seunthomas(op): 4:39pm On Oct 24, 2017
rushman003:
This is a challenge and also a problem i'm currently facing! I would have opened another tread but i don't wanna derail

Any of the programmer here to read unformatted / not well formed xml data from a TCP client(socket) and use a particular message string from the xml to trigger an IP camera...

Mind you have got this working on a simulator but the same code is giving problem with the real device!

below is the pull data for the handshake communication between server and client


<?xml version="1.0" encoding="UTF-8"?>
<PlatformStatusReport>
<PlatformIdentification>
<DeviceName>FD525R</DeviceName>
<DeviceCategory>Sensor</DeviceCategory>
<DeviceType>SPIDR APU</DeviceType>
</PlatformIdentification>
<PlatformStatusReport>
<PlatformIdentification>
<DeviceName>FD525R.HZONE-1</DeviceName>
<DeviceCategory>Sensor</DeviceCategory>
<DeviceType>SPIDR Hyperzone</DeviceType>
</PlatformIdentification>
<Status>
<DeviceState>Secure</DeviceState>
<CommunicationState>OK</CommunicationState>
<UpdateTime Zone="GMT">2017-10-24T16:13:56.280</UpdateTime>
</Status>
<DeviceStatusReport>
<DeviceIdentification>
<DeviceName>FD525R.HZONE-1.ZONE-1</DeviceName>
<DeviceCategory>Sensor</DeviceCategory>
<DeviceType>SPIDR Zone</DeviceType>
</DeviceIdentification>
<Status>
<DeviceState>Secure</DeviceState>
<CommunicationState>OK</CommunicationState>
<UpdateTime Zone="GMT">2017-10-24T16:13:56.280</UpdateTime>
</Status>
</DeviceStatusReport>
<DeviceStatusReport>
<DeviceIdentification>
<DeviceName>FD525R.HZONE-1.ZONE-2</DeviceName>
<DeviceCategory>Sensor</DeviceCategory>
<DeviceType>SPIDR Zone</DeviceType>
</DeviceIdentification>
<Status>
<DeviceState>Secure</DeviceState>
<CommunicationState>OK</CommunicationState>
<UpdateTime Zone="GMT">2017-10-24T16:13:56.280</UpdateTime>
</Status>
</DeviceStatusReport>
<DeviceStatusReport>
<DeviceIdentification>
<DeviceName>FD525R.HZONE-1.ZONE-3</DeviceName>
<DeviceCategory>Sensor</DeviceCategory>
<DeviceType>SPIDR Zone</DeviceType>
</DeviceIdentification>
<Status>
<DeviceState>Secure</DeviceState>
<CommunicationState>OK</CommunicationState>
<UpdateTime Zone="GMT">2017-10-24T16:13:56.280</UpdateTime>
</Status>
</DeviceStatusReport>
</PlatformStatusReport>
</PlatformStatusReport>

and below is the message to trigger camera i.e on alarm


<?xml version="1.0" encoding="UTF-8"?>
<DeviceDetectionReport>
<DeviceDetectionRecord>
<DeviceIdentification>
<DeviceName>FD525R.HZONE-1.ZONE-1</DeviceName>
<DeviceCategory>Sensor</DeviceCategory>
<DeviceType>SPIDR Zone</DeviceType>
</DeviceIdentification>
<Detection>
<ID>SZ003</ID>
<DetectionEvent>Intrusion</DetectionEvent>
<UpdateTime Zone="GMT">2017-10-24T16:15:10.096</UpdateTime>
</Detection>
</DeviceDetectionRecord>
</DeviceDetectionReport>

to be implemented in php
Paste your code here. Something tells me you are having encoding related issues...
ProgrammingRe: Challenge Me by seunthomas(op): 3:15pm On Oct 24, 2017
DanielTheGeek:
Seunthomas can you give this a shot in Glass language? I know it's too simple but just manage it...can't think of much right now or maybe try Crystal..
I dont know glass language and dont want to invest (time) resources in it. But i can do in some of the languages i know how to use well. Usually this kind of problem is best solved with python. But before i go ahead, is this you challenging me??
ProgrammingRe: Challenge Me by seunthomas(op): 10:50pm On Oct 23, 2017
dhtml118:
This thread is fast deviating to chest-thumping.
Some people just like to weigh everyone based on their own mental capacity.

Because you can do 2X2 table only does not mean there are people who can't do 10X10 or 20X20.

Anyway as the CEO of this thread, i caution everyone to be on track.

The whole idea is to create an environment where we can freely exchange ideas (in a competitive environment).

I am still looking for that rocket man that has been deleting my threads...
ProgrammingRe: Challenge Me by seunthomas(op): 10:09pm On Oct 23, 2017
DanielTheGeek:
The secret about learning ANY language is in every developer, getting is just the tricky part..

There's a difference between understanding a language and knowing a language. TF! I can keep a list of languages I know coming in till tomorrow.. But the languages I understand in-out aren't more than 5 or 6.. However I think Seunthomas has gotten to the stage where he doesnt need an eBook or video to learn a new language..even i have gotten to that stage and it's not pride, we all learn everyday, every ambitious/serious programmer will get to that stage....all you do is apply your previous knowledge of other languages to work with the new one... As far as you have good knowledge of at least one functional and one object oriented language then picking another language will be a matter of adapting to the syntax and learning the conventions. I will not forget ShedrachOkonofua...one of the finest devs I met on NL, this guy is a real polyglot developer and I respect him much as I respect others in here.

But what I have come to discover in my little years of gaining peanut knowledge is that polyglot developers are the least efficient in the room as devs with a focus on a single language tend to do more, but this is only my opinion/theory...



Does Daniel know the BrainFuck language , Yeah....can he write a simple hello world program in it? Hell no..
Mr man, stop making nonsense noise and lets go head to head. Infact i will allow you pick the language you want me to write the solution in. Lets see if your silly theory on polygot holds water. For someone like me every language is one and the same. Programming is first like an art, you have to know how to paint and then you can use the brush and paint to create a work of art. I am waiting for you to challenge me else dont be making generalized statements like someone who said Naija coders are copy pasters. You don interview every polygot programmer beforehuh
ProgrammingRe: Challenge Me by seunthomas(op): 3:38pm On Oct 23, 2017
DanielTheGeek:
Asalimpo is right and no matter what...whether you get the desired result.. a -0.1ms difference in performance should mean a lot to you. Remember, good companies won't look only for the program that gets the job done but the one that gets it done faster... Good job though.
I disagree with you completely. Although performance is important, it is only one of the very many important metrics...
ProgrammingRe: Challenge Me by seunthomas(op): 3:35pm On Oct 23, 2017
I remember once posting on this section that i know close to 20 programming languages and some unfortunate fellow felt i was lying or blowing a big trumpet. But alas people with knowledge of haskell have found their way into this thread.
But for those of us rushing into functional programming beware...
OOP is the best approach and won't die anything time soon.
Be functional but Objects will always triumph....
grin
ProgrammingRe: Challenge Me by seunthomas(op): 10:08pm On Oct 22, 2017
dhtml118:
It can come back to life, if we want it back to life. This is the first really interesting topic in a long while.

I move the motion that we bring this board to life - what do you say guys?
Una too like fight....
ProgrammingRe: Challenge Me by seunthomas(op): 10:08pm On Oct 22, 2017
bolkay47:
Good evening.
You may be right. The solution gets the job done and it took '00:00:00.1405923' which in my opinion is still good....
if you have any other method, you can put it forward.I will be glad to see it.
Can you help me locate the OP? huh
Using GPS abi wetin.....
ProgrammingRe: Challenge Me by seunthomas(op): 8:16pm On Oct 22, 2017
I can see that we have all been busy... cool
ProgrammingRe: Nigerian Developers Aren't Creative by seunthomas: 6:14pm On Oct 21, 2017
HarmattanHunter:
You could skip the thread if you have no contribution. Let the great guys speak.
Seems like you dont know me? You must be high on something really cheap......
ProgrammingRe: Nigerian Developers Aren't Creative by seunthomas: 1:14pm On Oct 21, 2017
Not to take a side on this subject matter. Your comment @op is very generalized and you dont have any statistics or figures to back it up. Thats a major problem with a lot of us in this country, we make unguarded comments and we have no proof or figures to show that what we have said is justified.
If you say Nigerian developers are not creative, then it implies we have no creative developer in Nigeria(me i over create self. LOL), then assist us mediocre mortals by enlightening us on when you conducted a survey/questionairre or if your findings are from some bureau or organization specialized in gathering data about us Night burners and chronic coffee drinkers.....
ProgrammingRe: Pre-conditions On Join Codelab/internships by seunthomas(op): 5:02pm On Oct 20, 2017
Rep4Jumia:
Do you want to learn web programming?
Are you in need of a simple or more sophisticated website.
Do you have a business idea you want to incorporate into an android or iphone app.
Join us at Hub4coders and participate in our training so you can learn to do it yourself easily, with some support from us.
Enrol today to take part in the free training which had started

Register at hub4coders.com
Who is this onehuh??
ProgrammingRe: Challenge Me by seunthomas(op): 3:57pm On Oct 20, 2017
bolkay47:
Euler's Totient function, φ(n) [sometimes called the phi function], is used to determine the number of positive numbers less than or equal to n
which are relatively prime to n. For example, as 1, 2, 4, 5, 7, and 8, are all less than nine and relatively prime to nine, φ(9)=6.
The number 1 is considered to be relatively prime to every positive number, so φ(1)=1.
Interestingly, φ(87109)=79180, and it can be seen that 87109 is a permutation of 79180.
Find the value of n, 1 n 107, for which φ(n) is a permutation of n and the ratio n/φ(n) produces a minimum.
Do i take it you are challenging me?
ProgrammingRe: Challenge Me by seunthomas(op): 3:56pm On Oct 20, 2017
talk2hb1:
I challenge you to building a Machine Learning Library/Solution just like Google machine that detect unusual users login undecided
Though i have experience in ML, doing this is not a small task. For a real good system it would cost a lot of money and data. This days i use mostly deep learning because in most cases its better than other approaches to AI. If you can foot my bill, i can accept your challenge for at least 2-5 million NGN.
ProgrammingRe: Challenge Me by seunthomas(op): 11:11am On Oct 20, 2017
donsheddy1:
Build a simple algorithm that converts English to Morse code.
I have a crate of 20 eggs, 5 of the eggs are bad, i want to arrange them in such a way that the bad eggs are together all seperated from the good ones. Create a class in any language of your choice that would take 2 parameters (List containing all the eggs and a List of the bad eggs) and arrange them so the bad eggs are always sorted last.
ProgrammingRe: Challenge Me by seunthomas(op): 11:08am On Oct 20, 2017
dhtml118:
that is a too generic something, it is something that you can get easily on google or wherever.
Exactly ohhhh. I been dey wonder why dem go post that kind question....
ProgrammingRe: Pre-conditions On Join Codelab/internships by seunthomas(op): 11:00am On Oct 20, 2017
codeperfect:
hex: 2bdd655d9fcd5eb914ef48a9279433a9d6aef87ec387ab0843b99c2773179ba7
HEX: 2BDD655D9FCD5EB914EF48A9279433A9D6AEF87EC387AB0843B99C2773179BA7
h:e:x: 2b:dd:65:5d:9f:cd:5e:b9:14:ef:48:a9:27:94:33:a9:d6:ae:f8:7e:c3:87:ab:08:43:b9:9c:27:73:17:9b:a7
base64: K91lXZ/NXrkU70ipJ5Qzqdau+H7Dh6sIQ7mcJ3MXm6c=
Apologies, have the email, phone in AES(ECB Mode) using your NL username as the password.
ProgrammingRe: Challenge Me by seunthomas(op):
donsheddy1:
Build a simple algorithm that converts English to Morse code.
class Morsify:
codedict = {'A': '.-', 'B': '-...', 'C': '-.-.',
'D': '-..', 'E': '.', 'F': '..-.',
'G': '--.', 'H': '....', 'I': '..',
'J': '.---', 'K': '-.-', 'L': '.-..',
'M': '--', 'N': '-.', 'O': '---',
'P': '.--.', 'Q': '--.-', 'R': '.-.',
'S': '...', 'T': '-', 'U': '..-',
'V': '...-', 'W': '.--', 'X': '-..-',
'Y': '-.--', 'Z': '--..',

'0': '-----', '1': '.----', '2': '..---',
'3': '...--', '4': '....-', '5': '.....',
'6': '-....', '7': '--...', '8': '---..',
'9': '----.'
}
reversedict = {value:key for key,value in codedict.items()}
def __init__(self,word):
self.word=word

def translateEnglishToMorse(self):
return ' '.join(self.codedict.get(i.upper()) for i in self.word)

def translateMorseToEnglish(self,code):
return ''.join(self.reversedict.get(i) for i in code.split())

if __name__=="__main__":
word="NAIRALAND"
transcribe = Morsify(word)
morsecode= transcribe.translateEnglishToMorse()
print transcribe.translateMorseToEnglish(morsecode)

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