profile
viewpoint
Danielle Douglas ddouglas87 Bay Area, CA

k4yt3x/video2x 1478

A lossless video/GIF/image upscaler achieved with waifu2x, Anime4K, SRMD and RealSR. Started in Hack the Valley 2, 2018.

ddouglas87/caffe 0

Caffe: a fast open framework for deep learning.

ddouglas87/russian-troll 0

Russian Troll Tweet Detector

ddouglas87/twitter-sentiment 0

Takes tweets, performs a very basic sentiment analysis on them, plots this data, and serves this in a web page.

ddouglas87/video2x 0

A lossless video enlarger/video upscaler achieved with waifu2x and Anime4K.

issue commentserde-rs/json

i128 is not supported by rmp-serde

My apologies.

ddouglas87

comment created time in 2 days

issue openedserde-rs/json

i128 is not supported

Hi, is i128 supported? Here is the error I'm getting:

called Result::unwrap() on an Err value: Syntax("i128 is not supported") thread 'generate_qld_msgpack::tests::check_msgpack' panicked at 'called Result::unwrap() on an Err value: Syntax("i128 is not supported")', src/generate_qld_msgpack.rs:91:60

The offending code:

        let pyramids = open_qld(String::from("resources/stock.txt"));

        let mut buf = Vec::new();
        pyramids.serialize(&mut Serializer::new(&mut buf)).unwrap();

Pyramids is Vec<Pyramid> and within Pyramid there are fixed precision number types from the fixed crate. These fixed decimal types are stored as an i128.

Libraries I'm using:

  • rmp-serde = "0.14.4"
  • serde = { version = "1.0.114", features = ["derive"] }
  • fixed = { version = "1.1.0", features = ["serde"] }

Is this an issue within the fixed library?

created time in 2 days

issue closedalexgolec/tda-api

Floating Point Errors

Description of Bug On the timesale stream I've noticed quite a few floating point errors.

Code to Reproduce

    await stream_client.timesale_futures_subs(['/GC'])
    stream_client.add_timesale_futures_handler(
        lambda msg: print(msg)
    )

Output

{'service': 'TIMESALE_FUTURES', 'timestamp': 1595903805310, 'command': 'SUBS', 'content': [{'seq': 0, 'key': '/GCZ20', 'TRADE_TIME': 1595903802318, 'LAST_PRICE': 1993.3000000000002, 'LAST_SIZE': 1.0, 'LAST_SEQUENCE': 14257234}]} {'service': 'TIMESALE_FUTURES', 'timestamp': 1595903807125, 'command': 'SUBS', 'content': [{'seq': 1, 'key': '/GCZ20', 'TRADE_TIME': 1595903807076, 'LAST_PRICE': 1993.5, 'LAST_SIZE': 1.0, 'LAST_SEQUENCE': 14257235}]} {'service': 'TIMESALE_FUTURES', 'timestamp': 1595903814876, 'command': 'SUBS', 'content': [{'seq': 2, 'key': '/GCZ20', 'TRADE_TIME': 1595903814848, 'LAST_PRICE': 1993.2, 'LAST_SIZE': 1.0, 'LAST_SEQUENCE': 14257236}]} {'service': 'TIMESALE_FUTURES', 'timestamp': 1595903823272, 'command': 'SUBS', 'content': [{'seq': 3, 'key': '/GCZ20', 'TRADE_TIME': 1595903823201, 'LAST_PRICE': 1993.1000000000001, 'LAST_SIZE': 1.0, 'LAST_SEQUENCE': 14257237}]}

Expected Behavior vs Actual Behavior

LAST_PRICE is often off, eg 1993.1000000000001. The minimum tick of /GC is 10¢ so it should never be more than one digit past the decimal place. The correct price is 1993.1.

LAST_SIZE is showing a floating point number too, eg 1.0. As far as I know TDA does not do fractional shares. The correct size is 1.

It appears like this api is converting the incoming string from TDA to a double. One solution, and possibly the ideal solution is to keep all numbers as strings. Python's decimal type has been known to automatically convert numbers into a double, so it's ideal to keep all numbers as a string.

closed time in 6 days

ddouglas87

issue commentalexgolec/tda-api

Floating Point Errors

What a garbage api. (Not this, TDA itself.)

Thank you!

ddouglas87

comment created time in 6 days

issue openedalexgolec/tda-api

Floating Point Errors

Description of Bug On the timesale stream I've noticed quite a few floating point errors.

Code to Reproduce

    await stream_client.timesale_futures_subs(['/GC'])
    stream_client.add_timesale_futures_handler(
        lambda msg: print(msg)
    )

Output

{'service': 'TIMESALE_FUTURES', 'timestamp': 1595903805310, 'command': 'SUBS', 'content': [{'seq': 0, 'key': '/GCZ20', 'TRADE_TIME': 1595903802318, 'LAST_PRICE': 1993.3000000000002, 'LAST_SIZE': 1.0, 'LAST_SEQUENCE': 14257234}]} {'service': 'TIMESALE_FUTURES', 'timestamp': 1595903807125, 'command': 'SUBS', 'content': [{'seq': 1, 'key': '/GCZ20', 'TRADE_TIME': 1595903807076, 'LAST_PRICE': 1993.5, 'LAST_SIZE': 1.0, 'LAST_SEQUENCE': 14257235}]} {'service': 'TIMESALE_FUTURES', 'timestamp': 1595903814876, 'command': 'SUBS', 'content': [{'seq': 2, 'key': '/GCZ20', 'TRADE_TIME': 1595903814848, 'LAST_PRICE': 1993.2, 'LAST_SIZE': 1.0, 'LAST_SEQUENCE': 14257236}]} {'service': 'TIMESALE_FUTURES', 'timestamp': 1595903823272, 'command': 'SUBS', 'content': [{'seq': 3, 'key': '/GCZ20', 'TRADE_TIME': 1595903823201, 'LAST_PRICE': 1993.1000000000001, 'LAST_SIZE': 1.0, 'LAST_SEQUENCE': 14257237}]}

Expected Behavior vs Actual Behavior

LAST_PRICE is often off, eg 1993.1000000000001. The minimum tick of /GC is 10¢ so it should never be more than one digit past the decimal place. The correct price is 1993.1.

LAST_SIZE is showing a floating point number too, eg 1.0. As far as I know TDA does not do fractional shares. The correct size is 1.

It appears like this api is converting the incoming string from TDA to a double. One solution, and possibly the ideal solution is to keep all numbers as strings. Python's decimal type has been known to automatically convert numbers into a double, so it's ideal to keep all numbers as a string.

created time in 6 days

issue commentrust-lang/rfcs

Wishlist: functions with keyword args, optional args, and/or variable-arity argument (varargs) lists

If someone compiled the list of proposed solutions and then we all had a vote on it, would that help move this issue forward?

pnkfelix

comment created time in 8 days

issue commentintellij-dlanguage/intellij-dlanguage

Beginner experience: Unable to find object.d

I'm having the same problem too. Here's a screenshot: image

My install path is:

  1. brew install dmd pub
  2. Install IntelliJ. Preferences > Plugins > Browse Repositories -> D Language
  3. Walk through the install process. Select dmd and pub (both found automatically).
  4. Create new pub project.
  5. Change text to hello world. Run works fine.
  6. See screenshot
matozoid

comment created time in 21 days

issue commentandersonpd/eris

status on std.decimal for Phobos

Hey it's been almost 5 years. Any update on std.decimal? Is there anywhere I can go to find more status updates?

wilzbach

comment created time in 21 days

issue commentmicrosoft/vscode-python

In a notebook (.ipynb file) paste double pastes.

Toggle Developer Tools is under the Help menu drop down, not Developer.

Provide all of the contents from the console window. (i.e. past into this issue).

Here is a paste of the console. It's a lot of text. The double paste happened May 14th at 11:13am. I grabbed a copy of the console (ctrl+a, ctrl+c) seconds after it happened.

Please could you try reverting to the previous version of the extension to confirm it works

I don't know how to do this.

Please could you try reverting to an older version of VS Code (1.44) & confirm it works

This issue is brand new to the newest VS Code. To verify, I do not know how to revert to an older version. I'm sure someone else will verify this though.

Any other information/steps that u think might be useful in repro-ing this issue.

When u are pasting into a cell, are you in the middle of a cell execution? Are you pasting into a new cell or existing cell (i.e. pasting over something else)?

Both. It happens randomly in the middle of cells and in new cells. It has to do with pasting into cells, any cell.

When doing a cmd+v into a cell CSV reads it as two cmd+Vs being pressed, which is why cmd+z will undo one of the two pastes.

Because it is intermittent it might be a race issue?

ddouglas87

comment created time in 3 months

issue openedmicrosoft/vscode-python

In a notebook (.ipynb file) paste double pastes.

Issue Type: <b>Bug</b>

If I copy text from one cell and paste into another cell it double pastes.

If I cmd+z to undo it undoes one of the two pastes implying the issue is pasting. In .ipynb files, VSC double pastes.

I tried pasting in a .py file with no issue. Likewise pasting in the issue reporter has no issue, just in Jupyter Notebook cells.

I manually restarted VSC and the issue went away. After a while (12 minutes of use) the issue randomly came back when pasting between different notebooks.

The issue seems intermittent coming and going seemingly randomly.

VS Code version: Code 1.45.0 (d69a79b73808559a91206d73d7717ff5f798f23c, 2020-05-07T15:57:33.467Z) OS version: Darwin x64 19.4.0

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off_ok<br>webgl: enabled<br>webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.10GB free)
Process Argv -psn_0_12950617
Screen Reader no
VM 0%

</details><details><summary>Extensions (1)</summary>

Extension Author (truncated) Version
python ms- 2020.5.78807

</details> <!-- generated by issue reporter -->

created time in 3 months

issue openedmicrosoft/vscode

In a notebook (.ipynb file) paste double pastes.

Issue Type: <b>Bug</b>

VSC just updated. I clicked the gear on the bottom left and it asked me to reload VSC. After that in a notebook if I copy text from one cell and paste into another cell it double pastes.

If I cmd+z to undo it undoes one of the two pastes implying the issue is pasting. In .ipynb files, VSC double pastes.

I tried pasting in a .py file with no issue. Likewise pasting in the issue reporter has no issue, just in Jupyter Notebook cells.

I manually restarted VSC and the issue went away. I am now unable to reproduce. The issue may be tied to reloading VSC from an update.

VS Code version: Code 1.45.0 (d69a79b73808559a91206d73d7717ff5f798f23c, 2020-05-07T15:57:33.467Z) OS version: Darwin x64 19.4.0

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off_ok<br>webgl: enabled<br>webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.10GB free)
Process Argv -psn_0_12950617
Screen Reader no
VM 0%

</details><details><summary>Extensions (1)</summary>

Extension Author (truncated) Version
python ms- 2020.5.78807

</details> <!-- generated by issue reporter -->

created time in 3 months

more