Posts by Alan CN • 120 points
3 posts
-
-1
votes1
answer68
viewsA: Working with C socket received data
Use the function Strtok of <string.h>. It breaks a string into several tokens, based on certain characters. More information on: Strtok…
-
1
votes3
answers50
viewsA: Determine the indices of a vector to be subtracted
Be it to an array. Using comprehensilist on, do: a = [10, 20, 50, 80, 50, 60] b = [a[i+1]-a[i] for i in range(0,len(a),2) if i+1 < len(a) ] print b In this way, we are only iterating the…
-
-2
votes2
answers8021
viewsA: Translate Woocommerce input texts
I couldn’t get Force the update, as quoted in numerous web posts. My version of Woocommerce is 2.5.2, with WP 4.4.2. The way I found it was to download the WC translation files manually, and put…