Challenge Me - Programming (4) - Nairaland
Nairaland Forum › Science/Technology › Programming › Challenge Me (19042 Views)
1 2 3 4 5 6 7 8 9 10 Reply (Go Down)
| Re: Challenge Me by Nobody: 3:28am On Oct 24, 2017 |
Nicely done soldier, nicely done. I'm assuming your unit test was against multiple inputs... 4kings: |
| Re: Challenge Me by 4kings: 3:38am On Oct 24, 2017 |
DanielTheGeek:Thanks. Yep, you can test them. lenY = 1 gives 3; 2 gives 6 and 3 gives 9. If you have different set of coordinates from another graph you can also test them(if u use python also). I just noticed something replace cont with x_points, though i've modified my original post. I'm not too god with naming variables. |
| Re: Challenge Me by Nobody: 3:53am On Oct 24, 2017*. Modified: 4:18am 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.. |
| Re: Challenge Me by Nobody: 3:57am On Oct 24, 2017 |
I'm doing some app monitoring and routine checks... To even run test isn't feasible, the only reason i'm on NL is because i'm watching ![]() 4kings: |
| Re: Challenge Me by 4kings: 8:07am On Oct 24, 2017 |
DanielTheGeek:lol OK. |
| Re: Challenge Me by Jenifa123: 1:17pm On Oct 24, 2017 |
Trolling through |
| Re: Challenge Me by bolkay47(m): 2:06pm On Oct 24, 2017 |
Jenifa123:It's a good thing to do. |
| Re: Challenge Me by seunthomas(op): 3:15pm On Oct 24, 2017 |
DanielTheGeek: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?? |
| Re: Challenge Me by rushman003: 4:16pm On Oct 24, 2017 |
seunthomas: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 |
| Re: Challenge Me by seunthomas(op): 4:39pm On Oct 24, 2017 |
rushman003:Paste your code here. Something tells me you are having encoding related issues... |
| Re: Challenge Me by 4kings: 5:13pm On Oct 24, 2017 |
seunthomas:Do you know assembly? |
| Re: Challenge Me by seunthomas(op): 5:17pm On Oct 24, 2017 |
4kings:I do but would have to dust the cob webs for tough tasks. |
| Re: Challenge Me by 4kings: 5:21pm On Oct 24, 2017 |
seunthomas:Hmmm, then use python. Write a code that rearranges pixels in an image based on hue value(or any other image parameter you want) in python? This is not really a challenge since it should be easy with python, it's just a test. |
| Re: Challenge Me by olamil43: 5:40pm On Oct 24, 2017 |
bearnana:you must marry me |
| Re: Challenge Me by olulove(m): 6:11pm On Oct 24, 2017 |
Pls guru in the day house, kindly assist me look into this below code, i'm having issue executing in SSMS... msg 1801, level 16
|
| Re: Challenge Me by Nobody: 6:40pm On Oct 24, 2017*. Modified: 7:42pm On Oct 24, 2017 |
This Is me proving that you can't USE just ANY language for certain tasks 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... ![]() seunthomas:There's no point in throwing tasks in popular non-esoteric languages that can easily be googled out.. Stress your brain a bit dude, #onelove |
| Re: Challenge Me by Nobody: 6:46pm On Oct 24, 2017*. Modified: 7:28pm On Oct 28, 2017 |
Who can try this in Rust?... Rust is actually one of the finest language for image manipulation in my opinion. I'd try 4kings: |
| Re: Challenge Me by seunthomas(op): 6:47pm On Oct 24, 2017 |
DanielTheGeek: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..... |
| Re: Challenge Me by 4kings: 6:52pm On Oct 24, 2017 |
DanielTheGeek:Okay. So rust is this awesome. |
| Re: Challenge Me by Nobody: 6:53pm On Oct 24, 2017*. Modified: 7:33pm On Oct 24, 2017 |
seunthomas:Well, I'm not arguing... I just want to have fun...there's no fun writing code in a language built for production...that's also popular, that's why I targeted an esoteric language... It was built to be useless so making a useful program out of it will earn you my respect big time.. So be my guest! |
| Re: Challenge Me by 4kings: 6:55pm On Oct 24, 2017 |
DanielTheGeek:lol... But i'm just seeing Glass for the first time. I checked the syntax this morning, you must be a crazy coder. |
| Re: Challenge Me by Nobody: 7:02pm On Oct 24, 2017*. Modified: 7:23pm On Oct 24, 2017 |
4kings:Dude, it's more than awesome... Although the stress of having to compile my code makes JavaScript a swifter option but Rust is still respectable. |
| Re: Challenge Me by Nobody: 7:35pm On Oct 24, 2017 |
What happened again? I am seeing the work of a moderator here chopping a post. Hope no one has been banned on this thread sha? If so kindly report. |
| Re: Challenge Me by Nobody: 7:37pm On Oct 24, 2017 |
4kings:My madness just got diagnosed, knowing the language doesn't make me a developer of the language though |
| Re: Challenge Me by Nobody: 7:45pm On Oct 24, 2017 |
seunthomas:On the contrary, this is actually a mad punchline ![]() |
| Re: Challenge Me by 4kings: 8:01pm On Oct 24, 2017 |
dhtml118:It might be anti spam bot nonsense and not a real ban. |
| Re: Challenge Me by TheOtherGeek(f): 8:25pm On Oct 24, 2017 |
Things are looking nice, seeing fellow devs talkin real stuff is awesome.. Hey, @queryunical what's up? Any luck? |
| Re: Challenge Me by TheOtherGeek(f): 8:40pm On Oct 24, 2017 |
DanielTheGeek:Dude, take it easy. There's no need flexing fingers on something that was built to be useless... It's a nice task though (don't get me wrong), it'll test your ability to adapt but c'mon..i bet my MIT professors would spend quite sometime working on a solution to this.. From your posts, I could tell you're into Java (I guess I'm right) so I throw you one mate.. Do it in Java, my mind tells me you're a Kotlin newbie ![]() |
| Re: Challenge Me by Nobody: 8:48pm On Oct 24, 2017 |
Whaaat! Did you just take a shot at me? Seunthomas the challenge is still open no matter what... I think using abnormal and unusual languages without proper documentation and resource to learn being available for the challenge makes it more interesting... I accept your challenge even though you were right about me not being a Java person (how the heck did you know that?).. But data partitioning is quite easy to do even with my tiny, minute knowledge of Java..I don't use Kotlin though.. you got that one wrong Miss. TheOtherGeek: |
| Re: Challenge Me by Nobody: 8:54pm On Oct 24, 2017 |
Waiting to see the challenge, strong people dey for this thread. |
| Re: Challenge Me by 4kings: 8:56pm On Oct 24, 2017 |
olulove:Rename KNMIS.mdf file, cos you've used it with a previous project or put it in a different folder. |
I Need Info On Niit • C# - Capturing File Name From A FileUpload Control In Asp.net • Is Python Really Worth The Buzz And Hype It's Getting ?
