Displaying 20 results from an estimated 9000 matches similar to: "Automatic code formatting"
2017 Oct 25
0
Automatic code formatting
On Tue, 03 Oct 2017 21:46:32 +0200, Guus Sliepen wrote:
> I'll also run sed on the codebase to add parentheses around the argument
> of sizeof operators, since code formatters otherwise turn "sizeof *foo"
> into "sizeof * foo".
Not all "sizeof foo" were converted to "sizeof(foo)". I've opened
a pull request with a patch:
2011 Oct 18
3
Database custom formatter
I am trying to write a custom formatter to update a database record based on
example results. Having a lot of trouble, so I thought to ask if anyone has
a custom formatter that writes results to a database or outputs results in
JSON or some other programmatic format. A working example will go a long way
in helping me work thru my own use case.
Thanks
-------------- next part --------------
An
2011 Jan 26
2
changes in rspec 2.4 break ci_reporter
Hi
I use the ci_reporter gem for builds on my CI machine (hudson).
Prior to rspec 2.4, environment options would override commandline
options. So the gem used this to change the formatter and require its
files.
In 2.4, that order has been reversed.
the thing is 2.4 supports multiple formatters, so there is another suggestion.
RSpec::Core::ConfigurationOptions
def parse_options
2009 Feb 13
2
[cucumber][v0.2alpha]Where could I find API docs for custom formatters?
Hi,
I''m working on update my local Cucumber to the latest version. But it seems
the old formatter APIs(step_failed, scenario_executed, etc.) don''t work any
more. Are there some documents or even Cucumber source code I can refer to?
Thanks in advance,
Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Oct 12
2
RFC: General purpose type-safe formatting library
On Tue, Oct 11, 2016 at 8:59 PM Mehdi Amini <mehdi.amini at apple.com> wrote:
> Hi,
>
> I On Oct 11, 2016, at 6:22 PM, Zachary Turner via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>
> A while back llvm::format() was introduced that made it possible to
> combine printf-style formatting with llvm streams. However, this still
> comes with all the risks
2018 May 19
3
Issue using tinc-vpn on Windows Server 1709 with Docker Overlay Network
Hello everyone,
I am running into the following error messages everytime I try to use a
docker overlay network on top of tinc-vpn:
Error getting read result from Windows tap device
{F30C422F-4524-435F-A15B-71A7E08C260D}: (995) The I/O operation has been
aborted because of either a thread exit or an application request.
Received packet of 106 bytes from ... (... port 655)
Writing packet of 106
2006 Oct 21
2
Usage Error
rake spec seems to work fine, but I keep getting a usage error at the
end of the spec run:
/usr/local/bin/ruby -I"/usr/local/lib/ruby/gems/1.8/gems/rspec-0.6.4/
lib" "/usr/local/lib/ruby/gems/1.8/gems/rspec-0.6.4/bin/spec"
Usage: spec [options] (FILE|DIRECTORY|GLOB)+
--diff Show unified diff of Strings
that are expected to be equal when
2017 May 17
3
Improving packets/sec and data rate - v1.0.24
Niklas - Thanks! Yeah, your Github issue was very useful for me to
understand what is probably causing our issue (the syscall chain done on
every UDP packet). Very interesting that you're able to see around 90%
of a Gig line on bare metal. Were you ever able to make any further
progress on adjusting Tinc based on the investigation in
https://github.com/gsliepen/tinc/issues/110 ?
Martin -
2007 Mar 19
4
spec.opts: questions about formatters, etc.
Questions concerning spec.opts:
1. Am I correct in believing that each option should go on a
separate line of spec.opts in the rails spec directory? If this is
so, why is it so?
2. Using a formatter in spec.opts doesn''t seem to work. Here is my
spec.opts file:
--colour
-f s
and this is what happens when I run the rake task:
Couldn''t find formatter class s
Make
2010 Dec 02
1
Metadata about formatter being used accessible in spec?
Is it possible to read which formatter is being used? For instance if -
f d is used to output additional information or is there a better way
to do that?
2005 Nov 30
8
Compilation of ferret C-extension under Windows.
Hi, David.
I have recently fixed ferret C sources and successfully compile extension
with MSVC.Net The problem was that MS compiler is more stricter that GCC and
require that all variables were declared before using. There was ~30 such
declaration. I have fixed them all.
But I am not sure that it works because tests failed with following error
both on clean and patched versions. So seems that it
2017 May 17
2
Improving packets/sec and data rate - v1.0.24
Hi Jared,
I've seen the same while testing on digital ocean, I think it's the context
switching that happens when sending a packet.
I've done some testing with wireguard and that has a lot better performance
but it's still changing quite a lot and only does a subset of what
tinc does so probably not a stable solution.
Martin
On Wed, 17 May 2017 at 18:05 Jared Ledvina <jared at
2016 Nov 02
4
RFC: General purpose type-safe formatting library
* UDL Syntax is removed in the latest version of the patch
<https://reviews.llvm.org/D25587>.
* Name changed to `formatv` since `format_string` is too much to type.
* Added conversion operators for `std::string` and `llvm::SmallString`.
I had some feedback offline (not on this thread, unfortunately) that it
might be worth using a printf style syntax instead of this Python-esque
syntax.
2016 Jan 26
2
tinc on a raspberry pi - version 1.0.19 will not work
Hello Guus,
thank you for your fast reply. Indeed the upgrade to a newer Raspbian
image did solve my problem with tinc, I was not aware that there was a
new Jessie based version.
The current Jessie based Raspbian has tinc 1.0.24 version included,
which runs fine, so I did not run tinc with debug messages enabled,
since the issue that had caused my tinc crashes in 1.0.19 had probably
been fixed.
2017 May 18
1
Improving packets/sec and data rate - v1.0.24
I noticed a large performance boost both on bare metal and in vps instances
by turning on kernel routing in the tinc config, and using full host
declerations for routs rather than dumping things to the tun interface
ambiguously.
"Forwarding = kernel"
ip route add 1.2.3.4 via 4.3.2.1 dev tun
-instead of-
ip route add 1.2.3.4 dev tun
On May 17, 2017 3:10 PM, "Niklas Hambüchen"
2018 Feb 16
2
tinc 1.1: freeaddrinfo(NULL) crash on windows
On Mon, 22 Jan 2018 18:08:22 +0100, Guus Sliepen wrote:
> Thanks for reporting this bug! Indeed, that code is wrong. It should
> free cache->ai instead of cache->aip. Even if it didn't crash on Linux,
> it was a memory leak. A fix is now in the git repository.
The fix leads to a use after free bug which is visible on macOS.
It doesn't seem to be much of a problem on most
2016 Oct 12
15
RFC: General purpose type-safe formatting library
A while back llvm::format() was introduced that made it possible to combine
printf-style formatting with llvm streams. However, this still comes with
all the risks and pitfalls of printf. Everyone is no-doubt familiar with
these problems, but here are just a few anyway:
1. *Not type-safe.* Not all compilers warn when you mess up the format
specifier. And when you're writing your own
2018 Jan 16
2
Windows TAP driver issues
While I'm aware that tinc is known to have problems with the latest
Windows TAP driver (NDIS 6), we want to run tinc on Windows server
2016 which doesn't support NDIS 5 drivers. Since using the old
version of the TAP driver is not an option, I'd like to better
understand the issues with tinc and the NDIS 6 TAP driver.
Can anyone point me to a discussion of the known issues? From
2018 Jan 22
3
tinc 1.1: freeaddrinfo(NULL) crash on windows
On Windows, freeaddrinfo(NULL) will result in a segv. In
get_recent_address(), there is the following block of code:
if(cache->aip) {
sockaddr_t *sa = (sockaddr_t *)cache->aip->ai_addr;
cache->aip = cache->aip->ai_next;
if(!cache->aip) {
freeaddrinfo(cache->aip);
2017 Feb 27
2
multithreading, subnet weights, logging info
Multiple questions here, thinking one email is less annoying (sorry if
not). Running tinc 1.0.31
1. Could anyone give an explanation (or point to documentation) of the
differences between Connections, Nodes, and Edges in the USR1/2 logging,
and the various information in there?
2. Connections appears to match the list of ConnectTo hosts in the main
config file -- does this mean this node can