list all fields in a table pragma table_info(tableName)
Errors
Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have
- fix by: chmod 755 android/gradlew
react-native run-androidnot found default
- fix by remove dependency that not used from android/settings.gradle and MainApplication.java
colored diff command's result
svn | vim -R -
undefined is not a function (evaluating ...)this error occurred because import undefault item as a default item eg
`// should not work import AsyncStorage from 'react-native';
// work import { AsyncStorage } from 'react-native'; `
-
Error
aapt: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory archlinuxArchlinux install https://www.archlinux.org/packages/core/x86_64/lib32-gcc-libs/ -
Error stuck
loading from ip:porton android emulator. Try to increase setting forfs.inotify.watch_user_watchesby follow this thread react/react-native#3199 or one of these commandsecho 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watchesorsudo sysctl fs.inotify.max_user_watches=65536, also setting ip:port for dev server in android emulator by choose dev setting -> dev server on dev menu pop up (open popup by shake device or run commandadb shell input keyevent 82)
- Select all text in a buffer (like ctrl + a): c-x h (mark-whole-buffer)
- Reformat a block code (Auto indent code): c-m-\ (indent-region) (https://www.emacswiki.org/emacs/ReformatBuffer)
- comment a line of code or a block of code: m-;
- uncomment a region: c-m ;
| const mongoose = require('mongoose'); | |
| mongoose.connect('mongodb://localhost:27017/testdyn'); | |
| const consola = require('consola'); | |
| // use generator | |
| function* limit() { | |
| let index = 0; | |
| while (index < 10000) { | |
| yield index++; | |
| } |
error when run mix ecto.create fix by change password and restart postgres as following commands
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo /etc/init.d/postgresql restart
Then install this tool https://github.com/rvoicilas/inotify-tools/wiki when rung mix phx.server
- create a file to keep environment variables (called env.sh here) at /etc/profile.d/env.sh
- export two proxy variable in /etc/profile.d/evn.sh as below
export http_proxy=http://<ip/name>:<port>
export https_proxy=$http_proxy
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| "time" | |
| ) | |
| type Person struct { |