Friday, December 31, 2010

My Personal Experience in Electromagnetic Pulse Bomb

As an engineering professional it is very important for me to protect electronic devices, I might be working on a simple electronic project not knowing it is already sabotage by what they called the Ebomb(Electromagnetic Bomb). This weapon of destruction compromises modern civilization for it affects everything using electronics like automobiles, aircraft, banks, computers and even satellites. Just imagine you are riding in a helicopter or booking a flight and suddenly out from nowhere you been attack by this EBomb what would you expect to happen, disaster and for some it might look as an accident but for the perpetrators its terror in action.
This is not something you see in a science fiction movie, this is real technology that happens in real life, with real damages or casualties. Remembering the 9/11 attack in the U.S.

My first hand experience with what they called the E bomb was in my parents house, where I was watching T.V. a CRT T.V., I noticed that the television set was emitting different types of colors which is very unusual for a T.V. It suddenly for no reason at all turned off, after it turned off I just plug the T.V. out from the AC socket then turn it back on again, it worked for two or three times the T.V. still worked until unfortunately the T.V. on the living room died and totally damaged, the effect of this E Bomb on electronic IC's is irreversible. I also created a simple 9V DC Electronic Metronome which I wanted to use to study string instruments particularly the guitar and I remember the last time that I used it was still working, I was able to follow the tempo and the time signature until one day for no reason at all my 9V DC Metronome was no longer functioning, I traced the circuit and I found out that the IC I was using was burned out, another electronic device which I suspected it was damaged by this EBomb was my RC truck, I traced the ckt. and found out the IC was also burned out. These is an act of war crimes, these EBomb is a warfare compared to a Nuclear Bomb, although it may not harm people directly, but technologies around us are destroyed. It can kill somebody indirectly, picture yourself driving in a car not knowing all the electronics/electrical system in your automobile are burned out - this is a perfect crime for the perpetrators/criminals/thugs for they are doing this remotely that may look like an accident. However, as any form of waves in physical science it can be traced, using Doppler Effect Detection and Ranging, Electromagnetics is the key that discover the mystery behind the principle of light - LIDAR, once this thugs are located they can be charged of Genocide, just like what the Japanese Government is charged after the end of World War, Now who's bad.

I remember these EMI/EMP when I was still in college, specifically Electromagnetics and an introductory lesson in physics, which is not an easy subject, it is a combination of Electric field and Magnetic field.I just took them for granted and never take it seriously, I never knew that these disastrous waves could cause damage to electronic devices until such time I experienced it first hand. Electromagnetic waves come in different types: Visible Light, Radio waves, T.V., Microwave, Power Source/Grid, X-ray, et al. Electromagnetic waves are generated by accelerating electric charge thus causing electronic devices to heat up and consequently increases temperature hot enough to burn these devices, according to Maxwells Equation(Equation that governs electromagnetics in physics) the time varying electric field(Gauss Law) can act as a magnetic source and the time varying magnetic field(Gauss Law) can act as a source of Electric field. There is one thing we should know about electromagnetic waves are not mechanical waves, it is spatial, it travels in space or vacuum, it involves mainly on source frequency and the target frequency, like the radio waves, I think doppler effect can be used to trace these fuckin source.

Fig. James Clerk Maxwell


The cost of the facility used in generating these electromagnetic waves are not modest, it will cost the perpetrators, meaning these terrorists have the money to gain access to these technology. These weapon can be compared to the disaster that can be caused by a nuclear weapon, which I believe that an ordinary civilian cannot have access to, these weapons are military warfare, in which I also believe that have the most advance technology in electronics. Unless otherwise somebody from the services sold it to a company/civilian. Perilous world!. Tell me who are them will come to be?, How many are them are you and me?, when somebody gets in your face, just say "Have a nice day!"

These are some of the links just to have an insights about these EBomb:
Natural magnets are more weaker compared to artificial magnets, so therefore when this weapon are constructed it uses an artificial magnet, artificial magnets mostly are coil wounded around a metal, there are only three metals used to create artificial magnets namely: iron, nickel, cobalt. With iron as the most powerful artificial magnet, but these metals can be formed into an alloy which can create a more powerful magnet. Neodymium the strongest permanent magnet known may be used by these evil scientist to invent these facility to generate these EBomb.
Therefore don't ever think twice if you ever feel that your devices will suddenly feel very hot, It's not accident, it is done in purpose.

These are the following electronic/electrical devices which I believe had been damaged by these EBomb:

1. 9V DC Electronic Metronome

Its a simple 9V DC electronic metronome that I created last 2007 - used for studying stringed musical instruments, click on the link above for the ckt.

It has timer IC - 555 timer, Johnson Decade Counter, speaker, LED's, potentiometer, et al.












As I examined and traced this very simple ckt. I found out that all of the IC's I been using - the timer and the decade counter were all burned out and the temperature of the IC casing is very hot, which is a characteristic of an increase in voltage.

Given the characteristics of a speaker, it has a voice coil and a magnet, "arcing" may occur in the switch and thus creates an "inductive kick" In order to have a ckt. that protects from an "inductive kick" a resistor and a diode connected in series can be used and connect it in parallel with the speaker, it is not frequency dependent. Another way is to add a "snubber ckt.", connected in parallel with an inductor which is good for AC or square wave applications.

Unfortunately I was not able to apply the 2 techniques, maybe this might be the reason for the damage. Although proper grounding is applied and every IC has a ground connection. However, this is not the only device being damaged, the CRT T.V. on my parents living room was also damaged, this T.V. is manufactured by Philipps and I believe they have a strict quality control for their electronics.


A ceramic capacitor - 0.01uF
A resistor - 100 ohms, 1/4 watts
Fig. Snubber ckt.



Speaker:



I took out the timer and the decade counter in the IC socket. As you can see the IC is not their.





2. T.V. on the living room



This CRT T.V. is created by Philipps.

3. RC truck




4. Electric Fan




This is the radio control ckt. of my RC truck that has the transmitter, cystal(27 MHz - FCC) , IC, et al. Same thing happened to the metronome - IC burned out.


Fig. Microelectronics - used in microprocessors/IC's


Since the invention of transistors from Bell Labs, miniaturization or microscopic engineering has already been existed since 1930's. Millions of transistors can be constructed in an electronic wafer with the size of your fingertips. Just think of the technology that existed in our present time, Satellites can see people inside the buildings regardless whether your wearing something or not(pervert specific technology) and can pick up thousands of conversations all at the same time, Electromagnetic Pulse Bomb, The weather can also be controlled and manipulated nowadays, Nuclear Bomb, IPv6, Brainwave technology - that may control somebody's thoughts, and with the advent of nanotechnology everything seems to become more advance.

Fig. Miniaturization of Intel 8088 microprocessor an 8 bit microprocessor



I just hope these technologies will be used not to harm anybody but to make our lives good, It's a wonderful world, you should try it.


Other applications for Electromagnetic Waves:
  • 1) Astronomy
  • 2) Earthquakes and effects of electromagnetic waves in soil.
If you think earthquake related incident can be cause by these EBomb, I think they are.
Take a quick peek at these link: http://www.agu.org/pubs/crossref/1980/WR016i003p00574.shtml


Hypothesis:(possible culprit)

Fig. Electromagnetic spectrum is a series of continuous electromagnetic wave that travels through vacuum with the speed of light(theory of relativity), that varies with frequencies, wavelength, energy content. These include infrared, ultraviolet light, x-rays, microwave, radio, broadcasting.



ISBN 0-7172-5367-8(complete set)
ISBN 0-7172-5352-X(volume 6)
Grolier Family Encyclopedia

According to the figure above there are different types of radiation classes for electromagnetic spectrum - sources in which these electromagnetic waves may come from:
1)Electrical Power/Power Grids;
2)Inductive Heat(Coil);
3)Broadcasting Networks;
4)Microwave/Radio wave(Satellites, Transmission towers on hills);
5)Infrared;
6)Visible spectrum;
7)Ultraviolet rays;
8)X-rays(Hospitals);
9)y Radiation;
10)Cosmic rays(Space)

If you are constructing an electronic circuit, the first thing you must consider is the electromagnetic effect of your ckt. or what they called "inductive kick" or arcing in switch when you are using a coil or an inductor - this is the nearest source(wavelength) of electromagnetic waves. This is when no external electromagnetic spectrum is applied. What if their is an external electromagnetic spectrum applied. Looking at the figure above, with the 1)Power Grids/Source, 2)Broadcasting Networks, 3) Satellites/Transmission towers as the entity/company that has a greatest wavelength coverage.

Power Grids have the most greatest wavelength coverage on land surface up to billions of kilometers. A surveillance check should be made to these power grids. Satellites can check there facility inside these edifices.




Next to power grids wavelength coverage is the broadcasting netwoks. I also suspect people in these type of industries have the facility to generate these EBomb aside from the military. Looking at there financial aspect they are very capable of acquiring these technology. These type of industry have their own engineers. In Philippine setting, I long heard before about these Broadcasting Networks grudge when I was still a boy up to now. There are two major broadcasting networks whom I know have/had conflicts with each other 1) GMA; 2)ABS-CBN. Click for the complete list of broadcasting networks in the Philippines http://en.wikipedia.org/wiki/List_of_television_stations_in_the_Philippines. Considering all broadcasting networks around the globe have the capability to have access to these technology.

Aside from their own satellite facility/broadcasting facility, these companies should be check for these possible threat. This is just a hypothesis, however these entities are very well capable of having these technology. Russian roulette is not the same without a gun.

Friday, February 12, 2010

Swapping two integer values without using temporary variables in php


echo '
';
echo 'X:

';
echo 'Y:

';
echo '

';
echo '

';

$x = $_POST['x'];
$y = $_POST['y'];

function swap(&$x,&$y){
$x ^= $y ^= $x ^= $y;
}

swap($x,$y);

print "X = " .$x. "

";
print "Y = " .$y. "";


?>







Thursday, October 8, 2009

Saving images (*.JPG;*.BMP;*.PNG;*.GIF;*.*) to MySql Database

This code excerpt from one of my projects demonstrates how to save an image file like JPEG(*.jpg;*.jpeg;*.jpe;*.jfif); GIF, PNG, BMP or even All Files(*.*) into a Mysql Database server. As of the time of this writing I was using Mysql version 5.1.32

You can visit the following sites for references:



Their is a 'Browse Image' button that calls an OpenFileDialog that filters the images, once the user selected the desired image it will be displayed to the PictureBox.

After it is displayed in the PictureBox you can click on the 'Save' button to save the image to the database.



This is my the code:

------------------------------
Private mImageFile As Image
Private mImageFilePath As String


'From Browse Image button
Private Sub Buttonbrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Buttonbrowse.Click


Try


OpenFileDialogpic.Filter =
"JPEG(*.jpg;*.jpeg;*.jpe;*.jfif)|*.jpg;*.jpeg;*.jpe;*.jfif|GIF(*.
gif)|*.gif|PNG(*.png)|*.png|BMP(*.bmp)|*.bmp|All
Files(*.*)|*.*"


OpenFileDialogpic.ShowHelp = True


OpenFileDialogpic.FilterIndex = 1

OpenFileDialogpic.FileName = ""


If OpenFileDialogpic.ShowDialog = Windows.Forms.DialogResult.Cancel Then

Exit Sub

End If


If System.IO.File.Exists(OpenFileDialogpic.FileName) = False Then
Exit Sub
Else

TextBoxpicture.Text = OpenFileDialogpic.FileName
mImageFilePath = TextBoxpicture.Text

'Display image

mImageFile = Image.FromFile(mImageFilePath)

PictureBoxenrollment.Image = mImageFile
PictureBoxenrollment.Invalidate()
'TextBoxpicture.Invalidate()
End If

Catch ex As Exception
MsgBox(ex.ToString)

End Try

End Sub


'

'From Save button
'Blob image
'
Dim FileSize As UInt32

'Write an image in a stream

Dim fspic As FileStream = New FileStream(mImageFilePath, FileMode.Open, FileAccess.Read)

FileSize = fspic.Length


Dim rawdata() As Byte = New Byte(FileSize) {}


fspic.Read(rawdata, 0, FileSize)

fspic.Close()


mysqlcon.Open()


mImageFile = Image.FromFile(mImageFilePath.ToStri
ng())

Dim save As String = "INSERT INTO enrollment VALUES" & _
"('" & fname & "', '" & mname & "', '" & lname & "', " & age & "," & _ "'" & address & "', '" & gender & "', '" & date_of_birth & "', '" & place_of_birth & "'," & _ "'" & year_level & "', '" & id_no & "', '" & date_enrolled & "', '" & sy_a & "', '" & sy_b & "'," & _ "'" & contact_no & "', '" & parent_ & "', '" & guardian & "', @mImageFile , '" & transfeeree & "'," & _ "'" & date_of_transfer & "','" & transfer_in & "', '" & transfer_out & "')"

Dim cmd As New MySqlCommand(save, mysqlcon)


cmd.Parameters.AddWithValue("@mImageFile", rawdata)

'
'Blob image

cmd.ExecuteNonQuery()

mysqlcon.Close()

MessageBox.Show("Records and Image Saved!", "Save to Database", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button3, MessageBoxOptions.RightAlign, True)













Friday, May 15, 2009

Updating database in mysql using php

$Userid = $_POST['User_id'];
$Username = $_POST['User_name'];
$Userpassword = $_POST['User_password'];

mysql_connect("localhost","root","") or die ('Error: ' . mysql_error());
mysql_select_db("it");

$query = "UPDATE users SET User_id='".$Userid."', User_name='".$Username."', User_password='".$Userpassword."' WHERE User_id='".$Userid."'";

mysql_query($query) or die ('Error updating user');

echo "User updated with: " .$Userid. " " .$Username. " " .$Userpassword;


?>

Wednesday, May 13, 2009

Retrieving data from the database and printing it on the screen

mysql_connect("localhost","root","") or die ('Error: ' . mysql_error());
mysql_select_db("it");

$query = "SELECT * FROM users";
$data = mysql_query($query) or die ('Error displaying data');

while($info = mysql_fetch_array($data))
{
print "Id:" .$info['User_id'] . " ";
print "Name:" .$info['User_name']. " ";
print "Password:" .$info['User_password']. "
";

}

Inserting data into mysql database using php



$Userid = $_POST['User_id']; //this is the column of table users
$Username = $_POST['User_name']; //
$Userpassword = $_POST['User_password']; //

mysql_connect("localhost","root","") or die ('Error: ' . mysql_error());
mysql_select_db("it");

$query = "INSERT INTO users (User_id,User_name,User_password) VALUES ('".$Userid."','".$Username."','".$Userpassword."')";

mysql_query($query) or die ('Error creating users');

echo "User Created With: " .$Userid. " " .$Username. " ".$Userpassword;

?>

Monday, December 17, 2007

DateTimePicker on DatagridView


Imports System

Imports System.Windows.Forms

Public Class CalendarColumn
Inherits DataGridViewColumn

Public Sub New()
MyBase.New(New CalendarCell())
End Sub

Public Overrides Property CellTemplate() As DataGridViewCell
Get
Return MyBase.CellTemplate
End Get
Set(ByVal value As DataGridViewCell)

' Ensure that the cell used for the template is a CalendarCell.
If (value IsNot Nothing) AndAlso _
Not value.GetType().IsAssignableFrom(GetType(CalendarCell)) _
Then
Throw New InvalidCastException("Must be a CalendarCell")
End If
MyBase.CellTemplate = value

End Set
End Property

End Class

Public Class CalendarCell
Inherits DataGridViewTextBoxCell

Public Sub New()
' Use the short date format.
Me.Style.Format = "d"
End Sub

Public Overrides Sub InitializeEditingControl(ByVal rowIndex As Integer, _
ByVal initialFormattedValue As Object, _
ByVal dataGridViewCellStyle As DataGridViewCellStyle)

' Set the value of the editing control to the current cell value.
MyBase.InitializeEditingControl(rowIndex, initialFormattedValue, _
dataGridViewCellStyle)

Dim ctl As CalendarEditingControl = _
CType(DataGridView.EditingControl, CalendarEditingControl)
ctl.Value = CType(Me.Value, DateTime)

End Sub

Public Overrides ReadOnly Property EditType() As Type
Get
' Return the type of the editing contol that CalendarCell uses.
Return GetType(CalendarEditingControl)
End Get
End Property

Public Overrides ReadOnly Property ValueType() As Type
Get
' Return the type of the value that CalendarCell contains.
Return GetType(DateTime)
End Get
End Property

Public Overrides ReadOnly Property DefaultNewRowValue() As Object
Get
' Use the current date and time as the default value.
Return DateTime.Now
End Get
End Property

End Class

Class CalendarEditingControl
Inherits DateTimePicker
Implements IDataGridViewEditingControl

Private dataGridViewControl As DataGridView
Private valueIsChanged As Boolean = False
Private rowIndexNum As Integer

Public Sub New()
Me.Format = DateTimePickerFormat.Short
End Sub

Public Property EditingControlFormattedValue() As Object _
Implements IDataGridViewEditingControl.EditingControlFormattedValue

Get
Return Me.Value.ToShortDateString()
End Get

Set(ByVal value As Object)
If TypeOf value Is String Then
Me.Value = DateTime.Parse(CStr(value))
End If
End Set

End Property

Public Function GetEditingControlFormattedValue(ByVal context _
As DataGridViewDataErrorContexts) As Object _
Implements IDataGridViewEditingControl.GetEditingControlFormattedValue

Return Me.Value.ToShortDateString()

End Function

Public Sub ApplyCellStyleToEditingControl(ByVal dataGridViewCellStyle As _
DataGridViewCellStyle) _
Implements IDataGridViewEditingControl.ApplyCellStyleToEditingControl

Me.Font = dataGridViewCellStyle.Font
Me.CalendarForeColor = dataGridViewCellStyle.ForeColor
Me.CalendarMonthBackground = dataGridViewCellStyle.BackColor

End Sub

Public Property EditingControlRowIndex() As Integer _
Implements IDataGridViewEditingControl.EditingControlRowIndex

Get
Return rowIndexNum
End Get
Set(ByVal value As Integer)
rowIndexNum = value
End Set

End Property

Public Function EditingControlWantsInputKey(ByVal key As Keys, _
ByVal dataGridViewWantsInputKey As Boolean) As Boolean _
Implements IDataGridViewEditingControl.EditingControlWantsInputKey

' Let the DateTimePicker handle the keys listed.
Select Case key And Keys.KeyCode
Case Keys.Left, Keys.Up, Keys.Down, Keys.Right, _
Keys.Home, Keys.End, Keys.PageDown, Keys.PageUp

Return True

Case Else
Return False
End Select

End Function

Public Sub PrepareEditingControlForEdit(ByVal selectAll As Boolean) _
Implements IDataGridViewEditingControl.PrepareEditingControlForEdit

' No preparation needs to be done.

End Sub

Public ReadOnly Property RepositionEditingControlOnValueChange() _
As Boolean Implements _
IDataGridViewEditingControl.RepositionEditingControlOnValueChange

Get
Return False
End Get

End Property

Public Property EditingControlDataGridView() As DataGridView _
Implements IDataGridViewEditingControl.EditingControlDataGridView

Get
Return dataGridViewControl
End Get
Set(ByVal value As DataGridView)
dataGridViewControl = value
End Set

End Property

Public Property EditingControlValueChanged() As Boolean _
Implements IDataGridViewEditingControl.EditingControlValueChanged

Get
Return valueIsChanged
End Get
Set(ByVal value As Boolean)
valueIsChanged = value
End Set

End Property

Public ReadOnly Property EditingControlCursor() As Cursor _
Implements IDataGridViewEditingControl.EditingPanelCursor

Get
Return MyBase.Cursor
End Get

End Property

Protected Overrides Sub OnValueChanged(ByVal eventargs As EventArgs)

' Notify the DataGridView that the contents of the cell have changed.
valueIsChanged = True
Me.EditingControlDataGridView.NotifyCurrentCellDirty(True)
MyBase.OnValueChanged(eventargs)

End Sub

End Class

Public Class Form1
Inherits Form

Private dataGridView1 As New DataGridView()

_
Public Shared Sub Main()
Application.Run(New Form1())
End Sub

Public Sub New()
Me.dataGridView1.Dock = DockStyle.Fill
Me.Controls.Add(Me.dataGridView1)
Me.Text = "DataGridView calendar column demo"
End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) _
Handles Me.Load

Dim col As New CalendarColumn()
Me.dataGridView1.Columns.Add(col)
Me.dataGridView1.RowCount = 5
Dim row As DataGridViewRow
For Each row In Me.dataGridView1.Rows
row.Cells(0).Value = DateTime.Now
Next row

End Sub

End Class