Skip to content

Instantly share code, notes, and snippets.

Fix to iOS iframe height issue
<iframe id="stupid-iframe" height="200" src="a-file.html"></iframe>
<html>
<body>
<div class="iframe-wrapper" style="width: 100%; height: 200px; overflow: auto; -webkit-overflow-scrolling: touch;">
</div>
</body>
<html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction
Remote Address:91.217.66.14:8180
Request URL:http://cn.infopulse.com.ua:8180/mobile/upload/?linkcode=c74f271b-d0d9-4d97-a613-a28a33294c78
Request Method:POST
Status Code:500 Internal Server Error
Request Headersview source
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,de;q=0.6,ru;q=0.4,uk;q=0.2
Cache-Control:no-cache
Connection:keep-alive
@bsalex
bsalex / buttons.js
Last active August 29, 2015 14:11 — forked from Wenqer/buttons.js
var React = require('react/addons')
var Button = React.createClass({
getInitialState: function() {
return {active:false}
},
click: function() {
this.setState({active: !this.state.active})
},
render: function() {
@bsalex
bsalex / gist:e22c0e66da0f20214366
Created July 23, 2014 20:45
Console command to renames all files and subdirectories replaceing spaces with "_" in their names
find . -name "*\ *" -type f -exec sh -c 'mv "{}" "`echo \"{}\" | sed \"s/ /_/g\"`"' \; && find . -depth -name "*\ *" -type d -execdir sh -c 'mv "{}" "`echo "{}" | sed "s/ /_/g"`"' \;