This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\models; | |
use app\components\Tools; | |
use app\controllers\UserController; | |
use Yii; | |
use yii\base\NotSupportedException; | |
use yii\db\ActiveRecord; | |
use yii\helpers\Security; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I mean Which one is better? | |
site.com/main_page.json | |
OR | |
site.com/book/best_books.json | |
site.com/user/user_books.json | |
site.com/lessons/lessons_books.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|-------------------------------------------------------------------------- | |
| DON'T TOUCH (base url (only domain) of site). | |
|-------------------------------------------------------------------------- | |
| | |
| without final / (DON'T TOUCH) | |
| | |
*/ | |
'base_url' => ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"). "://". @$_SERVER['HTTP_HOST'], | |
/* | |
|-------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I want to decode this: | |
{"data":"76iS0Xl5D0Nj0c8YN8OYYF8IRmKAnnygmunTMirHb5YlqEnnaPqpW4/kFS3Uzst1zqS+OTIClFgeHsxsVkRDAKAcqUF7GbCokSIo401LC3wWDr23GGL+sq0gcHBNLXnOc35jOgn9KuEmbWQY7HG8yW0obFl8DUVEOhRg7XvgSEtI7mht0viU/TUgT2M4IeC24AXXRbQPb350VNGjOnG7x9hcBk0SxMRRXLs2ZHZLRb83pUtOqaQGIpoeMrHYe5tVAnm0aS3tVR3s6fu28xzxk6GXlEC558lgsfoLFWdT2MeqCKsloZ3g+32s8+pvHqQDjd61EXFcHE7YfhkrTzTs8HcYhTb9cQw/WGj7hWCQdGE24D7WGoT+GY0WcJzOgMK745/NsV7DuvplF+JIhn7Ym0Y2FNv1xSqJKvrWskzIU1h8jyrvu99BFLvme3atEZqVJZIASNhSYq/KbsssQlGOZ2ZWEYLGXaJ8xKUjcthKbqPubr26BZ9uvnSQAGZ1duADfZq+yDUfiX4lcQSgEp0WXiiNvau9sgUPLE1Swcq3k0xku46+8PRqP12xiYJeH6KpJlOcYoTwRu3SyA8e/gd2Nk9NFCcsVizZsfZSCQJfTAPPgYFFhpU9Co6BYtEOYfbrUlUPGHJtmXqrBGb3OGG/qHE8ldTKVAd8enEwzk/aNAYaOwn3fe+J/cvRKctA6Yv0ne41uXwOZH7Srq/YWlv+euapElyc2Ds2heykcirl01DUU/opiDz1H1CwRF+U7qibzhLJuMJMbQc+GOmfqCC7IyxIQNNYanK9wYg1k/kqhgziQ12JkaEs/PtFeRp8ghjJXi8iEdziQdIjPYM2c6/dYGBieUX2QMYVXDf/sbNjSbZ9cuOzcpSbFlc3RJoskKmLitfpunsu0HUM8lhB5y9/9ODxjTmVdTT7gZTd5AMzAmKvpKZK52Yxy8Syu3krwv3Wu9/fc/xXRIZK97czKmqJUJksPC+jv2jB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the error for time out: | |
it works well but there is an error in terminal while compiling | |
ERROR in src/app/services/guard.service.ts(18,5): error TS2322: Type 'Promise<{}>' is not assignable to type 'boolean | Promise<boolean> | Observable<boolean>'. | |
Type 'Promise<{}>' is not assignable to type 'Observable<boolean>'. | |
Property '_isScalar' is missing in type 'Promise<{}>'. | |
and this is the error for obseravbale: | |
It doesn't work at all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ngOnInit() { | |
this.route.params.subscribe( | |
(params: Params) => { | |
this.id = params['id']; | |
} | |
); | |
this.options = { | |
multiple: true | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
have_library: checking for main() in -lpthread... -------------------- yes | |
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/ruby2.3-8Td9HM/ruby2.3-2.3.3=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm -lc" | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: int main(int argc, char **argv) | |
4: { | |
5: return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
current directory: | |
/tmp/bundler20170627-1439-1avsy40mini_racer-0.1.9/gems/mini_racer-0.1.9/ext/mini_racer_extension | |
/usr/bin/ruby2.3 -r ./siteconf20170627-1439-wwredd.rb extconf.rb | |
checking for main() in -lpthread... yes | |
creating Makefile | |
To see why this extension failed to compile, please check the mkmf.log which can | |
be found here: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
have_library: checking for BIO_read() in -lcrypto... -------------------- yes | |
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/ruby2.3-8Td9HM/ruby2.3-2.3.3=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm -lc" | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: int main(int argc, char **argv) | |
4: { | |
5: return 0; |
NewerOlder