profile
viewpoint
James Zhu jameslzhu @NVIDIA San Jose, CA jameszhu.io Sometimes I even know what I'm doing. Security engineer, UC Berkeley alum.

amehat/atom-language-d 15

plugins and themes for Atom

jameslzhu/codeday-spring2014 4

Top-down space shooter created for the Spring 2014 CodeDay Chicago.

compserv/hkn-rails 3

The website for HKN Mu Chapter

celerysticker/netflix-and-pause 1

pause netflix when someone interrupts your chill session

jameslzhu/alpm 1

ffi for alpm in rust

compserv/hknlib 0

Account management and election scripts for HKN.

HuskieRobotics/frc2015scout 0

Scouting system for FRC team 3061 for the 2015 season. Made with (love and) meteor.

jameslzhu/atom-language-d 0

plugins and themes for Atom

jameslzhu/cargo-travis 0

A cargo subcommand to manage various CI-related jobs in rust.

startedprusa3d/PrusaSlicer

started time in 2 days

startedFreeCAD/FreeCAD

started time in 5 days

startedsdushantha/tmpmail

started time in 5 days

push eventjameslzhu/hkn-rails

Jason Perrin

commit sha 738887df15adfdfd8802df1923719ea50e1dc0e2

Wrap displayed shortlink URLs so that buttons are still shown

view details

James Zhu

commit sha d986ad4839d49bf4ec2d2ad050e092ea123984eb

Merge pull request #225 from jvperrin/fix-very-long-shortlink-hiding-buttons Wrap displayed shortlink URLs so that buttons are still shown

view details

push time in 11 days

push eventcompserv/hkn-rails

Jason Perrin

commit sha 738887df15adfdfd8802df1923719ea50e1dc0e2

Wrap displayed shortlink URLs so that buttons are still shown

view details

James Zhu

commit sha d986ad4839d49bf4ec2d2ad050e092ea123984eb

Merge pull request #225 from jvperrin/fix-very-long-shortlink-hiding-buttons Wrap displayed shortlink URLs so that buttons are still shown

view details

push time in 11 days

PR merged compserv/hkn-rails

Wrap displayed shortlink URLs so that buttons are still shown

Tested locally to make sure I didn't mess up the HAML or something lol: very-long-shortlink-test

+2 -1

0 comment

2 changed files

jvperrin

pr closed time in 11 days

PullRequestReviewEvent

startedrelativty/Relativty

started time in 11 days

push eventcompserv/tutoring-algorithm

James Zhu

commit sha 3ae8a41a8f0cde392a7503e85fa3beffa388a23a

Add gradle option for parsing cli args

view details

push time in 14 days

push eventcompserv/tutoring-algorithm

James Zhu

commit sha dc1a5c7f1decc5de342b0b1d60287d066609f64f

Add building instructions

view details

push time in 14 days

push eventcompserv/tutoring-algorithm

James Zhu

commit sha 48b0d32b95d019e65c2a55360543d9dcbf593b0b

Add building instructions

view details

push time in 14 days

push eventcompserv/tutoring-algorithm

James Zhu

commit sha bd1840aaaec68c2203fd4a7c24b34d0384e00954

Add building instructions

view details

push time in 14 days

push eventcompserv/tutoring-algorithm

James Zhu

commit sha 5b14efc161b2c50fce3bf71abbc9ad0db1733b29

Add Gradle build system

view details

push time in 14 days

pull request commentcompserv/hknweb

Adds merge method, and methods for accessing transient fields from their respect

For style changes, should we just setup an automated style config and ask everyone to run it? (i.e. Python Black)

We have a pre-commit hook but it's not enforced.

Rishabhk2357

comment created time in 23 days

startedossf/wg-identifying-security-threats

started time in 24 days

startedstan-dev/stan

started time in a month

startedfacebook/prophet

started time in a month

startedgentoo/portage

started time in a month

startedDavidPu/Bear

started time in a month

push eventLFITaskForce/engine

James Zhu

commit sha 9146475299adbbf6d3948e5c0317a6ee2e1d8617

Add numpyro / jax to dependencies

view details

James Zhu

commit sha e04896be1dcb1e7321564e862056a0eeb77bf0df

Broken in-progress changes

view details

push time in a month

push eventjameslzhu/riscv-card

James Zhu

commit sha 112a385d184a68dc4dba88dcbbe368a0ba064338

Add contribution / style guidelines to README.md

view details

push time in a month

push eventjameslzhu/riscv-card

James Zhu

commit sha 497b217f41a27d0ff3a824476b571e3caf81cc75

Add contribution / style guidelines to README.md

view details

push time in a month

push eventjameslzhu/riscv-card

James Zhu

commit sha 42a33c4741349eb5c151e1f26321cb3a644e7f77

Add contribution / style guidelines to README.md

view details

push time in a month

push eventjameslzhu/riscv-card

James Zhu

commit sha 0fc44f0e0b8189a52a8c7774e7f98e21d76cc7dc

Add contribution / style guidelines to README.md

view details

push time in a month

startedaatxe/oxide

started time in a month

delete branch jameslzhu/numpyro

delete branch : titanic

delete time in a month

delete branch jameslzhu/numpyro

delete branch : slog

delete time in a month

delete branch jameslzhu/numpyro

delete branch : rosenbrock

delete time in a month

delete branch jameslzhu/numpyro

delete branch : flowhmc

delete time in a month

delete branch jameslzhu/numpyro

delete branch : enum-messengers

delete time in a month

delete branch jameslzhu/numpyro

delete branch : benchmarks

delete time in a month

push eventjameslzhu/numpyro

Du Phan

commit sha 41d7c8101813688770e5891d55b0693c458fb23f

Update jax version to test Travis with latest jax release (#626)

view details

Du Phan

commit sha 87e94c0c988e0092ff0b29f4651ffcd022d68bec

Switch np to jnp when import jax.numpy (#627)

view details

Du Phan

commit sha 16c1f5ce2c5cfb4df00996812c8ff82e69683aae

move autoguide the the main module (#625)

view details

Ola Rønning

commit sha 35aeab757639fd9f1d32d9286572f87bde472c7d

von Mises distribution (#623) * ADDED: Von Mises distribution log prob and half closed interval constraint * ADDED: Rejection sampler for sampling von Mises distribution; FIXED: deletion of _IntegerGreaterThan. * ADDED: tests, variance and mean. * ADDED: comments * FIXED: comments * REMOVED: halfopen interval from distributions.constraints; RENAMED: open_interval to interval in distributions.constrains. * ADDED: VonMises to __all__ in distributions init. * REMOVED: main from debugging in directional; ADDED: missing comma in distributions init. * REMOVED: GreaterThanEqual from constraints. * ADDED: Copyright notice. * UPDATED: factored out _sample_centered from VonMises to distributions.util; changed support to interval [-pi,pi]; changed private attributes _loc, _concentration. * FIXED: test and arg_constraints. * FIXED: lint and change np to jno in util. * CHANGED: np to jnp in directional. * CHANGED: style for von_mises_centered call. * UPDATED: for loop to while; CHANGED: to tests to check correct sample stats (circular mean and variance); loc domain to reals. * ADDED: tests cases. * FIXED: lint * UPDATED: hardcoded max iterations for _von_mises_centered. * CHANGED: loc attribute of VonMises not mapped to support.

view details

Neil Liu

commit sha c756375144aa2fb6a4d09580e9bc98cea67d9fef

Added the Laplace distribution. (#632) * Added laplace distribution implementation. * Added tests for laplace dist. * Lint. * Added VonMises entry to docs. * Added Laplace entry to docs.

view details

Du Phan

commit sha 7e03871092b8438d62ad5402ebe60dab8f1f9507

no need for jacobian transform if support is real (#633)

view details

martinjankowiak

commit sha 14026775b0ae46ca64a5d93c90c1a0f26e6400a2

add tpg to docs (#634)

view details

Du Phan

commit sha a77ed50292d5ad5afe4adde544f7233a54d4c852

remote seed in bayesian regression (#630)

view details

Du Phan

commit sha def67a8fbf9df82dabbd1e549af8f3443acac201

Move reparam to the main module (#628)

view details

martinjankowiak

commit sha d379ae7e2eb2f6b2347cc346dabbd57b47a73065

logistic (#635)

view details

Du Phan

commit sha 7e2591ffe933bb659a722f11ead52905c9f5f235

Remove `mask` field in the trace (#631) * use mask dist in mask handler * skip applying scale if using without subsampling

view details

Du Phan

commit sha 47eb8dd2e7bbe1b9d3605dc58f8598e5b55eea6a

Test github action (#636)

view details

Du Phan

commit sha a901f7fe129b7c9230fb91ae6afcbb10f5d78f60

update README file to use reparam handler (#629)

view details

Du Phan

commit sha 2c9a68d5a8c1db75167bca4586d092835fcb6224

add scope handler (#642)

view details

Du Phan

commit sha b74167942cf0364b21a54f4e14ab6bb3673d18c2

Support `hide` argument in block handler (#641)

view details

Du Phan

commit sha b28fea9da42833241e73dc8884e5f569c3103a41

Add scan primitive (#595)

view details

Du Phan

commit sha e3ce5f2dcd536bf3f4a3c03c1b320060f536855f

substitute in svi_init (#647)

view details

Du Phan

commit sha ecf6c583beacf70ae7957a1dfa68bbec2c030952

Fix a bug of init_to_value strategy (#648)

view details

Du Phan

commit sha a6f794041d1c5c1364b3bae20c1d288bf88d0c2b

Remove contrib.distributions (#651) * remove contrib distributions * cleanup ci file

view details

Du Phan

commit sha c4637253f1f2b7071fc457db3db94f73124030f6

does not compute logprob of PRNGKey (#652)

view details

push time in a month

push eventLFITaskForce/engine

James Zhu

commit sha d2c889b5618e57335c17ce3a18433f66246f4421

... Something works?

view details

push time in a month

starteddafny-lang/dafny

started time in a month

startedmicrosoft/Ironclad

started time in a month

startedginge/FreeRTOS-Pebble

started time in a month

startedshortstack/HackerTracker

started time in a month

startedpebble-rust/pebble-rust

started time in a month

issue commentcompserv/hknweb

Prot logs me out too fast :(

As far as I know there haven’t been any updates since initial report.

On Sun, Aug 2, 2020 at 17:02 Jason Perrin notifications@github.com wrote:

The only cookies I can see for prot are the following:

  • hknprot_mediawiki_UserName (valid for 30 days)
  • hknprot_mediawiki_UserID (valid for 30 days)
  • hknprot_mediawiki__session (valid for a whole year)

Was this already updated to use a longer value since this was opened? It looks like 30 days is the default and I see no custom setting overwriting it.

(also note that prot is not stored in this repo at all, the closest repo that matches is probably https://github.com/compserv/mediawiki-extensions-GoogleLogin, although that's really just for the patches for allowing sign in with a GSuite account)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/compserv/hknweb/issues/237#issuecomment-667742521, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWIGGPZ7UFLYK6K5LJVSHLR6X5ATANCNFSM4M45XPJA .

-- Thanks, James Zhu HKN Mu, Compserv

dannychuy

comment created time in a month

startedARM-software/arm-trusted-firmware

started time in 2 months

startedNVIDIA/open-gpu-doc

started time in 2 months

pull request commentcompserv/hknweb

Updating by merge with compserv master

Next time you can just say "sync".

bri25yu

comment created time in 2 months

startedveorq/cryptocoding

started time in 2 months

startedajalt/fuckitpy

started time in 2 months

startedMichael-F-Bryan/libsignal-service-rs

started time in 2 months

push eventjameslzhu/jameslzhu.github.io

James Zhu

commit sha 76f2c7741e3ec53fc043ef8e0cb24fabc6a8a9e7

Tailwind porting

view details

push time in 2 months

startedpebble/pebble-ios-sdk

started time in 2 months

startedpebble/jerryscript

started time in 2 months

push eventjameslzhu/hknweb

Alexander Wu

commit sha 1bb42b032021a748e74416e2ab4607e45da1fdec

Change code style in candidate CSS and home urls

view details

Alexander Wu

commit sha 1d67838fa08675680987cabc4ec6ac82f7c8ed73

Refactor events permission check decorators and add custom 403 page

view details

Alexander Wu

commit sha 44420f0ffef6beb1d492be260197dd4e47f93466

Edit some CSS and code style

view details

Alexander Wu

commit sha cd5ba4338b81485fa9d6115c2f7012758157990a

Add custom 404 and 500 error pages

view details

Alexander Wu

commit sha 0b373e060ede00fcb7bb9eeecb0348356df2ffc4

Refactor candidate views to use permission decorator instead of groups

view details

Alexander Wu

commit sha 95e9331448f92f8799e1e969723e972abd94638e

Edit code comment style

view details

Connie Huang

commit sha 72283a2f505bf691541c2ccc26b2373f6ba49c18

make events clickable from home page

view details

James Zhu

commit sha 0256ac78c47b2688c089bb23d7e4ca9cb77139f0

Add event slug label, help text

view details

James Zhu

commit sha 897b58a4eaf13c05a73c069f40d7fa7c3a7ced7b

Fix makefile duplicate 'createsuperuser' This was intended to be a 'make superuser' task, but I apparently never finished this. I've cleaned this up so it's just an alias for createsuperuser.

view details

James Zhu

commit sha 3e4d939f63c8d5da98ecd1005674b77bc71ba6bf

Merge pull request #208 from jameslzhu/makefile-fix Fix makefile duplicate 'createsuperuser'

view details

James Zhu

commit sha f656097627c0e4bdff235cd92dda4e489fa3ce7b

Merge pull request #207 from jameslzhu/slug-label Add event slug label, help text

view details

Connie Huang

commit sha 0793b13421b93f78d62c7a044de5f0835f361dab

merge conflicts

view details

Connie Huang

commit sha f79dca1938903c47dab6617f827cce73ec35281c

more merge conflict

view details

Connie Huang

commit sha 8d6612e8e01dfd0520df68d0f332fc3db0dd4757

added outstanding award pic, deleted unused pics from static

view details

Connie Huang

commit sha bf30e7a90d9a19b4737c0d32ef3a1e795e6732ee

small css changes

view details

Connie Huang

commit sha 74898d9f3fffad09623648e8d0e4c89906c552fd

Changed image sizes, fixed indents

view details

Connie Huang

commit sha a805a7040c7c76e4740f682285d66e7fc9b2b0be

Changed path

view details

Connie Huang

commit sha 9fa856252be74bb979819a6ee4618f5566bc6bf4

fixed footer

view details

Connie Huang

commit sha 219fce762ad71d66adda12c932a743246934fce4

got rid of unnecessary comments

view details

Connie Huang

commit sha 58f5974087219d93c64877b17d4622487ce9c133

Fix indentation

view details

push time in 2 months

startedAFLplusplus/AFLplusplus

started time in 2 months

startedgoogle/AFL

started time in 2 months

startedmicrosoft/cascadia-code

started time in 2 months

startedhkntutoring/slides

started time in 2 months

create barnchjameslzhu/jameslzhu.github.io

branch : tailwind

created branch time in 2 months

startedpebble-dev/RebbleOS

started time in 2 months

startedRhinoSecurityLabs/pacu

started time in 2 months

startedsimd-everywhere/simde

started time in 2 months

startedpebble-dev/wiki

started time in 2 months

Pull request review commentcompserv/hknweb

Course surveys infrastructure

+from django.db import models
+
+from .base_models import AcademicEntity
+
+
+class ICSR(AcademicEntity):
+    """
+    InstructorCourseSemesterRelation (ICSR)
+    """
+    # reference attributes
+    icsr_course = models.ForeignKey('Course', on_delete=models.CASCADE, related_name='icsr_course')
+    icsr_department = models.ForeignKey('Department', on_delete=models.CASCADE, related_name='icsr_department')
+    icsr_instructor = models.ForeignKey('Instructor', on_delete=models.CASCADE, related_name='icsr_instructor')
+    icsr_semester = models.ForeignKey('Semester', on_delete=models.CASCADE, related_name='icsr_semester')

Again, don't see the need for the icsr_ prefixing.

bri25yu

comment created time in 2 months

Pull request review commentcompserv/hknweb

Course surveys infrastructure

+from django.db import models
+
+from .base_models import AcademicEntity
+
+
+class Question(AcademicEntity):
+    pass
+
+
+class Survey(AcademicEntity):
+    # reference attributes
+    survey_icsr = models.ForeignKey('ICSR', on_delete=models.CASCADE, related_name='survey_icsr')

See comment about redundant prefixing.

bri25yu

comment created time in 2 months

Pull request review commentcompserv/hknweb

Course surveys infrastructure

+from django.db import models
+
+from .base_models import AcademicEntity
+
+
+class Question(AcademicEntity):
+    pass
+
+
+class Survey(AcademicEntity):
+    # reference attributes
+    survey_icsr = models.ForeignKey('ICSR', on_delete=models.CASCADE, related_name='survey_icsr')
+
+    # value attributes
+    num_students = models.IntegerField()
+    response_count = models.IntegerField()

Change to PositiveIntegerField to disallow negative students / responses?

bri25yu

comment created time in 2 months

Pull request review commentcompserv/hknweb

Course surveys infrastructure

+from django.db import models
+
+from .base_models import AcademicEntity
+
+
+class Question(AcademicEntity):
+    pass
+
+
+class Survey(AcademicEntity):
+    # reference attributes
+    survey_icsr = models.ForeignKey('ICSR', on_delete=models.CASCADE, related_name='survey_icsr')
+
+    # value attributes
+    num_students = models.IntegerField()
+    response_count = models.IntegerField()
+    is_private = models.BooleanField(default=True)
+
+
+class Rating(AcademicEntity):
+    # reference attributes
+    rating_question = models.ForeignKey('Question', on_delete=models.CASCADE, related_name='rating_question')
+    rating_survey = models.ForeignKey('Survey', on_delete=models.CASCADE, related_name='rating_survey')
    question = models.ForeignKey('Question', on_delete=models.CASCADE)
    survey = models.ForeignKey('Survey', on_delete=models.CASCADE)

Otherwise code which uses ratings may end up looking like rating.rating_question and rating.rating_survey.

bri25yu

comment created time in 2 months

Pull request review commentcompserv/hknweb

Course surveys infrastructure

+from django.db import models
+
+from .base_models import AcademicEntity
+
+
+class Course(AcademicEntity):
+    pass
+
+
+class Department(AcademicEntity):
+    name = models.TextField(max_length=200)
+    abbr = models.TextField(max_length=100)
+
+
+class Instructor(AcademicEntity):
+    instructor_id = models.TextField(max_length=500)
+
+
+class Semester(AcademicEntity):
+    SPRING = 'Sp'
+    SUMMER = 'Su'
+    FALL = 'Fa'
+    YEAR_SECTION_CHOICES = [
+        (SPRING, 'Spring'),
+        (SUMMER, 'Summer'),
+        (FALL, 'Fall'),
+    ]
+
+    year = models.TextField(max_length=100)

A string year? Bold move. (Might work better for formatting but may cause surprise TypeErrors on comparisons to integer years.)

bri25yu

comment created time in 2 months

Pull request review commentcompserv/hknweb

Course surveys infrastructure

+from django.db import models
+
+class AcademicEntity(models.Model):
+    created_at = models.DateTimeField()
+    updated_at = models.DateTimeField()

I'm not sold on the need for a base class just for time fields. Any features we might actually anticipate?

bri25yu

comment created time in 2 months

pull request commentcompserv/hknweb

Course surveys infrastructure

bri25yu

comment created time in 2 months

startedmortbopet/Ripes

started time in 2 months

startedmitnk/cicada

started time in 2 months

Pull request review commentcompserv/hknweb

A page with all the events where you can rsvp with one click

 def get_rand_photo(width=400):     with open(find("animal_photo_urls.txt")) as f:         urls = f.readlines()     return urls[randint(0, len(urls) - 1)].strip() + "?w=" + str(width)++# date and time++def get_semester(date):+    """ Returns a string representation of the semester of this timezone object.+        Assumes that there are only spring and fall semesters, separated at 07/01.+        Example: "spring 2020" """+    season = "spring" if date.month < 7 else "fall"+    return "{} {}".format(season, date.year)++def get_semester_bounds(date):+    """ Returns the two dates that bound the current semester.+        Assumes that there are only spring and fall semesters, separated at 07/01. """

We do have summer course survey data, however.

I’d at least add a comment specifying this was intended for candidate events, and not for the other uses of the Semester model we were working on.

alexander-zw

comment created time in 3 months

Pull request review commentcompserv/hknweb

A page with all the events where you can rsvp with one click

 def get_rand_photo(width=400):     with open(find("animal_photo_urls.txt")) as f:         urls = f.readlines()     return urls[randint(0, len(urls) - 1)].strip() + "?w=" + str(width)++# date and time++def get_semester(date):+    """ Returns a string representation of the semester of this timezone object.+        Assumes that there are only spring and fall semesters, separated at 07/01.+        Example: "spring 2020" """+    season = "spring" if date.month < 7 else "fall"+    return "{} {}".format(season, date.year)++def get_semester_bounds(date):+    """ Returns the two dates that bound the current semester.+        Assumes that there are only spring and fall semesters, separated at 07/01. """

Summer semester?

alexander-zw

comment created time in 3 months

push eventcompserv/hivemind

James Zhu

commit sha 4d5b8ea7fd6c8587605be8a34412b7d633aa98a4

Fix README main.js link

view details

push time in 3 months

push eventcompserv/hivemind

James Zhu

commit sha 5c8882fab3ba75717b0c6d00ad0b0caad77c3229

Update README.md

view details

push time in 3 months

push eventcompserv/hivemind

James Zhu

commit sha 294ef169b0244d66b7cd874c4376842a01ee2f2b

Add contribution instructions

view details

push time in 3 months

more