tag:blogger.com,1999:blog-8381245134864864182024-03-13T20:04:49.283-07:00Zeeshan Ahmed Memon BlogI have created this blog to place some of important things on it for my personal use and also to help others. Now a days I am doing job as Software Engineer in a company. I have completed my graduation in Computer Science from University of Sindh, Jamshoro, Pakistan.Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.comBlogger101125tag:blogger.com,1999:blog-838124513486486418.post-21255667571908477672023-12-25T03:27:00.000-08:002023-12-25T03:27:35.940-08:00Docker Tutorial<p> I have listed all the necessary commands of Docker below. In case if any is missing or if any improvement required, please share in comments so I can update accordingly. Thanks and enjoy tutorial.</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;"> 1) docker –verison</p><p style="line-height: 16px; margin-bottom: 0in;"><span> </span><span> </span>display version command</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;">2) docker version</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;">3) docker image ls</p><p style="line-height: 16px; margin-bottom: 0in;"><span> </span> <span> </span> Display images which are downloaded or created.</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;">4) docker image pull ubuntu:latest</p><p style="line-height: 16px; margin-bottom: 0in;"><span> </span><span> </span>Above command pull image from docker hub.</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">5) docker container run -it ubuntu:latest /bin/bash</p><p style="line-height: 16px; margin-bottom: 0in;">Above command launch and start image in container which is fetched in docker host from above command.</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">6) ps -elf (inside bash command)</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">7) Ctrl + PQ (Command exit from bash but keep it running)</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">8) docker container ls</p><p style="line-height: 16px; margin-bottom: 0in;">Shows above container running. Also container names in last column called "NAMES"</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">9) docker container exec -ti <container-name>/<container-id> bash</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">10) docker container <container-name>/<container-id></p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">>>>>>>>>>>>DOCKER DEVELOPER <<<<<<<<<<<<<<<<<<<<<<<<<<<</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">11) Create folder and run command</p><p style="line-height: 16px; margin-bottom: 0in;">git clone <a href="https://github.com/nigelpoulton/psweb.git">https://github.com/nigelpoulton/psweb.git</a></p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">12) Goto into new folder created and run following command.</p><p style="line-height: 16px; margin-bottom: 0in;">docker image build -t test:latest .</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">13) docker image ls</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">14) docker container run -d --name web1 -p 8080:8080 test:latest</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">15) docker container ls</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">16) docker container run --name zm -it ubuntu:latest sh</p><p style="line-height: 16px; margin-bottom: 0in;">command generates id</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">17) docker rm <dockerid_generated_after_executing_command15></p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">18) Docker images can be found inside</p><p style="line-height: 16px; margin-bottom: 0in;">/var/lib/docker/ on linux</p><p style="line-height: 16px; margin-bottom: 0in;">and on windows inside c:\program data\docker\windowsfilter</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">19) docker image inspect ubuntu:latest</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">20) docker image ls --digests alpine</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">21) docker image rm alpine:latest</p><p style="line-height: 16px; margin-bottom: 0in;">Above command Remove mentioned image e.g., remove alpine:latest</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">22) docker image pull alpine@sha26:a75afd8b57e7f34e4dad8d65e2c7ba2e1975c795ce1ee22fa34f8cf46f96a3be</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">Above command pull image of alpine using digest. Digest is a hashcode which is created from the contents of file itself. Advantage of it over Tag is that it will never be the same. Tag can be mistakenly same. For example you download image with the tag "latest" and also push/update them image on server (e.g., DockerHub) with same Tag mistakenly. This will not be possible with Digest as it uses file contents/image contents to create Hash and image will always be change if you made any change in it. Even a single word written in image will change Digest/hash code of image.</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">23) docker image ls -q</p><p style="line-height: 16px; margin-bottom: 0in;">List all images IDs</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">24) docker image rm $(docker image ls -q) -f</p><p style="line-height: 16px; margin-bottom: 0in;">OR</p><p style="line-height: 16px; margin-bottom: 0in;">docker container rm $(docker container ls -aq) -f</p><p style="line-height: 16px; margin-bottom: 0in;">1st command remove all images from Docker/your system. Second command will remove all containers from your system. The -f flag</p><p style="line-height: 16px; margin-bottom: 0in;">forces the operation so that running containers will also be destroyed.</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">25) docker container run -it alpine:latest sleep 10</p><p style="line-height: 16px; margin-bottom: 0in;">Hold above container for 10 seconds and then sleep/exit from process.</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">26) usermod -aG docker <user></p><p style="line-height: 16px; margin-bottom: 0in;">Above command will add any user you mentioned to docker group.</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">27) service docker status</p><p style="line-height: 16px; margin-bottom: 0in;">and systemctl is-active docker</p><p style="line-height: 16px; margin-bottom: 0in;">Above both commands check status of docker. 1st command will show some more details where as second command will only show its status.</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">28) docker container run --name myubuntu -it ubuntu:latest /bin/bash</p><p style="line-height: 16px; margin-bottom: 0in;">Above command will start your container. Exit from shell of container using Ctrl+PQ without terminating the process. Please note that containter will be Alive till any of the process is running inside it. Once no process is alive, container will be terminated itself.</p><p style="line-height: 16px; margin-bottom: 0in;">To reconnect with the same process, you need to know container image id. Type following command.</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;">docker container ls -q</p><p style="line-height: 16px; margin-bottom: 0in;">This command will provide your 12 characters of container image id (e.g., 36aa4eb7a789).</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;">To reconnect to the image, use below command.</p><p style="line-height: 16px; margin-bottom: 0in;">docker container exec -it 36aa4eb7a789 bash</p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p><p style="line-height: 16px; margin-bottom: 0in;">29) docker container run -d --name webserver -p 80:8080 \</p><p style="line-height: 16px; margin-bottom: 0in;">nigelpoulton/pluralsight-docker-ci</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;">Above command will download image of pluralSight from nigelpoulton dockerHUB Account nigelpoulton/pluralsight-docker-ci. It will also</p><p style="line-height: 16px; margin-bottom: 0in;">detach process and start web server on 8080 port.</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;">"d" stands for daemon mode.</p><p style="line-height: 16px; margin-bottom: 0in;">-it and -d are mutually exlcusive modes/commands and can not be used together for starting a container.</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;">30) docker image history web:latest</p><p style="line-height: 16px; margin-bottom: 0in;">Display commands history executed on particular image.</p><p style="line-height: 16px; margin-bottom: 0in;"></p><p style="line-height: 16px; margin-bottom: 0in;"><br /></p>Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-59830132095867993542023-12-25T03:26:00.000-08:002023-12-25T03:26:04.080-08:00Identifying Docker Container IP<p> Dear Folks, Today I am going to share how we can identify Docker Container IP. We can identify docker container IP use following commands. <b>Please note that docker IPs start with subnet 172.17.*.*</b></p><p><b><br /></b></p><p>1) Following command will provide all docker running process with ID/Status/Names.<br /><br /><b>docker ps --format \<br />"table {{.ID}}\t{{.Status}}\t{{.Names}}"<br /></b><br /><br /><br />2) To identify specific docker container IPAddress use following command. Please note docker container id IP which I am going to see has docker container id "2a869b54036f" . ID of the container returned from Step 1.</p><p> <b><br />docker inspect -f \<br />'{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \<br />2a869b54036f<br /></b><br /><br />5) To run docker container on specific port, you can use following command <b>docker run -d --name hsm -p 1500:1500 hsm:latest</b></p><p><br /></p><p>I hope above article will assist you in learning docker efficiently. Please provide your reviews in case if it helps you to increase its authencity.</p>Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-5874913187698385392023-12-25T03:24:00.000-08:002023-12-25T03:24:22.769-08:00DECOMPILING IIB BAR FILE TO IIB PROJECT<p> Dear Readers,</p><p><br /></p><p>Since I started IBM IIB ACE 12 development, one of the questions in my mind was that how to decompile IIB Project from its Bar file (for example like decompiling DLL in .NET). Today I am sharing that how can we achieve it by following below steps.</p><p><br /></p><p>1) Create an IIB Project with the same name which is reflected in side your bar file. for example, APP_Demo.</p><p>2) Now, right click on that project, go to "Properties" and see where is it located. Browse that folder.</p><p>3) Once completing Step2, goto Bar file and extract it and copy all folders from that to the location of Step 2.</p><p>4) Recompile the project to see if any error appears and do the same for any library (if shows missing).</p><p>By following above 4 steps, you have successfully decompiled BAR file. HURRAY !!! </p><p><br /></p><p>As always wrote, please leave your comments to reflect authenticity of this article. </p><p><br /></p>Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-5553362549510063982019-09-10T08:24:00.000-07:002019-09-10T08:24:04.721-07:00Cannot Find The Tag Library Descriptor For “http://java.sun.com/jsp/jstl/core”<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: small;">Error:</span><br />
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;">Cannot Find The Tag Library Descriptor For “http://java.sun.com/jsp/jstl/core”</span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="font-weight: normal;"><span style="color: red;"><span style="color: black;">Dear Folks,</span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="font-weight: normal;"><span style="color: red;"><span style="color: black;">you might face above error for two reasons.</span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;">1) Your Servlet Container does not support JSTL.</span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;">2) You did not configure configure your Servlet Container.</span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;"> </span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;">To resolve the issue either download JSTL jar and place it on desired location or the most easiest way is to download <b>Apache TomEE</b> server which supports JSTL and many other e.g., JMS, etc.</span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;"> </span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;">After installation, configure it in your IDE or make a package .war and deploy it on server and run your application.</span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;"> </span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;">I hope above post will help you in resolving your issue. If it helps then please do comment.</span></span></span></span></h1>
<h1 class="title single-title">
<span style="font-size: small;"><span style="color: red;"><span style="font-weight: normal;"><span style="color: black;"> </span></span></span></span></h1>
<h1 class="title single-title">
<span style="color: red;"><span style="font-size: small;"><span style="font-weight: normal;"><span style="color: black;">Thanks. </span></span></span></span></h1>
</div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-60068279348906352672019-09-09T11:19:00.002-07:002019-09-09T11:19:29.447-07:00Spring Boot: Apache Cataline Could not load resource factory class<div dir="ltr" style="text-align: left;" trbidi="on">
Error Message:<br />
<span style="color: red;">org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans<br />SEVERE: Exception processing global JNDI Resources<br />javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]</span><br />
<br />
<br />
Answer:<br />
<br />
While running Spring Boot Project, spring project was unable to start due to above error. After doing some research, I identified that this is due to corrupt installation of Apache Tomcat Server.<br />
<br />
Steps to resolve :<br />
<br />
1) Download Apache Tomcat Server.<br />
2) Open Eclipse, add apache server again from "Servers" Tab.<br />
3) Run Project.<br />
<br />
Hopefully above post will resolve subjected issue. In case if this helps you then please do comment to increase validity of post.<br />
<br />
Thanks. <br />
<br />
<br /></div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-41402779278696339942019-08-29T02:24:00.000-07:002019-08-29T02:24:16.126-07:00CREATING SHORTCUT ICON TO DISPLAY IN LINUX MENU<div dir="ltr" style="text-align: left;" trbidi="on">
Dear Folks,<br />
<br />
Today, I am going to describe how to create / bring icon in Linux Menu so instead of going to folder and running .sh (shell extension) file from there, you can simply call it from menu. Please follow below steps.<br />
<br />
1) You must be on your home folder path. Mine is<br />
/home/zeeshan/<br />
<br />
2) Browse .local/share/applications. (Please note you might not view .local folder until you set "Show All Hidden Files and Folders")<br />
<br />
3) Create WebStorm.desktop file and inside file write below content (Please set path in Icon and Exec according to your installation)<br />
<br />
[Desktop Entry]<br />
Type=Application<br />
Name=WebStorm<br />
Comment=WebStorm Development<br />
Icon=/home/zeeshan/Softwares/WebStorm-192.6262.59/bin/webstorm.svg<br />
Exec=/home/zeeshan/Softwares/WebStorm-192.6262.59/bin/webstorm.sh<br />
Terminal=false<br />
Categories=Development;IDE;<br />
StartupWMClass=WebStorm<br />
<br />
<br />
4) Save WebStorm.desktop file and now you can simply browse it from your menu.<br />
<br />
Please post your comments below in case if above post help you.<br />
<br />
Thanks.<br />
<br />
<br />
<br />
<br /></div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-70322671571110337652018-09-22T11:20:00.002-07:002018-09-22T11:20:17.937-07:00Compile and Run Java Program From Sublime Text 3<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Dear All,<br />
<br />
Today, I am going to write about how you can compile and run your Java program from Sublime Text.<br />
<br />
First, you need to set a Build System. To achieve it, follow below steps:<br />
1) Goto Tools -> Build System -> New Build System<br />
2) A editor tab will open. Remove all predefined code and paste below code<br />
<br />
{<br /> "shell_cmd": "javac $file_name && java $file_base_name",<br /> "working_dir": "${project_path:${folder}}",<br /> "selector": "source.java"<br />}<br />
<br />
After pasting above code, save file with <b>Java.sublime-build</b> under <b>sublime-text-3/Packages/User/</b>.<br />
<br />
Now, Goto Tools -> Build System and select Java (you will see new build after following above steps).<br />
<br />
Now press Ctrl+B and enjoy the result. Please note that Ctrl+B is used to Build your program.<br />
<br />
Enjoy coding with this lightweight software. Do comment if above post helps you.<br />
<br />
Thanks.</div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-66385134980070361132018-07-15T04:03:00.000-07:002018-07-15T04:03:38.329-07:00Difference Between Apache Common Logging and Log4J<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px;">Dear Folks,</span><br />
<span style="background-color: white; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px;"><br /></span>
<span style="background-color: white; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px;">Log4j is a logging framework, i.e. it provides the code to log messages while Commons-logging is an abstraction layer for logging frameworks, it doesn't log anything itself. For example if I write code using commons logging and deploy it on JBoss, the logging is done by log4j, but if I deploy it on WebSphere logging is done by WebSphere's own logging implementation. If I run the same code as a stand alone application it Java's own logging that is used.</span><br />
<span style="background-color: white; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px;"><br /></span>
<span style="background-color: white; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px;">Hope this help you in understanding the difference between two. </span></div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-43481314266118508982017-06-04T12:57:00.001-07:002017-06-04T12:57:02.235-07:00WRITE PERMISSION ON SAMBA DRIVE ON LINUX<div dir="ltr" style="text-align: left;" trbidi="on">
Dear Readers,<br />
<br />
You can find various post on installing SAMBA on Linux. In my post, I am sharing you the method through which you can allow windows users to write / copy data on your LINUX based drive.<br />
<br />
Please remember that before that you have to create a user whom you can provide rights to copy data on Linux machine. User name should be common on Windows and LINUX.<br />
<br />
Now, time to start real thing. Open your smb.config file (located in /etc/samba/ on LINUX drive)<br />
<br />
[windowsSharing]<br />
comment = File sharing path for windows<br />
path = /home/user/abc/ [path which you want to share]<br />
writeable = yes<br />
browseable = yes<br />
public = yes<br />
guest ok = yes<br />
force user = your_user_name<br />
<br />
Now save your file and run following command<br />
<br />
sudo service smbd restart<br />
<br />
After restart of service, you will be able to share your files between linux and windows.<br />
<br />
If this post helps you then please leave a comment to increase its reliability. Also comments are welcomed to improve this post (if any).<br />
<br />
<br />
<br />
<br />
<br /></div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-15375290326808527842016-07-26T13:21:00.004-07:002016-07-26T13:22:48.914-07:00Could not get lock /var/lib/dpkg/lock<div dir="ltr" style="text-align: left;" trbidi="on">
Today, I tried to install Git on my Ubuntu machine and during that I received following exception related to locking. In my this post, I have shared all commands and error messages with you.<br />
<br />
<br />
<u><b>Command</b></u><br />
<b>sudo apt-get install git</b><br />
<br />
<u><b>Error Message</b></u><br />
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)<br />
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
After searching above message, I found a command</div>
<div>
<b><br /></b></div>
<div>
<b>sudo lsof /var/lib/dpkg/lock</b></div>
<div>
<br /></div>
<div>
after pressing ENTER, it might asked you for password. Type the password and in result you might get following output</div>
<div>
<b><br /></b></div>
<div>
<div>
<b>lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs</b></div>
<div>
<b> Output information may be incomplete.</b></div>
<div>
<b>COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME</b></div>
<div>
<b>unattende 1468 root 5uW REG 8,1 0 154817 /var/lib/dpkg/lock</b></div>
</div>
<div>
<br /></div>
<div>
</div>
<div>
Type following command to kill the session with provided PID by your system. In my case <b>PID # was 1468</b>. I use following command to kill this process id.</div>
<div>
<br /></div>
<div>
<b>sudo kill 1468</b></div>
<div>
<br /></div>
<div>
After execution of above statement, now I was able to download GIT by using following command again which I executed in start.</div>
<div>
<br /></div>
<div>
<b>sudo apt-get install git</b></div>
<div>
<br /></div>
<div>
In case if this article helps you then please leave a comment to increase its credibility.</div>
<div>
<br /></div>
<div>
Thanks.</div>
</div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com1tag:blogger.com,1999:blog-838124513486486418.post-19738172294721586722016-07-24T13:49:00.001-07:002016-07-24T13:55:33.261-07:00NodeJS Series: Calling Sleep Method.<div dir="ltr" style="text-align: left;" trbidi="on">
Dear Friends,<br />
<br />
This is my first article about NodeJS, I am currently exploring it and problems which I found during my learning sessions, I will share it to you with my blog posts.<br />
<br />
Today while writing some code, I come across the need of sleep functionality between two transactions. While doing google, I found "sleep" library which provide required functionality.<br />
<br />
Calling of sleep method is simple e.g.,<br />
<br />
<b>sleep.sleep(1) // time will be defined in seconds </b><br />
<br />
But before that you need sleep library / package. To download it, use following <b>npm </b>command<br />
<br />
<b>npm install sleep</b><br />
<br />
After successful installation, write following code to test this functionality.<br />
<b><br /></b>
<b>var sleep = require('sleep');</b><br />
<b><br /></b>
<b>function callLoops()</b><br />
<b>{</b><br />
<b><span class="Apple-tab-span" style="white-space: pre;"> </span>for(var a=1;a<10;a++)</b><br />
<b><span class="Apple-tab-span" style="white-space: pre;"> </span>{<span class="Apple-tab-span" style="white-space: pre;"> </span></b><br />
<b><span class="Apple-tab-span" style="white-space: pre;"> </span>console.log('%d',a);</b><br />
<b><span class="Apple-tab-span" style="white-space: pre;"> </span>sleep.sleep(1);<span class="Apple-tab-span" style="white-space: pre;"> </span>//times in seconds.</b><br />
<b><span class="Apple-tab-span" style="white-space: pre;"> </span>}</b><br />
<b>}</b><br />
<b><br /></b>
<b>callLoops();</b><br />
<br />
and save this code in <b>myExample.js</b> file.<br />
<br />
Execute the file with following command<br />
<br />
<b>node myExample.js</b><br />
<br />
Congratulations...... You have achieved the goal.<br />
<br />
That's all for now folks..... If this post help you then please increase its credibility by posting your comments.<br />
<br />
Thanks.</div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-81195895282924440052016-03-14T12:11:00.003-07:002016-05-08T14:22:50.013-07:00HOW TO USE SPRINGFORM:ERROR TAG<div dir="ltr" style="text-align: left;" trbidi="on">
To use Spring Form Error Tag, you have to follow following steps.<br />
<br />
Your JSP Page should look like this:<br />
<br />
<%@page contentType="text/html" pageEncoding="UTF-8"%><br />
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form" %><br />
<br />
<!DOCTYPE html><br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><br />
<title>About Us Page</title><br />
</head><br />
<body> <br />
<sf:form method="POST" action ="/SpringBasics/redirect.aspx" <b><span style="color: blue;">modelAttribute="basicClass"</span></b>><br />
<span style="color: blue;"> <b> FirstName: <sf:input path="firstName" /></b></span><br />
<span style="color: blue;"><b> <sf:errors path="firstName" /></b></span><br />
<br/><br />
<input type="submit" value="Redirect Page" /> <br />
</sf:form><br />
</body><br />
</html><br />
<div>
<br /></div>
<div>
<br />
<a name='more'></a><br /></div>
<div>
<br /></div>
<div>
<b>Your Controller File Should be like this</b></div>
<div>
<br /></div>
<div>
<div>
/*</div>
<div>
* To change this license header, choose License Headers in Project Properties.</div>
<div>
* To change this template file, choose Tools | Templates</div>
<div>
* and open the template in the editor.</div>
<div>
*/</div>
<div>
package Controllers;</div>
<div>
<br /></div>
<div>
import Beans.basicClass;</div>
<div>
import javax.validation.Valid;</div>
<div>
import org.springframework.stereotype.Controller;</div>
<div>
import org.springframework.ui.Model;</div>
<div>
import org.springframework.validation.BindingResult;</div>
<div>
import org.springframework.web.bind.annotation.RequestMapping;</div>
<div>
import static org.springframework.web.bind.annotation.RequestMethod.GET;</div>
<div>
import static org.springframework.web.bind.annotation.RequestMethod.POST;</div>
<div>
<br /></div>
<div>
/**</div>
<div>
*</div>
<div>
* @author Zeeshan</div>
<div>
*/</div>
<div>
@Controller</div>
<div>
@RequestMapping({"/", "/*.htm", "/homepage"})</div>
<div>
public class HomeController {</div>
<div>
<br /></div>
<div>
@RequestMapping(value = "/", method = GET)</div>
<div>
public String aboutUs(basicClass obj) {</div>
<div>
System.out.println("HomeController >>>>>>>>>>>>>>>> aboutUs");</div>
<div>
return "aboutus";</div>
<div>
}</div>
<div>
<br /></div>
<div>
@RequestMapping(value = "redirect", method = POST)</div>
<div>
public String redirect(<b>@Valid basicClass obj</b>, BindingResult <b>result</b>, Model m) {</div>
<div>
if (<b>result.hasErrors()</b>) {</div>
<div>
<b>return "aboutus";</b></div>
<div>
}</div>
<div>
System.out.println("HomeController >>>>>>>>>>>>>>>> redirect");</div>
<div>
m.addAttribute("firstName", "zeeshan");</div>
<div>
return "index";</div>
<div>
}</div>
<div>
}</div>
</div>
<div>
<br /></div>
<div>
<b>Please note that @Valid tag will validate inputs on forms</b></div>
<div>
<br /></div>
<div>
<b>Your Bean Class should look like thi</b>s</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
/*</div>
<div>
* To change this license header, choose License Headers in Project Properties.</div>
<div>
* To change this template file, choose Tools | Templates</div>
<div>
* and open the template in the editor.</div>
<div>
*/</div>
<div>
package Beans;</div>
<div>
<br /></div>
<div>
import javax.validation.constraints.NotNull;</div>
<div>
import javax.validation.constraints.Size;</div>
<div>
import org.hibernate.validator.constraints.NotEmpty;</div>
<div>
import org.springframework.context.annotation.Bean;</div>
<div>
<br /></div>
<div>
/**</div>
<div>
*</div>
<div>
* @author zeeshan</div>
<div>
*/</div>
<div>
public class basicClass {</div>
<div>
/*</div>
<div>
@NotNull </div>
<div>
*/</div>
<div>
<br /></div>
<div>
@NotEmpty</div>
<div>
@Size(min = 2, max = 5)</div>
<div>
private String firstName;</div>
<div>
<br /></div>
<div>
public String getFirstName() {</div>
<div>
return firstName;</div>
<div>
}</div>
<div>
<br /></div>
<div>
public void setFirstName(String firstName) {</div>
<div>
this.firstName = firstName;</div>
<div>
}</div>
<div>
<br /></div>
<div>
}</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-19695231358022328312016-02-09T12:36:00.001-08:002016-02-09T12:38:49.469-08:00java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'xxx' available as request attribute<div dir="ltr" style="text-align: left;" trbidi="on">
While trying to use Spring MVC form Tags, I come across following exception<br />
<span style="font-size: large;"><br /></span>
<br />
<pre><b><span style="font-size: large;">java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'userInput' available as request attribute</span></b></pre>
<pre><b>
</b></pre>
<pre>Below is my JSP Code with Spring Tags</pre>
<pre></pre>
<pre><b><%@page contentType="text/html" pageEncoding="UTF-8" session="false" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="st"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>About Us Page</title>
<st:url var="bootstrapp_theme" value="/resources/css/bootstrap-theme.css" />
<st:url var="bootstrapp_css" value="/resources/css/bootstrap.css" />
<st:url var="jquery" value="/resources/js/jquery-2.2.0.js" />
<st:url var="bootstrapp_js" value="/resources/js/bootstrap.js" />
<link href="${bootstrapp_theme}" rel="stylesheet" />
<link href="${bootstrapp_css}" rel="stylesheet" />
<script src="${jquery}" ></script>
<script src="${bootstrapp_js}" ></script>
<body>
<h1 class="text-center">ABC CORPORATION</h1>
<sf:form method="POST" action ="/SpringBasics/redirect">
<table>
<tr>
<td>Login ID: &nbsp;&nbsp;<input type="text" name="userName" />
<br> Email: &nbsp;&nbsp;<sf:input type="email" <span style="color: blue;">path="email"</span> />
<br> My Label: &nbsp;&nbsp;<sf:label id="lbl1"<span style="color: blue;"> path="myLabel"</span> />
</td>
</tr>
<tr>
<td>Password:&nbsp;&nbsp;<input type="number" name="extension" /></td>
</tr>
</table>
<input type="submit" value="Redirect Page" />
</sf:form>
</body>
</html>
</b></pre>
<div>
<br /></div>
<div>
<br /></div>
<div>
To resolve it I created a properties class which is defined below</div>
<div>
<br /></div>
<div>
<b></b><br />
<div style="display: inline !important;">
<b>package springbasics;</b></div>
<b>
</b></div>
<div>
<b></b><br />
<div>
<b><br /></b></div>
<b>
<div>
<br /></div>
<div>
/**</div>
<div>
*</div>
<div>
* @author Zeeshan</div>
<div>
*/</div>
<div>
<br /></div>
<div>
public class userInput {</div>
<div>
<br /></div>
<div>
protected String _email;</div>
<div>
<b></b><br />
<div style="display: inline !important;">
<b> protected String _myLabel;</b></div>
<b>
</b></div>
<div>
<br /></div>
<div>
public String getMyLabel() {</div>
<div>
return _myLabel;</div>
<div>
}</div>
<div>
<br /></div>
<div>
public void setMyLabel(String _myLabel) {</div>
<div>
this._myLabel = _myLabel;</div>
<div>
}</div>
<div>
<br /></div>
<div>
public String getEmail() {</div>
<div>
return _email;</div>
<div>
}</div>
<div>
<br /></div>
<div>
public void setEmail(String _email) {</div>
<div>
this._email = _email;</div>
<div>
}</div>
<div>
<br /></div>
<div>
<b></b><br />
<div style="display: inline !important;">
<b>}</b></div>
<b>
</b></div>
<div>
<br /></div>
</b></div>
<div>
and change my JSP Code from </div>
<div>
<b> </b></div>
<div>
<b><sf:form method="POST" action ="/SpringBasics/redirect"></b></div>
<div>
<br />
To</div>
<div>
<b><br /></b></div>
<div>
<b><sf:form method="POST" action ="/SpringBasics/redirect"<span style="color: blue;"> modelAttribute="userInput"</span> ></b></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Also change my controller class parameter From </div>
<div>
<br /></div>
<div>
<div>
<b>@RequestMapping(value = "/", method = GET)</b></div>
<div>
<b> public String aboutUs() { </b></div>
<div>
<b> return "aboutus"; </b></div>
<div>
<b> }</b></div>
</div>
<div>
<br /></div>
<div>
To</div>
<div>
<br /></div>
<div>
<div>
<div>
<b>@RequestMapping(value = "/", method = GET)</b></div>
<div>
<b> public String aboutUs(<span style="color: blue;">userInput obj</span>) { </b></div>
<div>
<b> return "aboutus"; </b></div>
<div>
<b> }</b></div>
</div>
</div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
This resolve the above error message. </div>
<div>
<b><br /></b></div>
<div>
If suggested solution help you in solving your issue then please comment to increase its credibility.<br />
<br />
Thanks.</div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-75394057990457634932016-01-28T12:40:00.002-08:002016-01-28T12:40:35.052-08:00SCRIPT AUTOMATICALLY EXECUTE ON CONSOLE OPENING<div dir="ltr" style="text-align: left;" trbidi="on">
Dear Linux Lovers,<br />
<br />
If you want to load a shell script automatically whenever console is opened by user then right it in " <b>.bashrc</b> " file. The file exists in user home directory. To edit .bashrc simply write<br />
<br />
<br />
vi .bashrc /*To open in VI*/<br />
<br />
or any other editor which you love.<br />
<br />
Enjoy Linux World.</div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-66386999297721908142016-01-28T12:04:00.001-08:002016-01-28T12:10:14.226-08:00No Launcher Load in Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-kRrnjDygnQI/Vqpx6SseoGI/AAAAAAAAAS4/28gGLmtK3XQ/s1600/9JClV.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="372" src="http://3.bp.blogspot.com/-kRrnjDygnQI/Vqpx6SseoGI/AAAAAAAAAS4/28gGLmtK3XQ/s640/9JClV.png" width="640" /></a></div>
<br />
Sometimes UBUNTU does not show launcher due to some problem and in that case we have to re-install the O/S again. I come across this problem several times but today I did some research and found this easiest solution which work for me and I hope that It will work for you as well.<br />
<br />
Follow below steps to get your UBUNTU launcher back:<br />
<br />
1) Press CTRL+ALT+DTL in vm ware (3 Buttons combine) to open your processes window inside Virtual Machine.<br />
<br />
2) Go to 3rd Tab (Disk) and double click on /dev/sda1. This will open your Files Explorer.<br />
<br />
3) Now press CTRL+F for searching and find TERMINAL.<br />
<br />
4) Open TERMINAL.<br />
<br />
5) Write " sudo apt-get update "<br />
<br />
6) Write " sudo apt-get install unity " to install Unity which will display you LAUNCHER.<br />
<br />
7) Write " sudo reboot " to reboot your Virtual Machine.<br />
<br />
<br />
After your computer / Virtual Machine is reboot, you can see your LAUNCHER back.<br />
<br />
Above steps resolve my problem and if does the same in your case then please comment so the reliability of the post will increase.<br />
<br />
Thanks.<br />
<br />
<br />
<br /></div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-71579805187734141162016-01-17T05:47:00.000-08:002016-01-17T05:47:01.123-08:00Unable to run mksdcard SDK tool.<div dir="ltr" style="text-align: left;" trbidi="on">
During configuration of Android IntelliJ on UBUNTU, you might come across subjected message. Following command will help you in resolving this issue.<br />
<br />
<pre class="default prettyprint prettyprinted"><code><span class="pln">sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> install lib32z1 lib32ncurses5 lib32bz2</span><span class="pun">-</span><span class="lit">1.0</span><span class="pln"> lib32stdc</span><span class="pun">++</span><span class="lit">6</span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="lit"> </span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="lit"> </span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="lit"> </span></code></pre>
</div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-24054434471200384972016-01-17T04:21:00.001-08:002016-01-17T04:21:11.398-08:00HOW TO REMOVE ALL JDK FROM UBUNTU<div dir="ltr" style="text-align: left;" trbidi="on">
Following command will remove all JDK versions from your computer in UBUNTU<br />
<br />
sudo apt-get purge openjdk-*<br />
<br />
In case if above code help you then please leave a comment for its authenticity to others.<br />
<br />
<br /></div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-76268402419594294592015-12-27T09:06:00.001-08:002015-12-27T09:06:12.773-08:00PASSING SUMMARIZED VALUES FROM SUB-REPORT TO MAIN-REPORT IN CRYSTAL REPORTS<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: "Arial Narrow","sans-serif";">Dear
All, this time what I am going to share with you is passing summarized
variables from sub-reports to main-reports in crystal reports. Here, we have
different ways to pass summarized fields from sub-report to main-report and vice-versa
but what I am going to share with you is quite simple and easy as well.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: "Arial Narrow","sans-serif";"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: "Arial Narrow","sans-serif";">Below
I am describing the steps through which you can perform this task.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-align: justify; text-indent: -.25in;">
</div>
<ol style="text-align: left;">
<li><span style="font-family: 'Arial Narrow', sans-serif; text-indent: -0.25in;">Just
create a new Crystal report and call it “<b>mainpage.rpt</b>”.</span></li>
<li><span style="font-family: 'Arial Narrow', sans-serif; text-indent: -0.25in;">Now
add formula field and name it what you like. I am giving it name <b>“mainTotal”</b></span></li>
<li><span style="font-family: 'Arial Narrow', sans-serif; text-indent: -0.25in;">Edit
<b>“mainTotal”</b> formula field and write
in it <b>shared numbervar x; [not</b></span><b style="text-indent: -0.25in;"><span style="font-family: "Arial Narrow","sans-serif";">e: you can take any type like Boolean
, etc.]</span></b></li>
<li><span style="font-family: 'Arial Narrow', sans-serif; text-indent: -0.25in;">Now,
add a sub-report in main report and also create a formula fields.<b>[Repeat step 2 and 3]</b></span></li>
<li><span style="font-family: 'Arial Narrow', sans-serif; text-indent: -0.25in;">Now
switch to main report again.</span></li>
<li><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">Right click on sub-report.
You will see in menu option “</span><b style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">Change
Subreport Links</b><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">”</span><b style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">. </b><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">Click on it.</span></li>
<li><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;"><a href="http://1.bp.blogspot.com/-gCIJR6tKCbA/VoAZvTJNCdI/AAAAAAAAAR4/Qb5rdli5-3U/s1600/pic1.png" imageanchor="1"><img border="0" height="480" src="http://1.bp.blogspot.com/-gCIJR6tKCbA/VoAZvTJNCdI/AAAAAAAAAR4/Qb5rdli5-3U/s640/pic1.png" width="640" /></a></span></li>
<li><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">Bring
that </span><b style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">“mainTotal”</b><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;"> field in </span><b style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">“fields to link” </b><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">and uncheck checkbox having “</span><b style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">Select data in subrport based on field</b><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;">”.</span></li>
<li><span style="font-family: 'Arial Narrow', sans-serif; font-size: 11pt; line-height: 115%;"><a href="http://3.bp.blogspot.com/-Lp9pXNKUvnE/VoAZzLOUL_I/AAAAAAAAASE/KhWllNyIMQI/s1600/pic2.png" imageanchor="1"><img border="0" height="480" src="http://3.bp.blogspot.com/-Lp9pXNKUvnE/VoAZzLOUL_I/AAAAAAAAASE/KhWllNyIMQI/s640/pic2.png" width="640" /></a></span></li>
<li><span style="font-family: "Arial Narrow","sans-serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;">Press <b>OK</b>
Button.</span></li>
</ol>
<div>
<br /></div>
<div>
<div class="MsoListParagraphCxSpFirst" style="text-align: justify;">
<span style="font-family: "Arial Narrow","sans-serif";">Hey All………. Congrates. You have
created your first report that is able to share values between main report and
sub-report.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: justify;">
<br /></div>
<div class="MsoListParagraphCxSpLast" style="text-align: justify;">
<span style="font-family: "Arial Narrow","sans-serif";">Kindly see below image where to
keep sub-report and summarized variable so that if you are receiving value of
previous section not current section then you can make necessary changes and
get the correct one report.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="text-align: justify;">
<span style="font-family: "Arial Narrow","sans-serif";"><br /></span></div>
<div class="MsoListParagraphCxSpLast" style="text-align: justify;">
<span style="font-family: "Arial Narrow","sans-serif";"><br /></span></div>
<div class="MsoListParagraphCxSpLast" style="text-align: justify;">
<span style="font-family: "Arial Narrow","sans-serif";"><a href="http://1.bp.blogspot.com/-gb0lsYRlAN4/VoAZ2iuAFsI/AAAAAAAAASQ/6a0St3FIjsE/s1600/pic3.png" imageanchor="1"><img border="0" height="480" src="http://1.bp.blogspot.com/-gb0lsYRlAN4/VoAZ2iuAFsI/AAAAAAAAASQ/6a0St3FIjsE/s640/pic3.png" width="640" /></a></span></div>
</div>
<div>
<span style="font-family: Arial Narrow, sans-serif;"><span style="font-size: 14.6667px; line-height: 16.8667px;"><br /></span></span></div>
<div>
<span style="font-family: Arial Narrow, sans-serif;"><span style="font-size: 14.6667px; line-height: 16.8667px;"><br /></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial Narrow, sans-serif;">If above post help you then please leave a comment.</span></div>
<div>
<span style="font-family: 'Arial Narrow', sans-serif; text-align: justify; text-indent: -0.25in;"><span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;"><br /></span></span></div>
<div>
<br /></div>
<!--[if !supportLists]--></div>
Zeeshan Ahmed Memonhttp://www.blogger.com/profile/16317564942578991460noreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-85345086440293121852015-10-04T11:45:00.003-07:002015-10-04T11:45:36.571-07:00ENABLE ROOT USER IN LINUXRoot user is super user in linux operating system. In ubuntu, it is not enabled by default. To Enable <b>"root"</b> user in linux, follow below commands.<br />
<pre><i><b><code>
</code></b></i></pre>
First Change the password of root by executing below command<br />
<br />
<pre><i><b><code>sudo passwd root</code></b></i></pre>
<pre><i><b><code> </code></b></i></pre>
This will ask you enter password. After configuring the password, unlock root user by following command.<br />
<br />
<pre><i><b><code>sudo passwd -u root </code></b></i></pre>
<br />
In case if above solution works for you then kindly leave a comment for ensuring the credibility of the solution.<br />
<br />
Thanks. <br />
<br />
<pre><i><b><code>
</code></b></i></pre>
<pre>
</pre>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-44450465356558554092015-10-04T11:40:00.002-07:002016-01-17T04:24:46.008-08:00Configuring Java Delopment Kit in LINUX<div dir="ltr" style="text-align: left;" trbidi="on">
One of the important topic for beginners in linux operation system is the steps of configuring JDK (Java Development Kit). Below are the steps which helped me and I hope that they will do the same in your case also.<br />
<br />
Execute below commands by replacing the statements in bold format. Run these commands after logging in super user.<br />
<br />
update-alternatives --install /usr/bin/java java <i><u><b>/home/zeeshan/Downloads/jdk1.8.0_60/bin/java</b></u></i> 100<br />
<br />
update-alternatives --install /usr/bin/javac javac <u><i><b>/home/zeeshan/Downloads/jdk1.8.0_60/bin/javac</b></i></u> 100<br />
<br />
<br />To Remove Configuration of JDK use following commands<br />
<br />
sudo update-alternatives --remove java<i><u><b> home/zeeshan/Downloads/jdk1.8.0_60/bin/java</b></u></i><br />
<br />
sudo update-alternatives --remove java<b>c</b><i><b></b><u><b> home/zeeshan/Downloads/jdk1.8.0_60/bin/javac</b></u></i><br />
<br />
In case if above solution help you then please leave a comment for maximizing credibility of defined solution.<br />
<br />
Thanks.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-17335777153438588282014-10-07T08:42:00.005-07:002014-10-07T08:42:57.848-07:00i recieve sorry the process android.process.acore has stopped unexpectedly please try again when i try to access my contacts list?Try to find out which application or update you install before you get this error on your smart phone. Remove that application and you will get rid out of it. In my case, I have installed <strong>Viber</strong> application after which I receive this error. After uninstalling it, now I can access my contact list.<br />
<br /><br />
Wish you all the best.... If this solution works for you then write comment so that its authenticity will increase.<br />
<br /><br />
Thanks.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-26938838168518370582014-05-11T11:55:00.000-07:002014-05-11T11:56:58.705-07:00You don't have permission to access / on this server on wampAfter WAMP server installation, when I tried to access it using URL<br />
<div>
<br /></div>
<div>
<b>http://localhost:8080</b></div>
<div>
<b><br /></b></div>
<div>
it through me below message</div>
<div>
<br /></div>
<div>
<b>"You don't have permission to access / on this server on wamp"</b></div>
<div>
<b><br /></b></div>
<div>
This message is appeared when you have an Operating System (Windows 8, Window 7, etc.) which is IPv6 compatible. This is because Apache server assumes that it will receive messages from <b>::1</b> port while we are only sending it from 127.0.0.1. To resolve the issue, you need to make changes in <b>httpd.conf</b> file (C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf) and in <b>phpmyadmin.conf</b> (C:\wamp\alias\phpmyadmin.conf). First you need to replace below line in httpd.conf file</div>
<div>
<br /></div>
<div>
Allow from 127.0.0.1</div>
<div>
<br /></div>
<div>
<b>to</b></div>
<div>
<b><br /></b></div>
<div>
<b>Allow from 127.0.0.1 ::1</b></div>
<div>
<br /></div>
<div>
Similarly, in phpmyadmin.conf file you need to replace the same line</div>
<div>
<br /></div>
<div>
<div>
<directory apps="" c:="" phpmyadmin3.5.1="" wamp=""></directory></div>
<div>
Options Indexes FollowSymLinks MultiViews</div>
<div>
AllowOverride all</div>
<div>
Order Deny,Allow</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>Deny from all</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><b>Allow from 127.0.0.1</b></div>
<div>
</div>
</div>
<div>
<br /></div>
<div>
<b>to</b></div>
<div>
<br /></div>
<div>
<div>
<directory apps="" c:="" phpmyadmin3.5.1="" wamp=""></directory></div>
<div>
Options Indexes FollowSymLinks MultiViews</div>
<div>
AllowOverride all</div>
<div>
Order Deny,Allow</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>Deny from all</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><b>Allow from 127.0.0.1 ::1</b></div>
<div>
</div>
</div>
<div>
<br /></div>
<div>
After saving the changes in both files, restart the wamp server and now try to access the link "http://localhost:8080" .</div>
<div>
<br /></div>
<div>
Hope that issue is resolved now.</div>
<div>
<br /></div>
<div>
In case if above post resolve your problem then kindly comment to increase the credibility of the post.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-71623432018525069252013-10-19T23:42:00.000-07:002013-10-19T23:42:03.109-07:00Setting Sharepoint 2013 in Visual Studio 2012<span style="background-color: white; color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px;">Dear Readers,</span><div>
<span style="color: #424242; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 21px;"><br /></span></span><span style="background-color: white; color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px;">I have started to learn sharepoint 2013 and while doing so, first hurdle was that Visual Studio 2012 was not displaying me sharepoint 2013 controls. So, I have to setup that manually and for that I follow below steps.</span><br />
<br />
<div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-07-76-metablogapi/0601.clip_5F00_image002_5F00_4AAE86C0.jpg" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;"><img alt="clip_image002" border="0" height="277" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-07-76-metablogapi/8182.clip_5F00_image002_5F00_thumb_5F00_65110A88.jpg" style="background-image: none; border: 0px currentcolor; display: inline; height: auto !important; max-width: 100%; overflow: hidden;" title="clip_image002" width="404" /></a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">In order to get the templates into VS, you need to install<strong> Microsoft Office Developer Tools for Visual Studio 2012</strong> which can be found here: <a href="http://www.microsoft.com/visualstudio/eng/office-dev-tools-for-visual-studio" style="color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://www.microsoft.com/visualstudio/eng/office-dev-tools-for-visual-studio</a> (direct install : <a href="http://aka.ms/OfficeDevToolsForVS2012" style="color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://aka.ms/OfficeDevToolsForVS2012</a>).</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Unfortunately, this leverages the Microsoft Web Platform Installer which does not play well in closed environments. The Microsoft Web Platform Installer will install the following items:</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Microsoft Identity Extensions</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://download.microsoft.com/download/0/1/D/01D06854-CA0C-46F1-ADBA-EBF86010DCC6/RTM/MicrosoftIdentityExtensions-64.msi" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/0/1/D/01D06854-CA0C-46F1-ADBA-EBF86010DCC6/RTM/MicrosoftIdentityExtensions-64.msi</a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Workflow Manager Client 1.0</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://download.microsoft.com/download/D/B/D/DBD439A9-370D-40EA-B3B7-45CD935B98FB/WF/en/WorkflowManagerClient_x64.msi" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/D/B/D/DBD439A9-370D-40EA-B3B7-45CD935B98FB/WF/en/WorkflowManagerClient_x64.msi</a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Microsoft Exchange Web Services 2.0</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://download.microsoft.com/download/8/2/5/825231AC-D373-45D4-A644-7AF12340C815/EwsManagedApi32.msi" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/8/2/5/825231AC-D373-45D4-A644-7AF12340C815/EwsManagedApi32.msi</a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Microsoft Windows Identity Foundation SDK 4.0</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://download.microsoft.com/download/7/0/1/70118832-3749-4C75-B860-456FC0712870/WindowsIdentityFoundation-SDK-4.0.msi" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/7/0/1/70118832-3749-4C75-B860-456FC0712870/WindowsIdentityFoundation-SDK-4.0.msi</a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Microsoft SharePoint Client Components</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://download.microsoft.com/download/E/1/9/E1987F6C-4D0A-4918-AEFE-12105B59FF6A/sharepointclientcomponents_x64.msi" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/E/1/9/E1987F6C-4D0A-4918-AEFE-12105B59FF6A/sharepointclientcomponents_x64.msi</a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Microsoft Workflow Manger Tools</span></div>
<div style="color: #424242; font-family: Calibri; font-size: 11pt; margin: 0in;">
<a href="http://download.microsoft.com/download/D/B/D/DBD439A9-370D-40EA-B3B7-45CD935B98FB/WFTools/en/WorkflowManagerTools_x64.msi" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/D/B/D/DBD439A9-370D-40EA-B3B7-45CD935B98FB/WFTools/en/WorkflowManagerTools_x64.msi</a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Cumulative Update 1.0 for Microsoft Workflow Manager Tools</span></div>
<div style="color: #424242; font-family: Calibri; font-size: 11pt; margin: 0in;">
<a href="http://download.microsoft.com/download/3/B/B/3BBBBE7D-5D9B-4ADD-9A53-BDDF002F4ABB/WorkflowManager-KB2799754-x64-EN.exe" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/3/B/B/3BBBBE7D-5D9B-4ADD-9A53-BDDF002F4ABB/WorkflowManager-KB2799754-x64-EN.exe</a></div>
<div style="color: #424242; font-family: Calibri; font-size: 11pt; margin: 0in;">
<br /></div>
<div style="color: #424242; font-family: Calibri; font-size: 11pt; margin: 0in;">
<span style="background-color: white;">Open XML SDK 2.5</span></div>
<div style="color: #424242; font-family: Calibri; font-size: 11pt; margin: 0in;">
<a href="http://download.microsoft.com/download/5/5/3/553C731E-9333-40FB-ADE3-E02DC9643B31/OpenXMLSDKV25.msi" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/5/5/3/553C731E-9333-40FB-ADE3-E02DC9643B31/OpenXMLSDKV25.msi</a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Microsoft Visual Studio Tools for Office Runtime</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://download.microsoft.com/download/A/6/0/A60BE6E6-41E8-4A23-BF86-CD3CC2FE968A/ENU/vstor40_x64.exe" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/A/6/0/A60BE6E6-41E8-4A23-BF86-CD3CC2FE968A/ENU/vstor40_x64.exe</a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Microsoft Office Developer Tools for Visual Studio 2012 - RTM</span></div>
<div style="color: #424242; font-family: Calibri; font-size: 11pt; margin: 0in;">
<a href="http://download.microsoft.com/download/2/F/6/2F6A4FFA-D409-40C8-AF68-F6F0CBE0A00D/ENU/officetools_bundle.exe" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">http://download.microsoft.com/download/2/F/6/2F6A4FFA-D409-40C8-AF68-F6F0CBE0A00D/ENU/officetools_bundle.exe</a></div>
<div style="color: #424242; font-family: Calibri; font-size: 11pt; margin: 0in;">
<br /></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Once these items have been downloaded and installed on your development machine and double-click to install them, you will see that there is the option to create Apps and other items for Office and SharePoint 2013.</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-07-76-metablogapi/5444.clip_5F00_image004_5F00_26AB46D5.jpg" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;"><img alt="clip_image004" border="0" height="282" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-07-76-metablogapi/8255.clip_5F00_image004_5F00_thumb_5F00_1F226819.jpg" style="background-image: none; border: 0px currentcolor; display: inline; height: auto !important; max-width: 100%; overflow: hidden;" title="clip_image004" width="394" /></a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Unfortunately, if you try to create a project for any of these new fun items, you will get the following error:</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<strong style="background-color: white;">An error occurred whilst trying to load some required components, Please ensure the following prerequisite components are installed.</strong></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<strong style="background-color: white;">Microsoft Web Developer Tools</strong></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<strong style="background-color: white;">Microsoft Exchange Web Services"</strong></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">The problem is that the Microsoft Web Platform Installer adds parameters when installing the Microsoft Exchange Web Services that must be used in order to get around the error. If you have already installed the Microsoft Exchange Web Services, uninstall it from Control Panel and then open up a command prompt. Navigate to the location of <a href="http://download.microsoft.com/download/8/2/5/825231AC-D373-45D4-A644-7AF12340C815/EwsManagedApi32.msi" style="color: #0072c6; cursor: pointer; outline: none; text-decoration: none;">EwsManagedApi32.msi</a>. In the command prompt, run</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">EwsManagedApi32.msi addlocal="ExchangeWebServicesApi_Feature,ExchangeWebServicesApi_Gac"</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-07-76-metablogapi/0724.clip_5F00_image006_5F00_7CCD6350.jpg" style="background-color: white; color: #0072c6; cursor: pointer; outline: none; text-decoration: none;"><img alt="clip_image006" border="0" height="151" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-07-76-metablogapi/8625.clip_5F00_image006_5F00_thumb_5F00_4586DC15.jpg" style="background-image: none; border: 0px currentcolor; display: inline; height: auto !important; max-width: 100%; overflow: hidden;" title="clip_image006" width="343" /></a></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<span style="background-color: white;">Once that has finished installing, open up Visual Studio 2012 and enjoy creating apps for Microsoft SharePoint Server 2013.</span></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
Kindly provide your valuable comments in case if the above solution works for you too.</div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<b>Please note that the content was copied from below URL </b></div>
<div style="color: #424242; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 1.5em;">
<b>(</b><a href="http://blogs.msdn.com/b/timquin/archive/2013/01/22/setting-up-visual-studio-2012-for-sharepoint-2013-development-offline.aspx">http://blogs.msdn.com/b/timquin/archive/2013/01/22/setting-up-visual-studio-2012-for-sharepoint-2013-development-offline.aspx</a><b>)</b></div>
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-838124513486486418.post-71278216671818402192013-09-23T03:57:00.001-07:002013-09-23T03:57:14.247-07:00The sign-in method you're trying to use isn't allowed. For more info, contact your network administratorAbove problem occur when you have not added a group (of which User try to login) in your local policy login. To resolve the issue, follow the steps,<div>
<br /></div>
<div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
Log in as the administrator on the server, then start the<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> Group Policy Management Editor</strong> by running the <em style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">gpmc.msc</strong></em> command from PowerShell or the Command Line window.</div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
1. In the Group Policy Management window on the left hand side, select <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Group Policy Management.</strong></div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
<a href="http://i1.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic1.png" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #743399; margin: 0px; padding: 0px; vertical-align: baseline;"><img alt="Pic1" class="alignnone size-medium wp-image-1592" height="312" src="http://i1.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic1.png?resize=416%2C312" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: none; height: auto; margin: 0px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="416" /></a></div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
2. Click to expand the <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Forest<your domain="" name=""></your></strong> tree node.<br />3. Click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Domains</strong>.<br />4. Select your domain name.<br />5. Click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Group Policy Objects.</strong></div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
<a href="http://i1.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic2.png" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #743399; margin: 0px; padding: 0px; vertical-align: baseline;"><img alt="Pic2" height="284" src="http://i2.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic2.png?resize=430%2C284" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: none; margin: 0px; padding: 0px; vertical-align: baseline;" width="430" /></a></div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
6. In the right-hand window, double-click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Default Domain Controllers Policy</strong>.<br />7. Right-click Default Domain Controllers Policy and Select <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Edit</strong>.<br />8. In the <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Group Policy Management Editor </strong>window, click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Default </strong><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Domain Controllers Policy</strong>.<br />9. Click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Computer Configuration</strong>, and then click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Policies</strong>.<br />10. Click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Windows Settings</strong>, and then click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Security Settings</strong>.</div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
<a href="http://i1.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic3.png" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #743399; margin: 0px; padding: 0px; vertical-align: baseline;"><img alt="Pic3" class="alignnone size-medium wp-image-1597" height="316" src="http://i2.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic3.png?resize=425%2C316" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: none; height: auto; margin: 0px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="425" /></a></div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
11. Click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Local Policies </strong>and then click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">User Rights Assignments</strong>.<br />12. In the right pane, click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Allow log on locally</strong>.</div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
<a href="http://i0.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic4.png" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #743399; margin: 0px; padding: 0px; vertical-align: baseline;"><img alt="Pic4" class="alignnone size-medium wp-image-1600" height="214" src="http://i1.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic4.png?resize=300%2C214" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: none; height: auto; margin: 0px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="300" /></a></div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
12. Click the <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Add User or Group</strong> button.<br />13. In the <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Add User or Group </strong>dialog, enter the name to be added or click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Browse.. </strong>to search for a name.</div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
<a href="http://i2.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic5.png" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #743399; margin: 0px; padding: 0px; vertical-align: baseline;"><img alt="Pic5" class="alignnone size-medium wp-image-1602" height="300" src="http://i1.wp.com/www.sharepointviking.com/wp-content/uploads/2013/05/Pic5.png?resize=252%2C300" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: none; height: auto; margin: 0px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="252" /></a></div>
<div style="background-color: #f1f1f1; border: 0px; color: #666666; font-family: Georgia, 'Bitstream Charter', serif; font-size: 12px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;">
14. Click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">OK .</strong><br />15. Repeat steps 12-14 if you want to add more users.<br />16. Click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">OK</strong> to Close the Allow log on locally Properties dialog, and then click <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Close</strong> several times to Close the remaining open Windows.<br />17. Run the following command in the Command Window to activate the policy changes:<br /><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">gpupdate /force.</strong></div>
Kindly note that above content is originally copied from <a href="http://www.sharepointviking.com/the-signin-method-youre-trying-to-use-isnt-allowed-windows-server-2012/">http://www.sharepointviking.com/the-signin-method-youre-trying-to-use-isnt-allowed-windows-server-2012/</a></div>
<div>
<br /></div>
<div>
In case if above solution resolve your problem then please comment on it to increase its credibility.</div>
Unknownnoreply@blogger.com6tag:blogger.com,1999:blog-838124513486486418.post-71212423484103609892013-07-23T12:54:00.001-07:002013-07-23T12:54:42.551-07:00The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.Dear Readers,<br />
<br />
I face subjected problem while trying to learn ADO.Net Entity Framework in visual studio. After a bit of searching, I come to know that I have not included <b>EntityFramework.dll</b> reference in my project. Just add the DLL reference and I hope that your will out of this problem.<br />
<br />
Please note that in case if you don't find <b>EntityFramework.dll</b> in references then you can locate it in the project bin (Debug\Release) folder where you add <b>ADO.Net Entity Data Model.</b><br />
<b><br /></b>
I hope that this will work for you as it worked for me. So please leave a comment if this post help you so other visitors can also trust on this solution.<br />
<br />
Thanks.<br />
<br />
<br />
<br />Unknownnoreply@blogger.com5