Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Java Kali Code - Written Long Ago this Program Created a Kaleidoscope... but JAVA Changed the Language and all Old Programs fail to Run Now...

Tye Dye Squiral Java Program Running by gvan42 gregvan


SOMEDAY... I Ought to Re Compile this Code and FIX the Errors & Make the Program Work Again... But I Kinda Doubt that will ever happen... 

 /**tds(number).java by gregvan

code for embedding in webpage....
<applet code="tds(number).class" 
height=500 width=750> </applet>
 **/

import java.applet.*;
import java.awt.*;
//~~~~~~make sure this name is exactly the same as filename~~~~~
public class tds29 extends Applet implements Runnable
{
int spin;
int tiny=1;
int tim=1;
int timFact=1;
int joe=10;
int joeFact=1;
int sd=1;
int sdFact=1;
int god;
int godFact=1;
int mod;
int god1;
int mod1;
int modFact=1;
int q=2;
int xx,yy;
int rr,gg,bb;//color variables 
int bw;//black and white 
int bwq=1;    
int rq=1; // color up-down factors
int gq=1;
int bq=1;

int w,ww;
int wwf=1;
int wf=1;

int cx; //center of screen x
int cy; //center of screen y

        Thread    myRunner;
        Image     buffer;         
        Dimension appletSize;     
        Graphics  bufferGraphics; 

        public void init()
        {    
        setBackground(Color.black);
        appletSize = this.getSize();     
        buffer = this.createImage(appletSize.width, appletSize.height);
        bufferGraphics = buffer.getGraphics();
	cx=appletSize.width/2;
        cy=appletSize.height/2;

        }

        public void start()
        {
             if (myRunner == null)
             {
                 myRunner = new Thread(this);
                 myRunner.start();
             }
        }

        public void run()
        {
            Thread  executingThread;                   
            executingThread = Thread.currentThread();

            while (myRunner == executingThread)
            {
               //new random numbers to start animation
	 

//random starting colors
rr=(int)(Math.random() *255);
gg=(int)(Math.random() *255);
bb=(int)(Math.random() *255);
bw=(int)(Math.random() *255);
xx=gg-128;
yy=rr-128;

w=(int)(Math.random() *8);
ww=(int)(Math.random() *13);

               repaint();
               try
               {Thread.sleep(1000);}
               catch(InterruptedException e) {} 

               while (myRunner != null)
               {
                  repaint(); 
                  try
                  {Thread.sleep(100); }
                  catch (InterruptedException e) {}
               }  
           } 
        }
//~~~~~~~~drawing squares stuff~~~~~~~~~~~~~~~
public void drawSquares1(int cx,int cy,int xx,int yy,int q)
        {

bufferGraphics.fillRect(cx-xx-q,cy-yy-q,q+q,q+q);
bufferGraphics.fillRect(cx+xx-q,cy+yy-q,q+q,q+q);
bufferGraphics.fillRect(cx-yy-q,cy+xx-q,q+q,q+q);
bufferGraphics.fillRect(cx+yy-q,cy-xx-q,q+q,q+q);

bufferGraphics.fillRect(cx-xx+yy-q,cy-xx-yy-q,q+q,q+q);
bufferGraphics.fillRect(cx+xx+yy-q,cy-xx+yy-q,q+q,q+q);
bufferGraphics.fillRect(cx+xx-yy-q,cy+xx+yy-q,q+q,q+q);
bufferGraphics.fillRect(cx-xx-yy-q,cy+xx-yy-q,q+q,q+q);

}

public void drawSquares2(int cx,int cy,int xx,int yy,int q)
        {
q=q+1;

bufferGraphics.drawRect(cx-xx-q,cy-yy-q,q+q,q+q);
bufferGraphics.drawRect(cx+xx-q,cy+yy-q,q+q,q+q);
bufferGraphics.drawRect(cx-yy-q,cy+xx-q,q+q,q+q);
bufferGraphics.drawRect(cx+yy-q,cy-xx-q,q+q,q+q);

bufferGraphics.drawRect(cx-xx+yy-q,cy-xx-yy-q,q+q,q+q);
bufferGraphics.drawRect(cx+xx+yy-q,cy-xx+yy-q,q+q,q+q);
bufferGraphics.drawRect(cx+xx-yy-q,cy+xx+yy-q,q+q,q+q);
bufferGraphics.drawRect(cx-xx-yy-q,cy+xx-yy-q,q+q,q+q);
if(gg<bb){
bufferGraphics.drawLine(cx-xx,cy-yy,cx-yy,cy+xx);
bufferGraphics.drawLine(cx-xx,cy-yy,cx+yy,cy-xx);
bufferGraphics.drawLine(cx+xx,cy+yy,cx-yy,cy+xx);
bufferGraphics.drawLine(cx+xx,cy+yy,cx+yy,cy-xx);
}
if(bw>rr){
bufferGraphics.drawLine(cx-xx,cy-yy,cx,cy);
bufferGraphics.drawLine(cx+xx,cy+yy,cx,cy);
bufferGraphics.drawLine(cx-yy,cy+xx,cx,cy);
bufferGraphics.drawLine(cx+yy,cy-xx,cx,cy);

bufferGraphics.drawLine(cx-xx+yy,cy-xx-yy,cx,cy);
bufferGraphics.drawLine(cx+xx+yy,cy-xx+yy,cx,cy);
bufferGraphics.drawLine(cx+xx-yy,cy+xx+yy,cx,cy);
bufferGraphics.drawLine(cx-xx-yy,cy+xx-yy,cx,cy);
}
q=q-1;
}
//~~~end of drawing squares stuff~~~~~~~~~~~~~~~

       // make sure the animation really stops when exiting webpage
        public void stop()
        { 
          if (myRunner != null)
             { myRunner = null; }
        }

        //used to prevent blinking graphics....
        public void update(Graphics g)
        {paint(g);}

        public void paint(Graphics g)
        {
mod=mod+modFact;
if(mod>9){modFact=-1;}
if(mod<-9){modFact=1;}

//~~~~~~~tim is inside god~~~~~~~~
god=god+godFact;
if(god>12){godFact=-1;}
if(god<-12){godFact=1;

tim=tim+timFact;
if (tim>5){timFact=-1;}
if(tim<2){timFact=1;}

}//end of god

//-----------size of squares---------
sd=sd+sdFact;
if (sd > 12){sdFact=-1;}
if(sd<3){sdFact=1;}

tiny=tiny+1;
if(tiny>rr){tiny=-(rr+rr);}

joe=joe+joeFact;
if(joe>12){joeFact=-1;}
if(joe<3){joeFact=1;}

spin=spin+1;
if(spin>20){
spin=1;
for (int i3=0; i3<gg;i3++){
mod1=mod1+1;
if(mod1>10){mod1=-10;}
god1=god1+1;
if(god1>9){god1=-9;}
}}

//----------------------------------for loop--------------------------------
//for loop to paint many images before sleeping .1 second     
       for (int i=0;i<3;i++)
        {

             //color changer up counters
if(god>mod){
 rr=rr+1;
           if(rr>255){rr=1;}
gg=gg+2;
           if(gg>255){gg=1;}
bb=bb+3;
           if(bb>255){bb=1;}
bw=bw+4;
           if(bw>255){bw=1;}
}
if(god<=mod){
rr=rr+rq;
if(rr>252){rq=-1;}
if(rr<3){rq=1;}
gg=gg+gq;
if(gg>251){gq=-1;}
if(gg<4){gq=1;}
bb=bb+bq;
if(bb>250){bq=-1;}
if(bb<5){bq=1;}
bw=bw+bwq;
if(bw>249){bwq=-1;}
if(bw<6){bwq=1;}
}          
//-------------------position xx,yy----------------
w=w+wf;
if (w>12+mod){wf=-1;}
if (w<-(11+mod)){wf=1;}

ww=ww+wwf;
if(ww>11+god){wwf=-1;}
if(ww<-(12+god)){wwf=1;}
if(tiny<=0 && tiny>-rr){             
xx=xx+w;
yy=yy+ww;
}
if(tiny>0){
xx=xx+mod;
yy=yy+god;}
if(tiny<=-rr){
xx=xx+mod1;
yy=yy+god1;}

//~~~~~~~~~~check to see if off screen~~~~~~~~

if(xx>cx+100){xx=0;
yy=0;}
if(yy>cx+100){yy=0;
xx=0;}
if(xx<-(cx+100)){xx=0;
yy=0;}
if(yy<-(cx+100)){yy=0;
xx=0;}

//-----------for loop ii--------------
if(tiny<0){
joe=joe+joeFact;
if(joe>12){joeFact=-1;}
if(joe<3){joeFact=1;}
}
//for loop to paint many images     
       for (int ii=-(joe*tim);ii<((joe*tim)+1);ii=ii+joe)
        {
q=sd;
if (tiny>0){q=5;}
if(tiny<=-rr){q=mod1+10;}

xx=xx+ii;
if(tiny>=-rr){yy=yy-ii-ii;}
if(tiny<-rr){yy=yy+ii;}
//apply the new numbers for stars
        Color wNew = new Color(rr, gg, bb);
        bufferGraphics.setColor(wNew); 
//~~~~~call subroutine~~~~~~~~
drawSquares1(cx,cy,xx,yy,q);
//~~~~~~~~~~~~~~~~~~`~
//apply the new numbers for stars
        Color waxNew = new Color(256-rr, 256-gg, bb);
        bufferGraphics.setColor(waxNew); 
//~~~~call subroutine~~~~~~~~~~
drawSquares2(cx,cy,xx,yy,q);
//~~~~~~~~~~~~~~~~~`~

//~~~~~~~~~other set of squares~~~~~~~~~~
//apply the new numbers for black erase
        Color zNew = new Color(bw,bw,bw);
        bufferGraphics.setColor(zNew);
//~~~~~~~~~calculate difference~~~~~~~~~~~

xx=xx+25;
yy=yy+25;
//~~~~call subroutine~~~~~~
drawSquares1(cx,cy,xx,yy,q);
//~~~~~~~~~~~~~~~~`~
//apply the new numbers for squares
        Color zapNew = new Color(bw,rr,256-bb);
        bufferGraphics.setColor(zapNew);
//~~~call subroutine~~~~~~~~~
drawSquares2(cx,cy,xx,yy,q);
//~~~~~~~~~~~~~~~~`~
xx=xx-25;
yy=yy-25;

//~~~~~~~~~~~~~~~~`~
if(xx>yy){
//apply the new numbers for black erase
        Color zapBNew = new Color(gg,bw,bw);
        bufferGraphics.setColor(zapBNew);
}
//~~~~~~~~~~~~~~~~`~
if(xx<=yy){
//apply the new numbers for black erase
        Color zapCNew = new Color(0,0,0);
        bufferGraphics.setColor(zapCNew);
}
xx=xx+100;
yy=yy+100;
//~~~call subroutine~~~~~~~~~
drawSquares1(cx,cy,xx,yy,q);
//~~~~~~~~~~~~~~~~`~
yy=yy-100;
xx=xx-100;
xx=xx+200;
yy=yy+200;
//~~~call subroutine~~~~~~~~~
drawSquares1(cx,cy,xx,yy,q);
//~~~~~~~~~~~~~~~~`~
yy=yy-200;
xx=xx-200;
xx=xx-125;
yy=yy-125;
//~~~call subroutine~~~~~~~~~
drawSquares1(cx,cy,xx,yy,q);
//~~~~~~~~~~~~~~~~`~
yy=yy+125;
xx=xx+125;
xx=xx-225;
yy=yy-225;
//~~~call subroutine~~~~~~~~~
drawSquares1(cx,cy,xx,yy,q);
//~~~~~~~~~~~~~~~~`~
yy=yy+225;
xx=xx+225;


xx=xx-ii;
if(tiny>=-rr){yy=yy+ii+ii;}
if(tiny<-rr){yy=yy-ii;}
}//end of for ii loop

   }//end of for loop i
     // move the entire buffer onto the display screen and change
     // pixels that are a different color...
      g.drawImage(buffer, 0, 0, this);
    }
} // end of the program...

Learn Secret Communication at: *#%$@**^&*$%^% - Got Hints? Email Me at gregvan[at]yahoo[dot]com

Secret Writing Trick by gvan42


This image's file name is IMG001.jpg
If a computer was reading file names looking for
keywords... it would not select this image.

There IS a Human Readable message...

The Trick is to Use a Photo Program Like Paint Dot Net That Supports Layers... Take one layer, Like a Photo of Something.
Create another Layer with BIG BLOCK WHITE LETTERS... 

Merge the Layers After Using The Function... 
Layer Properties [Negation] 
Screenshot of Secret Writing Tutorial... by gvan42
Screenshot of Secret Writing Tutorial...

of Course, This Is NOT REAL DATA ENCRYPTION...
any Human Can Read this... Including
F*cking NARCs, NSA Employees, 
British GCHQ and Evil TrumpNiks!


Currently, email reading programs and Facebook post data mining use the basic concept of finding keywords. 
The "Three Letter Government Agencies" have
been intercepting electronic communication
for decades... a famous obsolete list of keywords
is called ECHELON. 
This list is published online and shows what
was important AT THAT TIME... 1999.

However, anyone may embed words into pictures and make statements that are difficult to read for a computer yet easy to read for a human. Facebook has a vast amount of pictures with words. Most are unsearchable using today's CAPTCHA decoding programs.

or... use PGP and write messages that are totally secure.


Criminal investigation by US Customs

After a report from RSA Data Security, Inc., who were in a licensing dispute with regard to use of the RSA algorithm in PGP, the Customs Service started a criminal investigation of Zimmermann, for allegedly violating the Arms Export Control Act.[2] The US Government had long regarded cryptographic software as a munition, and thus subject to arms trafficking export controls . At that time, the boundary between permitted ("low-strength") cryptography and impermissible ("high-strength") cryptography placed PGP well on the too-strong-to-export side (this boundary has since been relaxed). The investigation lasted three years, but was finally dropped without filing charges.



It's personal. It's private. And it's no one's business but yours. You may be planning a political campaign, discussing your taxes, or having a secret romance. Or you may be communicating with a political dissident in a repressive country. Whatever it is, you don't want your private electronic mail (email) or confidential documents read by anyone else. There's nothing wrong with asserting your privacy. Privacy is as apple-pie as the Constitution.






Can You Read WingDings? Click Here for Answer to Picture Puzzle...

InvestiGate IvankaGate - Thats what the Wingdings Say - MEME by gvan42
InvestiGate #IvankaGate
That's what the Wingdings Say
MEME by gvan42
Can You Read WingDings? Answer to Picture Puzzle= InvestiGate #IvankaGate

The Wingdings Say Investigate IvankaGate - gvan42 - The Worst Crime in The History of the USA

Trippy Hippie Gifts for Charity. BENEFIT ART SALE!  Original COSMIC Designs Painted on Coffee Cups, Buttons, Earrings, Posters and BLING! zazzle/gregvan
MAIN STOREFRONT:

 https://www.zazzle.com/store/gregvan

A Worthy Charity. Helping a Retired Lady Living on Social Security Make Ends Meet. The Rent on Her Trailer Space Just Increased... For No Reason... Greedy Landlords... 

Legalize Medicinal Psychedelics - that is what the wingdings say - MEME - gvan42
Legalize Medicinal Psychedelics
that is what the wingdings say
MEME - gvan42
~~~~~~ (~);-} ~~~~~~

BENEFIT ART SALE! All Profits Donated to Charity. Original Designs Painted on Coffee Cups, Buttons, Earrings, Posters and BLING! zazzle/gregvan https://gvan42.blogspot.com/2020/06/benefit-art-sale-all-profits-donated-to.html

State Department: US trying to remove protesters from Venezuelan Embassy in Washington DC... Part of the Failed Pompeo/Bolton Coup...

 The move to evict the protesters from the embassy came after a group of US anti-war activists began moving into the embassy last month. Medea Benjamin, one of the founders of the anti-war group Code Pink, previously told CNN that diplomats from the government of Venezuelan President Nicolas Maduro had given them access to the embassy before the diplomats left as the standoff unfolded between Maduro and Venezuelan opposition leader and self-proclaimed interim President Juan Guaido.
https://www.cnn.com/2019/05/13/politics/venezuelan-embassy-washington-dc/index.html

Great Book: "A Fine Mess -- A Global Quest for a Fairer, Simpler, and More Efficient Tax Code" by T R Reid. The Opposite of Trump's Tax Cut for the Rich Law.

https://www.amazon.com/Fine-Mess-Global-Simpler-Efficient/dp/1594205515

The U.S. tax code is a total write-off. Crammed with loopholes and special interest provisions, it works for no one except tax lawyers, accountants, and huge corporations. Not for the first time, we have reached a breaking point. That happened in 1922, and again in 1954, and again in 1986. In other words, every thirty-two years. Which means that the next complete overhaul is due in 2018. But what should be in this new tax code? Can we make the U.S. tax system simpler, fairer, and more efficient? Yes, yes, and yes. Can we cut tax rates and still bring in more revenue? Yes.  


I wonder what the Legal Consequences are of Revealing US Military Secrets 32 years later. NSA DeClassified TEMPEST.

The NSA has declassified Project TEMPEST but I still feel creepy about publishing my own experiences working for Pulse Engineering of College Park, Maryland. Where can I get some legal advice about writing a "Kiss and Tell" NSA book? A LOT has already been written. I remember when we were not even supposed to say the NAME of the place [we] worked... No Such Agency... Never Say Anything... I was always a civilian and worked for defense contractors and the Customers were the NSA and the USAF. My First Ex-Wife worked for the Agency. We went to many parties at the homes of other employees. Whenever they wanted to talk about secret subjects they would just start talking in Russian... The Women from the CIA Threw the Best Parties. They had a keg of Beer and Volleyball court in the backyard of the house. They invited a whole bunch of boys... One weekend they invited Deadheads, Pizza Drivers and Drug Dealers. The next weekend they invited the Engineering Department of Westinghouse Defense Systems...  By Co-incidence, I fit into both groups.
https://www.nsa.gov/public_info/_files/cryptologic_spectrum/tempest.pdf
http://www.wired.com/2008/04/nsa-releases-se/
https://en.wikipedia.org/wiki/Tempest_(codename)
TEMPEST is a National Security Agency specification.

How to hack a US Senator's Contact via email form. That way you can express your opinion to Many Senators. Up to 100...

Pretend to be a real voter in their state by using a valid street address. Look up an address using Google Maps  Simply select a CITY in their STATE and SEARCH for NEARBY Restaurants... They all Give a Valid Street address and Telephone number... It's possible to express your opinion to many Senators and Congressmen even though you don't live in their state... or even in the USA.



https://www.senate.gov/general/contact_information/senators_cfm.cfm

https://www.google.com/maps


Find your House of Representatives Contact Form Using this link.
http://www.house.gov/representatives/

Here are some subjects that I am concerned about:

1. Save Social Security and Medicare. The House of Representatives just passed a budget bill that cuts payment of these programs.

2. Either FIX Obamacare or create a Single Payer Medicare for all healthcare system. Obviously Trumpcare is horrible. Repeal and Replace is a mean idea and a total failure of the Republicrime party.

3. Legalize Marijuana nationwide, tax it and use that money to fund schools. This system has worked great in Colorado. Release all Prisoners that are incarcerated for Cannabis related crimes. That would save the taxpayers a fortune. It's obvious that We the People want Recreational Marijuana Legalized.

4. Let's NOT pay for the F-35 Jet Airplane. It's something that the USA Does Not Need. It's simply Corporate Welfare for Lockheed. Let's reduce spending on the military in general. One way is to stop all these wars. The USA is stuck in an Orwellian "Forever War" in Iraq, Syria and Afghanistan. What a total waste of lives and money. Have you seen photographs of the city called Mosul? We bombed the hell out of that city and now it's just a pile of rubble where homes used to stand. Total Evil in the name of fighting ISIS, a group that we "accidentally" armed.

5. Let's return the Environmental Protection Agency to an Agency that Protects the Environment. Under the failed Trump Administration it's become an agency that enables corporations to pollute. It's run by Scott Pruitt, a man that has sued the EPA to prevent the Agency from enforcing Environmental laws.

6. Trump has appointed 193 corporate CEOs and Lobbyists to senior positions in government. This enables the 1% to get their wishes granted. Read Elizabeth Warren's Opinion at: http://www.masslive.com/politics/index.ssf/2017/07/elizabeth_warren_gives_preside.html

7. Let's hire thousands of computer programmers to make our systems hacker proof. There are reports that the computers at nuclear power plants have had hacking attempts made on their business systems. If those hacking attempts ever succeed there may be a massive power outage nationwide. Looting and The End of Western Civilization will follow.

8. Let's get rid of the Electoral College. Twice it has selected a President that did not get the majority of votes. George W. Bush lost the popular vote to Al Gore and then he turned out to be a very bad quality President. Donald Trump lost the popular vote to Hillary Clinton and he also has turned out to be a bad quality President. Let's learn from our mistakes and stop using the Electoral College.

------------------------- (~);-} --------------------------------

and now for something completely different... Original Art!

Legalize the kind herb
Ghost Dance - A way to contact your ancestors, tribal memories.
Dance Crazed Natives from the Planet OOGA-BOOGA

Alien Spaceship visiting Planet eARTh... and leaving behind the Spores of Life



Popular Posts