My Current Thoughts on LTC Mining

Hey what you think about getting 270x and OC it
Friend @ 2:04

idk enough about it
Alvin @ 2:05

Stock gets about 400-450 hashes
Friend @ 2:05

https://litecoin.info/Mining_hardware_comparison

Alvin @ 2:05

Over clock will get you about 500-550 which is same as 7950
Friend @ 2:05

max will pull 475 kh/s
Alvin @ 2:06

where did you see that?
2:06

I was guesstimating
Friend @ 2:06

haha okay
Alvin @ 2:06

no need to guess so hard like that
2:06

That is max at stock though
Friend @ 2:06

If you OC then you’ll get more
2:07

these numbers are overclocked for sure
Alvin @ 2:07

well
2:07

i mean the last one
2:07

you can see that the memory clock is at 1500
2:07

uses 230 watts
2:07

R9 270X, 100364L
2:08

ctrl+f “R9 270X, 100364L”
2:08

So you don’t think its a good idea? Cause this 280x shit getting stupid can’t find any
Friend @ 2:10

For 330
2:10

280x is reported to use 300 watts max
Alvin @ 2:11

30.4% higher power usage
2:11

gets 54.4% higher hash rates
2:12

I know that… But you can’t buy one those stats are pointless
Friend @ 2:12

Haha
2:14

right, what you brought up is another part of the analytic answer
Alvin @ 2:14

it depends on the amount of time that you’re willing to wait and what you know about card production speed to the market (nothing)
2:16

AND the amount of time that you plan on mining (I’m assuming that number is indefininte)
2:17

long run, wait for the 280x it’ll pay off in huge amounts
2:18

if you feel like 280x will never show up on the market again, don’t wait and get the 270x
2:18

I don’t know what the buy orders on 280x chipsets are
2:18

So your saying its justifiable to pay 430 for at 280?
Friend @ 2:19

I don’t think so
Alvin @ 2:19

I think it’s just a craze right now and you should wait for prices to come back down on those things in a couple week
2:19

weeks*
2:19

for now, if you want to get into the game immediately, buy coins. it’s possible that your money may be better spent there at the rate of difficulty increase + difficulty to find proper hardware
2:20

especially because btc and LTC are down right now
2:20

long term running inferior hardware is not a good idea because it’s already hard enough to pay off good hardware.
2:22

buying good hardware at +33% costs is just going to make it that much harder to pay them off.
2:23

all these undefined variables are starting to throw you off huh?
2:26

They are all contradicting at one point lol
Friend @ 2:27

So now its a waiting game
2:27

yeah~ I think we should all just play the waiting game
Alvin @ 2:28

I’m not going to do anything drastic for a couple weeks
2:28

no more miners
2:28

no more buying coins
2:28

just enjoy the roller coaster
2:29

And let your rigs mine right?
Friend @ 2:29

yup
Alvin @ 2:29

i think we all got in at a good time
2:30

don’t let yourself get raped with the rest of the noobs panic buying $400 cards

Mobile Web Debugging on your Android Device

  1. Install Chrome Canary
  2. Plug your phone into your dev machine with a USB cable.
  3. Browse to chrome://inspect/# on Chrome Canary, and click Discover USB Devices. It’ll look like the following picture
    Screen Shot 2013-12-11 at 5.15.06 PM
  4. IF YOUR PROJECT IS NOT RUNNING ON “localhost:####” then skip to step 7.
  5. Set up port forwarding to whatever port your localhost project is running on
  6. Put that url into the “Open tab with url” field on your chrome canary and it will open a dev window for you. You’re done!
  7. Root your phone http://www.androidcentral.com/root
  8. Install SuperSU
  9. Install Hosts Editor
  10. Run Hosts Editor
  11. Allow SuperSU to give Hosts Editor sudo privlidges
  12. Add a new line to Hosts Editor that matches your dev machine’s hostfile for your project.
  13. Go back to step 6.

Complaining with – I don’t [verb]… or I can’t [verb]… or I hate… or I [negative word] [verb]…

I have perfected the office appropriate “Quit your bitchin’” and this is me documenting it:

At any point in time when someone complains to you that you that “[they] can’t handle something”, the correct response if you need them to shut ups is: “Most people feel the same way. That’s normal.”

Then there’s no room for them to drone on about it because you’ve already stated that everyone understands, it’s something everyone has to deal with, and they’re just going to have to get over it. It’s best if you override their speech with this response as quick and swiftly as possible even if this means talking over them.

AngularJS and PrettyPhoto

Include the prettyPhoto js and css files (+jQuery if it’s not already in there…) in your app’s html header. Don’t forget to put the prettyphoto images in /images/prettyPhoto

Add this directive to your app

.directive('prettyp', function(){
return function(scope, element, attrs){
$("[rel^='prettyPhoto']").prettyPhoto({deeplinking: false});
}
})

Use pretty photo like normal but add the prettyp attribute to your wrapper

<div prettyp class="image" ng-repeat="image in images" ng-href="{{image.path}}" rel="prettyPhoto[main]" target="_blank">
<img ng-src="{{image.path | image : 'thumb'}}" width="70px"/>
</a>

 Note: You have to turn deeplinking off because it screws with angular if you’re using the # in your urls. 

Samsung Galaxy S4 Active Wi-Fi Teather Hack

Step 1: Root your phone

On your phone, download and install this APK to root your phone
http://geohot.com/activeroot/ar.apk
IF THAT FILE NO LONGER WORKS, USE THE ONE I HAVE ARCHIVED HERE
http://www.alvincheung.com/random/samsunggalaxyactive/ar.apk

Step 2: Install Supersu

Install this APK via the play store to allow programs to use the root user
https://play.google.com/store/apps/details?id=eu.chainfire.supersu&hl=en

Step 3: Install Root Browser

Install this APK via the play store to browse your phone
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree&hl=en

Step 4: TeatheringProvision Clobbering

Open “Root Browser” and rename two files from .apk to .apkbak (you can actually name them whatever you want)
/system/app/TeatheringProvision.apk -> /system/app/TeatheringProvision.apkbak
/system/app/TeatheringProvision.odex -> /system/app/TeatheringProvision.odexbak

Step 5: Restart

Restart your phone

Step 6: Install FoxFi

Install this APK via the play store to run the hotspot
https://play.google.com/store/apps/details?id=com.foxfi2&hl=en
https://play.google.com/store/apps/details?id=com.foxfi.addon&hl=en
https://play.google.com/store/apps/details?id=com.foxfi.key&hl=en

Start your FoxFi and Enable Proxy
Enable proxy by pressing the menu button on your phone and you’ll see it in the middle of the menu options.

Step 7: Use Proxy Service (with Chrome Browser)

You should use proxy service with all devices attached to the phone. You can actually do this on the OS level so you’re always using the proxy service. I’m only going to show you how to do it with Chrome because doing it on the OS level is a bitch and you probably only need tethering because you want to browse the web.

Step 8: Install Switchy! plugin to your Chrome browser

https://chrome.google.com/webstore/detail/proxy-switchy/caehdcpeofiiigpdhbabniblemipncjj/related?hl=en

Set up Switchy! This is what mine looks like, yours should look the same minus the Profile Name.
Note: “Dragonfly” is the name of my phone, you can put whatever you want.

Capture

 

 

 

 

Done.

OSX Required Softwares

So I just got my first Macbook Pro from my new company and it’s pretty sweet. Only, there are a couple things that this OS lacks and I’ll list the software that you’ll need to install if you’re coming from Ubuntu + Windows land.

Insomniax
SizeUp
Secondbar – but this one… there has to be a better alternative because it’s not very good when you’re switching desktops.

Programmers Who Rave

It’s so sad that I don’t meet enough programmers who rave.

In my entire rave streak I’ve only run into a single other programmer who actually raves. I lost his phone number but the next one I run into I’m going to hold onto.

PLEASE CONTACT ME IF YOU ARE A PROGRAMMER AND YOU ARE ALSO A RAVER. 

Also, did you ever wonder why programmers are notorious for not having girlfriends? It’s because you’re all so god damn negative. Try raving for a change, it’ll change your world. Fuckers!

How long does it take to forgive your girlfriend for cheating on you?

The truth? At least a year, but I have no definitive answer for you.

Once you’ve been cheated on and don’t leave the person who cheated on you – at least the next year of your life will be spent wondering if that person is going to cheat on you again. You’ll be thrown into a world of untrusting, heartache, jealousy, pain, rage, and hate. You’ll live your every waking moment away from that person wondering what they’re doing, who they’re talking to, and when they’re going to put themselves in a position to hurt you again, which will be daily. Every moment spent with that person will be pretty much okay because you have their attention but once you lose that attention to a phone, or facebook, or some other means of interacting with another person… all bets are off. Every phone call or text message with someone else will drive you into a state of angsty heart breaking wondering about who they’re talking to and what it’s about.

You’ll obsess over it with every second that passes by because it’s your heart we’re talking about here. Why wouldn’t you? You’ve given them your heart once and they destroyed it. In they beginning, they’ll try hard but they’ll continue to make similar mistakes by testing your bounds with seemingly little to no regard for the state of your heart until it’s too late. Your heart will no longer be in pieces – It will now be in the form of little fine dust that has no recognizable format.

One thing I would have done differently through the entire process:

The best thing to do to avoid this situation is to provide blanket statements about all your expectations right up front in the very beginning. Everything about what you’ll allow or not allow and postfix them all individually with a clause that you will leave immediately if these rules are broken. If you don’t reprogram this up front then you’re setting yourself up for a world of hurt later.

She’ll ask about your feelings and how you’re coping with the hurt and you should tell her even if it’s stupid. When she realizes the answer that you gave is not the answer that she expected she’ll get upset. Most likely at herself but she’ll call you selfish and jealous and direct her frustrations about herself at you. You’ll remind her that she cheated on you over and over again like a broken record, and you’ll both be hurt every time it’s brought up. Although that sucks for both parties, you have every right to do that until you’re completely over it. If she can’t accept the consequences of what she’s done that’s fine. Only two things could happen from it.

  1. She’ll eventually change and learn over time to be who you need her to be and your relationship might be stronger after that.
  2. She’ll give up trying to be someone she’s not and finally set you free like she should have done. She’ll move on to cheating on someone else and continue on her path of unhappiness until she finds the one for her.

Hopefully it’s number one.

The things you tell her about your feelings will make absolutely no logical sense but that’s the way it is I guess.

If you can grasp the following statement then you’ll feel a lot better about yourself and be able to hold your composure in the relationship much better:

You can’t control what she does. You can’t control who she talks to. If she’s going to cheat on you again then she’s going to do it and there’s nothing you can do about it short of locking her up in a box with no communications to the outside world. You don’t want to put her in that situation so just learn to accept it.

It’s her choice to ruin her life and forever, her choice, it will remain.

That’s all I know for now. I’ll update this post or you’ll find another post about the subject matter here on my blog if that feeling ever goes away.

CodeIgniter PHP Script to replace all spaces in columns with underscores – mySQL

$tables = $this->db->query(‘SHOW TABLES’)->result();
foreach($tables as $table):
$table = $table->Tables_in_$table_name;
echo “\n\n{$table} – “;
foreach($this->db->query(“SHOW FIELDS FROM {$table}”)->result() as $column):
echo $column->Field . ‘ | ‘;
$this->db->query(“ALTER TABLE `{$table}` CHANGE `{$column->Field}` `”.strtolower(str_replace(‘ ‘, ‘_’, $column->Field)).”` “.str_replace(‘(‘,’ (‘,$column->Type));
endforeach;
endforeach;
echo “\n\nDONE\n\n”;

Where is the AdWords API Center for MCC accounts?

1) Log in to your MCC Account - https://adwords.google.com

2) Click “My Account” and then click “AdWords API Center”

Capture

Hopefully this helps someone out there to find it a little easier.

 

 

Return top