http://www.phdcomics.com/comics/archive.php?comicid=562
signed by sheetal
'Piled Higher and Deeper' by Jorge Cham is the popular comic strip about life, or the lack thereof, in grad school. Check it out by going to www.phdcomics.com
I almost wish I hadn't gone down that rabbit-hole — and yet — and yet — it's rather curious, you know, this sort of life!
http://www.phdcomics.com/comics/archive.php?comicid=562
signed by sheetal
CREATE TABLE temp AS SELECT * FROM sampleTable;
DROP TABLE sampleTable;
CREATE TABLE sampleTable AS SELECT * FROM temp;
DROP TABLE temp;
--A journey of a thousand mile begins with a single step --
* Right click on your bundle and select Export. Choose “Plug-in Development->Deployable Plugins and Fragments”.
* Select destination folder (for example /home/pc/Desktop)
* Click “Finish”
somedir/
configuration/
config.ini
eclipse.exe
plugins/
org.eclipse.equinox.common_3.3.0.jar
org.eclipse.equinox.launcher.win32.win32.x86_1.0.0/
eclipse_1017a.dll
[other launcher fragment content]
org.eclipse.equinox.launcher_1.0.0.jar
org.eclipse.osgi_3.3.0.jar
org.eclipse.update.configurator_3.2.100.jar
< your_bundle1 >.jar
< your_bundle2 >.jar
osgi.bundles=< your_bundle1 >.jar@start,< your_bundle2 >.jar@start
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start
eclipse.ignoreApp=true
osgi.noShutdown=true
eclipse -console
osgi>
osgi>ss
start < bundle id >
A mother duck hatches her eggs and, while most of her ducklings are normal, one is grey, too large, and too clumsy to fit in among the others. Though she tries to accept him, the entire barnyard realizes that he simply does not belong and after a period of harassment he leaves to fend for himself. He is sheltered by an old woman in her poor cottage, but her cat and her hen will not accept him and he is forced to set off once again on his own. He wanders for the entire summer and fall, for no one will take him in, and he nearly freezes to death in an icy pond. Though he is rescued by a human, he cannot live in captivity, and he returns to the wild.
By the end of winter, he is miraculously still alive. He comes to a pond in a park or garden, where beautiful white swans are swimming. He is drawn to their beauty, though he has no reason to think that they will treat him better than anyone else has. Still, he thinks, even if they kill him, he must approach them. To his surprise, the beautiful creatures welcome and accept him; gazing at his reflection, he sees that he too is a swan. The children declare that he is the most beautiful swan of them all, yet he is not proud, for a good heart is never proud. Because of all that he suffered he now appreciates his happiness so much more.
<result name="success" type="stream">
<param name="contentType">image/jpeg</param>
<param name="inputName">imageStream</param>
<param name="contentDisposition">filename="document.pdf"</param>
<param name="bufferSize">1024</param>
</result>
package downloadexample;
import org.apache.struts2.dispatcher.StreamResult;
import com.opensymphony.xwork2.ActionInvocation;
/**
* This class for result-type="myStream"
*
* <result-types> <result-type name="myStream" default="false"
* class="downloadexample.DynamicStreamResult"/>
*
* </result-types>
*
* It extends StreamResult Used to download file as a stream.
*
* @author sheetal
*
*/
public class DynamicStreamResult extends StreamResult{
@Override
protected void doExecute(String finalLocation,
ActionInvocation invocation)
throws Exception {
//get name of downloaded file
String downloadedFileName = invocation.getStack().
findValue(conditionalParse
("name", invocation));
contentDisposition = "filename=\""
+downloadedFileName + "\"";
//get file size
contentLength = ""+ invocation.getStack().findValue(
conditionalParse("size", invocation));
// get type of file
contentType = ""+ invocation.getStack().
findValue(
conditionalParse("description", invocation));
/*
Executes the result given a final location
(jsp page, action, etc) and
the action invocation (the state in which
the action was executed).
*/
super.doExecute(finalLocation, invocation);
}
}
<s:form action="downloadFile" validate="true">
<s:textfield label="Search file"
name="name" required="true"/>
<s:textfield label="Define file type (image/jpeg, text/plain, application/pdf)"
name="description" required="true"/>
<s:submit value="Find file"/>
</s:form>
private String name;
//holds name of downloaded file
private InputStream inputStream;
//holds stream of downloaded file
private String description;
//holds the content type of the downloaded file
private long size;
//holds the content size of the downloaded file
//method for downloading file
public String downloadFile()
{
/*
let, method searchFile(String fileName)
does the searching for us
& returns InputStream of the file if found
and null otherwise.
*/
this.inputStream = searchFile(name);
if(inputStream !=null)
{
return Action.SUCCESS;
}
else
{
//handle error
return Action.ERROR;
}
}
//write setter getter methods
public InputStream getInputStream() throws Exception
{
return inputStream;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public String getDescription()
{
return this.description;
}
public void setDescription(String description)
{
this.description = description;
}
// write getter setter for attribute size
<!-- custom result type for file download -->
<result-types>
<result-type name="myStream"
default="false"
class="downloadexample.DynamicStreamResult"/>
</result-types>
<!-- action for downloading file-->
<action name="downloadFile"
method="downloadFile"
class="<action-class-name>">
<result type="myStream"/>
<result name="error">jsps/your_error_page.jsp</result>
</action>
<result name="success" type="stream">
<param name="contentType">${contentType}</param>
<param name="inputName">imageStream</param>
<param name="contentDisposition">filename="${fileName}"</param>
<param name="bufferSize">${bufferSize}</param>
</result>
create table user
(
id number,
name varchar(10)
);
1,"user1"
2,"user2"
LOAD DATA
INFILE '/root/mycsv/user.csv'
append into table user
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(id,
name
)
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
(id,
name
)
sqlldr userid=username/password@SIDname control='user.ctl' log='user.log'
echo $ORACLE_SID
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS:could not resolve the connect identifier specified
SQL*Loader-605: Non-data dependent ORACLE error occurred -- load discontinued.
ORA-01653: unable to extend table username.tablename by X in tablespace yourtablespace
select * from dba_data_files where tablespace_name = 'yourtablespace;
FILE_NAME
----------------------------------------------
/usr/local/oracle/oradata/webct/yourtablespace01.dbf
FILE_ID TABLESPACE_NAME BYTES BLOCKS STATUS
---------- ------------------------------ ---------- ---------- ---------
11 yourtablespace 4294967296 524288 AVAILABLE
RELATIVE_FNO AUT MAXBYTES MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS
------------ --- ---------- ---------- ------------ ---------- -----------
11 YES 4294967296 524288 65536 4294443008 524224
alter tablespace USERS add datafile '/usr/local/oracle/oradata/webct/yourtablespace02.dbf' size 1024M autoextend on next 512M maxsize 4096M;
2 | Technorati.com
75,306,437 - Inbound Links | 3,231,709 - Compete Monthly Visitors | 1,400,000 - Quantcast Monthly Visitors | 216 - Alexa Ranking. | Page Rank: 8
3 | del.icio.us
171,593,051 - Inbound Links | 1,699,128 - Compete Monthly Visitors | 1,300,000 - Quantcast Monthly Visitors | 248 - Alexa Ranking. | Page Rank: 8
4 | Propeller.com
997,000 - Inbound Links | 1,454,912 - Compete Monthly Visitors | 2,180,176 - Quantcast Monthly Visitors | 2,308 - Alexa Ranking. | Page Rank: 7
5 | StumbleUpon.com
19,050,177 - Inbound Links | 1,313,586 - Compete Monthly Visitors | 695,239 - Quantcast Monthly Visitors | 300 - Alexa Ranking. | Page Rank: 8
6 | reddit.com
45,307,577 - Inbound Links | 1,226,467 - Compete Monthly Visitors | 344,383 - Quantcast Monthly Visitors | 852 - Alexa Ranking. | Page Rank: 7
7 | Fark.com
11,438,723 - Inbound Links | 306,597 - Compete Monthly Visitors | 1,767,165 - Quantcast Monthly Visitors | 1,958 - Alexa Ranking. | Page Rank: 7
8 | MyBlogLog.com
1,742,265 - Inbound Links | 1,972,847 - Compete Monthly Visitors | 84,922 - Quantcast Monthly Visitors | 432 - Alexa Ranking. | Page Rank: 7
9 | Slashdot.org
13,555,035 - Inbound Links | 724,424 - Compete Monthly Visitors | 269,884 - Quantcast Monthly Visitors | 579 - Alexa Ranking. | Page Rank: 9
10 | kaboodle.com
100,266 - Inbound Links | 1,751,763 - Compete Monthly Visitors | 851,858 - Quantcast Monthly Visitors | 9,125 - Alexa Ranking. | Page Rank: 6
11 | Bloglines.com
50,717,948 - Inbound Links | 382,663 - Compete Monthly Visitors | 103,711 - Quantcast Monthly Visitors | 853 - Alexa Ranking. | Page Rank: 9
12 | newsvine.com
24,200,775 - Inbound Links | 315,857 - Compete Monthly Visitors | 203,761 - Quantcast Monthly Visitors | 3,977 - Alexa Ranking. | Page Rank: 7
13 | blinklist.com
23,770,576 - Inbound Links | 243,277 - Compete Monthly Visitors | 165,306 - Quantcast Monthly Visitors | 4,647 - Alexa Ranking. | Page Rank: 6
14 | netvouz.com
8,112,272 - Inbound Links | 75,507 - Compete Monthly Visitors | 54,325 - Quantcast Monthly Visitors | 15,048 - Alexa Ranking. | Page Rank: 6
15 | clipmarks.com
164,419 - Inbound Links | 196,107 - Compete Monthly Visitors | 147,131 - Quantcast Monthly Visitors | 6,740 - Alexa Ranking. | Page Rank: 6
16 | Furl.net
49,595,144 - Inbound Links | 148,975 - Compete Monthly Visitors | 57,547 - Quantcast Monthly Visitors | 4,112 - Alexa Ranking. | Page Rank: 8
17 | Mister-Wong
13,214,146 - Inbound Links | 25,416 - Compete Monthly Visitors | 3,432 - Quantcast Monthly Visitors | 1,889 - Alexa Ranking. | Page Rank: 7
18 | dzone.com
1,065,009 - Inbound Links | 100,784 - Compete Monthly Visitors | 117,897 - Quantcast Monthly Visitors | 5,187 - Alexa Ranking. | Page Rank: 6
19 | ma.gnolia.com
13,701,444 - Inbound Links | 110,662 - Compete Monthly Visitors | 32,363 - Quantcast Monthly Visitors | 7,454 - Alexa Ranking. | Page Rank: 7
20 | Tailrank.com
5,320,211 - Inbound Links | 71,563 - Compete Monthly Visitors | 35,783 - Quantcast Monthly Visitors | 28,920 - Alexa Ranking. | Page Rank: 7
21 | ShoutWire.com
168,480 - Inbound Links | 101,738 - Compete Monthly Visitors | 55,337 - Quantcast Monthly Visitors | 10,552 - Alexa Ranking. | Page Rank: 6
22 | simpy.com
13,107,730 - Inbound Links | 62,645 - Compete Monthly Visitors | 49,205 - Quantcast Monthly Visitors | 10,948 - Alexa Ranking. | Page Rank: 7
23 | BlogMarks.net
9,748,453 - Inbound Links | 61,740 - Compete Monthly Visitors | 28,075 - Quantcast Monthly Visitors | 11,880 - Alexa Ranking. | Page Rank: 6
24 | BlueDot.us
1,159,780 - Inbound Links | 107,717 - Compete Monthly Visitors | 60,045 - Quantcast Monthly Visitors | 12,072 - Alexa Ranking. | Page Rank: 6
25 | Spurl.net
18,628,253 - Inbound Links | 42,300 - Compete Monthly Visitors | 3,483 - Quantcast Monthly Visitors | 14,300 - Alexa Ranking. | Page Rank: 6
26 | Spotplex.com
541,599 - Inbound Links | 52,176 - Compete Monthly Visitors | 15,106 - Quantcast Monthly Visitors | 42,809 - Alexa Ranking. | Page Rank: 6
27 | linkswarm.com
150,842 - Inbound Links | 14,504 - Compete Monthly Visitors | 10,476 - Quantcast Monthly Visitors | 47,267 - Alexa Ranking. | Page Rank: 5
28 | Spotback.com
97,564 - Inbound Links | 42,838 - Compete Monthly Visitors | 5,037 - Quantcast Monthly Visitors | 42,015 - Alexa Ranking. | Page Rank: 5
29 | PlugIm.com
161,039 - Inbound Links | 48,078 - Compete Monthly Visitors | 2,000 - Quantcast Monthly Visitors | 13,133 - Alexa Ranking. | Page Rank: 5
30 | MyBookmarks.com
25,191 - Inbound Links | 10,934 - Compete Monthly Visitors | 7,727 - Quantcast Monthly Visitors | 108,226 - Alexa Ranking. | Page Rank: 5