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
| Properties props = super.getJavaMailProperties(); | |
| super.setHost("mail.foo.com"); | |
| super.setPort(587); | |
| super.setUsername(USER); | |
| super.setPassword(PASS); | |
| props.put("mail.smtp.auth", "true"); | |
| props.put("mail.transport.protocol", "smtp"); | |
| props.put("mail.debug", "true"); | |
| props.put("mail.smtp.starttls.enable","true"); | |
| props.put("mail.smtp.starttls.required", "true"); |
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
| at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908) | |
| at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934) | |
| at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) | |
| at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) | |
| at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:354) | |
| at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415) | |
| at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:494) | |
| at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:162) | |
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:114) | |
| at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) |
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
| "For example, a melody functions in a harmonic climate. The chord that is being played is the harmonic climate - if it's an augmented chord it's a mysterious climate; if it's a diminished chord it's a little tenser; if it's minor it's serious; if it's major it's happy; if it's major seventh you're falling in love; if it's augmented 11th it's bebop. You know these are all established harmonic aromas that people recognize whether they do it consciously or not, that's what's built into you. So a melody functions against a harmonic climate in terms of what is the fractional delay between the time that you hit a note that is tension to that chord, to the the time that you hit a note which is inside the chord which creates the resolution - that's how melodies work. How many notes are you playing in your line that rub against the chord versus how many notes are inside the chord that takes the tension to rest. Your ear is computing that, ok?" -Frank Zappa |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| unsigned char *file_buf, bmp_buf[16000], cpc_buf[16000]; | |
| FILE *fp_in, *fp_out; | |
| unsigned int bmp_offset, bmp_size, file_size; | |
| int i; |
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
| public void beforePhase(PhaseEvent event) { | |
| if (event.getPhaseId() == PhaseId.RENDER_RESPONSE) { | |
| FacesContext facesContext = event.getFacesContext(); | |
| restoreMessages(facesContext); | |
| makeResponseCompatible(event); | |
| UIComponent root = facesContext.getViewRoot(); | |
| try { findPagerComponentAndReset(root); } catch(Exception e) {} | |
| } |
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
| !SESSION 2013-01-03 10:40:10.531 ----------------------------------------------- | |
| eclipse.buildId=unknown | |
| java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr10fp1-20120202_101568 (JIT enabled, AOT enabled) | |
| J9VM - 20120202_101568 | |
| JIT - r9_20111107_21307ifx1 | |
| GC - 20120202_AA | |
| BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=tr_TR | |
| Command-line arguments: -os win32 -ws win32 -arch x86 | |
| !ENTRY org.eclipse.equinox.registry 2 0 2013-01-03 10:40:18.906 |
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
| 19:39 < rob```> ,xy someone-noone | |
| 19:39 < candide> someone-noone: The XY problem: You want to do X, but don't | |
| know how. You think you can solve it using Y, but don't know | |
| how to do that, either. You ask about Y, which is a strange | |
| thing to want to do. Just ask about X. | |
| 19:39 < neuro_sys> Sure, why not? And why not try and see if it works? All it | |
| does is to replace them before sending the source to the | |
| compiler. | |
| 19:39 -!- HelloComputer15 [~Warrick@174-24-207-61.tukw.qwest.net] has quit | |
| [Quit: Leaving] |
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
| import java.util.*; | |
| /** | |
| * Source: http://www.codeproject.com/Articles/147230/Simple-Fuzzy-String-Similarity-in-Java | |
| * By George Stragand, 17 Jan 2011 | |
| */ | |
| public class Dice { | |
| public static List<char[]> bigram(String input) { | |
| ArrayList<char[]> bigram = new ArrayList<char[]>(); | |
| for (int i = 0; i < input.length() - 1; i++) { | |
| char[] chars = new char[2]; |
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
| #include <stdio.h> | |
| #include <complex.h> | |
| /** | |
| The Mandelbrot set is the set of values of c in the complex | |
| plane for which the orbit of 0 under iteration of the complex quadratic polynomial | |
| zn+1 = zn2 + c remains bounded. That is, a complex number c is part of the | |
| Mandelbrot set if, when starting with z0 = 0 and applying the iteration repeatedly, | |
| the absolute value of zn remains bounded however large n gets. | |
| */ |
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
| 00453FB0 > 83EC 1C SUB ESP,1C | |
| 00453FB3 . 53 PUSH EBX | |
| 00453FB4 . 55 PUSH EBP | |
| 00453FB5 . 56 PUSH ESI | |
| 00453FB6 . 8B35 90CC8A00 MOV ESI,DWORD PTR DS:[<&USER32.PeekMessa>; USER32.PeekMessageA | |
| 00453FBC . 57 PUSH EDI | |
| 00453FBD . 6A 01 PUSH 1 ; /RemoveMsg = PM_REMOVE | |
| 00453FBF . 6A 00 PUSH 0 ; |MsgFilterMax = WM_NULL | |
| 00453FC1 . 6A 00 PUSH 0 ; |MsgFilterMin = WM_NULL | |
| 00453FC3 . 6A 00 PUSH 0 ; |hWnd = NULL |