This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install dcraw | |
# convert CR2 to PPM | |
for i in *.CR2; do dcraw $i; done | |
# convert PPM to JPG | |
for i in *.ppm; do convert $i $(basename $i .ppm).jpg; done | |
# remove intermediate PPM files | |
rm *ppm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebServlet(urlPatterns = "/*", loadOnStartup = 1) | |
public class DispatcherServlet extends HttpServlet { | |
private Map<String, Method> uriMappings = new HashMap<>(); | |
@Override | |
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { | |
System.out.println("Getting request for " + req.getRequestURI()); | |
var uri = req.getRequestURI(); |