Posts

Showing posts from September, 2002

Convert Hex Dump Of File To Binary (program) File On Windows?

Answer : VIM 7.x contains xxd for Windows https://ftp.nluug.nl/pub/vim/pc/gvim73_46_s.zip C:\Program Files (x86)\Vim\vim74>.\xxd -v xxd V1.10 27oct98 by Juergen Weigert (Win32) C:\Program Files (x86)\Vim\vim74>dir xxd.exe 10/08/2013 12:33 PM 70,144 xxd.exe C:\Program Files (x86)\Vim\vim74>file xxd.exe xxd.exe; PE32 executable for MS Windows (console) Intel 80386 32-bit Cygwin has one also C:\cygwin\bin>.\xxd.exe -v xxd V1.10 27oct98 by Juergen Weigert C:\cygwin\bin>dir xxd.exe 18/09/2015 05:44 AM 18,963 xxd.exe C:\cygwin\bin>file xxd.exe xxd.exe: PE32+ executable (console) x86-64, for MS Windows use powershell format-hex command: PS C:\path\path\Documents\blah> format-hex Util3.class Path: C:\blah\blah\Documents\blah\Util3.class 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000000 CA FE BA BE 00 00 00 34 00 1F 0A 00 07 00 10 09 Êþº¾...4........ etc...

Font Awesome Cdn Js Code Example

Example 1: fontawesome cdn <link href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel= "stylesheet" > Example 2: font awesome cdn <link rel= "stylesheet" href= "https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity= "sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin= "anonymous" /> Example 3: bootstrap font asesome cdn The correct one -> Give an upvote if it helps <link rel= "stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" /> Example 4: font awesome cdn <link href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel= "stylesheet" > Example 5: font asweome cdn <link rel= "stylesheet" href= "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min

Convert .cer To .p12

Answer : What works for me dealing with Push Notification certifies has been: Open the certificate: open my_filename.cer and click "View Certificates" to see the certificate's name Go to Applications -> Utilities -> Keychain Access Ensure you have selected the "login" keychain, not the "system" one (thanks to @Matt Flettcher ) Go to "Certificates" Look for the desired certificate Ensure that you can expand it and see under it the original ".certSigningRequest" used to generate the certificate At this moment you should be able to export it as ".p12" try this: given you have files as follow: aps.cer, downloaded from Apple. app.key, your own private key generated by openssl. 1st, convert the .cer file into .pem format: openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM 2nd, use the .pem file and your private .key to generate .p12 file: openssl pkcs12 -export -out aps.p12 -inkey app.key -in aps.pem

Android Java.security.cert.CertPathValidatorException: Trust Anchor For Certification Path Not Found

Answer : I am answering to this to give an idea about the scenario and solution as per the android developer site for others benefit. I have solved this using custom trust manager. The problem was with the server certificate, it misses intermediate certificate authority. However with the first flow certificate path is completed somehow and result was successful certificate path validation. There is a solution for this in android developer site. it suggest to use custom trust manager that trusts this server certificate or it suggest to server to include the intermediate CA in the server chain. custom trust manager. source: https://developer.android.com/training/articles/security-ssl.html#UnknownCa // Load CAs from an InputStream // (could be from a resource or ByteArrayInputStream or ...) CertificateFactory cf = CertificateFactory.getInstance("X.509"); // From https://www.washington.edu/itconnect/security/ca/load-der.crt InputStream caInput = new BufferedInputStream

Concat String In Javascript Code Example

Example 1: string concatenation in js var str1 = "Hello " ; var str2 = "world!" ; var res = str1 . concat ( str2 ) ; console . log ( res ) ; Example 2: how to concatenate strings javascript var str1 = "Hello " ; var str2 = "world!" ; var res = str1 . concat ( str2 ) ; // does not change the existing strings, but // returns a new string containing the text // of the joined strings. Example 3: string concat javascript //This method adds two or more strings and returns a new single string. let str1 = new String ( "This is string one" ) ; let str2 = new String ( "This is string two" ) ; let str3 = str1 . concat ( str2 . toString ( ) ) ; console . log ( "str1 + str2 : " + str3 ) output : str1 + str2 : This is string oneThis is string two Example 4: js concat string const str1 = 'Hello' ; const str2 = 'World' ; console . log ( str1 . concat ( ' ' , str2 ) ) ;

Icon Fa Fa-facebook-square Code Example

Example: fa fa-facebook < i class = "fa fa-facebook-square" aria - hidden = "true" > < / i >

Disabled Button Css Selector Code Example

Example: style disabled button button :disabled , button [ disabled ] { border : 1 px solid #999999 ; background-color : #cccccc ; color : #666666 ; }

Conda Install Pandas Code Example

Example 1: install pandas conda conda install -c anaconda pandas Example 2: install pandas pip install pandas Example 3: conda install pandas conda install pandas Example 4: install pandas sudo pip3 install pandas Example 5: how to import pandas import pandas as pd Example 6: pandas pip install pip install pandas

Html Cards Side By Side Code Example

Example: css card grid /* https://codepen.io/travishorn/pen/bzXEjd */ <---------------------------------- HTML -------------------------------- > <div class="cards" > <div class="card" > ONE</div > <div class="card" > TWO</div > <div class="card" > THREE</div > <div class="card" > FOUR</div > <div class="card" > FIVE</div > <div class="card" > SIX</div > <div class="card" > SEVEN</div > <div class="card" > EIGHT</div > <div class="card" > NINE</div > <div class="card" > TEN</div > <div class="card" > ELEVEN</div > <div class="card" > TWELVE</div > </div > <---------------------------------- CSS ---------------------------------- > html { font-size : 22 px ; } bod

Crud Operations In Web Api Without Using Entity Framework Code Example

Example 1: crud operation without entity framework in mvc using System.Web.Mvc;using CRUDinMVC.Models; namespace CRUDinMVC.Controllers{ public class StudentController : Controller { // 1. *************RETRIEVE ALL STUDENT DETAILS ****************** // GET: Student public ActionResult Index() { StudentDBHandle dbhandle = new StudentDBHandle(); ModelState.Clear(); return View(dbhandle.GetStudent()); } // 2. *************ADD NEW STUDENT ****************** // GET: Student/Create public ActionResult Create() { return View(); } // POST: Student/Create [HttpPost] public ActionResult Create(StudentModel smodel) { try { if (ModelState.IsValid) { StudentDBHandle sdb = new StudentDBHandle(); if (sdb.AddStudent(smodel)) {

Online Ubuntu Compiler For C++ Code Example

Example: cpp online compiler Best Site With auto compile : https : //godbolt.org/z/nEo4j7

1pm Cst To Ist Code Example

Example: 1pm cst to ist 12.30 AM in India

Can I Combine Two Internet Connections Into One PC Using Only A Switch?

Answer : The easiest way to configure this would be to use a Multi-WAN router such as the Linksys RV042. Technically: yes In practice, it's an exotic and expensive configuration. You can put more than one address on an interface or use more than one interface and be multihomed . However, this is much more likely to be effective for a big server cluster in a data center. Expensive routers capable of running routing protocols will be needed and then it still would not help you with a single given TCP connection. If you try this as a single user of two retail ISPs, then you will have two different IP addresses, so incoming traffic will use the one you made the outbound connection on, and it's unlikely that any equipment you have can be configured with more than one gateway. A large site with a /24 or shorter prefix and their own ASN can actually announce a single IP address over multiple networks, but that won't work without being further upstream than a retail

Create Table With Foreign Key On Mysql Code Example

Example 1: alter table add foreign key mysql ALTER TABLE orders ADD FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; Example 2: MySQL Foreign Key Here is the basic syntax of defining a foreign key constraint in the CREATE TABLE or ALTER TABLE statement: [CONSTRAINT constraint_name] FOREIGN KEY [foreign_key_name] (column_name, ...) REFERENCES parent_table(colunm_name,...) [ON DELETE reference_option] [ON UPDATE reference_option] In this syntax: First, specify the name of foreign key constraint that you want to create after the CONSTRAINT keyword. If you omit the constraint name, MySQL automatically generates a name for the foreign key constraint. Second, specify a list of comma-separated foreign key columns after the FOREIGN KEY keywords. The foreign key name is also optional and is generated automatically if you skip it. Third, specify the parent table followed by a list of comma-separated columns to which the foreign key columns reference. Finally, specify how foreign

Ad Astra Imdb Code Example

Example: ad astra Shitty plot, go watch Interstellar.

Can An Idempotent Matrix Be Complex?

Answer : A assume that by "can A A A be complex", you mean "can A A A have any non-real entries". Well, it can! For instance, take A = \pmatrix{1&i\\0&0} In general: for any complex column-vector x x x , A = x x ∗ x ∗ x A = \frac{xx^*}{x^*x} A = x ∗ x x x ∗ ​ (where ∗ * ∗ denotes the conjugate-transpose) is such a matrix. A projection to a subspace is idempotent. Therefore A A A has no reason to be real. For example, take a subspace S S S of C 2 \mathbb{C}^2 C 2 and A A A be the matrix of the projection on to S S S with respect to the standard basis. Any matrix A = \pmatrix{a&b\\c&1-a} will be idempotent provided that a 2 + b c = a a^2+bc=a a 2 + b c = a

Flexbox Defense Level 12 Solution Code Example

Example: flexbox defense level 12 solution .tower-group-1 { display : flex ; justify-content : space-between ; align-items : center ; } .tower-1-1 { align-self : flex-start ; order : 1 ; } .tower-1-2 { order : 2 ; } .tower-1-3 { order : 4 ; } .tower-1-4 { order : 3 ; } .tower-1-5 { align-self : flex-end ; order : 5 ; }