wine

JavaScript: Slice, Substring, or Substr?

“Renato el mato” doppiaggio comico in dialetto vicentino di Renato Pozzetto in “Sono fotogenico”, divertente. Canzone del gruppo “Anonima Magnagati” Pubblicato anche su “veneta TV” (www.venetatv.net)

In JavaScript, substrings are primarily extracted through one of following String methods:
slice,
substring,
substr.

// slice
// syntax: string.slice(start [, stop])
“Good news, everyone!”.slice(5,9); // extracts ‘news’
 
// substring
// syntax: string.substring(start [, stop])
“Good news, everyone!”.substring(5,9); // extracts ‘news’
 
// substr
// syntax: string.substr(start [, length])
“Good news, everyone!”.substr(5,4); // extracts ‘news’
All three of these methods take in a start index and an optional stop index (or length) parameter, but they differ in some important ways:

substr can give inconsistent results. If the starting index is negative, substr will either return the whole string (Internet Explorer) or extract from the end of the string (other browsers).
substring swaps it’s parameters if the starting index is greater than the stopping index (start > stop).
substring returns the entire string if the starting index is negative.
slice extracts from the end of the string if the starting index is negative.
“Good news, everyone!”.slice(-4); // extracts ‘one!’

Since all three methods have roughly equivalent performance, my preference is to use slice. It supports extracting from the end of the string and I feel that returning an empty string when start index > stop follows the principle of least surprise better than substring’s swapping of parameters. I avoid substr because of the browser inconsistency.

1 comment - What do you think?
Posted by travel - October 14, 2011 at 10:57

Categories: wine   Tags: , , ,

Vodka mix for getting rid of the smell of smoke?

Peter Weygandt Wines – Part 1 – Episode #934

Gary Vaynerchuk interviews Peter Weygandt, a famous importer of European wines. They taste the first wine, a Riesling from Alsace.

Question about Vodka by TuRtLEpi…:
Vodka mix for getting rid of the smell of smoke?

The NUMBER 1 answer:
I was on here once before and I read an answere to a question about getting rid of the smell of smoke from clothing and furnitur. A fireman replied with a mix of vodka and perfum and I was wondering what it was?

Agree or disagree? Leave your own thoughts below

1 comment - What do you think?
Posted by travel - October 13, 2011 at 23:20

Categories: wine   Tags: , , ,

5 Amazing Benefits of Facebook

Roma, named after two previous ships and the city of Rome,was the fourth Vittorio Veneto-class battleship of Italy’s Regia Marina. Roma was attacked and sunk by German aircraft in 1943.

About a week ago, I embarked on a new social experiment to explore the limits of what I could really do with Facebook. Six days in, I’ve liked over three hundred pages and interacted with almost all of them to discover five things I never knew.
1. Brands Care About Early Adopters (A Lot) – Upon [...]

Be the first to comment - What do you think?
Posted by wine_expert -  at 08:37

Categories: wine   Tags: ,

Fantastic Voyage

Dino da Sandrà e Lodovico Pizzati insegnano ai bambini l’Alfabeto Veneto.

The Rocket Cinema Festival blasts off on Friday, October 28th, in Amsterdam and orbits around a further eight destinations before landing in Groningen on November 26th. Inspired by this year’s theme ‘Adventure,’ DJs, artists and musicians have been invited on board the mothership to create and perform new soundtracks for vintage movies. Written by Angela [...]

1 comment - What do you think?
Posted by sakura -  at 08:37

Categories: wine   Tags: ,

Tilio ei stranbi – Attila vicentino – veneto



Doppiaggio comico in dialetto vicentino del film “Attila flagello di Dio” con Diego Abatantuono e con la famosa parte in cui Attila fa lo “spelling”. Risate assicurate Par tuti quei ca me ga dimandà cossa che ga nome i tochi dele canson ca go trato rento sto video, a ghe li scrivo chi soto: 1) co el video scumissia se sente “Money for nothing” dei Dire Straits 2) al min 0:06 taca “veneti de rassa” dell’Anonima Magnagati 3) al min 0:29 se sente “Rondò veneziano – La Serenissima” 4) al min 1:29 ghe xe on toco de “il giro del vicentino” dell’Anonima Magnagati Pubblicato anche su “veneta TV” (www.venetatv.net)

Tags:Tilio, strambi, Attila, flagello, Abatantuono, parodia, doppiaggio, comico, vicentino, vicenza, veneto, lengoa, veneta, magnagati

3 comments - What do you think?
Posted by mmx -  at 02:19

Categories: wine   Tags: , , , , ,

vodka…..?

Qst about Vodka from StockJoc…:
vodka…..?

The NUMBER 1 answer:
Most people use Vodka as a base for other drinks. Good vodka will not have much of a taste on its own. But Lemon Drops are one of my favorite shots.

1 shot vodka (Absolut Citron) 1 Lemon slice with sugar. Shoot vodka, then suck on lemon. Mmmm.

The colder the vodka is the better it tastes – that’s why I keep a bottle of in the freezer.

If you know better then please let us know below

2 comments - What do you think?
Posted by kazzzkof - October 11, 2011 at 09:20

Categories: wine   Tags:

Navi e Marinai – Ardito,Garibaldi,Veneto



Le navi Ardito, Garibaldi, Veneto e altre in navigazione . Mare lungo e incappellate

Tags:marina militare, ardito, garibaldi, veneto, D550, 550

5 comments - What do you think?
Posted by pavel -  at 05:16

Categories: wine   Tags: , , , ,

What is the best vodka to use in jello shots?

What is the best vodka to use in jello shots?“>Got a common dark of champagne-and-cheering lined up? Seizure your …

Inquiry about Vodka by crazymus…:
What is the longest vodka to use in Jell-O shots?

Ideal reply
My best friend’s birthday is Saturday and I’m throwing her a party. Her favorite type of drink is vodka and I need to cognize the best and utmost cost efficient brand of vodka.

Want help?Leave your answer

5 comments - What do you think?
Posted by mmx - October 10, 2011 at 17:04

Categories: wine   Tags: , ,

Ohio, Canada! Oh, kanagan! – Episode #611

Gary Vaynerchuk tastes 4 wines from Okanagan with a visitor who graciously brought these wines to the thunder show!


Tags: alcohol review, Shiraz, okanagan, chardonnay, wltvOkanagan wines review, winelibrarytv, wines from Okanagan, Gary Vaynerchuk, wines, riesling, White, Okanagan wines review, wine

6 comments - What do you think?
Posted by direct -  at 12:49

Categories: wine   Tags: , , , , ,

What is the best booze for a white russian?

about Vodka Asked by chewy12:
What is the best vodka for a light russian?

My chosen answer:
I absolutely LOVE albescent russians but I can never put the magnitude of vodka in that the formula recommends therefore I never get even tipsy from them. What’s a nice smooth liquor that won’t take away from the kahlua flavour?

Whether you agree or disagree, why not leave your own idea beneath

7 comments - What do you think?
Posted by rizhulya - October 9, 2011 at 20:31

Categories: wine   Tags: , , ,

« Previous PageNext Page »