Sunday

होंडा की 17 साल पुरानी कार के अब नहीं होंगे दीदार



जापान की कार निर्माता होंडा ने भारत में अपनी 17 साल पुरानी हैचबैक कार ब्रियो का उत्पादन बंद कर दिया है, और इसी के साथ अमेज होंडा की अब भारतीय बाजार में सबसे कम कीमत की कार बन गई है। ब्रियो का उत्पादन बंद करने के पीछे बड़ा कारण ग्राहकों का बड़े मॉडलों में दिलचस्पी दिखाना है।



होंडा कार्स इंडिया के वरिष्ठ उपाध्यक्ष और निदेशक (बिक्री और विपणन) राजेश गोयल ने ‘पीटीआई-भाषा’ को बताया, “हमारी शुरुआती कीमत वाली कार अब अमेज है। हमने ब्रियो को उत्पादन बंद कर दिया है और फिलहाल भारत में ब्रियो का अगला संस्करण लाने की हमारी कोई योजना नहीं है।

गोयल ने एक सवाल के जवाब में कहा, “अमेज भारतीय बाजार में हमारी शुरुआती कीमत की कार होगी।” उन्होंने कहा कि जैज और डब्ल्यूआर-वी दो अन्य मॉडल हैं, जो छोटे कार की जरूरतों को पूरा करेंगे।होंडा ने सितंबर, 2001 में ब्रियो को भारतीय बाजार में उतारा था और अब तक 97,000 कारों की बिक्री कर चुका है।

निसान किक्स को मात्र 8 दिन में मिले 13 हजार ग्राहक



निसान के लिए ऑल-न्यू किक्स कॉम्पैक्ट एसयूवी एक किक की तरह काम कर रही है, जनवरी 2019 में निसान ने भारतीय बाजार में किक्स एसयूवी की कुल 1,370 इकाइयां बेची। जिसे 23 जनवरी को लॉन्च किया गया था।यानी किक्स को मात्र 8 दिनों में 1,370 ग्राहक मिले।



किक्स से निसान ने अकेले डैटसन ब्रांड को छोड़कर 55% की बिक्री में वृद्धि की। हालांकि ब्रांड के बाकी प्रोडक्ट का प्रदर्शन अच्छा नहीं रहा जिनमें 25% की गिरावट देखी गई। भारतीय बाजार में अपनी दशा सुधारने के लिए निसान किक्स को लॉन्च किया गया था।

निसान किक्स को भारत में 9.50 लाख रुपए के शुरूआती मूल्य के साथ उतारा गया। इस प्राइस रेंज के साथ यह कॉम्पैक्ट एसयूवी हुंडई क्रेटा, रेनो कैप्चर और मारुति एस-क्रॉस को टक्कर देती है। किक्स वर्तमान में पेट्रोल और डीजल इंजन दोनों विकल्पों के साथ उपलब्ध है।

रेनल्ट डस्टर में आया नया एएमटी वैरियंट, 7.99 लाख से शुरू

देश के बेस्ट सेलिंग एसयूवी में शामिल रेनल्ट डस्टर में कुछ नए अपडेट शामिल किए हैं। रेनो ने डस्टर के डीजल वैरियंट में ऑटोमैटिक ट्रांसमिशन का ऑप्शन लॉन्च किया है। डस्टर अब केवल तीन वैरियंट में ही मिलेगी। डस्टर का मुकाबला हुंडई क्रेटा और मारुति एस क्रॉस से है। डस्टर पेट्रोल पेट्रोल की कीमत 7.99 लाख रुपए से शुरू होती है, जबकि टॉप डीजल की कीमत 110पीएस RXZ AWD वैरियंट की कीमत 13.09 लाख रुपए है।




रेनो ने कॉम्पैक्ट एसयूवी डस्टर के वैरियंट लाइनअप में फेरबदल किया है। अब डस्टर के पेट्रोल वर्जन में केवल तीन ही वैरियंट RxE, RxS और RxZ मिलेंगे, वहीं डीजल में 6 वैरियंट रहेंगे। डस्टर ने पेट्रोल वर्जन में RxL वैरियंट को खत्म कर दिया है। माना जा रहा है कि रेनो ने यह फेरबदल अगले साल अप्रैल 2020 में लागू होने वाली नए बीएस-6 मानकों के चलते उठाया है और रेनो उससे पहले ही डस्टर का वर्तमान स्टॉक खत्म करना चाहती है।

वहीं रेनो डस्टर के डीजल वैरियंट पर 65 हजार रुपए तक के ऑफर पेश कर रही है। जिसमें सभी वैरियंट्स पर पहले साल में 1 रुपए इंश्योरेंस और 20 हजार रुपए का कैश डिस्काउंट शामिल है। वहीं पेट्रोल वैरियंट्स पर केवल 20 हजार रुपए के ऑफर मिलेंगे। साथ ही 5 हजार रुपए का कारपोरेट बोनस भी मिलेगा। रेनो के मुताबिक ये डिस्काउंट केवल 2019 के सभी वैरियंट्स पर मिलेंगे।

Thursday

InetAddress in Networking



Inet Address encapsulates both numerical IP address and the domain name for that address. Inet address can handle both IPv4 and Ipv6 addresses. Inet Address class has no visible constructor. To create an inet Address object, you have to use Factory methods.
Three commonly used Inet Address factory methods are.
  1. static InetAddress getLocalHost() throws UnknownHostException
  2. static InetAddress getByName (String hostname) throws UnknownHostException
  3. static InetAddress[ ] getAllByName (String hostname) throws UnknownHostException

Example using InetAddress class
import java.net.*;
class Test
{
 public static void main(String[] args)
 {
  InetAddress address = InetAddress.getLocalHost();
  System.out.println(address);
  address = InetAddress.getByName("www.netparam.com");
  System.out.println(address);
  InetAddress sw[] = InetAddress.getAllByName("www.netparam.com");
  for(int i=0; i< sw.length; i++)
  {
   System.out.println(sw[i]);
  }
 }
}
Output:
Welcome-PC/59.161.87.227
www.netparam.com/74.125.236.115
www.netparam.com/74.125.236.116
www.netparam.com/74.125.236.112
www.netparam.com/74.125.236.113
www.netparam.com/74.125.236.114
www.netparam.com/2404:6800:4009:802:0:0:0:1014


Wednesday

URLs to Local Files






The URL class can also be used to access files in the local file system. Thus the URL class can be a handy way to open a file, if you need your code to not know whether the file came from the network or local file system.

Here is an example of how to open a file in the local file system using the URL class: URL url = new URL("file:/c:/data/test.txt");

URLConnection urlConnection = url.openConnection();
InputStream input = urlConnection.getInputStream();

int data = input.read();
while(data != -1){
System.out.print((char) data);
data = input.read();
}
input.close();


Notice how the only difference from accessing a file on a web server via HTTP is the the URL: "file:/c:/data/test.txt".

Tuesday

HTTP GET and POST



By default the URLConnection sends an HTTP GET request to the webserver. If you want to send an HTTP POST request instead, call the URLConnection.setDoOutput(true) method, like this:
URL url = new URL("https://vigyancode.blogspot.com/");
 
URLConnection urlConnection = url.openConnection();
urlConnection.setDoOutput(true);
Once you have set called setDoOutput(true) you can open the URLConnection's OutputStream like this:
OutputStream output = urlConnection.getOutputStream();
Using this OutputStream you can write any data you want in the body of the HTTP request.  
Remember to close the OutputStream when you are done writing data to it.

Monday

Difference between TCP and UDP



TCP
UDP
Reliability: TCP is connection-oriented protocol. When a file or message send it will get delivered unless connections fails. If connection lost, the server will request the lost part. There is no corruption while transferring a message.
Reliability: UDP is connectionless protocol. When you a send a data or message, you don’t know if it’ll get there, it could get lost on the way. There may be corruption while transferring a message.
Ordered: If you send two messages along a connection, one after the other, you know the first message will get there first. You don’t have to worry about data arriving in the wrong order.
Ordered: If you send two messages out, you don’t know what order they’ll arrive in i.e. no ordered
Heavyweight: – when the low level parts of the TCP “stream” arrive in the wrong order, resend requests have to be sent, and all the out of sequence parts have to be put back together, so requires a bit of work to piece together.
Lightweight: No ordering of messages, no tracking connections, etc. It’s just fire and forget! This means it’s a lot quicker, and the network card / OS have to do very little work to translate the data back from the packets.
Streaming: Data is read as a “stream,” with nothing distinguishing where one packet ends and another begins. There may be multiple packets per read call.
Datagrams: Packets are sent individually and are guaranteed to be whole if they arrive. One packet per one read call.
Examples: World Wide Web (Apache TCP port 80), e-mail (SMTP TCP port 25 Postfix MTA), File Transfer Protocol (FTP port 21) and Secure Shell (OpenSSH port 22) etc.
Examples: Domain Name System (DNS UDP port 53), streaming media applications such as IPTV or movies, Voice over IP (VoIP), Trivial File Transfer Protocol (TFTP) and online multiplayer games etc