Text file converter

This tool allows you to convert text files from one to another, making them compatible with different programs and operating systems.

Linux most likely uses UTF-8 and Windows uses ANSI

program convtext;

{$APPTYPE CONSOLE}
//source code for convtext
{$R *.res}
{$RESOURCE CONVTEXT-RES.RES}
uses
  System.SysUtils,
  windows,
  classes;

var sl:tstringlist;
hf1,hf2:thandle;
function typeStr(stype:string):Tencoding;
begin
  if comparetext('ansi',stype)=0 then
  result:=tencoding.ANSI else
  if comparetext('ascii',stype)=0 then
  result:=tencoding.ASCII else
  if comparetext('unicode',stype)=0 then
  result:=tencoding.Unicode else
  if comparetext('utf-7',stype)=0 then
  result:=tencoding.UTF7 else
  if comparetext('utf-8',stype)=0 then
  result:=tencoding.UTF8 else
  raise Exception.Create('Unknown Format Specified');
end;

begin
  try
  if paramcount<3 then
  begin
    writeln('Changes the encoding of a text file');
    writeln('Usage: ',extractfilename(paramstr(0)),
    ' input_file output_flle [in_format] out_format');
    writeln('Supported Formats:');
    writeln('ANSI');
    writeln('ASCII');
    writeln('Unicode');
    writeln('UTF-7');
    writeln('UTF-8');
    writeln;
    write('Press enter to quit...');
    readln;
    exitprocess(0);
  end;
  sl:=tstringlist.Create;
  if paramcount=4 then
  sl.LoadFromFile(paramstr(1),TypeStr(paramstr(3)))else
  sl.LoadFromFile(paramstr(1));
  sl.SaveToFile(paramstr(2),typestr(paramstr(paramcount)));
  writeln(syserrormessage(0));
  hf1:=createfile(pchar(paramstr(1)),generic_read,0,nil,open_existing,
  file_attribute_normal,0);
  hf2:=createfile(pchar(paramstr(2)),generic_read,0,nil,open_existing,
  file_attribute_normal,0);
  writeln('Original filesize: ',getfilesize(hf1,nil),' bytes');
  writeln('Converted filesize: ',getfilesize(hf2,nil),' bytes');
  writeln('Converted Percentage: ',round(100*(getfilesize(hf2,nil)/getfilesize(hf1,nil))),'%');
  closehandle(hf1);
  closehandle(hf2);
    { TODO -oUser -cConsole Main : Insert code here }
  except
    on E: Exception do
      Writeln(E.ClassName, ': ', E.Message);
  end;
end.

Search Nanny

This tool allows you to force safe search on Google, Bing,DuckDuckGo and YouTube. It even has a website blocker. It should even work on linux systems via wine. You can set it up through the network via network drive. Export

ALSO MAKE SURE TO RUN AS ADMINISTRATOR.

All programs are virus free. Some antivirus software might say its "suspicious" or a "Potentionaly Unwanted Program". Some of them rate them on what there code looks like no matter if theres a definition in the virus database. If any of them are detected any Antivirus I will zip the software with the password "justin" j is lowercase

ExecOnce

This tool executes a batch script once during the whole time the computer is on. It can limit one instance running at a time. Check the process ID in the registry to see if it is still running. All Keys that are used for telling if it should spawn a new process are volatile, meaning they are in memory not on the HDD. This tool works on Windows XP or higher or Server 2003 or higher. This tool is great for Citrix users and Terminal server users, where the startup apps can execute more than once. For server programs(like UnrealIRCd) where it creates a TCP/UDP port(yeah this could be a problem with putting it in startup and have two people under the same account logon).

All programs are virus free. Some antivirus software might say its "suspicious" or a "Potentionaly Unwanted Program". Some of them rate them on what there code looks like no matter if theres a definition in the virus database. If any of them are detected any Antivirus I will zip the software with the password "justin" j is lowercase

To see how to use it just open it with no parameters

De Sauty’s Bridge

This bridge is good for measuring Capacitors. What you do is hookup high impedance headphones to the output(V2 in the NL5 Circuit). Then adjust the resistor(s) , you can use the calculator below to find a suitable resistance for the resistors. This works like a Wheatstone bridge except one side has capacitors. The calculator calculates the unknown capacitor/resistor when the bridge is balanced. The resistors should be high and so should the function generator frequency and amplitude. The bridge is balanced when close to 0 volts is going through the headphones.

The following equation is used for figuring out the unknown capacitor(C1) when balanced. I used yacas to rewrite the equation for the other 3 variables.

$$C_{1}=C_{2}\frac{R_{2}}{R_{1}}$$

The equation will show up once MathJax loads

Here's a Javascript calculator:
Leave one answer blank, you can enter all of them just to calculate the ratios only.
C1:farads
C2:farads
R1:ohms
R2:ohms
Capacitance ratio(read-only):
Resistance ratio(read-only):
Accuracy Ratio(read-only):

Notes about this project:

  • This circuit requires a high impedance headphone(like ones designed for crystal radios) I tried it with headphones and it was quite loud for it to be balanced. I think this was because that it is sensitive to weaker signals.
  • The frequency will need to be high, so it will not work with AC Step down transformers.
  • This trick probably work best on a oscilloscope. With a oscilloscope you can use frequencies higher than sound frequencies so. Plus at lower capacitance the low current will not throw off the balance point.
  • It is probably best ti use a resistor substitution box instead of a pot. This is because with a single turn pot the resistance is hard to find and if the resistance goes below a certain level it can look like you found the correct resistance even when it is not.

With the bridge being balanced you can see it is really close to zero.

Balanced Graph

Here it is again but this time unbalanced

Unbalanced Graph

For this project we will use reference capacitors values 1nF 10nF 100nF and 1µF. R2 should be high as possible.

Professional De Sauty Bridge

Capacitor Symbol icon icon by Icons8

program desauty;
uses sysutils;
var c1,c2,r1,r2,cr,rr,ar:extended;
s:string;
label calculate;
begin
	calculate:
	c1:=0;c2:=0;r1:=0;r2:=0;
	write('Enter C1:');
	readln(s);
	if length(s)>0 then c1:=strtofloat(s);
	write('Enter C2:');
	readln(s);
	if length(s)>0 then c2:=strtofloat(s);
	write('Enter R1:');
	readln(s);
	if length(s)>0 then r1:=strtofloat(s);
	write('Enter R2:');
	readln(s);
	if length(s)>0 then r2:=strtofloat(s);
	if c1=0 then c1:=c2*r2/r1;
	if c2=0 then c2:=(c1*r1)/r2;
	if r1=0 then r1:=(c2*r2)/c1;
	if r2=0 then r2:=(c1*r1)/c2;
	cr:=c2/c1;
	rr:=r1/r2;
	ar:=cr-rr;
	Writeln('C1:',floattostr(c1));
	writeln('C2:',floattostr(c2));
	writeln('R1:',floattostr(r1));
	writeln('R2:',floattostr(r2));
	writeln('CRatio:',floattostr(cr));
	writeln('RRatio:',floattostr(rr));
	Writeln('ARatio:',floattostr(ar));
	if abs(ar)<2 then writeln('Balanced')
	else writeln('Unbalanced');
	write('Press enter to calculate again...');
	readln;
	goto calculate;
end.

DIY USB Rechargeable Flashlight

This flashlight is very simple to build. It uses a cellphone li-ion battery . Its rechargeable. It should only draw about 900mA from the battery. It lasted for about 74 minutes before it went too much below the light bulb voltage. I measured it while the light was off after it went dead it read 3.27v and while running little bit above 2v. It is best practice to not leave it on after it dies because they cannot go below 2v.

On the circuit D1 protects the USB port from any inductive spikes. D2 blocks the battery voltage going back to the power supply, plus drops the voltage to a safe level since most cellphone batteries have built-in protection circuit.

Here are the items you will need

1x 3.6v eellphone battery

1x 6v 9w halogen bulb

2x rectifier diodes

1x USB Printer cord

1x rocker switch

1x cardboard paper-towel tube

1x Solder iron,scissors nnd hot glue

How to change TV channel from the network

NOTE: THIS PLUGIN DOESN’T WORK USE THE DEFAULT SERIAL PORT ARDUINO BUILT-IN PLUGIN INSTEAD

Here is a way to change the TV channel from Arduino, Network and computer.

Here is what you will need:

1x IR LED

1x IR Receiver module

1x Arduino Board

1x NPN General Purpose Transistor

1x 470 ohm resistor

1x Mini USB Cable

Solder and soldering iron

Jumper wires

  1. Download IRLib2 and unzip the following folders to <ArduinoPath>\libraries If they are installed correctly you will see IRLib2 in the examples section of Arduino IDE.
  • IRLib2
  • IRLibFreq
  • IRLibProtocols
  • IRLibRecv
  • IRLibRecvPCI

2. Download TelnetRC.zip and modify telnetrc.ino to use your remote controller. There’s even a plugin that let’s you use Unreal DVR to schedule shows

3. Calibrate the program by using the rawRecv tool that comes with IRLib2. You can find it by looking in Examples menu under IRLib2.

4. Wire up the receiver module with Pin 3 of the receiver connected to pin 2 of the Arduino.

5. Upload telnetrc.ino with the new calibrated variables. Then solder up this circuit(for nano it is pin 3):

Transmitter schematic

How to mount small hobby solar cells, plus a USB Solar power supply?

I looked all over the internet for a way to mount these solar cells, And only come up was ones you mount on houses. So I got a cardboard box and glue gun and tried gluing them to the piece of cardboard and it was a success! I got 19 of the 0.5v 0.8A solar cells from all electronics. They work great outside, I get around 11v. Inside there’s not enough current/voltage to run the panel meter. I got about 6v in the bathroom with it being really

All glued to the cardboard

I think for right now it doesn’t charge the phone correctly because I have the green and white wires on the USB Cord tied together. A friend told me that I need resistors on the data lines. So I looked online and came across this circuit and says it will tell the phone to draw only 500mA.

Circuit for changing

I will have to wait for the resistors to come in the mail to test it with the resistors. Down below is the pinout of the regulator I used. Just that and the 19 solar cells. Each solar cell is conneted in series(the same way batteries are connected).

How to get the old Equation Editor back

In this blog I will show you where to download EQNEDT32.exe file. The Microsoft equation editor tool. It was taken out of the new versions of office and windows.

Equation Editor

To fix it and get this cool equation editor back click this link https://www.exefiles.com/en/exe/eqnedt32-exe/

Then scroll down until you see Download EQNEDT32.EXE Files (Malware-Tested 100% Clean), choose the correct version of Microsoft Office and processor type(32-bit or 64-bit) and then open the file and office should open the installer for equation editor, you may need the the office CD.

Why vintage headphones are better than today headphones

Headphones made today goes bad and doesn’t last as long. It is because of the crap quality wire they use. It’s very thin. Why the 3.5mm to RCA cord use better wires than it.

Here’s a list of symptoms of when headphone are going bad:

  • One or two speakers only sound good when the cord is push in or pulled a certain way
  • It sounds like its under water or sounds filtered.
  • When the cable moves the sound disappears

I gotten a earbuds from eBay once and they didn’t last a month. So to figure out why they didn’t last long I cut and stripped the cord. Boy was I disappointed! There was only one strain of wire for both positive and negative wire.

The wire inside of my broken headphones

Here’s what you can do to help prevent it

  1. Buy new headphones. Make sure they are the 2-cord molded in one cord(like a 3.5mm to RCA cord)
  2. Take apart the broken one and solder the a thicker wire.(That might be hard to do,but it is easier than the cheap stuff they use now a days)
  3. Get Bluetooth headphones. This is probably the easiest, but more expensive plus the headphones take batteries.

The headphones I plan on getting are from Scott for 14 dollars. They look like this:

Headphones

There is 2 pinholes for the cable. So you may be able to make your own cord or replace it if it goes bad. The headphone has a impedance of 128 ohms. He has other ones two with thick cables.

Headphone cord
Headphone cord and the pinholes on the headphones

Here is the circuit for driving a crystal headphone it will use a current limit resistor. The good news is the headphones I’m using is 128 ohms impedance so its closer. The resistor depends on the impedance of headphones. It is probably best to get a high resistance trimpot so you can start at the highest resistance and go down until the volume is perfect. You will want to make sure you solder the 2 wires on each pot the same, doesn’t matter which as long as you solder the middle pin and one of the side pins and they are the same on both. To test it you will want measure the resistance on the left and right channels only(between not ground) and make sure that it is trimpot resistance times 2.

Circuit diagram

I will try it with part of paper clips soldered to a thick 3.5mm to RCA cord(cut and stripped of course) and see if that works. I might be able to tape the paper clips to the headphones to make sure that they stay in place. But the looks of the cord it may be good quality. But to make sure of remaking the cord is easy. I decided to use a 3.5mm to RCA cord. The total cost is $30.87 including the cost of shipping and from all electronics parts and Scott’s headphones but it should work, I will update this post when I actually test it. The parts will be ordered after December 8th.

Solder Iron Foot Switch

This switch is a must for people who solder alot. It prevents the iron from overheating. Its very simple and is very cheap. Some irons like mine can heat back up fast after they have not been cooled down alot.

You will need the following parts and tools:

To break off the tab use your pliers and bend the tap back and forth until breaks off and leaves the two screws on the hot side not connected together

delphijustin Industries is an Autism Supported Business
Social Media Auto Publish Powered By : XYZScripts.com
All in one
Start
SEMrush CY LTD VA Ashburn
Your cart is empty.
Loading...