Posted by & filed under Webdev.

Online banking, webmail, shopping hacked and slurped in new crypto attack

Black Hat 2013 A new hacking technique dubbed BREACH can extract login tokens, session ID numbers and other sensitive information from SSL/TLS encrypted web traffic, say researchers.

Secret data crucial to securing online banking and shopping can be lifted from an HTTPS channel in as little as 30 seconds, we’re told.

BREACH (short for Browser Reconnaissance and Exfiltration via Adaptive Compression of Hypertext) attacks the common Deflate data compression algorithm used to save bandwidth in web communications. The exploit is a development of the earlier Compression Ratio Info-leak Made Easy (CRIME) exploit, which also involved turning compression of encrypted web requests against users.

original link

Posted by & filed under Webdev.

Easily Mock Up iOS 7 Apps & Interfaces with a Free iOS 7 GUI Template PSD

The designers at Teehan+Lax have built a complete iOS 7 GUI elements template, and are now offering it for free as a very functional PSD file. Everything is fully layered, well-labeled, and organized logically, making it an excellent tool to use for mocking up apps and concepts as they would appear natively in the completely redesigned iOS 7 interface.

Get the iOS 7 elements PSD here from Teehan+Lax

Posted by & filed under Webdev.

Bootstrap GUI PSD is a toolkit from RepixDesign designed to kickstart webdesign of webapps and sites.

It Includes all base elements layered in Photoshop for typography, buttons, grids, navigation, and more used in the original CSS3 Bootstrap v2 framework from Twitter. Use this Photoshop template to webdesign your webapps and websites in combination with the awesome Bootstrap framework

Features:

  • Adjustable colors
  • Separate layers
  • Vector based

Get PSD

Posted by & filed under Webdev.

На Google.Fonts нашел “модный” шрифт LOBSTER

Кстати довольная интересная вкладка Pairing в GF.
Google Fonts Download

Posted by & filed under Webdev.

В языке Python уже имеется несколько удобных встроенных функций, которые можно использовать как декораторы, но при этом мы также можем писать свои собственные декораторы.

class tracer:
	def __init__(self, func):
		self.calls = 0
		self.func = func
	def __call__(self, *args):
		self.calls += 1
		print(‘call %s to %s’ % (self.calls, self.func.__name__)) self.func(*args)

@tracer					# То же, что и spam = tracer(spam)
def spam(a, b, c): 		# Обертывает spam в объект-декоратор
	print a, b, c

spam(1, 2, 3) 			# В действительности вызывается объект-обертка
spam(‘a’, ‘b’, ‘c’) 	# То есть вызывается метод __call__ в классе
spam(4, 5, 6)			# Метод __call__ выполняет дополнительные действия # и вызывает оригинальную функцию

Декоратор класса может расширить функциональность самого класса или вернуть объект, который будет перехватывать последующие попытки конструирования экземпляров.

def count(aClass):
	aClass.numInstances = 0
	return aClass		# Возвращает сам класс, а не обертку

@count
class Spam: ...			# То же, что и Spam = count(Spam)

@count
class Sub(Spam): ...	# Инструкция numInstances = 0 не нужна здесь

@count
class Other(Spam): ...