tag:blogger.com,1999:blog-145691402024-03-12T16:50:47.550-07:00Anil's Technical BlogUnknownnoreply@blogger.comBlogger174125tag:blogger.com,1999:blog-14569140.post-25659486014724612932016-01-06T15:05:00.001-08:002016-01-06T15:05:26.056-08:00MacOSX Sed: extra characters at the end of<div dir="ltr" style="text-align: left;" trbidi="on">
if your sed is throwing something like <span style="background-color: #eeeeee; color: #222426; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; white-space: inherit;">extra characters at the end of p command</span><br />
<br />
<br />
then do<br />
<br />
sed -i '' 'regex' filename<br />
<br />
Remember to add the '' before regex.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-49563487783477086802015-08-19T13:36:00.002-07:002015-08-19T13:36:49.607-07:00Tip: Elasticsearch OSX ConnectException<div dir="ltr" style="text-align: left;" trbidi="on">
If you downloaded the latest Elasticsearch installation and you are getting the following exception:<br />
<br />
org.elasticsearch.common.netty.channel.ConnectTimeoutException: connection timed out:/xyz.def.zzzz:9300<br />
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:139)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)<br />
<br />
<br />
<br />
<h2 style="text-align: left;">
Solution</h2>
go to config/elasticsearch.yml<br />
<br />
Uncomment the following line<br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;">discovery.zen.ping.multicast.enabled: false</span><br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;">Restart Elasticsearch</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-43377967501447314822015-07-14T15:51:00.001-07:002015-07-14T15:53:23.153-07:00Git Tip: Repository not found<div dir="ltr" style="text-align: left;" trbidi="on">
If you get any of the following errors:<br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 22.5px;">GitLab: The project you were looking for could not be found.</span><br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 22.5px;">Git The Repository not found</span><br />
<span style="color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 15px; line-height: 22.5px;">Please make sure you have the correct access rights</span></span><br />
<span style="color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="background-color: white; font-size: 15px; line-height: 22.5px;"></span></span><br />
<span style="color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 15px; line-height: 22.5px;">and the repository exists.</span></span><br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 22.5px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 22.5px;">when you do operations such as git clone or git push,</span><br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 22.5px;">it is possible that your ssh key has not been added with ssh-agent</span><br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 22.5px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 22.5px;">$ ssh-add</span><br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;">Enter passphrase for /home/name/.ssh/id_rsa: [] Identity added: /home/name/.ssh/id_rsa </span><br />
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;">After this, it should hopefully work</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-43056033106275567062014-09-16T22:55:00.003-07:002014-09-16T22:55:49.787-07:00JSONP: Escape JSON String<div dir="ltr" style="text-align: left;" trbidi="on">
Assume you have a JSON string that you are going to send as result value back to Javascript, then you need to do the following:<br />
<br />
String dataString = stringWriter.toString();<br />
dataString = dataString.replaceAll("\\u2028","\\\\u2028");<br />
dataString = dataString.replaceAll("\\u2029","\\\\u2029");<br />
<br />
Basically, you need to escape the unicode characters.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-10230633789503272122014-07-21T14:06:00.002-07:002014-07-21T14:06:38.686-07:00Tip: Apache Kafka<div dir="ltr" style="text-align: left;" trbidi="on">
If you get the following exception:<br />
$ ./zookeeper-server-start.sh ../config/zookeeper.properties<br />
Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain<br />
<br />
then you will have to do the following:<br />
$ ./gradlew jar<br />
<br />
to build the Kafka distribution and get the dependencies.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-56179158699003312852014-05-02T12:31:00.003-07:002014-05-02T12:31:34.207-07:00Tip: Linux Determine File Sizes in your home directory<div dir="ltr" style="text-align: left;" trbidi="on">
<br />anil@localhost:~$ du -sh * > largefiles<br />
<br />
You can then look inside the file largefiles.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-10173262030102844922014-04-30T21:02:00.002-07:002014-04-30T21:02:47.217-07:00Tip: IntelliJ IDEA : Do not want unlimited whitespace at the end of each line<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px;">File menu -> Settings -> Editor -> Virtual Space and uncheck 'Allow placement of caret after end of line'. </span><br />
<span style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px;"><br /></span>
<span style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px;">Also uncheck the other options in the Virtual Space panel.</span><br />
<span style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px;"><br /></span>
<span style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px;"><i><b>If you want to remove trailing whitespaces</b></i>, you can do</span><br />
<span style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px;">File menu-->Settings --> Editor --> Strip Whitespaces on Save to either "All" or "ModifiedLines".</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-78167141029910216532014-01-07T08:42:00.000-08:002014-01-07T08:42:07.058-08:00Clean Up Root Partition on Fedora<div dir="ltr" style="text-align: left;" trbidi="on">
If you have the following problems:<br />
<ul style="text-align: left;">
<li>Root partition / is using 100% of allocated disk space</li>
<li>Root partition / is close to using 100% of allocated disk space</li>
</ul>
<br />
Then,<br />
<br />
$> sudo yum install bleachbit<br />
$> su - -c "bleachbit"<br />
<br />
Use bleachbit to clean up unwanted files.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-13345974390754337562013-12-24T19:15:00.000-08:002013-12-24T19:15:58.670-08:00Copy Video on iPhone without iTunes<div dir="ltr" style="text-align: left;" trbidi="on">
If you are in need of copying a home video on to your iPhone and you have lost the computer which has the original iTunes sync, do not despair.<br />
<br />
VLC app on ios is there for the rescue.<br />
<br />
Official Documentation: https://wiki.videolan.org/Documentation:IOS<br />
<br />
<h3 style="text-align: left;">
Steps</h3>
<br />
<ol style="text-align: left;">
<li>Temporarily turn off the lock feature of your iPhone. You can bring it back after the video upload.</li>
<li>Download VLC player from the App Store. Ensure that the vendor is VideoLan.</li>
<li>Ensure your iphone and computer are connected to the same WIFI.</li>
<li>Open VLC app.</li>
<li>On the top left hand corner, is the hat symbol. Click on hat.</li>
<li>Go to Wiki Upload. Enable the server. Note down the IP address it provides.</li>
<li>Go to your browser and type in the IP address: something starting with http:</li>
<li>You will see Fig 1</li>
<li>Click upload files button and choose the video file.</li>
<li>Once the file is uploaded, enjoy the home video. Remember VLC can play many formats : mp3, mp4, m4u etc.</li>
<li>Remember to turn back the locking feature on your iphone.</li>
<li><table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://wiki.videolan.org/images/VLC_for_iOS_WiFi_Uploader.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="212" src="https://wiki.videolan.org/images/VLC_for_iOS_WiFi_Uploader.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Fig1: Browser Interface</td></tr>
</tbody></table>
</li>
</ol>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-10812494259842562122013-10-16T12:18:00.005-07:002013-10-16T12:18:51.493-07:00Tips for FitBit<div dir="ltr" style="text-align: left;" trbidi="on">
<br />Picked up from <a href="http://www.sparkpeople.com/mypage_public_journal_individual.asp?blog_id=2471667">http://www.sparkpeople.com/mypage_public_journal_individual.asp?blog_id=2471667</a><br />
<br />
<b>Reset your FitBit: </b><br />
<br />
Dock it, turn the dock over, and hit the button underneath with a pen or
paperclip. The FitBit will reboot, displaying the current firmware
version and the battery level, then will continue charging. This will
not delete any of the tracker data. <br />
<br />
<b>Completely erase all information on your FitBit: </b><br />
<br />
1. Put the fitbit on the base station <br />
2. Look under base station and you'll see a tiny hole. That's the reset button that you can push with a small pen or paperclip. <br />
3. Press and hold the button on the Fitbit itself and press the reset button <br />
4. Keep the button on the Fitbit pressed for 6 seconds. <br />
5. Take the Fitbit off the base station <br />
6. Press the button on the Fitbit <br />
7. It should say "Testing" and then "Pass" <br />
8. Press and hold the button until it says "Erase" <br />
<b><br />
Power Off Your FitBit: </b><br />
<br />
Unplug the dock. Dock the FitBit on the unplugged dock, then press the reset button on the bottom.
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-73935762341770862462013-08-30T20:07:00.001-07:002013-08-30T20:09:58.066-07:00Tip: Mac OSX: Start IntelliJ with sudo permissions<div dir="ltr" style="text-align: left;" trbidi="on">
There may be instances where the code you are developing is binding to a particular port that is lower than 1024. So you will not be able to bind to that port.<br />
<div>
<br /></div>
<div>
You will see something like a SocketException : permission denied.</div>
<div>
<br /></div>
<div>
<i><b>If you are sure that this is <u><span style="color: red;">temporary</span></u> and you are developing on your Apple laptop, then do the following in a terminal window</b></i>:</div>
<div>
<br /></div>
<div>
$>cd IntelliJ\ IDEA\ 12\ CE.app/Contents/MacOS/</div>
<div>
$> sudo ./idea</div>
<div>
<br /></div>
<div>
Now IntelliJ is running with sudo permissions.<br />
<br />
<i>WARNING</i>: This is a sensitive operation. Do not try it on Apple based servers or production environments.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-15532601757855951712013-08-30T20:02:00.002-07:002013-08-30T20:02:42.656-07:00Netty: UDP based Server Example<div dir="ltr" style="text-align: left;" trbidi="on">
An example is the Quote of the Moment Server.<br />
<br />
Package is:<br />
https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/qotm/<br />
<br />
Server is:<br />
https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/qotm/QuoteOfTheMomentServer.java<br />
<br />
Server Handler is:<br />
https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/qotm/QuoteOfTheMomentServerHandler.java</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-26222841506680387142013-02-07T11:21:00.001-08:002013-02-07T11:22:05.057-08:00Tip: Hibernate PersistenceException :<div dir="ltr" style="text-align: left;" trbidi="on">
If you are seeing the following error "No Persistence provider for EntityManager named" and scratching your brains, ensure that the hibernate-entitymanager.jar is on the classpath.<br />
<br />
Also you should have a META-INF/persistence.xml in your jars someplace.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-13249456960187493312013-02-04T08:24:00.003-08:002013-02-04T08:24:42.704-08:00Tip: Eclipse:: getTextContent() is undefined for Node/ElementIn Eclipse, if you see the an error saying getTextContent() is undefined for Node/Element, then follow:<br />
<a href="http://mergetag.com/the-method-gettextcontent-is-undefined-for-the-type-node/">http://mergetag.com/the-method-gettextcontent-is-undefined-for-the-type-node/</a><br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-14178020349997277962012-09-11T12:56:00.002-07:002012-09-11T12:56:28.194-07:00Mockito return the value from the responseAn example:<br />
private HttpServletRequest request = mock(HttpServletRequest.class);<br /> private HttpServletResponse response = mock(HttpServletResponse.class);<br /><br /> @Test<br /> public void testAuthz() throws Exception {<br /> AuthorizationEndpoint endpoint = new AuthorizationEndpoint();<br /> when(request.getParameter("response_type")).thenReturn(ResponseType.CODE.toString());<br /> when(request.getParameter("client_id")).thenReturn("test_id");<br /> when(request.getParameter("redirect_uri")).thenReturn("http://localhost");<br /><br /> final ArrayList<string> values = new ArrayList<string>();<br /> doAnswer(new Answer<object>() {<br /> @Override<br /> public Object answer(InvocationOnMock invocation) throws Throwable {<br /> String temp = (String) invocation.getArguments()[0];<br /> values.add(temp);<br /> return null;<br /> }<br /> }).when(response).sendRedirect(anyString());<br /><br /> httpRequest("GET", "/authorization");<br /><br /> endpoint.service(request, response);<br /><br /> String redirectURL = values.get(0);<br /><br /> URL url = new URL(redirectURL);<br /> String fragment = url.toURI().getQuery();<br /> Map<string object="object"> map = OAuthUtils.decodeForm(fragment);<br /><br /> assertNotNull(map.get(OAuth.OAUTH_CODE));<br /> }<br /><br /> private void httpRequest(String method, String pathInfo) {<br /> when(request.getMethod()).thenReturn(method);<br /> when(request.getPathInfo()).thenReturn(pathInfo);<br /> }</string></object></string></string>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-47505823085917053492012-09-10T09:51:00.000-07:002012-09-10T09:51:33.492-07:00Fedora: Skype Issue: libXv.so.1: cannot open <br />
If you try to run skype and get the following error<br />
<code>skype: error while loading shared libraries: libXv.so.1: cannot open </code><br />
<br />
$>sudo <code>yum install alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686</code>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-72811871806455464592012-09-05T07:03:00.000-07:002012-09-05T07:03:27.096-07:00Eclipse Heap Settings on Mac<div dir="ltr" style="text-align: left;" trbidi="on">
Locating the eclipse.ini is tricky on a mac.<br />
<br />
<span style="background-color: white; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17.33333396911621px;">To locate it, right-click on the Eclipse Application icon and select "Show Package Contents", then double-click on the "Contents" folder and then double-click on the "MacOS" folder, the home of </span><code style="background-color: white; font-size: 13px; line-height: 17.33333396911621px;">eclipse.ini</code><span style="background-color: white; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17.33333396911621px;">. </span><br />
<span style="background-color: white; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17.33333396911621px;"><br /></span>
<span style="background-color: white; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17.33333396911621px;">You can use Applications->Text Edit to change the eclipse.ini file. :)</span><br />
<span style="background-color: white; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17.33333396911621px;"><br /></span>
<span style="background-color: white; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17.33333396911621px;">Usually you want to adjust the heap settings.</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-23341928695419453522012-08-29T22:37:00.003-07:002012-08-29T22:37:44.774-07:00Fedora: yum-complete-transaction taking forever?<div dir="ltr" style="text-align: left;" trbidi="on">
It is possible that it may be in an infinite loop or such. Cleanup your yum transaction as follows:<br />
<br />
yum install yum-utils<br />yum clean all<br />/usr/sbin/yum-complete-transaction --cleanup-only</div>
Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-14569140.post-83024985770364814582012-08-15T08:30:00.000-07:002012-08-15T08:30:02.082-07:00Fedora: Remove old kernels<div dir="ltr" style="text-align: left;" trbidi="on">
Update your system<br />
$ sudo yum -y update --skip-broken<br />
<br />
Now remove old kernels<br />
$ sudo package-cleanup --oldkernels -y</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-22694192561009984772012-03-26T21:40:00.002-07:002012-03-26T21:40:45.487-07:00Android Tip: android.view.WindowManager$BadTokenException<div dir="ltr" style="text-align: left;" trbidi="on">
If you are using an ActivityGroup to display a series of activities, then you may encounter the infamous BadTokenException.<br />
<br />
The location where you are getting the exception, will have a "this" usage for the context. <br />
<br />
To get over this error, use "this.getParent()".<br />
<br />
Eg: final ProgressDialog pbarDialog = new ProgressDialog( this.getParent() );<br />
</div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-14569140.post-2905540356254859542012-03-26T20:05:00.002-07:002012-03-26T20:05:32.137-07:00Android Tip: Dealing with Droid Spinner Background<div dir="ltr" style="text-align: left;" trbidi="on">
Droid seems to have an issue where in the spinner background is white and none of the elements are displayed even though they are available in the spinner.<br />
<br />
This error has a workaround at <a href="http://stackoverflow.com/questions/4361604/how-to-change-the-spinner-font-color">http://stackoverflow.com/questions/4361604/how-to-change-the-spinner-font-color</a></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-87417696136904665542012-03-16T18:12:00.002-07:002012-03-16T18:12:24.215-07:00GitHub: Dealing with Multiple Accounts and SSH Keys<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://net.tutsplus.com/tutorials/tools-and-tips/how-to-work-with-github-and-multiple-accounts/">http://net.tutsplus.com/tutorials/tools-and-tips/how-to-work-with-github-and-multiple-accounts/</a></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-83421696144100416652012-03-02T07:47:00.002-08:002012-03-02T07:47:49.576-08:00TIP: Fedora: No packages marked for update<div dir="ltr" style="text-align: left;" trbidi="on">
Causes:<br />
1) Your fedora distribution may have been EOL. No more packages are available. You need to upgrade your version. OR<br />
2) Your yum cache is out of date and needs a refresh.<br />
<br />
$ sudo yum clean expire-cache<br />
$ sudo yum update</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-91435230423082463272012-02-09T15:42:00.000-08:002012-02-09T15:46:13.449-08:00TIP:Lenovo Thinkpad W520 Fedora 16 Internal Mic Not Working<div dir="ltr" style="text-align: left;" trbidi="on">
Solution as mentioned in<br />
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=752610">https://bugzilla.redhat.com/show_bug.cgi?id=752610</a>
is<br />
<br />
<br />
$ sudo vi /etc/modprobe.d/dist-alsa.conf<br />
<br />
Add as the first line.<br />
options snd-hda-intel index=0 model=thinkpad<br />
<br />
Then reboot and you should be good to go.<br />
<br />
<br />
If you are keen on seeing what my file looks like:<br />
<br />
# ALSA Sound Support<br />
#<br />
# We want to ensure that snd-seq is always loaded for those who want to use<br />
# the sequencer interface, but we can't do this automatically through udev
# at the moment...so we have this rule (just for the moment).<br />
#<br />
# Remove the following line if you don't want the sequencer.<br />
<br />
options snd-hda-intel index=0 model=thinkpad<br />
<br />
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe snd-seq</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-14569140.post-66510676591488994742012-01-25T20:42:00.001-08:002012-01-25T20:42:59.994-08:00TIP: Passphraseless SSH on FedoraIf you are trying to set up passphraseless SSH on Fedora, then remember that the permissions on the file authorized_keys should be 644
======================================================
.ssh$ chmod 644 authorized_keys
anil@sadbhav:~/.ssh$ ssh localhost
Last login: Sun Jan 22 21:42:06 2012 from localhost
anil@sadbhav:~$ exit
logout
Connection to localhost closed.
anil@sadbhav:~/.ssh$ chmod 644 known_hosts
================Unknownnoreply@blogger.com0