RubyGems were developed to simplify and accelerate the stages of the application creation deployment and library connection. Utilizing this package manager for Ruby saves you time as you get ready-made solutions to almost any task instead of writing the functions from scratch. Each gem contains a particular element of functionality including all related files. Unfortunately they aren structured in any way so in order to find ruby gems it better to use a regular search engine and the required key words (check GitHub s ). Our dedicated development team also actively employs Ruby Gems in the process of software development. Here is the top of the most popular and useful ruby gems according to our experience GeoCoder s . Being able to connect through itself over 4 APIs this Ruby gem implements both the direct and reverse geocoding by IP address geographical coordinates and even real physical addresses (e.g. the address of the street). Bullet s . The most downloaded Ruby gems out there. It was initially created with an intention to boost software performance. It does so by decreasing the total amount of client-server requests. Basically Bullet tracks the N+1 cases of requests and notifies the developer when other tools can be used instead (e.g. cache counter). Pry s . We rmend to simplify the bug fixing procedures for your RoR-based application with the Pry gem which is a more advanced alternative to the standard IRB wrapper. ActiveModelSerializers s (which starts lagging while processingpound documents) and uses caching. Fast JSON API s . Fast JSON API wille in handy when you need fast serialization of software code. It works much faster than Wicked PDF s . This gem is working alongside with wkhtmltopdf s and helps realizing an interaction with the DSL generator. Devise Masquerade s . This Ruby gem helps developing multi user apps. In particular youll be able to test your app from the perspective of users with different levels of access. Devise s . Based on the MVC model the Devise gem can provide secure user authentication and session management. Letter opener s . If you need to create a newsletter mechanism to send notifications to all users that launched your app this gem will help you do that much easier you won need to integrate and configure your own SMTP server. Money Rails s . If you are planning to integrate your app with Ruby Money this gem wille in quite handy. Pundit s . A tool that allows defining different levels of access to the app functionality according to the rights of an authorized user.
What are the best Python scripts you've ever written?
I am aputer engineer with 15 years of experience. I have created multiple python scripts (similar to many scripts described already ) for daily usage tasks. However my best python script would be facebook automation. The setup includes a selenium driver on firefox. The script is triggered once every 6 hours on a dedicatedputer. The scripts opens web browser and logs in with my account. Some of thing it can do are listed Parse my full friend list and create an xml with all relevant details. (This is important as later steps take action only on feeds from people in this created xml.) Scroll the feedpage and take actions on individual feeds. By default it will like any profile pic cover pic change. If other people congratulate my friend it can parse thement like the feed andment congratulation message. I am anonymous because most likely it against facebook policies to use this kind of scripts for daily interaction. EDIT 1 This edit section is for people who are interested in knowing how the whole script works. I will try to keep it minimal so that it doesn be too technical. The script has 3 main work areas Navigation Navigate to a webpage scroll the page etc. Action Take some action on specific element based on info collected. ordered-list Navigation Selenium driver gives the direct capability to launch a browser navigate to a scroll down etc. Hence this part is pretty much straight forward. Info collection This is one of the most hard parts. On firefox you can right click any element and inspect it . Inspect Element gives details of what the html code for an element looks like Here is a snapshot of what firefox shows when i inspect a friend name in my friends list. The class of div element is very important. I now know that whenever i will parse an element of this class it will have the details of my friend (name etc ) I first statically find these elements manually and then hardcode them in my script. I can now parse necessary elements and collect the information present in those via selenium. Selenium gives the api to extract each information of an element. For e.g. I can extract the href in above picture and i can save the of my friend. This example also covers first point of my script of how i created xml of all my friends. I need to parse my friends list only once and save it for future use until i add a friend. In a similar way we can parsements count events etc . Action Once we have collected the information we can apply our own programming logic to that information. For e.g if someone hasmented Nice picture we can post a similarment. Selenium provides the api to click on element in a area etc. So for like we simply click on Like element with that specific class. That all folks.
I am creating an Android app. How do I display a PDF file inside an Android from a url?
There are two options available to you (1) Download the pdf to the local storage on Android phone and display it using a Intent in any PDF Viewer application available on the user phone. (2) Use a web view and open the of the below Example Reference for the second one Embeddable Google Document Viewer
What are your favorite web browser extensions and what makes them useful?
11 Useful Chrome Extension for Developers & Programmers Google wide-spread influence on web services has made Chrome easier and most used browser for web development. The sheer number of chrome extensions available has made it a handy tool for web designers and developers. So here we are enlisting the best chrome extensions for programmers and developers in pursuance of productive and successful web development. 1. Daily s Every single day new and updated development technologies are being released across the web. For developers staying updated is a huge hassle. Daily was made by developers for developers to help us focus on code instead of constantly search for news around the web. 2. Free Programming Courses s Quick Code for Chrome is an extension that serves free online programming courses in new tab of the browser everyday. With this extension you can get updates on free online courses related to ub7 Various programming languages ub7 Web development ub7 Front end development ub7 Mobile apps developments ub7 Blockchain ub7 Machine learning ub7 Database ub7 Data science 3. LambdaTest Chrome Extension s LambdaTest s Screenshot Chrome Extension can be used to take full page screenshots of webpages across different desktop and mobile browsers right from your browser with one click. These screenshots will help in fastracking cross browserpatibility testing of the web pages and websites. 4. Site Palette s Site Palette is a free Chrome extension that generates palettes based on a webpage colours. With this extension ub7 Several palette generators supported ub7 Shareable s created ub7 Preview palette image available for download ub7 Download auto-generated sketch template ub7 Adobe swatch support added ub7 Play with the palettes at Coolors ub7 Fine-tune the palettes at google art palette ub7 Print styles added print out or save palettes to PDF A browser extension to generateprehensive palettes. A must-have tool for designers and frontend developers. Free colour scheme extraction. 5. Devo s GitHub Trending Hacker News and Product Hunt on every new tab! Devo is a new tab extension for Chrome and Firefox that displays GitHub Trending Hacker News and Product Hunt front pages on every new tab no-login required. Devo is apletely open-source project and developed on GitHub. 6. Multi-browser Screenshots s Multi-browser Screenshots is a free Chrome extension that lets you check how a site renders across manymon browsers ub7 Edge ub7 Internet Explorer 11 ub7 Chrome 5 ub7 Firefox 45 ub7 Safari 9.1 (OS X El Capitan) ub7 Google Nexus 6 (Android 5.) ub7 Google Nexus 9 (Android 5.) ub7 iPad Air (iOS 8.3) ub7 iPhone 6 Plus (iOS 8.3) 7. MetaMask s MetaMask is a bridge that allows you to visit the distributed web of tomorrow in your browser today. It allows you to run Ethereum Apps right in your browser without running a full Ethereum node. MetaMask includes a secure identity vault providing a user interface to manage your identities on different sites and sign blockchain transactions. 8. Chrome Extension s Modify any website in real-time lets anybody modify save & share any website in real time without having access to the source code of the website. Use Chrome Developer Tools to edit any HTML CSS or JS code in the web page or add your own. Save and get a unique URL to the modified version. Modify any website in real-time es in the form of a free browser extension. 9. Githunt s Replace the new tab with a list of trending repositories on github belonging to any technology that you chose. GitHunt is an extension that replaces the new tab of your browser with the trending github repositories. You can look through the repositories for any technology of your liking and for any period of time. By default it shows the trending repositories (most starred repositories created in the given period of time) for the last week and as you keep scrolling you will be presented with the popular repositories of the consecutive past weeks. All you have to do is select how you would like to see the repositories (monthly weekly or yearly) and the language it will remember your choice and will show you the trending repositories in that category whenever you will open the new tab. 1. SVG-grabber s A tool to quickly preview and get all the svg assets from a website. Quickly preview and copy or download all the SVG assets from a website. SVG-grabber lets you preview download and copy the code all SVG icons and illustrations in a website. It is an open source tool created by Jaques Bouman and Juan Rios at NGTI in Rotterdam The Netherlands. Available for download forking on Github. 11. Github-plus s Display repo size size of each file download and option to copy file contents. Extension that provides useful features on top of GitHub website. Features of this extension are ub7 Displays repo size. ub7 Displays each file size in every active branch ub7 Show download for each individual file ub7 Copy file contents directly to clipboard ub7 Download file while viewing it contents. Original Source - ProtoType s