Skip to content

Instantly share code, notes, and snippets.

<div class="groups-tagit">
{{ form.groups.label_tag() }}
{{ form.groups }}</div>
<div class="skills-tagit">
{{ form.skills.label_tag() }}
{{ form.skills }}</div>
<div class="groups-tagit">
{{ form.groups.label_tag() }}
{{ form.groups }}
</div>
webstormProject
@rohandalvi
rohandalvi / main.js
Created December 16, 2013 00:42
Sample gist
/**
* Created with JetBrains WebStorm.
* User: dalvir
* Date: 12/15/13
* Time: 7:41 PM
* To change this template use File | Settings | File Templates.
*/
@rohandalvi
rohandalvi / gist:3e4520797abd8c3857c0
Created December 18, 2014 16:47
failed bugzilla runtests.pl (Pod::Coverage dependency could not be found although it is installed)
Rohans-MacBook-Pro-164:bugzilla rohandalvi$ ./runtests.pl
t/001compile.t ....... 224/228 # Can't locate Pod/Coverage.pm in @INC (you may need to install the Pod::Coverage module) (@INC contains: t lib/darwin-thread-multi-2level lib /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at t/011pod.t line 21.
# BEGIN failed--compilation aborted at t/011pod.t line 21.
# Failed test 't/011pod.t'
# at t/001compile.t line 62.
# --ERROR
t/001compile.t ....... 227/228 # Looks like you failed 1 test of 228.
t/001compile.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/228 subtests
@rohandalvi
rohandalvi / bugzilla_pass
Created December 18, 2014 23:34
Bugzilla build pass
Rohans-MacBook-Pro-164:bugzilla rohandalvi$ ./runtests.pl
t/001compile.t ....... ok
t/002goodperl.t ...... ok
t/003safesys.t ....... ok
t/004template.t ...... ok
t/005whitespace.t .... ok
t/006spellcheck.t .... ok
t/007util.t .......... ok
t/008filter.t ........ ok
t/009bugwords.t ...... ok
@rohandalvi
rohandalvi / find_Bugzilla_params
Last active August 29, 2015 14:11
Can't locate object method "params"
The error:
Rohans-MacBook-Pro-164:Bugzilla rohandalvi$ perl test_email.pm
Can't locate object method "params" via package "Bugzilla" at /Users/rohandalvi/Documents/open_source_stuff/bugzilla/bugzilla/Bugzilla/Mailer.pm line 33.
The module "Token.pm" makes use of the subroutine MessageToMTA to send email which I am trying to use here. . What am I doing wrong? Is this a import issue? However, In the code below, it uses the format MessageToMTA($message) without generating any error
Code from token.pm that also makes call to MessageToMTA subroutine in Mailer.pm
my ($token, $token_ts) = _create_token(undef, 'account', $login_name);
@rohandalvi
rohandalvi / ErrLog
Created April 21, 2015 02:40
Error log generated on calling GooglePlaces constructor with API KEY
04-21 02:39:14.998 767-767/com.example.dalvir.find E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.<init>(PoolingHttpClientConnectionManager.java:493)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:149)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:138)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:114)
at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:726)
at se.walkercrou.places.DefaultRequestHandler.<init>(DefaultRequestHandler.java:18)
at se.walkercrou.places.DefaultRequestHandler.<init>(DefaultRequestHandler.java:34)
at se.walkercrou.places.GooglePlaces.<init>(Googl
@rohandalvi
rohandalvi / MainActivity.java
Created April 21, 2015 02:42
MainActivity code
import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import java.util.List;
@rohandalvi
rohandalvi / build.gradle
Created April 21, 2015 02:54
Project Gradle file
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}