Windows error 0xFFFFFFFF, -1

Detailed Error Information

HRESULT analysis[1]

FlagsSeverityFailure
Reserved (R)true
OriginCustomer

This code was defined by a third party software company, and may mean different things for different software. Contact the software author for more information about this error.

NTSTATUStrue
Reserved (X)true
FacilityCode4095 (0xfff)
Error Code65535 (0xffff)

Questions

127votes
20answers

Is it safe to use -1 to set all bits to true?

I've seen this pattern used a lot in C & C++. unsigned int flags = -1; // all bits are true Is this a good portable way to accomplish this? Or is using 0xffffffff or ~0 better? read more
c++
c
binary
bit-fields
34votes
1answer

Is there anything special about -1 (0xFFFFFFFF) regarding ADC?

In a research project of mine I'm writing C++ code. However, the generated assembly is one of the crucial points of the project. C++ doesn't provide direct access to flag manipulating instructions, in particular, to ADC but this shouldn't be a problem provided the compiler is smart enough to use [...] read more
c++
gcc
assembly
x86
bigint
19votes
3answers

Android Canvas Redo and Undo Operation

I am working on a drawing project. My code is working perfectly other than canvas redo and undo operations. My undo operation removes paths from the paths ArrayList and saves to the undonePaths ArrayList, and the redo operation removes the last element from undonePaths and saves to paths. Here's my [...] read more
android
17votes
3answers

Nesting routes with flutter

I am trying to figure out good architectural solution for following problem: I have following First level routes that can also be referred to as layouts: /onboarding/* -> Shows onboarding layout /dashboard/* -> Shows dashboard layout /overlay/* -> shows slide up overlay layout /modal/* -> shows modal layout User is [...] read more
routing
dart
flutter
15votes
1answer

Setting up a Bluetooth PAN

I am trying to create a Bluetooth PAN between two devices where I can access REST based web services over the Bluetooth connection. I have had some success with various proof of concepts (both Bluetooth legacy and Bluetooth Smart) but I am having problems trying to create a Group network [...] read more
linux
networking
wireless-networking
bluetooth
pan
14votes
8answers

C macro to create a bit mask -- possible? And have I found a GCC bug?

I am somewhat curious about creating a macro to generate a bit mask for a device register, up to 64bits. Such that BIT_MASK(31) produces 0xffffffff. However, several C examples do not work as thought, as I get 0x7fffffff instead. It is as-if the compiler is assuming I want signed output, [...] read more
c
bit-manipulation
12votes
1answer

Python representation of negative integers

>>> x = -4 >>> print("{} {:b}".format(x, x)) -4 -100 >>> mask = 0xFFFFFFFF >>> print("{} {:b}".format(x & mask, x & mask)) 4294967292 11111111111111111111111111111100 >>> >>> x = 0b11111111111111111111111111111100 >>> print("{} {:b}".format(x, x)) 4294967292 11111111111111111111111111111100 >>> print("{} {:b}".format(~(x ^ mask), ~(x ^ mask))) -4 -100 I am having trouble figuring [...] read more
python
integer
bit-manipulation
11votes
3answers

Bit twiddling for checking whether a number is in particular range

I found some interesting bit twiddling in "source\common\unicode\utf.h" file of ICU library (International Components for Unicode). The bit twiddling is intended for checking whether a number is in a particular range. // Is a code point in a range of U+d800..U+dbff? #define U_IS_LEAD(c) (((c)&0xfffffc00)==0xd800) I have figured out the magic [...] read more
c++
c
algorithm
bit-manipulation
9votes
5answers

How to dump memory to a file in gdb (osx)? Need to rescue my work

I need to know how I can dump memory in Safari.app, to a file. I've entered gdb attach 6741 (my safari PID). Now what? I tried searching for help on gdb on google, but I couldn't find anything that told me what to do, even when searching for "how to [...] read more
macos
gdb
9votes
1answer

Cisco ASA Site-to-Site VPN Dropping

I have three sites, Toronto (1.1.1.1), Mississauga (2.2.2.2) and San Francisco (3.3.3.3). All three sites have ASA 5520. All the sites are connected together with two site-to-site VPN links between each other location. My issue is that the tunnel between Toronto and San Francisco is very unstable, dropping every 40 [...] read more
cisco
cisco-asa
cisco-vpn
9votes
10answers

Fastest timing resolution system

What is the fastest timing system a C/C++ programmer can use? For example: time() will give the seconds since Jan 01 1970 00:00. GetTickCount() on Windows will give the time, in milliseconds, since the system's start-up time, but is limited to 49.7 days (after that it simply wraps back to [...] read more
c++
c
windows
time
8votes
3answers

Corrupted NTFS Drive showing multiple unallocated partitions

My external hdd with a single NTFS partition was accidentaly plugged out (kids!)... and is now corrupted. Iv tried running ntfsfix - with no luck - output below.. When I look at the disk under disk management in Windows 7 it shows up as having 5 partitions 2 of which [...] read more
external-hard-drive
ntfs
filesystem-corruption
8votes
1answer

How, exactly, do bitwise operators work in Java?

I am currently trying to wrap my head around bitwise and bit shift operators in Java. Although they make sense to me in simplified toy examples (basically positive integers), my understanding falls apart as soon as negatives are involved, and in some other cases. I tried searching all over the [...] read more
java
bit-manipulation
language-lawyer
bitwise-operators
7votes
3answers

Disable IPv6 Loopback on Windows 7 64 Bit

I have a Windows 7 64 Bit machine, and I cannot find a way to disable the IPv6 Loopback. I looked at the article at How to disable IP version 6 or its specific components in Windows and shows how to set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents to various values – but none of [...] read more
windows-7
networking
7votes
3answers

SQL Server 2012 with account NT Service\MSSQLSERVER access is denied in domain

A few months ago we installed SQL Server 2012 in Windows 2008 R2 under the virtual account "NT Service\MSSQLSERVER", all good. A few days ago, one of the admins of the IT dept installed Full Text Search component to the SQL Server 2012 (the problem is he could not recall [...] read more
sql-server
sql-server-2008
domain
permissions
7votes
2answers

Strongswan (IKEv2) connection established, but no traffic routing

I've seen this sort of question posted a few times before, but so far, none of them have solved my issue. I'm trying to set up an IKEv2 VPN on my Ubuntu Server to use with my Windows Phone using Strongswan. The connection seems to be set up correctly, but [...] read more
ubuntu
ipsec
strongswan
vpn
7votes
1answer

mmap Mac: Segmentation fault

The following on my Mac succeeds: int main() { int* addr = (int*) mmap(0, 100, 1 | 2, 2 | 4096, -1, 0); *addr = 25; return 0; } However the below code is identical but fails when I try to write to *addr with segmentation fault: int main() { [...] read more
c++
c
system-calls
7votes
3answers

Error inflating class fragment: Duplicate id , tag null, or parent id with another fragment

I am trying to make an app in which when user clicks on item in ListView, the GoogleMaps is displayed. I have tried following code: ShowPlacesActivity.java public class ShowPlaceActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_show_place); if (savedInstanceState == null) { getFragmentManager().beginTransaction() .add(R.id.container_showplaces, new PlaceholderFragment()) .commit(); [...] read more
android
xml
android-layout
listview
google-maps-android-api-2
6votes
1answer

FreeBSD IP aliases in different subnets and default outgoing IP address

I have a FreeBSD VPS that until recently had assigned 3 public ip addresses in a /29 subnet. When making outgoing connections, the IP address used was always the non aliased one ".20", however now I have added another block of 3 ip addresses in a different /29 subnet and [...] read more
networking
freebsd
ip-aliasing
6votes
1answer

ASA site-to-site IPSec vpn to linux ipsec-tools endpoints stops working after a random period of time

We swapped to ASA's over the weekend, and we replaced our VPN infrastructure which was previously based on openvpn and are now using IPSec between our ASA 5520's and our other sites that have linux (CentOS) routers. The VPNs connect just fine, but after a period of time the connections [...] read more
linux
cisco
cisco-asa
ipsec
racoon
6votes
2answers

Once more: triangle strips vs triangle lists

I decided to build my engine on triangle lists after reading (a while ago) that indexed triangle lists perform better due to less draw calls needed. Today i stumbled on 0xffffffff, which in DX is considered a strip-cut index so you can draw multiple strips in one call. Does this [...] read more
directx
6votes
2answers

Bug writing audio using custom video writer library

I'm trying to wrap a little handy piece of C++ code that is intended to generate video+audio on windows using VFW, the C++ library lives here and the descriptions says: > Uses Video for Windows (so it's not portable). Handy if you want to quickly record a video somewhere and [...] read more
python
c++
windows
audio
swig
5votes
1answer

Enable TLS 1.2 in Windows Server 2012 running Exchange 2013 via IIS 8.0

I got some issues getting the TLS 1.2 protocol running on one of our Windows Server 2012 machines. I checked this using ssllabs.com by Qualys and also tested with a powershell script and the linux tool "cipherscan". The server hosts one Exchange 2013 SP1 (CU4) Server, with IIS 8.0. The [...] read more
windows-server-2012
tls
exchange-2013
5votes
2answers

OpenVPN connection works but no gateway is assigned

i try to setup openvpn on a vps and I'm able to establish a connection to the server, but the gateway isn't assigned to the client. Here are my config files: client config: client dev tun proto udp remote foo.bar 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert client1.crt [...] read more
vpn
configuration
openvpn
gateway
open
4votes
0answers

Direct3D crashes dxdiag in 32-bit but works fine in 64-bit mode

DxDiag crashes when I open it unless I bypass Direct3D. It works fine in 64-bit mode. I have a NVIDIA GeForce GT 525M, and I've tried updating (also uninstalling, reinstalling) my drivers. I've also tried doing the same with DirectX. How can I enable Direct3D for 32-bit? I've tried enabling [...] read more
windows-7
directx
direct3d
4votes
2answers

Is my mac hacked? Found weird things

I apologize for posting in length, but I thought being complete would be of more value: 20120822, my browser was not resolving a domain so I went into my terminal to check and lo-and-behold! I find these crazy commands remnant: mac-mini$ su Password: sh-3.2# sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts Mar 22 23:07:08 [...] read more
mac-mini
logmein
4votes
1answer

disabling ipv6 on windows 7 64bit

not sure what i am missing here.. every website suggests creating this reg key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents as DWORD and setting its value to 0xFFFFFFFF i've done this, but when i reboot, my NIC adapter still shows IPV6 enabled. since i have 64bit version, i also tried setting this value as QWORD. [...] read more
windows-7
ipv6
4votes
1answer

My two-way trust with selective auth seems to behave opposite to a one-way trust

I'm not sure why I'm the only one running into this, I think it's a larger problem with Server 2012 and RDS protocols... With 2008 machines, you can use utilize a one way trust to authenticate across domains with the TSGateway service, but with 2012 it breaks when running across [...] read more
authentication
windows-server-2012-r2
active-directory
4votes
3answers

How to limit ZFS writes on NVME SSD in RAID1 to avoid rapid disk wear?

Currently I'm running Proxmox 5.3-7 on ZFS with few idling debian virtual machines. I'm using two SSDPE2MX450G7 NVME drives in RAID 1. After 245 days of running this setup the S.M.A.R.T values are terrible. SMART/Health Information (NVMe Log 0x02, NSID 0xffffffff) Critical Warning: 0x00 Temperature: 27 Celsius Available Spare: 98% [...] read more
zfs
ssd
proxmox
nvme
4votes
0answers

FreeBSD major update broke vpnc connectivity, incoming ESP traffic doesn't appear unencrypted on interfaces

I updated a FreeBSD box from 10.4 to 11.2-RELEASE-p4 recently and it seems to have broken the vpnc VPN connectivity. Here's the vpnc.conf:IPSec gateway 10.1.0.1 IPSec ID vpnuser IPSec secret su0hoh8liNgeiT8 Xauth username vpnuser Xauth password miuthei3Niew2ee Nat Traversal Mode none Noninteractive Following the interface configuration; em0 is the hardware [...] read more
freebsd
ipsec
cisco-vpn
vpn-client
4votes
0answers

Block incoming traffic in bonding mode when primary interface is down

My server running on latest kernel (4.4.6) has configured a bond device (bond0) with two enslaved interfaces eth0, wlan0 with primary interface eth0. cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: fault-tolerance (active-backup) Primary Slave: eth0 (primary_reselect always) Currently Active Slave: wlan0 MII Status: up MII [...] read more
linux
iptables
firewall
bonding
4votes
0answers

Issue installing IE11

I've been using WSUS to roll out IE11, there's a few stranglers that IE11 will not install and I've started looking into. Here's what I've done. 1. Confirmed all prerequisite updates have been done. 2. I'm using the x64 bit package of ie11 and only using x64 servers and workstations. [...] read more
windows-server-2008-r2
windows-7
wsus
internet-explorer-11
4votes
1answer

System Account Logon Failures every 30 seconds

We have two Windows 2008 R2 SP1 servers running in a SQL failover cluster. On one of them we are getting the following events in the security log every 30 seconds. The parts that are blank are actually blank. Has anyone seen similar issues, or assist in tracking down the [...] read more
windows-server-2008
security
windows-event-log
failovercluster
4votes
2answers

How can I get FreeNAS to respond to libvirt shutdown requests

I have a KVM VM of FreeNAS 0.7.1 Shere (revision 5127) running on Ubuntu Server 10.04 and I'm unable to convince the VM to shutdown from the host virsh shutdown freenas I would expect this to send some ACPI? trigger to the VM and FreeNAS then do what it's told. [...] read more
ubuntu
kvm-virtualization
electrical-power
freenas
4votes
1answer

My app works but log gives "No package ID ff found for ID 0xffffffff."

I have an app that works fine on my emulators and on my own device. However, when I navigate between views I get the message No package ID ff found for ID 0xffffffff. all the time. I do not know what it means or where it comes from. Searching through [...] read more
android
4votes
2answers

Flutter - Float Action Button - Hiding the visibility of items

I'm trying to control the visibility of the smaller items of the FAB, according to the gif below: enter image description here [https://i.stack.imgur.com/pWEqa.gif] However I am not able to insert the opacity in the items. Anywhere I put some kind of error occurs. I do not know if opacity is [...] read more
dart
flutter
4votes
2answers

converting image to binary in swift

I want to convert an image to binary black and white, at the moment I am looping through pixels (stored in UnsafeMutableBufferPointer) using normal nested loops, comparing each RGB to average and setting it to black or white, however. This seems really slow and I am sure there is a [...] read more
ios
swift
cocoa-touch
uiimage
core-graphics
3votes
1answer

Black screen while installing Debian

I tried installing Debian with a netinstall CD-ROM on my custom-built PC. Everything is going fine until I choose any of the install options because then the screen turns black and I get no graphical feedback at all. The screen itself seems to get information though because it doesn't go [...] read more
installation
debian
3votes
2answers

Error installing IE11 - prerequisite update KB2834140

I'm trying to upgrade Internet Explorer my Windows 7 (x64) development VM from IE8 to IE11. Both the online and offline installers fail with a bland error message: enter image description here [https://i.stack.imgur.com/0dueo.png] The troubleshooter tells me nothing, but the IE11_main.log reveals: 00:04.524: INFO: Download for KB2834140 initiated. Downloading http://go.microsoft.com/fwlink/?LinkID=303935 [...] read more
windows-7
installation
internet-explorer
3votes
2answers

Sysprepped image will not complete setup

I'm having a problem installing/setting up an image. Background:I've created a Windows 7 Enterprise image (i.e. installed OS, installed applications, configured settings, etc.). Then I sysprepped it and captured/applied it with imagex (onto a computer with identical hardware as the original). When I boot up the new machine, windows starts [...] read more
windows-registry
setup
deployment
sysprep
3votes
2answers

How to use openvpn for browsing

I'm just starting out with VPN and OpenVPN. What I understand is that I when I have a vpn connection, it's like I'm on the same network as the server. Then I should be able to connect to the server via the local address (10.8.x.x). Next to that I should [...] read more
debian
vpn
openvpn
tunnel
bridged
3votes
2answers

Something very strange with network

I have Windows 7 and I have very strange thing with my network. Some time I was connected through wireless router and my IP was 192.168.2.103, router's IP was 192.168.2.1 and some other IP was 192.168.2.100. The last I get from page "active DHCP clients" of web interface of the [...] read more
windows-7
networking
3votes
0answers

High Performance AWS EC2 / RDS + Nginx + PHP-FPM setup

GENERAL DESCRIPTION OF THE ISSUE We're currently running an application on a PaaS type solution for PHP. Their solution is based on AWS cloud and due to the fact that their plans don't fit our scaling needs, we've decided to migrate to AWS directly the application is performing "well" ~100ms [...] read more
nginx
amazon-ec2
amazon-web-services
php-fpm
high-load
3votes
2answers

How to debug ip xfrm rules

I created ip xfrm rules on 2 machine and trying to pass traffic through the ipsec tunnel. The packet comes into the other end, encrypted, and disappears. I traced them through iptables, and here is the trace. 2015-11-27T14:50:21.442638+04:30 cfae kernel: [70234.667488] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:0c:29:b7:97:49:00:0c:29:42:5b:e1:08:00 SRC=172.24.1.178 DST=10.60.60.31 LEN=128 TOS=0x00 [...] read more
ipsec
3votes
1answer

Same hardware/software, significant difference in performance

Introduction I have two sets of machines, set A and set B, with apparently the same hardware/software configuration, but with a significant difference in performance. Machines in set B are up to x4 faster than machines in set A. However, if I reboot a machine in set A, inexplicably it [...] read more
performance
hardware
3votes
1answer

Iptables u32 matching nat

I'm currently setting up IPtables to redirect certain UDP payloads to my application. Here is an example of what I have working so far: iptables -t nat -I PREROUTING -p udp -d {IPDST} --dport 27055 -m u32 --u32 '0>>22&0x3C@8=0xFFFFFFFF && 0>>22&0x3C@12=0x54536F75 && 0>>22&0x3C@16=0x72636520 && 0>>22&0x3C@20=0x456E6769 && 0>>22&0x3C@24=0x6E652051 && 0>>22&0x3C@28=0x75657279' -j [...] read more
iptables
linux-networking
3votes
2answers

CentOS reporting lower total memory compared others in AWS

I have a t2.medium instance running in AWS on the CentOS 7 AMI and I noticed in top and free it's basically reporting 3.45GiB of total memory. If I launch an instance with the AWS linux (I think I tried the RedHat one too) it reports about 4GiB of memory. [...] read more
amazon-web-services
memory
centos7
3votes
1answer

Windows 2008 R2 services not working

EDIT I spawned the Windows events logging service won't start issue to a separate question here I have a strange problem: 1. SQLAGENT won't start 2. Windows events logging service won't start Today I tried to copy a db to test some changes, and discovered that SQL server agent can't [...] read more
windows-server-2008-r2
sql-server-2008
service
windows-event-log
3votes
3answers

Setting up gateway on different subnet than IP address

My provider has a (stupid) setup where the IP address for the gateway is on a totally different IP range than the assigned IP address. They insist on doing this for whatever reason. I'm trying to get Windows Server 2012 R2 configured using a static route but have had no [...] read more
networking
routing
windows-server-2012
gateway
3votes
1answer

Packets not entering FORWARD chain

first of all, this is not an every-day routing issue. The setup is fairly complex, so let me state it before. I got a router with, lets keep it simple, 3 interfaces. eth0, eth1, eth2. eth2 is used for pppoe. eth0 & eth1 have the clients. Okay so far so [...] read more
networking
iptables
routing
policy-routing
3votes
2answers

HP P410 ADU (hpacucli) generates empty report

I'm trying to monitor hard drive's smart status. I've tried smartctl tools and HP's own hpacucli to generate ADU report. However, neither of them are useful. smartctl does not show values like Power On Hours or Hard drive temperature. ADU report shows them empty. What's the right way to monitor [...] read more
raid
monitoring
hp
hardware-raid
hp-smart-array
3votes
1answer

Linux port based routing : reponse packets discarded

I would like to use port-based routing on my Linux local gateway. Here is my network diagram : 192.168.42.148/24 192.168.42.1/24 192.168.44.2 192.168.44.1 +--------------------+ +----------------------------+ +----------+ | Workstation (eth0)-|----------------|-(em0) Local_GW (tun0)-|------------| VPN_GW | +--------------------+ | (rl0) | +----------+ +-------------|--------------+ 10.133.8.79/21 | | 10.133.15.254/21 | +--------------------+ | Provider_GW | +--------------------+ Provider_GW only [...] read more
linux
iptables
routing
iproute2
3votes
2answers

iptables NAT with multiple interfaces

I have an ubuntu 10 machine I'm trying to set up with NAT. eth0 is the WAN interface, that uses DHCP. eth1, eth2, eth3 are LAN interfaces. They are connected to 192.168.0.50, .51, .52 respectively. NAT through eth1 works great. On eth2/3, I get nothing -- "no route to host" [...] read more
iptables
nat
3votes
1answer

Marking packets with iptables with a NAT

I have to write bash scripts for a router to control bandwidth limitation for a given user on a given domain name. For this, I'm using iptables to mark the packets incoming from a restricted domain to a user ip address in the private network. With each couple user_ip/domain_ip I [...] read more
linux
iptables
routing
nat
qos
3votes
1answer

How to increase the image quality on using Pdfium

I have extracted the pdf page as an image by using the below code snippet,but on changing the size of the bitmap the text content in the image is not sharp, it is blurry Can you suggest a solution for improving the quality of the rendered image. var data = [...] read more
c#
pdfium
3votes
2answers

Swift randomFloat issue: '4294967295' is not exactly representable as 'Float'

When generating a random CGFloat, I use the following code. Some explanation here extension CGFloat{ static func randomFloat(from:CGFloat, to:CGFloat) -> CGFloat { let randomValue: CGFloat = CGFloat(Float(arc4random()) / 0xFFFFFFFF) return randomValue * (to - from ) + from } } It used to be OK. Works fine now. There is [...] read more
swift
swift5
3votes
2answers

Bottom Sheet Fragment causes error when called the second time

I have a class BottomSheetFragment extends BottomSheetDialogFragment, which contains sub-fragments, and I call it from a fragment. The problem is that when I call it the second time, my app crashes with Binary XML file line #69: Duplicate id 0x7f090071, tag null, or parent id 0xffffffff with another fragment error. [...] read more
java
android
android-fragments
bottom-sheet
3votes
1answer

Need explanation about random function swift

Got a question about my random function: why is it giving this error? '4294967295' is not exactly representable as 'Float'; it becomes '4294967296' - my code is func random() ->CGFloat { return CGFloat(Float(arc4random()) / 0xFFFFFFFF) } func random(min: CGFloat, max: CGFloat) -> CGFloat { return random() * (max - min) [...] read more
swift
random
2votes
1answer

Windows: SSL/TLS connection reset after ClientHello (ECONNRESET / write:errno=10054)

I'm using Windows Server 2012 as a workstation. The problem is that HTTPS connection initiated by node.js randomly fails. Probably this is system-wide issue and not only node is affected, but it appears mostly with node. Because any HTTPS request can randomly fail, npm install is a lottery and for [...] read more
windows
networking
ssl
https
openssl
2votes
1answer

What can trigger a SIGPWR signal that interrupts a 'sendmsg' system call?

On a RHEL 6 host, I have a Cassandra server listening for TCP connections on localhost. In parallel, I have a client application that sends it requests. The client (C# Mono) uses sendmsg to send the serialized bytes. I consistently see the sendmsg return without having sent all requested bytes. [...] read more
linux
redhat-enterprise-linux
tcp
strace
system-calls
2votes
2answers

Windows 10 drops IKEv2 VPN connection to Cisco router in exactly 60 seconds after last data exchange

Update 3: 22 January 2017 I've narrowed down the update that causes this problem: KB3201845 OS Build 14393.479 from December 9 2016. I went through all these updates step by step. Looking at the changes files manifest, these files have been changed: * agilevpn.sys * vpnike.dll Other topics I've created: [...] read more
networking
windows-10
vpn
2votes
1answer

How to slow down traffic with tc?

I'm on Ubuntu 14.04; I'd like to learn the basics of traffic shaping, I made a simple script that should slow down my HTTP(S) traffic to ports 80 and 443. # usage: sudo ./filename.sh #delete existing rules # wlan0 is my WiFi tc qdisc del root dev wlan0 iptables -t [...] read more
wireless-networking
iptables
network-traffic
traffic-shaping
2votes
1answer

How do I configure DNS when sharing a VPN connection in linux?

I'm using a Linux computer (raspberry pi) to share a VPN connection over ethernet. I want the raspberry pi to connect to the internet normally (not over the VPN). I'm very close to getting it working, but I don't know how to configure the DNS for the eth1 network. Connection [...] read more
linux
networking
vpn
dns
dnsmasq
2votes
0answers

How can I get a Mellanox ConnectX-2 to work on this ASUS desktop motherboard?

People seem to be happy with second-hand Mellanox ConnectX-2s on Linux so I grabbed a pair. Both cards result in an network interface showing up on one computer but neither show up in the other computer. Working computer: * EVGA 120-LF-E650 desktop board * Ubuntu 16.04 LTS * Linux 4.4.0 [...] read more
linux
networking
network-adapter
2votes
1answer

What does the "-->" notation mean in the output of ifconfig?

I have a VPN connection set up on my OS X machine, and when I run ifconfig in the terminal I get the following response: utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet 10.8.0.6 --> 10.8.0.5 netmask 0xffffffff Can someone help me understand what the --> symbol means? read more
networking
vpn
ifconfig
2votes
1answer

Enable SCHANNEL Protocols in Windows Registry (Win7 & 2012R2) DisabledByDefault or Enabled?

I have enabled TLS 1.0/1.1/1.2 protocols on my local Win7 machine and 2012R2 server as well as disabled SSL 2.0/3.0 using the registry DWord value DisabledByDefault = 0 based on the following Microsoft support article: https://support.microsoft.com/en-us/kb/245030(see SCHANNEL\Protocols subkey...) But i noticed another TechNet article which seems to contradict this KB [...] read more
encryption
tls
authentication
cryptography
openssl
2votes
1answer

Routing subnet to specific routing table with fwmark, direct to ISP and VPN

Introduction I'm trying to set up a VPN on my router so that I have two routing tables. I want it so that all the filtering is done with iptables, and iproute just acts on the specific fwmarks, ie generic rules. It is an improvement of Routing a particular subnet [...] read more
networking
router
routing
iptables
openvpn
2votes
1answer

OS X - GPU Panic

For half a year, I've been experiencing random freezes/reboots on my MacBook Pro Retina Mid 2012 model. My current OS is OS X Yosemite, but I started experiencing the issue in the Mavericks era. The laptop has endured some occasional, unintended slight physical abuse, but nothing very serious. Just mentioning [...] read more
macos
gpu
kernel-panic
2votes
1answer

Computer tends to BSOD crash (in any browser) when using Flash based apps?

About a month ago my computer started experiencing crashes, at first it was just every once in a while, then it escalated to around 5 times a day. Typically it crashes when I access flash-based games and videos, but it has occurred at random, e.g. no sensible correlation between what [...] read more
windows-7
crash
flash
bsod
2votes
0answers

on xeon, does addq require 2 clock cycles?

How many cycles are required to add long ints on a xeon? from timing trials, it appears that 2 clock ticks are needed. /proc/info says model name : Intel(R) Xeon(R) CPU X5660 @ 2.80GHz sample c code (loop.02.c) unsigned long i, j=0; for(i=0; i<(0xFFFFFFFF);i++) j+=3; assembler code 21:loop.02.c **** for(i=0; [...] read more
clock
xeon
2votes
1answer

Enable IPv6 in MariaDB in FreeBSD jail

I'm trying to set up a MariaDB 10.2 Server on a FreeBSD 11.2 Jail. The Server is running and accepts remote connections via IPv4 just fine. According to sockstat, it should also be listening on IPv6: db# sockstat | grep 3306 mysql mysqld 17516 177 tcp46 *:3306 *:* This is [...] read more
mysql
freebsd
ipv6
mariadb
2votes
2answers

Transparent HAproxy on ubuntu (amazon EC2)

I am trying to setup a transparent HAproxy load balancer using ubuntu 18.04 on amazon EC2. I got the HAproxy to work on a non-transparent mode, so now I am trying to add the changes required for the transparent mode, but I am getting 503 Service Unavailable No server is [...] read more
haproxy
transparent-proxy
2votes
0answers

How to get TOR hidden service to work with iptables

I'm running an Arch Linux server which acts as a TOR relay and I would like it to act as a hidden service as well (I want to provide .onion access to my services, I know running a relay next to a HS is not suitable for an anonymous service). [...] read more
iptables
service
arch-linux
tor
hidden
2votes
0answers

How to fix Apache2 w/ suPHP to scan the correct .ini directory?

Apache2 was reading the correct area for php.ini in /etc/php5/apache2 until suPHP was added to the system. Configuring suPHP_ConfigPath in /etc/apache2/mods-available/suphp.conf gets the correct php.ini loaded, but does not correct the directories to be scanned. How, and where, do I fix this so that Apache loads/scans/uses PHP from the original [...] read more
apache2
php
2votes
2answers

OpenVPN routing between static hosts

I have an OpenVPN server with successful static-key tunnels to two separate hosts - my laptop, and another server elsewhere on the internet. I have connectivity over both OpenVPN tunnels. How do I make it so the server with two tunnels routes traffic across its tunnels? Switching to server mode [...] read more
debian
vpn
routing
openvpn
2votes
5answers

OpenVPN client connects but can't access internet

I setup an Openvpn server on a centos box and I can get the client to connect (osx) but can't access the internet or even the local network. I thought maybe DNS but couldn't access any sites via IP. Any help would be appreciated. I will list my config files [...] read more
centos
iptables
openvpn
2votes
0answers

DHCP offer is unicast but DHCPACK is broadcast

My DHCP server broadcast DHCPACK 0xffffffff . it is not working on layer 3 dhcp relay agent . as it can not forward this broadcast message to my client. can any one help me from exactly the broadcast bit set ? should I send any parameter to dhcp server so [...] read more
dhcp
dhcp-server
isc-dhcp
2votes
1answer

nslookup fails inside freebsd jail

I posted on the freebsd forums. I've been trying all night and I've made some progress but still I can't connect to the internet from my freebsd jail. Please just give me a hint here. I get the following inside the jail if I do nslookup www.google.com : ;; connection [...] read more
networking
freebsd
bsd
2votes
3answers

How to configure an authoritative time server in Windows Server

I have a performance lab running behind a firewall, so none of the machines in the lab has internet access. All machines in the lab are part of a domain with the domain controller also present inside the lab. The problem is that some server's time are drifting heavily. Some [...] read more
windows-server-2003
windows-server-2008-r2
ntp
w32time
2votes
1answer

Exception thrown when I tried implementing a Login Screen

I'm developing a flutter app and I tried using a Login Screen from Flutter Screens and ran into a problem. When I run the app, it does not work and a list of errors is just shown to me. I'm wondering if I'm even using it correctly. This is my [...] read more
dart
flutter
2votes
0answers

How can one make this dynamic bit range code GCC compliant for 64 bit compilers?

I am trying to update for linux, GCC, and 64 bit use and preserve in a github Ken Silverman's Paint N Draw 3D C software. I got his permission but he's too busy to help. I don't want to do a bad job and I am not a bit-twiddling expert [...] read more
c
gcc
bit-manipulation
64bit
bitwise-operators
2votes
1answer

Why am I not able to mask 32 bits on a long data type in Java

I cannot figure out why this works. I am attempting to mask the least significant 32 bits of java on a long but it does not properly AND the 33rd and 34th bit and further. Here is my example class Main { public static void main(String[] args) { long someVal [...] read more
java
binary
bit-manipulation
masking
2votes
2answers

Does JMeter fully support NTLM Authentication?

I am struggling to make JMeter to work with NTLM authentication. At the beginning I was provided with an URL and credential. When I tested the credential in Firefox and in Chrome I received the authentication popup and upon providing the credential I was authenticated. So I had created a [...] read more
java
jmeter
apache-httpclient-4.x
ntlm
apache-commons-httpclient
2votes
0answers

Writing to page mapped dmas in kernel

I've been working on modifying the intel ixgbe kernel driver to function with my PCIe device (FPGA but that's not super important). The kernel and the PCIe device all negotiate quite well, configuration headers are passed along and communication seems to function. However attempting to write DMA_FROM_DEVICE I have a [...] read more
c
linux-kernel
kernel
redhat
vivado
2votes
3answers

Bit Counting in C similar to bit twiddling hack

I need to make a routine that counts bits in a word that does not involve loops (only bit operations), and does not use large constants. int x = 0xFFFFFFFF; x += (~((x >> 1) & 0x55555555)+1); x = (((x >> 2) & 0x33333333) + (x & 0x33333333)); x = [...] read more
c
bit-manipulation
counter
bit
2votes
3answers

Divide a 48-bit number which is composed of a 16bit and a 32bit variable

I am developing a software for an embedded microcontroller (STN1110). It has no FPU or SFP emulation. There is an SDK method which returns the uptime of the controller in microseconds, split in two variables: uint16 (msw) and uint32 (lsw). I want to convert this "pair" into a single uint32 [...] read more
c
embedded
2votes
1answer

Places auto complete fragment-Binary XML file line #19: Error inflating class fragment

I have a layout having a recyclerview in which i inflate a cardview layout.when i add places auto complete fragment in the card,the app crushes. i want each card to a have the fragment the code for the cardview <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:layout_marginTop="20dp" > [...] read more
java
android
1vote
1answer

Codec and setting for lowest bitrate ffmpeg output

I need to convert my input audio file to the lowest possible size to transfer it over a radio transmitter. Now with the AAC codec and MP3 format I used 8kbps for bit rate, 16 kHz for sampling rate and 1 channel, and my output data is about 3kb per [...] read more
audio
ffmpeg
android
mp3
1vote
0answers

SOME/IP length error in trace window when sending SOME/IP messages from CANOE using CAPL script

I am getting SOME/IP length error(but getting correct data) in trace window when sending SOME/IP messages from CANOE using CAPL script. I think i am missing any settings that should be done in Canoe. Can anyone suggest a possible reason for this? and how to solve this? The code used [...] read more
networking
1vote
0answers

GRUB2 fails to boot multiboot compliant kernel that worked with GRUB Legacy

I have been trying to port a non-Linux mostly multiboot 0.6.96 compliant (the multiboot header is past 8 KiB) 32-bit elf kernel from GRUB Legacy to GRUB2. Currently, the kernel and GRUB are placed on a USB which is used to boot a different computer via the BIOS, like a [...] read more
boot
usb
grub
1vote
0answers

Error 582 while trying to access Windows Features

Today went to turn on the Hyper-V feature in the "Turn Windows Features On and Off" settings, but the dialogue would always just load for like 20 seconds then crash my machine. I looked up alternative ways to view/access the Windows Features and found you could do it from DISM [...] read more
windows-10
dism
1vote
1answer

Windows 7 OK button on Copy To dialog doesn't copy profile

So I am attempting to copy a User Profile to the default profile. I am using WinSpy++ to enable the disabled "Copy To" button - this process works on a stock laptop I have here. However, this does not work in a customised image I have with a fair amount [...] read more
windows-7
windows-registry
user-profiles
event-log
windows-embedded-7
1vote
2answers

How to add routing for 2 VPN connections?

I am trying to setup second VPN connection over the first one, which is my only option at the moment. The first VPN connection works fine(utun1), providing me internet access and it looks like this: Internet: Destination Gateway Flags Refs Use Netif Expire 0/1 10.56.10.5 UGSc 0 0 utun1 default [...] read more
networking
macos
vpn
routing
1vote
2answers

Mount ancient PATA disk (from a 386) to restore files (ATA 1, or older)

I have a PATA disk from a 386 laptop (1995?) which I would like to get files off. It is a Seagate 9096A, and is working. Using the old laptop is not possible. I have tried a USB - 2.5" PATA adapter, but it failed to properly interface with the [...] read more
hard-drive
1vote
1answer

Semi-disconnected network drives Windows 10 after timeout

I'm using Windows 10 in our company for a couple of weeks. Using the GPO (I'm a domain admin myself) we added some network drives for all users of our domain. This works fine. But.... For some reason, after a while my network drives are semi-disconnected. I use the word [...] read more
windows-10
network-shares
connection
1vote
0answers

Web Services for authentication over SSL failed due to TLS 1.2 on Windows Server 2012 and IIS 8

There are a SSL vulnerability called POODLE discovered by Google team in SSLv3 protocol. So uses of SSLv3 is not secure to use. Now its recommended to use TLS 1.2. We have IOS applications that are using web services over SSL for login to app. Apps started throwing error as [...] read more
login
ssl
windows-server-2012
https
web-services
1vote
1answer

linux drops packet when trying to route it - why?

I track packets using LOG targets for all chains of all tables and the last chain I see my packet in is the POSTROUTING chain of the mangle table: mangle_PREROUTING: IN=eth0 OUT= MAC=00:16:3e:0f:01:00:00:16:3e:0f:02:00:08:00 SRC=10.2.1.2 DST=10.1.1.2 LEN=84 TOS=0x00 PREC=0x00 TTL=63 ID=60912 PROTO=ICMP TYPE=0 CODE=0 ID=41230 SEQ=1 As off http://inai.de/images/nf-packet-flow.png, I expected [...] read more
networking
routing
iptables
1vote
0answers

Higher resolution not available Ubuntu 14.04 on ESXi host

The maximum resolution available for my Ubuntu 14.04 vm is 1360x768. However, the max resolution for my Ubuntu 16.04 is 2560x1600. Both are running on the same ESXi host with the same video card settings. Both have the latest version of VMware tools installed. The physical monitor I am accessing [...] read more
ubuntu-14.04
esxi
1vote
1answer

How to set up dual quadro cards on RHEL 5.5?

I have a RHEL 5 workstation with 2 nvidia Quadro FX4500 cards, with one display attached to each card. After doing a clean install of RHEL 5.5, the second display doesnt work (it worked ok in RHEL 5.2). Neither separate X screens nor Xinerama are working. The kernel version is [...] read more
multiple-monitors
redhat-enterprise-linux
nvidia-quadro
1vote
0answers

Is my NVIDIA GT 540M having a hardware failure?

I'm using a Sager NP5160 laptop, which has an NVIDIA GT 540M dGPU as well as integrated graphics. I'm dual-booting Windows 7 and Linux Mint. I've recently noticed issues with games not performing as well as they should when I switch to balanced mode (from UMA mode) in Windows 7. [...] read more
graphics-card
hardware-failure
nvidia-geforce
discrete-graphics
1vote
0answers

Mac not setting routes on openconnect with vpnc-client

I'm trying to connect to a VPN on my Mac, but for some reason routes aren't being set, even though they seem to be set by the vpnc-client script. root@machost:/Users/username# cat .openconnect authgroup=AUTHGROUPHERE user=USERHERE script=/usr/local/bin/vpnc-script no-cert-check #background #passwd-on-stdin root@machost:/Users/username# openconnect --config=.openconnect HOSTHERE POST https://HOSTHERE/ Attempting to connect to server 1.1.1.1:443 [...] read more
networking
mac
vpn
routing
cisco-vpn-client
1vote
1answer

What does netstat -r on OSX tell you about gateways?

I noticed the route table has a lot of entries I do not understand. The route tabel is: Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.0.254 UGSc 28 0 en1 10.8.0.1/32 10.8.0.5 UGSc 1 2 tun0 10.8.0.5 10.8.0.6 UH 2 3 tun0 127 localhost UCS 0 284 lo0 [...] read more
macos
networking
vpn
routing
netstat
1vote
1answer

Packets marked by iptables only sent to the correct routing table sometimes

I am trying to route packets generated by a specific user out over a VPN. I have this configuration: $ sudo iptables -S -t nat -P PREROUTING ACCEPT -P OUTPUT ACCEPT -P POSTROUTING ACCEPT -A POSTROUTING -o tun0 -j MASQUERADE $ sudo iptables -S -t mangle -P PREROUTING ACCEPT -P [...] read more
iptables
openvpn
iproute2
1vote
4answers

Mac OS X: finder window keeps opening by itself and stealing focus

I have a Macbook with Mac OS X 10.4.11 here, with an annoying problem. After starting the computer and logging in, the finder keeps stealing focus. You can go back to your working app, but a minute later, it steals focus again. Even as I'm typing this message, I had [...] read more
mac
finder
focus
1vote
0answers

Auto-mount all USB-devices at same USB socket to same mountpoint

* I have a small computer with 2 USB sockets : A and B. * I want any external USB disk, attached to socket A - to be mounted as " deviceA" * I want any external USB disk, attached to socket B - to be mounted as " deviceB" [...] read more
linux
ubuntu
usb
debian
automount
1vote
0answers

Using TC from iproute, unable to match canid

I'm trying to use tc from iproute2 to prioritize packets sent to a canbus. Before doing so I read this guide about the issue: http://rtime.felk.cvut.cz/can/socketcan-qdisc-final.pdf Even using the exact examples from that pdf, I'm not able get any of the filters to get a match. My current version of kernel [...] read more
linux
networking
iproute2
1vote
0answers

Why did my ubuntu machine leave suspend?

Sometimes I come upstairs and my computer has left suspend and is booted or booting or whatever. Is there a log somewhere that will show what caused it to leave suspend? (ie mouse, keyboard, magic packet, power button?) This is what I see in dmesg: [191069.614821] init: anacron main process [...] read more
linux
ubuntu
hibernate
1vote
1answer

MFT / NTLDR / NTFS (external drive) damaged after ntfsresize (Linux)

I have had an external USB drive attached to a RaspberryPi (headless), 1.5 TB Volume, 100% partition NTFS. During this question Creating ext4 partition from console, my goal was to change the overall fs to ext4 by shrinking the ntfs partition to 50%, copy all files to the new partition [...] read more
linux
ntfs
mft
ntldr
ntfsresize
1vote
1answer

How do I stop Spotify from crashing?

I am using Spotify on wine on Linux (Ubuntu). It worked fine before, but after I uninstalled and re-installed it, for some reason every time I run it, it doesn't work. It crashes after I log in. When it crashes I can see the Spotify window. When it crashes, Spotify [...] read more
linux
ubuntu
wine
spotify
1vote
0answers

Mac crash report info - what can I learn from it?

My Mac (MacBook Pro, 10.7.3 OS) is crashing a couple of times a day. I started this behaviour just recently, and for no apparent reason. I've done a disk check and it all seems fine. When it crashes, the screen goes black and I have to long-press the power button [...] read more
macos
mac
crash
1vote
0answers

Mac crashing with black screen on XCode install + random other times

I have a Macbook Pro bought over a year ago without extended warranty. Lately it has started crashing as follows - the screen goes black. The last note of the music (if playing, radio or iTunes) loops repeatedly. It will not go into in standby when screen is closed. Power [...] read more
mac
crash
xcode
1vote
4answers

Kernel Panic every time I open a print queue

Every time I open any printer queue I get a kernel panic and have to reboot. It's quite frustrating. I've tried removing/adding printers, clearing all caches with Onyx, repairing permissions, all manner of things to no avail. Any tips would be greatly appreciated! ==== CRASH REPORT ==== Interval Since Last [...] read more
macos
printing
osx-leopard
kernel-panic
1vote
1answer

Routing between OpenSWAN / IPSEC tunnels

I am trying to connect multiple Amazon VPCs (across regions) together using OpenSWAN and Amazon VGW's. The router instance can ping to hosts in both VPCs, and traffic is attempting to cross the router, but is getting dropped. EDIT: I see the counter XfrmInNoPols incrementing when the pings are not [...] read more
amazon-web-services
vpn
linux-networking
ipsec
openswan
1vote
1answer

IIS Site breaks after disabling SSLv3

I am trying to disable SSLv3 on a 2008 R2 web server that runs IIS 7.5 but as soon as I disable SSLv3 and reboot, the website is no longer reachable. I ran a packet capture with SSLv3 still enabled and my client is establishing a TLS 1.2 connection so [...] read more
windows-server-2008-r2
ssl
iis-7.5
tls
poodle
1vote
0answers

Enabling TLS 1.1/1.2 on Windows Server 2008 SP2 still not possible

first for those of you, who might think, this question has been asked so many time before so it is a useless duplicate... 1. I cannot (yet) comment on other questions, so my only option on this is to ask new question. 2. I've searched and read the following articles [...] read more
windows-server-2008
ssl
1vote
3answers

2018-08 Cumulative Update for Windows Server 2016 (KB4343887) Failing

I've been trying to update the Patches which is failing continuously enter image description here [https://i.stack.imgur.com/PDkYQ.png] When I click the Failed to Install, I popped with the below description > 2018-08 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4343887) A security issue has been identified in a Microsoft [...] read more
windows-server-2016
windows-update
credssp
1vote
2answers

How to limit speed for every device per MAC address in the gateway via Linux command "tc"?

I have a gateway whose OS is Linux.Assume my downlink bandwidth is 100 Mbps. I want to limit the max download speed to 1Mbps for every device which uses this gateway.In other words, if there are 100 devices, every device can get 1 Mbps bandwidth in theory.I tried doing traffic [...] read more
tc
1vote
1answer

Amazon RDS SQL Server Express 2012 - Fail to log-in

I recently created a new RDS of SQL Server Express 2012. I have set the security to be publicly available and to accept all ports and incoming connections. From some reason, I fail to connect it using my three clients: - HeidiSQL - SQL Server Management Studio - java client [...] read more
amazon-vpc
amazon-rds
1vote
1answer

shape dropbox on linux router with tc and iptables

Another machine on my LAN is uploading to Dropbox and saturating my internet connection's upload bandwidth. When that happens my pings to 8.8.8.8 take 3000-6000ms. When dropbox is not uploading my pings to 8.8.8.8 are 45ms. I'm trying to simply slow down and de-prioritize forwarded traffic to/from Dropbox on my [...] read more
traffic-shaping
qos
tc
htb
1vote
2answers

Ubuntu: updated mainline kernel, now drops to initramfs

I attempted to upgrade our system's mainline kernel and am now dropping into initramfs. < update>: The commands I used were: apt-get update apt-get upgrade apt-cache search linux-image //grabbed last entry apt-get install linux-image-4.4.0-67-generic < /update> I have researched the topic and found that I should be able to access [...] read more
ubuntu
boot
kernel
grub
initramfs
1vote
2answers

Kerberos Failure Audit Event Id 4769 on Domain Controller

I have an average of 17-18 failure audit events per hour recorded in the Security event log of a Windows 2012R2 domain controller, related to attempts of a Windows 2008R2 member server to obtain a Kerberos service ticket A Kerberos service ticket was requested. Account Information: Account Name: TORPDC01$@ACME.COM Account [...] read more
windows-server-2008-r2
windows-server-2012-r2
kerberos
1vote
0answers

iptables SNAT not honoring original port intermittently

I have a mark/mangle/SNAT setup that has been working great for years. However, when trying to use this same setup for DHCP requests, it intermittently fails: *mangle -A OUTPUT -p udp -m udp --dport 67 -j MARK --set-xmark 0x7/0xffffffff #... *nat -A POSTROUTING -m mark --mark 0x7 -j SNAT --to-source [...] read more
iptables
routing
1vote
2answers

"Service Unavailable" on fresh installation of OS and IIS 6 no matter what I try

I recently installed Windows Server 2003 on a virtual machine and then added the IIS role. (The reason for using an old OS is to make some old software work - Crystal Reports web server component) I have not yet added any pages/apps to the website (except one very simple [...] read more
windows-server-2003
iis-6
1vote
1answer

Can't connect to AWS instance after import with stock Centos7

I am trying to import a Centos7 based VM into Amazon AWS. The VM was created with the Centos7 minimal ISO installed into VirtualBox. Networking in the VM works fine locally before trying to do the import. I am using the EC2 command line tools to do the import: ec2-import-instance [...] read more
amazon-ec2
amazon-web-services
centos7
import
1vote
1answer

Out of 2 VMs and their 1 host, only 2 at a time are reachable from the LAN

I have a VMware vSphere hypervisor set up with two VMs. I need to be able to reach the host (for configuration, etc.) as well as both VM's from my client (which is also in the same subnet). I want to set up a PoC Hadoop cluster, and the client [...] read more
networking
vmware-esxi
1vote
3answers

Windows Server 2003: Backup Failed

I am having trouble backing up my server. I back up to an external hard drive, and up until now, I haven't had any problems with it. But today my backup failed. Here is the report from the backup log: Backup Status Operation: Backup Active backup destination: File Media name: [...] read more
windows-server-2003
backup
vss
1vote
0answers

Policy routing local user's traffic down a tunnel

I've got a Linux based Firewall/Router running iptables and SNAT for traffic passing through it to the Internet via a single uplink - This is working fine. There is also a small number of applications running on this server which also work fine. I've also got an OpenVPN client running [...] read more
iptables
routing
openvpn
linux-networking
1vote
1answer

How to debug intermitent network outage on Citrix XenServer

I have two Citrix XenServers in a pool. Both have a NIC for Management, a NIC for the SAN and a NIC for the VMs to connect to the network. The NIC for the VMs (eth3) has multiple networks configured for the VMs with different VLAN IDs. This has been [...] read more
xenserver
1vote
0answers

Freebsd, ipfw sched - config type = QFQ get frozen

I have some freebsd soft-router $uname -r 8.2-STABLE code for ipfw: pipe 50 config bw 70Mbit/s sched 50 config type QFQ queue 502 config sched 50 weight 1 mask dst-ip 0xffffffff queue 501 config sched 50 weight 9 mask dst-ip 0xffffffff add 01501 queue 502 ip from 10.32.0.0/14 to 10.32.0.0/14 [...] read more
freebsd
traffic-shaping
ipfw
1vote
2answers

OpenVPN Network Unreachable

I'm working to set-up a VPN access to a group of virtual machines at Linode., the topology looks something like this: db.example.com LAN: (eth0:0) 192.168.154.127/255.255.128.0 utility.example.com LAN: (eth0:0) 192.168.164.229/255.255.128.0 And, more servers on the LAN with addresses in the same range. The utility server is hosting the OpenVPN Here's my [...] read more
ubuntu
mac-osx
routing
openvpn
1vote
1answer

Apache22 on FreeBSD - Starts, does not respond to requests

I'm running Apache 2.2.17 with the peruser MPM on FreeBSD 8.2-RC1 on Amazon's EC2 (so it's XEN). It was installed from ports. My problem is that, although Apache is running, listening for, and accepting connections, it doesn't actually respond to any or show them in the log at all. If [...] read more
apache-2.2
freebsd
1vote
1answer

MDADM Array Being Limited to 2.0TB

I have an MDADM array with four 1TB disks in a RAID5 configuration. Here's the relevant part of mdadm --detail /dev/md1: Version : 00.90 Raid Level : raid5 Array Size : 2929537920 (2793.83 GiB 2999.85 GB) Used Dev Size : 976512640 (931.28 GiB 999.95 GB) Raid Devices : 4 Total [...] read more
ubuntu
software-raid
mdadm
filesystems
1vote
3answers

Why is it necessary to set a netmask of 255.255.255.255 for “alias” addresses in FreeBSD?

From FreeBSD handbook on the topic of virtual hosts: > For a given interface, there must be one address which correctly represents the network's netmask. Any other addresses which fall within this network must have a netmask of all 1s (expressed as either 255.255.255.255 or 0xffffffff). Can anybody explain why [...] read more
networking
freebsd
alias
interface
1vote
1answer

NetLogon and RPC Errors

Situation: Co-located DCs connected by T1 to client working location. The T1 is averaging at about 2/3 usage. All 1 Active Directory. I am trying to deploy a start-up script to clients at the working location though GPO. It seems to work on some computers and not on others, but [...] read more
domain-name-system
active-directory
group-policy
netlogon
1vote
1answer

LVS Cluster Help

I'm trying to set up an LVS Cluster for a project and I don't have a lot of knowledge in these layers of networking. I've run into an issue where the real server rejects any packets from the director, but will allow packets to the same port from my client. [...] read more
linux
cluster
high-availability
1vote
1answer

Logging into local SQL Server instance with windows auth

I have a nodejs and express based project. I currently use sequelize to connect to a SQL Server instance. This works fine for external SQL Servers using SQL Server authentication. However, I am now trying to connect to a local SQL Server instance using Windows auth. This is what my [...] read more
sql-server
node.js
windows-10
sequelize.js
sql-server-2016
1vote
1answer

recvfrom(2) receives UDP broadcast twice, but tcpdump(8) receives it only once

Summary: I want to receive packets from a single interface, but setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, iface, 1 + strlen(iface)) doesn't play well with recvfrom and shows all packets on all interfaces. tcpdump works well, however. I have a strong feeling that there's something wrong with the receiver program, but I haven't [...] read more
linux
sockets
interface
udp
broadcast
1vote
0answers

Generalize code to capture and crop a photo

This questions refers to Codename One only. Thanks to the commit 98dcbaa and re-working the test case ImageViewerSample2778, I created a full working example to capture a photo and to crop it. My initial result is satisfying, at least in the Simulator: enter image description here [https://i.stack.imgur.com/ISbvf.png] It seems ok, [...] read more
codenameone
1vote
2answers

HardFault exception (configurable-priority exception to HardFault)

stack contents I have written a simple IO interrupt routine to test IO pin in ARM cortex m4 (cm408F). Code is below and very simple and populates vector table (also includes pragma weak and other stuff). I force the interrupt by setting the corresponding bits in NVIC_ISER0 and NVIC_ISPR0. The [...] read more
arm
cortex-m
1vote
0answers

Connection between C++ Socket and Java Client

I'm creating a server app in C++ and client app in Java. I want to exchange 32 bit integer between them. And I've got a trouble, because when I'm trying send something from Java's client, I get a random answer in C++ server (e.g. I've send '0' and one time [...] read more
java
c++
sockets
1vote
0answers

vmlaunch simple crash ubuntu 16.04

I am porting VMLaunch simple to ubuntu 16.04, the code is at https://github.com/vishmohan/vmlaunch. And modified the vmlaunch_simple.c to make it almost work in ubuntu 16.04. When I load the module (KVM and KVM_intel have been unloaded), the 'insmod vmlaunch_simple.ko' hang, where kexec/kdump chimed in and the host is rebooted. After [...] read more
linux
x86-64
virtualization
1vote
0answers

Cannot set two textures to shader in dx11

I want to set two textures to shader, but when i sample second i get color of first one. Textures haves various size, so i cannot use array. What may be wrong? //-- fill and set interface dynamic texture D3D11_MAPPED_SUBRESOURCE msr; devcon->Map(Interface_DynamicTexture, 0, D3D11_MAP_WRITE_DISCARD, 0, &msr); memcpy(msr.pData, ibb, ibw*ibh*4); devcon->Unmap(Interface_DynamicTexture, [...] read more
c++
hlsl
1vote
2answers

Any way to stop duplication of code in this assembly code

I have only just started to learn the assembly language for the x86 architecture. I am doing some exercises based on conditional branching. At this point in time, I have been introduced to the JMP, JZ and JNZ instructions as far as branching of code is concerned. This is the [...] read more
assembly
x86
1vote
1answer

Qt Creator fails to open a CMake project due to a wrong link.exe path

I upgraded Visual Studio 2017 recently and now cannot open a CMake project in Qt Creator 4.8.2. CMake succeeds to test the compiler when running from cmd.exe but fails in Qt Creator: Running "C:\Program Files\CMake\bin\cmake.exe -E server "--pipe=\\.\pipe\{b2399ce2-b8c1-4992-94b7-57b65efed70f}" --experimental" in D:\checkout\mateju\integrace\util\itex\build_Qt5-Release. Starting to parse CMake project. The C compiler identification [...] read more
windows
visual-studio
cmake
visual-studio-2017
qt-creator
1vote
0answers

White pixeldata is read after the canvas is cleared

I want to read out a Canvas's pixel data (using OpenJFX 12), and do some checks on it. int x = ...; int y = ...; Canvas canvas = ...; WritableImage snapshot = canvas.snapshot(null, null); PixelReader pixelReader = snapshot.getPixelReader(); Color color = pixelReader.getColor(x, y); This works except that if the [...] read more
canvas
javafx
1vote
1answer

Cant make value propagate through carry

Making a little C++ large precision class, and everything seems to work decent, but the add, if I add 0xffffffff and 0x04 together I get 0xffff0003 when I should get 0x0100000003. Here is the function with the issue: mpfl operator+(const mpfl &lhs, const mpfl &rhs) { unsigned long i; mpfl [...] read more
c++
math
1vote
4answers

How to write rotate code in C to compile into the `ror` x86 instruction?

I have some code that rotates my data. I know GAS syntax has a single assembly instruction that can rotate an entire byte. However, when I try to follow any of the advice on Best practices for circular shift (rotate) operations in C++, my C code compiles into at least [...] read more
c
assembly
x86
gas
0votes
1answer

php and zendguard with asterisk / freepbx

Im running freepbx version 13 and started to upgrade to version 14. System is on a CentOS 6 system. The system required certain upgrades first including php which I've upgraded to 5.6.40 and installed zenguardloader 2.6.0 I'm assuming there is some sort of incompatibility between php and zenguardloader as I [...] read more
php5
freepbx
0votes
0answers

Traffic going to both eth0 and tun1

I'm working on Transmission over OpenVPN with split tunneling but I'm facing an issue with the firewall rules. So I decided to disable the firewall and check if it's working. It is but in a strange way. IPTables is set up to allow Transmission over tun1 only. The whole rules [...] read more
linux
networking
vpn
iptables
transmission
0votes
0answers

Kernel migration from 3.10 to 4.19 causes JFFS2/MTD/CFI mounting issues

I am trying to upgrade the kernel from 3.10 to 4.19 on an Atmel at91sam9260 system, everything otherwise unchanged. The system has 8 partitions on a NOR flash that work fine on 3.10. Booting into an initramfs on 4.19 followed by mounting the unchanged JFFS2 partitions reveals a lot of [...] read more
linux
boot
filesystems
embedded-linux
0votes
0answers

PCI Read Error on QNX for PowerPC

My team is developping on an MPC8313 PowerPC Dev Board and we're trying to write a network driver. The network card is a PCIe card connected to a PCIe-to-PCI bridge (PI7C9X111SL). The pci utility detects the card and can read and write the PCI config space. The problem is when [...] read more
drivers
pci-express
pci
powerpc
ppc
0votes
0answers

Replacing an ssd on notebook (asus N501VW)

I'm finally running out of space on a 128GB ssd on a notebook (N501VW) and am thinking of replacing it with a larger, 500GB, drive. The setup: * 1 notebook (N501VW) running Win 10 (x64) * 3 drives (128GB ssd (M2) (C:), 1TB hdd (D:), 500GB ssd (M2)) 128GB: C:\WINDOWS\system32>fsutil [...] read more
partitioning
ssd
backup
filesystems
file-management
0votes
0answers

UBI layout volume not found

I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the whole system on the NAND flash. They ask me to put the DTB, the kernel, the root [...] read more
linux
embedded-linux
0votes
0answers

Virtual machine has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005)

I have installed VB on a new machine running Windows 10 Pro 1803 (build 17134.556) and running any machine instance always fails with this error: The virtual machine 'linux' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available in 'C:\Users\osama.shabrez\VirtualBox VMs\linux\Logs\VBoxHardening.log'. Result Code: E_FAIL [...] read more
virtualbox
0votes
1answer

External SSD Drive won't mount on OSX

A colleague at work has a Kingston 240GB SSD drive which has come out of a now dead computer. We want to be able to recover some data from it (no backups sadly) however the drive won't mount properly. I am using an Anker USB3 external HDD enclosure which I [...] read more
macos
hard-drive
ssd
external-hard-drive
data-recovery
0votes
0answers

Debugging MTP transmission/driver on windows

Basically I'm developing USB device, which will be using MTP for file transmission. It works fine with Konqueror, and Dolphin I can successfully copy files around, also mtp-getfile works (on Linux). On windows I can see my device and list files, but when I try to copy any of them, [...] read more
windows
usb
drivers
debug
mtp
0votes
0answers

Wine x64 w/ 32-bit prefix "page fault on read access to 0xffffffff in 16-bit code"

I'm trying to setup an old education program my wife wants to try with our kids. Unfortunately, it was built in the Windows 3.1 / Windows 95 era. I'm running Fedora 29 x86_64 with Wine 4.0-0.3.rc2. I've setup a 32-bit prefix per https://wiki.winehq.org/FAQ#How_do_I_create_a_32_bit_wineprefix_on_a_64_bit_system.3F . When I run the setup.exe on [...] read more
linux
wine
16-bit
windows-95
windows-3.1
0votes
1answer

Why isn't my forced MAC address change working (Raspberry Pi)?

I'm working with Raspberry Pi Zeros on a subnet. I bought external Ethernet adapters for each one to connect them to one another. Unfortunately, these ethernet adapters all came with the exact same MAC addresses, making communication between the Pis near impossible. Because of that I've tried forcing a change [...] read more
linux
networking
raspberry-pi
subnet
0votes
0answers

System hang and black screen BugCheckCode 278 and BugCheckCode 0

For past two days the system would hang up or enter black screen and won't restart right away (after pressing restart button) but at one instant it generated Blue Screen (BugCheck Code 278). This issue has been occurring only during gaming(for one game during loading screen for other mid game [...] read more
windows-7
freeze
bsod
crash
0votes
1answer

Dell desktop falls asleep in a couple minutes, ignores power/screen saver settings

My parents' Dell Inspiron tower goes to sleep within ~3 minutes of inactivity, despite every power setting in Windows (screen saver, turn off screen, go to sleep, turn off hard-disk, etc.) either turned off or set to 60 minutes. This answer claims that Dell has been known to bundle their [...] read more
windows-10
sleep
power-management
dell-inspiron
0votes
0answers

Windows 10 Explorer crashes when opening "new" context menu, need help deciphering dump file

As the title says, whenever I attempt to open the "new" sub-menu of the right click context menu in Windows 10 explorer locks up and then crashes a few moments later. This issue only appeared in the last couple days and I suspect it is a result of the Creator's [...] read more
windows
windows-explorer
windows-update
context-menu
0votes
1answer

Two openvpn connections: one with redirect-gateway and a second one for private network

I have a personal VPN that I use as a default gateway for all Internet traffic when I'm on the road. This works great and I have no problem. I also have a work VPN, which I need to connect to reach machines on their private network. What I want [...] read more
networking
routing
openvpn
0votes
0answers

different speed ssd partitions

I have Samsung NVMe SSD 960EVO 250GB disk and it gives me some weird result when testing read speed using hdparm -tT. Speeds before trim /dev/nvme0n1: Timing cached reads: 24486 MB in 2.00 seconds = 12256.70 MB/sec Timing buffered disk reads: 5502 MB in 3.00 seconds = 1832.95 MB/sec jkalmar@supercomp:~> [...] read more
linux
ssd
performance
opensuse
0votes
0answers

Kworker thread has high CPU usage

I have a kworker thread with high cpu usage, which is causing my touchscreen to be very lag-y and unresponsive. Running a beaglebone with Debian. uname -r 4.1.15-ti-rt-r43 pid user pr ni virt res shr s %cpu %mem time+ command 90 root 20 0 0 0 0 R 34.7 0.0 [...] read more
linux
cpu
kernel
linux-kernel
threads
0votes
1answer

HP Proliant getting down with Critical error LED Blinking - what then?

After a few hours of correctling working, our proliant Server stop calculus with the System Healt LED 12 blinking, which according to the documentation ( http://h20628.www2.hp.com/km-ext/kmcsdirect/emr_na-c01706108-8.pdf ) is the sign of a "Critical system failure detected (processor, memory, regulator, thermal event, fan, NMI)" (page 96). SSH is then lost. We [...] read more
linux
ubuntu
memory
0votes
0answers

PPTP error 619 when accessed externally

I set up a PPTPD server on Arch Linux. If I connect to the VPN using the server's local IP (192.168.1.107), it works, but if I connect to the VPN using the external IP address, then the client results in error 619. Any help would be greatly appreciated! Output of [...] read more
linux
networking
vpn
arch-linux
pptp
0votes
2answers

Postfix SMTP SSL config: Can't send email but can receive it with SSL

I am trying to finish configuring my postfix/dovecot mail server that sits behind my home's router/firewall. I'm on Mint/Ubuntu 12.04. I'm close. I can connect/retrieve emails via SSL but can only send email from a client when not using SSL, just username/password. If I attempt an SSL connection with the [...] read more
email
ubuntu-12.04
ssl
postfix
dovecot
0votes
1answer

Recieved BSOD after restart

When i start my laptop i get this error "DPC_WATCHDOG_VIOLATION" i really donyt know what is the issue... can some one help.... -------------------------------------------------------------------------------- DUMP FILE Microsoft (R) Windows Debugger Version 6.3.9600.17336 AMD64 Copyright (c) Microsoft Corporation. All rights reserved. Loading Dump File [I:\121115-55411-01.dmp] Mini Kernel Dump File: Only registers and [...] read more
windows-8
bsod
0votes
2answers

Windows 8.1 dual-boot with openSUSE boot failure

I already have Windows 8.1 on my newly built PC and wanted to dual-boot with openSUSE. I wrote the install image to a USB, but the install kept hanging so I used network install (also written to a bootable USB). Before install I created a separate 100 GB partition on [...] read more
linux
boot
windows-8.1
partitioning
opensuse
0votes
0answers

Suspend does not work on Debian Jessie

Today I observed that suspend sometimes does not work properly in freshly installed Debian Jessie. After executing suspend (Alt + Shut Down button) the following message appears on black screen: Loading, please wait... The syslog is as follows. I kindly as for any suggestions. Jul 12 18:53:10 svarog kernel: [ [...] read more
linux
debian
suspend
0votes
0answers

pm-hibernate does not turn off system

I'm trying to make pm-hibernate to work on my Ubuntu 14.04 system. When I invoke sudo pm-hibernate display turns off and I can't do anything anymore but computer does not turn off. All I have found in logs is: Mar 17 21:40:25 dmitry-pc kernel: [ 0.000000] PM: Registered nosave memory: [...] read more
linux
ubuntu
hibernate
ubuntu-14.04
0votes
1answer

Mono is crashing on MAC OS X with Keepass 2.23

Mono is crashing on MAC OS X (10.8.4) with Keepass 2.23 while accessing password database. Using keepasshttp with firefox. Any workaround for this ? =========================================================== Process: mono-sgen [7586] Path: /usr/bin/mono Identifier: mono-sgen Version: ??? Code Type: X86 (Native) Parent Process: bash [7194] User ID: 501 Date/Time: 2013-08-15 13:34:28.515 +0530 OS [...] read more
macos
keepass
mono-framework
0votes
2answers

Why can't I connect to an AFP server over VPN on OS X 10.8

I have set up a VPN connection on my MacBook Pro OS X 10.8.5 laptop, to my office network so I can access my AFP file server from home. The VPN connection appears to be working correctly. The Status reads Connected and I am getting both a connect time and [...] read more
macos
networking
mac
vpn
afp
0votes
1answer

Bluetooth / Bluez: No reply to ping over bnepX interface

I have trialed to use Network, NAP profiles on Bluetooth. On Host, xUbuntu 13.04 I have followed as here. This Host or XUbuntu machine is behind proxy & runs on virtual machine. It is installed with Bluetooth version 4.101 On embedded board, ping 173.194.112.211 responds as below: PING 173.194.112.211 (173.194.112.211) [...] read more
linux
networking
wireless-networking
bluetooth
0votes
0answers

command to write to physicaldrive?

I have a bat file that we use to write meaningless data to a harddisk. But I dont know what exactly it means... Here is the command: dtlite2 of=\\.\physicaldrive1 bs=256k limit=200m passes=1000 disable=cache pat_part1=0xffffffff pat_part2=0xffffffff pat_part3=0x0 pat_part4=0x0 dlimit=2048 platform is windows. This is run from a bat file. read more
windows
hard-drive
writing
0votes
1answer

Video from vhs via USB capture device on Linux

I want to transfer video from a VHS tape to my computer with Arch Linux, using a USB capture device that comes with Roxio Easy VHS to DVD, which I recently bought. I tried to plug in the device, and it was properly recognized. From /var/log/messages.log, em28xx #0: Identified as [...] read more
linux
video
video-capture
0votes
1answer

Laptop computer grahpic opens and loads slowly

So i have this laptop whenever i open a folder, close a folder, or do anything graphical it runs slowly. and when i say slow i mean you can actually SEE in slowmo the animation running. Say for instance you want to open a folder. you can see the full [...] read more
windows-7
graphics-card
graphics
0votes
2answers

Wine crashes when trying to run portable version of Firefox

I think there is something wrong with my Wine setup, but I don't know how to fix it or even what it is. Others have gotten this program to work without problems in Wine. This is the console output that I get from Wine before it crashes. > fixme:system:SetProcessDPIAware stub! [...] read more
linux
ubuntu
firefox
ubuntu-10.04
wine
0votes
1answer

OSX Panic about once a week

I am running OSX 10.6.6 and I this is the second kernel panic in 2 weeks. Here is the log that gets sent to Apple. Help! Model Name: MacBook Pro Model Identifier: MacBookPro6,2 Processor Name: Intel Core i7 Processor Speed: 2.66 GHz Number Of Processors: 1 Total Number Of Cores: [...] read more
macos
kernel-panic
0votes
1answer

xorg.conf: Why does this have no effect?

Here is my xorg.conf file. The problem is that my resolution setting 1600x900 is getting ignored. The resolution keeps popping to 1280x1024 Edit The resolution comes up as 640x480 after unplugging the physical monitor. When my file gets ignored, the system seems to read my monitor to find it's capabilities [...] read more
resolution
xorg.conf
solaris-10
0votes
0answers

Calling Google Translator Service using C3 .net

I am using the below code for calling Google translator but getting an error. using System; using System.Net; using System.Security.Authentication; namespace ConsoleApp3 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); string input="Hello"; string languagePair="En/Fr"; string url = String.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text={0}&langpair={1}", input, languagePair); WebClient webClient = new WebClient(); webClient.Encoding = [...] read more
asp.net
0votes
2answers

Can't connect to a postgres server

I have a strange situation, I have created a second postgres server that will eventually become a slave to my current master, anyway for testing purposes I have currently installed postgres, and testing connections from other hosts. In my postgresql.conf I have a nice an easy:listen_addresses = '*'# what IP [...] read more
postgresql
freebsd
0votes
1answer

IPVS traffic doesn't seem to go through netfilter on the director node

I have the following setup on a director node running keepalived: * native IP 10.65.5.72 * VIP 10.65.5.230 * keepalived DR mode enabled for port 80 and 443 I was debugging a problem where I couldn't access the IPVS service from the director node itself, and during that process noticed [...] read more
iptables
ipvs
0votes
1answer

ipnat.conf - map and rdr won't work!

I can't put my mind around it, before reboot I was able to ssh in from outside to my jail and right now I can't! I even rebuild the whole system and even that didn't help:( anyone have any ideas? su-3.2# cat /etc/ipnat.rules map fxp0 lama -> 0/32 rdr fxp0 [...] read more
freebsd
nat
0votes
2answers

RDP in 2008 R2 domain no longer working - possible Kerberos issue

Everything was working fine and no changes were made. For no apparent reason, we can no longer RDP to any domain computers except for the domain controllers themselves. This includes Windows 7 clients and non-controller 2008 R2 servers. After entering the password, we immediately get the following error message: "The [...] read more
windows-server-2008
remote-desktop
rdp
kerberos
0votes
0answers

Jboss EAP5 fails to start on Linux

I am trying to start JBoss EAP5 server on Linux CentOs machine. However, the process gets killed abruptly and I get nothing in the boot.logs. Please find the logs below: Server Library URL: file:/usr/share/jboss-5.1.0.GA/server/default/lib/ Server Log Dir: /usr/share/jboss-5.1.0.GA/server/default/log Server Native Dir: /usr/share/jboss-5.1.0.GA/server/default/tmp/native Server Temp Dir: /usr/share/jboss-5.1.0.GA/server/default/tmp Server Temp Deploy Dir: [...] read more
linux
jboss
0votes
0answers

Why can't I ping 127.0.0.1 from some network interfaces?

I'm on OS Sierra. This is (part of) what I get on ifconfig ... en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 98:01:a7:b4:91:63 inet6 fe80::4e:52ae:9fa8:2e6c%en0 prefixlen 64 secured scopeid 0x5 inet 192.168.1.33 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active ... utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1400 inet 10.161.136.55 --> 10.161.136.55 netmask 0xffffffff [...] read more
networking
netstat
ifconfig
0votes
1answer

RabbitMQ SSL connection works from an Ubuntu14.04 machine but not from a CentOS 6 machine

I have setup a rabbitmq ssl connection on my remote server as per the docs here: https://www.rabbitmq.com/ssl.html I am using java rabbitmqclient to connect to the remote server and sending a hello message to a queue on rabbitmq-server, the connection works fine from my local ubuntu 14.04 machine but does [...] read more
centos
ssl
java
openssl
rabbitmq
0votes
2answers

Run OpenVPN server on alias IP

I want to configure OpenVPN server that works on alias IP. I changed the client config to have alias IP as remote and added "local 188.xx.xx.55" in OpenVPN config which is our alias IP. Also set "netd_interface=188.xx.xx.55" which is again alias ip. When the VPN connects and I check my [...] read more
openvpn
ip-aliasing
0votes
1answer

"ip rule to" works but "ip rule fwmark" fails - why?

I have a CentOS 6 (kernel 2.6.32) router with working OpenVPN client on it, and I want to redirect some traffic via VPN server. Client (192.168.60.159) sends request to router (192.168.60.6:1443), and router redirects it via VPN connection (10.200.0.54) to server (185.61.149.21:443). I've created a specific routing table tunde and [...] read more
iptables
iproute2
0votes
1answer

RDS 2012 R2 some users are not able to logon after changed date and time on Connection Brokers

Due to a malconfigured NTP server of ntp.org, the date and time on all our servers and client was set to the date of tomorrow (1/1/2017 instead of 31/12/2016). We've manually changed the date back to the date of today on our Primary Domain Controller (PDC) and executed w32mt /resync [...] read more
windows-server-2012-r2
remote-desktop-services
0votes
1answer

How do I load balance outgoing connections with iptables and iproute2?

I have a server behind two public facing gateways INTERNET | | GW1 GW2 | | SERVER GW1's IP is 192.168.w.x, MAC aa:bb:cc:dd:ee:ff GW2's IP is 192.168.y.z, MAC ff:ee:dd:cc:bb:aa # note: w != y and I'm trying to load balance outgoing connections from the server. I've built upon pepoluan's solution [...] read more
iptables
load-balancing
iproute2
0votes
1answer

Two Azure VM clones have different processor

I have two Ubuntu 16.04 Azure VMs created from the same image, in the same region (WestEurope), configured to be the same size (Standard A1, 1 vcpus, 1.75 GB memory) and created at the same time (days of difference). Inspecting the CPU info they are completly different, one being a [...] read more
azure
0votes
1answer

Opcache not working properly

I got problem with Opcache. It's not working as I wish/desire.. This is my opcache configuration cat /etc/php/7.1/apache2/php.ini | grep opcache [opcache] opcache.enable = 1 opcache.enable_cli = 1 opcache.memory_consumption = 256 opcache.interned_strings_buffer = 16 opcache.max_accelerated_files = 8882 ;opcache.max_wasted_percentage=5 ;opcache.use_cwd=1 opcache.validate_timestamps = 0 opcache.revalidate_freq = 0 ;opcache.revalidate_path=0 ;opcache.save_comments=1 opcache.fast_shutdown = 1 [...] read more
apache-2.4
php7
opcache
0votes
1answer

Route ftp packets to one network interface, the rest to the other

I have an ubuntu 14.04 server with two NICs, each one connected to seldom routers, each with separated internet access. We want to redirect ftp ports traffic through the second interface, em1, and all the rest through the default interface p4p1. I have both interfaces up. I've followed the instructions [...] read more
iptables
routing
linux-networking
0votes
1answer

Windows Server 2012 R2 - Help finding failed logon attempts source

I'm seeking help for this issue that I'm having in our AD domain controller where a lot of security events are being logged due to failed logon attempts by a (former) domain user that has been disabled and subsequently deleted. I'm trying to pin-point the origin of these attempts but [...] read more
active-directory
windows-server-2012-r2
domain-controller
windows-authentication
eventviewer
0votes
2answers

Inconsistencies with Linux tc filter u32 matching on packet data payload - can someone explain?

I would just like some heads up on this as I really don't understand -why- this is the case. Further down is the TCPDUMP output (tcpdump -s0 -XXnni eth0 tcp port 80) of the 'HTTP' response a webserver gives when a normal GET request is made to it. What I [...] read more
linux
networking
filter
pcap
tc
0votes
0answers

Ubuntu Server 16.04 64bit had only 8Gb of RAM when 16GB are installed

I have one DIMM installed on a Lenovo x3550 M5 server. The OS is Ubuntu 16.04.2 64 bit uname -ra Linux hostname 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux free -hm gives: total used free shared buff/cache available Mem: 7.2G 238M 6.5G 20M 474M [...] read more
ubuntu
memory
0votes
1answer

Kerberos authentication ticket - Event ID 4768 - Audit failure

I am using kerberos to authenticate a user and its failing. Audit failure details in event viewer are following A Kerberos authentication ticket (TGT) was requested. Account Information: Account Name: HTTP Supplied Realm Name: TEST.COM User ID: NULL SID Service Information: Service Name: krbtgt/TEST.COM Service ID: NULL SID Network Information: [...] read more
windows-server-2008
active-directory
kerberos
0votes
2answers

4 TB external disk on Centos 5

I have an old server running CentOS 5(Kernel 2.6.18-92.el5). It is running a legacy application so I can't retire it yet. I had connected a 2 TB USB disk to it to take backups and the disk is almost full right now. I bought a new 4 TB disk but [...] read more
partition
centos5
fdisk
parted
0votes
1answer

OpenVPN block SMTP Access Server completely

I've tried almost all iptables rules to block smtp on openvpn server but still clients clients can access remote smtp servers on port 25. I'm using openvpn access server. It's creating two interfaces as0t0 and as0t1. All users assigned ips from 172.16.0.0/12. Please help me what rules can be written [...] read more
iptables
smtp
openvpn
0votes
1answer

Network configuration fault

I'm moving my router from Rpi with Rasbian to another pc device with ubuntu server 14. I have: - local network 10.0.0.0/16, with my router gateway 10.0.0.1 - lte usb device 192.168.8.1 in network 192.168.8.0/24 - lte usb device 192.168.10.1 in network 192.168.10.0/24 I have moved all network settings with [...] read more
linux
ubuntu
iptables
routing
0votes
1answer

Captive portal with iptables and local dns server

I'm trying to redirect all the browser's requests from my wifi interface wlan1 to a captive portal. I have a node web server running on my target on 10.4.30.34:4040. It has to redirect the browser directly to the web server, on the good port, like I entered "10.4.30.34:4040" in the [...] read more
iptables
dnsmasq
captive-portal
0votes
1answer

CentOS Development Server Crashing Frequently

I am running a development server on a fairly old version of CentOS 5. This server has been live almost constantly for the past five years ago, so has been pretty stable. A while ago, it crashed during normal operation. I restarted it and it crashed again after a few [...] read more
centos
centos5
server-crashes
0votes
1answer

HAProxy 1.5.4 Performance Tuning

I currently have HAProxy 1.5.4 setup using keepalived for HA on centos 7 using IPtables to create a transparent load balancer to load balance a number of cisco WSA proxy servers for internet filtering on an infrastructure of around 15,000 users running on vmware and cisco UCS with one GB [...] read more
haproxy
0votes
1answer

unable to find driver - lamp debian

This is my php sample script: <?php try{ $db=new PDO('mysql:dbname=_mydb;host=localhost', 'root', 'xxxxxx'); }catch(PDOException $e) { echo "Error: ".$e->getMessage(); } ?> And I have returned: could not find driver Also: user@nbook:~$ php -i|grep PDO PDO PDO support => enabled PDO drivers => mysql PDO Driver for MySQL => enabled This is [...] read more
mysql
php
pdo
0votes
1answer

"No inittab file found" after reset

An old dedicated server (Debian with Raid1) wasn't responding today and now can't boot after manual reset. Last message is > No inittab file found. I still have access to filesystem via rescue system. Ran fsck and checked raid (both arrays are clean). Booting 'Debian GNU/Linux, kernel 2.6.26-2-amd64 Default' root [...] read more
debian
raid
boot
inittab
0votes
1answer

PBR with iptables

I know question was answered multiple times, but this situation a bit different. So here is what I have: * All users must user default gateway on eth0, except one * That one must only use gateway on eth1 and must not under any circumstances use eth0 Separately this things [...] read more
debian
iptables
routing
policy-routing
0votes
1answer

LAMP server kerberos config to authenticate against a read only Windows KDC in a dmz

Background: We have a number of AD networks (domains) that are connected through VPNs and have established AD trust relationships. We have an externally hosted web server and have configured seamless authentication for any user within the trusted network. This works but the presence of the VPN to an external [...] read more
apache-2.2
active-directory
kerberos
dmz
domain
0votes
1answer

iptables rules for lvs using piranha gui

I am trying to bulid an lvs system, where 202.141.81.239 is the virtual IP and 202.141.81.241 and 202.141.81.242 are the lvs routers.Ths system is working fine in our intranet but is not through internet. The following is my iptables configuration # Generated by iptables-save v1.4.7 on Tue Mar 25 12:30:26 [...] read more
redhat
lvs
piranha
0votes
0answers

iptables 1.4.12 invert and --u32

This line in a script: iptables -A jk2_ddos -m u32 ! --u32 "0x1c=0xffffffff" -j ACCEPT will result in this error: iptables v1.4.12: u32: option "--u32" cannot be inverted. This seems not to work in iptables 1.4.12. In older versions it worked. I need something that does the same. The problem [...] read more
linux
iptables
0votes
1answer

debugging smtp | ubuntu 12.04, postfix, dovecot

I cannot sucessfully connect to my smtp server from my mail client. I am getting the following errors in my /var/log/mail.log file Dec 21 15:08:04 pareto postfix/smtpd[11101]: SSL_accept:SSLv3 flush data Dec 21 15:08:04 pareto postfix/smtpd[11101]: read from B96D2180 [B96C1EB3] (5 bytes => -1 (0xFFFFFFFF)) Dec 21 15:08:04 pareto postfix/smtpd[11101]: read [...] read more
email
postfix
smtp
vps
dovecot
0votes
1answer

traffic shaping, prioritizing packets without using a bitrate ceil/max

I've written a script that shapes traffic into 3 pipes. The first pipe needs to be high priority and always be send first. This works perfectly now on 1 condition. I enter a correct ceil/max bitrate. This script is written to work an a device that will work with lots [...] read more
linux
networking
traffic-shaping
0votes
1answer

BAT file will not run from Task Scheduler but will from Command Line

I'm trying to run a BAT script from Task Scheduler in Windows 2008 R2 and it runs for 3 seconds and then stops. It says it successfully completes but I know it doesn't. I can run this script from the command line directly, and it runs just fine. The bat [...] read more
windows-server-2008-r2
task-scheduler
0votes
2answers

Add route on OpenBSD for DSL modem on external network

I'd like to be able to access my DSL modem, which is acting as a bridge, from within my local network. I've got a setup like this: {Local network 192.168.1/24} | rl0:192.168.1.250 [OpenBSD Router] rl1:up tun0:pppoe | [Bridge DSL modem IP:192.168.1.254] | {Internet} I'd like to access the Bridge. To [...] read more
networking
router
routing
openbsd
0votes
2answers

CScript Application Error - The instruction at <> referenced memory at 0xffffffff

We have a an error message that is occurring occassionally in our system. The images is available here The instruction at "0x7c82f583" referenced memory at "0xffffffff". The memory could not be read. Click on OK to terminate the program. Any idea what is causing it and how to fix this. [...] read more
memory
0votes
0answers

how to draw object inside image's pixels

i have image and i want to draw movable rectangle inside image's pixels pixels [][] represent array two dimension( pixels of image) and i want to draw movable object that be within pixels [][] pixels [][] should contain movable rectangles how to do that please help me?enter image description here [...] read more
java
graphics
0votes
3answers

Converting a set of classes to class templates and avoiding constructor ambiguity

I will try to make this question as short as I can but there is a good amount of code to show in order for one to understand what I'm trying to achieve and how to resolve my current issue. Here are my original class declarations with all of their [...] read more
c++
templates
constructor
c++17
disambiguation
0votes
1answer

How to add bottom some values in Listview.Builder?

I need to add General to last. How do I do it? I added a new column to the database. The column name is sortOrder, every other value SortOrder is null without General. SortOrder value is 1 in only General. My API json like this, > {"deF_CAT_ID": 140, "description": "General", [...] read more
dart
flutter
flutter-layout
0votes
1answer

Why are there multiple SKSpriteNode and SKAudioNode objects when I only created one of each?

I created an SKSpriteNode object, but multiple objects are created, appearing as strings of them. The sound coming from the SKAudioNode object is also duplicated many times to give a reverberating effect. Here is the code below. I noticed it doing this when I added the code to set the [...] read more
ios
swift
sprite-kit
skspritenode
skaudionode
0votes
0answers

TCP server exposure through VPN

I have an issue for exposing a TCP service through VPN. I am using OpenVPN through Tunnelblick application under MacOS. ifconfig give me following output for my VPN network interface : $ifconfig tun0 tun0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet A.B.C.D --> A.B.C.D+1 netmask 0xffffffff open (pid 46308) If I run any [...] read more
python
macos
flask
tcp
openvpn
0votes
4answers

Clearing least significant bit

QUESTION How would I change the least significant bit to 0 without affecting the rest of the value, for example: 0xffffffff , for example in C or Python? I am not a mathematical genius, so for me it's a hassle to find out how to achieve this. SOLUTION n = [...] read more
c
bit
0votes
1answer

Double Ended Queue, Call by Reference (Create Header)

i have a simple problem with my c code .... I want to call the variable with call by reference. I have this function: void createHeader(HEADER *yourHeader) { yourHeader = malloc(sizeof(HEADER)); if (yourHeader == NULL) printError(); yourHeader->first = NULL; yourHeader->last = NULL; yourHeader->length = 0; } My main-call: createHeader(&header); if [...] read more
c
list
pointers
malloc
0votes
0answers

Error getting IPv4 Adress in Openflow TestCases (INET)

I integrate the openflow project of INET in Omnet++ 5: https://github.com/inet-framework/openflow. I try to execute one of the exemples there, but i get this error: ASSERT: Condition 'addressSpecifiedBits == 0xFFFFFFFF' does not hold in function 'getAddress' at ./inet/networklayer/configurator/ipv4/IPv4NetworkConfigurator.h:81 -- in module (inet::IPv4NetworkConfigurator) Can you please tell me how can i [...] read more
omnet++
openflow
inet
0votes
0answers

Link errors when implementing MS RDP client in Qt with files generated by dumpcpp tools from mstscax.dll?

Recently I was developing an RDP software inside Qt using MS compiler.I did the following steps as this link showed: 1. Generate mstsclib.h and mstsclib.cpp files from mstscax.dll using Qt dumpcpp tools 2. Include mstsclib.h and call the ActiveX api as the source code shows The compile step seemed to [...] read more
c++
qt
clion
rdp
0votes
0answers

How to enable full screen control in android webview?

I know the WebChromeClient has to implement OnShowCustomView and OnHideCustomView. I couldn't figure out it exactly. Here is the mainactivity.java. Note that there are html files with links to videos which are being used in webview. I have excluded routine imports in the following. I know the WebChromeClient has to [...] read more
java
android
webview
android-webview
0votes
0answers

Why is my SKSpriteNode not traveling in a straight line as the code intends?

I have code of a subclass of SKScene, which show cars driving from the right to the left. For some reason, the cars drive at an angle instead of straight. Below is the code for my subclass, excluding the parts that do not have anything to do with the problem. [...] read more
ios
swift
sprite-kit
skspritenode
0votes
0answers

cx_Freeze executable fail, not sure how to integrate a fix?

I finally got a piece of code I wrote into what seems to be a somewhat executable style. I ran into an error on execution: Fatal Python error: initfsencoding: unable to load the file system codec ImportError: invalid flags 1540019631 in 'encodings' Current thread 0x00007fff77a44000 (most recent call first): Abort [...] read more
python
user-interface
scripting
cx-freeze
0votes
1answer

Why use 0xffffffff instead of -1?

I'm coming from a Java background and make my first steps in C++ graphics programming. I worked on the ogl-dev tutorials (http://ogldev.atspace.co.uk/) and noticed that a macro with value 0xffffffff is defined. I understand that it encodes -1, but what I do not understand is why I should prefer this [...] read more
c++
0votes
2answers

pointer get wrong value in different thread

I am writing a piece of code to demonstrate the multi-threading share memory writing. However, my code gets a strange 0xffffffff pointer I can't make out why. I haven't been writing cpp code for a while. please let me know if I get something wrong. I compile with the command:g++ [...] read more
c++
linux
c++11
0votes
2answers

Causing a Buffer Overflow Using fgets

I'm trying to make a buffer overflow on a c program, but I can't manage to find the vulnerability and exploit the code. I've tried thousands of inputs. Generally I've tried these: 1) I've tried the obvious - giving a very long string as an input. 2) I've tried to [...] read more
python
c
buffer-overflow
0votes
0answers

__atomic_test_and_set blocks entire program in AMP configuration with shared memory

I have a ZYBO Zynq 7000 (Dual-core ARM Cortex-A9) development board that I use in an Asymmetric MultiProcessing configuration: CPU0 runs Linux, and CPU1 runs a bare-metal application written in C++. I have configured a region of shared memory between the two CPUs as per this application note. I have [...] read more
c++
arm
multiprocessing
shared-memory
atomic
0votes
0answers

How to get the right colors in GameBoy Color?

I write GameBoy Color Emulator for fun and learn. Generating color for Gameboy classic work well, but in color version emulator generating bad colors. I declared BPI, BPD and OPI, OPD. I set up color extraction from background memory and sprites and change it hex colors just like I do [...] read more
c#
graphics
colors
emulation
gameboy
0votes
0answers

Facing issue in loading UART for Beaglebone debian

I am facing issue in loading uart port for Beaglebone Debian. Following are my configurations: I have a beaglebone with Debian OS. I have an sd card with 4 Partitions. Partition 1 ( mmcblk0p1 ) contains following bootloader configurations:- 1. /boot/dtbs/4.14.71-ti-r80/am335x-bonegreen-wireless.dtb 2. /boot/vmlinuz-4.14.71-ti-r80 3. /boot/uEnv.txt 4. /boot/initrd.img-4.14.71-ti-r80 5. /lib/firmware/BB-UART4-00A0.dtbo 6. [...] read more
linux
debian
uart
partition
u-boot
0votes
0answers

MDM: iPhone: Clear Passcode Command Not Working

I am facing issues to execute clearpasscode command for certain devices only. I am getting the below error: mdmd[608] <Warning>: MC|Attempting to perform MDM request: ClearPasscode mdmd[608] <Warning>: MDM|Handling request type: ClearPasscode keybagd[611] <Error>: 2ffad000 __handle_changepasscodewithescrow_block_invoke_1: oldpass=SECRET newpass=NULL no blob keybagd[611] <Error>: 2ffad000 __handle_changepasscodewithescrow_block_invoke_1: Can't reset passcode with escrow bag: [...] read more
iphone
mdm
ota
0votes
1answer

how to fix problem with swap chain creation

im learning directx im working on initializing direct3d in my application and all of my HRESULTS are returning S_OK which is a success return code except the last one which involved swap chain creation i have the debug layer enabled so im getting a warning error in the Output Log [...] read more
graphics
3d
directx-11
direct3d
direct3d11
0votes
0answers

Enable TLS and Disable SSL via PowerShell script

I'm looking to automate disabling SSL protocols 2 & 3 as well as disable TLS 1.0 while enabling and enforcing TLS 1.1 & 1.2. I created a PowerShell script based on some blog I read, however, I don't like the way the my script looks. I like building scripts the [...] read more
windows
powershell
ssl
0votes
1answer

I need to use stm uart module

I would like to use usart communication on STM by using following code. I take this code from website.There are two buffers that stores rx and tx values. I can transmit data from tx buffer but when I connect GPIOB10 and GPIOB11(rx and tx pins) each other. I couldn't see [...] read more
c
uart
stm32f4discovery
0votes
0answers

cortex-m0+ ATSAMC21 nvm bad read after init or erase

after an erase when I read the same adresse like 0x100 (a row) value, the 4th first values are 0x00000000 or sometimes 0x1fffffff instead of 0xffffffff. I should read these 4th word once more to have the good value. Why? Here is my flash nvm init struct nvm_config nvm_cfg; nvm_get_config_defaults(&nvm_cfg); [...] read more
flash
cortex-m
errata
0votes
2answers

Cortex-M0+ : Can't Jump From Bootloader To App

I'm Working on ATSAMC21 (ATSAMC21J18A) with Cortex-M0+, making my CAN bootloader.My IDE is ATMEL studio. Flashing my app is Ok but when I jump in i, it failed.(I tryed with debug and without) In dissaseembly it point to the first of these two line: *FFFFFFFE ?? ?? ??? Memory out [...] read more
vector
bootloader
cortex-m
0votes
1answer

Trying to iterate through entire memory space, resetting the address variable too soon

I have a C program that needs to scan through memory from 0xC0000000 to 0xC0001FFF. Before the scanner loop begins there is a subroutine that fills the memory with 0xFFFFFFFF and this successfully goes through the entire memory space. When the main loop begins, however, the addr variable is resetting [...] read more
c
memory
hex
microblaze
0votes
0answers

Get clear images from camera on browser

I am new to esp32 and the camera sensor module ov7670 and want to live-stream the camera images on the web browser and somewhere I have achieved it as well but the problem is that I am getting blur images. (No object can be identified from those images, they are [...] read more
image-processing
camera
iot
live-streaming
esp32
0votes
2answers

Service Bus unknown error (0xffffffff) while sending message

I have an Azure App Service API which connects to a Service Bus Queue. Everything worked perfect for a while, but then I started to get these kind of errors: System.AggregateException: One or more errors occurred. (Unknown error (0xffffffff) ErrorCode: SocketError) ---> Microsoft.Azure.ServiceBus.ServiceBusCommunicationException: Unknown error (0xffffffff) ErrorCode: SocketError ---> System.Net.Sockets.SocketException: [...] read more
c#
azureservicebus
0votes
1answer

How to generate QR Code with Colors for each Pixel?

I am doing a project with the QR Code. I want to change the color for each pixel.I tried but it doesn't work. Help me. I tried: https://imgur.com/a/umE8xJ5 ... private int color_1 = 0x000000, color_2 = 0xffffffff, color_3 = Color.RED; for (int i = 0; i < height; i++) { [...] read more
java
android
qr-code
zxing
0votes
1answer

How to read/write LAPIC Registers from Kernel Module?

I'm trying to disable all Interrupts. Most of them are easy, but I have problems with the Non-Maskable Interrupts (NMIs). To disable them, I want to manipulate the LVT Registers in the Local APIC. Currently I am testing inside a Kernel Module, cause that's the Environment, the final code should [...] read more
linux-kernel
intel
apic
0votes
0answers

x86_64: absolute JMP to 32-bit address fit in 8 bytes

I use Windows 7; architecture is x86_64. I need to do absolute jump from one address to another (distance between these adresses is more than 0xFFFFFFFF, so I could not use relative jump). I have used this code: mov rax, 0000000011223344 jmp rax It works well; but it's length is [...] read more
assembly
x86-64
0votes
1answer

Math operation with 16b hex in python

I have a start hex : "00000000FFFFFFFF000000000AF50AF5" on this one I want to perform some operations. User enter an int value (20 for exemple). Program do : input*100. (=2000) Convert it in "Hex Little Endian"(=D0070000) Replace the first 4bytes (00000000) by this new 4bytes: (=D0070000FFFFFFFF000000000AF50AF5) Until here It's good ! [...] read more
python
math
hex
0votes
0answers

Attemped to add a SKNode which already has a parent and Thread 1 : signal SIGABRT

I try to use my class Asteroid but I keep getting this error message. I tried everything but I cant seem to figure it out. There is just one asteroid that appears and then appears a thread on > AppDelegate : Thread 1: signal SIGABRT I am a beginner in [...] read more
ios
swift
sprite-kit
sigabrt
0votes
0answers

Linux hangs at [random: nonblocking pool is initialized]

I'm learning to use pico-imx6 on baseboard pico-dwarf. I copy the image to the eMMC on pico-imx6 using: sudo dd if=pico-imx6_pico-dwarf_ubuntu-16.04_installer_hdmi_20160825.img of=/dev/sd<partition> bs=1M && sync The boot process is stuck. Here is the whole console message: U-Boot SPL 2015.04-00021-g9a899f8 (Jul 19 2016 - 14:07:40) Boot Device: MMC Boot Device: MMC [...] read more
embedded-linux
boot
imx6
0votes
0answers

How to fix SOCK_RAW not reading, writes fine, but will not read

Trying to make an ICMP request on windows 10 pro, SOCK_RAW will not read, but writes fine. How can I fix this so it reads and writes? Ran using admin privileges, and I've tried running without firewall on with no avail import os import sys import struct import time import [...] read more
python-3.x
sockets
raw-sockets
0votes
2answers

imx6ul - how to select the right dts for sdcard image?

I'm building my first yocto release. All packages build well and I can build my dts. In fact I have a lot of dtb in my images folder. This is my build configuration. Build Configuration: BB_VERSION = "1.36.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "pico-imx6ul-itl" [...] read more
embedded-linux
yocto
u-boot
imx6
0votes
0answers

QWT, how to Plot RGB values (show image in plot as rgb points)?

Using QWT, I want to plot an image. Each point of the image is set as argb value. For example: * first line, first pixel is red = 0xFFFF0000; * first line, second pixel is green = 0xFF00FF00; * second line, first pixel is blue = 0xFF0000FF; * x line, [...] read more
qwt
0votes
1answer

UBI layout volume not found

I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the whole system on the NAND flash. They ask me to put the DTB, the kernel, the root [...] read more
linux
linux-kernel
embedded-linux
u-boot
0votes
2answers

How to use motion layout with recyclerview

trying to use MotionLayout with RecyclerView, when scrolling up, app is crashing with error: > android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff fragment layout code is <android.support.constraint.motion.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" app:layoutDescription="@xml/collapsing_config_order_details" android:layout_width="match_parent" android:layout_height="match_parent"> ... <android.support.v7.widget.CardView android:id="@+id/cardView" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="8dp" app:layout_constraintEnd_toEndOf="@+id/tv_delivery_type" app:layout_constraintStart_toStartOf="@+id/imageView15" app:layout_constraintTop_toBottomOf="@+id/view4"> ... </android.support.v7.widget.CardView> <android.support.v7.widget.RecyclerView android:id="@+id/rv_list" android:layout_width="0dp" android:layout_height="0dp" android:layout_marginBottom="8dp" android:layout_marginTop="8dp" [...] read more
android
android-recyclerview
scroll
swipe
android-motionlayout
0votes
1answer

Unhandled exception in celery freezes workers

I am running celery in docker via a redis backend. I have * celery-beat container * celery-worker container * redis container The celery worker container spawns 6 worker processes. If a celery task encounters an exception, the workers (all of them) stop consuming jobs. I tried to debug the processes [...] read more
python-3.x
celery
0votes
0answers

Interfacing lcd to imx6dl sabre sd

I'm trying to bring up the imxdl sabresd board using a prebuilt image but the lcd which is interfaced to the board doesn't display anything. How do I set-environment for this? I've followed the standard docs. which said: add video=mxcfb0:dev=ldb,bpp=32 to the kernel command line Hence I tried: editenv mmcargs [...] read more
linux
lcd
imx6
setenv
0votes
0answers

Does this code that contains system("/bin/ls") seems unbreakable?

I'm doing some ctf-like homework. It's to make a privileged program run /bin/sh. There's no source code, only works on binary assembly. The program normally pass "/bin/ls %s" (stored at 0x804868f) to snprintf with argv[1]. So the output of snprintf (@main+222) would be sth like /bin/ls ~/. Then pass "/bin/ls [...] read more
c
linux
security
gdb
ctf
0votes
2answers

pic32mz EF UART

Can anyone give me the configuration and code for sending a character in UART? I am using Pic32mz EF starter kit and MPLAB X-IDE v5.15. I tried a code but it is not giving out any UART in tera term or putty. // PIC32MZ2048EFM144 Configuration Bit Settings // 'C' source [...] read more
frequency
clock
uart
baud-rate
pic32
0votes
1answer

How can I have more than one navHostFragment in one activity?

I would like to have three navHostFragments in one activity, all taking the same space, but each hosting a different navigation graph. Then using a fragment manager and a bottom navigation bar I would like to show each when needed (and hide the others), and that way maintain the current [...] read more
android
navigation
android-navigation
android-architecture-navigation
jitpack
0votes
0answers

Why do i have to have "vkClearValue" in my code to make it work correctly?

I have some base c++/vulkan code (windows 10, 64): #define LOG(x) std::cout << "CONSOLE_LOG: " << ##x << std::endl #include <iostream> #include <vector> #include "xgk-vulkan-wrappers.h" #define GLFW_EXPOSE_NATIVE_WIN32 #include "glfw3.h" #include <glfw3native.h> #define WIDTH 800 #define HEIGHT 800 const char* instance_layers[1] = { "VK_LAYER_LUNARG_standard_validation" }; const char* instance_exts[3] = { "VK_KHR_surface", [...] read more
vulkan
0votes
1answer

could not load inserted library: /usr/lib/libgenkit.dylib

I'm trying to run my universal app into device(iPad) but am getting this linker error sharedlibrary apply-load-rules all warning: Couldn't get real path for inserted library /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/usr/lib/libgenkit.dylib warning: Couldn't get real path for inserted library /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/usr/lib/libgenkit.dylib target remote-mobile /tmp/.XcodeGDBRemote-26364-38 Switching to remote-macosx protocol mem 0x1000 0x3fffffff cache mem [...] read more
objective-c
iphone
xcode4
dyld
0votes
1answer

InitializeCriticalSection fails in NASM

UPDATE: based on comments below, I revised the code below to add a struc and a pointer (new or revised code has "THIS IS NEW" or "THIS IS UPDATED" beside the code). Now the program does not crash, so the pointer is initialized, but the programs hangs at EnterCriticalSection. I [...] read more
windows
multithreading
nasm
0votes
2answers

Duplicate id 0x7f0a00b4, tag null, or parent id 0xffffffff with another fragment for com.google.android.gms.maps.MapFragment

* i have Navigation Activity that holds different fragments when i start home fragment which contains two(passenger and Driver) more fragments inside it they are working perfectly..while running passenger fragment i start an activity from this fragment in which i perform some background task if it execute successfully then fragment [...] read more
android
android-fragments
-1votes
2answers

How to make an arbitrary Microsoft FILETIME?

I would like to make an arbitrary Microsoft FILETIME. The algorithm is more important than the Microsoft programming language. For example if today is June 2 2016, I would like to calculate the FILETIME at midnight June 2016. Any help is greatly appreciated. [EDIT June 2 2016 5:09 P.M Here [...] read more
windows-7
date-time
algorithm
-1votes
1answer

How do i Submit something to a .txt file in a GUI Edit Box?

So I had a question about this AHK Script it's basically an encrypter and decrypter. If you run the program you will need to input a password first and then you get to the real program so if you input a string inside of there and "Encode" it is there [...] read more
autohotkey
-1votes
1answer

How to communicate with GPIO on windows (Win 10) for non raspberry device?

I have a motherboard (KINO-DH310) with windows 10, the GPIO controller displays under Device Manager -> System devices -> Interl(R) Serial IO GPIO Host Controller. How am I supposed to begin simple I/O with this controller? I've tried different strategies, different programming languages, but to no affect. The majority of [...] read more
c#
c++
windows
gpio
-1votes
0answers

How to fix a skipped for loop

I am trying to run a program that retrieves data from a database and displays it on an LCD screen. The program keeps skipping a FOR loop. Not sure if it is related with an error I am getting regarding: local variable 'ext_id' referenced before assignment The output for db_val [...] read more
python
sql
-1votes
2answers

trying to make sense of this #define

I am trying to adapt a 16bit audio recorder application for stm32fxxx to 24bit and I have stumbled across a #define that is confusing me. I have changed 16bit DMA to 32bit DMA along with some buffers uint16_t to uint32_t etc.. no idea why uint32_t and not signed int but [...] read more
c
sample
stm32f4
stm32f7
-1votes
1answer

Unable to read PCI BAR from kernel mode

I have written some code to probe registers of an AMD Vega from userspace using a mmap of the /sys resource. This is working and I am able to read the register values without any problems. However when I implement the kernel mode version of this, all reads return 0xffffffff. [...] read more
c
linux-kernel
-1votes
1answer

C++ left shift overflow for negative numbers

As shown below, the code has a bug. When input a = -1, b = 1, one of the line has runtime error. Could you please help me understand how (a & b) becomes INT_MIN? In my understanding, -1 is represented as 32-bit binary format 0xFFFFFFFF, and 1 is represented [...] read more
c
bit-manipulation
-1votes
1answer

Why "java.lang.NoSuchMethodError: no static method" from (JNIenv*)->GetStaticMethodID?

My Android NDK project's Java Code calls C++ function , extern "C" JNIEXPORT jstring JNICALL Java_com_crimson_tub_MainActivity_stringFromJNI(JNIEnv *env, jobject jo) I want to call public static void requestPermissions(@NonNull final Activity activity, @NonNull final String[] permissions, @IntRange(from = 0L) final int requestCode) found in Android Document: https://developer.android.com/reference/android/support/v4/app/ActivityCompat.html#requestPermissions(android.app.Activity , java.lang.String[], int) I have [...] read more
c++
android-ndk
jnienv
-1votes
1answer

CreateFileA in Windows API in NASM 64: incorrect parameter, but which one?

I am creating a file using CreateFileA from the Windows API in NASM 64-bit (see https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-createfilea ). With the following parameters, no file is created and it returns an error 87 ("the parameter is incorrect") from GetLastError (see https://docs.microsoft.com/en-us/windows/desktop/debug/system-error-codes--0-499- ) Here are the parameters: rcx - lpFileName ;dwDesiredAccess mov rdx,2 [...] read more
windows
winapi
nasm
-1votes
1answer

Pycuda - Adapt existing code and Kernel code to perform a high number of 3x3 matrix inversion

Following a previous question ( Pycuda - Best way to perform a high number of small matrix inversion - CUBLAS or MAGMA ), considering the inversion of 4x4 matrix, I would like to do the same but with 3x3 matrix. As @Robert Crovella said, this change implies a complete rewrite. [...] read more
python
matrix
cuda
matrix-inverse
-2votes
1answer

Console bugging and bugged, evidently

It appears that a false file path has been installed on a home computer many of us use, that reroutes my emails from gmail, to an Entourage mail app that I do not use, and from my dock have no access to…. My question is, is this even possible, and [...] read more
macos
-2votes
0answers

Why does the debugger show 0xFFFFFFFF as the value for sbyte?

After entering the negative value, say -1 into the sbyte variable, the debugger shows the value 0xFFFFFFFF - 4 bytes: [https://i.stack.imgur.com/snQym.png] After conversion to a larger type of Int32, the value will remain 0xFFFFFFFF. Why is not this 0x000000FF? In the case of positive values, sbyte stores only 1 byte. read more
c#
sbyte
-2votes
2answers

Java InetAddress.getLocalHost().getHostAddress() returns invalid IP

And when I say invalid, I mean invalid. I get an IP address that's not associated with any of my machine's interfaces. I'm aware there are similar questions on the site, but they're more about people getting the address of an interface they didn't want (e.g., 127.0.0.1 instead of LAN [...] read more
java
networking
ip
-3votes
1answer

is there any web crawler can get access to users region for download?

Actually I am using Httrack as a web crawler, can it use my credentials to access members area and download the zip files because they are restricted from public access. Thank you in advance. Update: After all the problem was with my IPV6 it must be disabled; with (Windows 8 [...] read more
web-crawler
-3votes
0answers

java.lang.OutOfMemoryError: Failed to allocate a 7464972 byte allocation with 4079512 free bytes and 3MB until OOM

I have developed an Application where i am using page Curlview. I am passing array of Drawables and it creating bitmap one by one. after 20 images app crash with error outofmemory. can any one help me.? I saw different answer on stack but not working. //curlview mCurlView.setBitmapProvider(new CurlView.BitmapProvider() { [...] read more
java
android
bitmap
out-of-memory

Comments

Leave a comment

(plain text only)

Sources

  1. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0