recentpopularlog in

racl101 : number   78

How to check if a number is divisible by another number in Shopify - Shopify Tips
Good example showing how to get the remainder (modulo division) in a shopify template using Liquid. Useful for doing smart grid layouts.
blog  tutorial  howto  example  divisible  check  number  remainder  modulo  guide  reference  shopify  liquid  syntax  theme  development  grid  layout 
august 2018 by racl101
Intl.NumberFormat - JavaScript | MDN
This can be used to create number filtering functions to convert them to currency formatted strings.

Like so: https://stackoverflow.com/a/48550430
mozilla  mdn  documentation  guide  reference  international  number  format  currency  toread  tolearn  totry  tounderstand  string 
may 2018 by racl101
MySQLdb User's Guide
I don't get it, but I guess you're supposed to use %s as a placeholder even for integers (so not %d) in a query string that is used in a cursor.execute() statement. I tried it with pymysql. I'm not sure why, but it worked.

This is the explanation: In this example, max_price=5 Why, then, use %s in the string? Because MySQLdb will convert it to a SQL literal value, which is the string '5'. When it's finished, the query will actually say, "...WHERE price < 5".
mysql-python  howto  troubleshoot  cursor  mysql  pymysql  query  python  python2.7  string  format  number  error  fix  guide  reference  examples 
april 2018 by racl101
mysql - MySQLdb Python insert %d and %s - Stack Overflow
I don't get it, but I guess you're supposed to use %s as a placeholder even for integers (so not %d) in a query string that is used in a cursor.execute() statement. I tried it with pymysql. I'm not sure why, but it worked.
stackoverflow  howto  troubleshoot  cursor  mysql  pymysql  query  python  python2.7  string  format  number  error  fix  guide  reference 
april 2018 by racl101
insertion - Python MySQLdb issues (TypeError: %d format: a number is required, not str) - Stack Overflow
I don't get it, but I guess you're supposed to use %s as a placeholder even for integers (so not %d) in a query string that is used in a cursor.execute() statement. I tried it with pymysql. I'm not sure why, but it worked.
stackoverflow  howto  troubleshoot  cursor  mysql  pymysql  query  python  python2.7  string  format  number  error  fix  guide  reference 
april 2018 by racl101
PHP: is_numeric - Manual
To convert a numeric string into its number representation (int string to int, float string to float) do this:

if(is_numeric($var)) {
$var = ($var + 0)
}
PHP  is_numeric  Manual  Guide  ReferencE  Documentation  Check  boolean  number  cast  int  float 
may 2016 by racl101
newbie :: Convert integer to string in Ruby - Ruby Forum
How to convert number to string. Use .to_s method on object.
convert  number  String  Howto  Ruby 
september 2015 by racl101
Twitter Help Center | Adding your mobile number to your account
Necessary for creating an app in Dev Panel that needs reads and write access
twitter  Guide  Reference  howto  mobile  number  Documentation  Tutorial 
may 2014 by racl101

Copy this bookmark:





to read