\x9A\x51\x9B\x51\xB3\x92\xAD\xB9\x0B\x9F\x01\x00\x03\x00\x06\x00\x00\x00\x00\x00\x14\x00\x00\x01\x0B\x00\xDA\xC8\xF0\x91\x02\xCC\xB0\xD0\xB1\x02\xDA\xE8\xD8\xF0\x0B\xFF\xFF\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFF\xFB\xF7\x0F\x40\xDE\xE4\xD0\xB1\x03\xFF\xAD\x98\xA1\x01\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFF\xFB\xF7\x0F\x00\x80\xFE\x07\x80\xFE\x07\x0A\x00\x01\x00\x00\x00\x00
only the snap payload (content after size bytes):
\x00\x03\x00\x06\x00\x00\x00\x00\x00\x14\x00\x00\x01\x0B\x00\xDA\xC8\xF0\x91\x02\xCC\xB0\xD0\xB1\x02\xDA\xE8\xD8\xF0\x0B\xFF\xFF\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFF\xFB\xF7\x0F\x40\xDE\xE4\xD0\xB1\x03\xFF\xAD\x98\xA1\x01\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFF\xFB\xF7\x0F\x00\x80\xFE\x07\x80\xFE\x07\x0A\x00\x01\x00\x00\x00\x00
\x9A\x51\x9B\x51\xB3\x92\xAD\xB9\x0B\x9F\x01\x00\x03\x00\x06\x00\x00\x00\x00\x00\x14\x00\x00\x01\x0B\x00\xDA\xC8\xF0\x91\x02\xCC\xB0\xD0\xB1\x02\xDA\xE8\xD8\xF0\x0B\xFF\xFF\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFF\xFB\xF7\x0F\x40\xDE\xE4\xD0\xB1\x03\xFF\xAD\x98\xA1\x01\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFF\xFB\xF7\x0F\x00\x80\xFE\x07\x80\xFE\x07\x0A\x00\x01\x00\x00\x00\x00
only the snap payload (content after size bytes):
\x00\x03\x00\x06\x00\x00\x00\x00\x00\x14\x00\x00\x01\x0B\x00\xDA\xC8\xF0\x91\x02\xCC\xB0\xD0\xB1\x02\xDA\xE8\xD8\xF0\x0B\xFF\xFF\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFF\xFB\xF7\x0F\x40\xDE\xE4\xD0\xB1\x03\xFF\xAD\x98\xA1\x01\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFD\xFB\xF7\x0F\xFF\xFF\xFB\xF7\x0F\x00\x80\xFE\x07\x80\xFE\x07\x0A\x00\x01\x00\x00\x00\x00
git remote add communism https://github.com/teeworlds-community/teeworlds/
git fetch communism
git checkout community
git checkout -b your_epic_branch_name
then add changes there and pull directly here
https://github.com/teeworlds-community/teeworlds/pullsgit cherry-pick b855a9db2cf0cd8fa6e5f56c68c78a0667d579d5
on the new branch and push{"name":"John","age":30,"car":null,"foo":"bar","baz":"bang","nob":"cat","skill":420}
clock_t begin = clock();
/* here, do your time-consuming job */
clock_t end = clock();
double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
extern uint64_t edlang_function(uint64_t n);
extern uint64_t rust_function(uint64_t n);
struct timespec timer_start() {
struct timespec start_time;
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &start_time);
return start_time;
}
long timer_end(struct timespec start_time) {
struct timespec end_time;
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &end_time);
long diffInNanos = (end_time.tv_sec - start_time.tv_sec) * (long)1e9 +
(end_time.tv_nsec - start_time.tv_nsec);
return diffInNanos;
}
int main(int argc, const char **argv) {
if (argc < 2) {
fprintf(stderr, "missing iteration arguments\n");
return 1;
}
if (argc < 3) {
fprintf(stderr, "missing input number argument\n");
return 1;
}
int num_iters = atoi(argv[1]);
int input = atoi(argv[2]);
uint64_t result_edlang;
uint64_t result_rust;
// warmup + sanity check
for (size_t i = 0; i < 3; ++i) {
assert(edlang_function(input) == rust_function(input));
}
printf("Running %d iterations\n", num_iters);
printf("Using input value:\t%d\n", input);
{
struct timespec vartime = timer_start();
for (size_t i = 0; i < num_iters; ++i) {
result_edlang = edlang_function(input);
}
long time_elapsed_nanos = timer_end(vartime);
printf("edlang Result =\t%lu\t\tTime taken : %.2Lf ms\n", result_concrete,
(long double)time_elapsed_nanos / 1000000.0L);
}
{
struct timespec vartime = timer_start();
for (size_t i = 0; i < num_iters; ++i) {
result_rust = rust_function(input);
}
long time_elapsed_nanos = timer_end(vartime);
printf("Rust Result =\t\t%lu\t\tTime taken : %.2Lf ms\n", result_rust,
(long double)time_elapsed_nanos / 1000000.0L);
}
assert(result_edlang == result_rust);
return 0;
}
paul@ubuntu-hp:~/test2$ cat random2.cfg | grep password
password: "superduperpass"
paul@ubuntu-hp:~/test2$ sed -i 's/password:.{0,}/password:asd/g' random2.cfg
paul@ubuntu-hp:~/test2$ cat random2.cfg | grep password
password: "superduperpass"
.{0,}
.*
❯ sed 's/password:.*/password: asd/' a
password: asd
❯ sed -E 's/password:.{0,}/password: asd/' a
password: asd
❯ sed --help | rg E
-E, -r, --regexp-extended
(for portability use POSIX -E).
E-mail bug reports to: <bug-sed@gnu.org>.
CMake Error at cmake/FindSSP.cmake:12 (message):
could not find ssp paths
Call Stack (most recent call first):
CMakeLists.txt:544 (find_package)
CMake Error at cmake/FindSSP.cmake:12 (message):
could not find ssp paths
Call Stack (most recent call first):
CMakeLists.txt:544 (find_package)
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libssp-0.dll
but it seems like it doesn't see itFindSSP.cmake
#set(SSP_COPY_FILES
#"/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libssp-0.dll"
but it didnt do itCMake Error (dev) at debug/googletest-src/googletest/cmake/internal_utils.cmake:239 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
debug/googletest-src/googletest/CMakeLists.txt:84 (include)
This error is for project developers. Use -Wno-error=dev to suppress it.
CMake Error (dev) at debug/googletest-src/googletest/cmake/internal_utils.cmake:239 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
debug/googletest-src/googletest/CMakeLists.txt:84 (include)
This error is for project developers. Use -Wno-error=dev to suppress it.
StrToInts
and IntsToStr
, move and renameStrToInts
function to str_to_int32
and add strict validation. Because this function should only used with trusted internal strings, assertions are added to ensure that no invalid UTF-8 is being encoded as integers and that the string is not truncated. Some buffer sizes are adjusted accordingly, so truncation cannot happen.
Rename IntsToStr
function to int32_to_str
and add lenient validation. An additional argument specifying the size of the output buffer is added to assert t...2024-03-07 22:51:10 I assert: /home/deen/isos/ddnet/ddnet-source/src/base/system.cpp(4587): Invalid UTF-8 passed to windows_utf8_to_wide
2024-03-07 22:51:10 I assert: /home/deen/isos/ddnet/ddnet-source/src/base/system.cpp(4587): Invalid UTF-8 passed to windows_utf8_to_wide
this one's interesting, what could've caused this? - our map has a graphical issue, but i dont think its related is it?:
2024-03-07 22:51:10 I Warning: The width of texture "embedded: 5" is not divisible by 16, or the height is not divisible by 16, which might cause visual bugs.
.RTP
file), which should tell where the invalid UTF-8 comes from