Mandar Apte

UI/UX Designer from Mumbai, Maharashtra, India.

Articles

  • How do you change the color opacity or transparency in CSS?

    There are instances when you think it would be a great idea to change the opacity of the background color of a div without affecting the text, image, and other web properties present inside the same div of HTML and CSS.

    Answer:

    What you usually do is specify background color in CSS using hex, i.e. Hexadecimal values like this:

    .navbar {background-color: #ffffff;}
    

    But if you use RGBA to specify background color in CSS, you can utilise its feature called alpha, i.e. RGBA is a short form for Red – Green – Blue – Alpha

    (more…)
  • Write an iOS/iPadOS app code to transition from one screen to another.

    There are instances when you want to transition or navigate from one UI screen to another by pressing a button.

    Yes, you can link the button visually by control-clicking on it and then linking it to the required UI Screen on the storyboard.

    But I will show you how you can do it programmatically with code defined & working differently for iPad & iPhone Storyboards.

    I have used iOS Conditional coding syntax to differentiate iPhone & iPad Storyboards

    Note: You can read about iOS Conditional Coding Here, How to detect user is using iPad or iPhone for iOS App at run time conditional coding purposes

    (more…)
  • How to enable HTTP persistent or HTTP keep-alive connection feature for your WordPress website.

    As Wikipedia explains:

    HTTP persistent connection, also called HTTP keep-alive or HTTP connection reuse, involves using a single TCP connection to send and receive multiple HTTP requests/responses instead of opening a new connection for every request/response pair. The newer SPDY protocol uses the same idea and extends it to allow multiple concurrent requests/responses to be multiplexed over a single connection.

    Note: I assume you have adequate knowledge of handling your server and server settings and are well-versed in your field.

    You can put the following code in your .htaceess file, which is in the root of your server’s html folder.

    (more…)
  • How to hide the ‘Back’ button on the iOS/iPadOS App.

    You want to hide this ‘Back’ button when you transition from one screen to the next, probably the detail view screen, where Xcode automatically puts this for you without asking if you want it.

    You can copy the below code to your ‘viewDidLoad’ method in your respective file:

    Objective-C Code:

    [self.navigationItem setHidesBackButton:YES animated: YES];
    

    Swift Code:

    self.navigationItem.setHidesBackButton(true, animated: true);
    

    Hope it helps,

    Thanks & Regards
    Mandar Apte

  • How to enable Gzip Compression for WordPress.

    If you want to increase your website’s performance and speed by reducing its load time on clients’ (i.e., visitors’) machines, then this tutorial will help you.

    Something About WordPress:
    WordPress does not offer a mechanism to compress the blog’s HTML output. The Apache-enabled web server normally provides this feature.

    As the Apache Website Defines, The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.

    Here is how to enable gzip compression via .htaccess
    If you prefer to allow or fine-tune output compression with the Apache server, then copy and paste the below code into your .htaccess file:

    (more…)
  • How to disable WordPress Pingbacks & Trackbacks.

    Let’s Know What is Pingback?

    A pingback is a type of comment created when you link to another blog post where pingbacks are enabled. The best way to think about pingbacks is as remote comments:

    1. Person A posts something on his blog.
    2. Person B posts on her blog, linking to Person A’s post. This automatically sends a pingback to Person A when both have pingback-enabled blogs.
    3. When Person A’s blog receives the pingback, it automatically goes to Person B’s post to confirm that the pingback originated there.

    Let’s Know What Trackback is.

    Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress blogs, they’ll be notified automatically using pingbacks; no other action is necessary.

    Think of trackbacks as the equivalent of acknowledgements and references at the end of an academic paper or chapter in a textbook.

    To send a trackback, add the trackback URI from the other blog post to the Send Trackbacks module in your blog post before you publish it. A trackback URI from a WordPress blog will end with /trackback/.

    (more…)
  • How do you fix the iTunes Connect error ‘No identities are available for signing’? This error appears whenever you try to upload your iOS App binary from Xcode to iTunes Connect.

    The issue of ‘No identities are available for signing’ starts with the default behaviour of Xcode when you create a new app in Xcode itself,

    You fill up the following information in Xcode while creating a new app for iOS,

    creat new project xcode ios bundle idetifier organisation idetifier product name

    i.e. Product Name, Organisation Name, Company Identifier & it generates bundle identifier based on your inputs

    Apple, by default, forcefully inserts ‘Product Name’ into the bundle identifier without prompting or even asking the user whether they want it.

    So when you ignore this situation & start building your app…

    At the time of uploading your app to the Apple App Store through iTunes Connect, i.e. ITC, it throws the following error at you

    Error Name: No identities are available for signing

    So here is a workaround & solution for this error:

    (more…)
  • How to reset Macintosh’s Finder App Preferences.

    There are times when the OSX Finder starts acting weirdly, won’t obey your command, click, or tap, and you want to reset your Macintosh’s OSX Finder to its default setting to make it work as before, just like when you started your Mac for the first time.

    If you are using the latest Mac OSX or even OSX operating system, here is how to do it

    Delete Finder preferences using Finder

    Step 01:
    Navigate to the Preferences folder in your username’s home library folder.
    Open up the Finder window. Your User Name Home folder > Library > Preferences
    OR there is another way if your ‘Library’ folder is hidden by default
    Option-click on the ‘Go’ menu in the menu bar at the top of your screen. You will see the ‘Library’ folder link. Click or tap on it to open up your ‘Library’ folder.

    (more…)
  • How to reset Macintosh Finder App window size to default by deleting all folder windows and icon size settings stored in macOS’s default ‘DS_Store’ file.

    I was wondering, after a long day of work with lots of browsing & navigating to ‘Finder’ files & folders, sizing resizing Finder windows continuously for almost last year & two,

    How do we reset the finder window size for all files and folders to OSX’s default size?

    Yes, you can do it with just one click & small code

    Tip: First, back up your files using the Time Machine & then unmount your Time Machine Hard Drive to keep it safe from code execution. Just in case something goes wrong.

    Here is the procedure how to do it:

    First Step:
    Open the ‘Terminal’ App from your Application’s Utility folder.

    (more…)
  • How to detect user is using iPad or iPhone for iOS App at run time conditional coding purposes

    At runtime, you want to detect whether the user is on an iPad or an iPhone for conditional coding purposes.

    One requirement is to find the device’s screen size on an iPad, iPhone, or iPod touch.

    Another way to do it is to write different code, i.e., conditional code per device, whether it be an iPad with a big screen or an iPhone with a smaller screen, or just to find out which storyboard you are writing code for.

    The code is simple:

    (more…)