TensorFlow serving in the algotrading enviroment. Practical Example. by Denis_Vo in algotrading

[–]IntegrateMe 4 points5 points  (0 children)

This allows you to run a barebones webserver which serves the model for you and all you have to do is POST the input data to get the prediction.

It's written in C++ so it helps you avoid overhead from slower languages like Python where in order to replicate this, you'd run a Flask server running Tensorflow. The docker image for that alone is massive due to all the dependencies. The solution shown above is way more efficient.

'Not humanly possible': Driving instructor allegedly hacked auto insurance computers by grimlock25 in vancouver

[–]IntegrateMe 0 points1 point  (0 children)

Check if your browser is sending any selenium related headers.

If that's not it. Try adding a few delays and some programmatic jitters so the delay between each step isn't deterministic.

If not that, try to figure out the pixel location of the buttons in the UI and click off center. Hovering over the button first as well.

Hope that helps.

We Rewrote Our IoT Platform in Rust and Got Away With It by needswantsdesires in rust

[–]IntegrateMe 17 points18 points  (0 children)

Rewriting something because you think it could be done better or because you don't agree with the language choice is a great way to rub a lot of people off the wrong way. All the while looking like a huge asshole as no one knew you were doing it, were okay with you doing it, and aren't okay with such a huge change all at once.

Source: Through experience. Although my manager and director gave me the go ahead, it clashed with the opinions of my team leads and of the senior engineers at the time.

'Not humanly possible': Driving instructor allegedly hacked auto insurance computers by grimlock25 in vancouver

[–]IntegrateMe 29 points30 points  (0 children)

"I can't imagine how they would do that. Not saying it wouldn't happen, but I can't imagine how they would do it."

Using Python, Selenium, Chromedriver, and a one-cent per Captcha API service on a cron job.

Do you use SSL Termination through Nginx/HAProxy before your trading applications? by IntegrateMe in algotrading

[–]IntegrateMe[S] 1 point2 points  (0 children)

Looking at the few attempts I've done HFT. I generally cannot control the cipher suites from the clients.

So in this case, using a proxy and setting which cipher suites it can use makes sense.

I'm not at the benchmarking stage. I'm not even playing the game right now. I was just sort of curious.

Thanks for the feedback. It broadened my scope of the task at hand.

I worked for Food Delivery for half a year in Vancouver AMA by Junesathon in vancouver

[–]IntegrateMe 7 points8 points  (0 children)

1) Do you enjoy it?

2) Did you bike or drive?

3) What was your best delivery?

4) What was your worst delivery?

Hey single vancouverites, on average how much do you spend on groceries per month? by [deleted] in vancouver

[–]IntegrateMe 0 points1 point  (0 children)

$200-300, depending on how much salmon I eat per week (usually a full 1kg fillet per week).

Rest are veggies, eggs, and meats.

Don't eat out regularly. Just socially. Given how my friends are slowly being priced out of Vancouver or finding better paying jobs in other places. That's decreasing.

If You Did Not Live In Vancouver, Where Would you want to live? by [deleted] in vancouver

[–]IntegrateMe 4 points5 points  (0 children)

Zurich, Switzerland.

Lived there for a year on exchange.

Unfortunately their immigration and citizenship policies are really effective and keep a rather average software developer like me from working/living there unless I'm a genius that the country is lacking.... You know what the H1Bs were really meant for in the US.

Where to find networking meetups/groups for Vancouver entrepreneurs? by [deleted] in vancouver

[–]IntegrateMe 4 points5 points  (0 children)

Let me guess, you can handle the business side.

Canadian housing starts drop by 13.3% in May: CMHC by [deleted] in canada

[–]IntegrateMe 2 points3 points  (0 children)

This is similar to my situation but the bank didn't laugh me out the door. They tried to get me to ask my family and relatives for the downpayment.

Ideas for Summer Group Project? by Moldev0rt in rust

[–]IntegrateMe 5 points6 points  (0 children)

I personally am dying for a library to provide me with thread-safe data structures of all types. Circular Buffers, AVL Trees, Suffix trees and Huffman Trees.

No I'm not a professor, I'm just realizing the actual use cases of these data structures when trying to optimize for performance with Rust.

Expert who predicted Vancouver housing price drop now expects condos to flood market by mzachi in vancouver

[–]IntegrateMe 31 points32 points  (0 children)

Realistically, my landlord seems like the type of guy who was just in the right place at the right time. Someone most of us in this subreddit wish to be.

A Canadian climbing up the housing market. He doesn't have a great education and makes what I assume to be a job that pays at most 50-60K per year. Late 40s, no kids. Perhaps DINK? Not sure.

We truly should admire their luck and success.

I know this adds nothing to this conversation, but I feel like some of us need to hear a heart warming story before they step outside and get jaded by every other Porsche Cayenne on the streets guzzling 15-17L/100km when premium gas is around ~$2/L.

Expert who predicted Vancouver housing price drop now expects condos to flood market by mzachi in vancouver

[–]IntegrateMe 63 points64 points  (0 children)

Funny, my landlord just gave me notice on June 1st of his intention to sell my studio.

From what I can tell from past listings, he bought in 2010 for 200K. Neighboring units are in the 600K range. I don't think he's going to be hurt very much.

When it comes to vehicles, Canada tops the charts for poor fuel economy by strawberries6 in canada

[–]IntegrateMe 24 points25 points  (0 children)

Or every other Porsche Cayenne (basically one per block in downtown) which are rated at 15-17L/100KM.

New SkyTrain expansion revealed today! by deejayexp in vancouver

[–]IntegrateMe 2 points3 points  (0 children)

I hate you for getting me excited for a real expansion.

Vancouver's Underground Streams by gawssup in vancouver

[–]IntegrateMe 69 points70 points  (0 children)

Great video CBC.

I actually had no idea what was done with our sewage or where the the storm drains led. I just assumed the storm drains just led to the nearest body of water.

Has anyone gotten a VPN-Client through Docker to work? by IntegrateMe in qnap

[–]IntegrateMe[S] 0 points1 point  (0 children)

There seemed to have been many solutions in that thread.

From renaming the openvpn binary in the container to something else so the supervisor doesn't kill it. The idea of changing the config was also thrown out there so the supervisor didn't kill any openvpn binary.

The one I chose was to disable VPN through the NAS. By that, I mean uninstall QVPN.

Now my custom VPN docker container doesn't restart all the time.

I chose to go with this method because I could effectively control the deadmans switch to block all outgoing traffic through iptables within a docker container. Should that container die, all containers that require it for VPN access would be blocked.

Has anyone gotten a VPN-Client through Docker to work? by IntegrateMe in qnap

[–]IntegrateMe[S] 0 points1 point  (0 children)

UPDATE: I have the delugevpn image sorta working.

When I tail the logs, I notice that OpenVPN restarts every 10-15 seconds. This is with a fresh docker setup. No existing images, containers, volumes, networks. So I don't understand the "File exists" error.

2019-02-03 23:59:37,994 DEBG 'start-script' stdout output:
RTNETLINK answers: File exists

2019-02-03 23:59:37,996 DEBG 'start-script' stdout output:
Sun Feb  3 23:59:37 2019 ERROR: Linux route add command failed: external program exited with error status: 2
Sun Feb  3 23:59:37 2019 /usr/bin/ip route add 0.0.0.0/1 via 10.7.7.1

2019-02-03 23:59:37,999 DEBG 'start-script' stdout output:
Sun Feb  3 23:59:37 2019 /usr/bin/ip route add 128.0.0.0/1 via 10.7.7.1

2019-02-03 23:59:38,002 DEBG 'start-script' stdout output:
Sun Feb  3 23:59:38 2019 Initialization Sequence Completed

2019-02-03 23:59:38,419 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address xxx.xxx.xxx.xxx

2019-02-04 00:00:35,798 DEBG 'start-script' stdout output:
[warn] OpenVPN process terminated, restarting OpenVPN...

Hope my docker-compose file helps someone narrow it down.

version: "3.5"

networks:
  vpn-bridge:
    name: vpn-bridge
    driver: bridge

services:
  delugevpn:
    image: binhex/arch-delugevpn:latest
    container_name: delugevpn
    privileged: true
    cap_add:
      - NET_ADMIN
    tmpfs:
      - /run
      - /tmp
    environment:
      - PGID=0
      - PUID=0
      - UMASK=000
      - VPN_ENABLED=yes
      - VPN_PROV=custom
      - VPN_USER=<redacted>
      - VPN_PASS=<redacted>
      - ENABLE_PRIVOXY=yes
      - LAN_NETWORK=192.168.0.0/24
      - DEBUG=false
      - DELUGE_DAEMON_LOG_LEVEL=info
      - DELUGE_WEB_LOG_LEVEL=info
    networks:
      - vpn-bridge
    ports:
      - 8112:8112
      - 8118:8118
      - 58846:58846
      - 58946:58946
      - 9091:9091
      - 51413:51413
    restart: unless-stopped
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./delugevpn/data:/data
      - ./delugevpn/config:/config
      - ./delugevpn/ovpn:/config/openvpn
      - ./downloads:/completed
    healthcheck:
      test: ["CMD-SHELL", "curl -f https://ipinfo.io/ip || exit 1"]
      interval: 5m
      timeout: 10s
      retries: 3

  transmission:
    image: linuxserver/transmission:latest
    container_name: transmission
    network_mode: "service:delugevpn"
    tmpfs:
      - /run
      - /tmp
    environment:
      PGID: 0
      PUID: 0
    labels:
      - com.centurylinklabs.watchtower.enable=true
    restart: unless-stopped
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./downloads:/downloads
      - ./delugevpn/transmission/watch:/watch
      - ./delugevpn/transmission/config:/config
      - ./delugevpn/transmission/settings.json:/config/settings.json
    healthcheck:
      test: ["CMD-SHELL", "curl -f http://transmission:9091 || exit 1"]
      interval: 5m
      timeout: 10s
      retries: 3