There are actually two place where where mac os x serves website by default:
/Library/WebServer/Documents --> http://localhost
~/Sites --> http://localhost/~user/
| # Link: https://unix.stackexchange.com/questions/77007/mv-cannot-stat-no-such-file-or-directory-in-shell-script | |
| # Failed | |
| mv /path/to/FILE /new/path/to/FILE | |
| # Double Quote the directory | |
| mv "/path/to/"FILE "/new/path/to/"FILE |
| ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'PASSWORD'; |
There are actually two place where where mac os x serves website by default:
/Library/WebServer/Documents --> http://localhost
~/Sites --> http://localhost/~user/
Identifier refers to name given to entities such as
variables, functions, structures etc.
In the C, C++, and D programming languages, a type qualifier is a keyword that is applied to a type, resulting in a qualified type.
For example, const int is a qualified type representing a constant integer, while int is the corresponding unqualified type, simply an integer.
In D these are known as type constructors, by analogy with constructors in object-oriented programming.
| // It Depand on value | |
| // 1. Value 0 | -1 | |
| #include <string.h> | |
| memset(arr, -1, sizeof(arr)); | |
| // 2. any value | |
| #include <algorithm> | |
| using namespace std; | |
| fill(arr, arr+len, VAL); // address |
| // C lang way | |
| char str[MAXN]; | |
| sprintf(str, "%d", num); | |
| // Cpp way c++11 | |
| std::string str = std::to_string(num); |
| int arr[] = {73, 68, 80, 85, 73, 74, 33, 49, 74, 90, 23, 22, 1, 0, 57, 11, 27, 35, 60, 45}; | |
| int len = sizeof(arr) / sizeof(arr[0]); | |
| sort(arr, arr+len, compare); | |
| // SET the purpose condition. | |
| bool compare(int front, int end) { | |
| return front > end; // DESC | |
| return front < end; // ASC |
| /*! | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2014 Christian Hoffmeister | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
Stroke => border section