tag:blogger.com,1999:blog-78054732890240154342024-03-13T10:12:46.058+05:30code hackers blogA blog on Programming, InfoSec and Computer Forensics.TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.comBlogger89125tag:blogger.com,1999:blog-7805473289024015434.post-37531393696804032842017-04-06T21:10:00.001+05:302017-04-06T21:10:40.351+05:30How to Activate Hyper-V in Windows 8 and Above<iframe allowfullscreen="" frameborder="0" height="270" src="https://www.youtube.com/embed/9nhkxHmJeHU" width="480"></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-58271446177678706462017-03-28T09:48:00.001+05:302017-03-28T09:48:09.159+05:30How to Watch Star Wars on Command Prompt<iframe allowfullscreen="" frameborder="0" height="270" src="https://www.youtube.com/embed/vjJMCdaEuGY" width="480"></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-72376418891317055752017-03-25T12:26:00.001+05:302017-03-25T12:26:43.310+05:30How to Enable Telnet in Windows 7 and Above<iframe allowfullscreen="" frameborder="0" height="270" src="https://www.youtube.com/embed/No4MjVpQ1oQ" width="480"></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-40738597222307925692016-12-02T13:26:00.001+05:302016-12-02T13:26:00.772+05:30How to use f.lux tool in Ubuntu/Other Linux<iframe width="480" height="270" src="https://www.youtube.com/embed/PlX6vQoM9TU" frameborder="0" allowFullScreen=""></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-35036054161138172982016-11-30T23:34:00.001+05:302016-11-30T23:34:08.260+05:30How to Install f.lux in Ubuntu 16 04 or Ubuntu 15 10<iframe width="480" height="270" src="https://www.youtube.com/embed/GZC5gYXJ2ek" frameborder="0" allowFullScreen=""></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-5790886325643869542016-11-30T20:29:00.001+05:302016-11-30T20:29:59.552+05:30How to Install dcfldd and dc3dd in Linux or Ubuntu<iframe width="480" height="270" src="https://www.youtube.com/embed/K5PxZmcuvT0" frameborder="0" allowFullScreen=""></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-3655744345672619002016-11-30T16:38:00.001+05:302016-11-30T16:38:42.312+05:30How to Install Sublime Text 3 in Ubuntu 16.04 using Terminal<iframe width="480" height="270" src="https://www.youtube.com/embed/0R8GFQsWHME" frameborder="0" allowFullScreen=""></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-61845808853889494732016-11-30T02:44:00.001+05:302016-11-30T02:44:28.543+05:30How to get Hardware and System info in Linux using hardinfo tool<iframe width="480" height="270" src="https://www.youtube.com/embed/i9nhYeEKhKA" frameborder="0" allowFullScreen=""></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-44822985580410069142016-11-28T21:30:00.001+05:302016-11-28T21:30:07.760+05:30How to find out Linux Kernel version in 4 different ways.<iframe width="480" height="270" src="https://www.youtube.com/embed/EdW7_dLdRQE" frameborder="0" allowFullScreen=""></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-77185223564499738532016-11-28T20:31:00.001+05:302016-11-28T20:31:25.447+05:30How to Install Oracle Virtual Box in Ubuntu 16.04 using Bash Terminal<iframe width="459" height="344" src="https://www.youtube.com/embed/Wy-qTRifl7I" frameborder="0" allowFullScreen=""></iframe>TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-16284208763560612372015-10-02T12:25:00.001+05:302015-10-02T12:25:11.681+05:30Python | Simple PyQt5 GUI example with QSS Styling<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Hello All,<br /><br />I started reading about PyQt I decide to try the framework. Till now I had only worked with Java Swing. But after trying I seriously think that I might forget using Java Swing. I loved using PyQt5 since it is very easy and quite powerful, fast, and flexible. It does have more GUI features than Java (I don't know but with my experience in Java, I find Qt to be more mature.)<br /><br />Since I have moved to Python 3.4 and hence decided to use the latest version and that is PyQt5 instead of PyQt4.<br /><br />Today I will give you a little snippet that I wrote just as a part of learning the framework. I can't tell much about the efficiency of my code since I have very less experience with Python and Qt. So, if someone more experienced will comment or criticize my code then I am always open and would be very happy as well.<br /><br />To develop this little GUI I used GridLayout and so the GUI and its widgets are adjustable with the base window. I used QSS to design the gui with colors.<br /><br />QSS : Its a variant of CSS with most of the properties intersecting with CSS styles and specially designed to work and design the Qt guis and widgets. But instead of HTML tags we use the Widgets class name for styling them, like :- QWidget, QLineEdit, QLabel, QPushButton etc. etc.<br /><br />QSS is a feature which I loved the most since everything else was pretty much the same with Java Swings.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Screenshot</b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<img alt="[Image: H7uLJPu.png]" border="0" height="358" src="http://i.imgur.com/H7uLJPu.png" width="640" /> </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>QSS File Code</b></div>
<div style="text-align: justify;">
<br />
<pre class="prettyprint">
QWidget {
background-color: #222222;
}
QLineEdit {
background-color: aliceblue;
color: #618b38;
font-style: italic;
font-weight: bold;
}
QLabel {
background-color: #222222;
color: #618b38;
}
QPushButton {
background-color: #8b0000;
color: #ffffff;
border-radius: 5px;
border-style: none;
height: 25px;
}
</pre>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Code for GUI</b></div>
<div style="text-align: justify;">
<br />
<pre class="prettyprint">
from PyQt5 import QtCore, QtWidgets
__author__ = "Psycho_Coder"
# noinspection PyUnresolvedReferences
class MainUiWindow(object):
def __init__(self):
#Main Window
self.centralwidget = QtWidgets.QWidget(MainWindow)
"""
Using Grid Layouts for Widgets Alignment
"""
#Grid Layout for Main Grid Layout
self.maingrid_layout = QtWidgets.QGridLayout(self.centralwidget)
#Grid Layout for Result Section Layout
self.resultgird = QtWidgets.QGridLayout()
#Grid Layout for Information section
self.infogrid = QtWidgets.QGridLayout()
#Grid Layout for holding all the widgets in place
self.outergrid = QtWidgets.QGridLayout()
#Button to clear all test input
self.clearall = QtWidgets.QPushButton(self.centralwidget)
#Button to show the final result by append
self.showres = QtWidgets.QPushButton(self.centralwidget)
#Horizontal layout to hold the result section horizontally
self.horizontal_layout = QtWidgets.QHBoxLayout()
"""
Show results widgets
"""
self.fullname = QtWidgets.QLabel(self.centralwidget)
self.result = QtWidgets.QLabel(self.centralwidget)
"""
Get Names info section
"""
self.firstname = QtWidgets.QLabel(self.centralwidget)
self.lastname = QtWidgets.QLabel(self.centralwidget)
#TextBox to get user input
self.fname = QtWidgets.QLineEdit(self.centralwidget)
self.lname = QtWidgets.QLineEdit(self.centralwidget)
def init_gui(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setStyleSheet(open("style.qss", "r").read())
MainWindow.setAutoFillBackground(True)
MainWindow.resize(328, 166)
self.centralwidget.setObjectName("centralwidget")
self.maingrid_layout.setObjectName("maingrid_layout")
self.outergrid.setObjectName("outergrid")
self.infogrid.setObjectName("infogrid")
self.firstname.setObjectName("firstname")
self.infogrid.addWidget(self.firstname, 0, 0, 1, 1)
self.fname.setObjectName("fname")
self.infogrid.addWidget(self.fname, 0, 1, 1, 1)
self.lastname.setObjectName("lastname")
self.infogrid.addWidget(self.lastname, 1, 0, 1, 1)
self.lname.setObjectName("lname")
self.infogrid.addWidget(self.lname, 1, 1, 1, 1)
self.outergrid.addLayout(self.infogrid, 0, 0, 1, 1)
self.fullname.setObjectName("fullname")
self.result.setMaximumSize(QtCore.QSize(140, 16777215))
self.result.setObjectName("result")
self.resultgird.setObjectName("resultgird")
self.resultgird.addWidget(self.fullname, 0, 0, 1, 1)
self.resultgird.addWidget(self.result, 0, 1, 1, 1)
self.outergrid.addLayout(self.resultgird, 1, 0, 1, 1)
self.showres.setObjectName("showres")
self.clearall.setObjectName("clearall")
self.horizontal_layout.setObjectName("horizontal_layout")
self.horizontal_layout.addWidget(self.showres)
self.horizontal_layout.addWidget(self.clearall)
self.outergrid.addLayout(self.horizontal_layout, 2, 0, 1, 1)
self.maingrid_layout.addLayout(self.outergrid, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslate_gui(MainWindow)
#Add signals of clear to LineEdit widgets to clear the texts
self.clearall.clicked.connect(self.result.clear)
self.clearall.clicked.connect(self.lname.clear)
self.clearall.clicked.connect(self.fname.clear)
self.showres.clicked.connect(self.__name)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def __name(self):
name = self.fname.text() + " " + self.lname.text()
self.result.setText("<font color=\"#ffffff\"><b><u>" + name + "</u></b></font>")
def retranslate_gui(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Name Concatenation"))
self.lastname.setText(_translate("MainWindow", "Last Name :"))
self.firstname.setText(_translate("MainWindow", "First Name :"))
self.fullname.setText(_translate("MainWindow", "Concatenated Name :-"))
self.result.setText(_translate("MainWindow", "<Name>"))
self.showres.setText(_translate("MainWindow", "Show Name!"))
self.clearall.setText(_translate("MainWindow", "Clear All"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = MainUiWindow()
ui.init_gui(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
</pre>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
I hope you like this short snippet (not short I guess :troll:) and
probably you learnt a bit by observation how to design GUIs and use
layouts properly and how the hierarchy should be followed.<b> Share this post. Thank you.</b></div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com1tag:blogger.com,1999:blog-7805473289024015434.post-88982384404622761102015-09-20T14:27:00.000+05:302015-09-20T14:27:14.152+05:30Python CodeHack | ROT13 function in different ways<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<div style="text-align: center;">
<img alt="" class="thumbimage" data-file-height="275" data-file-width="475" height="185" src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/ROT13_table_with_example.svg/320px-ROT13_table_with_example.svg.png" width="320" /></div>
<br />
<b>"ROT13</b> ("<b>rotate by 13 places</b>", sometimes hyphenated <b>ROT-13</b>) is a simple letter substitution cipher that replaces a letter with the letter 13 letters after it in the alphabet. ROT13 is a special case of the Caesar cipher, developed in ancient Rome." -- <i>Wikipedia</i></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
In this post I will share the different ways to encode a string using ROT13 in Python, or better say in how mane ways you can do so in Python. We will show three ways to perform ROT13. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>1. First Approach</b></div>
<div style="text-align: justify;">
</div>
We make use of the <u>maketrans function</u> in string module.<br />
<br />
<pre class="prettyprint">import string
def rot13(text):
if isinstance(text, str):
rot13 = string.maketrans("ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz",
"NOPQRSTUVWXYZnopqrstuvwxyzABCDEFGHIJKLMabcdefghijklm")
return string.translate(text, rot13)
else:
raise ValueError("The parameter must be a string.")
</pre>
<br />
<b>2. Second Approach</b><br />
But the problem with the above solution is that maketrans was removed in
Python3. Instead we can use <u>bytes.maketrans()</u> for the purpose, so in
order to obtain a more generalised solution we can do it as follows :-<br />
<br />
<pre class="prettyprint">
import string
import sys
def rot13(text):
if isinstance(text, str):
if sys.version[0] == "2":
rot13_data = string.maketrans("ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz",
"NOPQRSTUVWXYZnopqrstuvwxyzABCDEFGHIJKLMabcdefghijklm")
return string.translate(text, rot13_data)
elif sys.version[0] == "3":
rot13_data = bytes.maketrans(b"ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz",
b"NOPQRSTUVWXYZnopqrstuvwxyzABCDEFGHIJKLMabcdefghijklm")
return text.translate(rot13_data)
else:
raise ValueError("The parameter must be a string.")
</pre>
<br />
You can simple send your rot13 cipher/plaintext and it will encode or decode accordingly.
<br />
<b>3. Third Approach </b><br />
<br />
Another better technique is to use codecs module and use the in built rot_13 encoding scheme which is the same. Also its more preferable.
<br />
<pre class="prettyprint">
import codecs
cipher = codecs.encode("Natsu Dragneel", "rot_13")
print(cipher)
plain = codecs.decode(cipher, "rot_13")
print(plain)
</pre>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-64532389570141853592015-09-20T12:43:00.000+05:302015-09-20T12:43:21.520+05:30Python Code for Maximum Sum Subarray Problem <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
"In computer science, the <b>maximum subarray problem</b> is the task of finding the contiguous subarray within a one-dimensional array
of numbers (containing at least one positive number) which has the
largest sum. For example, for the sequence of values −2, 1, −3, 4, −1,
2, 1, −5, 4; the contiguous subarray with the largest sum is 4, −1, 2,
1, with sum 6." <i>--Wikipedia</i></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
A linear time solution was proposed by Jay Kadane and was hence forth named as Kadane's Algorithm. The algorithm paradigm followed is <i>Dynamic Programming. </i>Here I have given you the python code for this problem.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br />
<script src="http://pastebin.com/embed_js.php?i=EkpQeCw4"></script></div>
<div style="text-align: justify;">
<br /></div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-69636354758286410012015-09-17T20:17:00.000+05:302015-09-17T20:17:01.752+05:30Must See | TEDx Talks Related to Computer Science, IT, and Technology<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
TED (<a href="http://www.ted.com/" target="_blank">http://www.ted.com/</a>)
Talks are very very inspiring for anyone irrespective of their
religion, caste, age, education, position, relation, etc. The talks are
given by high profile people that include, Scientists, Sociologist,
Researchers, Philosophers, World leaders, professors etc. <br />
<br />
These talks are in depth analysis of truth and science, Philosophy and
belief, also the lectures varies vividly and ranges in a great span of
subjects or topics or issues. In this post I have listed the very best TEDx Talks which have inspired me, these videos are very exciting and
motivational. So I hope you enjoy!</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/xx310zM3tLs/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/xx310zM3tLs?feature=player_embedded" width="320"></iframe></div>
<div style="text-align: justify;">
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/60OVlfAUPJg/0.jpg" src="https://www.youtube.com/embed/60OVlfAUPJg?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/nyLYQYHGbvI/0.jpg" src="https://www.youtube.com/embed/nyLYQYHGbvI?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/60P7717-XOQ/0.jpg" src="https://www.youtube.com/embed/60P7717-XOQ?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/wjW-v0IPT_M/0.jpg" src="https://www.youtube.com/embed/wjW-v0IPT_M?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<br />
I hope you like the video collection. I will update this post soon. If you have a link you would like to see in the above collection then please comment below and they will be added if appropriate.</div>
<div class="zemanta-related" style="clear: both; margin-top: 20px; overflow: hidden;">
<h4 class="zemanta-related-title">
Related articles</h4>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; overflow: hidden; padding: 0;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/09/peter-de-jong-attractor-in-python.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/361039741_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/09/peter-de-jong-attractor-in-python.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Peter de Jong Attractor in Python</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/bouncy-object-class-in-python-using-pygame.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/353235345_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/bouncy-object-class-in-python-using-pygame.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Bouncing Box animation in Python using PyGame</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/picture-puzzle-game-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/351431719_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/picture-puzzle-game-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Picture Puzzle Game in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/space-warrior-game-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/352530016_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/space-warrior-game-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Space Warrior Game in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/memory-puzzle-game-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/352781401_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/memory-puzzle-game-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Memory Puzzle game in Java</a></li>
</ul>
</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-89727275692773970232015-09-14T00:20:00.000+05:302015-09-14T00:20:27.906+05:30FAIDDS | Forensic Acquisition Information and Drive Data Script<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<b>Forensic Acquisition Information and Drive Data Script</b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
The script provides a simple way to gather drive information and acquire a drive from a specified device file to the
local directory. For this script to work you must run it as Administrator.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Use the -d argument to specify the device or file path. Using -lh you can get the list of hashes available.
These two options are mutually exclusive.</div>
<div style="text-align: justify;">
You can get sample reports in the <i>Sample</i> directory.<br />
<br />
<b>Get the Script</b><br />
<br />
You can get the script easily by either downloading the <a href="https://github.com/AnimeshShaw/faidds/releases/tag/v1.0" rel="nofollow" target="_blank">project release</a><b>, </b>extracting the content and then running the script, alternatively clone the project using <i>Git </i>as shown in the image below. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr61gzncIfhyphenhyphenNZzladFyI3tHgnxdJ0IX7ynan11D4DDhfjCoX5t4RybV30bYoyt5zL9Mljx1FK3tdsjZnIbWFjz7RTLe8kRm5AZGgU4y2jDYUnWZl2ZaHqpLhVPIcsNGBwHMzN_nk-tT2R/s1600/Screenshot+2015-09-13+23%253A20%253A18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr61gzncIfhyphenhyphenNZzladFyI3tHgnxdJ0IX7ynan11D4DDhfjCoX5t4RybV30bYoyt5zL9Mljx1FK3tdsjZnIbWFjz7RTLe8kRm5AZGgU4y2jDYUnWZl2ZaHqpLhVPIcsNGBwHMzN_nk-tT2R/s640/Screenshot+2015-09-13+23%253A20%253A18.png" width="640" /></a></div>
<br />
After you have done so, move to the <b>faidds</b> directory and run the script <b>faidds.py. </b>Follow the example usages stated below for better understanding of how to use the script. <br />
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<b>See all the available options</b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<pre><code>python faids.py --help
usage: faidds.py [-h] [-d DRIVE] [-D] [-c CHUNK] [-s SERIAL] [-m HASHES] [-lh]
[-dcfldd]
Forensic Acquisition Information and Drive Data Script. This script provides a
simple way to gather drive information and acquire a drive from a specified
device file to the local directory. For this script to work you must run it as
Administrator. Use the -d argument to specify the device or file path. Using
-lh you can get the list of hashes available. These two options are mutually
exclusive.
optional arguments:
-h, --help show this help message and exit
-d DRIVE, --drive DRIVE
Device file to acquire. Example: /dev/sda
-D, --DEBUG Debug mode will be activated. All the system calls are
printed
-c CHUNK, --chunk CHUNK
Size to split file in GB (1024*1024*1024)
-s SERIAL, --serial SERIAL
User specified serial number. Default is to find
serial number in drive info.
-m HASHES, --hashes HASHES
List of hash algorithms to use. Comma separated with
no spaces. (default: md5)
-lh, --list_hashes List all the Hashes
-dcfldd, --dcfldd Use dcfldd to acquire image. (default: dc3dd)
</code></pre>
</div>
<div style="text-align: justify;">
<br /></div>
<h4 style="text-align: justify;">
Example Usage</h4>
<div style="text-align: justify;">
<b>Acquire a drive image and gather information</b><br />
<br /></div>
<div style="text-align: justify;">
<pre><code>python faids.py -d /dev/sdb1 </code></pre>
</div>
<div style="text-align: justify;">
<b>Acquire a drive image and get multiple hash results</b><br />
<br /></div>
<div style="text-align: justify;">
Write the hashes as Comma separated value.<br />
<br /></div>
<div style="text-align: justify;">
<pre><code>python faids.py -d /dev/sdb1 -m md5,sha256,sha512
</code></pre>
</div>
<div style="text-align: justify;">
<b>Get list of all available hashes</b><br />
<br /></div>
<div style="text-align: justify;">
<pre><code>python faids.py -lh
</code></pre>
</div>
<div style="text-align: justify;">
<i>Available hashes</i>: md5, sha1, sha256, sha384 and sha512</div>
<h4 style="text-align: justify;">
Note</h4>
<div style="text-align: justify;">
This script was adopted from <a href="https://github.com/cutaway/faidds">here</a>. I have refactored it and made it more readable
with a better documentation and I plan to add some more new features later.</div>
<div style="text-align: justify;">
<br />
The code is hackable and you can add many more new features to the script. I hope you liked this post. Share this post, and leave a comment.<br />
<br />
Thank you,<br />
Sincerely,<br />
Psycho_Coder.</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-23312660590892203902015-09-07T20:46:00.000+05:302015-09-07T20:46:30.164+05:30[Research Paper] A Heuristic Approach to Factoid Question Generation from Sentence<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<i><b><img alt="" data-reactid=".4.0.0.$TcpT7MW=1png" src="http://i.imgur.com/TcpT7MW.png" style="max-height: 100%; max-width: 100%;" /> </b></i></div>
<div style="text-align: justify;">
<i><b> </b></i></div>
<div style="text-align: justify;">
<i><b>Abstract: </b>Question Generation (QG) and Question Answering (QA) are among the many challenges in natural language generation and natural language understanding. An automated QG system focuses on generation of expressive and factoid questions which assist in meetings, customer helpline, specific domain services, and Educational Institutes etc. In this paper, the proposed system addresses the generation of factoid or wh-questions from sentences in a corpus consisting of factual, descriptive and unbiased details. We discuss our heuristic algorithm for sentence simplification or pre-processing and the knowledge base extracted from previous step is stored in a structured format which assists us in further processing. We further discuss the sentence semantic relation which enables us to construct questions following certain recognizable patterns among different sentence entities, following by the evaluation of question generated. </i></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<a href="http://ijraset.com/fileserve.php?FID=2626" rel="nofollow" target="_blank">Read the Complete paper here</a></div>
<div class="zemanta-related" style="clear: both; margin-top: 20px; overflow: hidden;">
<h4 class="zemanta-related-title">
Related articles</h4>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; overflow: hidden; padding: 0;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/fuzzy-string-matching-or-searching-with-python.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348690190_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/fuzzy-string-matching-or-searching-with-python.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Fuzzy String Matching or Searching with Python Code</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/a-gentle-introduction-to-textblob-for.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348403571_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/a-gentle-introduction-to-textblob-for.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">A Gentle Introduction to TextBlob for NLP</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/comma-as-sequential-evaluation-operator.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/347546702_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/comma-as-sequential-evaluation-operator.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Comma as Sequential-Evaluation Operator in C/C++</a></li>
</ul>
</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-70900810710931828062015-09-06T21:52:00.003+05:302015-09-06T21:52:55.640+05:30Online Hash Generator with PHP Source Code<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
It's an old little project that I made just to kill time, nothing more. Take the code and hack it in every way you want :D,</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<img alt="[Image: aOMecsk.png]" border="0" height="439" src="http://i.imgur.com/aOMecsk.png" width="640" /><b> </b></div>
<div style="text-align: justify;">
<b>Result:</b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<img alt="[Image: qN2iBNJ.png]" border="0" height="261" src="http://i.imgur.com/qN2iBNJ.png" width="640" /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
The Project is OpenSource and hosted on github : <a href="https://github.com/AnimeshShaw/Online-Hash-Generator" rel="nofollow" target="_blank">https://github.com/AnimeshShaw/Online-Hash-Generator</a><br /><br />Before trying it yourself please read the HelpDocs: <a href="https://github.com/AnimeshShaw/Online-Hash-Generator/wiki/Help-Docs" rel="nofollow" target="_blank">https://github.com/AnimeshShaw/Online-Hash-Generator/wiki/Help-Docs</a></div>
<div style="text-align: justify;">
</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-53683413361010363892015-09-06T20:37:00.000+05:302015-09-06T20:37:28.411+05:30Peter de Jong Attractor in Python<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
It's pretty simple and I have specially given the code in python which demonstrates the concept. For details on Attractors please refer wikipedia. I have used the Python <b>pygame</b> module for graphics.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Here's the end result:-</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: center;">
<img alt="[Image: GOVr9W9.png]" border="0" src="http://i.imgur.com/GOVr9W9.png" height="417" width="640" /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Here's the code:</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<script src="https://gist.github.com/AnimeshShaw/267b7ba82ffe5e33b326.js"></script>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
I have used two custom fonts as you can see in the code above. You can get them from <a href="http://www.myfontfree.com/lunchtime_doubly_so-myfontfreecom84f2365.htm" rel="nofollow" target="_blank">here</a> and <a href="http://www.myfontfree.com/return_of_ganon-myfontfreecom84f2322.htm" rel="nofollow" target="_blank">here</a>. You can use either system font or download two new fonts and put them in the same execution directory. Make sure you edit the code with proper font names. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<pre class="prettyprint">self.xn, self.yn = ( sin( self.constants["a"] * self.yn ) - cos ( self.constants["b"] \
* self.xn ) ), ( sin( self.constants["c"] * self.xn ) - cos( self.constants["d"] * self.yn ) )
# xn, yn = ( d * sin( a * xn ) - sin ( b * yn ) ), ( c * cos( a * xn ) + cos( b * yn ) )
self.coords.append( ( self.xn, self.yn ) )
pygame.draw.circle( self.screen, self.grayshade , ( self.width // 2 + \
int( 120 * self.xn ), self.height // 2 + int( 120 * self.yn ) ), 1, 1 )
</pre>
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
Changing the constants <b>a,b, c</b> and varying the number of iteration you can create many more custom shapes. So be creative and start hacking!</div>
<div class="zemanta-related" style="clear: both; margin-top: 20px; overflow: hidden; text-align: justify;">
<h4 class="zemanta-related-title">
Related articles</h4>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0px; overflow: hidden; padding: 0px;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: transparent none repeat scroll 0% 0%; display: block; float: left; font-size: 11px; list-style: outside none none; margin: 2px 10px 10px 2px; padding: 0px; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/bouncy-object-class-in-python-using-pygame.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/353235345_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/bouncy-object-class-in-python-using-pygame.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Bouncing Box animation in Python using PyGame</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: transparent none repeat scroll 0% 0%; display: block; float: left; font-size: 11px; list-style: outside none none; margin: 2px 10px 10px 2px; padding: 0px; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/code-for-damerau-lavenshtein-distance.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/noimg_19_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/code-for-damerau-lavenshtein-distance.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Code for Damerau Lavenshtein Distance in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: transparent none repeat scroll 0% 0%; display: block; float: left; font-size: 11px; list-style: outside none none; margin: 2px 10px 10px 2px; padding: 0px; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/modified-atbash-cipher-code-in-python.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348935286_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/modified-atbash-cipher-code-in-python.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Modified Atbash Cipher code in Python</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: transparent none repeat scroll 0% 0%; display: block; float: left; font-size: 11px; list-style: outside none none; margin: 2px 10px 10px 2px; padding: 0px; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/guess-number-cli-game-in-python.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348034792_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/guess-number-cli-game-in-python.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Guess the Number CLI Game in Python</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: transparent none repeat scroll 0% 0%; display: block; float: left; font-size: 11px; list-style: outside none none; margin: 2px 10px 10px 2px; padding: 0px; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/hash-algorithm-identifier-identify.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348247365_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/hash-algorithm-identifier-identify.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Hash Algorithm Identifier | Identify CryptoHash Types</a></li>
</ul>
</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-57380257808199630112015-08-29T19:54:00.001+05:302015-08-29T19:54:08.976+05:30Conduit Search Protect Disinfector Tool<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<span style="font-size: large;"><span style="font-weight: bold;"><span style="color: #3399ff;">ConduitSPKiller v1.0</span></span></span><br />
<br />
<span style="font-size: medium;"><span style="color: #ffcc33;"><span style="font-weight: bold;">Description:</span></span> </span><br />
<br />
Removes Conduit Search Protect (this is not the same as Conduit Toolbar!)<br />
<br />
<span style="color: #ff3333;">Important!</span> Backup your files and your registry! I take no responsibility if you loose data, because you forget to create backups.<br />
<br />
<span style="font-weight: bold;">What is Conduit Search Protect?</span><br />
<br />
Conduit Search Protect comes often bundled with installers of other
programs, e.g., PowerISO. It is classified as potentially unwanted
program (PUP), meaning, no one with a right mind would actually want
that on his/her PC.<br />
<br />
Conduit Search Protect sets your browser's default home page, new tab settings and search engine to search.conduit.com or <a href="http://www.trovi.com/" target="_blank">http://www.trovi.com</a>.<br />
It is hard to get rid off and blocks any attempts to change the browser
settings back. Other symptoms are unwanted pop-up and in-text
advertisements.<br />
Conduit Search Protect infected PCs usually have an icon showing a blue shied with a white magnifying class in your taskbar.<br />
<br />
Conduit Search Protect can cause severe problems after using the Conduit
Uninstaller, it may even render your system unbootable (see <a href="http://www.bleepingcomputer.com/forums/t/522327/uninstalling-conduit-searchprotect-deletes-ntldr-making-windows-xp-unbootable/" target="_blank">link</a>)<br />
<br />
<span style="font-size: medium;"><span style="color: #ffcc33;"><span style="font-weight: bold;">Tested on:</span></span> </span><br />
<br />
This version was only tested for Windows XP so far.<br />
You can use this script for other operating systems as well, however, it
is possible that not all remnants can be removed in that case.</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/W8yhYYpYhsw/0.jpg" src="https://www.youtube.com/embed/W8yhYYpYhsw?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<br />
<span style="font-size: medium;"><span style="color: #ffcc33;"><span style="font-weight: bold;">Usage: </span></span></span><br />
</div>
<ul style="text-align: justify;">
<li>Backup important files</li>
<li>Backup your registry (e.g. using <a href="http://www.bleepingcomputer.com/download/erunt/" target="_blank"><span style="text-decoration: underline;"><span style="color: #33ffff;">ERUNT</span></span></a>)</li>
<li>Copy & Paste the source into notepad.</li>
<li>Save as <span style="color: #ff6633;">ConduitSPKiller.bat </span></li>
<li>Run.<br />
</li>
</ul>
<div style="text-align: justify;">
Note: A command window will pop up and close again. This is quite
normal. The disinfector will selfdestruct, but leave a log.txt in the
current working directory. If you encounter any problems, post that log
file.<br />
Some error messages in the log file are normal.<br /><span style="font-size: medium;"></span><br /><span style="font-size: medium;">
<span style="color: #ffcc33;"><span style="font-weight: bold;">Source:</span></span></span><br /><span style="font-size: medium;">
</span><br /><a href="https://github.com/Doubleendedqueue/DisinfectionScripts/blob/master/conduitspkiller.bat" target="_blank">https://github.com/Doubleendedqueue/DisinfectionScripts/blob/master/conduitspkiller.bat</a></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<u>Credits for Code and Article: <b>Deque</b></u> </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-47339093720193358272015-07-20T00:22:00.000+05:302015-07-20T00:22:18.081+05:30Bouncing Box animation in Python using PyGame<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Bouncy is a class which demonstrates Bouncing rectangle animation which
options like resolution, bouncy rectangle size, speed. Whenever it
collides with the borders or wall it plays a sound. The code doesn't
have any Magic Numbers, everything has been named pretty well so that it
is readable to most and many error handling cases has been handled
(These being the reason that the code is long else it can be reduced).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgthDmyqqkeq05NdQraSiYi_nAdQ9VAwrnU53YUyqjqm9V5XWKr3At6xMb_zkUsYeL3ijppg-DT_D1pqbprnZtl2WAyAQ40HcklodOWO4PPektKb5nzLrj1Gy98J2QssmsyhyX9JAbXHQ5p/s1600/Screenshot+2015-07-19+22%253A37%253A09.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgthDmyqqkeq05NdQraSiYi_nAdQ9VAwrnU53YUyqjqm9V5XWKr3At6xMb_zkUsYeL3ijppg-DT_D1pqbprnZtl2WAyAQ40HcklodOWO4PPektKb5nzLrj1Gy98J2QssmsyhyX9JAbXHQ5p/s400/Screenshot+2015-07-19+22%253A37%253A09.png" width="400" /></a></div>
<br />
<span style="font-weight: bold;">How to use ?</span><br />
<br />
Just initialize the class with the parameters. if you don't give any params a default value is taken.<br />
<br />
<div style="text-align: left;">
Download the Sound from here : <a href="https://mega.co.nz/#%2145VTzKxK%21vsx-IBhnGNEGvoZMSYdCod_ORMjsfEQ4YxcE3DW8Z28" target="_blank">https://mega.co.nz/#!45VTzKxK!vsx-IBhnGNEGvoZMSYdCod_ORMjsfEQ4YxcE3DW8Z28</a></div>
<br />
<span style="text-decoration: underline;">Parameters :- </span><br />
<br />
1. resolution : Takes a tuple of values for Screen Size like (800, 600). Default Value : (640, 480)<br />
2. rectobj_size : Takes a tuple of values for rectangle object size like (40, 30). Default Value : (50, 50)<br />
3. speed : Animation Speed. Min value 1<br />
<br />
<span style="font-weight: bold;">Example :- </span><br />
<br />
<span style="color: #0b5394;">Bouncy( ( 600, 400 ), ( 40, 40 ), 5 ) or Bouncy( resolution = ( 600, 400 ), rectobj_size = ( 40, 40 ), speed = 5 )</span> <br />
<br />
<span style="font-weight: bold;">Code:</span></div>
<div style="text-align: justify;">
<br />
<script src="https://gist.github.com/AnimeshShaw/abd86e680fd2ea28c572.js"></script></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-59220830414224727192015-07-19T22:22:00.002+05:302015-07-19T22:22:57.012+05:30Create basic shapes using PyGame<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
We create a basic window in Python and draw the basic geometrical shapes like Rectangle, Circle, Line, ellipse or polygon etc. You should have <b>pygame </b>installed else the code will not execute and throw an ImportError.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi33OY2i_ZJ_j1qluvuaF2IbrxuGrXt05h6m0aQNXXISJ1ry6vHP4NrOeEjrusV7qSEZltV0J1MG2ncAJUv6mi6fOPxt-VuYPYUVr77s6oGUItobqFwODNtqd5CmHLi4ybBjjq37IyVDmCO/s1600/Screenshot+2015-07-19+22%253A17%253A32.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi33OY2i_ZJ_j1qluvuaF2IbrxuGrXt05h6m0aQNXXISJ1ry6vHP4NrOeEjrusV7qSEZltV0J1MG2ncAJUv6mi6fOPxt-VuYPYUVr77s6oGUItobqFwODNtqd5CmHLi4ybBjjq37IyVDmCO/s1600/Screenshot+2015-07-19+22%253A17%253A32.png" /></a></div>
<br />
<div style="text-align: justify;">
</div>
<br />
<br />
<div style="text-align: justify;">
<br />
<script src="https://gist.github.com/AnimeshShaw/2ac7ca7d7ffef288061d.js"></script>
</div>
<div style="text-align: justify;">
<br /></div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-19879560097269349602015-07-16T18:21:00.000+05:302015-07-16T18:21:51.939+05:30Memory Puzzle game in Java<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Memory puzzle is a simple puzzle game of flipping and discovering pairs
of similar cards. The player flips inverted cards one by one. If two
cards flipped are same, they stay in that state, else they are flipped
back to their original inverted state. The game ends when all the cards
are flipped in pairs successfully.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Screenshot</b> </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<img alt="[Image: memorypuzzle.png]" border="0" src="http://s14.postimg.org/3of3meo1t/memorypuzzle.png" /> </div>
<div style="text-align: justify;">
<br /></div>
<h3 style="text-align: justify;">
<b>Source Code</b></h3>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<b>Cards.java</b></div>
<div style="text-align: justify;">
<br />
<pre class="prettyprint">import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
public class Cards {
private static BufferedImage card[] = new BufferedImage[9];
private static BufferedImage cardBack;
private static String cardFileName[] = {"1.jpg", "2.jpg", "3.jpg", "4.jpg",
"5.jpg", "6.jpg", "7.jpg", "8.jpg", "9.jpg"};
private static String cardBackName = "back.jpg";
static {
for(int i = 0; i < cardFileName.length; i++) {
try {
card[i] = ImageIO.read(Cards.class.getResourceAsStream(cardFileName[i]));
}
catch(Exception e) {
e.printStackTrace();
}
}
try {
cardBack = ImageIO.read(Cards.class.getResourceAsStream(cardBackName));
}
catch(Exception e) {
e.printStackTrace();
}
}
public static BufferedImage get(int v) {
return card[v];
}
public static BufferedImage getBack() {
return cardBack;
}
}
</pre>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>CardSlot.java</b></div>
<div style="text-align: justify;">
<br />
<pre class="prettyprint">import java.awt.image.BufferedImage;
public class CardSlot {
private BufferedImage image;
private boolean visible, pairedUp;
private int value;
public CardSlot(int card) {
value = card;
image = Cards.get(card);
visible = false;
pairedUp = false;
}
public boolean isVisible() {
return visible;
}
public boolean flipCard() {
if(!pairedUp) {
visible = !visible;
return true;
}
return false;
}
public boolean isPairedUp() {
return pairedUp;
}
public void pairUp() {
pairedUp = true;
}
public BufferedImage getImage() {
if(isVisible())
return image;
else
return Cards.getBack();
}
public int getValue() {
return value;
}
}
</pre>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Game.java</b></div>
<div style="text-align: justify;">
<br />
<pre class="prettyprint">import java.awt.event.KeyEvent;
import java.util.Random;
public class Game {
private int width;
private int difficulty;
private int[][] board;
private int zX, zY;
private int forbidden;
public Game(int width, int difficulty) {
this.width = width;
this.difficulty = difficulty;
board = new int[width][width];
int ctr = 1;
for(int i = 0; i < width; i++) {
for(int j = 0; j < width; j++) {
board[j][i] = ctr++;
}
}
board[width - 1][width - 1] = 0;
zX = width - 1;
zY = width - 1;
forbidden = 2;
shuffle();
}
private void shuffle() {
Random random = new Random();
int i = 0;
while(i < difficulty) {
int v = random.nextInt(4);
switch(v) {
case 1:
if(up() && forbidden != 1) {
i++;
forbidden = 2;
}
break;
case 2:
if(down() && forbidden != 2) {
i++;
forbidden = 1;
}
break;
case 3:
if(left() && forbidden != 3) {
i++;
forbidden = 4;
}
break;
case 4:
if(right() && forbidden != 4) {
i++;
forbidden = 3;
}
break;
}
}
}
private boolean up() {
if(zY > 0) {
board[zX][zY] = board[zX][zY - 1];
board[zX][zY - 1] = 0;
zY--;
return true;
}
return false;
}
private boolean down() {
if(zY < width - 1) {
board[zX][zY] = board[zX][zY + 1];
board[zX][zY + 1] = 0;
zY++;
return true;
}
return false;
}
private boolean left() {
if(zX > 0) {
board[zX][zY] = board[zX - 1][zY];
board[zX - 1][zY] = 0;
zX--;
return true;
}
return false;
}
private boolean right() {
if(zX < width - 1) {
board[zX][zY] = board[zX + 1][zY];
board[zX + 1][zY] = 0;
zX++;
return true;
}
return false;
}
public boolean isCorrect() {
int ctr = 1;
for(int i = 0; i < width; i++) {
for(int j = 0; j < width; j++) {
if(board[j][i] == ctr++ || (i == width - 1 && j == width - 1))
continue;
else
return false;
}
}
return true;
}
public int getValueAt(int x, int y) {
if(x >= 0 && x <= width - 1 && y >= 0 && y <= width-1) {
return board[x][y];
}
return 0;
}
public void keyPressed(int key) {
switch(key) {
case KeyEvent.VK_UP:
up();
break;
case KeyEvent.VK_DOWN:
down();
break;
case KeyEvent.VK_LEFT:
left();
break;
case KeyEvent.VK_RIGHT:
right();
break;
}
}
}
</pre>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>SlidingPuzzlePanel.java</b></div>
<div style="text-align: justify;">
<br />
<pre class="prettyprint">import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
public class SlidingPuzzlePanel extends JPanel {
private static final long serialVersionUID = 4501938941435763747L;
private static final int SIDE = 4;
private static final int FONT_SIZE = 40;
private static int LEVEL = 10;
private Game game;
private Font font;
private Color background, foreground, borderColor;
private int slotWidth, slotHeight, slotXOffset, slotYOffset;
private int inX, inY, xOffset, yOffset;
private boolean dragged;
public SlidingPuzzlePanel() {
game = new Game(SIDE, LEVEL);
font = new Font(Font.SERIF, Font.BOLD, FONT_SIZE);
slotWidth = SlidingPuzzle.WIDTH / SIDE;
slotHeight = SlidingPuzzle.HEIGHT / SIDE;
slotXOffset = slotWidth / 2 - FONT_SIZE / 4;
slotYOffset = slotHeight / 2 + FONT_SIZE / 3;
background = new Color(123, 155, 232);
foreground = new Color(123, 255, 132);
borderColor = new Color(223, 255, 132);
dragged = false;
setFocusable(true);
requestFocus();
addMouseMotionListener(new MouseMotionAdapter() {
@Override
public void mouseDragged(MouseEvent e) {
if(dragged) {
inX = e.getXOnScreen() - xOffset;
inY = e.getYOnScreen() - yOffset;
SlidingPuzzle.frame.setLocation(inX, inY);
}
else {
dragged = true;
xOffset = e.getX();
yOffset = e.getY();
}
}
@Override
public void mouseMoved(MouseEvent e) {
dragged = false;
}
});
addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
int key = e.getKeyCode();
switch(key) {
case KeyEvent.VK_ESCAPE:
SlidingPuzzle.frame.dispose();
break;
default:
game.keyPressed(key);
repaint();
if(game.isCorrect()) {
JOptionPane.showMessageDialog(SlidingPuzzle.frame, "You Win!");
LEVEL += 10;
game = new Game(SIDE, LEVEL);
repaint();
}
}
}
});
}
@Override
public void paint(Graphics g) {
Graphics2D g2d = (Graphics2D)g;
g2d.setFont(font);
g2d.setColor(background);
g2d.fillRect(0, 0, getWidth(), getHeight());
drawBorders(g2d);
g2d.setColor(foreground);
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 4; j++) {
if(game.getValueAt(j, i) != 0)
g2d.drawString(""+game.getValueAt(j, i), slotXOffset + j * slotWidth,
slotYOffset + i * slotHeight);
}
}
}
private void drawBorders(Graphics2D g2d) {
g2d.setColor(borderColor);
for(int i = 0; i < 3; i++)
g2d.drawRect(i, i, SlidingPuzzle.WIDTH - 1 - 2 * i, SlidingPuzzle.HEIGHT - 1 - 2 * i);
for(int i = 1; i < 4; i++) {
int level = i * slotHeight;
g2d.drawLine(0, level, SlidingPuzzle.WIDTH, level);
g2d.drawLine(0, level + 1, SlidingPuzzle.WIDTH, level + 1);
g2d.drawLine(0, level + 2, SlidingPuzzle.WIDTH, level + 2);
g2d.drawLine(level, 0, level, SlidingPuzzle.HEIGHT);
g2d.drawLine(level + 1, 0, level + 1, SlidingPuzzle.HEIGHT);
g2d.drawLine(level + 2, 0, level + 2, SlidingPuzzle.HEIGHT);
}
}
}
</pre>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>SlidingPuzzle.java </b><br />
<br />
<pre class="prettyprint">import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class SlidingPuzzle {
public static final int WIDTH = 512;
public static final int HEIGHT = 512;
public static JFrame frame;
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
frame = new JFrame("Sliding Puzzle");
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.setUndecorated(true);
frame.setSize(WIDTH, HEIGHT);
SlidingPuzzlePanel spp = new SlidingPuzzlePanel();
frame.add(spp);
frame.setVisible(true);
}
});
}
}
</pre>
<br />
<br />
<b>Download Runnable Jar:- </b><b><a href="http://www.mediafire.com/download/13xd0q49al8a4kl/Memory_Puzzle.jar" target="_blank">Memory Puzzle</a> </b></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<b>Credits for Game:-</b> <i><u>Solixious</u></i></div>
<div style="text-align: justify;">
<br /></div>
<div class="zemanta-related" style="clear: both; margin-top: 20px; overflow: hidden;">
<h4 class="zemanta-related-title">
Related articles</h4>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; overflow: hidden; padding: 0;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/sliding-puzzle-game-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/352530014_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/sliding-puzzle-game-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Sliding Puzzle Game in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/picture-puzzle-game-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/351431719_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/picture-puzzle-game-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Picture Puzzle Game in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/space-warrior-game-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/352530016_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/space-warrior-game-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Space Warrior Game in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/image-to-ascii-art-converter-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/347644708_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/image-to-ascii-art-converter-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Image to ASCII ART converter in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/securityoverrideorg-software-cracking-1-basic-serial-disclosure.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/349264102_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/securityoverrideorg-software-cracking-1-basic-serial-disclosure.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">SecurityOverride.org Software Cracking Level 1 | Basic Serial Disclosure</a></li>
</ul>
</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-14671888740776761712015-07-15T11:07:00.000+05:302015-07-15T11:08:32.196+05:30Sliding Puzzle Game in Java<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Sliding Puzzle is a puzzle game in which numbers are arranged in an
unordered fashion in a 4x4 grid along with one slot missing. You have to
use the four arrow keys to slide the adjacent grid value into the blank
grid and ultimately getting the grid in order.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Screenshot</b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: center;">
<img alt="[Image: slidingpuzzle.png]" border="0" src="http://s13.postimg.org/t4s42tr4n/slidingpuzzle.png" /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Source Code </b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br />
<b>Game.Java</b></div>
<div style="text-align: justify;">
<iframe src="http://pastebin.com/embed_iframe.php?i=S6X8kiXp" style="border: none; height: 400px; width: 100%;"></iframe>
<b> </b><br />
<b>SlidingPuzzlePanel.java</b></div>
<div style="text-align: justify;">
<iframe src="http://pastebin.com/embed_iframe.php?i=TQ91e6Da" style="border: none; height: 400px; width: 100%;"></iframe>
<b> </b><br />
<b>SlidingPuzzle.java</b></div>
<div style="text-align: justify;">
<iframe src="http://pastebin.com/embed_iframe.php?i=1j1mxbsy" style="border: none; height: 400px; width: 100%;"></iframe>
<b>Credits for Game :- Solixious</b></div>
<div style="text-align: justify;">
<b><br /></b>
<b><br /></b></div>
<div class="zemanta-related" style="clear: both; margin-top: 20px; overflow: hidden;">
<h4 class="zemanta-related-title">
Related articles</h4>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; overflow: hidden; padding: 0;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/picture-puzzle-game-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/351431719_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/picture-puzzle-game-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Picture Puzzle Game in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/07/create-vector-images-using-bit-arrays-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/350360323_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/07/create-vector-images-using-bit-arrays-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Create Vector images using Bit Arrays in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/image-to-ascii-art-converter-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/347644708_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/image-to-ascii-art-converter-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Image to ASCII ART converter in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/5-most-funny-java-videos-on-youtube.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/349334525_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/5-most-funny-java-videos-on-youtube.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">5 Most Funny Java Videos on Youtube</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/lightweight-introduction-to.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/noimg_46_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/lightweight-introduction-to.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Lightweight Introduction to Cryptography | Terminology, Security Goals and Cryptographic Attacks</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/a-gentle-introduction-to-textblob-for.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/noimg_61_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/a-gentle-introduction-to-textblob-for.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">A Gentle Introduction to TextBlob for NLP</a></li>
</ul>
</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-43858542461791770252015-07-15T10:41:00.001+05:302015-07-15T10:41:54.376+05:30Space Warrior Game in Java<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
The game simply consists of a ship that travels through space
encountering asteroids and villains in the way. The game ends when the
final boss is destroyed. FYI, I myself could not complete this game,
except in the testing stage where I manipulated code to call boss very
early.<br />
<br /><b>
Screenshots:</b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: center;">
<b><img alt="[Image: sw1.png]" border="0" src="http://s29.postimg.org/pxfxh2a3r/sw1.png" /> </b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: center;">
<img alt="[Image: sw2.png]" border="0" src="http://s2.postimg.org/4a1uayes9/sw2.png" /> </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
</div>
<div style="text-align: center;">
<img alt="[Image: sw3.png]" border="0" src="http://s3.postimg.org/51jihkcqr/sw3.png" /> </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Runnable JAR :</b> <a href="http://www.mediafire.com/download/o2hbd9hahli96qh/space_warrior.jar" target="_blank">space_warrior.jar</a><br />
Java 8 or higher is recommended for execution of the runnable JAR file.<br />
<br />
<b>Github Link :</b> <a href="https://github.com/Solixious-Klein/Space-Warrior" target="_blank">Space Warrior</a><br />
<br />
Credits for the sprite images go to <b>Ari Feldman. </b></div>
<div style="text-align: justify;">
<br />Credits for this Game :- <b>Solixious</b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b> </b></div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0tag:blogger.com,1999:blog-7805473289024015434.post-37941499128647056372015-07-08T19:25:00.000+05:302015-07-08T19:30:09.416+05:30Picture Puzzle Game in Java<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<span style="color: green;">Picture Puzzle</span> is game where a
picture is broken into different pieces and all these pieces are
scattered all over the screen. Your objective in the game is to arrange
these scattered pieces in correct order using your mouse.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
A default picture is provided in the runnable jar whose link I'll give
at end of this thread. You can also select your own picture by pressing
SPACE after the game starts and choosing the image file of your choice.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: center;">
<img alt="[Image: pic_puzzle.png]" border="0" src="http://s27.postimg.org/8x5o4wilf/pic_puzzle.png" height="358" width="640" /> </div>
<div style="text-align: justify;">
</div>
<h3 style="text-align: justify;">
<b>Source Code</b></h3>
<div style="text-align: justify;">
<b>PicturePuzzle.java</b></div>
<div style="text-align: justify;">
<iframe src="http://pastebin.com/embed_iframe.php?i=tgzzQB4c" style="border: none; width: 100%;"></iframe>
</div>
<div style="text-align: justify;">
<b>PicturePuzzlePanel.java</b></div>
<div style="text-align: justify;">
<iframe src="http://pastebin.com/embed_iframe.php?i=htWQ5nP7" style="border: none; width: 100%;"></iframe>
</div>
<div style="text-align: justify;">
<b>Game.java</b></div>
<div style="text-align: justify;">
<iframe src="http://pastebin.com/embed_iframe.php?i=ikwWZWfG" style="border: none; width: 100%;"></iframe>
</div>
<div style="text-align: justify;">
<b>PuzzlePiece.java</b></div>
<div style="text-align: justify;">
<iframe src="http://pastebin.com/embed_iframe.php?i=kjh5NaZ0" style="border: none; width: 100%;"></iframe>
</div>
<div style="text-align: justify;">
<b>PuzzlePic.java</b></div>
<div style="text-align: justify;">
<iframe src="http://pastebin.com/embed_iframe.php?i=7hQYtKTi" style="border: none; width: 100%;"></iframe>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Download Runnable Jar : <a href="https://www.mediafire.com/?wi9if2azbpps25m" rel="nofollow" target="_blank">Click Here to Download</a></b></div>
<div class="zemanta-related" style="clear: both; margin-top: 20px; overflow: hidden;">
<h4 class="zemanta-related-title">
Related articles</h4>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; overflow: hidden; padding: 0;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/lyrister-song-lyrics-scrapper.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348701424_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/lyrister-song-lyrics-scrapper.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Lyrister - Song Lyrics Scrapper</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/visual-stack-application-in-java.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/347902265_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/visual-stack-application-in-java.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Visual Stack Application in Java</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/a-brief-introduction-to-data-structures.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348453318_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/a-brief-introduction-to-data-structures.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">A Brief Introduction to Data Structures</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/fuzzy-string-matching-or-searching-with-python.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348690190_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/fuzzy-string-matching-or-searching-with-python.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Fuzzy String Matching or Searching with Python Code</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://codehackersblog.blogspot.com/2015/06/using-dban-to-securely-wipe-data-from.html" rel="nofollow" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="//i.zemanta.com/348196544_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://codehackersblog.blogspot.com/2015/06/using-dban-to-securely-wipe-data-from.html" rel="nofollow" style="background-image: none; display: block; height: 83px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Using Dban to Securely Wipe data from hard disk</a></li>
</ul>
</div>
</div>
TheUnknownhttp://www.blogger.com/profile/03574714836297937315noreply@blogger.com0