cat logfile.txt | grep -v "IgnoreThis\|IgnoreThat" | less
http://stackoverflow.com/questions/2338812/how-can-i-view-log-files-in-linux-and-apply-custom-filters-while-viewing
cat logfile.txt | grep -v "IgnoreThis\|IgnoreThat" | less
If you’re constantly testing ideas, even without having enough data, you’re quicker to get into the right path.
As Kris Gale, co-founder and CTO of Yammer said, “You will always make better decisions with more information, and you will always have more information in the future.” But the way to get more information is to iterate.
Built With
- React Native
- Redux
- Redux Storage (with async-storage engine for react native for application persistence)
- Firebase
"Performance is a feature. This book provides a hands-on overview of what every web developer needs to know about the various types of networks (WiFi, 3G/4G), transport protocols (UDP, TCP, and TLS), application protocols (HTTP/1.1, HTTP/2), and APIs available in the browser (XHR, WebSocket, WebRTC, and more) to deliver the best—fast, reliable, and resilient—user experience."
Hi! I’m Ruslan Spivak, a 36 year old Software Team Lead from Canada, and if you’ve ever asked yourself:
- “How do I create my own programming language?”
- “How does an interpreter, compiler, or VM work and how do I create one?”
- “How do I implement my own database and a small operating system?”
- “How do I code my own web server?”
- “How do I write my own web framework?”
Or if you’ve just wanted to know more about software development in general and how to become a better developer - then you are in the right place!Here’s the deal:I believe to become a better developer you MUST get a better understanding of the underlying software systems you use on a daily basis and that includes programming languages, compilers and interpreters, databases and operating systems, web servers and web frameworks. And to get a better and deeper understanding of those systems you MUST re-build them from scratch.
What is Serverless?
Like many trends in software there’s no one clear view of what ‘Serverless’ is, and that isn't helped by it really coming to mean two different but overlapping areas:
- Serverless was first used to describe applications that significantly or fully depend on 3rd party applications / services (‘in the cloud’) to manage server-side logic and state. These are typically ‘rich client’ applications (think single page web apps, or mobile apps) that use the vast ecosystem of cloud accessible databases (like Parse, Firebase), authentication services (Auth0, AWS Cognito), etc. These types of services have been previously described as ‘(Mobile) Backend as a Service’, and I’ll be using‘BaaS’ as a shorthand in the rest of this article.
- Serverless can also mean applications where some amount of server-side logic is still written by the application developer but unlike traditional architectures is run in stateless compute containers that are event-triggered, ephemeral (may only last for one invocation), and fully managed by a 3rd party. (Thanks to ThoughtWorks for their definition in their most recent Tech Radar.) One way to think of this is ‘Functions as a service / FaaS’ . AWS Lambda is one of the most popular implementations of FaaS at present, but there are others. I’ll be using ‘FaaS’ as a shorthand for this meaning of Serverless throughout the rest of this article.
| App Server | Throughput (req/s) | Latency in ms (avg/stdev/max) |
|---|---|---|
| Rack | 29208.81 | 3.13/0.348/13.28 |
| JRuby-Rack | 32331.47 | 0.99/0.598/44.34 |
| Plug | 33583.07 | 3.35/7.62/145.87 |
| Node Cluster | 47576.68 | 2.51/3.40/120.02 |
| Jetty | 52398.88 | 1.90/0.432/22.45 |
| ServeMux | 58359.97 | 1.70/0.315/18.63 |
| Crystal HTTP | 75159.45 | 1.33/0.270/6.02 |
Doug McIlroy, the inventor of Unix pipes and one of the founders of the Unix tradition, had this to say at the time [McIlroy78]:
(i) Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new features.
(ii) Expect the output of every program to become the input to another, as yet unknown, program. Don't clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don't insist on interactive input.
(iii) Design and build software, even operating systems, to be tried early, ideally within weeks. Don't hesitate to throw away the clumsy parts and rebuild them.
(iv) Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you've finished using them.
422 is returned by the Rails ActionController by default when a POST comes from another website outside your own web application. It's a security feature built in to prevent Cross-Site Request Forgery attacks.
bundle exec rake db:reset RAILS_ENV=test
:locals option if you're calling render from a controller. When calling render from a view, you would simply do this:= render 'meeting_info', :info => @info
Except when it comes to figuring out how much work it's going to take. In that case, without having done it before, all bets are off.This gives us another reason for doing those side-projects that never seem to take off. If we work on a side-project, then, when we encounter a similar problem at our day-job, we will be better positioned to give an estimate about the work. And for sure, we would be on that team that is going to do the project. So, this is how, you slide into the projects you want to work on. Hmm.. hopefully, I will act on this realization unlike all the previous instances of enlightenment..
FunScript is a lightweight F# library that lets you rapidly develop single-page applications.F# Data Library - http://fsharp.github.io/FSharp.Data/
$('input:radio[name=rblist"]').each(function(){ if ($(this).is(':checked')) { rb_value = $(this).val(); console.log("Selected rb value = " + rb_value); } });
some_int = 5
some_int.to_s.rjust(2, '0') # => '05'
some_int.to_s.rjust(5, '0') # => '00005'
2) It’s hard to make long term investments when Microsoft’s ever revolving door of new technologies continuously makes previous codebases obsolete. That climate makes both businesses and developers afraid to invest resources in potentially defunct technologies. Remember when WinForms was replaced by WPF? Only to be replaced by Silverlight? Then by Windows Phone apps? Which were replaced by Universal apps? Or what about how Web Services were replaced by WCF only to be replaced by Web API?And here is the reddit thread (where most people disagree with the article):
Excerpt:
Teaching computer science as a way of arranging reality rather than a way of arranging syntax or data structures—what's more appropriately known as programming or even coding—is among the arguments made by Thomas J. Cortina, a computer science professor at Carnegie Mellon, in a recent issue of ACM Communications. His general point, which is only sketched here, is that we should be aggressively advancing programs like CS Unplugged, which is a kid-focused curriculum of sorts developed by a group at the University of Caterbury in New Zealand, with a stated goal being the teaching of computational principles rather than programming and technical details. It's a great idea.
By being physically part of the solution to a problem as it is being solved, kids learn from observations and experiences.
Activity examples range from teaching data compression via rhymes, graph theory via mud, finite state automata via pirates, and so on. It's surprisingly deep given the target audience (though maybe algebra and trig would seem that way too if we weren't so used to it).