racl101 + forum   361

Is there a way to reset a component? · Issue #702 · vuejs/vue
Cool trick to reset component data to its initial values on VueJS (Vue2).
github  forum  vue  vuejs  vue2  howto  example  reset  component  data  object  assign  javascript  guide  reference  context 
february 2019 by racl101
"Laravel 5.5 API Resources" vs "spatie/laravel-fractal"
Interesting forum discussion comparing and discussing the merits of using Larave 5.5's API Resources features and the PHP Fractal library (or a Laravel wrapper for the Fractal library).
laracasts  forum  discussion  library  php  laravel  laravel5  api  resources  feature  fractal  pros  cons  merits  guide  reference 
february 2019 by racl101
alpine variant missing /usr/share/zoneinfo · Issue #220 · docker-library/postgres
This is explain why some Docker containers are missing the /usr/share/zoneinfo directory on Linux systems which is needed to be able to set the server's timezone. Essentially you need to install the necessary package: tzdata
docker  github  forum  howto  troubleshoot  container  missing  directory  timezone  set  example  guide  reference  linux 
november 2018 by racl101
Failed to download Chromium r515411 · Issue #1597 · GoogleChrome/puppeteer
In short: when installing Puppeteer and you get an error about downloading chromium, you might get an error. It could be an intermittent connection so try a few more times to see if works.
github  forum  puppeteer  google  chrome  chromium  headless  browser  issue  howto  troubleshoot  fix  example  guide  reference 
november 2018 by racl101
Error "No package matching 'php7.0-common' is available" · Issue #226 · geerlingguy/ansible-role-php
This shows how to troubleshoot an Ansible task whereby you need to install a PHP 7 module that isn't available by updating your Ubuntu ppa repositories by including the ondrej/php repository which is likely to contain any necessary php modules.
github  forum  howto  troubleshoot  ansible  task  php  php7  module  missing  not  available  apt  repository  ondrej 
november 2018 by racl101
How to remove <none> images after building - Open Source Projects / DockerEngine - Docker Forums
Even though they said it didn't work for them, it worked for me on Docker CE: 18.06.1-ce version:

docker rmi $(docker images -f "dangling=true" -q)
docker  forum  howto  remove  images  dangling  example  guide  reference  repository  tag  value  none 
october 2018 by racl101
iptables sometimes works inside container, sometimes not - docker 0.8.1 · Issue #4424 · moby/moby
In short, you need to use --cap-add=NET_ADMIN when you launch a Docker Image to be able to enable tools such as the ufw tool in say a Docker image running the Ubuntu . 16.04 image, for example.
github  forum  howto  run  docker  container  troubleshoot  fix  network  admin  capabilities  universal  firewall  ufw  example  guide  reference 
october 2018 by racl101
Connecting to a mysql running on a Docker container · Issue #95 · docker-library/mysql
Frankly, this forum page has no consensus on a solution to this issue. Nevertheless, what worked for me on my set up with running MacOS as the Docker host and running a container with: Ubuntu 16.04 and MySQL 5.7 is the following:

1) Within the container: change in /etc/mysql/mysql.conf.d/mysqld.cnf the bind-address option from 127.0.0.1 to 0.0.0.0
2) Restart MySQL server (note that whenever you start MySQL you must use this command in the Dockerfile:

RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start

That is, you must touch the files in /var/lib/mysql and then start the server with service command and not systemctl.

Next, create a user separate from root e.g. dev_1, in MySQL and given them privileges to their '0.0.0.0' and '%' hosts. Like this in the Dockerfile:

RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start && mysql -uroot -proot mysql -e "GRANT ALL ON *.* TO root@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; CREATE USER 'dev_1'@'0.0.0.0' IDENTIFIED BY 'secret'; GRANT ALL ON *.* TO 'dev_1'@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; GRANT ALL ON *.* TO 'dev_1'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION; FLUSH PRIVILEGES;"

Then when you start the container you must publish the port number like so:

docker run -t -d -p 4406:3306 ubuntu_16_04_lemp_php_7_2:latest

If your container stops prematurely, then you might want to add a CMD line in your docker file to run a start.sh script and within that script you might want to add something like this:

# stupid hack to keep container from being stopped
tail -f /dev/null

Finally, to connect to your DB instance on your local MacOS machine with an app like Sequel Pro for example, use the following credentials:

Host: 0.0.0.0
Username: dev_1
Password: <dev_1_password>
Port: 4406

If you don't like to use port 4406, try 3307, 3308, 3309.
github  forum  howto  example  troubleshoot  mysql  server  docker  host  connection  issue  sequel  pro  mariadb  client  hostname  docker-machine  ip  address  ipaddress  guide  reference  toread  tolearn  totry  tounderstand  image  port  detached  database  credentials 
october 2018 by racl101
Ecommerce University | Contact Form Country/Province Dropdown - Shopify Design
The short of it is: if you are using shopify's country_option_tags variable you'll need to include the 'shopify_common.js' | shopify_asset_url | script_tag JavaScript library to be able to dynamically populate the province / state field. Look to the Shopify Debut theme to see how this is done.
shopify  forum  ecommerce  university  contact  form  addresses  customer  country  province  dropdown  howto  example  guide  reference  jquery 
august 2018 by racl101
Ecommerce University | Sort &quot;All Products&quot; collection by product type - Shopify Design
An example of how to sort all products in a collection array, by a certain attribute. For example, if you wanted to sort by the dates that products were published at you could use this attribute: 'published_at'. Note, that you have no option by which to sort, so it's always ascending. So if you want descending then you need to pass the '| reverse' array filter.
shopify  ecommerce  university  forum  howto  example  sort  products  in  collection  by  certain  attribute  liquid  theme  development  guide  reference 
august 2018 by racl101
Ecommerce University | Display 12 Recently Added Products on Homepage - Shopify Design
I came up with a rudimentary way to display the most recently added products to the index page.
shopify  forum  ecommerce  howto  example  guide  reference  show  display  query  recently  added  products  index  template  theme 
august 2018 by racl101
Ecommerce University | Shopify - using if statements within js.liquid files - Shopify Design
This forum contains a good explanation of why certain liquid template keywords like: {{ template }} do not return what you expect in .js.liquid files. So don't use it to try to detect the template from within the .js.liquid files. Instead, in the theme.liquid template, in the head tag do something like this:

<script>
var template = {{ template | json }};
</script>

and then use that variable in your JavaScripts that you include externally, like so:

if(template === 'index'){
console.log('homepage loaded');
}
shopify  ecommerce  university  forum  guide  reference  explanation  css  javascript  assets  template  detection  liquid  syntax  caveat  proviso  toread  tolearn  tounderstand 
august 2018 by racl101
Ecommerce University | Absolute url - Shopify Apps
Simple example of how to get the absolute, shop/store url. It may seem obvious but it's hardly documented anywhere. Most template examples use the forward slash '/', which is fine for some places, but every now and then you need the actual shop url.

{{ shop.url }}{{ product.url }}
shopify  forum  ecommerce  university  howto  example  get  shop  store  absolute  url  guide  reference 
august 2018 by racl101
Ecommerce University | Get data of a specific product by its ID - Ecommerce Discussion
The short of it is: you can access a specific product object using the all_products object and the product handle as an index like so, for example: {{ all_products['the-handle'].title }}
shopify  ecommerce  university  forum  howto  example  access  product  object  by  handle  specific  guide  reference 
august 2018 by racl101
Error during install , "python mysqldb module is required" · Issue #42 · geerlingguy/ansible-role-mysql
If using python3 as the Ansible Python Interpreter then you'll need to install both:

- python3-pip
and
- python3-mysqldb

to be able to update mysql user passwords with Ansible.
github  forum  mysql  module  howto  fix  troubleshoot  python  python3  ansible  update  root  password  user  example  guide  reference  pip 
july 2018 by racl101
Using Vue with bootstrap select and refreshing options · Issue #397 · vuejs/Discussion
This forum / thread response was helpful in helping me integrate Bootstrap-select jQuery plugin with VueJS / Vue 2 so that the dropdown is reactive. That is, so that the data comes from the VueJS app through an array and when the array is updated so are the options on the dropdown.
github  forum  thread  response  bootstrap-select  jquery  plugin  vuejs  vue2  vue  javascript  howto  example  guide  reference  integrate 
june 2018 by racl101
How to load default form values into Vue object
Shows how to populate a component's data from data provided to it by a parent component by props.
laracasts  forum  howto  load  form  field  data  component  from  parent  props  example  guide  reference 
may 2018 by racl101
custom loading indicator · Issue #337 · matfish2/vue-tables-2
This forum response demonstrates how to show a loading graphic (using vue-spinner library) while the table is loading data and can be used in tandem with Ajax calls for server side table component.
github  forum  howto  example  show  vue-spinner  loading  spinner  component  graphic  image  implement  guide  reference  vuetables2 
may 2018 by racl101
Refresh() doesn't work on Server table · Issue #342 · matfish2/vue-tables-2
This forum demonstrated to me howto be able to reload a Vue Table 2 table's rows by using its ref attribute. In short, do it like this:

<v-server-table ref="myProductsTable" ... >
...
<v-server-table>

and in the parent component using the Vue Tables 2 component refer to the table in question within your methods like so:

methods: {
refreshTable() {
this.$refs.myProductsTable.refresh();
}
}

You can do this after deleting a row or editing a row item.
vuetables2  github  forum  howto  example  refresh  table  rows  guide  reference 
may 2018 by racl101
ajv@^6.0.0 is missing · Issue #9691 · angular/angular-cli
I fixed this for myself by installing: npm install ajv@^6.0.0 from within the project directory. Not sure if this is the best way of dealing with the issue.
github  forum  angular  angular-cli  npm  install  howto  troubleshoot  issue  error  ajv  dependency  project  guide  reference 
april 2018 by racl101
A misleading 'You need to run "nvm install N/A"' message when trying to use a non-installed version · Issue #1356 · creationix/nvm
Note: the above has an issue whereby if the LTS Boron version points to a new minor version, the alias: —lts=boron will point to that new minor version and nvm will complain with an “N/A” error.

In those cases, run:

$ nvm ls

Get the correct version number and use it explicitly.

$ nvm use <specific-version-number>
github  nvm  forum  howto  troubleshoot  alias  n/a  version  workaround  bug  npm  nodejs  long  term  support  lts 
april 2018 by racl101
Run composer commands with different php versions
This actually seems to work within the Homestead Virtual Machine. It's not necessarily the most elegant way but it gets the job done.
laracasts  forum  howto  run  composer  command  install  laravel  laravel5  with  different  version  of  php  php5  php7  example  guide  reference 
april 2018 by racl101
"Could not get any response" on all my api calls · Issue #3127 · postmanlabs/postman-app-support
Bug with Postman caused by copying token from Laravel Passport Personal Access Token generating modal output, which includes a newline / return at the end. Remove that newline / return at the end and it should fix this.
github  forum  postman  howto  troubleshoot  fix  bug  token  bearer  authentication  newline  return  character  example  guide  reference 
april 2018 by racl101
Can't import css from node_modules/ · Issue #412 · JeffreyWay/laravel-mix
This example demonstrates to add / import a CSS dependency, such as the Animate.css library, that is installed via NPM (i.e. npm install --save-dev animate.css), into a Sass file using the @import statement and having Laravel (Webpack) Mix compile the single .css file.
github  forum  howto  example  css  npm  dependency  animate.css  sass  package  laravel  webpack  mix  guide  reference  jeffreyway 
april 2018 by racl101
Update Amazon RDS max_connections with Parameter Group · Issue #16 · jollygoodcode/jollygoodcode.github.io
This thread discussion might provide some insight into manually increasing the mysql max_connections option / setting manually and overriding Amazon's AWS "sensible" defaults.
github  forum  aws  amazon  howto  override  change  mysql  database  db  option  variable  max_connections  setting  totry  example  guide  reference 
april 2018 by racl101
Error: duplicate listen options for [::]:443 · Issue #5550 · certbot/certbot
This happened to me when I tried to create an SSL certificate for two virtual hosted sites that share the same top level domain but have different subdomains and their www versions.

E.g. site1.myawesomesite.com and site2.myawesomesite.com (and their www versions www.site1.myawesomesite.com and www.site2.myawesomesite.com )

TLDR:

change listen [::]:443 ssl ipv6only=on; to listen [::]:443;
github  forum  letsencrypt  ssl  certificate  ubuntu  ubuntu16.04  howto  troubleshoot  fix  duplicate  listen  options  error  virtualhost  example  guide  reference 
march 2018 by racl101
PHP 5.6 error on vagrant provision · Issue #625 · laravel/homestead
vagrant destroy && rm -rf .vagrant && vagrant up

This is actually a missing step from Laravel's Homestead, updating vagrant box documentation. Know that it will delete all your databases so back them up.
github  forum  laravel  homestead  issue  php-fpm  service  provision  vagrant  box  destroy  howto  troubleshoot  guide  reference 
february 2018 by racl101
« earlier      
per page:    204080120160

related tags

$_SERVER  $_SERVER['PHP_SELF']  1.11  1.12  absolute  acceptance  access  account  ACer  acf  Action  Actionmailer  Activity  add  added  addimage  addon  address  addresses  Adgroup  admin  administration  advanced-custom-fields  Adwords  ajax  ajv  alias  all  allowance  amazon  ampersand  Analytics  angular  angular-cli  Angular.copy  Angularjs  animate.css  Animation  ansible  Apache  api  app  apple  Appletv  application  apt  architecture  archive  Array  art  article  artisan  asset  assetbuilder  assets  assign  assignment  at  athenticated  atom  attack  attribute  audio  audiojs  auth  authenticate  authentication  authenticator  authorization  auto  autoload  automatic  available  aws  babelify  backend  balance  balancer  based  bb  bbpress  bearer  best  bestpractices  between  billing  bind  binding  Bitbucket  bitnami  Blacklist  blacklisted  blog  body  body_class  book  boolean  bootstrap  bootstrap-select  bootstrap3  bower  box  boxfile  branch  breadcrumb  break  Brew  browser  browsers  bug  bugfix  Bugsnag  build  builder  Bundler  button  by  cache  caching  calendar  callback  canada  cancel  capabilities  capital  carbon  Card  career  cashier  casting  caveat  Caveats  cdn  certain  certbot  certificate  change  channel  character  charge  charts  check  checkbox  chef  chrom  chrome  chromium  chunking  ci  class  classes  classical  clause  cli  click  client  Cloud  cloudsites  cms  cocoa  code  codeception  codeigniter  codes  codesniffer  coding  collapse  collection  collective  column  command  commandline  community  compatibility  compilation  compile  completion  component  compose  composer  composer.json  composer.lock  concatenation  conditional  config  configuration  connection  connector  cons  console  constants  consumer  contact  contactform7  container  contains  context  controller  controlpanel  conversation  convert  cookies  copy  copying  cost  count  country  cp  Create  created_at  Createfromformat  creator  Credential  credentials  crm  csrf  css  csv  cURL  cURLopt_ssl_verifypeer  currency  custom  custom-post-type  customer  customize  customizer  customposttypes  daemon  dangling  data  database  datatables  date  datetime  db  dbal  debugging  declaration  Deepcopy  default  Deluge  dependencies  dependency  deploy  deployment  design  destroy  detach  detached  details  detection  determine  dev  developer  development  device  difference  differences  different  digitalocean  directory  Dirpaginate  disable  discussion  disk  display  distinction  docker  docker-compose  docker-machine  dockerfile  doctrine  documentation  domain  donation  down  download  drive  driver  drop  dropbox  dropdown  drupal  dump  dump-autoload  duplicate  dvi  dynamic  ecommerce  edit  editor  ee2  elastic  elb  Elixir  ellislab  eloquent  email  emptiness  enable  enclosures  encoding  entries  entrust  entry  environment  envoy  error  errors  es6  es2016  escaping  event  eventbrite  events  eventscalendar  example  exception  exceptions  exercises  expired  explanation  expressionengine  ext-dom  extend  extension  external  extract  facade  FAker  FAQ  fatal  feature  features  feed  Fido  field  file  files  filter  filtering  filters  fire  firefox  firewall  fix  float  floatingpoint  folder  folders  FollowSymLinks  font  fontawesome  fonts  force  form  format  forms  forum  forums  found  fpm  fractal  free  from  front  fuelphp  fun  function  functional  functionality  functions  gem  get  get_template_directory_uri  gform_paypal_query  Gist  git  github  global  Gmail  goals  google  gotcha  graphic  graphics  gravityforms  greengeeks  groups  Guard  guest  guide  Gulp  halt  handle  handler  hard  hasmany  hdmi  headless  help  helper  hide  Homebrew  homepage  homestead  hook  host  hostname  howto  html  HTML5  htmlentities  http  ID  ide  idenity  identifiers  identify  ideology  if  image  images  Imessage  implement  implementation  import  in  increase  increment  index  index.html  individual  information  injection  inkscape  input  install  installation  installed  installing  integrate  intended  interactive  interesting  interpreter  invalid  invitation  ioc  ip  ipaddress  iphone  issue  issues  is_page_template  Item  iterm  iterm2  Itself  itunes  itunes11  javascript  jeffreyway  jetbrains  jquery  jshint  json  jsx  justin-tadlock  jwt  key  keyboard  keywords  kitchen  lang  language  laracasts  laradock  laravel  laravel-mix  Laravel3  laravel4  laravel4.2  laravel5  laravel5.2  laravel5.3  laravel5.4  laravel5.5  later  leading  least  length  letsencrypt  library  license  Lifetime  limit  line  Link  linode  linter  linux  liquid  list  listen  listing  load  loading  local  location  log  logged  logging  Logic  login  long  loop  loss  lost  lts  lumen  lumen5.4  mac  macbookpro  machine  macos  macosx  macosx10.6  macox  macro  mail  maintainer  maintenance  manager  manifest  manual  manually  mariadb  mass  match  math  max_connections  members  memory  menu  merits  meslo  messages  method  Middleware  migration  migrations  mime  mimetype  minimum  mismatch  missing  mitm  mix  mobile  modal  mode  model  models  moderntribe  module  mod_rewrite  money  monitor  Moz  multi  multiple  multitanancy  multitenancy  multitenant  myFitnesspal  mysql  Mysql2  mysql5  n/a  name  nav  navigation  navxt  negative  neon  neoncrm  network  new  newbie  newline  newrelic  nginx  no  node  nodejs  node_modules  non-compound  none  not  notes  notification  notifications  Notprovided  Np  npm  number  numbers  nvm  oauth  object  objective-c  objectivec  objects  obtain  of  ohmyzsh  old  ondrej  opensource  openssl  option  optional  options  or  order  organization  orm  orwherein  osx  outlook  output  outside  Overloaded  override  package  packages  pad  page  paginate  pagination  pagoda  pagodabox  parent  parser  parsing  pass  password  patch  path  pattern  payment  paypal  pdo  pear  peer  permalink  permission  php  php-fpm  php-gd  php-xml  php.ini  php5  php5.6  php7  php7.0  php7.0-xml  php7.2  phpcs  phpstorm  phpunit  phrase  pip  pivot  playbook  player  Plublish  plugin  POdcast  POdio  pool  port  positive  POST  post-type  postgres  postman  practices  precision  preferences  prefix  Prepaid  pro  problem  product  products  programmatically  programming  project  prompt  props  pros  provider  province  provision  proviso  Ps4  public  publish  published_at  puppeteer  purchasing  purge  python  python3  quantity  quantum  query  question  questions  queue  quicksilver  Rackspace  rackspacecloud  Rails  reactjs  ready  recently  recognition  reconnect  record  recording  recurring  redcap  redirect  redirection  redis  reference  reference.  referrer  refresh  regex  relation  relationship  relative  releases  Reload  Remote  remove  render  renew  rental  replacement  report  repository  request  require  required  reset  resources  response  rest  restart  restful  resume  return  reveal  revision  rewrite  ringtone  robots.txt  roles  root  roots  route  routes  rows  rspec  RSS  rubyonrails  rubyonrails4.2.0  run  runtime  S3  saas  SAge  sass  save  saving  schema  script  search  secret  secret.yml  section  security  seeder  seeding  select  selenium  self  send  sendmail  separator  separators  sequel  serve  server  servers  service  session  set  setting  settings  setup  shell  shop  shopify  shopifyuniversity  shortcuts  show  showing  side  sidebar  signed  Simcard  simplepie  single  site  size  sizeof  slate  smtp  snappy  sniff  sniffer  snowleopard  social  sock  software  solution  sort  sorting  Source  spam  specific  spinner  ssl  Stack  stackexchange  stackoverflow  staging  stalled  standalone  start  statement  stop  stopwords  storage  store  streaming  string  Stripe  stuck  styles  subform  Sublime  Sublimetext  Sublimetext3  submission  submit  SUBSTRING  suggestion  super  supercache  support  Surveys  svg  symbolic  symboliclink  symbols  symlink  syntax  sysadmin  system  tab  table  tables  tag  tags  task  taxes  template  templates  tenant  term  terminal  test  testing  tests  text  textmate  theme  themes  THOUSAND  thread  thrown  timeout  timeouts  timestamp  timezone  Tinker  to  tocheckout  tofix  token  tokenmismatchexception  tolearn  tool  tools  toread  toString  totry  touch  tounderstand  trailing  traits  transcoder  transcoding  transfer  transferring  transmit  trigger  troublehshoot  troubleshoot  troubleshooting  tutorial  twitter  twitterwidgetpro  tymon  type  ubuntu  ubuntu14.04  ubuntu16.04  ubuntu18.04  ufile  ufw  uiv  unauthenticated  unit  unittest  universal  university  unix  Unverified  up  update  updates  upload  uploads  url  usage  use  user  usergroup  username  users  utf8mb4  utility  vagrant  Vagrantbox  Valid  validation  validator  value  vanilla  variable  variables  vbscript  vector  vendor  verify  version  video  view  virtual  virtualbox  virtualhost  virtualmachine  visualbasic  volume  volumes  vpc  vue  vue-charts  vue-spinner  vue-template-compiler  vue2  vuejs  vuetables2  vulnerability  w3c  wd  web  webdesign  webdev  webkit  webpack  webroot  website  weight  weightloss  westerndigital  where  wherein  whitespace  whoops  widget  with  wkhtmltopdf  woocommerce  Word  wordpress  WordPress4.7.1  words  work  workaround  worker  working  Wowza  WP  WP4.7.1  wpadmin  wpdb  wrap  writeable  wysihtml5  wysiwyg  Xcache  xcode  Xcode-select  XML  yaml  z-index  zero  zeroes  zip  zizaco  zoho  zsh 

Copy this bookmark:



description:


tags: