Deprecated: Return type of WP_Theme::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-theme.php on line 554

Deprecated: Return type of WP_Theme::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-theme.php on line 595

Deprecated: Return type of WP_Theme::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-theme.php on line 535

Deprecated: Return type of WP_Theme::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-theme.php on line 544

Deprecated: Return type of WP_REST_Request::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/rest-api/class-wp-rest-request.php on line 952

Deprecated: Return type of WP_REST_Request::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/rest-api/class-wp-rest-request.php on line 972

Deprecated: Return type of WP_REST_Request::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/rest-api/class-wp-rest-request.php on line 984

Deprecated: Return type of WP_REST_Request::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/rest-api/class-wp-rest-request.php on line 995

Deprecated: Return type of WP_Block_List::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 151

Deprecated: Return type of WP_Block_List::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 175

Deprecated: Return type of WP_Block_List::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 164

Deprecated: Return type of WP_Block_List::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 186

Deprecated: Return type of WP_Block_List::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 138

Deprecated: Return type of WP_Block_List::offsetExists($index) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 75

Deprecated: Return type of WP_Block_List::offsetGet($index) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 89

Deprecated: Return type of WP_Block_List::offsetSet($index, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 110

Deprecated: Return type of WP_Block_List::offsetUnset($index) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 127

Deprecated: Return type of WP_Block_List::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/class-wp-block-list.php on line 199

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home1/smartva9/public_html/smartvania/wp-includes/class-wp.php on line 173

Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home1/smartva9/public_html/smartvania/wp-includes/wp-db.php on line 3031

Warning: Cannot modify header information - headers already sent by (output started at /home1/smartva9/public_html/smartvania/wp-includes/class-wp-theme.php:9) in /home1/smartva9/public_html/smartvania/wp-includes/feed-rss2.php on line 8
SmartVania https://smartvania.com Village of wisdom Mon, 28 Dec 2020 04:41:58 +0000 en-US hourly 1 https://wordpress.org/?v=5.6.13 https://smartvania.com/wp-content/uploads/2015/11/cropped-svicon1-32x32.png SmartVania https://smartvania.com 32 32 Live Python 3 Tutorial Series https://smartvania.com/live-python-3-tutorial-series/ Mon, 28 Aug 2017 19:23:12 +0000 http://smartvania.com/?p=1580

]]>
Temperature Conversion Formulas https://smartvania.com/temperature-conversion-formulas/ Mon, 28 Aug 2017 14:12:01 +0000 http://smartvania.com/?p=1560 Fahrenreit Celcius Kelvin Fahrenheit(F) F (F-32)*5/9 ((F-32)*5/9)+273.15 Celsius(C) (C*9/5) + 32 C C + 273.15 Kelvin(K) (K-273.15)*9/5 +32 K – 273.15 K Fahrenreit Celcius Kelvin ]]> Code Request https://smartvania.com/code-request-2/ Sun, 27 Aug 2017 04:04:45 +0000 http://smartvania.com/?p=1554

I was watching your videos on youtube about assembly, but I have many doubts… I have an exercise to do until next Sunday, and I don’t know how to do it!
The steps are:

A) Send the message: “Enter your registration number”;
B) Receive 9 numeric digits corresponding to a registration number;
C) If the registration is all zero, and the program (call the system with the exit operation)
D) Search in the registrations stored as constants in the program
D.1) If you find the registration, present the text:
“The registration number XXXXXXXXX corresponds to student YYYYYYYY.”
D.2) If you can not find the registration, please submit the text:
“Registration XXXXXXXXX was not found”
D.3) If the registration number corresponds to your registration number, present the text:
“It’s me! I’M YYYYY YYYYY YYYY and my register number is XXXXXXXXX ”
E) Go back to step “A”

The names must be stored using .asciiz and the registration numbers must be stored as a 32-bit integer, formatted as BCD, that is, every 4 bits, we have a decimal digit. The first number of the register number is always 1 and should not be stored. Registration example: 112345678 will be stored in hexadecimal as
12345678h (binary 0001_0010_0011_0100_0101_0110_0111_1000);

See below:

# Partially completed solution.
.data
message: .asciiz "Enter your registration number: "
found_message: .asciiz "The registration number XXXXXXXXX corresponds to student YYYYYYYY.\n"
not_found_message: .asciiz "Registration XXXXXXXXX was not found.\n"
my_number_found_message: .asciiz "It's me! I'M YYYYY YYYYY YYYY, and my register number is XXXXXXXXX.\n"
registration_names: .asciiz "XXXXXX", "YYYYYY"
registration_numbers: .word 0x0000000, 0x000000
my_number: .word 0x000000

.eqv ARRAY_SIZE 8 # 2 ints = 8 bytes
.text
main:
loop:
# Show prompt.
li $v0, 4
la $a0, message
syscall

# Get input.
li $v0, 5
syscall

# If all 0's, then end program.
move $a0, $v0
beqz $a0, main_exit

# Search (pass value to search in $a1).
move $a1, $a0
jal search_registration

b loop

main_exit:
li $v0, 10
syscall

# Expects user input in $a1.
search_registration:
# $t1 is loop index. $t2 is my number.
li $t1, 0
search_loop:
lw $a0, registration_numbers($t1)
beq, $a0, $a1, number_found
addi $t1, $t1, 4
beq $t1, ARRAY_SIZE, number_not_found
blt $t1, ARRAY_SIZE, search_loop

number_found:
lw $t2, my_number
beq $a0, $t2, my_number_found
li $v0, 4
la $a0, found_message
syscall

b search_registration_exit
my_number_found:
li $v0, 4
la $a0, my_number_found_message

syscall
b search_registration_exit
number_not_found:
li $v0, 4
la $a0, not_found_message
syscall
search_registration_exit:
jr $ra

]]>
MIPS Tutorial 38 – 2D Array Implementation https://smartvania.com/mips-tutorial-38-2d-array-implementation/ Fri, 18 Aug 2017 10:56:24 +0000 http://smartvania.com/?p=1551

]]>
2D Arrays (MIPS) a brief explanation https://smartvania.com/2d-arrays-mips-a-brief-explanation/ Fri, 18 Aug 2017 10:54:04 +0000 http://smartvania.com/?p=1549
Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Cookie/Jar.php on line 63

Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Cookie/Jar.php on line 73

Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Cookie/Jar.php on line 89

Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Cookie/Jar.php on line 102

Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Cookie/Jar.php on line 111

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home1/smartva9/public_html/smartvania/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
]]>
Average Program (MIPS) https://smartvania.com/average-program-mips/ Fri, 18 Aug 2017 10:41:03 +0000 http://smartvania.com/?p=1546 ]]> Bit Manipulation (MIPS Tutorial) https://smartvania.com/bit-manipulation-mips-tutorial/ Fri, 18 Aug 2017 10:28:29 +0000 http://smartvania.com/?p=1543 ]]> The Blues Brothers https://smartvania.com/the-blues-brothers/ Tue, 30 May 2017 04:47:32 +0000 http://smartvania.com/?p=1539

The Blue Brothers is one of the most odd films of the 1980’s. The film carries itself with utmost grace and it is that grace and heart that saves the movie from going too bonkers. Filled to the brim with car chases from everyone ranging from a zillion cops to a plethora of neo-Nazis plus an array of song and dance numbers, the movie lives dangerously. It threatens to go way over-the-top, but the charisma of both John Belushi and Dan Aykroyd does the movie wonders. There are a huge amount of celebrity cameos that also add to the exciting fun this movie offers. Ray Charles as a soulful music shop owner, Aretha Franklin as a manager of a restaurant, James Brown as a preacher, and a whole bunch of non-music celebrity cameos.

This film was directed by John Landis, whom previously worked with John Belushi in the hilarious 1978 film, Animal House. This whole premise is based off the very popular Saturday Night Live skit that Belushi and Aykroyd created. After Jake Blues (John Belushi) is released from prison, he and his brother Elwood (Dan Akyroyd) visit the orphanage where they grew up. They learn that the Archdiocese will stop raising money for the orphanage and they will auction the place off. This is when Jake receives a, “mission from God.” This mission has the brothers reuniting their old blues band to perform a big gig to raise the necessary 5000 dollars needed to save the place. As they set about their adventure, they seem to be making more ‘friends’  along the way.

The impeccable charms of the cast is one of the great things about the movie. Belushi is a great actor and he shares great chemistry with Aykroyd. Just like in Animal House, you can’t help rooting for the big man. That guy was absolutely funny here. In addition to wonderful leads, we have a whole slew of cameos to mention. My favorite one is Carrie Fisher’s role as a mystery woman who suddenly appears out of nowhere with these giant rocket launchers just to kill Jake. I liked John Candy as the one of the hit men after Jake. Also, Henry Gibson deserves credit as the leader of the neo-Nazi gang. We also have a range of musicians in the move such as the likes of Aretha Franklin, James Brown, and Ray Charles. All of these people really added charm into the movie.

If there would be anything to bring down the film, it would be how over-the-top the film is. I mostly enjoyed how crazy the film got at times, but I know people who had complaints. For example, the Joliet Brothers are chased in the end by what seems to be every police force, the entire U.S Army, and crazy Neo-Nazis….all at once. It may be much for someone to comprehend, but then again the movie works because it truly embraces how silly it can get. It uses its two comedic leads in Aykroyd and Candy as the force of the film and everything else is worked around these two men.

Overall, this is a very fun film filled with an abundant amount of energy. It’s funny, over-the-top, and musically-inclined. I see right away why this film is an instant classic and it goes down as one of my favorite movies.

My Grade: A

]]>
Urban Cowboy https://smartvania.com/urban-cowboy/ Thu, 30 Mar 2017 20:12:35 +0000 http://smartvania.com/?p=1533

Urban Cowboy is a decent movie, no more no less. The story wasn’t exactly inspiring as I am reminded of Grease but with country music. But the plot that has been done a million times before is deemed watchable thanks to some solid acting performances particularly those of John Travolta and Debra Winger. The movie does show what it is like to live in the Texas heartland in the midst of a country music revolution. Maybe it is the clichés, but there are a lot of cowboy hats, bandanas, and line dancing involved. There are two things that stood out in the movie. The first thing is the rodeo scenes in the nightclub. That was probably the best part of the movie. Another thing I liked is the music. Maybe it is my Texas blood, but I caught myself tapping my toes to the songs. What is unique is the movie makes use of live music. Thank you, Charlie Daniels Band!

They story is a simple, albeit clichéd story. James Bridges direct and wrote the film about a man named Bud Davis (John Travolta) who moves from the countryside to the city to be closer with his family. He takes a liking to one of the local joints, Gilley’s. He takes a job at an oil refinery which is owned by his uncle in order to save for his own land. There is where he meets a cowgirl named Sissy (Debra Winger). Just like that, they fall in love and get married. Their marriage is tested when he catches a con man named Wes (Scott Glenn) teaching his wife how to ride the mechanical bull. Wes also wants to rob Gilley’s. When a mechanical bull contest is announced, Bud is intent on saving his marriage.

The performances are key to making this movie watchable as it is. John Travolta has been on an acting slump between Grease and this film, so it’s nice to see him go back to his musical roots. He definitely still knows how to dance. Debra Winger is the breakout of the movie. In fact, she was nominated for Best New Star for this performance at the Golden Globes. She made a believable cowgirl. I think Scott Glenn is often underappreciated as an actor and his performance is a good one.

Urban Cowboy is a fine movie if not forgettable. The story is so-so, but the performances and the music are the highlights of the movie. If you want to see a movie about cowboy life in the Midwest in the early 80’s, well this movie is for you.

My Grade: C+

]]>
The Shining https://smartvania.com/the-shining/ Wed, 29 Mar 2017 03:20:13 +0000 http://smartvania.com/?p=1531

Hello, dear readers. I apologize for the delay in reviews. Between work and getting ready for a major career change, I hardly had the time to write reviews. But I am back! Today, I will review the 1980 genre classic, The Shining. Directed by masterful director Stanley Kubrick, this film went down as one of the greatest modern day horror masterpieces. Although Stephen King will “kindly” disagree. The movie is borderline sadistic in how it psychologically messes with the audience. The amount of twists and turns add up to one hell of a psychological thriller that made a mess out of my brain. The film maintains an eerie atmosphere throughout the film and it never settles until days after the end credits rolled. Jack Nicholson delivers another career-defining performance as Jack Torrance. The actor’s charisma and scary demeanor matches the tone of the movie perfectly. However, Shelley Duvall quite literally took me out of the movie at times with her blubbering performance.

I will explain the basic premise of the movie the best I can. There are so many different parts to the story, so many different interpretations and themes to make sense of, so the story can be difficult to comprehend once you go deeper and deeper into the story. Alas, one of the many traits of a Kubrick film! Jack Torrance (Nicholson) agrees to spend the winter as a caretaker at an old hotel named, “The Overlook Hotel.” The hotel is known to have an angry, haunted past. These demons and ghosts slowly catch up with Jack as he becomes more angry, depressed, and drunk, thus effecting his wife, Wendy (Shelley Duvall), and son, Danny. Danny uses a special talent of his called, “The Shining” to alert the outside world of all the events that are occurring in the hotel.

One of the things that this movie is infamous for is how it made Stephen King loathe it. He wrote the book on which this movie is based on. It is safe to say that Kubrick took liberty of the source material and switched things around, which King was not happy with. As a reader of the book, I can say both mediums are different. As a rabid fan of movies, I do really like the movie for what it was. An incredibly creepy horror that messes with your perceptions. The screenplay, written by Kubrick, can sometimes be hard to follow. That being said, it is something that is open to interpretation. I have read thoughts ranging from simple themes such as effects of alcoholism to how this story alludes to fairytales such as Hansel and Gretel and Three Little Pigs. There are other people asking, “Is this real? Are these ghosts actually real or are they the figment of the Torrances’ imaginations?” Everybody has their own interpretation. Just watch the movie, and you shall see.

I mentioned before that Jack Nicholson delivers another one amazing performance. After his 1974 feature Chinatown, I would not think that would be possible. His demeanor is tough to start out with, but once he is driven to madness by the hotel, he becomes downright crazy and that was great to see. When he says that famous line, “Here’s Johnny,” you can see how unhinged he has become. On the other side of the spectrum, I thought Duvall was mostly terrible. Her constant screaming and crying sounded fake and quite honestly, made my ears bleed. Her performance took me out of the film at times which is disappointing because of Nicholson’s amazing performance and Kubrick’s stylish directing.

The film maintains a consistent atmosphere of eeriness. The Overlook Hotel is an old-fashioned place set in the mountains and miles away from civilization which advances the creepiness of the story. Cinematographer John Alcott does a wonderful job making the film look creepy as it is. His use of the colors and production design was something special. Also that music created by Wendy Carlos was unsettling, which also added to the film. The ghosts were creepy too. Those twin girls? Enough said. Also, fantastic ending story-wise and visually.

Overall, The Shining is a great psychological horror film and a modern-day masterpiece bolstered by Jack Nicholson’s performance. This is one of the creepiest-looking films I have ever seen. I find it sad that I was abruptly taken away from the story from Shelley Duvall’s acting which took down the final score of this movie a notch. But after the commercial failure of his previous film, 1975’s underrated Barry Lyndon, it’s nice to see Kubrick having mainstream success once more.

Redrum” “Come play with us, Danny. Forever, and ever, and ever.”

My Grade: B+

 

]]>