Coder Social home page Coder Social logo

18.337_2016's Introduction

18.337_2016's People

Contributors

alanedelman avatar djsegal avatar dpsanders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

18.337_2016's Issues

Homework 4 Code Issues

I'm having a couple technical issues with Homework 4, wondering if anyone might have come across them.

  1. @manipulate does not play nicely with matshow
    I cannot seem to make this work to "scroll through the images" as the homework instructs. When changing the manipulate slider, it just doesn't update the matshow image. What I'm trying, but doesn't work:
test = load("/home/ubuntu/.julia/documents/18.337_2016/homeworks/homework_4/test_digits.jld")
digits = test["digits"]
@manipulate for n in 1:size(digits,2)
    data = reshape(digits[:,n],16,16)
    matshow(data');
end
  1. colorview is crashing the kernel, every time I try to use it. The following minimal example, which should just show a black square, crashes the kernel:
d = zeros(10,10);
colorview(RGB, d, d, d)

Lecture 1 (Sep 7)

Try out the tropical numbers code. Does it actually work as intended?

Errors loading JLD (Homework 4)

I'm trying to load the JLD package for Homework 4, but I'm getting the following error message that I can't figure out:

Pkg.add("JLD")
Pkg.update()
using JLD
-------------
INFO: Precompiling module JLD.
WARNING: Module Compat with uuid 275123987390 is missing from the cache.
This may mean module Compat does not support precompilation but is imported by a module that does.
ERROR: LoadError: Declaring __precompile__(false) is not allowed in files that are being precompiled.
 in require(::Symbol) at ./loading.jl:385
 in _include_from_serialized(::String) at ./loading.jl:150
 in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:187
 in _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:217
 in require(::Symbol) at ./loading.jl:371
 in _include_from_serialized(::String) at ./loading.jl:150
 in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:187
 in _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:217
 in require(::Symbol) at ./loading.jl:371
 in include_from_node1(::String) at ./loading.jl:488
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:318
while loading /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl, in expression starting on line 8

So I can't load the data files. Anyone else experiencing this issue, or have a suggestion for a fix?

Can't load any images

I've spent a good deal of time trying to get anything to work with images at this point.

I think one crucial bug is the following ( load looks like it's using ImageMagick in the background)
and this is on v0.5 julia

img = load("test.jpg")
julia> using ImageMagick
INFO: Precompiling module ImageMagick.
WARNING: FixedPointNumbers.UFixed8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed10 is deprecated, use FixedPointNumbers.UFixed{UInt16, 10} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed12 is deprecated, use FixedPointNumbers.UFixed{UInt16, 12} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed14 is deprecated, use FixedPointNumbers.UFixed{UInt16, 14} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed16 is deprecated, use FixedPointNumbers.UFixed{UInt16, 16} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed16 is deprecated, use FixedPointNumbers.UFixed{UInt16, 16} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed14 is deprecated, use FixedPointNumbers.UFixed{UInt16, 14} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed12 is deprecated, use FixedPointNumbers.UFixed{UInt16, 12} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed10 is deprecated, use FixedPointNumbers.UFixed{UInt16, 10} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
WARNING: FixedPointNumbers.UFixed8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
in anonymous at <missing>
WARNING: FixedPointNumbers.UFixed10 is deprecated, use FixedPointNumbers.UFixed{UInt16, 10} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
in anonymous at <missing>
WARNING: FixedPointNumbers.UFixed12 is deprecated, use FixedPointNumbers.UFixed{UInt16, 12} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
in anonymous at <missing>
WARNING: FixedPointNumbers.UFixed14 is deprecated, use FixedPointNumbers.UFixed{UInt16, 14} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
in anonymous at <missing>
WARNING: FixedPointNumbers.UFixed16 is deprecated, use FixedPointNumbers.UFixed{UInt16, 16} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\convert_reinterpret.jl:123
in anonymous at <missing>
WARNING: FixedPointNumbers.UFixed8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:480
WARNING: FixedPointNumbers.UFixed16 is deprecated, use FixedPointNumbers.UFixed{UInt16, 16} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:480
WARNING: FixedPointNumbers.UFixed8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:481
WARNING: FixedPointNumbers.UFixed16 is deprecated, use FixedPointNumbers.UFixed{UInt16, 16} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:481
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
WARNING: ColorTypes.U8 is deprecated, use FixedPointNumbers.UFixed{UInt8, 8} instead.
  likely near C:\Users\Mus\.julia\v0.5\ImageCore\src\map.jl:164
ERROR: LoadError: LoadError: UndefVarError: U8 not defined
 in include_from_node1(::String) at .\loading.jl:488 (repeats 2 times)
 in macro expansion; at .\none:2 [inlined]
 in anonymous at .\<missing>:?
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\Users\Mus\.julia\v0.5\ImageCore\src\show.jl, in expression starting on line 90
while loading C:\Users\Mus\.julia\v0.5\ImageCore\src\ImageCore.jl, in expression starting on line 68
ERROR: LoadError: Failed to precompile ImageCore to C:\Users\Mus\.julia\lib\v0.5\ImageCore.ji.
 in compilecache(::String) at .\loading.jl:593
 in require(::Symbol) at .\loading.jl:393
 in include_from_node1(::String) at .\loading.jl:488
 in macro expansion; at .\none:2 [inlined]
 in anonymous at .\<missing>:?
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\Users\Mus\.julia\v0.5\Images\src\Images.jl, in expression starting on line 45
ERROR: LoadError: Failed to precompile Images to C:\Users\Mus\.julia\lib\v0.5\Images.ji.
 in compilecache(::String) at .\loading.jl:593
 in require(::Symbol) at .\loading.jl:393
 in include_from_node1(::String) at .\loading.jl:488
 in macro expansion; at .\none:2 [inlined]
 in anonymous at .\<missing>:?
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\Users\Mus\.julia\v0.5\ImageMagick\src\ImageMagick.jl, in expression starting on line 7
ERROR: Failed to precompile ImageMagick to C:\Users\Mus\.julia\lib\v0.5\ImageMagick.ji.
 in compilecache(::String) at .\loading.jl:593
 in require(::Symbol) at .\loading.jl:422

Webcam stream from Julia

I'm trying to start experimenting for my final project; specifically with grabbing real-time video from the webcam. I'm able to do this with FFmpeg on the command line; however I am looking for a way interface this directly with Julia (so I can grab real-time images within Julia).

I found a package, VideoIO (https://github.com/kmsquire/VideoIO.jl), which is supposed to do exactly this. I am able to add/build the package in Julia 0.4 and 0.5 but unable to open the webcam interface.

I was wondering if there is anyone in the Julia Lab that I could talk to for help with this (and/or anyone in the class that had a similar problem). For more details on my error I posted an issue to the actual package: JuliaIO/VideoIO.jl#88

Embedding Julia in C++

My midterm project requires embedding Julia in some C++ code. I have it mostly working, but the documentation is horrendous and I can't figure out a crucial step. Maybe some of the gurus in the class can help provide some guidance?

I asked this question on the Google Groups page for Julia, so instead of re-writing it all I will link that (and maybe if you answer, answer there so other people can find it one day in the future).

https://groups.google.com/forum/#!topic/julia-users/TrMvMCZ-_8E

Star framework

In the lecture on 10/5, there was a thesis/dissertation relating the Star framework for parallel computing to different applications...who was the author?

Pset 2

In Pset 2, after I define SymArrow2, and overload the size and getindex methods to handle SymArrow2 types, I test the * method with a random matrix and vector of complex numbers. In version 0.4.6, I get the message:

LoadError: MethodError: `A_mul_B!` has no method matching A_mul_B!(::Array{Complex{Float64},1}, ::SymArrow2{Complex{Float64}}, ::Array{Complex{Float64},1})

but in version 0.5.0-rc4 (accessed via JuliaBox), it runs without complaint. Am I defining SymArrow2 or the overloaded methods incorrectly, or are the fall-back methods that we're intended to use different between the two versions?

Missing UI buttons for Interact.jl

Main issue can be seen at:

Summary: Even after including Interact.jl (PR #8), I still can't get @manipulate to show any buttons.


note:

  • I think it's probably a dependency issue (maybe related to the Python 3+ requirement in interact).
  • I just don't know how to get to the bottom of it, now, with all the IJulia, IPython, Python, Julia, Interact, ipywidgets versions floating around my computer now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.