Profile

Cover photo
Verified name
Kaushal Modi
Attended St Xavier's Mirzapur, Ahmedabad, India
Lives in Hillsborough, NC
480,263 views
AboutPostsPhotosReviews

Stream

Kaushal Modi

Discussion  - 
 
Feature request
Show the recently used apps in the app search suggestions.

I have been using AppDialer Pro ( https://play.google.com/store/apps/details?id=name.pilgr.appdialer.pro ). The recent Nova update with the app search is much faster. I only wish that it showed the recently used apps in the initial list of apps (along with the newly installed apps).

Thanks for keeping this app fresh with updates!
Recommended by Google[1], Lifehacker[2], Yahoo[3], XDA[4], AndroidPolice[5]...
3
Add a comment...

Kaushal Modi

Shared publicly  - 
 
Help #FightEbola. For every $1 you donate, Google will donate $2 to four nonprofits doing critical humanitarian work in West Africa. Together we can do more. Donate now.
1
Add a comment...

Kaushal Modi

Shared publicly  - 
 
The emacs user base is growing by day (or so is vim's, don't worry :P). This growth has brought in emacs/org-mode/elisp related questions from beginner to advanced level users and over time these questions got distributed across reddit, G+ community, quora, stackoverflow, superuser, unix SE, tex SE, etc. It is about time that emacs get its dedicated SE subdomain so that it becomes a one-stop shop for emacs related questions.

And thus the emacs user base got together to propose an emacs SE site. It has to go through define, commit and beta phase to become a confirmed SE site. It has already gone through the define phase and has finished 64% of the commit phase.

If you too are interested in making emacs SE a reality, please go here ( http://area51.stackexchange.com/proposals/76571/emacs?referrer=NPw4965lZmLzEQTGEFwH_Q2 ) and commit to it.
1
Add a comment...

Kaushal Modi

Questions  - 
 
Help with defining syntax table for comments

I am working on creating a major-mode for an in-house script.

The commenting syntax is as follows:
- Any line that optionally begins with white space and has '*' as the first non-white-space character is a comment.
Example:
* This is a comment.

- A comment can be line-continued with an '&' character
Example:
* These both lines are &
comments

- Also supports C-style block comments: /* COMMENT */
Example:
print "abcd", /* COMMENT */ "def"

I am unable to make the below work:

(defvar inhouse-script-mode-syntax-table
  (let ((table (make-syntax-table)))
    ;; define comment for this style: /*  */
    (modify-syntax-entry ?\/ ". 14b" table)
    (modify-syntax-entry ?*  ". 23b"   table)
    (modify-syntax-entry ?\n ">"    table)
    ;; define the comment lines starting with '*'
    (modify-syntax-entry ?*  "<"    table)
    ;; Declare the underscore character as being as valid part of a word
    (modify-syntax-entry ?_  "w"      table)
    table)
  "Syntax table for inhouse-script-mode")

Is it possible to assign '*' to both "." and "<"? If so, can anyone help me fix the above syntax table?

Thanks.
1
Artur Malabarba's profile photoKaushal Modi's profile photo
2 comments
 
+Artur Malabarba I tried that but that didn't help... emacs ignores the '<' character in ".23< b" and that statement acts like ".23b" because that's what I see when I do `M-x describe-syntax'.

Also I changed the defvar to setq temporarily so that I don't need to restart emacs after every change to the syntax table.

The tricky parts of the comment syntax are:
(1) A line is a comment ONLY if * is the first non-white-space character.
So,
---
* This is a comment
---
But in a code line like below, '*' does NOT initiate a comment
---
execute <...>* something something
---

(2) The behavior of 
---
* multi line comment &
second line of comment
This is not a comment
---
is expected to be the same as that of
/* multi line comment
second line of comment
*/
This is not a comment
---
Add a comment...

Kaushal Modi

Questions  - 
 
Pain with linum mode when running emacs daemon
Lately, I am having trouble with "Invalid face: linum" error ONLY when launching emacs in daemon mode using emacsclient.

That error does not show up when I simply run \emacs&

In my init.el, I have
===== CODE =====
(require 'setup-linum)
===== END =====

 and in setup-linum.el, I have
===== CODE =====
(require 'nlinum)
(setq global-nlinum-mode -1
      nlinum-format      "%4d ") ; right aligned, 4 char wide line num col
;; NOTE: nlinum mode is turned on in the setup files of the desired major modes
(setq setup-linum-loaded t)
(provide 'setup-linum)
===== END =====

If I comment out the (require 'setup-linum) line in my init.el, emacs starts fine in both normal and daemon modes. But if I keep that line, emacs launches fine ONLY in normal mode.

I can't figure out why daemon mode throws the "Invalid face: linum" error. It can be arduous going through someone else's config but if anyone has time and will, please help me out.

init.el: 
https://github.com/kaushalmodi/.emacs.d/blob/master/init.el

setup-linum.el:
https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-linum.el
1
Add a comment...

Kaushal Modi

Long exposure/ Night photography  - 
 
Camelopardalids meteor shower observed around 2am on May 24 2014

"On late Friday night into Saturday morning, North America will likely see a brand new meteor shower called the Camelopardalids – with a compelling chance that these gentle shooting stars could become a torrential meteor storm and provide quite a light show. These new meteors are dusty remnants of Comet209P/LINEAR, discovered in 2004." - http://www.washingtonpost.com/blogs/capital-weather-gang/wp/2014/05/22/first-ever-meteor-shower-may-burst-into-meteor-storm-friday-night/

How I did it?
- D610 + Nikon 17-55 2.8G (yes, a DX lens) set on tripod facing NE direction
- Shots taken at 17mm (26mm in DX crop mode), f2.8 @ ISO 1600
- Interval timer set to take 20 shots of 8 seconds each every 9 seconds. So in-between each shot, I had set a delay of 1 second. For that reason, you see slight gaps in the meteor trails :)
- I created a multiple exposure of the 20 shots in Photoshop CS6 by overlaying the 20 shots as layers and blending all layers except the top-most layer using Lighten mode. The top-most layer was blended using Pin Light mode so that the star trails are not too bright to hide the meteor trails.
- White balance, sharpness correction done in Lightroom 5.4

https://www.flickr.com/photos/kaushalmodi/14260625514/
2
1
Kaushal Modi's profile photo
Add a comment...
 
Few samples of pictures taken using my OPO using the stock CM camera in Auto mode. 
19
Saurabh DC's profile photoJosé Luis Asensio Fierro's profile photoTony Dean's profile photo
3 comments
 
Great photos!, great phone! 
Add a comment...

Kaushal Modi

Discussion  - 
 
Emacs has its own Stack Exchange and it is in Beta stage. It's a new home for all emacs related questions: org-mode, elisp, packages, configurations, etc.

Anyone can ask questions and provide answers. Feel free to even browse the site and skim through Q&As even if you don't need to ask anything at the moment :)
10
1
Michael Bernhard Arp Sørensen's profile photoKaushal Modi's profile photoBernhard Gschaider's profile photo
2 comments
Add a comment...

Kaushal Modi

Discussion  - 
 
Can anyone share their experience of successfully using mdframed and minted packages together with the listings captions working correctly? #org-to-latex-to-pdf-export

I need the mdframed package to allow embedding code listings that are multi-page in length.
1
Add a comment...

Kaushal Modi

Discussion  - 
 
List of Tables, longtable
Hi all, I am exporting an org file to LaTeX. One of the tables in the file is very long and it spans across multiple pages. But I was able to take care of that using the =longtable= table environment.

I have this in  the beginning of my org file to print the list of tables:
#+TOC: tables

I also tried using #+LATEX: \listoftables, and it works the same way.

I have these lines before the long table:
#+CAPTION: Table Name
#+NAME: tab:longtable_example
#+ATTR_LATEX: :environment longtable
| header1 | header2 |
| looooooooong | table.... |

With this I am getting the table split across multiple pages BUT, in the list of tables, a new entry is added for each page the table is split across. If the same table is split across 2 pages, in the List of Tables, I see the same table caption twice with different page numbers (the pages across which that table is split).

How can I tell org that I need just one caption for that whole table no matter how many pages it consumes?

Thanks.
1
Add a comment...

Kaushal Modi

Landscape  - 
 
 
Camelopardalids meteor shower observed around 2am on May 24 2014

"On late Friday night into Saturday morning, North America will likely see a brand new meteor shower called the Camelopardalids – with a compelling chance that these gentle shooting stars could become a torrential meteor storm and provide quite a light show. These new meteors are dusty remnants of Comet209P/LINEAR, discovered in 2004." - http://www.washingtonpost.com/blogs/capital-weather-gang/wp/2014/05/22/first-ever-meteor-shower-may-burst-into-meteor-storm-friday-night/

How I did it?
- D610 + Nikon 17-55 2.8G (yes, a DX lens) set on tripod facing NE direction
- Shots taken at 17mm (26mm in DX crop mode), f2.8 @ ISO 1600
- Interval timer set to take 20 shots of 8 seconds each every 9 seconds. So in-between each shot, I had set a delay of 1 second. For that reason, you see slight gaps in the meteor trails :)
- I created a multiple exposure of the 20 shots in Photoshop CS6 by overlaying the 20 shots as layers and blending all layers except the top-most layer using Lighten mode. The top-most layer was blended using Pin Light mode so that the star trails are not too bright to hide the meteor trails.
- White balance, sharpness correction done in Lightroom 5.4

https://www.flickr.com/photos/kaushalmodi/14260625514/
1
Add a comment...

Kaushal Modi

commented on a video on YouTube.
Shared publicly  - 
 
How would you compare the Nikon 16-35 to 12-24 in terms of sharpness? 
1
Jimi Lewis's profile photoSLWassets's profile photoPeter G's profile photo
3 comments
Peter G
 
Yes, but, the 14-24 gives you a wider field of view in the short end . 
Add a comment...
Story
Tagline
A geek in love
Education
  • St Xavier's Mirzapur, Ahmedabad, India
  • Nirma Institute of Technology, Ahmedabad, India
  • North Carolina State University, Raleigh, USA
Basic Information
Gender
Male
Relationship
Married
Work
Occupation
Digital Design Engineer
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Hillsborough, NC
Previously
Ahmedabad - Ahmedabad, India - Raleigh, NC, USA - Greensboro, NC, USA - Hillsborough, NC, USA
Links
Contributor to
They have a great, fast customer service. I had to ship 2 packages and Tony quickly helped choose the right service (UPS/USPS/FedEx) to ship those.
Public - a year ago
reviewed a year ago
Very good vegetarian Mongolian grill. Unlike many other Mongolian grills, the vegetarian and meat sections are properly separated. You can also request the cook to clean the whole pan before cooking your vegetarian stuff. The spices are very good. The owners might seem distant at first but once you know them they are very amiable :). The negative is that there have been days when the closing time is not consistent. So if you are going there close to their closing time, give them a call to ensure that they are still open.
• • •
Public - a year ago
reviewed a year ago
Great hot and cold salad bar. Great options for vegetarians like me too :)
Quality: ExcellentAppeal: ExcellentService: Excellent
Public - 2 years ago
reviewed 2 years ago
Great view of SF and the adjoining towns/cities
Public - 2 years ago
reviewed 2 years ago
14 reviews
Map
Map
Map
This place has very good vegetarian platter and appetizers. I usually have the Sambosas (similar to Indian Samosas) and Vegetarian combo. If you like spicy food, feel free to ask them for their spicy sauce. The food's so good that every time I end up having one more injera than I need to :)
Food: ExcellentDecor: ExcellentService: Excellent
Public - 2 years ago
reviewed 2 years ago
Can't tell what's different but this place has one of the best lattes I've ever had.
Food: ExcellentDecor: ExcellentService: Excellent
Public - 2 years ago
reviewed 2 years ago
We loved the vegetarian options we got at this place. It's the first Korean cuisine restaurant where we had good vegetarian choices. We had the vegetarian dumpling soup and the hot stone bowl for vegetarians. We were served unlimited cold mild green tea instead of water, which was a nice touch. Unlike what some other reviewers have experienced, the owner was not rude to us. I would definitely visit this place again.
Food: Very GoodDecor: GoodService: Very Good
Public - 2 years ago
reviewed 2 years ago