Beaf's Posts
Nairaland Forum › Beaf's Profile › Beaf's Posts
1 2 3 4 5 6 7 8 ... 383 384 385 386 387 388 389 390 391 (of 876 pages)
Afritelly:Guy, you have a really grave misunderstanding of what Non Disclosure Agreements are. They are used to protect trade secrets, intellectual property that is still in the process of being patented and similar. It a business tool that has nothing to do with your choice of programming language. If you ever design or build bleeding edge software, you would soon know pretty much all there is to know about Non Disclosure Agreements, regardless of programming language, cos you'd need to protect your precious secret. I do lots of real-time video and image processing software in C#. . . Definitely note "basic desktop" and I don't know of many app types that are more involved or processor intensive than that area. Do you? I code the apps in both C++ and C# and I can assure you that C# is by far the best and brightest choice; by a very wide margin too. The .NET framework is regarded by all experts worth their salt as the Worlds most powerful RAD platform, nothing else comes close. There is no other coding platform that can plumb to the very lowest and scariest depths with the same suave ease as it handles high level stuff. .Net is in a class of its own. As for C#, its the best designed language out there, it is also the most actively evolving and supported language out there. You also get 100% FREE World class development tools to go with it. http://www.microsoft.com/express/ . . .And after some experience, pop in here: Windows 7 phones - http://create.msdn.com/en-US/resources/downloads Open source embedded - http://www.microsoft.com/en-us/netmf/default.aspx Robotics - http://msdn.microsoft.com/en-us/robotics/aa731517 Lastly, Delphi and Pascal in general are dead. |
I wonder how I missed todays practise runs. ![]() Monaco is a "he mans" track. It will surely separate the boys from the men, Vettel WILL NOT win there. ![]() I'll wager on Lewis, Jenson and Webber. Alonso is an outsider. Monaco 2nd practice 1 F Alonso 1:15.123 2 L Hamilton 1:15.228 3 N Rosberg 1:15.321 4 J Button 1:15.448 5 S Vettel 1:15.667 6 F Massa 1:15.781 7 M Schumacher 1:16.356 8 M Webber 1:16.642 9 A Sutil 1:17.101 10 N Heidfeld 1:17.126 |
okunoba:Keep away from airy talk. I am not even a Christian, so how can I be biased towards the Christian press? A lot of the time people make incredible assumptions about others and then go on to make even more outrageous claims based on their faulty assumptions. Daily trust is a rightwing paper with a "born to rule" ideology that has helped no end to nurture tensions and distrust between North and South. There is nothing wrong with banning a reporter who creates news rather than simply report it; that is what the reporter in question is accused of. Maybe you see press freedom as being the same as artistic lisence. It ain't. |
^ No RegExp. Lol! [quote author=dell_net link=topic=675768.msg8396335#msg8396335 date=1306405838]This code challenge is not valid in computer science. There is no how to use linear method to solve this problem as it states.[/quote]omo_to_dun already has the kernel (so sad to say ). The challenge is valid, but tricky. |
monkeyleg:Pseudo-liberalism always shoots itself in the foot in defense of the indefensible. Can you hate armed robbery, but love the armed robber? To be gay is to be anti-society, because gay couples do not replenish or build populations by procreating, rather they rob it off some of those abilities. To encourage gays is to encourage the death of the community. |
Daily Trust has had it coming for a long time. Buncha bigoted scoundrels. ![]() |
[quote author=omo_to_dun link=topic=675768.msg8396029#msg8396029 date=1306402960]It is ironical that you talk about my ego. Even my Professors would never say something like: "I don't need access to a compiler to write code ". I am not here to show off anything, I am only here to learn. I guess it is my fault, I should have kept it simple. You didn't even read my comments; dude, even geniuses have less egos. [/quote]Damn! ![]() [quote author=omo_to_dun link=topic=675768.msg8396029#msg8396029 date=1306402960]Unless otherwise stated, an array is a "contiguous portion of memory." I am glad that you said, "In My Humble Opinion". I simply felt you should have stated that the array should be treated like a "circle", not a straight line that programmers are used to. If someone asks you to print an array, I am sure you wouldn't treat it as a circle, or else you'd have an infinite loop.[/quote]I disagree. The data of even the most intricate photo is held in a "contiguous portion of memory," but of course, no photo is a straight line. The computer is just limited in how it represents things. [quote author=omo_to_dun link=topic=675768.msg8396029#msg8396029 date=1306402960]Actually, since the code does not write to either of the arrays, it does not matter if the user sends invalid input. An hacker cannot use buffer overflow or any other tricks to manipulate the address space; if the arrays are dynamically allocated, then the heap will generate a page fault, send a SEMENTATION FAULT signal and the application will terminate if the signal is not processed. Similarly if it was generated on the stack, a segmentation fault might also occur. I assume you don't write much code in C/C++, a lot of the functions in the standard library where you send in a buffer also requires you to send in the size. [/quote]The fact that the code doesn't write to either array doesn't make creating such method signatures correct (in the context of your input from users defence). As for the standard library, it is built for performance, so it is excused. However, it is as unsafe as your calling code, so thats no vindication. [quote author=omo_to_dun link=topic=675768.msg8396029#msg8396029 date=1306402960] For what it's worth, this is one of the best conversations I have ever had on Nairaland. I have wasted too much time with Mrs.Chima in the romance section.[/quote]Yeah, I went and checked the profile of "that gruff guy" stirring up my embers this morning, and I couldn't stop staring. If that is Mrs.Chima, kindly convey to the beautiful soul that you have dropped your interests forthwith. . . Tell her that a sinewed stallion, springing with zest is straining to larvish his potence on her and caress her silky smooth curves. ![]() . . .Lovely pix you got there! |
[quote author=Rhino.5dm link=topic=675630.msg8395490#msg8395490 date=1306398080]I throw in my towel. ![]() Rhino: Ondo state(origin), affliated to Bauchi, based in lagos and currently staying in Jigawa. Marital status: recently married [size=14pt]IQ scores: 419! [/size] Intrest: war games & military hardware. Dislike: Ideology: Progressive tendency. Profession: Mechanical Engr & Advanced Geometry Engr. Difficulties: NONE. Bigotry: Not Applicable. Employment status: Well paid .Political association: CPC (Sai general Buhari!) Views about NL: Very good place to improve diction. I have learnt alot and i have done that pretty fast. National call: Battle ready. So i guess you should be happy now.[/quote] ![]() |
uche nana:Alj harem = Alj Uche = Alj_harem = Alj harem_ = uche nana = charmeleon Charmeleon = from the bush. No? ![]() |
[quote author=omo_to_dun link=topic=675768.msg8395586#msg8395586 date=1306398932]Oh, I see where the problem is. My function solves it for the general case. Not just yours. I was intrigued by the question, so I decided to solve it for the general case. If you look at my main code, you can set the arrays to be anything. Why did you think that I made a function? If I wanted to solve just yours, I wouldn't need a function; I'll just write a simple loop. No need to get angry. And I am not stopping anyone from submitting answers. This is a public forum. It is just not about getting answers, the learning process is very important. If you understood my code(and read my function description, you'll see that it was for the general case). And to just say that , "nah, you failed" is simply not enough. That is not how you prove that someone's code doesn't work. You have to show it! It is okay if you do not have immediate access to a compiler.[/quote]Lol, dude, I don't need access to a compiler to write code, I keep wandering why you keep harping on that; after a few years of coding, you really don't need a compiler to be able to analyse code. In all honesty, I didn't read your comments as well, cos I didn't need to. If your function had been for the general case as you claim, you would have made no assumptions and your code would have been robust for all situations. Don't get me wrong, I don't say you aren't smart, you are, but you surely make a heap of assumptions and allow your mind and ego to trap you. An example of your assumptions is that you must loop an array like it is a straight line, from beginning to end, thats why the issue of "beaf" existing in "eafhb" as a unit came up. IMHO, an array is a circle (which is why we loop it), except you specifically wish it to be something else; a circle has no beginning or end. So why should an array be visualised as having a beginning and an end, why can we not begin looping "eafhb" from the 5th element and end at the 4th? Lol, the mind is its own trap! I'm not angry, ok maybe I got a bit upset at your challenging my knowledge because of the bad code below (and the potentially dangerous method signature it enables). You allow users enter arbitrary content at your own peril anyway (hackers delight): if(PATTERN_LENGTH > ARRAY_LENGTH) |
[quote author=omo_to_dun link=topic=675768.msg8395380#msg8395380 date=1306397088]I have been in tons of programming contests and brainstorming coding sessions; one of the requirements is that problems are not to be unambiguously stated. If a programmer has to make assumptions, then your problem is not fully defined. I am happy how you are not compiling the program but simply going by your intuition. The code works only by accident? LOL. When you questioned me about this code snippet:
It was then I knew that you didn't understand my simple code; how can a programmer say that it will always return false, given that different values could be passed to the function? Or maybe you didn't know that the variables were not declared const in function "beaf" but that they were passed in as argument. I expect more from you. [/quote]Abeg, let other people try jare! You failed the task. Don't be too worried about whether I am attempting to compile or not when I can look at the logic and tell if the code will fail. You are still griping about this?
How in the World can the values of the two arrays I gave change? Why would you be more concerned with parameters a hypothetical "anybody" is passing in while you are the one attempting the problem? It was just a piece of junk code, in fact if you were bothered about the hypothetical "anybody," there are foolproof ways to calculate array length. No? |
^ Nothing is flawed about the way I set out the problem. You made wrong assumptions about what wasn't stated. This time as well, you've made a fresh assumption, your code works, but only by accident. Lol! If you change the order in which you search the arrays, it will fail; no specific order was specified, but it is stated that the algorithm must work for all three arrays. So, you are close, but still far. Lol! Surely "beaf" exists in "eafhb" as a unit in an array, it only depends on how you look at it. |
[flash=640,480] https://www.youtube.com/watch?v=LYPOIND0n28[/flash] My Crew (My Crew) my dogs (my dogs)A rather violent song. |
[quote author=omo_to_dun link=topic=675768.msg8395077#msg8395077 date=1306392934]You said, "as a unit". Ergo, consecutively. The pattern 1,3,0,0,8 is a subsequence of the first array, but it does not exist as a single unit like you required. Rephrase your question. And also, did you compile it? I hope you are not one of those NLers who just diagnose but have nothing to back it up with. At least, I have shown you my output. 0,8,1,0,0,0,8,6,7,8,9,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1,1,3,0 [none] 1,0,0,0,8,6,7,8,9,1,3,0,0,8,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1 1,0,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,0,0,8,6,7,8,9,1,3,0,0,8,9,1. If all the bad things you pointed out will happen, then show us, with proof, not words. Maybe you can't compile the code? It shouldn't be too hard, I suppose.[/quote]Nah, i won't give the answer until a few others have tried, that will kill the fun. You have done well, but are still off mark. My question does not need rephrasing either, not at all. It requires the pattern array to be found as one unit as you've pointed out. |
I don't know if Dreamweaver is still allows it, but some years back, you could simply type in your connection string or write it manually in the file (in dreamweavers style) and it would be picked up. If thats still the case, then I suggest you do that and check for the usual silly error (mostly caused by tiredness, women or alcohol ) like if MySql server is actually running or if you are connecting through named pipes etc. |
^ Nah, if you check carefully, you'll find that the pattern is present in all 3 arrays, not just two. So, good try, but still fail. Your code can't find the pattern in the first array or all the bad things I pointed out earlier will happen. |
^ Nice try, but nah! It fails. Why do you have this piece of code? if(PATTERN_LENGTH > ARRAY_LENGTH) I ask because, both PATTERN_LENGTH and ARRAY_LENGTH are consts that will never change, so your condition will always return false. This bit here is just looking to make trouble with itself and index out of bound type lil horrors . It also fails at its task;if(array[i] == pattern[next]) There are a couple of other gotcha's, but I'm curious about new entries. |
musKeeto:Lol, I'm blessed and I thank God. |
Alj Harem, so you are now Uche nana or wareva?! Whats gonna be your next name? Lemme guess; Chidi Ebere! |
^ "Ancestor?" . . .With the powers vested in me by the SS crew, I hereby retrieve you and restore your SS citizenship. To proceed, please renounce every other allegiance. Lol! Are you Lagos royalty? @topic Here's a short list, Queen Idia (Benin), Queen Amina (Zauzau, Zaria), King Jaja (Opobo). |
Test your ability. . . .Just a really simple challenge to post a piece of code with a single for loop that will find the following pattern (as a single unit): 1,3,0,0,8 in the following arrays: 0,8,1,0,0,0,8,6,7,8,9,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1,1,3,0 1,0,0,0,8,6,7,8,9,1,3,0,0,8,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1 1,0,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,0,0,8,6,7,8,9,1,3,0,0,8,9,1 The same algorithm must work in all cases and ALL operations must be to do with integers; no chars, strings, bytes, bits etc. Enjoy! ![]() --Edit-- I need to clarify the open requirement sentence; ". . .Just a really simple challenge to post a piece of code with a single for loop that will find the following pattern (as a single unit):" This means that the only looping mechanism available to you is what is provided by the for loop. There must be no pseudo looping mechanisms like recursion or the employment of ugly tricks like labels and gotos. |
talk2hb1:Methinks you don't know the meaning of worm. In straight talk sir, I mean you are talking crap. From your little description, you wrote a crawler, a relatively simple task and hardly a dark art (but then, neither is programming). http://A computer worm is a self-replicating malware computer program, which uses a computer network to send copies of itself to other nodes (computers on the network) and it may do so without any user intervention. This is due to security shortcomings on the target computer. Unlike a computer virus, it does not need to attach itself to an existing program. Worms almost always cause at least some harm to the network, even if only by consuming bandwidth, whereas viruses almost always corrupt or modify files on a targeted computer.http://en.wikipedia.org/wiki/Computer_worm No? |
I would advice C# on the .NET platform. C# is about the easiest compiled language to learn, its built in library is also by far the most comprehensive. The .NET platform is the most powerful and supported Rapid Application Development (RAD) environment in existence. The IDE, Visual Studio is second to none, in fact it is light years ahead of its closest rival (Java's Eclipse). The beauty and versatility of C# have caused it to be adopted outside the Windows OS. Here are a couple of examples: Mono This is basically .NET for Linux. Same code on Windows will run smoothly (although Mono always lags a bit behind .NET). Vala This is C# compiled to native (C). Originally designed for Unix type Operating Systems (Linux, Solaris etc), its since been ported to Windows, so you can create a Vala app in Visual Studio and with very few simple changes, compile it to C source code, which you can then compile with any C compiler into a native assembly. Cool! C# is the future, and its an exciting place to be. ![]() |
blacksta:This must be with local govts. Yes? |
Kinikini:Two things: [list] [li]You cannot compare man and beast. GEJ is better than Buhari.[/li] [li]LOL! Una don see fool! The CAN president cannot be quiet while Christians and Churches are being freely erased by primitive mobs.[/li] [/list] |
@Jason123 That was a vast lump of pedantic goo you typed. |
dem people: 11. Beaf - Delta? -Damn! ![]() |
Sahara Reporters again? LOLZZ!!! |
greateros:They certainly no almajiri's and no plates in the pix. ![]() |
You can create Android apps in C# and good ol' Visual Studio, nothing beats that combination for sheer RAD, quality and code nirvana. There are a plethora of brilliant Mono ports to Android, the one from Novell stands out: http://mono-android.net/ But there's also https://github.com/koush/androidmono. Guy's, give up dying languages like Java, VB etc. |
omo9ja1:Exactly! Here is someone out of touch with reality and modernity, someone who should be enjoying his grandchildren. But he will be there, losing as usual in 2015, 2019, 2023, 2027, 2031, and in "spirit" from 2035 onwards. . . .As always, inspired by sharia and backed by almajiri's his useless administration helped disenfranchise. Nigeria has said a final goodbye to coup plotting, illiterate, bush and damn primitive generals that have relentlessly dragged us backwards. Its the communication age, with twitter, facebook and the like holding sway; its surely not the time for decripit old cows who can barely read the alphabet on mobile phone keys, talkless fathoming how to use one. SSS bera check his dusty arse for any Bin Laden inspired tools and equipment. |
Gbawe:So, what has been taken out? It is just your usual scarecrow arguments for the sake of it. What has been watered down? Proof please! If David Mark "attempted" (in your own words), does it mean it happened and do you have proof? Damn! Namedropping doesn't make arguments. |
1 2 3 4 5 6 7 8 ... 383 384 385 386 387 388 389 390 391 (of 876 pages)





) like if MySql server is actually running or if you are connecting through named pipes etc.