Git: Cheat Sheet
July 2nd, 2009 by jeremychone | No Comments »Branch
List local and remote branches
git branch -a
See also
- Git User Manual
- Git Magic Doc & Tutorial
- Git Hub
- Git Cheat Sheet
- Git Cheat Sheet Extension
git branch -a
[#list doc["book/chapter[title='Ch1']/para"] as p]
<p>${p}</p>
[/#list]
See XPath Freemarker doc for more info.
var $first = $("#mySingleElement");
var $allLis = $("li");
//to add the $first to $allLis jQuery object
$allLis[$allLis.length++] = $first.get(0)
I know, kind of ugly, but did not find a better way.
See also: how-to-add-elements-to-a-jQuery-object-without-copying-it

$("#feeds").load("feeds.php", {limit: 25}, function(){
alert("The last 25 entries in the feed have been loaded");
});
$('<div/>').text('This is fun & stuff').html();
<ul>
<li>Milk</li>
<li>Bread</li>
<li class='fade'>Chips</li>
<li class='fade'>Socks</li>
</ul>
$("li").hover(
function () {
$(this).append($(" ***"));
},
function () {
$(this).find("span:last").remove();
}
);
<bean id="inheritedTestBean" abstract="true"
class="org.springframework.beans.TestBean">
<property name="name" value="parent"/>
<property name="age" value="1"/>
</bean>
<bean id="inheritsWithDifferentClass"
class="org.springframework.beans.DerivedTestBean"
parent="inheritedTestBean" init-method="initialize">
<property name="name" value="override"/>
<!-- the age property value of 1 will be inherited from parent -->
</bean>
If you try to drop a table that has some foreign keys, you will get an exception.
mysql> SET foreign_key_checks = 0; mysql> drop table ... mysql> SET foreign_key_checks = 1;
Basically, it is a 3G band issue. TMobile & AT&T Wireless do not use the same 3G bands (AT&T Wireless does not use use the conventional ones). G2/HTC-Magic was built for TMobile.
The G2/HTC-Magic 3G Network HSDPA 900 / 2100
AT&T Wireless uses 850mhz(the old TDMA band) and 1900mhz for 3G.
Here is a great post about the TMobile/ATTW 3G band issue.
Ho, well, it was too good to be true. Edge is still not that bad, at least for email/calendar and even Map.