Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,189,305 members, 7,936,902 topics. Date: Sunday, 01 September 2024 at 07:20 AM

Javanian's Posts

Nairaland Forum / Javanian's Profile / Javanian's Posts

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

Programming / Re: Coding Challenge For Fun by Javanian: 11:15am On Aug 13, 2017
edicied:

wHEN I TESTED YOUR CODE IT GAVE ME THIS....


>>> >>> >>> ... ... ... ... ... File "<stdin>", line 6
i=0
^
SyntaxError: invalid syntax
>>> >>> ... ... ... ... ... ... ... File "<stdin>", line 8
print counter
^
SyntaxError: Missing parentheses in call to 'print'
>>>


What interpreter are you using? Hope you are not screwing up the indentation? It runs on ideone, the link I pasted. Tested on 3 different interpreters online and couldn't replicate this error.
Programming / Re: Question For Javanian by Javanian: 12:09pm On Aug 12, 2017
Thanks
Programming / Re: Question For Javanian by Javanian: 11:32am On Aug 12, 2017
I don't. Only Super Moderators and Administrators have that privilege. tongue
Programming / Re: Computer Language by Javanian: 10:20am On Aug 12, 2017
yellow237:
Where ar the programmers in the house...
I want to know the diff between c+ and cc+ and which one is the best for writing game softwares...have been using java for sometime now but need to try out some other languages

Do you mean C and C++?
Programming / Re: Coding Challenge For Fun by Javanian: 10:17am On Aug 12, 2017
Python


input = "aA11"
input = input.lower()
list = [0] * 36
for i in input:
if i.isdigit():
list[int(i)+26]+=1
else:
list[ord(i)-97]+=1
i=0
counter = 0
while i < len(input):
if input[i].isdigit():
counter += list[int(input[i])+26]-1
i += list[int(input[i])+26]
else:
counter += list[ord(input[i])-97]-1
i += list[ord(input[i])-97]
print counter


https://ideone.com/UstREc
Programming / Re: Storage Bindings Of Variables by Javanian: 11:15pm On Aug 11, 2017
bump tongue
Programming / Re: What Can I Do With Fortran Programming by Javanian: 10:48pm On Aug 11, 2017
It could be used for Numerical Analysis & Scientific Computation, in fact, It is arguably the best language in this domain. If that is your target then it's totally worth it. Python with Scipy and Numpy is also awesome. I created a thread on this sometime ago, you can find it here: https://www.nairaland.com/1916479/what-favorite-language-numerical-analysis
TV/Movies / Re: Game Of Thrones Discussion (Beware Of Spoilers) by Javanian: 10:53pm On Aug 07, 2017
Gbola5:



That's not all of Varys's birds surely.

Proof? Please let's stick with what we know.


Balon Greyjoy/ The iron Islands is the closest to Casterly Rock, ofcourse he poses a threat, he did in the Greyjoy Rebellion. The Lannisters were lucky Balon had his eyes in the North.

Irrelevant. The most important thing is that he never posed a threat to the Lannisters


The Lannister army is really the most disciplined, their region had enough gold to train their soldiers, but they do not have the largest army.

They do. If you say the don't, I would expect you state which side does.


Did I miss something ? When did the Tyrells not have an army, a large one at that ? The Reach is the most populous kingdom, House Tyrell could field an army in a short amount of time, and provide enough food to feed them. The Tyrell army fought at the Battle of Blackwater.

Nowhere did I say the Tyrell didn't have an army. They were a great house so they certainly had an army. I said they didn't have a great army, relative to to Lannisters. Wealth + Food + Population does not equal a great army. Some countries don't just like wars. Most importantly, I stated this was more of a coup than it was war. What was left of House Tyrell to fight for? Grandma Olenna?


I would put Stannis above Randyll but Stannis is dead.

Can we stick to present tense.


The Lannisters lost more than half their forces in the War of the Five Kings.

Proof?

5 Likes 1 Share

TV/Movies / Re: Game Of Thrones Discussion (Beware Of Spoilers) by Javanian: 9:39pm On Aug 07, 2017
I think I should respond to this post since no one did.

Chysler:
Varys has so far failed no less than 3 times in a span of two episodes to provide any intelligence of the enemy's movement. They literally move armies of tens of thousands right under his nose.

Varys is only is good as his whisperers--little birds. He has none of that now, he doesn't have the resources he had when he was master of whispers. His whisperers are now controlled by Qyburn who is loyal to Cercei. He is openly an enemy of the crown so his influence and power has drastically reduced.


Where was the Tyrell army? are you going to tell me that a ten thousand men army can take a heavily fortified castle in a frontal assault (and they are willing to sustain the colossal losses

1. House Tyrell never had a great army--as said by Lady Olenna. War was not their thing and that's why they stayed rich till the end while Lannisters went broke because of the wars they started and brought on themselves. Wars are very expensive. There was never a time in the series when House Tyrell was known to contribute armies to any war and that's because they didn't have any. What they always brought to the table was Food and Gold. First to the Lannisters--because of Tywin--and until recently to Daenerys. That's not surprising, even till this day there a lot of rich countries that don't have great armies. cc: Canada, Switzerland and so on.

2. Randyll being Westeros' best military strategist and the strongest points of House Tyrell's army defected and sided with House Lannister after he was promised The Reach. So this was more of a coup than it was a war. Even before the sack, House Tyrell was gone for all intent and purposes. Mace Tyrell is dead, Loras Tyrell is dead and Margaery Tyrell is dead. All they were left with was a septuagenarian Olenna Tyrell. So I am sure most of the Tyrell army decamped before the sack, Heck! some of them might have orchestrated it. Nobody was going to die for a lost cause. House Tyrell was a lost cause.


even though the lannisters havev already lost more than half the army they started with at the war of the five kings)? Where's the realism that made this show so great? It's all gone down the drain for the sake of the plot.

The Lannisters didn't suffer as much loss as you are implying in the war of the 5 kings.

Who were the 5 kings?

1. Joffrey Baratheon

2. Renly Baratheon: Killed by Stannis' shadow.

3. Stannis Baratheon: He was killed in the war against the Bolton's. Even if you take the Battle of Blackwater Bay into account, The majority of the Lannister army arrived with Tywin Lannister when the war was almost over and "saved the day", very similar to what the Knights of the Vale did in the Battle of the Bastards.

4. Robb Stark: Killed by his own bannermen and House Frey in the Red Wedding. The only time he did damage to the Lannister army was when he captured Jaime Lannister and that was a very small army. That hardly counts as "big damage"

5. Balon Greyjoy: Never a threat to the Lannisters, mostly fought against House Stark and then House Bolton in the North.

Also, take into consideration that the Lannisters are the richest house and have the most powerful army in the 7 kingdoms. Though they have been debts post war of the 5 kings, it doesn't make any difference.

cc: Seun [I am copying you because you shared the post and that was how I saw it]

11 Likes 1 Share

Programming / Re: Weekend Challenge For Practice: RLE Encoding by Javanian: 11:53pm On Aug 05, 2017

input = "wwwwaaadexxxxxx"
list = [0] * 26
for i in input:
list[ord(i)-97]+=1
i=0
while i < len(input):
print input[i], list[ord(input[i])-97]
i += list[ord(input[i])-97]


https://ideone.com/rTAiHh

8 Lines
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by Javanian: 8:15pm On Dec 23, 2016
steve6:

Thank you for the speedy response. I get it now. I will let u know when the time comes. However, I dont mind if I can get the recommendations now so I can source for the materials and keep(YouTube videos inclusive) for future use coz I have access to a stable internet now and who knows what tomorrow will bring. Thanks

There is a book called Introduction to Algorithms by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein (CLRS). It is the most widely used book in this area but it's a bit advanced. You can start with Data Structures and Algorithms by Robert Lafore or Algorithms 4e by Sedgewick and then move on to CLRS.

There are also courses on Coursera, one from Princeton and one from Stanford. They are both really good courses. You can try any one of them but I would recommend the one of Princeton because I have used that personally but I am sure the one of Stanford is just as great.
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by Javanian: 6:18pm On Dec 23, 2016
steve6:


Hi Javanian. Thanks for the wonderful thread on learning programming. Please I have a question. I read somewhere in the post where u mentioned learning algorithm n data structure(if my memory serves me right). Am learning programming n discovered a lot has to do with logic. Is there a separate course for programming known as ALGORITHM? Or is it a branch of programming? Also shed some light on DATA STRUCTURE. Thanks.

Data Structures and Algorithms are a branch of computer science different from programming languages. So yes, They are courses you should spend time learning when you have gained some mastery of whatever language you are learning. But for now, you should first of all learn your language properly by working on some personal projects. When you have done that I can recommend books for you.
European Football (EPL, UEFA, La Liga) / Re: Fc Barcelona Fan Thread: "més Que Un Club" by Javanian: 5:30pm On Nov 28, 2016
philfearon:

Rakitic has been Superb bro, don't know why still keep mentioning him.
Gomes is still not yet fluent with Barca system , and i didn't see you complain on Wednesday that he played.
It's obvious Enrique doesn't know how to use Arda Turan.

How exactly has Raktic been superb? He is a CMF, he is supposed to be our No. 1 play maker, how many assists has he gotten this season? How many chances has he created? What criteria did you use to judge him and say he is superb? He had a good first season but has since then become yet another failed signing.

2 Likes

European Football (EPL, UEFA, La Liga) / Re: Fc Barcelona Fan Thread: "més Que Un Club" by Javanian: 5:13pm On Nov 28, 2016
philfearon:

But before the start of the season you congratulated him for buying the right players for the right positions?

Congratulated him how? He had the opportunity to get Nolito, he would rather get Arda Turan and play him on the wing. He could have gotten Verrati or Gundogan, he decided to go with Andres Gomes and Raktic. Why should I congratulate him? I really hoped he knew what he was doing but it's now obvious he didn't. After so much money spent we are back to relying on 32 year old Iniesta. He has himself to blame.
European Football (EPL, UEFA, La Liga) / Re: Fc Barcelona Fan Thread: "més Que Un Club" by Javanian: 5:04pm On Nov 28, 2016
philfearon:

What would you do with the current crop of players?

He is responsible for the dilapidated squad we have. Most of his signings have been outright failures and he should be blamed for that. Jeremy Mathieu, Arda Turan, Andres Gomez, Paco Alacer, Alex Vidal, even Ivan Raktic. This is his third season so he has himself to blame if he doesn't have the right squad.
European Football (EPL, UEFA, La Liga) / Re: Fc Barcelona Fan Thread: "més Que Un Club" by Javanian: 8:36am On Nov 10, 2016
Hope you all have voted for the best Fifa Men's Player ?

http://www.fifa.com/the-best-fifa-football-awards/best-fifa-mens-player/index.html
European Football (EPL, UEFA, La Liga) / Re: Fc Barcelona Fan Thread: "més Que Un Club" by Javanian: 11:44am On Nov 02, 2016
iPopAlomo:






Too busy to dig further... but that's the person that has been shouting up and down about Roberto besting Bellerin... and he's not even a RB.... this is too funny... grin

You might as well say Giroud is better than Suarez, Alexis is better than Messi, and Walcott is better than Neymar since they all had a bad game yesterday. Sergi Roberto is a better right back then Bellerin, one bad game does not change that.

1 Like 1 Share

Programming / Re: The Untold Story Of The Shudown Of NSEAPI by Javanian: 12:25pm On Oct 14, 2016
Okay. Thread moderated. Derail again and you get a ban.

1 Like

Programming / Re: What Can Be Done To Improve This Section? by Javanian: 9:56am On Sep 27, 2016
Toniwirelex:
after spending hours snooping through your moniker and reading some of your posts, i can only come to one conclusion; YOU ARE A GENIUS
i wish i had seen your posts earlier. seriously, i never knew people like you existed here in nigeria. is there any way i could communicate directly with you?
will it be too much to ask if i ask you for your phone number? (that's exactly what am doing.)

Genius? Really? smiley You can get my number from my Resume on my signature.
Programming / Re: Storage Bindings Of Variables by Javanian: 9:51am On Sep 27, 2016
ugwum007:


brother Javanian, I thought variables created in a method is destroyed after the method is executed.

what of these:

int counter(){

int count = 0;

return count;
}

I am still a learner, please clarify me.

A method is a subprogram. Technically, Subprograms are Programs.
Programming / Re: Storage Bindings Of Variables by Javanian: 9:47am On Sep 27, 2016
ugwum007:

Are you sure that expression will print anything?
Typo. Thanks for bringing it to my attention.

1 Like

Programming / Re: What Can Be Done To Improve This Section? by Javanian: 11:45pm On Sep 25, 2016
sonofluc1fer:
Hey. E don tey. Hope ur good. Muskeeto smiley
Really been a while. I am good, Hope you are?
Programming / Re: What Can Be Done To Improve This Section? by Javanian: 9:36pm On Sep 25, 2016
DanielTheGeek:


Wow, so there's even a report button... I didn't know, but shall thy respond when thee useth it?

Yes. They will be responded to.
Programming / Re: What Can Be Done To Improve This Section? by Javanian: 1:21pm On Sep 25, 2016
DanielTheGeek:
From now on, a thread is marked as irrelevant once any of the people below posts "IRRELEVANT" on the thread.
Larisoft,
SeunThomas,
Dhtml18,
Guru01,
Djade007,
Asalimpo,
DonSegmond and
DanielTheGeek.

When posting, mention another person listed above. e.g: "IRRELEVANT cc asalimpo".


I like to believe that is what the 'Report' button is intended for but people don't use it. When you see a post that you think is not appropriate for this section, simply use the report button and report the post and it will be attended to.

1 Like

Webmasters / Re: Seun We Cannot Login Nairaland Via Freebasics by Javanian: 2:44pm On Sep 18, 2016
Seun:

Of course I understand the thing I created 11 years ago, but I don't understand what the networks are doing to it. If I understood it then in all likelihood the problem would have been solved. I would urge you to refrain from commenting on this thread if you have nothing helpful to say.

Why don't you redirect nairaland.com to nairaland.com/home. That always works when I encounter the problem.
Programming / Re: Storage Bindings Of Variables by Javanian: 3:29pm On Sep 08, 2016
danvery2k6:
If we are to go by the definition of Implicit Heap-dynamic Variables, which says "Variables for which storage is not allocated until the variable is assigned to". Would we still consider pointers in C to be Implicit Heap-dynamic variables?

I also think that pointers in C don't change storage location, but simply values stored in the location, which seems to violate the second definition point of Implicit Heap-dynamic variables: " the storage associated with the variable can change with every assignment to it".

How is it possible that the above shows an example of Implicit Heap-dynamic variable?


I am also very skeptical about that example, it breaks too many rules as you have rightly stated. I just came across the example here

1 Like

Programming / Re: Storage Bindings Of Variables by Javanian: 4:28pm On Sep 07, 2016
In C


char *x;

x = "Seun Osewa";
x = "Seun";


I just saw this interesting example online where the variable x is said to be implicitly heap dynamic probably because the value of x changes at runtime. I never thought until now that a strongly type language could be "implicitly" heap dynamic though it can be argued that x is explicitly a String.
Programming / Re: Best Data Type For Ip Address? by Javanian: 2:12pm On Sep 06, 2016
Varchar should work. Create an array of strings containing all the IP addresses and sort the array.
Programming / Re: Storage Bindings Of Variables by Javanian: 2:47pm On Sep 05, 2016
danvery2k6:


I'm guessing one weakness here will be a probable loss of error detection capabilities by the compiler or interpreter?

+10

A weakness of most weakly typed languages, Sacrificing Reliability and Readability for Writability.

1 Like

Programming / Re: Storage Bindings Of Variables by Javanian: 2:11pm On Sep 05, 2016
danvery2k6:


I've been trying to understand why you did the things you did in this image. Maybe a little more context to the image might help us understand better. Why do some lines run from the beginning of execution to the end while some start from somewhere in the middle? Is that trying to tell us how long the variables are available in the execution context or am I getting it wrong?

Yes, you are right. The image is simply an anecdote of the various storage bindings. Static variables are bound to memory sometime before execution begins and are not deallocated until after execution. Stack dynamic variables are bound during elaboration of the variable (when execution gets to it) and are not unbounded until execution is complete while Heap dynamic variables can be allocated and deallocated as often as possible during execution.

1 Like

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 57 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. 64
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.