kousik samanta's Profile

Member since Aug 03, 2006, follows 1 people, 0 public groups, 589 public bookmarks (679 total).

More »
Tags

Recent Tags:
Top Tags:

More »
Recent Bookmarks and Annotations

  • [Maxima] plot3d multiple functions bug? on 2009-11-19
    • 2008/5/15 Krzysztof Leśniak <much at mat.uni.torun.pl>:
      > I cannot obtain the 3d plotting of 2 functions (and more functions too):
      >
      > plot3d([7*x-3*y, x^2-y^2], [x,-5,5], [y,-5,5])$
      >
      > List [7*x-3*y,x^2-y^2] is not of length 3 -- an error. To debug this
      > try debugmode(true);

      plot3d can't plot multiple surfaces. You can use the draw package:

      load(draw)$
      draw3d(
      color=red,
      explicit(7*x-3*y, x, -5, 5, y, -5, 5),
      color=blue,
      explicit(x^2-y^2, x, -5, 5, y, -5, 5))$

      --
      Andrej
  • The Only Winning Move » Mutt on Mac OS X on 2009-11-12
    • The next step is the dreaded configuration of sendmail. Unless I’m very much mistaken, sendmail is already on your Leopard system (it was already there for me - though I’m blonde, so it might be there because I installed it at some point in the mist-shrouded past of a month ago and subsequently forgot), so you don’t have to install it. But you do have to get it to do what you want, and as with anything this can be a bit tricky…


      …which is why I don’t bother. There’s also this bit of black magic called putmail.py - as the name implies, a Python MTA. Actually a fairly minimalist one: it’s tailored to people like me who need to send mail, but not do anything fancy - just username, password, send, thank you very much. And that’s what it does for smtp. Installing it and setting it up is the easiest thing in the world - just read the helpful man page and it’ll take you 5min. tops. The config file goes in ~/.putmail/putmailrc. Here’s mine:




      [config]

      server = smtp.server.name

      email = my_email_username@domain.name

      username = my_email_username

      password = my_password

      tls = yes


      (The last line is necessary to get it to go through IU.)


      Now we have the ability to send mail and read it, but we’ve still gotta actually get some mail to read.


      The standard thing to do here is use fetchmail - but I feel the same way about that I feel about sendmail: too much trouble so long as there’s Getmail in the world. The link goes to the latest platform-neutral version unixy version. Getmail has the same basic advantage that putmail.py does: it’s written in Python, so it installs easily and works out of the box whereever a cool enough (read: >2.3 at the time of writing) version of Python is installed:




      tar xvzf getmail-4.8.4.tar.gz

      cd getmail-4.8.4

      python setup.py build

      python setup.py install


      DONE! Well, except for the configuration. Configuration files go in ~/.getmail/getmailrc. Like with putmail.py, it’s all so simple there’s little point in walking anyone through it - but for reference here’s my file for talking to my Gmail account:




      [retriever]

      type = SimpleIMAPSSLRetriever

      server = imap.gmail.com

      username = my_username

      password = my_password

      mailboxes = (”INBOX”, )


      [destination]

      type = Mboxrd

      path = ~/Mail/inbox


      [options]

      read_all = false

  • How to Transfer Mac OS X Application Data between Computers - Professional PHP on 2009-11-08
  • Omgili WebToolbar - Apple - Support - Discussions - Problems with X11 - Can't open display ... on 2009-11-07
  • Bring Back Tiger's X11 to Leopard in 3 Steps on 2009-11-06
    • Step 1: First you need to remove the new and crappy version
      of X11. I did this with the following commands in the terminal:



      sudo mv /usr/X11 /tmp/
      sudo rm /System/Library/LaunchAgents/org.x.X11.plist
      sudo rm /Library/Receipts/X11User.pkg
      sudo pkgutil --forget com.apple.pkg.X11User # UPDATE [2007/10/29]: I forgot to include this in the original steps.


      Note: X11User.pkg may not exist in /Library/Receipts. That's OK.



      Step 2: Install Tiger's X11.app. If you have your Mac's
      installer CDs, the package you need to double-click the file
      X11User.pkg found inside System/Installation/Packages/ on the
      installer CD.



      Note: There are lots of versions of X11.app for Tiger. The
      original Tiger CD ships with one that was PPC only, which I
      accidentally installed when I did this the first time. If you have a
      recent Installer CD that came with your mac, I would use that.
      Otherwise, it appears you can download it here,
      but I haven't tried that.



      Step 3: The final step is to edit the file
      /etc/X11/xinit/xinitrc and go to the bottom of the file and replace
      "exec quartz-wm" with "exec /usr/X11R6/bin/quartz-wm".



      That's it! Now X11.app doesn't suck as bad anymore.

  • 10.6: How to install Win XP Pro Service Pack 3 in Boot Camp 3 - Mac OS X Hints on 2009-11-05
    • To get around this problem, you need to first back out of the SP3 installer (which involves a series of clicking various No, OK, and Cancel buttons).



      Once out of the installer, you need to rename a file buried inside the Windows system files. On your Boot Camp partition, navigate into Windows » System 32 » drivers. Here you'll find a file named AppleMNT (it's a .sys file). Rename it to AppleMNT_keep, then restart Windows.



      After the restart, verify that your Mac OS partition no longer shows in the My Computer window, then install SP3. When it's done and you've restarted, rename the AppleMNT_keep file to AppleMNT, and restart again to regain read-only access to your Mac OS partition. I'm glad to report this worked as described, and SP3 is now installed and running on my MacBook Pro.
  • SSH Configuration File on 2009-11-05
  • How to restore Grub boot loader after installing Windows | Ubuntu Geek on 2009-11-03
  • Linux « #tech notez# on 2009-11-03
  • .: KDE 4 Mac :. on 2009-11-02
    • The applications should be run from the Finder, you can find them in /Applications/KDE4.




      Sometimes, Installer.app fails to run the post-install. If things are acting funny, try running these two commands in a terminal:




      launchctl load /Library/LaunchAgents/org.freedesktop.dbus-session.plist

      /opt/local/bin/kbuildsycoca4




      ...and see if your application starts.

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo