on GCC's handling of 'alloca' in terms of #include etc
Depending on what you do, alloca is either a proper function that you can take the address of, or inline magic
GCC  C  Linux 
2 days ago
POS04-C. Avoid using PTHREAD_MUTEX_NORMAL type mutex locks
The standard states that undefined behaviour can result from incorrect use of the functions, even if your C code is well-formed.

Other such instances of UB in POSIX exist - https://www.google.com/search?q=site:opengroup.org+%2B"undefined+behavior"
C  POSIX  concurrentProgramming 
2 days ago
Concurrency is not parallelism - The Go Blog
"concurrency is the composition of independently executing processes, while parallelism is the simultaneous execution of (possibly related) computations. Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once."

Links to Rob Pike's talk - https://vimeo.com/49718712 , see also https://stackoverflow.com/a/12034706/
concurrentProgramming  parallelProgramming  talks  videos 
3 days ago
.Net discourages automatic rollback, encourages explicit call in catch block
The documentation's examples for the TransactionScope class and the SqlTransaction.Rollback() method, make it clear we're encouraged to use either TransactionScope, or explicit rollback. The documentation for the DbTransaction.Dispose() method remarks that it should do a rollback, but that this shouldn't be relied upon.
exceptionHandling  databaseProgramming  StackOverflow 
3 days ago
The Magic Of TransactionScope
It uses thread-local-storage to (effectively) simulate dynamic scoping.

Does that ghastly pattern have a name?
transactionalProgramming  blogEntries 
4 days ago
Start and Stop Firebird Server [Windows]
On command line:

net start "FirebirdServerDefaultInstance"
net stop "FirebirdServerDefaultInstance"

There's also something with 'instsvc'
6 days ago
early and late binding in VB.Net
iff you declare a variable 'As Object', VB.Net uses late binding. Otherwise, early binding with ordinary compile-time checks.

There's more to this horror show at http://www.i-programmer.info/programming/theory/1477-late-binding-myths-and-reality.html
6 days ago
Handles Clause (Visual Basic) | Microsoft Docs
For event handling. Automatically creates necesssary functor and invokes AddHandler for you. Ugh.
6 days ago
Check listening ports with netstat [Linux]
`sudo netstat -plnt` to list listening TCP ports

(On Windows, `netstat -an -p TCP`)
netstat  Linux  Unix  networking 
6 days ago
Erlang -- Getting Started -- how to quit the 'erl' shell
"init:stop()." (including the '.')

They saw fit to break ctrl+c
7 days ago
Declarations/definitions as statements in C and C++ - Stack Overflow
Looking at this code in C and C++:

while (--x >= 0) int i;

C++ treats is at while (--x >= 0) {int i;}
C  C++  StackOverflow 
7 days ago
Handle - Windows Sysinternals
"Ever wondered which program has a particular file or directory open? Now you can find out. Handle is a utility that displays information about open handles for any process in the system."
sysinternals  Windows  WindowsUtilities 
7 days ago
GitHub's own never-mentioned URL shortener
urlShorteners  GitHub 
7 days ago
C++ Core Guideline: The Guideline Support Library - ModernesCpp.com
"it requires no C++11 conformant compiler. You can even use it in legacy code and make it a lot more memory safe and type safe."

"aim for zero-overhead when compared to equivalent hand-written checks.". That's a promise."
19 days ago
Async support in NUnit - simoneb's blog
The discussed version of NUnit2 will automatically synchronously wait on async test methods, whereas newer versions (including later versions of 2?) do things 'properly', as apparently does XUnit https://stackoverflow.com/a/12248190/

See also https://msdn.microsoft.com/en-us/magazine/dn818493.aspx
C#  asynchronousProgramming  testing  unitTesting  blogEntries  NUnit  XUnit 
20 days ago
How fast can we *really* multiply matrices? - MathOverflow
Complexity theoretic properties tend to discount numerical stability, memory, and parallelism
matrices  algorithms  MathOverflow 
4 weeks ago
SSL Converter - Convert SSL Certificates to different formats
good openssl command listing + a really bad idea of a web service

Note the difference between PKCS12 (.PFX) and the (obsolete?) PKCS7 (.P7B)

I found that FileZilla only likes the generated PEM if we do the PKCS12->PEM conversion, *not* if we go directly from PKCS7->PEM, so go ahead and export your cert to PKCS12 (pfx) first, *then* convert using

openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes

and *do not* use this command:

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
5 weeks ago
How do I find the .NET version? - Stack Overflow
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"
Windows  StackOverflow 
5 weeks ago
Using FtpWebRequest to do FTP over SSL [simple, blocking]
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://myftpserver/dir/filename");
request.Method = WebRequestMethods.Ftp.DownloadFile;
request.EnableSsl = true; // Forces use of TLS. Don't mind the name
WebResponse response = request.GetResponse();
var stream = response.GetResponseStream();
FTP  FTPS  blogEntries  C# 
5 weeks ago
« earlier      
6502 advertising afghanistanwar agileprogramming ai algorithms altright amazon amazonelb anarchism anatomy android antivirus apache apostasy apple apps aptx arstechnica asa aslr asp.net assembly astronomy astrophysics asynchronousprogramming audio audiobooks authentication autorun avast aviation avionics badregulation bash batfiles binarytranslation birthdayeffect bitcoin bittwiddling blockchain blogentries blogs bluetooth bodylanguage books boost branchprediction brucecampbell bruceschneier bugs bugtrackers c c# c++ c++11 c++17 caches california cdns censorship certificatemanagement charity chomsky cinemaparadiso clang classactions cloudcomputing codecoverageanalysis codecs codingstandards combinatorics commandline commonlanguageinfrastructure communicationskills compilers compression computerarchitecture computerscience concurrentprogramming concurrentprogrammingnightmares configurationfiles constexpr cookies copyleft copyright coralproject cortana cpus crime criticalsystems criticalthinking crossbrowserissues crossfit cryptocurrencies cryptography crystallang css cygwin d dart databaseconcurrency databaseprogramming databases databasetools databinding dataprotection datastructures datetimelibraries deadlifts deadlocks debate debugging decompilation decompilers defensiveprogramming demoscene deserializationattacks designpatterns directx12 disclosure discounts discussion distributeddatabases distributedsystems distributedsystemsdevelopment dns documentation dogs domains dowsing dreamcast drm dynamicanalysis ebenmoglen ebooks ec2 eclipse economics education eff elixir elmlang email emulation endianness englishlanguage enums environmentalism equifax erlang ethernet etymology eu eulaw exceptionhandling extremeprogramming f# facebook fbi fear feminism filesystems filetables films finalizers firebirdsql firefox firewalls fitness floatingpoint flyweightpattern foreignfunctioninterface formalmodelling formalverification forth foss freedom freedomofexpression freesoftware freewill ftp ftps functionalprogramming funny fuzzymatching gamesconsoles garbagecollection gcc gdpr geometry git github globalwaronterror gmail gnu gnuparallel go godbolt google googleamp gpl gpus grammar graphicsprogramming guardian guava gui guidevelopment gunsafety gvim gyms hackernews hacks hardware hardwarebugs highlevelassemblylanguages history hitchens homophobia hotspot html html5 http https humanism humanrights hungariannotation ibm ides iis imagecompression imagehosting images immigration indexeddb indieweb informationtheory intel intellectualhonesty inteltsx internationalconflict internet internetexplorer interpreters interprocesscommunication io ip iphone ipsec ipv6 islam islamicterrorism islamism it java java8 javadeserializationattacks javafx javamemorymodel javascript jetbrains jewellery jihadism jit joelspolsky jpeg jquery json jvm kanban keepaneyeon kernels kestrel keyboardshortcuts keyloggers language latex law lawsuits lectures lenovo lexers lg liberty libraries lies linearsystems linkedin linux linuxkernel llvm loadbalancing lockfreeprogramming log4net logging losslesscompression lossycompression machinelearning mailchimp malvertising markzuckerberg masssurveillance mathematics mathoverflow matrices memetics memorymanagement messagebrokering microservices microsoft military minimalism mobileappdev mobileapps mobiletelephony morality mozilla mozillatalk msdn multithreadedprogramming music mvvm mysql nato ncat netbeans netflix netstat networking networkscanning news nmap nosql ntfs nuclearterrorism nuclearwar nuclearweapons nunit nutrition oauth2 obfuscation objectorientedprogramming onapis onlineadvertising onlinecommenting onprogramminglanguages openbsd opencl opengl openjdk opensource opensourcesoftware openssh operatingsystems opinionpieces oracledatabase organisation otr outoforderexecution owasp packagemanagement pakistan papers parallelprogramming parsing parsingexpressiongrammars pentesting perceptrons performance performanceart permissions philosophy philosophyofmind phishing planes plannedobsolescence playstation4 podcasts politicalcorrectness politics posix postgres posttruth powerarchitecture powerlifting powerpc powershell prattparsers privacy proceduralprogramming programming programmingbycontract programminglanguages programmingstyles psexec psychology putty python qt quotes rabbitmq raf ragel rants raymondchen raytracing readcopyupdate readinglist redaction reddit referrerurls regex regressiveleft regulation relationaldatabases religiousdiscrimination remoteaccesstools remotedesktop rest returnorientedprogramming reverseengineering riscv roadsafety rodin royalnavy rpc saas safeprogramming safeprogramminglanguages sameoriginpolicy sandboxing schneieronsecurity science scripting scrum searchengines securefiledeletion security securitynow securityprocesses selenium selfdefence serverfault serviceorientedarchitectures sexcrime sgx shopping signal slashdot smarttvs society softwarebloat softwaredesign softwareengineering softwareengineeringtools softwarelicensing softwareupdates soylentnews spaceflight spam spectre sql sqlserver squid ssh stackexchange stackoverflow startups staticanalysis steam steganography stevegibson stevenpinker strings study superstition svg syntax sysadmin sysinternals syslog systems taintchecking talks taskparallelism tcp techhistory techhumour technology techpolitics telcos telemetry telephony templatemetaprogramming terrorism testing texteditors theology tidal tisinterpreter tmux todo tommorris toread tpl tpm tracking trademarklaw transactionalprogramming treedatastructures trust trustedcomputing tutorials typesystems uber udp ui uk undefinedbehaviour unicode unittesting unix urlshorteners usa usermodescheduling utilitycompanies uwp ux vb.net vectorgraphics vectors versioncontrol video videos vim violence visualc visualstudio vitamins vp8 vulkan war watchlist wcf web webapis webbloat webbrowsers webcaching webdesign webdev webgl webm webprivacy websearch webservers webservices webstandards webutilities whitepapers windows windows10 windows7 windowsdefender windowsdevelopment windowsserver windowsupdate windowsutilities windowsxp winforms wishlist wit words wtb wtbonaudible x11 x86 x86-64 xml xss xunit ycombinator youtubevideos

Copy this bookmark: