POSTS BY ADMIN

  • COPY A FILE LIST AS TEXT FROM WINDOWS EXPLORER

    AUTHOR: // CATEGORY: Uncategorized

    No Comments

    In Windows 7 and later, this will do the trick for you

    • Select the file/files.
    • Hold the shift key and then right-click on the selected file/files.
    • You will see Copy as Path. Click that.
    • Open a Notepad file and paste and you will be good to go.

    The menu item Copy as Path is not available in Windows XP.

    Reference: https://stackoverflow.com/questions/1187479/copy-a-file-list-as-text-from-windows-explorer

  • ANDROID VERSIONS

    AUTHOR: // CATEGORY: Android, Development, IT, Mobile

    No Comments

    The development of the Android operating system was started in 2003 by Android, Inc. Later on, it was purchased by Google in 2005. The beta version of Android OS was released on November 5, 2007, while the software development kit (SDK) was released on November 12, 2007.

    The first Android mobile was publicly released with Android 1.0 of the T-Mobile G1 (aka HTC Dream) in October 2008.

    Google announced in August 2019 that they were ending the confectionery scheme, and they use numerical ordering for future Android versions.

    The first Android version which was released under the numerical order format was Android 10.

    Android versions, name, and API level

    Code nameVersion numbersAPI levelRelease date
    No codename1.01September 23, 2008
    No codename1.12February 9, 2009
    Cupcake1.53April 27, 2009
    Donut1.64September 15, 2009
    Eclair2.0 – 2.15 – 7October 26, 2009
    Froyo2.2 – 2.2.38May 20, 2010
    Gingerbread2.3 – 2.3.79 – 10December 6, 2010
    Honeycomb3.0 – 3.2.611 – 13February 22, 2011
    Ice Cream Sandwich4.0 – 4.0.414 – 15October 18, 2011
    Jelly Bean4.1 – 4.3.116 – 18July 9, 2012
    KitKat4.4 – 4.4.419 – 20October 31, 2013
    Lollipop5.0 – 5.1.121- 22November 12, 2014
    Marshmallow6.0 – 6.0.123October 5, 2015
    Nougat7.024August 22, 2016
    Nougat7.1.0 – 7.1.225October 4, 2016
    Oreo8.026August 21, 2017
    Oreo8.127December 5, 2017
    Pie9.028August 6, 2018
    Android 1010.029September 3, 2019

    Android Version 1.0 to 1.1: No codename

    Android officially publish its Android version 1.0 in September 2008. It is the initial version of Android operating system. It supports Web browser to show HTML and XHTML web pages, camera, access web email server (POP3, IMAP4, and SMTP). This version contains Google Calendar, Google Maps, Google Sync, Google Search, Google Talk, Instant messaging, Media player, Notifications appear in the status bar, wallpaper, YouTube video player, Alarm Clock, Calculator, Dialer, Pictures (Gallery), Wi-Fi and Bluetooth support.

    Android version 1.5: Cupcake

    On April 27, 2009, the Android updated to 1.5 with the codename of the dessert item (Cupcake). It has Linux kernel 2.6.27. It supports third-party virtual keyboard, Video recording and playback in MPEG-4, Copy and paste feature, Animated screen translations, auto-rotation option, ability to upload a video to YouTube, upload photos to Picasa, check phone usage history.

    Android version 1.6: Donut

    On September 15, 2009, Android 1.6 was released with the name Donut. It contains numerous new features such as voice and text entry search, bookmark history, contacts, web, “speak” a string of text, faster camera access, user can select multiple photos for deletion, support text-to-speech engine, WVGA screen resolutions.

    Android version 2.0 to 2.1: Eclair

    On October 26, 2009, Android 2.0 was released, whose codename was Eclair. It was based on Linux kernel 2.6.29. It contains the several new features as expanded account sync, Microsoft Exchange email support, Bluetooth 2.1, ability to tap a Contact photo and select to call, SMS, ability to search all saved SMS, MMS messages, delete the oldest message automatically when the defined limit is reached, Minor API, bug fixes.

    Android version 2.2 to 2.2.3: Froyo

    On May 20, 2010, Android 2.2 (Froyo) was released based on Linux kernel 2.6.32. It contains several features as speed, memory, performance optimization. JIT compilation, Integration of Chrome’s V8, JavaScript engine into the Browser application, support Android Cloud to Device Messaging service, Adobe Flash support, security updates, and performance improvement.

    Android version 2.3 to 2.3.7: Gingerbread

    On December 6, 2010, the Android 2.3 (Gingerbread) was released based on Linux kernel 2.6.35. It includes the following changes: support for extra-large screen size and resolutions, updated user interface design with increased simplicity and speed, enhanced copy/paste functionality, select a word by press-holding, support Near Field Communication (NFC), headphone virtualization, new Download Manager.

    It has improved bug fixes for Nexus S, voice or video chat using Google Talk, network performance for Nexus S 4G, Gmail application, battery efficiency, fixed a voice search bug, Google Wallet support for Nexus S 4G.

    Android version 3.0 to 3.2.6: Honeycomb

    On February 22, 2011, Android 3.0 (Honeycomb) was launched for the first tablet for Android-based on Linux kernel 2.6.36. It contains the features like “holographic” user interface for tablet, added system Bar, simplified multitasking tapping Recent Application in system Bar, redesign the keyboard making fast typing, quick access to camera exposure, hardware acceleration, support for multi-core processor, UI refinements, connectivity for USB accessories, support for joysticks and gamepads, high-performance Wi-Fi lock, improved hardware support, Google Books, fixed data connectivity issues when coming out of Airplane mode.

    Android version 4.0 to 4.0.4: Ice Cream Sandwich

    On October 19, 2011, Android 4.0.1 (Ice Cream Sandwich) was launched, which was based on Linux kernel 3.0.1. It was the last version of officially support Adobe System Flash player. It introduces the numerous new features: refinements to “Holo” interface with new Roboto font family, separation of widgets in a new tab, integrated screenshot capture, improved error correction on the keyboard, improved copy and paste functionality, build-in photo editor, fixed minor bugs, improvement to graphics, spell-checking, better camera performance.

    Android version 4.1 to 4.3.1: Jelly Bean

    On June 27, 2012, Google announced Android 4.1(Jelly Bean) in the Google I/O conference. It is based on Linux kernel 3.0.31. It updates to following features: smoother user interface, enhance accessibility, expandable notification, fixed bug on Nexus 7, one-finger gestures to expand/collapse notifications, lock screen improvement, multiple user accounts (tablets only), new clock application, Bluetooth low energy support, volume for incoming call, 4K resolution support, native emoji support, bug fixes for the Nexus 7 LTE.

    Android version 4.4 to 4.4.4: KitKat

    On September 3, 2013, Google announced Android 4.4 (KitKat). Initially, its code name was “Key Lime Pie”. Google started on Google’s Nexus 5 on October 31, 2013. The minimum required amount of RAM should available to Android is 340 MB. The other devices with less than 512 MB of RAM must report themselves as “low RAM” devices. It includes several new features as clock no longer display bold hours, wireless printing capability, WebViews are based on Chromium engine, sensor batching, built-in screen recording feature, better application compatibility, camera application loads Google+ Photo instead of Gallery.

    Android version 5.0 to 5.1.1: Lollipop

    Android 5.0 “Lollipop” was initially named “Android L” on June 25, 2014. It was officially introduced on November 12, 2014. Lollipop provides several features like redesigned user interface, support for 64-bit CPUs, support for print previews, material design, Project Volta for battery life improvement, multiple user accounts, audio input, and output through USB devices, join Wi-Fi networks, support for multiple SIM cards, device protection, high-definition voice calls, native Wi-Fi calling support.

    Android version 6.0 – 6.0.1: Marshmallow

    Android 6.0 “Marshmallow” was disclosed under the codename “Android M” on May 28, 2015, for Nexus 5 and Nexus 6 phones, Nexus 9 tablet.

    On October 5, 2015, Android lunches “Marshmallow” for all android devices. It contains the various new features as App Standby feature, introduce the Doze mode to save battery life, native fingerprint reader support, run-time permission requests, USB-C support, Unicode 7.0 & 8.0 emoji support.

    Android version 7.0 to 7.1.2: Nougat

    Android 7.0 “Nougat” was the major release for the Android operating system. Its initial codename was “Android N”. It was first released as a developer preview on March 9, 2016, with factory images for the Nexus device.

    On August 22, 2016, the final preview built was released with following features: file-based encryption, zoom in the screen, multi-window support, new Data Saver mode, JIT compiler makes 75 percent faster app installation, picture-in-picture support, support manager APIs, circular app icons support, send GIFs directly from the default keyboard, battery usage alerts.

    Android version 8.0 to 8.1: Oreo

    Android 8.0 “Oreo” was the 8th major release of the Android operating system. It was first released for developer preview on March 21, 2017. The final developer preview was released on July 24, 2017.

    On August 21, 2017, its stable version was released with several features: picture-in-picture support, support for Unicode 10.0 emoji (5.0), restructured settings, adoptive icons, notification channels, notification dots, 2 times faster boot time, Google Play Protect, Integrated printing support, Neural network API, shared memory API, Android Oreo Go Edition, autofill framework, automatic light, and dark themes.

    Android version 9.0: Pie

    Android 9.0 “Pie” was the ninth major version of the Android operating system. It was first announced and preview launched by Google on March 7, 2018. It was officially released on August 6, 2018. It has the following features: the clock has moved to the left of the notification bar, the “screenshot” button has been added, battery percentage always shown on display.

    Android version 10:

    Android 10 is the tenth extensive version of the Android operating system. Android 10 has developed under the codename “Android Q”. It was initially announced by Google on March 13, 2019 and its first beta version was released on same day and its second beta was released on April 3, 2019.

    The stable version of Android 10 was released on September 3, 2019. It contains features like new permissions to access location in the background, floating setting panel, support for an AV1 video codec, support for biometric authentication, support the WPA3 Wi-Fi security.

    Reference: https://www.javatpoint.com/android-versions

  • HOW TO MERGE OR COMBINE MULTIPLE FILES

    AUTHOR: // CATEGORY: Uncategorized

    No Comments

    How to merge or combine multiple files

    Updated: 11/13/2018 by Computer Hope

    If you would like to merge multiple Word, Excel or text files together, it can be done with relative ease and at no extra cost. Follow the steps below for the type of file you’re trying to merge.

    Tip: For many users, it is easier to copy and paste the contents of multiple files into a new file as a form of merging or combining files.

    Merging Microsoft Word documents

    To merge Word documents, you can merge those documents within Microsoft Word itself. To do this, open the first file in Microsoft Word, and follow the steps for your version of Word. The steps are different because of the changes between the file menu and the Office ribbon.

    Microsoft Word 2007 or later (ribbon)

    In the Word ribbon, click the Insert tab, click the down arrow next to Object, and select the Text from File option, as shown below.

    Word 2010 file merge

    Select the file you want to merge into the current document and click Insert. Once completed, the text and other information from the document will be merged into the current document. These steps can be completed as many times as you want if you want to merge multiple files.

    Tip: If there are multiple files you want to merge at the same time, you can select multiple files by holding down the Ctrl key and selecting each file you want to merge.

    Microsoft Word 2003 or earlier (file menu)

    In Word, click on Tools in the top menu and select the Compare and Merge Documents option, as shown below.

    Merge Microsoft Word document

    Find the document you want to merge. You have the option of merging the selected document into the currently open document or merging the two documents into a new document. To choose the merge option, click the arrow next to the Merge button and select the desired merge option. The files will then be merged.

    Compare and Merge files

    Tip: If there are multiple files you want to merge at once, you can select multiple files by holding down the Ctrl key and selecting each file you want to merge.

    Merging Microsoft Excel files

    To merge Microsoft Excel files together, it is best to save them as CSV files first. Open the Excel files and in the menu bar, click File, then Save As. In the Save as type drop-down list, select CSV (comma delimited) (*.csv) from the list.

    Do this for each Excel file you want to merge, then place all the CSV files in the same folder. For ease, place them in a folder in the root of the C: drive (e.g., c:\csvfiles).

    Open the Windows command prompt and navigate to the folder containing the CSV files. Type dir to view the files in the folder and ensure all the files are there.

    Type in the following command to merge all CSV files in the folder into a new CSV file titled “newfile.csv” (any name could be used).

    copy *.csv newfile.csv

    After the new file has been created, open the new CSV file in Microsoft Excel and save it as an Excel file.

    Merge a text (.txt) file in the Windows command line

    Place each of the text files you want to merge in the same folder. For ease, place them in a folder in the root of the C: drive (e.g., c:\textfiles) and make sure the folder only contains text files you want to merge.

    Tip: Before merging text files, you may want to make sure there is a blank line or at least one carriage return (pressing the Enter key) to help separate each file.

    Open the Windows command prompt and navigate to the folder containing the text files. Type dir to view the files in the folder and ensure all the files are there.

    Type in the following command to merge all TXT files in the current directory into the file named newfile.txt (any name could be used).

    copy *.txt newfile.txt

    Now you can open the text file and see everything merged together as one file.

    Merge a file in the Linux command line

    Linux users can merge two or more files into one file using the merge command or lines of files using the paste command.

    Merge PDF files

    PDF

    PDF documents can also be merged. You can use a full version of Adobe Acrobat to do this, but this program is a bit pricy (several hundred dollars).

    Another option is to find a free utility on the Internet to merge your PDF files. One of the better free utilities is PDF Split and Merge. It is an online tool that lets you merge two or more PDF files into one PDF file with a few clicks of your mouse button. You can also download and install a version of the Batch PDF Merger program, which costs about $30.

    There are other free utilities online that offer this service. However, if there is any confidential information contained in the PDF files, use caution when merging them online. It is recommended that you use a utility on your computer for these types of PDF file mergers, to ensure the confidential data is kept confidential.

    • MergePDF – Online utility to merge PDF files up to 30 MB.
    • PDFMerge – Another great free utility to merge PDF documents.
    • Sej-da – An additional utility to merge PDF files up to 50 MB.

    Credits: https://www.computerhope.com/issues/ch001376.htm#merge-text

  • 7 INSANE INTERVIEW BRAIN TEASERS

    AUTHOR: // CATEGORY: Careers

    No Comments

    1. The “How Many [Things] Are There in [Location]?” Question

    On the slight chance that your brain doubles as Google:

    2. The “How Many [Things] Could Fit in [Container]?” Question

    File these under: “How and why would anyone ever know this?”

    3. The “Do Some Quick Math” Question

    In case your brain needed a really fast workout:

    4. The “Why Is [Common Item] [the Way Common Item Is]” Question

    These are also known as questions a four-year-old might ask that would also stump you:

    5. The “Explain [Concept] to a [Difficult-to-Explain-Concept Person]?” Question

    Otherwise known as, “explain your startup job to your grandmother at Thanksgiving” questions.

    6. The “Solve This Mystery” Question

    Oh, occasionally you’ll be asked to go detective and solve a mystery:

    • “A windowless room has three light bulbs. You are outside the room with three switches, each controlling one of the light bulbs. If you can only enter the room one time, how can you determine which switch controls which light bulb?” (source)

    Too easy? Here’s another:

    • “Four investment bankers need to cross a bridge at night to get to a meeting. They have only one flashlight and 17 minutes to get there. The bridge must be crossed with the flashlight and can only support two bankers at a time. The Analyst can cross in one minute, the Associate can cross in two minutes, the VP can cross in five minutes, and the MD takes 10 minutes to cross. How can they all make it to the meeting in time?” (source)

    7. The “How Would You Do Something Ridiculous” Question

    And this last category is all about putting your creativity (and I guess, sometimes violence?) to the test:

    Stumped on where to even begin? Fair enough. Muse writer Jeremy Schifeling has advice on actually solving these impossible brain teasers.

    Credits:

    https://www.themuse.com/advice/7-insane-brain-teasers-you-could-actually-encounter-in-an-interview 

  • 8 TOUGH BRAIN TEASER INTERVIEW QUESTIONS

    AUTHOR: // CATEGORY: Careers

    No Comments

    Facebook Brain Teaser Interview Questions and Answers:

    Question 1:

    A Russian gangster kidnaps you. He puts two bullets in consecutive order in an empty six-round revolver, spins it, points it at your head and shoots. *click* You’re still alive. He then asks you, “do you want me to spin it again and fire or pull the trigger again right away?” For each option, what is the probability that you’ll be shot?

    Answer…

    The key hint here is that the bullets were loaded adjacent to each other.

    There are 4 ways to arrange the revolver with consecutive bullets so that the first shot is blank. These are the possible scenarios:

    1. (xBBxxx)
    2. (xxBBxx)
    3. (xxxBBx)
    4. (xxxxBB)

    The other two scenarios would have meant you got shot on the first attempt. (BBxxxx) or (BxxxxB)

    Now look at the second slot in those 4 possible scenarios above. Your odds of getting shot are 1/4 or 25%. (Only #1 would get you shot)

    But if you respin… there are 2 bullets remaining and 6 total slots. 2/6 or 33%.

    Question 2:

    You’re about to get on a plane to Seattle. You want to know if it’s raining. You call 3 random friends who live there and ask each if it’s raining. Each friend has a 2/3 chance of telling you the truth and a 1/3 chance of messing with you by lying. All 3 friends tell you that “Yes” it is raining. What is the probability that it’s actually raining in Seattle? 

    Answer…

    You only need 1 of your friends to be telling the truth for it to be raining in Seattle.

    It’s fastest just to calculate the odds that all 3 are lying, and it’s not raining.

    Each friend has a 1/3 chance of lying. Multiply the odds together… you get 1/27 (1/3 * 1/3 * 1/3).

    We’re not done yet though… 1/27 is the probability that all 3 friends lied at the same time.

    The probability that at least 1 told you the truth? 26/27 or around a 96% that it’s raining in Seattle.

    Google Brain Teaser Interview Questions and Answers:

    Question 3:

    You have a 3 gallon jug and 5 gallon jug, how do you measure out exactly 4 gallons? 

    Answer…

    We know we can’t get the final result in the 3 gallon jug. It’ll overflow. We need to end up with 4 gallons in the 5 gallon jug.

    First fill the 3 gallon jug.

    Then pour the 3 gallons into the 5 gallon jug.

    Now the 3 gallon jug is empty, and the 5 gallon jug has 3 gallons in it.

    Fill the 3 gallon jug again. Slowly pour into the 5 gallon jug. Only 2 gallons will fit because it already has 3. Now it’s full.

    Exactly 1 gallon is left in the 3 gallon jug.

    Dump out the 5 gallon jug.

    Pour your 1 gallon into the 5 gallon jug.

    Fill up the 3 gallon jug one more time and pour it into the 5 gallon jug! You have exactly 4 gallons (and possibly a job at Google)

    Question 4:

    Why are manhole covers round?

    Answer…

    Good news: If you’re tired of math questions this one will give you a break.

    Manhole covers are round because it’s the only shape that cannot fall through itself. The cover can never accidentally fall down the hole.

    Microsoft has been known to ask this question and according to Glassdoor.com, Google is asking this too now.

    Apple Brain Teaser Interview Questions and Answers:

    Question 5: 

    There are three boxes, one contains only apples, one contains only oranges, and one contains both apples and oranges. The boxes have been incorrectly labeled such that no label identifies the actual contents of its box. Opening just one box, and without looking in the box, you take out one piece of fruit. By looking at the fruit, how can you immediately label all of the boxes correctly? 

    Answer…

    So, you know all 3 boxes are incorrectly labeled.

    Go to the box labeled “Apples + Oranges.” Since the label is wrong, it must have one or the other.

    This is the box to take one piece of fruit from. Whichever comes out is what that box contains. If you took out an apple, the box has only apples. If you took out an orange, vice versa.

    Here’s where it gets tricky a bit tricky. But we’re almost done…

    Let’s say you grabbed an apple. Move the “Apples” label over to that box. Now it’s correctly labeled.

    You know the “Oranges” box is still labeled wrong (because all 3 were labeled wrong to start and you haven’t touched it). And you know it’s not “Apples”.

    So it has to be “Apples + Oranges”.

    The last box is “Oranges”.

    The same process above would work if you had pulled out an orange at the start.

    Question 6: 

    You have a 100 coins laying flat on a table, each with a head side and a tail side. 10 of them are heads up, 90 are tails up. You can’t feel, see or in any other way find out which 10 are heads up. Your goal: split the coins into two piles so there are the same number of heads-up coins in each pile. 

    Answer…

    By pure coincidence… this is a trick my friend Mike showed me last summer. It blew my mind back then but hopefully it’ll make sense as I write it out.

    You want equal number of heads in each pile. There are currently 10 of them. You don’t know which but it doesn’t matter. All you have to do… take any 10 coins out of the 100, put them into a separate pile, and flip those 10 over.

    That’s pile #1.

    Pile #2 is the remaining 90 coins, unflipped. Just leave them.

    You’re done. Seriously.

    You can do this with any number of coins. If you had 20 coins, and 18 were heads, you’d need to take 18 of them (it doesn’t matter which) into a separate pile and flip those 18. That’s pile #1.

    If you had 10 coins and 3 were heads, you’d take 3 random coins into a new pile and flip those 3 for your first pile, and the rest are your second pile.

    Crazy right?

    If you don’t believe me just grab some pennies and try it.

    There are no exceptions and it doesn’t need to be an even amount of “heads” to begin with either. It can also be zero. Or all.

    LinkedIn Brain Teaser Interview Questions and Answers:

    Question 7: 

    You’re in a room with three light switches, each of which controls one of three light bulbs in the next room. You need to determine which switch controls which bulb. All lights are off to begin, and you can’t see into one room from the other. You can inspect the other room only once. How can you find out which switches are connected to which bulbs? 

    Answer…

    Let’s call the switches 1, 2, and 3.

    Leave switch 1 off.

    Turn switch 2 on for ten minutes.

    Now turn it off and quickly turn on switch 3.

    Go into the room and inspect…

    The bulb that is still warm but not lit up is controlled by switch 2. The one that’s currently lit up is switch 3. The last one is switch 1.

    Question 8: 

    How many golf balls would fit into a Boeing 747?

    Answer…

    This last one is tough, but they don’t expect you to get an accurate answer. If you get a question like this (and there are a ton of variations- basketballs in a room, cellphones in Manhattan, etc.) they want to see your thought process.

    The hiring manager is going to look at how you work your way through it and attempt to figure it out.

    If you can break a problem down into smaller pieces, stay calm, and get an answer that’s not perfect but reasonably close, you’ve done great.

    They might not even know the answer. They just want to see how you approach something that’s very difficult.

    Question 8 above highlights a pretty good point to remember in your interviews…

    There are a lot of questions in an interview where the hiring manager values your thought process. Sometimes more than a correct answer.

    If you’re stumped, talk out loud a bit and explain what you’re thinking. Ask a question if you need to. Try to break it down into smaller pieces.

    Specific knowledge can be taught but they can’t teach you problem-solving. Show them this and you have a great shot at getting hired!

     

    The hiring manager liked my approach to breaking down a problem that I didn’t immediately know how to solve. That’s why being transparent and showing your thought process is one of the tips for interviews that you’ll see me say over and over.

    You can learn to do the same and get far more job offers.

    The big takeaway: Don’t panic when you get a question you don’t know… use it as an opportunity to show exactly how you work through things. Be confident with it, relax, smile. Remember… you’re giving the hiring manager what they want!

    Credits:

    http://careersidekick.com/brain-teaser-job-interview-questions-facebook-google-apple/ 

     

  • HOW TO DISABLE DIRECTORY BROWSING IN WORDPRESS

    AUTHOR: // CATEGORY: Development, Wordpress

    No Comments

    By default when your web server does not find an index file (i.e. a file like index.php or index.html), it automatically displays an index page showing the contents of the directory. This could make your site vulnerable to hack attacks by revealing important information needed to exploit a vulnerability in a WordPress plugin, theme, or your server in general. In this article, we will show you how to disable directory browsing in WordPress.

    An example of directory index browsing in WordPress

    Why You Need to Disable Directory Browsing in WordPress

    Directory browsing can be used by hackers to find out if you have any files with known vulnerabilities, so they can take advantage of these files to gain access. For the comprehensive security of our sites, we use Sucuri for WordPress security. They have a simple dashboard which allows us to do this and perform many other WordPress security strengthening steps with in few clicks.

    Directory browsing can also be used by other people to look into your files, copy images, find out your directory structure, and other information. This is why it is highly recommended that you turn off directory indexing and browsing.

    Video Tutorial

    If you don’t like the video or need more instructions, then continue reading.

    To disable directory browsing in WordPress all you need to do is add a single line of code in your WordPress site’s .htaccess file located in the root directory of your website. To edit the .htaccess file you need to connect to your website using an FTP client.

    Once connected to your website, you will find a .htaccess file in your site’s root directory. .htaccess is a hidden file, and if you can not find it on your server, you need to make sure that you have enabled your FTP client to show hidden files.

    You can edit your .htaccess file by downloading it to your desktop and opening it in a text editor like Notepad. Now at the end of your WordPress generated code in the .htaccess file simply add this line at the bottom:

    1 Options -Indexes

    Now save your .htaccess file and upload it back to your server using your FTP client. That’s all you need to do. Directory browsing is now disabled on your WordPress site and people trying to locate a directory index on your website will be redirected to WordPress 404 page.

    Credits:
    http://www.wpbeginner.com/wp-tutorials/disable-directory-browsing-wordpress/

  • HOW TO FORCE DOWNLOAD FILES

    AUTHOR: // CATEGORY: Development, Wordpress

    No Comments

    How to Force Download of Mp3 Files Instead of Streaming

    For example, you’re running a mp3 site on wordpress and hosting audio files on your own server. By default when an user click on a mp3 file link, it automatically play the audio instead of downloading. This could make your site user annoying as he have to right click on the file and choose Save As to download it. In this article, we will show you how to Force Download of Mp3 files instead of Streaming without plugins.

    You can disable this streaming feature in WordPress by add some lines of code in your WordPress site’s .htaccess file located in the root directory of your wordpress install. To edit the .htaccess file you need to login into your hosting and navigate to File Manager.

    Once navigated to your file manager, you will find a .htaccess file in your site’s root directory. .htaccess is a hidden file by default, so if you can’t find it on your server, you need to make sure that you have enabled your file manager to show hidden files.

    You can edit your .htaccess file by downloading it to your pc or code edit feature on your server. After open it at the end of your WordPress generated code in the .htaccess file simply add these lines at the bottom as shown in the image below:

    force download mp3 instead of play wordpress

    You can change or add any other file type based on your need (example: pdf, mp4, doc)

    Now save your .htaccess file. That’s all you need to do. Streaming feature is now disabled on your WordPress site and people can download mp3 files hosting on your blog by just click on it.

    We hope this article will help you to learn How to force download after a click on the mp3 file link. For questions and feedback you can leave a comment below or join us on our forum.

    Credits:
    http://wpcage.com/force-download-mp3-files-instead-of-streaming/

  • OVERRIDE LINK COLOUR

    AUTHOR: // CATEGORY: Development

    No Comments

    So you want a single link to be in a different colour and if CSS is being stubborn then try this:

    <a href=“http://www.ahmedv.com” style=“background-color: white; color: orange;”>your link text here</a>

    Credits:
    https://www.sitepoint.com/community/t/override-link-color-for-one-link/1141