Search found 12 matches

by admin
Fri Jun 18, 2021 9:19 am
Forum: Node.js
Topic: Enable https
Replies: 0
Views: 24727

Enable https

in bin/www use: var https = require('https'); var fs = require('fs'); const options = { key: fs.readFileSync('ssl/Calisoft-ssl-certificate.key'), cert: fs.readFileSync('ssl/calisoft_dev.crt'), ca: fs.readFileSync('ssl/calisoft_dev.ca-bundle') }; var port = normalizePort(process.env.PORT || '443'); a...
by admin
Mon Feb 26, 2018 8:46 am
Forum: Services and Bonds
Topic: Controlling the Wi-Fi programmatically
Replies: 0
Views: 18396

Controlling the Wi-Fi programmatically

Tested on Android L you need 2 buttons id: startwifiButton and stopwifiButton in your layout: package crokky.com.wifitest; import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.net.wifi.WifiManager; import android.support.v4.app.ActivityCom...
by admin
Tue Feb 13, 2018 11:27 am
Forum: Segmented video Streaming
Topic: Download and merge TS fragments from m3u8 index
Replies: 2
Views: 42767

Download and merge TS fragments from m3u8 index

If you have the index and it's called index_1_av.m3u8 Download all fragments: wget -I index_1_av.m3u8 merge the fragments: #!/bin/bash NUM_SEGMENTS=653 OUT_FILE=MyVideo.ts rm $OUT_FILE # Tested using bash version 4.1.5 #for ((i=1;i<=100;i++)); for ((i=1;i<=($NUM_SEGMENTS-1);i++)); do # your-unix-com...
by admin
Sat Oct 03, 2015 7:32 pm
Forum: Printing
Topic: Install and Use Canon MP620 with Linux
Replies: 0
Views: 29207

Install and Use Canon MP620 with Linux

I was able to get the printer working on my 64bit machines running 13.10 by installing cups-backend-bjnp sudo apt-get install cups-backend-bjnp Then open printers, click on add printer. Select Enter URI, then enter the device URI (i.e. "bjnp://192.168.1.112") Click next Select Canon from t...
by admin
Thu Feb 26, 2015 4:27 pm
Forum: C/C++ development
Topic: Use gdb to debug a segmentation fault
Replies: 0
Views: 29534

Use gdb to debug a segmentation fault

Compile the source with -g -O0 so that you can use gdb. Using a makefile, it's something like: # enalbe GDB on for debugging GDB = -g -O0 all: spaceshuttle.c gcc $(GDB) -Wall -o spaceshuttle.exe functions.c encryptionlib.c -lspacelib -lpthread clean: $(RM) spaceshuttle.exe Next, use gdb to get a sta...
by admin
Fri Jan 02, 2015 12:29 am
Forum: tcpdump
Topic: capture http headers
Replies: 0
Views: 29636

capture http headers

sudo tcpdump -s 1024 -l -A port 80 | tee dump.txt -s Snarf snaplen bytes of data from each packet rather than the default of 65535 bytes. Packets truncated because of a limited snapshot are indicated in the output with ``[|proto]'', where proto is the name of the protocol level at which the truncati...
by admin
Wed Dec 10, 2014 5:34 pm
Forum: adb
Topic: how to solve 'no permissions' in adb devices
Replies: 0
Views: 15063

how to solve 'no permissions' in adb devices

If you do: adb devices and get: ???????????? no permissions you need to enable the usb port: edit /etc/udev/rules.d/51-android.rules 51-android.rules like: SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666" SUBSYSTEM=="usb"...
by admin
Fri Nov 28, 2014 7:24 pm
Forum: apt-get package management
Topic: apt-get package management cheat sheet
Replies: 0
Views: 62997

apt-get package management cheat sheet

http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html apt-get : APT is acronym for Advanced Package Tool. It supports installing packages over internet using ftp or http protocols. You can also upgrade all packages in a single operations, which makes it even more attractive...
by admin
Tue Nov 25, 2014 5:37 pm
Forum: ip link and performance
Topic: measure ip link network speed between 2 computers
Replies: 0
Views: 62300

measure ip link network speed between 2 computers

on the ifrst PC (called 'server' in this case) type:
iperf -s

-s stand for server

on the other PC:
iperf -c server

where 'server' is the name of the first PC
by admin
Tue Nov 25, 2014 4:22 pm
Forum: RTP and audio / video over RTP
Topic: RTP Real Time Protocol
Replies: 0
Views: 62861

RTP Real Time Protocol

The size of a RTP packet is the size of its header + the size of the application specific frame You must understand (from the header) what protocol you are encapsulating into the RTP frame to know its size. RTP header: https://access.redhat.com/documentation/en-US/JBoss_Communications_Platform/1.2/h...

Go to advanced search