I hereby claim:
- I am kdmukai on github.
- I am keithmukai (https://keybase.io/keithmukai) on keybase.
- I have a public key ASDUOmPehgibQKBnA-5CT2A-e-p8sIXkzj4tA38l71FVSwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.
$ sudo apt-get update
$ sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev
<html> | |
<body> | |
<style> | |
.page_overlay { | |
display: none; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; |
{% load url from future %} | |
<link href="{{ STATIC_URL }}css/facebook.css" type="text/css" rel="stylesheet" media="all" /> | |
{% include 'django_facebook/_facebook_js.html' %} | |
Register! | |
<form action="{% url 'facebook_connect' %}?facebook_login=1" method="post"> | |
<a href="javascript:void(0);" style="font-size: 20px;" onclick="F.connect(this.parentNode);">Login or register with facebook</a> | |
<input type="hidden" value="{% url 'my_post_registration_url' %}" name="register_next" /> |
{% extends 'visitor/_visitor_base.html' %} | |
{% block page_title %}About Us{% endblock %} | |
{% block page_headline_text %}About Us{% endblock %} | |
{% block page_content %} | |
This is the About Us text | |
{% endblock %} |
package com.essaytagger.web.user.administrator; | |
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.apache.tiles.TilesContainer; | |
import org.apache.tiles.servlet.context.ServletUtil; |
Cat oldCat = catDao.get(oldCatId); | |
Cat newCat = new Cat(); | |
newCat.setName("Whiskers"); | |
newCat.setOwner(oldCat.getOwner()); | |
catDao.save(newCat); // Causes Session conflict because Owner isn't initialized |
package com.essaytagger.server.impl; | |
import com.essaytagger.model.Comment; | |
import com.essaytagger.model.Essay; | |
import com.essaytagger.server.IEssayManagerExtensions; | |
import com.google.appengine.api.datastore.EntityNotFoundException; | |
import com.googlecode.objectify.Key; | |
/** | |
* Implementation class for any Essay-specific methods that aren't already handled by ObjectifyGenericDAO<T>. |
DocumentListEntry uploadedEntry = uploadFile("/path/to/your/file.doc", "TitleToUse"); | |
System.out.println("Document now online @ :" + uploadedEntry.getHtmlLink().getHref()); | |
public DocumentListEntry uploadFile(String filepath, String title) | |
throws IOException, ServiceException { | |
File file = new File(filepath); | |
DocumentListEntry newDocument = new DocumentListEntry(); | |
String mimeType = DocumentListEntry.MediaType.fromFileName(file.getName()).getMimeType(); | |
newDocument.setFile(new File(filepath), mimeType); | |
newDocument.setTitle(new PlainTextConstruct(title)); |