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
# Administrator user group... | |
SystemGroup lpadmin | |
# Only listen for connections from the local machine. | |
Listen localhost:631 #change this to Listen youripaddress:631 | |
Listen /var/run/cups/cups.sock | |
# Show shared printers on the local network. | |
Browsing On | |
BrowseOrder allow,deny |
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 <Foundation/Foundation.h> | |
@interface Hello: NSObject { | |
} | |
- (void) sayhello ; | |
@end |
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 <Foundation/Foundation.h> | |
@interface Hi:NSObject {} | |
- (void) hi; | |
@end | |
@implementation Hi |
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.io.InputStreamReader; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
class Repl { | |
InputStreamReader isr = null; | |
BufferedReader br = null; | |
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.io.InputStreamReader; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
class AcceptInputFromKB { | |
public static void main(String []args) throws IOException { | |
InputStreamReader isr = new InputStreamReader (System.in); | |
BufferedReader br = new BufferedReader (isr); |
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
class ByteOps { | |
public static void main(String []args) { | |
byte a = 127; | |
byte b = 1; | |
for (int i = 1;i<128;i++){ | |
a = (byte) (a + b); | |
System.out.println("byte a = " + a); | |
} |
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
class MultiplicationTable { | |
public static void main(String []args) { | |
int rows=10; | |
int columns=10; | |
for(int i=1;i<=rows;i++) { | |
for(int j=1;j<=columns;j++){ | |
System.out.print(i*j + "\t"); |
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.sql.DriverManager; | |
import java.sql.Connection; | |
import java.sql.Statement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
class DBSample { | |
public static void main(String []args){ | |
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
<!-- A "Connector" represents an endpoint by which requests are received | |
and responses are returned. Documentation at : | |
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) | |
Java AJP Connector: /docs/config/ajp.html | |
APR (HTTP/AJP) Connector: /docs/apr.html | |
Define a non-SSL HTTP/1.1 Connector on port 8080 | |
--> | |
<Connector port="8080" protocol="HTTP/1.1" | |
connectionTimeout="20000" |
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
/home (rw,sync,no_subtree_check,insecure) | |
/mnt/badass (rw,sync,no_subtree_check,insecure) |
NewerOlder