Site uses cookies to provide basic functionality.
Javascript rendering is set to off by default when visiting the site via .onion and .i2p domains. It can be enabled back again in user's settings section. Javascript rendering set to off means, that you can disable javascript in your browser now and the site will remain functional.
There is also IRC server now available via native IRC clients or non javascript web based one.
Fonts can be adjusted in user's settings section as well.
Check FAQ for more.

OK

Lately, I was trying to create a form for one of my models which had a required boolean attribute. The model class Foo < ActiveRecord :: Base validates_presence_of :a_flag end The form

Foos#new

<%= form_for @foo do | form | %> <% if @foo . errors %> <% @foo . errors . full_messages . each do | message | %> <%= message %>
<% end %> <....

UPDATE : I created a gem to cover the functionality of this post. Visit its homepage here . I was working on my application and I wanted to write some RSpec tests for some controllers having before_filter for some actions. I didn’t want to explicitly test the behaviour of the filter since it was already tested in another context. I only wanted to test that it is being executed. Let’s assume that this is our controller: class Fo....

Lately, I was trying to create a form for one of my models which had a required boolean attribute. The model class Foo < ActiveRecord :: Base validates_presence_of :a_flag end The form

Foos#new

<%= form_for @foo do | form | %> <% if @foo . errors %> <% @foo . errors . full_messages . each do | message | %> <%= message %>
<% end %> <....

UPDATE : I created a gem to cover the functionality of this post. Visit its homepage here . I was working on my application and I wanted to write some RSpec tests for some controllers having before_filter for some actions. I didn’t want to explicitly test the behaviour of the filter since it was already tested in another context. I only wanted to test that it is being executed. Let’s assume that this is our controller: class Fo....

Lately, I’ve been trying to find possible memory leaks in a rails 3.2.x application. NOT easy, believe me… Anyway, after visiting almost every single result from googling rails memory leak , I learned something I didn’t know. Symbols in ruby never die. ( Update 2016: No more the case for the latest ruby versions) . Given that, I wrote some code to track the creation of symbols in the application by rendering a debugging kind of panel....



This weekend I spent some time migrating my Minecraft server a good 700 miles closer to my house. The new server is ~30 milliseconds closer. If you play games, you probably know how huge that can be. So, how did I move data to the new server? FTP, right? No. Definitely no. Why not FTP? FTP is plain-text Unless you're using something like FTPS, you'll be sending your server credentials across the wire in plain text, so anyone sitting between..

Once again, another great photo essay from Gear Patrol, this time on the Cascade Mountains rather than South Africa’s Sabi Sands game reserve . I’ll add this to the ever-growing list of places I would love to visit. Someday, always someday. Permalink.

Introduction It is idiomatic in Go to use the error interface type as the return type for any error that is going to be returned from a function or method. This interface is used by all the functions and methods in the standard library that return errors. For example, here is the declaration for the Get method from the http package:   Listing 1.1

This Week in Podcasts - zacs.site - 11 years ago - eng
Another week has gone by, made all the better with a few great podcasts. This time around, Roderick on the Line makes another appearance, and is accompanied by a great episode of Systematic and a fantastic episode of Zac & Co. Enjoy. Permalink.


Last Friday night I attended what was apparently the first ever Laravel Meetup in Sweden. I’m glad I actually made myself go, because I’m not really good with social engagements. I don’t tend to go out much and sometimes end up just not bothering and staying home at the last minute.

I previously showed you how to Load a Github Gist with Composer, but sometimes you need to install code that isn't isn't even in a public facing VCS. I for instance wanted to use a library only distributed by Zip. It's actually fairly easy! In your composer.json file, you simply add a repositories section to the root. You will want to update the url section to point at the remote zip you intend to load, as well as updating the name an..

I previously showed you how to Load a Github Gist with Composer, but sometimes you need to install code that isn't isn't even in a public facing VCS. I for instance wanted to use a library only distributed by Zip. It's actually fairly easy! In your composer.json file, you simply add a repositories section to the root. You will want to update the url section to point at the remote zip you intend to load, as well as updating the name an..

Swift Pitfalls - peanball.net - 11 years ago - deu

I just patched puppet-gluster and puppet-ipa to bring their infrastructure up to date with the current state of affairs… What’s new ? Better README's Rake syntax checking (fewer oopsies) CI (testing) with travis on git push (automatic testing for everyone) Use of  .pmtignore to ignore files from puppet module packages (finally) Pushing modules to the forge with blacksmith (sweet!) This last point deserves another mention...

I just patched puppet-gluster and puppet-ipa to bring their infrastructure up to date with the current state of affairs… What’s new ? Better README's Rake syntax checking (fewer oopsies) CI (testing) with travis on git push (automatic testing for everyone) Use of  .pmtignore to ignore files from puppet module packages (finally) Pushing modules to the forge with blacksmith (sweet!) This last point deserves another mention...

I've been using tmux for a while, and even though I didn't like it at first, now I'm in love with it. I'm mostly using it as a GNU Screen alternative, but I don't use some of its fancy features like tabs, mainly because my window manager takes care of multiple terminal windows for me.

Another article courtesy of the folks over at Gear Patrol, this time a photo essay after a trip to South Africa’s Sabi Sands Game Reserve. I spent three months in South Africa a number of years ago, and hours upon days trolling through an adjacent park (Kruger National Park, for those curious), but only managed to see a fraction of the sights the folks did here. Even then, though, I have no complaints: Africa was full of majesty everywhere ..

The recent surge in attention to searchcode from the Windows 9/10 naming fiasco resulted in a lot of questions being raised about searchcode’s policy about free software (open source). While the policy is laid out on the about page some have raised the issue of the ethics about using such a website which is not 100% free (as in freedom). For the purposes of the rest of this post “free software” is going to refer to software defined as n..

The first commandment that any young programmer learns is “Thou Shall Not Duplicate”. Thus instructed, whenever we see something that looks like it may be repeated code, we refactor. We create libraries and frameworks. But removing duplication doesn’t come for free. If I refactor some code so that instead of duplicating some logic in Class A and Class B, these classes share the logic in Class R (for reuse!). Now Classes A and B are indirect..

Sol Orwell is the co-founder of Examine.com, an independent encyclopedia for supplement and nutrition information.


You really can't be serious about building websites these days they're not optimised for mobile so it was high time I grok-ed the key concepts of responsive design.

Although I started out confident in Coin’s eventual success , I have since made no bones about my distaste for their questionable methodologyy , business model , and apparent inability to meet deadlines . Burn me once, shame on you; burn me twice, though, shame on me: I’m hesitant to get behind Plastc given the apparently insurmountable challenges of this space, but that won’t stop me from wishing them success. At this point, I just wan..

Event queues - liza.io - 11 years ago - eng
The brain thing is really getting out of control. Yesterday I ran into this problem: Fatal error: Maximum function nesting level of '100' reached, aborting!

C++ bookmarks - xenodium.com - 11 years ago - eng
Additional C/C++ Tooling . C++ Best Practices . C++ Core Guidelines . cppreference.com . Fast directory listing . FunctionalPlus: helps you write concise and readable C++ code . GitHub - mozilla/rr: Record and Replay Framework (debugging) . Modern C | Hacker News . Modern C++: Variadic template parameters and tuples . My favorite C compiler flags during development | Hacker News . My Most Important C++ Aha! Moments…Ever . Program..

In a day and age before ubiquitous personal drones roamed the skies, capturing incredible footage of active volcanoes, for example , filmmakers had no choice but to climb into planes and film those breathtaking views themselves. Harrison Sanborn found some of this footage in his father’s archives, digitized the film, and turned the result into a neat three minute video on Vimeo. There’s a certain quality to this footage that newer, digit..

An incredible, remarkably powerful story by Alan Heathcock that seeks to lay the harsh realities of drought to bear with a painful, hard-hitting story of good people who have lost everything for lack of one sample necessity: water. This article ought to be a prerequisite for forming any opinions on sustainability whatsoever. Permalink.

Reducing code complexity though conventions and stop services and controllers turning into a dumping ground for core logic

Practical Foxhunting 101 Adam Wirth (SimonJ) COMMUNICATIONS SYSTEMS ENGINEER, MASTERPEACE SOLUTIONS LTD The basic skills needed to quickly locate wireless emitters are easy to learn and no special equipment is required. Despite this, relatively few people have the know-how to put their equipment to work locating emitters as part of penetration testing, RF environment mapping, or tracking their geriatric neighbors using the emanations fr....

Extra Materials are available here: https://www.defcon.org/images/defcon-22/dc-22-presentations/Valtman/DEFCON-22-Nir-Valtman-Extras-Bug-Bounty-Programs-Evolution.zip Bug Bounty Programs Evolution Nir Valtman ENTERPRISE SECURITY ARCHITECT Bug bounty programs have been hyped in the past 3 years, but this concept was actually widely implemented in the past. Nowadays, we can see big companies spending a lot of money on these programs, wh....

Anatomy of a Pentest; Poppin' Boxes like a Pro PushPin Are you excited about hacking and want to be a pentester in the next few years? Let this talk be your guide in understanding what is required to effectively assess a network and all of its associated components. We’ll review subjects ranging from assessment toolsets, environment configurations, timelines, what to do when you’ve accidentally brought down the entire finance department....

Android Hacker Protection Level 0 Tim Strazzere LEAD RESEARCH & RESPONSE ENGINEER Jon Sawyer CTO OF APPLIED CYBERSECURITY LLC Obfuscator here, packer there - the Android ecosystem is becoming a bit cramped with different protectors for developers to choose. With such limited resources online about attacking these protectors, what is a new reverse engineer to do? Have no fear, after drinking all the cheap wine two Android hackers have ....

An Introduction to Back Dooring Operating Systems for Fun and Trolling Nemus SECURITY RESEARCHER So you want to setup a back door? Have you ever wondered how its done and what you can do to detect back doors on your network and operating systems? Ever wanted to setup a back door to prank a friend?. This presentations will do just that. We will go over the basics of back doors using SSH, NET CAT, Meterpreter and embedding back doors into....

ShareEnum: We Wrapped Samba So You Don’t Have To Lucas Morris MANAGER, CROWE HORWATH Michael McAtee SENIOR CONSULTANT, CROWE HORWATH CIFS shares can tell you a lot about a network, including file access, local administrator access, password reuse, etc.. Until now most people have relied on add-ons to scanning tools to implement Microsoft’s complicated network APIs. Some tools wrap existing clients, such as smbclient, or use RPC calls;....

Touring the Darkside of the Internet. An Introduction to Tor, Darknets, and Bitcoin Metacortex SECURITY RESEARCHER Grifter SECURITY RESEARCHER This is an introduction level talk. The talk itself will cover the basics of Tor, Darknets, Darknet Market places, and Bitcoin. I will start by giving the audience an overview of Tor and how it works. I will cover entry nodes, exit nodes, as well as hidden services. I will then show how you con....

USB for all! Jesse Michael SECURITY RESEARCHER Mickey Shkatov SECURITY RESEARCHER USB is used in almost every computing device produced in recent years. In addition to well-known usages like keyboard, mouse, and mass storage, a much wider range of capabilities exist such as Device Firmware Update, USB On-The-Go, debug over USB, and more. What actually happens on the wire? Is there interesting data we can observe or inject into these o....

RF Penetration Testing, Your Air Stinks RMellendick (RICK MELLENDICK) DaKahuna (JOHN FULMER) The purpose of this talk is to discuss the effective radio frequency (RF) tools, tactics, and procedures that we recommend security professionals use when performing a repeatable RF penetration test. This talk will cover the fundamental processes used to identify the RF within the environment, identify the vulnerabilities specific to that envi....

One Man Shop: Building an effective security program all by yourself Medic (TIM MCGUFFIN) At past DEF CON events, including DEF CON 101, most of the attendees we’ve encountered were either new to the field of security or had security functions in their job description on top of other job duties such as system administration or programming. The purpose of this talk, which is based on real world experiences, is to introduce a multi-year a....

Additional Materials available: https://www.defcon.org/images/defcon-22/dc-22-presentations/McGrew/DEFCON-22-Wesley-McGrew-Instrumenting-Point-of-Sale-Malware-WP.pdf Instrumenting Point-of-Sale Malware: A Case Study in Communicating Malware Analysis More Effectively Wesley McGrew ASSISTANT RESEARCH PROFESSOR, MISSISSIPPI STATE UNIVERSITY The purpose of this talk is to promote the adoption of better practices in the publication and ....

Meddle: Framework for Piggy-back Fuzzing and Tool Development Geoff McDonald ANTI-VIRUS RESEARCHER AT MICROSOFT Towards simplifying the vulnerability fuzzing process, this presentation introduces a moddable framework called Meddle that can be used to piggy-back on existing application’s knowledge of protocol by performing piggy-back fuzzing. Meddle is an open source Windows x86 and x64 user-mode C# application that uses IronPython plugi....

Home Alone with localhost: Automating Home Defense Chris Littlebury SENIOR PENETRATION TESTER, KNOWLEDGE CONSULTING GROUP, INC. Home automation is everywhere, and so are their exploits. This presentation will go over a brief history of home automation techniques, cover modern technologies used today, detail some of the current exploits used against modern automation and security systems, and give examples on how to defend against them. ..

27 visitors online