Skip to content

Instantly share code, notes, and snippets.

addr, err := net.ResolveUDPAddr("udp", "AAA:XXXX")
sock, err := net.DialUDP("udp", nil, addr)
self.sock.SetWriteBuffer(16777216)
[pid 31473] socket(PF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 5
[pid 31473] setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
[pid 31473] epoll_ctl(4, EPOLL_CTL_ADD, 5, {EPOLLIN|EPOLLOUT|EPOLLET|0x2000, {u32=3612036704, u64=140659496013408}}) = 0
[pid 31473] connect(5, {sa_family=AF_INET, sin_port=htons(XXXX), sin_addr=inet_addr("AAA")}, 16) = 0
[pid 31473] getsockname(5, {sa_family=AF_INET, sin_port=htons(YYYY), sin_addr=inet_addr("BBB")}, [16]) = 0
[pid 31473] getpeername(5, {sa_family=AF_INET, sin_port=htons(XXXX), sin_addr=inet_addr("AAA")}, [16]) = 0
diff --git a/gtk/src/gtk_file.cpp b/gtk/src/gtk_file.cpp
index 0610d43..9e95f28 100644
--- a/gtk/src/gtk_file.cpp
+++ b/gtk/src/gtk_file.cpp
@@ -470,8 +470,10 @@ S9xOpenROMDialog (void)
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
directory =
gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER (dialog));
- strncpy (gui_config->last_directory, directory, PATH_MAX);
- g_free (directory);
package main
import (
"fmt"
"os"
"errors"
"github.com/adsr/portmidi"
)
func main() {
user@host:~$ screen -r 16887.pts-3.host -X hardcopy hf
There is a screen on:
16887.pts-3.host (07/17/2014 12:13:19 AM) (Attached)
No screen session found.
@adsr
adsr / -
Created September 26, 2014 19:53
a3 y
a5 y
a6 y
a7 y
a8 y
a9 y
b5 y
b6 y
b9 y
c0 y
@adsr
adsr / -
Created September 26, 2014 19:54
ei y
ft y
fv y
fy y
gq y
hf y
hy y
ij y
ir y
kq y
diff --git a/hphp/runtime/ext/memcached/ext_memcached.cpp b/hphp/runtime/ext/memcached/ext_memcached.cpp
index 4300861..ecfa56d 100644
--- a/hphp/runtime/ext/memcached/ext_memcached.cpp
+++ b/hphp/runtime/ext/memcached/ext_memcached.cpp
@@ -86,22 +86,24 @@ const int64_t q_Memcached$$HASH_HSIEH
const int64_t q_Memcached$$HASH_MURMUR
= MEMCACHED_HASH_MURMUR;
const int64_t q_Memcached$$OPT_DISTRIBUTION
= MEMCACHED_BEHAVIOR_DISTRIBUTION;
const int64_t q_Memcached$$DISTRIBUTION_MODULA
diff --git a/hphp/runtime/ext/memcached/ext_memcached.cpp b/hphp/runtime/ext/memcached/ext_memcached.cpp
index 4300861..ecfa56d 100644
--- a/hphp/runtime/ext/memcached/ext_memcached.cpp
+++ b/hphp/runtime/ext/memcached/ext_memcached.cpp
@@ -93,8 +93,10 @@ const int64_t q_Memcached$$DISTRIBUTION_CONSISTENT
= MEMCACHED_DISTRIBUTION_CONSISTENT;
const int64_t q_Memcached$$DISTRIBUTION_CONSISTENT_KETAMA
= MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA;
+#ifdef MEMCACHED_DISTRIBUTION_CONSISTENT_WEIGHTED
const int64_t q_Memcached$$DISTRIBUTION_CONSISTENT_WEIGHTED
diff --git hphp/CMakeLists.txt hphp/CMakeLists.txt
index ffe1e87..4fa93fe 100644
--- hphp/CMakeLists.txt
+++ hphp/CMakeLists.txt
@@ -62,10 +62,14 @@ if (ENABLE_COTIRE)
endif()
add_definitions("-DHHVM")
add_definitions("-DUSE_CMAKE")
diff --git hphp/runtime/ext/thrift/config.cmake hphp/runtime/ext/thrift/config.cmake
new file mode 100644
index 0000000..6cbe313
--- /dev/null
+++ hphp/runtime/ext/thrift/config.cmake
@@ -0,0 +1,3 @@
+if (NOT DISABLE_THRIFT)
+ HHVM_SELECT_SOURCES(${CMAKE_CURRENT_SOURCE_DIR})
+endif()