Archive for March, 2008
Convert a Word Document to PDF Using Java
Thursday, March 20th, 2008public class convertFile {
public static void main(String[] args) {
File inputFile = new File("resume-2.doc");
File outputFile = new File("resume-2.pdf");
OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100);
try {
connection.connect();
} catch(Exception e) {
}
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);
connection.disconnect();
}
}
How To Create an iSCSI SAN using Heartbeat, DRBD, and OCFS2
Monday, March 17th, 2008
<cib admin_epoch=”0″ have_quorum=”true” num_peers=”1″ cib_feature_revision=”1.3″ generated=”true” epoch=”242″ ignore_dtd=”false” nu
m_updates=”13″ cib-last-written=”Sat Feb 23 13:51:32 2008″ ccm_transition=”1″ dc_uuid=”0a38edda-e639-4f27-87c2-142ef3ff1fa9″>
<configuration>
<crm_config>
<cluster_property_set id=”default”>
<attributes>
<nvpair id=”symmetric-cluster” name=”symmetric-cluster” value=”true”/>
<nvpair id=”no-quorum-policy” name=”no-quorum-policy” value=”stop”/>
<nvpair id=”stonith-enabled” name=”stonith-enabled” value=”false”/>
<nvpair id=”short-resource-names” name=”short-resource-names” value=”true”/>
<nvpair id=”is-managed-default” name=”is-managed-default” value=”true”/>
<nvpair id=”transition-idle-timeout” name=”transition-idle-timeout” value=”60000″/>
<nvpair id=”default-resource-stickiness” name=”default-resource-stickiness” value=”INFINITY”/>
<nvpair id=”stop-orphan-resources” name=”stop-orphan-resources” value=”false”/>
<nvpair id=”stop-orphan-actions” name=”stop-orphan-actions” value=”false”/>
<nvpair id=”remove-after-stop” name=”remove-after-stop” value=”false”/>
</attributes>
</cluster_property_set>
<cluster_property_set id=”cib-bootstrap-options”>
<attributes>
<nvpair id=”cib-bootstrap-options-dc-version” name=”dc-version” value=”2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26
a3″/>
</attributes>
</cluster_property_set>
</crm_config>
<nodes>
<node id=”c343bdeb-26d4-405b-b852-04ed6a2a27c4″ uname=”san1.xxxxxx.com” type=”normal”/>
<node id=”0a38edda-e639-4f27-87c2-142ef3ff1fa9″ uname=”san2.xxxxxx.com” type=”normal”/>
</nodes>
<resources>
<group id=”san_group”>
<primitive class=”heartbeat” id=”drbd” provider=”heartbeat” type=”drbddisk”>
<operations>
<op id=”drbd_monitor” interval=”120s” name=”monitor” timeout=”60s”/>
</operations>
<instance_attributes id=”drbd_attributes”>
<attributes>
<nvpair id=”drbd_resource_name” name=”1″ value=”drbd0″/>
</attributes>
</instance_attributes>
</primitive>
<primitive id=”ip_resource_1″ class=”ocf” type=”IPaddr” provider=”heartbeat”>
<instance_attributes id=”ip_attributes”>
<attributes>
<nvpair id=”ipaddr_ip” name=”ip” value=”192.168.1.200″/>
</attributes>
</instance_attributes>
</primitive>
<primitive id=”ietdid” class=”lsb” type=”iscsi-target”/>
</group>
</resources>
<constraints>
<rsc_location id=”run_ip_resource_1″ rsc=”ip_resource_1″>
<rule id=”pref_run_ip_resource_1″ score=”100″>
<expression attribute=”#uname” operation=”eq” value=”san1″ id=”san1″/>
</rule>
</rsc_location>
<rsc_order id=”order1″ from=”drbd” action=”start” type=”before” to=”ip_resource_1″/>
<rsc_order id=”order2″ from=”ip_resource_1″ action=”start” type=”before” to=”ietdid”/>
</constraints>
</configuration>
<status>
<node_state id=”0a38edda-e639-4f27-87c2-142ef3ff1fa9″ uname=”san2.xxxxx.com” crmd=”online” crm-debug-origin=”do_update_r
esource” shutdown=”0″ in_ccm=”true” ha=”active” join=”member” expected=”member”>
<lrm id=”0a38edda-e639-4f27-87c2-142ef3ff1fa9″>
<lrm_resources>
<lrm_resource id=”drbd” type=”drbddisk” class=”heartbeat” provider=”heartbeat”>
<lrm_rsc_op id=”drbd_monitor_0″ operation=”monitor” crm-debug-origin=”do_update_resource” transition_key=”3:0:379e97e4-
cfbd-47c4-8da9-2fa60ac47451″ transition_magic=”0:7;3:0:379e97e4-cfbd-47c4-8da9-2fa60ac47451″ call_id=”2″ crm_feature_set=”2.0″ rc_co
de=”7″ op_status=”0″ interval=”0″ op_digest=”ea09f933342d2b2407fb06548c8249df”/>
<lrm_rsc_op id=”drbd_start_0″ operation=”start” crm-debug-origin=”do_update_resource” transition_key=”7:0:379e97e4-cfbd
-47c4-8da9-2fa60ac47451″ transition_magic=”4:1;7:0:379e97e4-cfbd-47c4-8da9-2fa60ac47451″ call_id=”5″ crm_feature_set=”2.0″ rc_code=”
1″ op_status=”4″ interval=”0″ op_digest=”ea09f933342d2b2407fb06548c8249df”/>
<lrm_rsc_op id=”drbd_stop_0″ operation=”stop” crm-debug-origin=”do_update_resource” transition_key=”1:1:379e97e4-cfbd-4
7c4-8da9-2fa60ac47451″ transition_magic=”0:0;1:1:379e97e4-cfbd-47c4-8da9-2fa60ac47451″ call_id=”6″ crm_feature_set=”2.0″ rc_code=”0″
op_status=”0″ interval=”0″ op_digest=”ea09f933342d2b2407fb06548c8249df”/>
</lrm_resource>
<lrm_resource id=”ip_resource_1″ type=”IPaddr” class=”ocf” provider=”heartbeat”>
<lrm_rsc_op id=”ip_resource_1_monitor_0″ operation=”monitor” crm-debug-origin=”do_update_resource” transition_key=”4:0:
379e97e4-cfbd-47c4-8da9-2fa60ac47451″ transition_magic=”0:7;4:0:379e97e4-cfbd-47c4-8da9-2fa60ac47451″ call_id=”3″ crm_feature_set=”2
.0″ rc_code=”7″ op_status=”0″ interval=”0″ op_digest=”fbfabc6bc90887bc11bf8ed485ec821d”/>
</lrm_resource>
<lrm_resource id=”ietdid” type=”iscsi-target” class=”lsb”>
<lrm_rsc_op id=”ietdid_monitor_0″ operation=”monitor” crm-debug-origin=”do_update_resource” transition_key=”5:0:379e97e
4-cfbd-47c4-8da9-2fa60ac47451″ transition_magic=”0:7;5:0:379e97e4-cfbd-47c4-8da9-2fa60ac47451″ call_id=”4″ crm_feature_set=”2.0″ rc_
code=”7″ op_status=”0″ interval=”0″ op_digest=”f2317cad3d54cec5d7d7aa7d0bf35cf8″/>
</lrm_resource>
</lrm_resources>
</lrm>
<transient_attributes id=”0a38edda-e639-4f27-87c2-142ef3ff1fa9″>
<instance_attributes id=”status-0a38edda-e639-4f27-87c2-142ef3ff1fa9″>
<attributes>
<nvpair id=”status-0a38edda-e639-4f27-87c2-142ef3ff1fa9-probe_complete” name=”probe_complete” value=”true”/>
<nvpair id=”status-0a38edda-e639-4f27-87c2-142ef3ff1fa9-fail-count-drbd” name=”fail-count-drbd” value=”1″/>
</attributes>
</instance_attributes>
</transient_attributes>
</node_state>
</status>
</cib>
Google Account Security Issue?
Friday, March 14th, 2008I had an odd thing happen to me the other day. I was using my Google account in Firefox. I have multiple Google accounts - one for personal, one for business. I had first been logged into my business account, then logged out and logged in to my personal account. All was well, except when I clicked on a report in my Analytics list, I was taken to the ‘Analytics’ tab in my business account. So, I was able to see site reports for the account that I was no longer logged into. I took some screenshots, because it was odd, and e-mailed Google to let them know they may have a security issue. This happened back on January 29th, and after giving Google ample time to reply / fix the issue, I’m now posting it.
On the screen shot below, note the two site names listed in the report listing.
From: xxx@creativeanvil.com
Subject: Security Issue with Adwords / Analytics
Date: Tue, 29 Jan 2008 15:24:01 -0800
I have two different google accounts - one for work and one for
personal. When logged into my personal account, clicking on Analytics
took me to the right spot, but clicking on a report took me to my work
account — actually, into my work AdWords account, with the Analytics
tab selected. I have used the same browser for both, but I specifically
logged out of the work account, then logged into the personal account.
I know it was logged in properly because I saw the right content in my
google home page, my webmaster tools, but not my analytics. I have
screen shots that I can e-mail of the different screens and what I got
when I clicked different links. I’d be glad to send them so that you
can verify this.
AdsUserLocale: en_US
Language: en
Name: Joe Koenig
Source: cuf
topic: Other
———- NEXT MESSAGE ———
Hello Joe,
Thank you for your email. I understand you are concerned as while you
try
to view the reports in one account, you are able to access the reports
of
some other account. To help us troubleshoot further it would be
advisable
if you could send a direct response to this email with the relevant
screenshots and the login email addresses you are trying to access your
account with. It would be better if you could include your work login
email address and your personal login email address.
If you have additional questions, please visit our Help Center at
https://adwords.google.com/support to find answers to many frequently
asked questions. Or, try our Learning Center at
http://www.google.com/adwords/learningcenter/ for self-paced lessons
that
cover the scope of AdWords.
We look forward to providing you with the most effective advertising
available.
Sincerely,
Suchi Kumar
The Google AdWords Team
—————-
To access your AdWords account, please log in at:
https://adwords.google.com
——- NEXT MESSAGE ——–
From: Joseph Koenig
Subject: Re: [#237202376] Security Issue with Adwords / Analytics
Date: Wed, 30 Jan 2008 08:49:11 -0600
Thanks for the response. Attached are screen shots. Picture 7.png shows
the link in the status bar of the browser that I got when hovering over
the report link. I wasn’t sure if anything in the parameters being
passed in would be helpful. Other than that, the pictures just show the
progression of screens from my account home page, to the analytics
report. I was logged in as “xxxx@koenigland.com”, but I was seeing
analytics reports for “xxxx@creativeanvil.com”. This was on Firefox
2.0.11 on Mac OS 10.5.
*Joe Koenig*
*Creative Anvil, Inc.*
*Phone: *314.692.0338
1346 Baur Blvd.
Olivette, MO 63132
xxxx@creativeanvil.com
http://www.creativeanvil.com
—— NEXT MESSAGE ——
Hello Joseph,
Thank you for sending us this information. I’ll be happy to assist you in
this situation. I see that you’re having trouble while toggling between
two login email address for two different Analytics accounts. I have
escalated this issue to our Analytics team. They’re currently
investigating the situation, and we’ll contact you as soon as we’ve found
a resolution.
In the meantime, I encourage you to log in to your accounts from two
different browsers.
Thank you for your patience and apologize for any inconvenience.
Sincerely,
Seva
The Google AdWords Team
—————-
To access your AdWords account, please log in at:
https://adwords.google.com
OK, at this point, I’m thinking ‘What?!??! Trouble toggling between accounts!?!?! Clearly, they don’t get it….’ So, I wait a bit and this is the response I then get from the Adwords team…
Hello Joseph,
Thank you for your patience while we researched this issue. I understand
you’re concerned about your Analytics reports for the website
‘http://www.koenigland.com’ showing in your Analytics account with the
login email address ‘xxxx@koenigland.com’ which you expected would show in
the account with the login ‘xxxx@creativeanvil.com.’ I would like to
explain that in the site ‘http://www.koenigland.com,’ you’ve installed the
tracking code for the Analytics account ID ‘UA-2618736-2′ which is
associated with the email address ‘xxxx@koenigland.com.’ This is the reason
why your Analytics reports for this site is showing in an account
different from the one you intended.
If you would like to receive data for this site in your account with the
login email address
‘xxxx@creativeanvil.com,’ you’ll need to place the appropriate code on the
site.
To view your personalized Google Analytics tracking code, please follow
the steps in the following Help Center article:
http://www.google.com/support/googleanalytics/bin/answer.py?answer=55603&utm_id=cr
I hope this helps clarify your concern.
As always, we look forward to providing you with the most effective
advertising available.
Sincerely,
Seva
The Google AdWords Team
At what point did I say I expected them to both show up the same account!?!?! I said I was seeing them from the wrong account! There’s a security problem somewhere here, and their low-level techs don’t even have the ability to recognize that and pass it on to the appropriate team. I gave up at this point. As I said, this was back in January. In fact, the last email was 2/4/08. If they haven’t had a chance to fix it yet, not my fault. If anyone can explain how this happens, or how to reliably duplicate the security breach, I’d love to hear it. I’ve tried it again, but only once or twice and couldn’t duplicate. I figured someone with some more time may want to give this a try and see what they come up with. All I know is that I did NOT quit firefox in between switching from accounts and had been logged into my adwords account before logging out and going back into analytics. Any ideas anyone?
Joe Koenig
Creative Anvil


