サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
2024年ランキング
coderwall.com
Today's web applications are facing all kind of security intrusions commonly derived from Password cracking attacks. The user itself could even write the password somewhere accessible to untrusted parties making it easy for identity thieves access private information or worst, take over the user account. One of the most effective ways to address this situation is requiring additional secrets that
Prednisone cheap order - Discount 70% ? prednisone hair growth Buy Prednisone online overnight LINК === http://all-pillsforyou.ml/Prednisone.htm ==== Prednisone cheap order. prednisone hair growth Many payment options: Bitcoin, Visa, MasterCard, eCheck, Amex, Wire transfer etc. All orders, no matter of the order amount are granted a 10% discount. buy prednisone online for humans prednisone yellow
Help Buy Nuvigil Bitcoin LINК === http://all-pillsforyou.ml/Nuvigil.htm ==== Buy discount Brand Nuvigil. nuvigil medscape Many payment options: Bitcoin, Visa, MasterCard, eCheck, Amex, Wire transfer etc. All orders, no matter of the order amount are granted a 10% discount. nuvigil skin rash nuvigil and pregnancy nuvigil liver damage nuvigil limitless pill nuvigil reviews reddit nuvigil crash nuvig
Alprazolam cheap order LINК === http://all-pillsforyou.ml/Alprazolam.htm ==== Alprazolam no prescription. alprazolam 2 mg Many payment options: Bitcoin, Visa, MasterCard, eCheck, Amex, Wire transfer etc. All orders, no matter of the order amount are granted a 10% discount. alprazolam brand buy alprazolam 2mg alprazolam online alprazolam 3 mg alprazolam prices 1 mg alprazolam alprazolam pill alpraz
Zithromax Bitcoin online - Discount 70% : zithromax suspension Safely buy Zithromax online overnight LINК === http://all-pillsforyou.ml/Zithromax.htm ==== Zithromax Bitcoin online. zithromax suspension Many payment options: Bitcoin, Visa, MasterCard, eCheck, Amex, Wire transfer etc. All orders, no matter of the order amount are granted a 10% discount. buy zithromax zithromax one dose zithromax not
5 responses · 2fa, sms verification, phone verification, one-time password
I've recently been working on a few RESTful API's using Rails. One of the problems that I keep seeing with end users is that they usually don't read the documentation very well and make simple mistakes when making specific requests and queries. This is easily solved with error handling and validation of the API. There are a few gems out there that will handle this sort of situation for you, but th
dumpdata command It is a django management command, which can be use to backup(export) you model instances or whole database dumpdata for basic database dump Following command will dump whole database in to a db.json file ./manage.py dumpdata > db.json dumpdata for backup specific app Following command will dump the content in django admin app into admin.json file ./manage.py dumpdata admin > admi
How can we know when our app have a piped stdin or not? os.Pipe is a os.File so we can use File.Stat() which return a os.FileInfo and we can use FileInfo.Size() to see if there is any data available to read. package main import ( "os" "fmt" ) func main() { fi, err := os.Stdin.Stat() if err != nil { panic(err) } if fi.Size() > 0 { fmt.Println("there is something to read") } else { fmt.Println("stdi
Pagination? No problem! SELECT ... LIMIT X, Y Right? Hah! Not quite! You see, your pagination logic is not stable; and that matters quite a bit in this ajaxy, client-appy, infinite-scrolly world. TL;DR? Don't paginate on row offset. Find a stable value to paginate on, like an item's date. Always deduplicate list items on the client side. Never trust your server to know exactly what the user is loo
If you have faced the error on MacOS X, here's the quick fix - add these lines to your ~/.bash_profile: export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8
Google AMP is here. And it's great! AMP is a new standard to create faster mobile pages, built on top of HTML, that allows instant page load. How to setup an AMP page for user generated articles in Rails? Here's my tutorial! First of all, I created an example repository here. I'm using it as reference for this article. Introduction Let's start with a Model! In my example we have an Article model,
Problem You built a REST API server using Rails and you need to document and test the endpoints. The Setup Let's assume the following: REST endpoint: /api/v1/posts Rails controller: app/controllers/api/v1/posts_controller.rb Steps 1 - Add the following to the Gemfile and run bundle afterwards. # Swagger gem 'swagger-docs' $ bundle 2 - Say you decide to structure your REST path in the following for
There’s a known problem in server configuration and deploying, when you have to store your private data such as: database passwords, application secret-keys, OAuth secret keys and so on, outside of the git repository. Even if this repository is private, it is a security risk to just publish them into the world wide web. What are the drawbacks of storing them separately? These files are not version
I had a requirement today where I needed to install node.js from source in a custom location (/opt/node) on an ubuntu host. Compiling it from source on the target hosts (though not the ideal way to go about things), wasn't a problem at all - and everything went smoothly. Unfortunately, turns out that the global npm packages installed from this custom location like to use #!/usr/bin/env node as the
Deploying Rails app using Nginx, Puma and Capistrano 3 This guide is an alternative to James Dullaghan's Deploying Rails app using Nginx, Unicorn, Postgres and Capistrano to Digital Ocean that I made for myself. This is the first time I'm working with Puma, so if I've missed something, or if there's something that can be done in a better way, please comment and let me know. Start by creating a Dro
I came up with this a while back in response to a question asked on Twitter. I just came across it after being asked about it again, yet I've never had a use for it myself. This will give you the SQL INSERT statement generated by ActiveRecord for the attribute values set on the model instance. record = Post.new(:title => 'Yay', :body => 'This is some insert SQL') # easiest way to achieve this is b
UIColorFromHex function There is no any default function to define UI colors with hex values in IOS Following swift function can be use to define colors with hex(RBG) values func UIColorFromHex(rgbValue:UInt32, alpha:Double=1.0)->UIColor { let red = CGFloat((rgbValue & 0xFF0000) >> 16)/256.0 let green = CGFloat((rgbValue & 0xFF00) >> 8)/256.0 let blue = CGFloat(rgbValue & 0xFF)/256.0 return UIColo
The problem rake assets:precompile can take up a large chunk of time of Rails application deploys with Capistano, even on deploys where the assets haven't changed! Other solutions to skip unnecessary asset precompilation seem to rely on Capistrano 2. The solution Make these changes in your deploy.rb file: Step 1: Set the locations to look for relevant changes to trigger a precompilation set :asset
Default activity indicator Following function will add default activity indicator to a view. func showActivityIndicatory(uiView: UIView) { var actInd: UIActivityIndicatorView = UIActivityIndicatorView() actInd.frame = CGRectMake(0.0, 0.0, 40.0, 40.0); actInd.center = uiView.center actInd.hidesWhenStopped = true actInd.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.WhiteLarge uiView.addS
It might seem nice and tidy to do this: # items/index.json.jbuilder json.items @items do json.partial! "item", item: item end # items/show.json.jbuilder json.item do json.partial! "item", item: @item end # items/_items.json.jbuilder json.cache! item do json(item, :id, :name, ...) end The templates are DRY and things are organized. But tucking the call to cache! into the _item partial is a performa
Summary In this protip I explain how to re-use CMake-enabled libraries within another CMake-enabled project when the former aren't installed in your system but in Github or in a subdirectory. Note: A pair of follow-ups to this solution exist: II and III. The problem Very often I make use of CMake-enabled libraries of mine in new projects. Very often as well, those libraries are not installed in my
package main import ( "fmt" "net" "os" ) const ( CONN_HOST = "localhost" CONN_PORT = "3333" CONN_TYPE = "tcp" ) func main() { // Listen for incoming connections. l, err := net.Listen(CONN_TYPE, CONN_HOST+":"+CONN_PORT) if err != nil { fmt.Println("Error listening:", err.Error()) os.Exit(1) } // Close the listener when the application closes. defer l.Close() fmt.Println("Listening on " + CONN_HOST
Change navigation bar color In order to change color of navigation bar for all view controllers, you have to set it in AppDelegate.swift file Add following code to didFinishLaunchingWithOptions function in AppDelegate.swift var navigationBarAppearace = UINavigationBar.appearance() navigationBarAppearace.tintColor = uicolorFromHex(0xffffff) navigationBarAppearace.barTintColor = uicolorFromHex(0x034
If you can't clone a repository with a "git://" url because of a proxy or firewall, here is a little git configuration that will force git to use "https://" even when you'll type "git://" URL. git config --global url."https://".insteadOf git:// With this command, it will add the following lines in you .gitconfig : [url "https://"] insteadOf = git:// That way, you don't have to care about using "gi
Simple timing in golang Sometimes you just want to do some quick and dirty timing of a code segment. A simple way to time execution in Golang is to use the time.Now() and time.Since() functions: func main() { start := time.Now() r := new(big.Int) fmt.Println(r.Binomial(1000, 10)) elapsed := time.Since(start) log.Printf("Binomial took %s", elapsed) } You'll need to import the time package to use th
By default in iTerm 2, it's a pain to skip between words. Here's how you can configure iTerm 2 on OSX to allow you to use ⌥ ← and ⌥→ to do just that. First you need to set your left ⌥ key to act as an escape character. Second you need to either locate the current shortcut for ⌥ ← or create a new one, in the Profile Shortcut Keys, with the following settings: Keyboard Shortcut: ⌥← Action: Send Esca
@cbess CloudFrount CDN is not feature of S3! CloudFront can use S3 just as origin. For some reason CDN is not an option for certain business purposes, such data privacy, specific geo-location (if should not be replicated to another regions). @mikhailov Correct, S3 is not a CDN. However, my point was that you reduce the scalability by having all traffic diverge to your server. Meaning, you take on
1. Install xclip $ sudo apt-get install xclip 2. Configure Tmux Open up your Tmux configuration (typically at ~/.tmux.conf) and append: tmux version >= 1.8 bind -t vi-copy y copy-pipe "xclip -sel clip -i" Now when you copy some text, it will automatically be copied to OS clipboard. tmux version < 1.8 # copy & paste between tmux and x clipboard bind C-p run-shell "tmux set-buffer \"$(xclip -o)\"; t
次のページ
このページを最初にブックマークしてみませんか?
『A community of great programmers and their programming tips』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く