Thursday, December 28, 2017

Yenten new crypto mining guide

Hi i noticed very weird cpu minable coin in my cryptoradar. There is not much about this crypto in internets but google it yourself but here is mining guide.

Download Yenten wallet from

https://github.com/conan-equal-newone/yenten/releases

wait wallet to synchronise

Now mining from wallet is simple
GO TO
Help->Debug window->Console
and type
setgenerate true -1 
-1 is using all threads on cpu but feel free to use 1/2/3/4 depends how many cores you want to use

Now make sure you are mining by typing
getmininginfo
now your 
"hashespersec" : 573
should be bigger than 0 depending on how many cores and cpu speed

Now you are mining


Mining with minerd
download yenten minerd from

https://github.com/conan-equal-newone/yenten/releases

now extract that zip and make new text file

for pooled mining textfile should be like this

minerd.exe -a yescryptr16 -o stratum+tcp://pool.yentencoin.com:6234 -u <wallet address>

if you want to control threads use command -t 2
this will use 2 cores
and replace pooladdress "pool.yentencoin.com" for whatever pool you want to
here is my line for example

minerd.exe -a yescryptr16 -o stratum+tcp://yescryptR16.n-engine.com:6233 -t 2 -u YSaRwsySAKysayi3kNqnz18XiUHy9aAbNv

i moved to n-engine because its bigger but sometimes i still mine on yentencoin


IN NOTEPAD CLICK SAVE AS AND THEN CHOOSE ALL FILES AS TYPE AND SAVE IT AS start.bat

then just start the start.bat

Solo mining with minerd

go to C://users/"pc username HERE"/AppData/Roaming/Yenten

and create new textfile

server=1
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=9982

p2pport=9981

now save this like the .bat file but save this as yenten.conf

now back to minerd and creating solomining.bat

minerd.exe -a yescryptr16 -o localhost:9982 -u user -p password -t 2 --coinbase-addr="YOUR WALLET ADDRESS GOES HERE"

yenten wallet must be running when solo mining so start that first and then start solomining.bat

HAPPY MINING

IF YOU WANT TO DONATE yenten HERE IS MY ADDRESS

YSaRwsySAKysayi3kNqnz18XiUHy9aAbNv


Wednesday, January 11, 2017

Gamemaker tips for top down shooter

I have played around with Gamemaker for sometime and heres few tips for top down shooter.


1. Movement


I like to movement towards cursor and with WASD keys so here is how i did it.

W

move_towards_point(mouse_x,mouse_y,speed);


speed should be positive because you should move towards mouse cursor



S

move_towards_point(mouse_x,mouse_y,speed);



and here speed should be negative example -20 so char would walk away from cursor



A,D keys should not be done with this and i think they should just be strafe, so postive and negative speed on x-axis



2. Weapons, shooting and switching



I like to do this with scripts and just switch the shooting script



On your hero,char,shooter you would have

Equipped variable and to that you can store script

example

Equipped=pistol;



on mouseleft or your shooting key you just execute Equipped

script_execute(Equipped);



on a pistol script you create bullets and shoot



3. Switching weapons



So if do switching with 1,2,3.... keys, you can just make that key to switch

the Equipped script



example when 2 is pressed

Equipped=Shotgun



example when 1 is pressed

Equipped=Pistol


Now when 1,2,3... is pressed it changes the script what mouseleft then executes.

4. Gun with kick

So at shooting script (Pistol,Shotgun)script i have the shooting and movement... yes movement so the gun will have a littlebit of kick

example in shotgun
move_towards_point(mouse_x,mouse_y,speed);
and speed should be negative in this one so it moves away from cursor 

  
 



Friday, July 29, 2016

How to advertize for free online

Hi i have learned that advertising sometimes doesnt require a big bank account. With a littlebit efford you can crow your audience with hundreds of people. Here have some tips.

1. Create youtube video of products/whatever you wanna advertise

2. Tell people about your product online in facebook/twitter/googleplus

3. If your product is visual or customers get the idea by picture, make instagram account and add pictures of your product.

4. One of the best free advertisig style i personally like is throught twitter with a little bit tweaking.

     step1:make twitter account
   
     step2: make some posts about product and links where customers can view/buy product

     step3: go to statusbrew.com its old name was unfollowers but basically when you add your twitter account there, you can automate messages.

You must enable Welcome DM message wich looks something like this

Welcome DM
 
 
Then customize your messages and from there if someone follows you this site sends automated message to that person private.
 
Example my message is "Hi thanks for following go check my techblog if you are interested https://trxtech.blogspot.com/"
 
Now if your blog/product is example food related, go find popular chefs and check their followers, now follow them and when they will follow you back they get the automated message. 

If you really wanna grow audience big, do this alot... and remember its free so audience growth may be slow.

You can do alots of more with statusbrew and tweak it, have fun and advertise

Monday, May 2, 2016

Raspbx and running scripts

Hi

I have worked with old asterisk version and it was really hard to work with but with little efford really great and customizable. Now i tried new project with RASPBX and i was surprised how easy it was to work with.

In this tutorial i will tell how to install raspbx and run scripts in raspbx

1. Download Raspbx (google it)
2. Download win32diskimager
3.Install win32diskimager
4.Unzip raspbx image
5. Run win32diskimager and install raspbx to memorycard (raspbx site says that 4gb card required, so i used 8gb just to sure)
6.Insert memory card to raspberry pi and start it
7.Log in
8. Default user is root and password raspberry
9. run command:sudo ip addr show
10. get the inet addr/ip addr
11. Use different computer to log in by opening browser and writing that address to browser
12.  FreePBX default user is admin and password is admin also
13. Log in to Freepbx
Asterisk may take 5-10 minutes to start
14.Download config edit module to freepbx from admin modules
14. or you can just download and upgrade all the modules
15. go to config edit module and to extensions_custom.conf add
[nameofdialplan]
exten=> 2000,1,Answer()
exten=> 2000,2,AGI(scriptname.php)

2000 is the extension that you wanna run script when calling
1,2 is the priority or order of actions you wanna perform
there should be scripts ready if you wanna test.

Example wakeupconfirm
[wakeup]
exten=> 2000,1,Answer()
exten=> 2000,2,AGI(wakeconfirm.php)

16. Go to custom destinations tab and make asterisk aware of new custom dialplan by adding
[wakeup],2000,1
description is just name so name it as you like it
17. Create extension for your phone/softphone and try it

Making your own scripts
1. run commands:cd /var/lib/asterisk/agi-bin
this is the path where asterisk will store the scripts
2. run command:nano scriptname.php
you can use other text editors but i use nano
3.write your script
4.run command:chmod 755 scriptname.php
this gives asterisk permission to run the script

Friday, January 29, 2016

MuMuDVB with Raspberry Pi 2 Model B Multicast IPTV: HOW TO

First install operating system for Raspi (Raspberry Pi 2 Model B) we installed Rasbian WHEEZY from https://www.raspberrypi.org/downloads/raspbian/. Format SD-card to FAT32.Then install it to SD-card with win32DiskImager which can be found from http://sourceforge.net/projects/win32diskimager/ select rasbian image and your SD-card and start installing.

When installing is ready we can put the card to Raspi and start it with keyboard,screen and ethernetcable with internet access. First give password to root user called pi, we use iptv for password because its easy to remember. Don’t use GUI because terminal is more practical when u get used to it and know a little bit of commands.

Now that we have logged in and see the command line we are gonna install necessary programs.
After every “Type:some commands” rows hit enter
Type: sudo apt-get install mumudvb
Type: sudo apt-get install patchutils libproc-processtable-perl
Type: sudo apt-get install dvb-apps
Type: sudo apt-get install w-scan

sudo is means we use command as admin (sudo=superior user do)
if some reason it don’t find the packages check network and
Typw: sudo apt-get update

okay we use Pinnacle DVB-T usb stick with Raspi now we need to google where the firmware for usb-stick is and copy it
Type: cd /lib/firmware
Type:sudo wget url_to_your_debian_compatible_firmware

Now we need to scan what frequencies we can watch (or is the stick working)
First reboot with
Type: sudo reboot
and wait Raspi to start, login
Check if Raspi finds the stick
Type: lsusb
and look if your dvb-stick is there. If not check firmware and installation guides

start scanning with w_scan
Type: sudo w_scan –X –c FI
where FI is coyntry FI=finland we check only for finnish TV-channels because that’s only TV we want check your coyntry codes at https://countrycode.org/
now look when w_scan finds some channels (if not check if stick is working or coyntry code is right)
and remember the frequencies , they look something like 562000kHz.

Okay now that we have some frequencies we are gonna make configuration file for MuMu.
Type: sudo nano mumu.conf
and text editor should open, you can replace mumu.conf with somethingyouwant.conf but remember the name and its location is /home/pi/yourfilename.conf
start editing the conf file with text editor and write the minium config mumu needs.
Write:
Type: freq=yourwantedfreq
Type: autoconfiguration=full
now hit ctrl+X and Y when its asked if wanted to save progress then enter when it ask for the filename.

Now test mumu with command
Type: sudo mumudvb –d –c /home/pi/your_conf_file_name.conf
it should work fine and find channels if we have the right frequency.

Mumu generates automaticly SAP announces if autoconfiguration=full is in the config file so if everything work we should now be able to watch channels with VLC with computer in the same network. Look in VLC for playlist->SAP. If you wanna watch TV from outside your own network open VLC select Media->Open Network Stream. Mumu shows IP for the streams.
Type: udp://@ip_to_your_stream:1234

Now if everything is working we want mumu to start when pi starts (if you want it or you can start it manually after login with “Type: sudo mumudvb –d –c /home/pi/your_conf_file_name.conf”
create a script first for starting mumu
Type: sudo nano /etc/init.d/autostart_mumu
and write the following to text file
Type: #!/bin/bash
Type: sudo mumudvb –d –c /home/pi/your_conf_file_name.conf
and hit ctrl+X hit Y and enter
Type: sudo chmod +x /etc/init.d/autostart_mumu
Type:sudo update-rc.d autostart_mumu defaults

FINISHED and finally everything should be working fine…for millhouse :D
quick googling should solve any error occurred, but this is how I got it running
usefull links
http://elinux.org/RPi_Setting_up_a_static_IP_in_Debian
http://www.kettering.edu/offices-administration/information-technology/networks-security-storage/remote-desktop/remote
http://www.mumudvb.net/