Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
# to run: | |
# > elixir --no-halt udp_server.exs | |
# to test: | |
# > echo "hello world" | nc -u -w0 localhost 2052 | |
# > echo "quit" | nc -u -w0 localhost 2052 | |
# Let's call our module "UDPServer" | |
defmodule UDPServer do | |
# Our module is going to use the DSL (Domain Specific Language) for Gen(eric) Servers | |
use GenServer |
zugriffsverletzung bei adresse in modul themeloader280.bpl
socket error 10022 on startup.
Run command line as administrator
Enter commands line by line
netsh WinSock reset
#include <cmath> | |
#include <iostream> | |
#include <limits> | |
void main() | |
{ | |
// 1. use this result is always: 3.5677476354876406e-05 | |
//_set_FMA3_enable(0); | |
// 2. use this result is always: 3.5677476354876413e-05 |
# Thanks to commenters for providing the base of this much nicer implementation! | |
# Save and run with $ python 0dedict.py | |
# You may need to hunt down the dictionary files yourself and change the awful path string below. | |
# This works for me on MacOS 10.14 Mohave | |
from struct import unpack | |
from zlib import decompress | |
import re | |
filename = '/System/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/9f5862030e8f00af171924ebbc23ebfd6e91af78.asset/AssetData/Oxford Dictionary of English.dictionary/Contents/Resources/Body.data' | |
f = open(filename, 'rb') |
package main | |
import ( | |
"errors" | |
"fmt" | |
"sync" | |
"time" | |
) | |
const ( |
Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST
requests with voice file encoded in FLAC format, and query parameters for control.
client
The client's name you're connecting from. For spoofing purposes, let's use chromium
lang
Speech language, for example, ar-QA
for Qatari Arabic, or en-US
for U.S. English
# Extracted from the following library | |
# http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/ | |
#-- | |
# Utility for creating Google Maps Encoded GPolylines | |
# License: You may distribute this code under the same terms as Ruby itself | |
# Author: Joel Rosenberg | |
class DouglasPeucker | |
# The minimum distance from the line that a point must exceed to avoid | |
# elimination under the DP Algorithm. |