Junkle's Posts
Nairaland Forum › Junkle's Profile › Junkle's Posts
1 (of 1 pages)
Davedgr8:So sorry Bro.... |
This is the big announcement of the Google I/O 2017, the Kotlin language is now officially supported for the development of Android applications. This choice is partially acclaimed by the Android developer community, but it is also a strategic choice of Google. Indeed because of the series of trials on the use of the Java language for Android, Google is looking for a means of bypassing this, and it is possible that this wonderful language is a good initiative. Learn kotlin programming - Complete leassons tutorials here Originally, language was developed by JetBrains. It is to this company that we owe especially IntelliJ, the environment that serves as the basis in its community version to Android Studio. Moreover, it was already used by some large company developers for several years, despite the lack of official support. It can be compiled in Javascript or in machine code, it is compatible with the JVM. I will try through this article to explain the reasons why Kotlin is a first choice language for application development: 1 Kotlin Interoperability with Java Kotlin Is 100% interoperable with Java. It is possible to mix Java projects in your projects and use them with Kotlin. All your favorite Java frameworks are still available. Your Kotlin learning time will be even quicker. 2 A concise and concise syntax in Kotlin Programming language Kotlin is not a language born in the academic world. Its syntax is familiar to any Java programmer who knows the basics of object-oriented programming. It can be learned quickly.There are of course some differences with Java like the reworked builders and the declaration of the variables. (Val and var). Here is a classic "Hello World" to explain the basics: Class foo {// declaration of a class val b: String = "b" // val means not editable var i: Int = 0 // var means editable //coding180.com fun hello () {// declaring a function with fun val str = "Hello" Print ("$str World" // return the print} fun sum (x: Int, y: Int): Int { Return x + y } Fun maxOf (a: Float, b: Float) = if (a > b) a else b } Learn kotlin programming - Complete leassons tutorials here 3 String Interpolation in Kotlin Programming language It is like a more intelligent and more readable version of the Java function:String.format() This function is directly integrated in the language: val x = 4 val y = 7 print("sum of $x and $y is ${x + y}" // the sum of 4 and7 is 11 4 Type Inference with Kotlin Programming language val a = "abc" // this type corresponds to a String val b = 4 // this type corresponds to an Int val c: Double = 0.7 // this type is declared explicitly with: val d: List = ArrayList() // this type is declared explicitly 5 Smart Casts The Kotlin compiler tracks your logic and auto-cast types, which means more than:instanceof Here's an explicit cast: If (obj is String) { print (obj.toUpperCase ()) // obj is now known as a String } 6 Intuitive Equals You can stop using: equals() Explicitly because the == operator now checks the structure equality: val tom1 = Person ("Tom" ![]() val tom2 = Person ("Tom" ![]() tom1 == tom2 // true (equality of structure) tom1 === tom2 // false (reference equality) Tom1 == tom2 // true (equality of structure) Tom1 === tom2 // false (reference equality) 7 Arguments by default No need to define several similar methods with a multitude of arguments: fun build(title: String, width: Int = 800, height: Int = 600) { Frame(title, width, height) } 8 Named Arguments. Combined with arguments (arguments) by default, named arguments eliminate the need for constructors: build("PacMan", 400, 300) // equivalent build(title = "PacMan", width = 400, height = 300) // equivalent build(width = 400, height = 300, title = "PacMan" // equivalent9 Using the expression "When" The switch box is replaced by a more readable expression: when (x) { 1 -> print("x is 1" ![]() 2 -> print("x is 2" ![]() 3, 4 -> print("x is 3 or 4" ![]() in 5..10 -> print("x is 5, 6, 7, 8, 9, or 10" ![]() else -> print("x is out of range" ![]() } It works both as an expression or a state and with or without arguments: val res: Boolean = when { obj == null -> false obj is String -> true else -> throw IllegalStateException() } 10 "Properties" in Kotlin Programming language Accessors (get and set) can be added to public attributes which means less redundant code (boiler plates). class Frame { var width: Int = 800 var height: Int = 600 val pixels: Int get() = width * height } 11 . Data Classes This is a full POJO with toString (), equals (), hashCode () and copy (), and unlike Java, it will not have 100 lines of code: data class Person(val name: String, var email: String, var age: Int) val john = Person("John", "admin@coding180.com", 112) 12 The Overloading Operator in Kotlin Programming language A predefined set of operators can be overloaded to improve readability: data class Vec(val x: Float, val y: Float) { operator fun plus(v: Vec) = Vec(x + v.x, y + v.y) } val v = Vec(2f, 3f) + Vec(4f, 1f) 13 Destructuring Declarations in Kotlin Programming language Some objects can be destructured, which is, for example, useful for iterating on maps: for ((key, value) in map) { print("Key: $key" ![]() print("Value: $value" ![]() } Learn kotlin programming - Complete leassons tutorials here 14 The Ranges in Kotlin Programming language For even more readability: for (i in 1..100) { ... } for (i in 0 until 100) { ... } for (i in 2..10 step 2) { ... } for (i in 10 downTo 1) { ... } if (x in 1..10) { ... } 15 . Extension Functions in Kotlin Programming language Remember the first time you had to sort a List in Java? You could not find a sort function () you got a tutorial on Google to learn: Collections.sort() And later when you had to capitalize a String, you ended up writing your own help function because you Did not know: StringUtils.capitalize() If only there was a way to add new functions to old classes; This way your IDE could help you find the function in the continuity of your code. In Kotlin you can do just that: fun String.format(): String { return this.replace(' ', '_') } val formatted = str.format() The standard library extends the functionality of the original types of Java, which has been particularly useful for String: str.removeSuffix(".txt" ![]() str.capitalize() str.substringAfterLast("/" ![]() str.replaceAfter(":", "classified" ![]() Topic: Features Advantages of Kotlin Programming Language 16. Null Safety in Kotlin Programming language. Java is what we should call an almost statically typed language. In this sense, we can not guarantee that a String variable refers to a String - it could also refer to: null Although we are obliged to do so, it denies the security of verifying static types and as a result, Java developers must live in constant fear of the NullPointerExceptions. Kotlin solves this problem by making a distinction between non-zero types and possibly null ( nullable) types. Types are non-null by default and can be nullable by adding: ? For example var a: String = "abc" a = null // compile error var b: String? = "xyz" b = null // no problem Kotlin forces you to guard against NullPointerExceptions when you have access to a nullable type: val x = b.length // compile error: b might be null And while this might seem cumbersome, it's really a good idea to have some of its features. We always have smart shots (chic), which cast types from nullable to non-null as far as possible: if (b == null) return val x = b.length // no problem We could also use a secure call ?. Which evaluates to the null instead of throwing a NullPointerExceptions: val x = b?.length // type of x is nullable Int Safe calls can be chained together to avoid redundant testing: "if not the null" we sometimes write in other languages and if we want a default value other than the null we can use the elvis operator: ?: As for example: val name = ship?.captain?.name ?: "unknown" If none of these improvements satisfy you and you absolutely need a NullPointerException, you will need to explicitly request it: val x = b?.length ?: throw NullPointerException() // same as below val x = b!!.length // same as above Learn kotlin programming - Complete leassons tutorials here 17. Kotlin Programming language has Better Lambdas Is this a good lambda system? Perfectly balanced between legibility and being laconic, thanks to some intelligent design choices. The syntax is really very simple: val sum = { x: Int, y: Int -> x + y } // type: (Int, Int) -> Int val res = sum(4,7) // res == 11 And here come the intelligent parts: Method parentheses can be moved or omitted if the lambda is the last or only argument of a method. If we choose not to declare the argument of an argument lambda alone it will be implicitly declared under the name " it" . Here are three equivalent lines: numbers.filter({ x -> x.isPrime() }) numbers.filter { x -> x.isPrime() } numbers.filter { it.isPrime() } And this allows us to write concise functional code? - Just look at this beauty: persons .filter { it.age >= 18 } .sortedBy { it.name } .map { it.email } .forEach { print(it) } The Kotlin Lambda system combined with extension functions makes it an ideal tool for creating DSL. Quickly look at Anko for an example of a DSL that aims to improve development on Android: verticalLayout { padding = dip(30) editText { hint = “Name” textSize = 24f } editText { hint = “Password” textSize = 24f } button(“Login”) { textSize = 26f } } 18. Kotlin Programming language IDE Support You have a number of options if you intend to start with Kotlin, but I highly recommend using IntelliJ which comes bundled with Kotlin preinstalled. These are the same person who have designed the language and the FDI. Learn kotlin programming - Complete leassons tutorials here source: https://coding180.com/blog/features-advantages-kotlin-language-use-kotlin/ |
i want to learn, will u teach me? |
Anyone who owns or operates their own website will sooner or later deal with the subject of search engine optimization / SEO, regardless of whether the site is now a simple blog, a company website or an online shop. However, just when the website is a commercial interest, you should deal intensively with the topic of SEO and invest at least exactly, if not more, in this area, than in the actual web design. Just ask yourself: Create your own hand or hire a professional? This question is relatively simple to answer: If you are interested in SEO and the website is only for fun/hobbies, you can try to do it yourself - but if you have economic interest in the side, should only caution me, Because the domain in the wrong case in the worst case for the next decades in the cellar of the Google search results is to be found. For all, who want to make SEO themselves or simply want to just inform, here 25 tips for the search engine optimization by the professional: This question is relatively simple to answer: If you are interested in SEO and the website is only for fun/hobbies, you can try to do it yourself. For all, who want to make SEO themselves or simply want to just inform, here 25 tips for the search engine optimization by the professional: Content is King: The better the content is on its own, so the higher its quality, the better the page will be: regardless of the other ranking factors. Meta title: The meta tag "title" is very important and the favored keywords should be as far ahead as possible. Do not use more than 55 characters. Meta description: A meta description can be added with the "description" meta tag. It is important not to include the description with keywords. Meta-Keywords: Even if Google does not add more or less to the ranking, it shows the crawler what the website is about. Headings: The better the page is organized and the better the user is, the higher the page is usually on Google Multimedia content: Varied content such as pictures, videos, tables and so on make facts clear, which is also rewarded by Google Meta-specifications for pictures: In the case of pictures, the title, alt-text, width, and height should be indicated, but also no keyword stuffing. Meta titles for links: Whether external or internal links - meta titles show the bot what the link on the whole is. Breadcrumb navigation: A bread crumbs navigation helps the user very much on the website and makes for a better internal linking. Internal link structure: Each subpage of your own website should be easy to reach and linked sufficiently, both in navigation and in flow text. Short URLs: The shorter the URL, the easier it is for the user to remember it, and the Google crawler will also reward it Duplicate Content: Copying content from other pages is equivalent to an Ascension Commando - Google knows everything and punishes DC rigorously PageSpeed: The faster the website loads, the more convenient it can be used, even for the crawler, this can be an indication of quality. Updates: One page, just blogs, should be well maintained. Regularly adding new content is evidence of timeliness and is an important ranking factor. Broken links: Links that lead to nirvana are neither good for spiders nor for users and should be removed as soon as possible from the webmaster. [b]High-quality backlinks[/b] Backlinks without money keyword anchors and domains with high authority are one of the most important factors at all. No link purchase: Google is very good at debunking or spammed links, and the domains subsequently hard to punish. NoFollow links: Not all links should be do-follow since this creates an unsightly suspicion. About 10% no-follow is probably an ideal value. Link positions A link from the header of a page or from the upper section of a flowing text is considerably more value than a footer link. Backlink age: The older a backlink, the stronger it is because Google can assume that the linked site still has good content. User Time: The longer the site visitors stay on a website on average, the better the logical content is. Comments: If users use comments in a discussion, this is also a sign of high-quality content. [b]Social signals:[/b] Even if Facebook Likes or Tweets hardly play a role in the ranking, they can nevertheless direct user flows and thus indirectly provide advantages [*] [b]RSS feeds:[/b] The more people who follow an offered RSS feed, the higher the probability that the information offered on the page is interesting [*] No over-optimization: If you optimize your own website too much, you will be hit by Google and risk a penalty again. These points can in no case replace a professional SEO consulting from an expert and serve merely to inform themselves about possible optimization tactics. If you want high-quality search engine optimization, which places a website on good placements over a longer period of time, you should be willing to spend money on it and hire a suitable agency. Source: https://coding180.com/seo/SEO-25-points-for-webmasters |
Naija or usa? |
Technical SEO for beginners. The first part of this tutorial series on search engine optimization deals with the topic of technical SEO. While [url=//coding180.com/blog/part-2-onpage-seo-for-beginners/]part 2[/url] and part 3 deal with content in the form of OnPage optimizations and reputation management in the OffPage area, the first part deals with technical questions and problems with the optimization of a website - both for Google and for the user. The fact that the technical search engine optimization is the first part of our tutorial has a certain reason: Many factors that start with the technical SEO start already before the other optimization measures, partly already with the registration of the domain or the configuration of the content management system. Select the correct domain The domain name was once a very important factor for weighting a page in the Google search results. Over time, however, Google has become more and more aware of the more reliable factors that allow the quality of a page and its content, so the domain name has little influence on the ranking. Nevertheless, the domain name should be chosen in such a way that it already represents a brand name or a brand name, or that it informs the search engine user on the results page which topic the website is addressing. In this way, you can increase the click-through rate resulting in better user signals leads and can also positively influence the rankings of your website. The choice of the top-level domain also plays a minor role in search engine optimization. Although country-specific top-level domains (TLDs) have small advantages in the respective countries, they are so small that, in principle, any Top Level Domain that is available can be chosen. NTLDs, ie new top-level domains, such as .berlin, .hamburg or .xyz, can also be selected without this having a negative effect on the ranking of a website. Web hosting provider and server location Choosing the right web host is difficult because it has to be a middle way of price/performance ratio and server performance/equipment to be found. With one of the major providers such as Strato, 1 & 1, All-Inclusive. Or a comparable host, you do not have anything wrong in the beginning, but there are also differences in the quality of service and other factors. Even if the Internet connections are getting faster and the following factor is hardly important for large pages, the server location of the Webhoster should be Germany or the country by the main page. This primarily has performance advantages, as no long lines have to be crossed if, for example, the content is delivered from a server in the US to the user to Germany. HTML or CMS website? Basically, it does not matter whether a page is based on HTML or a content management system like WordPress, Drupal, Typo3 or another software. For dynamic websites like blogs, magazines or online shops, content management systems (also known as CMS) are quite suitable, since content can be imported very easily and no HTML or CSS knowledge is required. Pure HTML pages, on the other hand, have the great advantage that they can be loaded very much by visitors since no queries have to be made to a database and no scripts have to perform any functions on the server. For simple company pages or static "business cards in the network", HTML pages are excellent. PageSpeed and mobile friendliness When creating your website, it is important that you keep in mind the website speed (page speed) and the adaptability of the finished page to mobile devices (mobile-friendly). These two factors have become more and more important for Google Ranking criteria and in the past. These factors will continue to play a major role in the future. https://coding180.com/wp-content/uploads/2017/05/speed.png The PageSpeed is particularly important in today's world, where many users access mobile sites through websites. Mobile Internet is often not very fast and the limited data volume of most tariffs makes further demands on the performance of a website. Important optimization points for the PageSpeed are for example: Reduce server requests (requests) Caching (eg via PlugIns) Compress images (See: Images SEO) CSS and JavaScript files The mobile-friendly update has also become more important thanks to Google's mobile-friendly update. As many sites already account for more than half of their traffic via mobile devices, Google gives websites with a strong mobile version a ranking advantage. When selecting the CMS-Themes you should pay attention to responsiveness. Whether your website has a good PageSpeed value or is mobile-friendly to Google's perception is easy to find, because Google provides two services: the PageSpeed Insights and the test for mobile friendliness. Robots.txt, and .htaccess file Two files, which should be located in the root directory of the website server, are very important for technical SEO: The Robots.txt file and the .htaccess file. Especially the Robots.txt file is important because it determines the handling of crawlers with your site . Crawlers are computer programs that are initialized by a search engine operator to discover sites and include them in the search engine index. With the help of the Robots.txt file, you share a crawler with important information about your site. It can prevent the reading of certain files by the crawler, such as the GTC or an internal member area. Under no circumstances should media files such as images, JavaScript, or CSS be blocked when they are required to render a bottom. If Google can not render a page, it will depreciate it . A Robots.txt file might look like this: User agent: * These instructions tell you that all crawlers should be addressed (user agent: *). The second line is followed by the statement that the / wp-admin / folder is not indexed because it is reserved for administration areas at WordPress. All other directories are then allowed. In the last line, we tell the crawler the URL of our sitemap . The .htaccess file (for Apache Webserver) serves the search engine optimization , because this file can be used to switch forwarding of no longer existing subpages. If a page is deleted, Linkjuice, which points to this page, is missing, because Google does not have any links that flow into nothing at all. Redirects can be implemented as follows: RedirectPermanent /alte-index.html http:// www.coding180.com/ directory_name/neue-index.html First, the command "RedirectPermanent" is entered into the line and then, separated by a space, first the old URL and then the new one. You can switch as many redirects as you want - for each redirect, simply specify a new line with a new Redirect command . Absolute paths (ie with http: // at the beginning) can also be entered. Source: https://coding180.com/blog/part-1-technical-seo-for-beginners/ |
how much |
ANNOY:Stop being jealous, go and make ur own money |
Xo make I fry water? |
Pointless point. |
sapele914:Till wen ur entire family members die finish... Idiot |
Sean tizzy na still celebrity ![]() ![]() |
Doctorfitz:See ur life... |
BuariCopyPaste:Person wr Ko soon die |
Hmm celebrities life. He will be acting as if he dosent know what happened btwn toyobaby and his wife... |
Nicee |
Android the best camera application Best camera app for android. Android developer camera. For many people who buy smart phones, there is a decent camera is still one of the biggest bright spot. Today's camera phone is a modern miracle, just look at the Samsung Galaxy S5 that decorative mobile phone great sensor, or even half-phone semi-camera Samsung Galaxy K Zoom will be able to appreciate. Some manufacturers are taking different strategies, such as the HTC looking to create larger pixels to absorb more light. Its proprietary UltraPixel technology means that its flagship HTC One (M8) can produce some stunning low-light images. As a result, Play Store filled with a lot of camera applications is not surprising, with a view to more interesting or more intuitive things to replace common camera applications. Here's our guide to the best camera apps available in the Play Store. Paper camera Android the best camera application For third-party camera applications, one of the interesting things is the filter. There are a lot of filters around, and choosing the right application for each purpose may be a little difficult. One of our recommended applications is the "paper camera", because we like it to provide different styles of sketch filters. These are provided in real time, which means you can see the image before you capture what it is. There are 14 filters to choose from, they can also be converted to video recording. You can also use the Paper Camera to edit existing images and share them with different social accounts. If you have decided that this application is not for you, but you still want to sketch the effect, why not try the "sketch camera". These applications also provide real-time filters, and there is a free and paid version that covers a range of devices. Android the best camera application Instagram is a photo application that is likely to appear on the desire list of the most modern smartphone users. This photo-sharing site was so popular that it was quickly acquired by Facebook. The biggest feature of Instagram is its variety of filters, allowing users to give their dinners, or their cats taking some unique photos. These can be instantly shared on Facebook, Twitter, Flickr, Tumblr and Foursquare. The application also allows you to manage your Instagram account, you can view photos of people you care about, you can also comment. Instagram really does not have a general statement, its popularity will be able to explain everything. If you're not sure if Instagram is right for you, you can try Instagram's InstaLomo HD, which also provides different filters and can be shared. Camera ZOOM FX Android the best camera application On the face of it, the Camera ZOOM FX is well designed, and its layout is not a big surprise because it is the same layout as the popular cameras. Photo editing is also included, which is similar to what we have seen in camera applications, but it has a number of very good features. If you download the add-on, more than 90 items can be added to the Camera ZOOM FX, including frames, props, and more composites. Also supports photo morphing, which means you can distort the image.There is even a clever voice-activated shutter, which means you can set the app to take pictures by clap or shout. Photo distortion is quite popular, so for those who have not been impressed by the Camera ZOOM FX and want a more special application of the people, Funny photo processing applications Photo Warp will meet your needs. Cymera effects camera Android the best camera application We can easily focus on Cymera filters, but if we treat each photo application that way, we'll spend a whole day here. Cymera provides more interesting features will be more in-depth. It is also easy to edit existing, or take and edit photos, and there are plenty of options available. Even more interesting, you can add decorations, make photos more interesting, or draw on the images for free. Face detection is also built-in, which means that you can edit the face of the subject after taking a picture. They can get slimmer, have bigger eyes and bigger smiles, and Cymera intelligently changes hairstyles or makeup. If you choose Cymera because of these facial features, BeautyPlus is worth a try, this application claims to be the ultimate self-timer camera. It provides real-time filters and removes facial imperfections to assist in smaller Photoshop tendencies. Camera HDR Studio Android the best camera application HDR shooting is the same thing recently built into many different commonly used cameras, if you want to have a dedicated application for large-scale HDR shooting, then the opportunity came. This is the reason why Camera HDR Studio attracts the public, although it does not have HDR function, but it can shoot HDR photos. It supports all-HDR mode, which means you can standardize HDR photos, art photos, and even cartoon-type photos. A total of nine kinds of HDR mode, 50 kinds of color effects, 12 kinds of artistic effects and so on. Depending on the speed of the camera Camera HDR Studio allows you to take up to 30 shots per second. Lower speed devices support up to 10 photos per second. If HDR is what you want, but Camera HDR Studio is not the case, why not try HDR Camera (name easy to confuse it). It does not come with a photo filter to provide a more streamlined application in the process. The HDR Camera is also available in a paid version, which has more features. Flickr Android the best camera application Now under Yahoo's management, Flickr has been a photo application and photo site for some time. This is one of the largest and most well-known photo-sharing applications to be used on a global scale. Equipped with a TB storage, which is a popular photographer in the way used to store photos to the cloud, and contains 16 different filters can provide a certain degree of photo processing. Like Instagram, Flickr also lets you manipulate your Flickr account, which means that you can contact your friends and access their photo streams. If you use Flickr to store photos, why not consider using Dropbox. While it is not a regular camera application, it comes with the ability to instantly upload photos from the camera, only via Wi-Fi or can make your data do the same thing. BlendPic Android the best camera application BlendPic is just a job, but it does work really well. As the name implies, it allows you to mix two photos together to create a double exposure effect.You can crop, move, and rotate each image, adjust the gradient, and adjust the transparency. This is not a complete editing solution, but it gives you the control you need to create a hybrid image of your dreams. And on top of that: it's free. Once you've made adjustments, you can also share pictures directly from the app to the social network, so that the world can appreciate your masterpiece. Or if your Eiffel Tower and fish do not mix and match, then you will hope that you can save it to your gallery, so that the private, and you can enjoy the long winter night alone. If you do not want to mix them and just want to put them all together, try Pic Stich. It allows you to easily create collages from your photos, write or graffiti them, add borders and filters. Photoshop Touch Android the best camera application Photoshop should not need to be introduced, but with Photoshop Touch is optimized for mobile phones. The application has a full package with filters, support layers, and tonal and color adjustments that can be applied to the entire image, a specific layer, or applied to a range. It has brushes and effects, add text, combine images, add shadows and more. It also includes Adobe Creative Cloud's free membership, giving you 2GB of storage capacity and allowing you to easily synchronize files between devices. So, when you go out, you can do some basic editing on your phone, and then synchronize it with the computer to do further operations. This is not free, but compared to £ 2.99 (about $ 4.50 / $ 5.99), you will gain more. If you still want free applications, then you can look at Photo Editor Pro, which also has full range of editing features such as one-click enhancements, cropping, rotation tools that change brightness, contrast, color temperature and saturation , Add text, sharpen, blurry images and many more. Motion Shot Android the best camera application It is not easy to take photos of sports. The worst case is to get a blurry and messy picture, even though it is usually hard to get a sense of movement. Motion Shot can solve this problem, by shooting short films, and then can save a single image, the better performance of the movement of objects.For example, if you create an image of a jogging person, they will appear multiple times in the lens to highlight their movement. It gives you a bit of control, lets you add effects, picks frames, and creates images. Motion Shot also lets you save short animated GIF clips you've captured. If you think Motion Shot can not generate a good image, then you better use a GIF camera, as you can guess, to let you create GIF images. This unexpectedly easy operation: when you are ready he can create it, it will take a few seconds, and then you can save the results can also delete the frame, to reverse this situation, or to adjust the frame rate. source: http://www.codinggithub.com/2016/12/best-camera-app-for-android.html |
learn any programming language http://www.codinggithub.com |
learn php android etc at http://www.codinggithub.com |
Hey guys, hw can i get this new naijaloaded script, At http://gabbitto.com/nl/ gabbitto.com |
1 (of 1 pages)
// return the print