tag:blogger.com,1999:blog-70546460243135133032024-02-20T19:41:49.186-08:00Software tips and ArticlesWindows and Programming tips and tricks - Tushar Kapila.
<br><br>
A how to. Things that i needed and you might too. Most are for windows, some will have a linux or java label to indicate different.Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-7054646024313513303.post-47535063193459629452016-11-20T06:56:00.000-08:002016-11-20T07:04:19.995-08:00whats app mute a user or group<div dir="ltr" style="text-align: left;" trbidi="on">
Open a chat Of a group or a person. See image:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="//i.imgur.com/IJGB1E5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="//i.imgur.com/IJGB1E5.png" height="196" width="320" /></a></div>
<br />
<br />
and tap More > group info or info > custom notifications or mute.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="//i.imgur.com/Z9BRTD0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="//i.imgur.com/Z9BRTD0.png" /></a></div>
<br />
Now choose duration<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="//i.imgur.com/awk7wJB.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="//i.imgur.com/awk7wJB.png" height="188" width="320" /></a></div>
<br /></div>
Tushar Kapilahttp://www.blogger.com/profile/13813693999909000988noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-14719988786131588682016-11-02T10:10:00.004-07:002016-11-02T10:14:25.068-07:00git new branch and push from command line<div dir="ltr" style="text-align: left;" trbidi="on">
Go to (cd) to git repo. <br />
1. Make a new branch :<br />
git checkout -b newBranchName<br />
<br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">git checkout -b a10</span><br />
<br />
2. Make changes are add all edited files to that branch in current and sub folders:<br />
<br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"> git add .</span><br />
<br />
3. Commit to local branch, example:<br />
<br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">git commit -m "changes for release a10 issue 3291 user addresses" </span><br />
<br />
4. Till now everything is on local, to push generally will do:<br />
<br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">git push </span><br />
<br />
5. But since this is a new local branch need to tell git which remote branch it should point to, it does not assume it will have the same remote name, helps us by giving error message:<br />
fatal: The current branch test has no upstream branch.<br />
To push the current branch and set the remote as upstream, use<br />
<br />
git push --set-upstream origin test<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span><br />
<br />
So now give command:<br />
<br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"> git push --set-upstream origin test</span><br />
<br />
if your remote auth is set up should push the changes. If branch is there on remote, made by someone else will get errors.<br />
<br />
Generally need to do steps 2,3 and 4. Or can use your IDE to do the same. <br />
<br />
A good stand alone UI is https://www.gitkraken.com/features need this for multiple branches for simple one branch work IDE with git plugin is enough or the command line.<br />
<br />
<br /></div>
Tushar Kapilahttp://www.blogger.com/profile/13813693999909000988noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-26525706090017635842016-06-16T09:37:00.001-07:002016-06-18T11:46:07.344-07:00Let us add keywords to our online job posting skills. Not the same generic ones<div dir="ltr" style="text-align: left;" trbidi="on">
To freelancer and other sites that help you find coders and part time workers online:<br />
New feature suggestion<br />
Pity we cant add skills in project keywords. we need to add some general skill where there are 50,000 freelancers but few in what we want.<br />
<br />
Why cant you add a feature like http://stackoverflow.com/ where people with experience like 4-5 projects and having a separate attribute "can-add-skills" can add new ones. they don thave to be live immediately but can be reviewed by someone and added in 1-2 weeks. even if wont help immediately will help after a month or two.<br />
<br />
Example "libGdx" is a framework that makes mobile games, but even if u know android most wont know this. but then you add android in your project then they act like they do as it comes in their feed. better would be if i could just put libGdx. This is a special skill. Not to be mixed with the main stream of android developers..<br />
<br />
To be clear. Like we can choose android or java as a skill now, we
should be able to add a skill like libGdx and after a 1-2 day review by
peers it should be allowed. so when posting a project a new key word
might be available but i can ask for it and then can edit my project
keywords later or at least add it in a future project. similarly in some
place i should be to suggest new keywords without having to post a
project. can keep this open for few buyers only, who know what they are
doing and have experience using the site <br />
<br /></div>
Tushar Kapilahttp://www.blogger.com/profile/13813693999909000988noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-82159887573362357142016-01-01T23:02:00.001-08:002016-04-24T11:49:45.127-07:00Feature request : youtube page layout and kids only url<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Can we have a kids only URL so can see on any laptop? Good for kids under 10.<br />
<br />
Youtube page broken, right side cut on a windows 8.1 laptop with firefox browser version 43.0.3 laptop laptop 2015 model<br />
<br />
From environment vars <br />
NUMBER_OF_PROCESSORS=4<br />
OS=Windows_NT<br />
PROCESSOR_ARCHITECTURE=AMD64<br />
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel<br />
PROCESSOR_LEVEL=6<br />
PROCESSOR_REVISION=4501<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVY8ZyVqmFDZvyWlnOu6DSjh90DMbfcshxxoDJh-b23AVRjvpVCIsCV6jBM-31kvxFD6M45Nbhvhgb3Kc93Dq_w7v_x0lWegZxPTLzAPykpqfZaegxPEILth_LlzKb4JKzuH8qLT0sHY/s1600/youtube-layout-bad-cant-submit-feedback.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
</a></div>
<a href="https://www.blogger.com/blogger.g?blogID=7054646024313513303" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="https://www.blogger.com/blogger.g?blogID=7054646024313513303" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVY8ZyVqmFDZvyWlnOu6DSjh90DMbfcshxxoDJh-b23AVRjvpVCIsCV6jBM-31kvxFD6M45Nbhvhgb3Kc93Dq_w7v_x0lWegZxPTLzAPykpqfZaegxPEILth_LlzKb4JKzuH8qLT0sHY/s1600/youtube-layout-bad-cant-submit-feedback.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVY8ZyVqmFDZvyWlnOu6DSjh90DMbfcshxxoDJh-b23AVRjvpVCIsCV6jBM-31kvxFD6M45Nbhvhgb3Kc93Dq_w7v_x0lWegZxPTLzAPykpqfZaegxPEILth_LlzKb4JKzuH8qLT0sHY/s320/youtube-layout-bad-cant-submit-feedback.png" width="320" /></a><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrcVlx8RLcujVpWX1j_6uBmFWknM7_TwVQt62s2buRcmwDwJKmrnYhNoAHWAaJBo6nzau0YreiVLuOwAMbiOBypTWV3_lLY2PVqxR0BSHpgFpAOPENzMSW-KfyGEUNBSDdwZjNJeGU63I/s1600/youtube-layout-right-side-cut.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrcVlx8RLcujVpWX1j_6uBmFWknM7_TwVQt62s2buRcmwDwJKmrnYhNoAHWAaJBo6nzau0YreiVLuOwAMbiOBypTWV3_lLY2PVqxR0BSHpgFpAOPENzMSW-KfyGEUNBSDdwZjNJeGU63I/s320/youtube-layout-right-side-cut.png" width="320" /></a></div>
<br />
<br />
feature requests to google YouTube product team</div>
Tushar Kapilahttp://www.blogger.com/profile/13813693999909000988noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-43505852285973380302015-09-28T02:32:00.003-07:002015-09-28T02:32:45.767-07:00Truthy values : Java parsing string to boolean<div dir="ltr" style="text-align: left;" trbidi="on">
When i worked for a product company for 3 years, there was a lot of custom code made by many developers. And since we had over 20 customers there were a lot of settings and flag driven features.<br />
<br />
Some developer would use 'yes' to denote something was true or enabled. Others would use 'Y' others would use 'true' and a few would be case in sensitive. For a few '1' was okay to denoate true.<br />
<br />
Similarly false could be 'f', 'FALSE', 0, 'no' in strict case or case insensitive.<br />
<br />
Made a small function to denote truthy value parsing, along with a default (if null or that row missing from the RDBMS table).<br />
<span style="font-family: Verdana,sans-serif;"><br /></span>
<span style="font-family: Verdana,sans-serif;"><code>
boolean isTruthy(String value, boolean default){ </code></span><br />
<div style="text-align: left;">
<span style="font-family: Verdana,sans-serif;"><code> if(value == null || value.length()){</code></span></div>
<div style="text-align: left;">
<span style="font-family: Verdana,sans-serif;"><code> char c = Character.toLowerCase(value.charAt(0)); </code></span></div>
<div style="text-align: left;">
<span style="font-family: Verdana,sans-serif;"><code> return c == 'y' || c == 't' || c=='1'; </code></span></div>
<span style="font-family: Verdana,sans-serif;"><code> }
</code></span>
<br />
<br />
reference :<br />
http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html#toLowerCase%28char%29<!--1--></div>
Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-61938544245966835932015-07-26T01:28:00.003-07:002015-07-26T01:29:45.519-07:00lock and swich off screen on linux, ununtu, centos<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Method one:</b> </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">Make a text file and call it 'switchOffScreen.sh' save it in home directory or other dir (folder).</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">Contents of file:</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Times,"Times New Roman",serif;">#!/bin/bash</span><br />
<span style="font-family: Times,"Times New Roman",serif;">gnome-screensaver-command -l<br />sleep 2<br />xset dpms force off</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">Give it execute permissions by command:</span><br />
<span style="font-family: Times,"Times New Roman",serif;"><br /></span>
<span style="font-family: Times,"Times New Roman",serif;">chmod +x ~/switchOffScreen.sh</span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">Now make a short cut in keyboard to this script, call it when required.</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<b><span style="font-family: Georgia,"Times New Roman",serif;">Method two : </span></b><br />
<span style="font-family: Georgia,"Times New Roman",serif;">Tested on ubuntu :</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">open keyboard short cuts, make a new shortcut with command : </span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times,"Times New Roman",serif;"> gnome-screensaver-command -l | sleep 2 | xset dpms force off</span></span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">Add a shortcut, I overwrote Ctrl-Alt-L confirmed I want to over ride the default and now my screen goes off after I lock. Less power used. </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
Tushar Kapilahttp://www.blogger.com/profile/13813693999909000988noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-80928273778900704362014-06-15T05:33:00.002-07:002014-06-15T05:33:57.451-07:00Google Youtube suggestions for player - settings for quality and annotations in profile<div dir="ltr" style="text-align: left;" trbidi="on">
To google support <br />
1. in full screen goes to HD even if i made it go to 480 or 360p in earlier videos. can you add a setting in profile for your player not to do this? Why? Live in India, pay INR 1300/- per month to a "fibre" optic broad band provider (ACT) but still get slow connections, except for their sponsored speedtest site! duh. If your player does not go to HD i can watch without pauces and bad breaks.<br /><br />2. similarly with annotations - a setting in profile to turn off by default<br />
<br />
Note this was shared via the feedback tab too but re sharing so others who agree can send to them as well</div>
Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-32735798155081445712014-06-12T00:29:00.003-07:002014-06-12T00:30:55.398-07:00Java: rename file : file_0001.dat, file_0002 to file_0004, file_0008.dat<div dir="ltr" style="text-align: left;" trbidi="on">
<pre class="default prettyprint prettyprinted"><code>Issue: bunch of files name <code>file_0001.dat</code>, <code>file_0002.dat......file_1000.dat</code>.
I want to change the file names such as the number after file_ will be a
multiple of 4 in comparison to previous file name. So i want to change
<code><span class="pln">file_0001</span><span class="pun">.</span><span class="pln">dat to file_0004</span><span class="pun">.</span><span class="pln">dat
file_0002</span><span class="pun">.</span><span class="pln">dat to file_0008</span><span class="pun">.</span><span class="pln">dat </span></code></code></pre>
<pre class="default prettyprint prettyprinted"><code><code><span class="pln"> </span></code></code></pre>
<pre class="default prettyprint prettyprinted"><code><code><span class="pln"><span class="comment-copy">Start from the highest and go to lowest. As
if u go from lowest - there will be conflicts. example u cant rename 001
to 004 if there is a 004 from before ...what if it at first you have
file_0001.dat, file_0001.dat, ... file_0004.dat.</span> </span></code></code></pre>
<pre class="default prettyprint prettyprinted"><code><code><span class="pln"> </span></code> </code></pre>
<pre class="default prettyprint prettyprinted"><code> <span class="pun">import java.util.*;
import java.io.*;
public class RenameFiles{
private Properties props = new Properties();
private String args[];
private TreeMap<Integer, FileRen> ffs = new TreeMap<Integer, FileRen>();
RenameFiles(String args[]){
this.args = args;
start();
}
public static void main(String args[]){
new RenameFiles(args);
}
void start(){
defaults();
load();
scanDir();
renameDo();
}
void renameDo(){
final int ll = ffs.size();
if(ll < 1){
System.err.println( "Nothing to do ffs size " + ll );
return;
}
ArrayList<FileRen> frs = new ArrayList<FileRen>();
frs.addAll(ffs.values());
for(int i = ll - 1;i >= 0; i--){
FileRen fr = frs.get(i);
boolean t = fr.orig.renameTo(fr.renamed);
System.err.println(i + " Result " + t + " " + fr.orig + " to " + fr.renamed);
}
}
void load(){
if(args.length > 1){
}
}
void defaults(){
props.setProperty("dir", ".");
}
void scanDir(){
File f = new File(props.getProperty("dir"));
FFilter ffilter = new FFilter();
String []l = f.list(ffilter);
for(String nn : l){
FileRen fr = FileRen.check(f, nn);
if(fr != null){
ffs.put(fr.idx, fr);
}
}
}
}
class FFilter implements java.io.FilenameFilter
{
public boolean accept(File dir,
String name){
System.err.println(dir + " " + name + " check ");
File f = new File(dir, name);
if(!f.exists() || !f.isFile())return false;
final int i = name.lastIndexOf(".");
final int i2 = name.lastIndexOf("_");
if(i2 < 0 || i < i2)return false;
return true;
}
}
class FileRen{
File orig;
File renamed;
int idx;
FileRen(){
}
static FileRen check(File parent, String s){
final int i = s.lastIndexOf(".");
final int i2 = s.lastIndexOf("_");
//file_0001.dat to file_0004.dat
if(i2 < 0 || i < i2)return null;
String p = s.substring(i2+1, i);
try{
int idx = Integer.parseInt(p);
if(idx > 0){
FileRen f = new FileRen();
f.orig = new File(parent, s);
f.idx = idx;
int nxt = idx * 4;
String pad = pad(nxt, 4);
f.renamed = new File(parent, s.substring(0, i2 + 1) + pad +s.substring(i) );
return f;
}
}catch(Exception e){
System.err.println(e + " " + parent + " " + s);
}
return null;
}
static String pad(int i, int k){
StringBuilder sb = new StringBuilder().append(i);
int ll = sb.length();
for(int c = ll; c <= k; c++){
sb.insert(0, '0');
}
return sb.toString();
}
}</span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="pun"> </span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="pun"> </span></code></pre>
Utility script to make a few files, test helper<br />
<code><span class="pln">touch file_0001</span><span class="pun">.</span><span class="pln">dat
touch file_0002</span><span class="pun">.</span><span class="pln">dat
touch file_0004</span><span class="pun">.</span><span class="pln">dat
touch file_0005</span><span class="pun">.</span><span class="pln">dat
touch file_0007</span><span class="pun">.</span><span class="pln">dat</span></code>
This version just start the program in the same dir as the files, after compiling and changing the classpath<br />
<blockquote>
javac /prog/j/apps/sel2in/ioFiles/RenameFiles.java<br />
java -cp /prog/j/apps/sel2in/ioFiles/ RenameFiles</blockquote>
<pre class="default prettyprint prettyprinted"><code><span class="pun"> </span></code></pre>
</div>
Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-61208439004051662812014-04-18T03:02:00.000-07:002014-06-12T00:32:24.032-07:00SSL, Bank domains, heart beat <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
To Times of India Editor: <br />
Saw an article in the technology section of the TOI physical news paper on 17th April, 2014 about HeartBeat and SSL, it has lists of banks and other websites and the results from some tool.<br />
<br />
Would be good if they update the website with note on banks, instead of just pulling the article.<br />
The main domain of the banks like hdfcbank.com or icicibank.com when anyo<span class="text_exposed_show">ne
who has used netbanking and looked a the address bar should know that
the domain changes. and with that the certificate so for example icici
is <a href="https://infinity.icicibank.co.in/" rel="nofollow" target="_blank">https://infinity.icicibank.co.in</a> and HDFC is <a href="https://www.facebook.com/l.php?u=https%3A%2F%2Fnetbanking.hdfcbank.com%2F&h=JAQGEATLo&enc=AZPNY18qH3PZVEC6lmIfHYCfHZy8cPTfhe4ypaIzPh1ZGS73RyquXLxWY4TJIB0Sn3zylNK61YoTau_2-qBCniokPD7SufE2LH5ZSrydeIb1blWNHa7LAAGtKE_yscoDOBXG4JKL5rSPCvl2Ed2j5B-h&s=1" rel="nofollow" target="_blank">https://netbanking.hdfcbank.com/</a>
why the difference - i dont know just the way it was implemented -
maybe can change the link without affecting the main site. someone did
it years back and just continued. with a sub domain can even have a
different IP/ web server, more clustering options. And a sub domain
needs a different certificate; so they put the grand security on
this and the main site that is just links, marketing & help content. <br />
<br /> Is incorrect to say icici has no ssl, please add this note
that the sub domains where net banking happens does have (after testing
it). I don't work for a bank nor a share holder but know something about server tech.<br />
<br />
Really makes you think how much of what you report is true and how much
is just ignorant, under researched or a way of getting back to people who are not
advertising enough?</span><span class="text_exposed_show"> Maybe vet these articles by paying tech savvy people to proof read first?<br />
<br />
</span></div>
Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-545205245253003312010-05-13T04:27:00.000-07:002010-05-13T04:36:19.517-07:00Java pre compiler ... well nearlyAnt<br />
For simple needs, <b>Ant </b>can be used to do substitution in your sources.<br />
<br />
We insert into the code a special tag to delimit code that need to be stripped by the Ant script. Let's say we use<b> //@STARTDEBUG@// </b>and <b>//@ENDDEBUG@//</b>.<br />
<br />
<div style="font-family: Georgia,"Times New Roman",serif;">package academic.howto;</div><div style="font-family: Georgia,"Times New Roman",serif;"><br />
</div><div style="font-family: Georgia,"Times New Roman",serif;">import javax.swing.JFrame;</div><div style="font-family: Georgia,"Times New Roman",serif;"><br />
</div><div style="font-family: Georgia,"Times New Roman",serif;">public class Example {</div><div style="font-family: Georgia,"Times New Roman",serif;"><br />
</div><div style="font-family: Georgia,"Times New Roman",serif;">public static void main(String args[]){</div><div style="font-family: Georgia,"Times New Roman",serif;">JFrame f = new JFrame();</div><div style="font-family: Georgia,"Times New Roman",serif;">f.setSize(300,200);</div><div style="font-family: Georgia,"Times New Roman",serif;">f.setVisible(true);</div><div style="font-family: Georgia,"Times New Roman",serif;">f.setTitle("HowTo");</div><div style="font-family: Georgia,"Times New Roman",serif;">//@STARTDEBUG@//</div><div style="font-family: Georgia,"Times New Roman",serif;">f.setTitle(f.getTitle() + " DEBUG version");</div><div style="font-family: Georgia,"Times New Roman",serif;">//@ENDDEBUG@//</div><div style="font-family: Georgia,"Times New Roman",serif;">f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);</div><div style="font-family: Georgia,"Times New Roman",serif;">}</div><div style="font-family: Georgia,"Times New Roman",serif;">}</div><br />
If you execute this code, the JFrame title will have the word "DEBUG" appended to it.<br />
<br />
<b>The Ant script to remove the debugging code is : </b><br />
<project default="buildme"><br />
<br />
<target name="compileprod"><br />
<copy todir="../out" includeEmptyDirs="false"><br />
<filterchain><br />
<tokenfilter><br />
<replacestring from="//@STARTDEBUG@//" to="/*" /><br />
<replacestring from="//@ENDDEBUG@//" to="*/" /><br />
</tokenfilter><br />
</filterchain><br />
<fileset dir="."><br />
<include name="**/*.java" /><br />
</fileset><br />
</copy><br />
<br />
<javac srcdir="../out" /><br />
</target><br />
<br />
<target name="compiledebug"><br />
<javac srcdir="." /><br />
</target><br />
<br />
<br />
<target name="buildme" depends="compileprod" /><br />
</project><b><br />
</b><br />
<b></b><br />
<br />
<b>After running this script, the source (in the ..\out directory) </b><br />
<div class="howtocode"><pre><span style="font-family: Georgia,"Times New Roman",serif;"> </span></pre><pre><span style="font-family: Georgia,"Times New Roman",serif;">package </span>academic<span style="font-family: Georgia,"Times New Roman",serif;">.howto;</span>
<span style="font-family: Georgia,"Times New Roman",serif;">import javax.swing.JFrame;</span>
<span style="font-family: Georgia,"Times New Roman",serif;">public class Example {</span>
<span style="font-family: Georgia,"Times New Roman",serif;"> public static void main(String args[]){</span>
<span style="font-family: Georgia,"Times New Roman",serif;"> JFrame f = new JFrame();</span>
<span style="font-family: Georgia,"Times New Roman",serif;"> f.setSize(300,200);</span>
<span style="font-family: Georgia,"Times New Roman",serif;"> f.setVisible(true);</span>
<span style="font-family: Georgia,"Times New Roman",serif;"> f.setTitle("HowTo");</span>
<b style="font-family: Georgia,"Times New Roman",serif;"> </b><b><span style="font-family: Georgia,"Times New Roman",serif;"> /*
f.setTitle(f.getTitle() + " DEBUG version");
*/</span></b>
<span style="font-family: Georgia,"Times New Roman",serif;"> f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);</span>
<span style="font-family: Georgia,"Times New Roman",serif;"> }</span>
}</pre></div><br />
<project default="buildme"> <target name="compileprod">Only disadvantage is a few more minutes to compile but that is small trade off for a better runtime code - with less logging etc<br />
<copy includeemptydirs="false" todir="../out"><br />
<filterchain>http://www.rgagnon.com/javadetails/java-0130.html</filterchain></copy></target></project><br />
<project default="buildme"><target name="compileprod"><copy includeemptydirs="false" todir="../out"><filterchain>this is another method ...have a class with a single static final bool and use if statements ... compiler automatically optimizes. CAUTION:</filterchain></copy></target></project>this will work for a single project/ jar. if the variable ( public static final boolean RELEASE = true; ) is in another jar then javac will not optimize as you can replace the jars with the var set to false... for big applications might work if each package has the debug class and care is taken to reference only that.<br />
<br />
<br />
<project default="buildme"><target name="compileprod"><copy includeemptydirs="false" todir="../out"><filterchain> <tokenfilter><br />
<replacestring from="//@STARTDEBUG@//" to="/*">CODE:</replacestring></tokenfilter></filterchain></copy></target></project><br />
<pre>public class Debug {
public static final boolean RELEASE = true;
}</pre><pre>In your source, when you need some debugging codes, you included them in
a <i>if</i> statement like </pre><div class="howtocode"><pre>if (Debug.RELEASE) {
System.out.println("The value of i is " + i);
}</pre></div>During compilation, since Debug.RELEASE is always true, the code will be present. In the production environment, the Debug class looks like this: <br />
<div class="howtocode"><pre>public class Debug {
public static final boolean RELEASE = false;
}</pre></div>When compiling in that environment, the debugging code will be absent from the class file since Debug.release is always false. <br />
<pre> </pre><pre><project default="buildme"><target name="compileprod"><copy includeemptydirs="false" todir="../out"><filterchain><tokenfilter><target name="compiledebug"> </target></tokenfilter></filterchain></copy></target></project></pre><pre><project default="buildme"><target name="compileprod"><copy includeemptydirs="false" todir="../out"><filterchain><tokenfilter><target name="compiledebug"> </target></tokenfilter></filterchain></copy></target></project></pre><pre><project default="buildme"><target name="compileprod"><copy includeemptydirs="false" todir="../out"><filterchain><tokenfilter><target name="compiledebug">REFERENCE:
<a href="http://www.rgagnon.com/javadetails/java-0164.html">rgagnon.com/..java-0164.html</a>
<a href="http://www.rgagnon.com/javadetails/java-0130.html">rgagnon.com/..java-0130.html</a></target></tokenfilter></filterchain></copy></target></project></pre>Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-20892529545480874992010-04-15T06:16:00.000-07:002010-04-15T06:18:52.651-07:00sleep.exe, pause a batch program for specified timewhen you need to sleep a while when using a batch program etc<br />
<br />
http://hp.vector.co.jp/authors/VA007219/sleep/sleep.html sleep.vbs and v1/sleep.exe works with XP and win7 copied to system32 folder so can call it from anywhere<br />
<br />
<br />
<br />
<br />
<br />
<br />
http://unattended.msfn.org/unattended.xp/view/web/10/ does not work onTushar Kapilahttp://www.blogger.com/profile/13813693999909000988noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-7467057448008037712010-04-12T03:09:00.000-07:002010-04-12T03:09:43.130-07:00java setting multiple system properties via command line optionsif you want to set system properties when you invoke java (vs setting them in the system before you start java/ command prompt) can do so with the -D option to java.exe or javaw.exe<br />
<br />
You do this for each property.<br />
<br />
<br />
Lets assume your command line to start jva initially looks like:<br />
java org.mypack.Main<br />
<br />
So if you need to set to properties<br />
usePort=2322<br />
factoryClass=org.mypack.net.Factory1<br />
<br />
Then the new command line will be: <br />
<br />
java -DusePort=2322 -DfactoryClass=org.mypack.net.Factory1 org.mypack.Main<br />
<br />
Pretty obvious except I was not sure if I need to put a ; between properties or have multiple -D<br />
<br />
For those using an IDE:<br />
See image - remember these are VM options (VM arguments) and not program arguments<br />
(Click image for full size) <br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxCZqxhACemQciuX4kBtVjdCexUDxJpjnf2qaerVqPnvas3BfNnYluM2zmUGTv1ioS7SBSGjBjjrNRBIJ-1hZZSbXtH_P2zYpmi4JAnr5lR-kkBsVXECPlfwQuVXeD_PsPhIGdUelLqKk/s1600/ide-set-VM-options-D.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxCZqxhACemQciuX4kBtVjdCexUDxJpjnf2qaerVqPnvas3BfNnYluM2zmUGTv1ioS7SBSGjBjjrNRBIJ-1hZZSbXtH_P2zYpmi4JAnr5lR-kkBsVXECPlfwQuVXeD_PsPhIGdUelLqKk/s320/ide-set-VM-options-D.jpg" /></a></div>Tushar Kapilahttp://www.blogger.com/profile/13813693999909000988noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-46120446368551487972010-02-10T06:04:00.000-08:002010-02-10T09:29:00.555-08:00How to : make a link in bloggeryou can select a URL and make a link by clicking the link button<br><br />
make sure your in the compose mode<br><br />
<br><br />
first a URL<br><br><br />
<br />
<a href="http://tusharkapila.blogspot.com/2008/05/s.html">http://tusharkapila.blogspot.com/2008/05/s.html</a> <-- Link made<br />
<br><br><br />
or select some text and then click the link button, then enter the link address or email id<br />
<br><br><br />
<a href="http://sel2in.com/">My site</a><br />
<br><br />
<br />
<a href="http://www.youtube.com/watch?v=I8I656bgQXU">Video: </a><br />
<br><br />
(best view in full-screen, no audio)<br />
<br><br />
<object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/I8I656bgQXU&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/I8I656bgQXU&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-71344335780548078452010-01-10T03:29:00.000-08:002016-04-24T11:50:13.972-07:00safe-pc<div dir="ltr" style="text-align: left;" trbidi="on">
A safe pc means a happy user. I use <a href="http://www.avast.com/">avast</a> and <a href="http://www.superantispyware.com/">super anti-malware</a> protection. so do not just use a condom (must do that too) but protect your electronics gear too!<br />
<br />
Thank you guys, and I hope you have enough business/ professional/ paid home users like me to constantly update and improve.</div>
Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-4451180518318098692009-12-30T20:33:00.000-08:002009-12-30T20:33:45.358-08:00Testing Web Applications With a Real URL on local system on WindowsTesting web applications with a real URL on local on windows. Sometimes web apps need to parse the URL and since all real URLS have at least one '.' localhost might not be suitable for testing.<br />
<br />
<br />
<br />
To get around this :<br />
<br />
<br />
<br />
Open the file called hosts its default location is c:\WINDOWS\system32\drivers\etc\hosts or more accurately<br />
<br />
<br />
<br />
%windir%\system32\drivers\etc\hosts<br />
<br />
{To get the full path on your system you could type<br />
<br />
echo %windir%\system32\drivers\etc\hosts<br />
<br />
on a command prompt}<br />
<br />
<br />
<br />
Open it in notepad and add the line at end<br />
<br />
127.0.0.1 www.a.com<br />
<br />
<br />
<br />
This is how my file looks<br />
<br />
<br />
<pre>---- start hosts ----
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 a.com
127.0.0.1 www.a.com
---- end hosts ----
</pre><br />
Now in any browser goto http://a.com/ use this with my XAMPP-PHP-MYSQL set up on local<br />
<br />
It maps to local host. Use it as you would use localhost. If your web server is running on a different IP then you can specify that as in<br />
<br />
http://a.com:8080<br />
<br />
<br />
<br />
Comments welcome. thank you<br />
<br />
Regards<br />
<br />
Tushar Kapila<br />
<br />
<a href="http://sel2in.com/">http://sel2in.com</a><br />
<br />
Java, PHP, VB6 Apps. Fight Back pain: Exercise timer application<br />
<br />
<a href="http://ksoft7.tripod.com/g3.html%20">http://ksoft7.tripod.com/g3.html </a>search page that allows you to search within any website uses google works best in Internet explorer and opera<br />
<br />
<a href="http://minutes-alarm.sourceforge.net/">http://minutes-alarm.sourceforge.net</a> freeware minute alarm, easy reminder for back ache - stand up or meeting ...<br />
<br />
<br />
Volunteer computer Cancer cures <a href="http://www.worldcommunitygrid.org/">www.worldcommunitygrid.org</a><br />
<br />
Click: <a href="http://www.thehungersite.com/clickToGive/home.faces?siteId=1">www.thehungersite.com</a> , and <a href="http://www.bhookh.com/">www.bhookh.com</a> feed hungry , its free. <a href="http://www.ecologyfund.com/">www.ecologyfund.com</a><br />
<br />
Please add these to your start-up how to: <a href="http://tusharkapila.blogspot.com/2008/05/s.html">http://tusharkapila.blogspot.com/2008/05/s.html</a> Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-18386253913495694642009-12-09T15:28:00.000-08:002009-12-09T16:04:48.274-08:00a list of selected filesYou have a few files selected in Windows explorer and now you want the names or paths in a file or in your clipboard.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzqWVFbbT9dI70_Ps6kxjBTkP2R5ux6v1cY8LdB6evNsIGhXqTMhqAYkuUhBRp-Vt7rNZ5QaZNEBq7QHAH8E-EpGyA1vCHm-N4muztLaqWL0S5beND7hvCv-TClR3XV-Zf-cG3dfYUbHk/s1600/FileNames_select_in_windows_explorer.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzqWVFbbT9dI70_Ps6kxjBTkP2R5ux6v1cY8LdB6evNsIGhXqTMhqAYkuUhBRp-Vt7rNZ5QaZNEBq7QHAH8E-EpGyA1vCHm-N4muztLaqWL0S5beND7hvCv-TClR3XV-Zf-cG3dfYUbHk/s320/FileNames_select_in_windows_explorer.jpg" /></a><br />
</div><br />
<br />
This utility does that in a jiffy.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5r389EyjBwFhZxGPXZK6kdVUadhFI5BjuxNjHjFLWf91PJ1aIb8h1gudNi4vLnsaxCHPattAX4Q6YRsOt4G8KaMw2jdtg6nQGFiQElxN-43N6TVBbJ3s4i8cDmMj1X7m2d5-TI1LLXa0/s1600/FileNames_rightClick_send_To.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5r389EyjBwFhZxGPXZK6kdVUadhFI5BjuxNjHjFLWf91PJ1aIb8h1gudNi4vLnsaxCHPattAX4Q6YRsOt4G8KaMw2jdtg6nQGFiQElxN-43N6TVBbJ3s4i8cDmMj1X7m2d5-TI1LLXa0/s200/FileNames_rightClick_send_To.jpg" /></a><br />
</div><br />
Select files, right click and choose to send to this App : CmdLineToDirTxt.exe<br />
<br />
It can either save the file names to a file or copy to the clibboard. Either way it looks like this:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3BYzK2f11dp6TZbrbYHtRo1nIhXreWCM6Ki_WZ2wbxyPkgdxevBjfwS8yLVBDahBAXNbV-U97yKHfcklDIMas2mEFAlNTkOcvTKumyuy2OWxzVf50WV9Z2yuQyevl-2MRLO7MTMdOyss/s1600/File_names_file_view.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3BYzK2f11dp6TZbrbYHtRo1nIhXreWCM6Ki_WZ2wbxyPkgdxevBjfwS8yLVBDahBAXNbV-U97yKHfcklDIMas2mEFAlNTkOcvTKumyuy2OWxzVf50WV9Z2yuQyevl-2MRLO7MTMdOyss/s400/File_names_file_view.jpg" /></a><br />
</div><br />
<br />
just copy it to your send to folder (or open it and make it copy it self) <br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvk9WFx6cXSYMx0p7u6bt6fR-jCD-iNdwi0QOakATlImqWhydeMHlATLYFD6WUZ-naKDacphYisQXNEpE9Sew94I5hXxXUAhGwpU9CS1JV0xeII0qtgjUqXndO0UIJUscpZ8o7NtVLYcQ/" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="371" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvk9WFx6cXSYMx0p7u6bt6fR-jCD-iNdwi0QOakATlImqWhydeMHlATLYFD6WUZ-naKDacphYisQXNEpE9Sew94I5hXxXUAhGwpU9CS1JV0xeII0qtgjUqXndO0UIJUscpZ8o7NtVLYcQ/" width="640" /></a><br />
</div>Download it here: <a href="http://code.google.com/p/win-utils/">http://code.google.com/p/win-utils/</a> it is freeware, open source (code is available) Its just an exe but it depends on the Microsoft VB 6 Runtime <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=bf9a24f9-b5c5-48f4-8edd-cdf2d29a79d5&displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=bf9a24f9-b5c5-48f4-8edd-cdf2d29a79d5&displaylang=en</a>Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com1tag:blogger.com,1999:blog-7054646024313513303.post-28601652697377351342009-12-08T01:46:00.001-08:002009-12-08T01:56:48.669-08:00IE Default Print AND I love Java , PHP, VBA, mysql, J2ME, VB6, oracle, linux win 2000+<p class="mobile-photo"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKtLeh-6qb6RH6rCweaPyPz5zk_1fIhtuUjbmooOIrzqP2weJcNsGLYZzmr3Bph27JJfbPZh0N2KPx7RxrFUkoFrul37D_aCS2RES7CkXvKzAg0_esnraVTWQoYVc-qw-lS9DsIFTpVus/s1600-h/IE-PRINT-SETUP-706571.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKtLeh-6qb6RH6rCweaPyPz5zk_1fIhtuUjbmooOIrzqP2weJcNsGLYZzmr3Bph27JJfbPZh0N2KPx7RxrFUkoFrul37D_aCS2RES7CkXvKzAg0_esnraVTWQoYVc-qw-lS9DsIFTpVus/s320/IE-PRINT-SETUP-706571.jpg" alt="" id="BLOGGER_PHOTO_ID_5243357950031571314" border="0" /></a></p><div><span style="font-family:Arial;font-size:85%;">HEADER</span></div> <div><span style="font-family:Arial;font-size:85%;"></span> </div> <div><span style="font-family:Arial;font-size:85%;">&w&bPage &p of &P</span></div> <div><span style="font-family:Arial;font-size:85%;"></span> </div> <div><span style="font-family:Arial;font-size:85%;">FOOTER</span></div> <div><span style="font-family:Arial;font-size:85%;">&u&b&d</span></div> <div><span style="font-family:Arial;font-size:85%;"></span> </div><br /><br /><br><br /><br />HEADER<br><br /> <br />&w&bPage &p of &P<br /><br /><br><br /> <br />FOOTER<br><br />&u&b&d<br /> <br /><br><br><br />--------------------------<br /><br><br><br />i love Java. Solve near every problem. Even UI with applets, J2ME and swing.<br /><br><br><br />Java , J2ME mysql, apache web server - with them can solve most business problemns.<br /><br><br><br />VBA - great tool - have delivered more than 10 projects using this language and it has helped with data and analysis with nearly all my other projects (in conjunction with Excel and Word). <br /><br><br><br />VB6 - the full programming part of VBA<br /> <br><br><br />Windows 2000 was when windows OS got on par with unix and beat it in usability.<br /> <br><br><br />Oracle for showing all that a database can be.<br />MySql for being free and now powerful too.<br /> <br><br><br />J2ME for being easy to put apps on mobile devices<br /> <br><br><br />Linux for great performance ++ and all free. I use <a href="http://www.google.com/search?hl=en&q=Ubuntu+burn+CD+dual+boot">Ubuntu</a>, burnt it on a CD from windows and made my system dual boot. <a href="http://www.google.com/search?hl=en&q=how+to+Ubuntu+burn+CD+dual+boot">instructions search</a><br /> <br><br><br />thank you all the folks behind these technologies!<br /> <br><br><br />Regards <br><br />Tushar Kapila <br><br><br /><a href=santaletternow.com>santaletternow.com</a> <a href=http://sel2in.com>http://sel2in.com</a><br /><br /><a href=http://stephenbrooks.org/muon1/>http://stephenbrooks.org/muon1/</a> Volunteer computer idle time to science<br /><a href=http://www.thehungersite.com>www.thehungersite.com</a> , and <a href=http://www.bhookh.com>www.bhookh.com</a> feed hungry , its free. <a href=http://www.ecologyfund.com>www.ecologyfund.com</a><br />Please add these to your start-up how to: <a href=http://tusharkapila.blogspot.com/2008/05/s.html>click here</a><br /><br /><a href="http://www.worldcommunitygrid.org/">http://www.worldcommunitygrid.org/</a> Volunteer computer idle time to help find cures for disease and other big world issues supported by IBM and other big corporatesTushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-56128215480514632632009-12-08T01:37:00.000-08:002009-12-08T01:38:30.664-08:00start firefox with a new profile - 2nd session, different set of cookiesyou can start firefox in with a new profile<br><br />with the option<br><br />--no-remote -p tushar<br><br /><br><br />To do this make a new short cut to firefox.exe<br><br /><br><br />then right click the short cut, choose properties<br><br /><br><br />at the end of the Target you will see<br><br /><br><br />\firefox.exe<br><br /><br><br />to this add a space and --no-remote -p tushar<br><br /><br><br />tushar can be your name or any string like profile2<br><br /><br><br />The complete shortcut target in windows XP or Vista will be :<br><br />E:\ProgramFiles\Mozilla\Firefox\firefox.exe -p t<br><br />(<span style="font-weight: bold;">IMPORTANT</span> for the main window which should be started first )<br><br /><br><br />then another short cut to the other firefox exe and with the no remote and other profile name:<br><br />E:\ProgramFiles\Mozilla\Firefox\firefox_prod.exe -p prod --no-remote<br><br /><br><br />You can make a copy of your current default profile folder to copy all the settings and change the folder location (make the folder first then select it when you make a new profile) can even have more than two profiles on the same computer<br><br /><br><br />can search in google for more<br><br /><br><br />if you use XP or windows 2000 and do not want both the windows to group, bunch together can makea copy of firefox.exe name it<br><br />firefox2.exe and then have the 2nd sortcut point to this exe<br><br /><br><br /><span style="font-size:130%;"><span style="color: rgb(255, 0, 0);">REMEMBER</span></span><br><br />* Making a new profile makes a seperate cookie/ settings folder also will not have old profiles history, saved passwords etc unless you copy the existing profile folder to a new one and choose that new folder as the new profiles folder.<br><br /><br><br />this can be done in the Create Profile step see images:<br><br /><br><br /><br><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0tKaJGzp1io_zc_Zl55OfyoYI-0nqwE2fVM2doHCdwEo5ppv2T95sVhbGcd6GMRBmeIGucJRpDMOJEj8mEjlxiN1Ph4Gq5MU2Fw6MvYbCaIoa2bpmxTR_Y6dVQtr04iljzUC_ngPCzrI/"><img style="cursor: pointer; width: 337px; height: 257px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0tKaJGzp1io_zc_Zl55OfyoYI-0nqwE2fVM2doHCdwEo5ppv2T95sVhbGcd6GMRBmeIGucJRpDMOJEj8mEjlxiN1Ph4Gq5MU2Fw6MvYbCaIoa2bpmxTR_Y6dVQtr04iljzUC_ngPCzrI/" alt="" border="0" /></a><br>You this screen by starting firefox with the profile option -p as in :<br><br /><b><code>E:\ProgramFiles\Mozilla\Firefox\firefox_prod.exe -p</code></b><br /><br><br><br /><br><br /><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0wpv9ZSM5OF_9T2tFisSOEzonqc68rg1m34imcBSyInWtdlkSOUdZ2PwKi4g5APStkFIUTqi23BJgkLblDTV-AQjVnv4BixV84XeRZ-0CjcN0FuiqoAExrd6IRqBf6YgQWVtdtKgeE0/" /><br><br /><br><br /><br><br><br /><br><br /><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn2oNWUv9N79ofujYculPHYg6VW9uAiJzCh0mwMgC4A0G5OWoZPDNHyNrclczWWDakN7AbvhRo4_SCmGvhHDX93HjhCExIxinmkxWqALKQhmevJR_HxUoaxJOho9qUhafmvzXw5IyOXAI/s720/ff-profile-create-choose-mathcing-folder-or-use-default.bmp.jpg" /><br><br /><br />Choose folder<br><br>Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-43887309664449418812009-10-11T10:30:00.000-07:002009-10-11T10:32:35.287-07:00love, fast lovepretty sad to hear about Prithum and his wife. they got married, had 2 kids and now cant stand one another. more sad is how they fought and dragged their families in, the police and friends. if you cannot get along go to a councilor, definitely do not fight like dogs. or just end it clean and in court.Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-2914694263145800752009-10-11T08:43:00.000-07:002009-10-11T08:44:30.903-07:00Windows add a Program to your start-up : how to<font size=+1><br />When i think all of the 100000s of computers running with their CPUs being utilized 5-20% of their capacity most of the time ... then i see this great free thingy that can help in such a profound way (help find a cancer/ other fatal disease cure) i think its a no-brainer to use<br><br /><br /><br /><br><br />Help with research, genitics, history.<strong> Volunteer your computer</strong> <a href="http://www.worldcommunitygrid.org/">http://www.worldcommunitygrid.org/</a><br><br />today! <b>It only uses free time on your pc. does not intefere with your work</b><br><br /><br /><br /><br><br /><strong>Click: hunger site <a href="http://www.thehungersite.com/">http://www.thehungersite.com/</a> , and <a href="http://www.bhookh.com/">http://www.bhookh.com/</a> , feed a hungry soul, its free.</strong><br><br /><br /><br><br /><br />Please add these to your start-up .<br><br /><br /><br /><strong><span style="font-size:14pt;"><span style="font-size:14pt;"><u>How to add to your start up?<br /><br><br /></u></span></span></strong><br><br /><br />I assume you have a windows xp or 2000 or vista?<br><br /><br /><br /><br><br />Assuming you do , one way would be to right<b> click</b> on your computers windows START button.<br><br><br /><strong>click </strong>explore<br><br /><img src=https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg10sk3UFaOXToktXe2iMXeAzKd5BiH-SyJW5ej4XJnWkngyo7mx5FrJGIeBanU2ZoowlKHOwBHiKZHzC7nPqmxAxJINdlwGOJ8ExZmWcs-mI_NzoHKdiv3B7cvI0iijQLdn6WLBaB_eNg/s720/1%20windows%20start%20button%20right%20click%20explore.bmp.jpg><br /><br><font size=-1>2nd one from top Explore not "Explore ALl Users"</font><br /><br><h6>Now you should see a folder similar to:</h6><br><br /><br />"D:\Documents and Settings\tushar\Start Menu"<br><br /><br />replace tushar with your user name (Sruthi, Joe or user1 ...)<br><br />now look for an open a folder called<br /><br><br />Programs , then another folder called Start up<br><br /><br /><br><br />This folder has things that are done everytime you start up<br><br /><br /><h6>Now you should be at a folder like</h6><br /><br><br />"D:\Documents and Settings\tushar\Start Menu\Programs\Startup"<br><br /><img src=https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqOVTpxAfuVeHdGEvOa4VXETL1HLXD3SE6efsuOMopJ5gt2VchUePKDboXX9QIqF8W7iNI5JT_-VYyeLL_d92wGHDpvgxKoZGIlkDSBX2MKecI5uW_m6iDVWuBlKYxybEForm-Z_kYQfE/s640/3%20startup%20folder.jpg><br /><br /><br><br />Here <span style="font-size:14pt;">right click</span><br><br />in the context menu that appears choose <span style="font-size:14pt;">(click)</span>New and then choose Shortcut<br><br /><br /><br /><br><br /><h6>Enter the web site address/ command :</h6> <a href="http://www.thehungersite.com/">http://www.thehungersite.com/</a> or <a href="http://www.ecologyfund.com/">http://www.ecologyfund.com/</a> hit next . name it like ecologyfund.com<br><br /><br /><b>click</b> finsh<br><br /><br />Leave me a thank you note :)<br /><br><br />your done. <a href=http://picasaweb.google.com/Tushar.Kapila/AddProgramToStartUpWindows>More images click here</a><br><br /><br /><br><br />Another way is to add the browser to the start up folder (by copying a short cut to the start up folder) and then adding the pages you want opened as the home page, but then this will happen everytime you open the browser not only when you restart your browser. So the first method is better.<br /><br><br />I hope this helps some of you put programs on your start up, especially the cancer cure one. also you can find programs you do not want and move them from your start up folder.<br /><br><br><br /><b>Note:</b> Some other programs reside in the registry's start up folder and others are services (control panel / Administrative Tools)<br /><br><br /></font>Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0tag:blogger.com,1999:blog-7054646024313513303.post-14486084826331040212009-10-11T08:33:00.000-07:002009-10-11T08:37:10.774-07:00Windows add a Program to your start-up : how to<font size=+1><br />When i think all of the 100000s of computers running with their CPUs being utilized 5-20% of their capacity most of the time ... then i see this great free thingy that can help in such a profound way (help find a cancer/ other fatal disease cure) i think its a no-brainer to use<br><br /><br /><br /><br><br />Help with research, genitics, history.<strong> Volunteer your computer</strong> <a href="http://www.worldcommunitygrid.org/">http://www.worldcommunitygrid.org/</a><br><br />today! <b>It only uses free time on your pc. does not intefere with your work</b><br><br /><br /><br /><br><br /><strong>Click: hunger site <a href="http://www.thehungersite.com/">http://www.thehungersite.com/</a> , and <a href="http://www.bhookh.com/">http://www.bhookh.com/</a> , feed a hungry soul, its free.</strong><br><br /><br /><br><br /><br />Please add these to your start-up .<br><br /><br /><br /><strong><span style="font-size:14pt;"><span style="font-size:14pt;"><u>How to add to your start up?<br /><br><br /></u></span></span></strong><br><br /><br />I assume you have a windows xp or 2000 or vista?<br><br /><br /><br /><br><br />Assuming you do , one way would be to right<b> click</b> on your computers windows START button.<br><br><br /><strong>click </strong>explore<br><br /><img src=https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg10sk3UFaOXToktXe2iMXeAzKd5BiH-SyJW5ej4XJnWkngyo7mx5FrJGIeBanU2ZoowlKHOwBHiKZHzC7nPqmxAxJINdlwGOJ8ExZmWcs-mI_NzoHKdiv3B7cvI0iijQLdn6WLBaB_eNg/s720/1%20windows%20start%20button%20right%20click%20explore.bmp.jpg><br /><br><font size=-1>2nd one from top Explore not "Explore ALl Users"</font><br /><br><h6>Now you should see a folder similar to:</h6><br><br /><br />"D:\Documents and Settings\tushar\Start Menu"<br><br /><br />replace tushar with your user name (Sruthi, Joe or user1 ...)<br><br />now look for an open a folder called<br /><br><br />Programs , then another folder called Start up<br><br /><br /><br><br />This folder has things that are done everytime you start up<br><br /><br /><h6>Now you should be at a folder like</h6><br /><br><br />"D:\Documents and Settings\tushar\Start Menu\Programs\Startup"<br><br /><img src=https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqOVTpxAfuVeHdGEvOa4VXETL1HLXD3SE6efsuOMopJ5gt2VchUePKDboXX9QIqF8W7iNI5JT_-VYyeLL_d92wGHDpvgxKoZGIlkDSBX2MKecI5uW_m6iDVWuBlKYxybEForm-Z_kYQfE/s640/3%20startup%20folder.jpg><br /><br /><br><br />Here <span style="font-size:14pt;">right click</span><br><br />in the context menu that appears choose <span style="font-size:14pt;">(click)</span>New and then choose Shortcut<br><br /><br /><br /><br><br /><h6>Enter the web site address/ command :</h6> <a href="http://www.thehungersite.com/">http://www.thehungersite.com/</a> or <a href="http://www.ecologyfund.com/">http://www.ecologyfund.com/</a> hit next . name it like ecologyfund.com<br><br /><br /><b>click</b> finsh<br><br /><br />Leave me a thank you note :)<br /><br><br />your done. <a href=http://picasaweb.google.com/Tushar.Kapila/AddProgramToStartUpWindows>More images click here</a><br><br /><br /><br><br />Another way is to add the browser to the start up folder (by copying a short cut to the start up folder) and then adding the pages you want opened as the home page, but then this will happen everytime you open the browser not only when you restart your browser. So the first method is better.<br /><br><br />I hope this helps some of you put programs on your start up, especially the cancer cure one. also you can find programs you do not want and move them from your start up folder.<br /><br><br><br /><b>Note:</b> Some other programs reside in the registry's start up folder and others are services (control panel / Administrative Tools)<br /><br><br /></font>Tushar Kapilahttp://www.blogger.com/profile/10202966346699019551noreply@blogger.com0