Showing posts with label [FIX] - How to. Show all posts
Showing posts with label [FIX] - How to. Show all posts

Surface Pro - Media Queries for mobile/tablet devices( ALL Updated - 2019)

/*Reference: 
https://gist.github.com/aamorozov/ff6b41896b7cfef299ec9ce83ea1889d
*/

@media only screen     
and (min-device-width : 1024px) 
and (max-device-width : 1366px) 
and (orientation : portrait) 
and (-webkit-min-device-pixel-ratio: 2) {
  /* PORTRAIT: 
 Apple Ipad Pro */ }
  
@media only screen and (max-width: 800px) and (orientation : portrait) {
 /* PORTRAIT:
 Samsung Galaxy Tab 3(10")
 Amazon indle Fire HD
 Motorola Xoom 1, 2 */
}

@media only screen and (max-width: 768px) and (orientation : portrait) {
 /* PORTRAIT:
 Apple iPad 1,2,3,4,Air, Mini
 Microsoft Surface
 HP Touchpad
 LG Optimus Pad  */
}

@media only screen and (max-width: 720px) and (orientation : portrait) {
 /* PORTRAIT:
 Microsof Surface Pro */
}

@media only screen and (max-width: 600px) and (orientation : portrait) {
 /* PORTRAIT:
 Asus Nexus 7
 BlackBerry PlayBook
 Kindle 3
 LG G Pad 8.3
 Samsung Galaxy Tab 2(7") */
}


 /*Mobile. Iphone 6 plus and galaxy edge will go somewhere here*/
 
@media only screen and (max-width: 400px) and (orientation : portrait) {
 /* PORTRAIT: (some of them might need to be broken out into '360px')
 Apple Iphone 6
 Samsung Galaxy S3, S4, S5, S6, S7
 Samsung Galaxy Note, Note 2
 Motorola Moto G
 LG Nexus 5
 Google Nexus 5
 HTC One X, Sensation
 BlackBerry Bold 9900
 BlackBerry Z10 */
}

@media only screen and (max-width: 320px) and (orientation : portrait) {
 /* PORTRAIT:
 Apple iPhone 3, 4, 5
 HTC Nexus One, Evo
 LG Optimus
 Nokia N900
 Nokia Lumia 1020
 Samsung Galaxy S, S2 */
}


@media only screen and (max-width: 1366px) and (orientation : landscape) {
 /* LANDSCAPE:
 Microsoft Surface 
 Apple Ipad Pro */
}

@media only screen and (max-width: 1280px) and (orientation : landscape) {
 /* LANDSCAPE:
 Samsung Galaxy Tab(7.7 > 12.2)
 Mictosoft Surface Pro 1, 2
 Acer Iconia Tab (A100-A500)
 ASUS Transformer Pad TF300T
 Motorola Xoom 1, 2
 LG Optimus Pad */
}

@media only screen and (max-width: 1024px) and (orientation : landscape) {
 /* LANDSCAPE:
 Apple iPad 1,2,3,4,Air,Mini
 BlackBerry PlayBook
 Samsung Galaxy Tab 2(7") */
}

@media only screen and (max-width: 980px) and (orientation : landscape) {
 /* LANDSCAPE:
 Nexus 7
 HTC Evo 3D */
}

@media only screen and (max-width: 800px) and (orientation : landscape) {
 /* LANDSCAPE:
 Iphone 6plus
 Kindle Fire HD 7, 8
 HTC Desire Z
 Nokia N900
 Samsung Galaxy Grand */
}

@media only screen and (max-width: 640px) and (orientation : landscape) {
 /* LANDSCAPE:
 Samsung Galaxy S3, S4, S5, S6, S7
 Samsung Galaxy Note 1, 2
 HTC One S, V
 Nokia 500 */
}

@media only screen and (max-width: 600px) and (orientation : landscape) {
 /* LANDSCAPE:
 Nexus 4
 Apple iPhone 5 */
}

@media only screen and (max-width: 540px) and (orientation : landscape) {
 /* LANDSCAPE:
 HTC Desire, One
 LG Optimus 2X
 Nexus S
 Samsung Galaxy S2
 BlackBerry Z10 */
}

spacer

[FIX] Sublime Error - There Are Not Packages Available For Installation - 100% working



If you are tired of searching solution for the sublime text editors error which says "There are no packages available for installation".Then try this solution.

It will work like a charm;). Let me know if it works or not and if you have more problems. I will try to help if I know the solution.

_____________________________________________________________
https://web.archive.org/web/20150905194312/https://packagecontrol.io/channel_v3.json

"channels":["https://erhan.in/channel_v3.json"],
_____________________________________________________________


email:  hello@mrmoeed.com
website: http://mrmoeed.com
spacer

HOW TO ADD CHROME’S EMULATED DEVICES (iPhone Xs / iPhone Xs Max)

if you want to add new emulated mobile devices into chrome developer tool follow this process:

  1. Open the Developer Tools pane (CTRL+SHIFT+I)
  2. Press (F1) then Devices and clicking the Add custom device button

New Device Data

Here is the data for some current devices: Click the link below to find all devices. 
Device Name Width Height
iPhone Xs 375 812
iPhone Xs Max 414 896
iPhone XR 414 896
Samsung Galaxy S9 360 740
Samsung Galaxy S9+ 320 658
Samsung Galaxy Note 9 412 846
Pixel 3 393 786
Pixel 3 XL 412 846
iPhone X 375 812
Palm PVG100 360 640
iPhone 8 Plus 414 736
iPhone 8 375 667
iPhone 7 Plus 414 736
iPhone 7 375 667
iPhone SE 320 568
iPad Mini 4 768 1024
iPad Pro (10.5") 834 1112
iPad Pro (12.9") 1024 1366
Red Hydrogen One 412 732
Samsung Galaxy Tab S3 768 1024
Samsung Galaxy Note 8 412 846
Samsung Galaxy S8 360 740
Samsung Galaxy S8+ 412 846
Samsung Galaxy S7 360 640

Media Queries

/* 1792x828px at 326ppi iPhone XR */
@media only screen and (device-width : 414px) and (device-height : 896px) and (-webkit-device-pixel-ratio : 2)
    {}

    /* 2436x1125px at 458ppi iPhone XS*/
@media only screen and (device-width : 375px) and (device-height : 812px) and (-webkit-device-pixel-ratio : 3)
    {}

    /* 2688x1242px at 458ppi iPhone XS Max*/
@media only screen and (device-width : 414px) and (device-height : 896px) and (-webkit-device-pixel-ratio : 3)
    {}

spacer

Professional Logo Design in Urdu | Adobe Illustrator

Hi Guys, In today's lecture, we will learn how to trace logo from the raster image using Adobe Illustrator.

Professional Logo Design in Urdu | Adobe Illustrator



▲ WATCH COMPLETE VIDEO HERE ==> https://www.youtube.com/watch?v=aRECPT9L6SM




spacer

Convert numbers into words - Excel - 100% Working

Click here for this code explanation. The complete procedure is in the video tutorial. 

Option Explicit
'Main Function
Function SpellNumber(ByVal MyNumber)
    Dim Rupeess, Paisas, Temp
    Dim DecimalPlace, Count
    ReDim Place(9) As String
    Place(2) = " Thousand "
    Place(3) = " Million "
    Place(4) = " Billion "
    Place(5) = " Trillion "
 
    MyNumber = Trim(Str(MyNumber))
    DecimalPlace = InStr(MyNumber, ".")
    If DecimalPlace > 0 Then
        Paisas = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & _
                  "00", 2))
        MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))
    End If
    Count = 1
    Do While MyNumber <> ""
        Temp = GetHundreds(Right(MyNumber, 3))
        If Temp <> "" Then Rupeess = Temp & Place(Count) & Rupeess
        If Len(MyNumber) > 3 Then
            MyNumber = Left(MyNumber, Len(MyNumber) - 3)
        Else
            MyNumber = ""
        End If
        Count = Count + 1
    Loop
    Select Case Rupeess
        Case ""
            Rupeess = "No Rupeess"
        Case "One"
            Rupeess = "One Rupees"
         Case Else
            Rupeess = Rupeess & " Rupeess"
    End Select
    Select Case Paisas
        Case ""
            Paisas = " and No Paisas"
        Case "One"
            Paisas = " and One Paisa"
              Case Else
            Paisas = " and " & Paisas & " Paisas"
    End Select
    SpellNumber = Rupeess & Paisas
End Function
 
Function GetHundreds(ByVal MyNumber)
    Dim Result As String
    If Val(MyNumber) = 0 Then Exit Function
    MyNumber = Right("000" & MyNumber, 3)
    ' Convert the hundreds place.
    If Mid(MyNumber, 1, 1) <> "0" Then
        Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "
    End If
    ' Convert the tens and ones place.
    If Mid(MyNumber, 2, 1) <> "0" Then
        Result = Result & GetTens(Mid(MyNumber, 2))
    Else
        Result = Result & GetDigit(Mid(MyNumber, 3))
    End If
    GetHundreds = Result
End Function
 
Function GetTens(TensText)
    Dim Result As String
    Result = "" ' Null out the temporary function value.
    If Val(Left(TensText, 1)) = 1 Then   ' If value between 10-19...
        Select Case Val(TensText)
            Case 10: Result = "Ten"
            Case 11: Result = "Eleven"
            Case 12: Result = "Twelve"
            Case 13: Result = "Thirteen"
            Case 14: Result = "Fourteen"
            Case 15: Result = "Fifteen"
            Case 16: Result = "Sixteen"
            Case 17: Result = "Seventeen"
            Case 18: Result = "Eighteen"
            Case 19: Result = "Nineteen"
            Case Else
        End Select
    Else ' If value between 20-99...
        Select Case Val(Left(TensText, 1))
            Case 2: Result = "Twenty "
            Case 3: Result = "Thirty "
            Case 4: Result = "Forty "
            Case 5: Result = "Fifty "
            Case 6: Result = "Sixty "
            Case 7: Result = "Seventy "
            Case 8: Result = "Eighty "
            Case 9: Result = "Ninety "
            Case Else
        End Select
        Result = Result & GetDigit _
            (Right(TensText, 1))  ' Retrieve ones place.
    End If
    GetTens = Result
End Function
 
Function GetDigit(Digit)
    Select Case Val(Digit)
        Case 1: GetDigit = "One"
        Case 2: GetDigit = "Two"
        Case 3: GetDigit = "Three"
        Case 4: GetDigit = "Four"
        Case 5: GetDigit = "Five"
        Case 6: GetDigit = "Six"
        Case 7: GetDigit = "Seven"
        Case 8: GetDigit = "Eight"
        Case 9: GetDigit = "Nine"
        Case Else: GetDigit = ""
    End Select
End Function


spacer

[FIX] Sublime Error - There Are Not Packages Available For Installation - 100% working

[FIX] Sublime Error - There Are Not Packages Available For Installation - 100% working


Hi Guys, If you are tired of searching solution for the sublime text editors error which says "There are no packages available for installation".Then try this solution. It will work like a charm;). Let me know if it works or not and if you have more problems. I will try to help if I know the solution.

CODE: "channels":["https://erhan.in/channel_v3.json"],



spacer