tag:blogger.com,1999:blog-61632578908854174352024-03-14T04:42:24.068-07:00xtraceadminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.comBlogger55125tag:blogger.com,1999:blog-6163257890885417435.post-71266026580890765552024-02-04T12:00:00.000-08:002024-02-04T12:00:17.580-08:00Checking wifi signal stregnth in ubuntu <p> Use command: watch -n1 iwconfig</p><p>Then check for "Link Quality"</p><p></p><div class="separator" style="clear: both; text-align: center;"><br /></div>Example Output:<br /><p></p>
<pre>br-162f0698aa15 no wireless extensions.
enp0s31f6 no wireless extensions.
lo no wireless extensions.
veth7f181fd no wireless extensions.
enx482ae3bc4b7c no wireless extensions.
docker0 no wireless extensions.
wlp61s0 IEEE 802.11 ESSID:"******"
Mode:Managed Frequency:5.28 GHz Access Point: **:**:**:**:**:**
Bit Rate=866.7 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=51/70 Signal level=-59 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:126 Missed beacon</pre>adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-66967481929941803612024-01-28T10:39:00.000-08:002024-01-28T10:39:30.720-08:00Ubuntu: Convert multiple images to video <blockquote><p>Use command: ffmpeg</p><p> example: </p></blockquote><blockquote><p>ffmpeg -framerate 10 -pattern_type glob -i '*.JPG' output4.mp4</p><p><br /></p></blockquote><p>where '*.JPG' means it will take all files iwth extension JPG from current directory </p><p>"-framerate 10" mean 10 images will be shown per second</p><p><br /></p><p> </p><blockquote><blockquote><div><blockquote></blockquote></div></blockquote></blockquote>adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-32420012909051059242023-02-27T05:14:00.003-08:002023-02-27T05:14:23.575-08:00SpelParseException: EL1041E for maxAttemptsExpression<p> SpelParseException: EL1041E for maxAttemptsExpression means expression is missing { or }</p><p><br /></p><p>eg: ${max.retry.attempts</p>adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-84964245097526378302022-04-02T13:29:00.001-07:002022-04-02T13:29:35.781-07:00Eclipse maven update problem whike moving from older java to java17 <p> Errors encountered while doing maven update:</p><p><br /></p><blockquote><p>Could not get the value for parameter encoding for plugin execution default-resources</p></blockquote><blockquote><p>cannot resolve plugin org/apache/maven plugins maven-resources-plugin:3.1 0 </p></blockquote><p><br /></p><p>1. Close eclipse</p><p>2. Got to ~/.m2</p><p>3. delete m2/repository/org/apache/maven</p><p>4. open eclipse </p><p>5. update project again</p><p>(if do not work delete whole .m2/repository)</p>adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-3571880220622121932022-03-09T11:55:00.006-08:002022-03-09T11:56:07.072-08:00Shopware 5 newsletter enable double opt fintionality<p> https://docs.shopware.com/de/shopware-5-de/marketing-und-einkaufswelten/newsletter?utm_source=google&utm_medium=cpc&utm_campaign=nb-o04_nrt_dach_de_awareness_performance-max_lead-contact&utm_content=maxperformance&gclid=CjwKCAiAvaGRBhBlEiwAiY-yMGW-Pfxlq1TIHgN84Yrz6YgbG8-uAteR2Ex0A4Nfs0sSXWcrCst-ZRoCv5wQAvD_BwE </p>adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-31895169075535303832022-02-13T05:13:00.004-08:002022-02-13T05:13:26.173-08:00<h2 style="text-align: left;"> Java 17 : Unrecognized VM option 'MaxPermSize=512m'</h2><div>adjust your environment variable MAVEN_OPTS and remove MaxPermSize </div>adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-86816563935422284012020-04-20T04:51:00.000-07:002020-04-20T04:51:19.364-07:00Could not bind properties to 'JacksonProperties' <h4>
Spring boot 2 run time error:</h4>
<br />
<blockquote class="tr_bq">
Error creating bean with name '<span style="color: blue;">spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties</span>': Could not bind properties to 'JacksonProperties' : prefix=spring.jackson, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.jackson.deserialization' to java.util.Map<com.fasterxml.jackson.databind.DeserializationFeature, java.lang.Boolean></blockquote>
<br />
<br />
<h4>
Solution:</h4>
At application property set<br />
spring.jackson.deserialization.fail-on-unknown-properties: trueadminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-54291586821010246692020-02-07T07:08:00.002-08:002020-02-18T05:15:01.906-08:00run script at startup of ubuntuRun script at startup (when you login). Following example add a small memory check script at the startup<br />
<br />
<br />
<ol>
<li><span style="background-color: orange;"> cd /usr/share/applications</span></li>
<li><span style="background-color: orange;">sudo gedit memcheck.desktop</span></li>
<div>
<blockquote class="tr_bq">
<span style="color: #274e13;">[Desktop Entry]</span><br />
<span style="color: #274e13;">Name=memcheck</span><br />
<span style="color: #274e13;">Comment=memcheck Tool</span><br />
<span style="color: #274e13;">Exec=/home/***/projects/mem_alert/memcheck.sh</span><br />
<span style="color: #274e13;">Terminal=true</span><br />
<span style="color: #274e13;">Type=Application</span><br />
<span style="color: #274e13;">Icon=someicon copied from existing .desktop files in same folder</span></blockquote>
</div>
<li><span style="background-color: white;">Open tweaks</span></li>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://itsfoss.com/gnome-tweak-tool/"><img alt="install genome tweak tool " border="0" data-original-height="626" data-original-width="876" height="285" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJyBJhdbGA6SbUMS1GLxuo4akfruUO_wADBsu6U7loQTGsn6lCZ8xwoXJJ5K21Tdl5p4MToPk2yBEVMPiE7rv9d2bCKla8y6htn0sEEgrdXyp7CY7WIc8dMZx5Z6NEtLH6UwZ0ofa0OKcf/s400/Screenshot+from+2020-02-07+16-06-55.png" width="400" /></a></div>
<li><span style="background-color: white;">Click "startup applications"</span></li>
<li><span style="background-color: white;">Click add, then select "memcheck" application from the list. If it do not appear then you have done some thing wrong.</span></li>
<li><span style="background-color: white;">Now logout and login. The mem check script should run after user login</span></li>
</ol>
<div>
<br /></div>
<div>
<br /></div>
<div>
My memcheck.sh looks like:</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<blockquote>
<span style="color: #38761d;">#!/bin/bash<br />#Minimum available memory limit, MB<br />THRESHOLD=2000<br />#Check time interval, sec<br />INTERVAL=30<br />while :<br />do<br /> free=$(free -m|awk '/^Mem:/{print $4}')<br /> buffers=$(free -m|awk '/^Mem:/{print $6}')<br /> cached=$(free -m|awk '/^Mem:/{print $6}')<br /> available=$(free -m|awk '/^Mem:/{print $7}')<br /> message="Free $free""MB"", buffers $buffers""MB"", cached $cached""MB"", available $available""MB"""<br /> if [ $available -lt $THRESHOLD ]<br /> then<br /> notify-send "Memory is running out!" "$message"<br /> fi<br /> echo $message<br /> sleep $INTERVAL<br />done</span></blockquote>
</div>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com2tag:blogger.com,1999:blog-6163257890885417435.post-37310952313258842482019-05-20T00:36:00.002-07:002019-05-20T00:36:23.132-07:00Install openjdk 11 at ubuntu<br />
<ul>
<li> Download jdk11 from https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz</li>
<li> Extract to /usr/lib/jvm </li>
</ul>
<blockquote class="tr_bq">
sudo tar xvf openjdk-11+28_linux-x64_bin.tar.gz --directory /usr/lib/jvm/</blockquote>
<ul>
<li>sudo update-alternatives --config java</li>
</ul>
<div>
<blockquote class="tr_bq">
Selection Path Priority Status<br />------------------------------------------------------------<br /> 0 /usr/lib/jvm/jdk-11/bin/java 3 auto mode<br /> 1 /usr/lib/jvm/java-7-oracle/jre/bin/java 1 manual mode<br />* 2 /usr/lib/jvm/java-8-oracle/jre/bin/java 2 manual mode</blockquote>
</div>
<div>
<br /></div>
<div>
<ul>
<li>Install java11 as 3 option</li>
</ul>
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-11/bin/java 3<br />sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-11/bin/javac 3<br /><ul>
<li><pre>Set java11 as current java version </pre>
</li>
</ul>
<blockquote class="tr_bq">
sudo update-alternatives --config java and select 3</blockquote>
<blockquote class="tr_bq">
sudo update-alternatives --config javac and select 3</blockquote>
</div>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-87367726325222466812016-11-02T05:54:00.003-07:002016-11-02T05:55:06.993-07:00Kernel panic after ubuntu update<div>
I recently did ubuntu update and then after reboot i got following screen related to kernel panic. The problem for me was that my /boot ran out of space.</div>
<div>
<br /></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfcD_qrXiOOPKLfEYV9rLYimXrk0KKapUQ8w2OTr3muRNScHGuQirl4r1a7hYU3v13Y14ITs7-VpHDL88HlM186GVD_9QV_lQX3N3inx_G-0-sjQkGyy1Zd2ofmbgy9NBbpkYhN_tSqodU/s1600/MIq2G.jpg" imageanchor="1"><img border="0" height="115" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfcD_qrXiOOPKLfEYV9rLYimXrk0KKapUQ8w2OTr3muRNScHGuQirl4r1a7hYU3v13Y14ITs7-VpHDL88HlM186GVD_9QV_lQX3N3inx_G-0-sjQkGyy1Zd2ofmbgy9NBbpkYhN_tSqodU/s400/MIq2G.jpg" width="400" /></a><br />
<div>
<br /></div>
<div>
Solution:</div>
<div>
<br /></div>
<div>
Restart your machine and go to grub loader</div>
<div>
Select "<b style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px;">Advanced options for Ubuntu</b>"</div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWYNZZYTgrLNvviFl-2ZBU15IlXVuSZT8dKCfCXprCMDbNJ9QGkdR1IkIJR6wdKq92caz77q0TjCq_MKzpbzoHAU2dQBqHI0qUxtNMTD5YGgrefse5DUI8uBqB4AIAQjRRzKFLOQyIOWTs/s1600/Boot-Linux-From-Hard-Disk.png" imageanchor="1"><img border="0" height="68" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWYNZZYTgrLNvviFl-2ZBU15IlXVuSZT8dKCfCXprCMDbNJ9QGkdR1IkIJR6wdKq92caz77q0TjCq_MKzpbzoHAU2dQBqHI0qUxtNMTD5YGgrefse5DUI8uBqB4AIAQjRRzKFLOQyIOWTs/s320/Boot-Linux-From-Hard-Disk.png" width="320" /></a></div>
<div>
<br /></div>
<div>
Then you will be listed with list of kernels, select one of them and press enter [at least one of them should allow to you boot and login into your ubuntu machine]</div>
<div>
<br /></div>
<div>
Then go to terminal and run:</div>
<div>
<div>
<b> aptitude search ~ilinux-image</b></div>
</div>
<div>
this should list all the kernel images u have in /boot</div>
<div>
<br /></div>
<div>
run</div>
<div>
<b>uname -a</b></div>
<div>
<br /></div>
<div>
to get ur current running kernel</div>
<div>
<br /></div>
<div>
run</div>
<div>
<b>sudo apt-get <image name></b></div>
<div>
for example: <b>sudo apt-get autoremove linux-image-4.4.0-45-generic</b></div>
<div>
</div>
<div>
to remove the image that you dont need</div>
<div>
<br /></div>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-42918733780030452102016-06-11T05:46:00.005-07:002016-06-11T05:48:24.974-07:00Ambigious mapping<h4>
Scenario: </h4>
Need to add a spring mvc project as dependency (scope test) to other spring mvc project.<br />
<div>
<br />
<h4>
Problem: </h4>
<i>Ambiguous mapping. Cannot map 'xyzController' method </i><br />
<br /></div>
<div>
<h4>
Reason: </h4>
Both projects had web controller with request mapping annotation only at method level. As the rest of it when spring tries to map / , we have ambibious maping scenario where both the controllers quality for the mapping and this result in the exception.</div>
<div>
<br /></div>
<div>
<h4>
Solution: </h4>
Add Requestmapping annotation at the both controller (or one of them) so that spring can map urls distinctly<br />
<br />
<br /></div>
<div>
</div>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-65259384143639377782015-04-27T11:01:00.001-07:002015-04-27T11:02:12.583-07:00Generic enum converter<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC0anmc4TX3Bxd4vrLS9Qpk78Fk7kZj9XM9obijDFv6Jy3o8Y3Vv5z3sdHtxICnudIbBYOCP6pLXF_Ud6wYuCQa6xYujsVpoDk_j59ruX2qE7nAq9rb5fexfT9RHER4NVOEc10PwiVEFCw/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> public static Enum<?> toEnum(final Class<? extends Enum> classType, final Enum<?> enumObj) {
if (enumObj == null) {
return null;
} else {
return enumObj.valueOf(classType, enumObj + "");
}
}
</code></pre>
<br />
Usage:<br />
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC0anmc4TX3Bxd4vrLS9Qpk78Fk7kZj9XM9obijDFv6Jy3o8Y3Vv5z3sdHtxICnudIbBYOCP6pLXF_Ud6wYuCQa6xYujsVpoDk_j59ruX2qE7nAq9rb5fexfT9RHER4NVOEc10PwiVEFCw/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> Test1 returnedEnum = (Test1) toEnum(Test1.class, Test2.HELLO_ENUM);
</code></pre>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-57868053900821067182015-02-03T12:07:00.003-08:002015-02-03T23:14:54.733-08:00Documenting Spring annotated rest interface via reflection <pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC0anmc4TX3Bxd4vrLS9Qpk78Fk7kZj9XM9obijDFv6Jy3o8Y3Vv5z3sdHtxICnudIbBYOCP6pLXF_Ud6wYuCQa6xYujsVpoDk_j59ruX2qE7nAq9rb5fexfT9RHER4NVOEc10PwiVEFCw/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">1: for (Method method : YourClass.class.getMethods()) {
2: // url
3: if (method.isAnnotationPresent(RequestMapping.class)) {
4: RequestMapping parms = method.getAnnotation(RequestMapping.class);
5: String[] val = parms.value();
6: RequestMethod[] methodType = parms.method();
7: for (int i = 0; i < val.length; i++) {
8: System.out.println(val[i] + " METHOD TYPE:" + methodType[i]);
9: }
10: //parameter
11: Class<?>[] paramsTypes = method.getParameterTypes();
12: Annotation[][] annot = method.getParameterAnnotations();
13: for (int i = 0; i < annot.length; i++) {
14: if (annot[i].length > 0 && annot[i][0] instanceof RequestParam) {
15: RequestParam new_name = (RequestParam) annot[i][0];
16: System.out.println("Request: " + new_name.value() + " = " + paramsTypes[i]);
17: }
18: }
19: //return type
20: if (method.getReturnType().getCanonicalName().equals(List.class.getCanonicalName())) {
21: Type listType = method.getGenericReturnType();
22: if (listType instanceof ParameterizedType) {
23: Type elementType = ((ParameterizedType) listType).getActualTypeArguments()[0];
24: System.out.println("Response: [" + elementType + "]");
25: }
26: } else {
27: System.out.println("Response: " + method.getReturnType().getCanonicalName());
28: }
29: }
</code></pre>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-75189430103302796582014-09-09T23:54:00.002-07:002014-09-09T23:54:31.908-07:00Problem in getting post parameter in Spring MVC via REST request<blockquote class="tr_bq">
@RequestMapping(value = "/api/login", method = RequestMethod.POST)<br /> public WelcomeMessage getHelloWorld(@RequestParam(value = "username") final String username, @RequestParam(value = "password") final String password) {<br /> <span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span>// do some thing<br /> }</blockquote>
<br />
<br />
I was having the problem to get post parameter via REST request. Adding the header "Content-Type:application/x-www-form-urlencoded" fixed the issueadminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-63091310476463029502014-07-26T02:23:00.001-07:002014-07-26T02:23:55.020-07:00A* Algorithm optimality proofThis video from me describes the A* algorithm optimality proof. You can also see the slides from the link provided in description.
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='420' height='366' src='https://www.youtube.com/embed/hh9LUxIekp0?feature=player_embedded' frameborder='0'></iframe></div>
<br />adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-38233244070570910652014-06-11T07:46:00.000-07:002014-07-23T02:23:27.603-07:00Spring Security Tutorial<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/MILXyFP7eu4?feature=player_embedded' frameborder='0'></iframe></div>
<br />adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-43758173390138295652014-03-27T07:21:00.002-07:002016-11-02T07:42:00.046-07:00 java.lang.IllegalArgumentException: badly formated directory stringit is based on invalid format, try to give correct name structure for instance:<br />
<br />
new X500Name("C=DE,O=Organiztion");adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-3932025288948203122014-03-04T03:03:00.001-08:002014-03-04T03:03:24.037-08:00convert grails project to grails eclipse project<pre class="default prettyprint prettyprinted"><b><code><span class="pln">grails integrate</span><span class="pun">-</span><span class="kwd">with</span><span class="pln"> </span><span class="pun">--</span><span class="pln">eclipse</span></code></b></pre>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-11448988245059638802014-02-23T10:19:00.000-08:002014-05-27T03:40:29.606-07:00Design patternsDesign pattern are solutions to a class of problem which is proven to be good. It's like following the big guys. The attached project contains easy to learn example for Factory, observer listener and strategy design patterns. This project will be updated with further patterns. Each if the downloadable project is an eclipse project , you can simply import it in eclipse if you wish.<br />
<a href="http://www.mediafire.com/download/35cjv0j683f3pq9/designPatterns.zip" target="_blank"><b style="background-color: lime;">Download all Project</b></a><br />
Description of project via sample problems:<br />
<br />
PROBLEM 1:<br />
Say you want to create people in a computer game. People can be of type enemy army, friendly army or civilians (Also further more addition in future should be also possible). In this kind of problem you can use<b> Factory pattern </b>to create these game people.<br />
<br />
PROBLEM 2:<br />
Say in same game scenario you want to create Aeroplanes with different capability. Say 5 aeroplanes with military capability and 1 civilian (In future you should be also able to add more capabilities like speeds, payload types). In this kind of problem you can use <b>Strategy pattern.</b> You can create different capabilities and inject them in aeroplane.<br />
<br />
PROBLEM 3:<br />
Now say you have a game window. There are different buttons. You want to do different action in your Window class based to the location of the button clicked (Say button is developed by some other developer in his own way). In this problem you can use <b>observer listener pattern</b>.Window can be listener of button click event. Developer of the button should define a interface to add listeners.adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-75515101390272957672013-11-05T07:41:00.003-08:002013-11-06T02:34:48.606-08:00HTML5 tutorial<a href="http://mydemo1.net78.net/"> Click to launch tutorial
</a>
<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;">
<a href="http://mydemo1.net78.net/" target="_blank"><img alt="http://mydemo1.net78.net/" border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn3YFlWB88DJE3104EtXzWPxv__CZ5W80pgAlEvC-HqYqGSdvRHq16yvABluC2HRnOMllkL4QDp8yz58WYop-ogdpkPI0X-LAwPcByTVzpNHUglmqYDFk0eqEfLvR-i0_XdS6HRuaRmOsh/s320/2013-11-05+16_48_34-HTML5+tutorial.png" width="320" /></a></div>
<ul>
<li>web workers: <a href="http://mydemo1.net78.net/html/webworker.html">http://mydemo1.net78.net/html/webworker.html</a></li>
</ul>
<ul>
<li>New form elements: TextInput, search, email, Tel, URL, Number, Range(slider), drop down list: <a href="http://mydemo1.net78.net/html/newInputTypeDemo.html" target="_blank">http://mydemo1.net78.net/html/newInputTypeDemo.html </a></li>
<li>Tag cloud: <a href="http://mydemo1.net78.net/html/tagcloud.html">http://mydemo1.net78.net/html/tagcloud.html</a></li>
<li>HTML5 audio, video: <a href="http://mydemo1.net78.net/html/audioVideoDemo.html" target="_blank"> http://mydemo1.net78.net/html/audioVideoDemo.html</a></li>
<li>Web storage: <a href="http://mydemo1.net78.net/html/localstorage.html">http://mydemo1.net78.net/html/localstorage.html </a></li>
<li>IndexedBd: <a href="http://mydemo1.net78.net/html/indexedDB.html">http://mydemo1.net78.net/html/indexedDB.html</a></li>
</ul>
<br />adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com1tag:blogger.com,1999:blog-6163257890885417435.post-81836211553916315732013-06-19T05:16:00.001-07:002013-06-19T05:17:01.296-07:00Running 2 or more JBOSS in same machine:<div lang="en-US" style="margin-bottom: 0cm;">
To run 2 or more instance
of jboss follow the following step:</div>
<ol>
<li><div lang="en-US" style="margin-bottom: 0cm;">
First you need
different installation location to run the another instance of the
JBOSS. (assumption is that you already have a default instance
running)</div>
</li>
<li><div lang="en-US" style="margin-bottom: 0cm;">
This this example we
are setting up jboss 5.1.0 as separate instance</div>
</li>
<li><div style="margin-bottom: 0cm;">
<span lang="en-US">Go to bin :
“jboss-5.1.0.GA\bin” and open “run.bat”</span></div>
</li>
<li><div style="margin-bottom: 0cm;">
<span lang="en-US">Replace all the
variable “%JBOSS_HOME%” with the direct path to your
installation directory ie “jboss-5.1.0.GA”</span></div>
</li>
</ol>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">if
exist "%JBOSS_HOME%\bin\run.jar" (</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">if
"x%JAVAC_JAR%" == "x" (</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">set
"RUNJAR=%JAVAC_JAR%;%JBOSS_HOME%\bin\run.jar"</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">)
else (</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">set
"RUNJAR=%JBOSS_HOME%\bin\run.jar"</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">)</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">)
else (</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">echo Could not locate
"%JBOSS_HOME%\bin\run.jar".</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">echo Please check that you are in
the bin directory when running this script.</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">goto END</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">)</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
With</div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<br /></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">if exist “<direct poath to
jboss home>bin\run.jar" (</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">if
"x%JAVAC_JAR%" == "x" (</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">set "RUNJAR=%JAVAC_JAR%;<direct
poath to jboss home>\bin\run.jar"</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">)
else (</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">set "RUNJAR=<direct poath
to jboss home>\bin\run.jar"</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">)</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">)
else (</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">echo Could not locate "<direct
path to jboss home>\bin\run.jar".</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">echo Please check that you are in
the bin directory when running this script.</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">goto END</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<span style="font-size: xx-small;">)</span></div>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
<br /></div>
<ol start="5">
<li><div lang="en-US" style="margin-bottom: 0cm;">
Run “run.bat”</div>
</li>
</ol>
<div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.64cm;">
[For
other version of installation eg: jbosss 7, you can do the same
thing,, ie go to “din/standlone.bat” and do 4)]</div>
<div lang="en-US" style="margin-bottom: 0cm;">
<br /></div>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-34029333236411972802013-05-08T05:57:00.000-07:002014-07-29T14:29:59.187-07:00Heuristic Search videos<h3>
Basic of heuristic :</h3>
<a href="https://www.youtube.com/watch?v=jJ3CV3yhajM">https://www.youtube.com/watch?v=jJ3CV3yhajM</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/jJ3CV3yhajM?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<h3>
A* algorithm example</h3>
<a href="https://www.youtube.com/watch?v=kgr4AiV4eCY">https://www.youtube.com/watch?v=kgr4AiV4eCY</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/kgr4AiV4eCY?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<h3>
A* Algorithm optimality proof:</h3>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/hh9LUxIekp0?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<h3>
Heuristic search:</h3>
<a href="https://www.youtube.com/watch?v=xHocIAIPCEs">https://www.youtube.com/watch?v=xHocIAIPCEs</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/xHocIAIPCEs?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<h3>
state space seach , 8 queen problem:</h3>
<a href="https://www.youtube.com/watch?v=M6V-TvwqwnU">https://www.youtube.com/watch?v=M6V-TvwqwnU</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/M6V-TvwqwnU?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<h3>
hill climbing:</h3>
<a href="https://www.youtube.com/watch?v=3PtuHl1rrT8">https://www.youtube.com/watch?v=3PtuHl1rrT8</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/3PtuHl1rrT8?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<h3>
state space search:</h3>
<a href="https://www.youtube.com/watch?v=FQWTa3XjyWg">https://www.youtube.com/watch?v=FQWTa3XjyWg</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/FQWTa3XjyWg?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<h3>
informed search: BF, A*</h3>
<a href="https://www.youtube.com/watch?v=6hmIKIWBVSI">https://www.youtube.com/watch?v=6hmIKIWBVSI</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/6hmIKIWBVSI?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<a href="https://www.youtube.com/watch?v=tBn5gVXr0R4">https://www.youtube.com/watch?v=tBn5gVXr0R4</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/tBn5gVXr0R4?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<h3>
A Quick Guide to the A* Algorithm :</h3>
<a href="https://www.youtube.com/watch?v=eTx6HQ9Veas">https://www.youtube.com/watch?v=eTx6HQ9Veas</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/eTx6HQ9Veas?feature=player_embedded' frameborder='0'></iframe></div>
<br />
minimum spanning tree<br />
<a href="https://www.youtube.com/watch?v=R_zU-UYUCQU">https://www.youtube.com/watch?v=R_zU-UYUCQU</a><br />
<br />
AND OR GRAPH Search<br />
<a href="http://www.youtube.com/watch?v=oPVj17gB7gY">http://www.youtube.com/watch?v=oPVj17gB7gY</a><br />
21:20 > 34:04<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/oPVj17gB7gY?feature=player_embedded' frameborder='0'></iframe></div>
<br />
iterative deepening:<br />
<a href="https://www.youtube.com/watch?v=7QcoJjSVT38">https://www.youtube.com/watch?v=7QcoJjSVT38</a><br />
<br />
some videos from me:<br />
<br />
Back tracking on AND/OR graph<br />
<a href="https://www.youtube.com/watch?v=9SFwT3n0nD0">https://www.youtube.com/watch?v=9SFwT3n0nD0</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/9SFwT3n0nD0?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<h3>
Game tree:</h3>
<br />
<a href="https://www.youtube.com/watch?v=SO-oXQgvJt4">h</a><a href="ttps://www.youtube.com/watch?v=SO-oXQgvJt4">ttps://www.youtube.com/watch?v=SO-oXQgvJt4</a><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/SO-oXQgvJt4?feature=player_embedded' frameborder='0'></iframe></div>
<br />
solving game tree: <br />
6:00 > 11:00<br />
<br />
alpha beta pruning introduction: 12:40<br />
algorithm for alpha beta (example): 37:40<br />
algorithm for alpha beta (ALGO): 47:40adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-15617840209437912172013-01-05T10:49:00.001-08:002017-02-12T07:58:29.815-08:00Simple drag and drop for mobile browser, with RaphaelDrag with Raphael can be easily done with element.drag(move, start, up); where move, start and up are the methods for individual event. Click image to download source.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://github.com/meamit/google-circle/blob/master/google-circle/index1.html" target="_blank"><img border="0" height="151" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKvKfBp0ygelLnxxnI4uMfgs4nGb_ElcV4X4GHitJifQlw9Y4G-rNrOEjV7Lwejn9iC5sDeUPhrlDF0KXj0D5L46QKG9-GAMjCY7Eph6nYRlxUZTaakEcL82JU-jiNY8GSlaJlojIrCqkc/s320/raphael.png" width="320" /></a></div>
adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com2tag:blogger.com,1999:blog-6163257890885417435.post-5888931290831840782012-12-07T08:47:00.004-08:002015-12-14T04:08:52.000-08:00Google circle implementation <div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://github.com/meamit/google-circle/blob/master/google-circle/index.html" target="_blank"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicJ2-sZ8suUH1VgblAaXCKjw5yuaBpyI1ke_-tEdR9JBavYqviE4ixGPdwL9lTPtemF1Odpf_afZV4VIAuKuZ7fsVmsd8QJhPWr32x5g7wPUiA3htOvacUPAh81qlgA_L0_14ILILfhQWG/s320/googlecircle.png" width="271" /></a></div>
<a href="http://www.mediafire.com/?zcfd48zbz60afd6" target="_blank">Source</a>1<br />
<a href="https://github.com/meamit/google-circle" target="_blank">Source 2</a>adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0tag:blogger.com,1999:blog-6163257890885417435.post-4425854131180610512012-12-01T11:23:00.002-08:002012-12-01T11:23:26.249-08:00Burrows Wheeler Transformation (BWT) <div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/eBsnfozFqM8?feature=player_embedded' frameborder='0'></iframe></div>
<br />adminhttp://www.blogger.com/profile/12103358142904339939noreply@blogger.com0