|
I'm running this bitcoin API code retriving the data from MtGox but it's not working any longer because they site is not up anymore. Goal is to now pull the info from blockchain.info/ticker or bitstamp.net/api/ticker/ or both tickers APIs. If you want to see an example you can go to bitcoinvalues.net. It's supposed to show on top of the site but there is not data.
1.<?php
2.
3. $ch = curl_init('https://mtgox.com/api/0/data/ticker.php');
4. curl_setopt($ch, CURLOPT_REFERER, 'Mozilla/5.0 (compatible; MtGox PHP client; '.php_uname('s').'; PHP/'.phpversion().')');
5. curl_setopt($ch, CURLOPT_USERAGENT, "CakeScript/0.1");
6. curl_setopt($ch, CURLOPT_HEADER, 0);
7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
8. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
9. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
10. $mtgoxjson = curl_exec($ch);
11. curl_close($ch);
12.
13.
14. $output_mtgox = json_decode($mtgoxjson);
15. $output_mtgox_1 = get_object_vars($output_mtgox);
16. $mtgox_array = get_object_vars($output_mtgox_1['ticker']);
17.
18. ?>
19. <br/>
20. <br/>
21. Last: <?php echo $mtgox_array['last']; ?><br/>
22. High: <?php echo $mtgox_array['high']; ?><br/>
23. Low: <?php echo $mtgox_array['low']; ?><br/>
24. Avg: <?php echo $mtgox_array['avg']; ?><br/>
25. Vol: <?php echo $mtgox_array['vol']; ?><br/>
http://www.bitcoinvalues.net
|
|
|
|
|
Good for you!
But...this isn't for questions. There is a bit of text just above this which says:
Technical discussions are welcome, but if you need specific help please use the programming forums. So try the PHP forum: http://www.codeproject.com/Forums/1213650/Linux-Apache-MySQL-PHP.aspx[^]
Or QA: http://www.codeproject.com/Questions/ask.aspx[^]
Either way, it'd probably be a good idea to give us some kind of idea of what your problem is and what help you need, because very few of us can read minds...and those of us who can don;t like to remove out tin-foil hats because The Voices will start again, and that's never a good sign.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Hey, I like my voices, and tinfoil isn't good for the skin anyway.
|
|
|
|
|
Yes...but they whisper ideas to me...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
A small victory[^] in my clutch saga, thanks to OriginalGriff, who suggested drilling off the bolt head. However, I am now blocked by a mystery transmission part[^] that I do not know how to remove. It looks like this[^] on the inside, and I suspect I somehow have to remove the spiggoted nut-type thing, but have no idea how.
|
|
|
|
|
Is that a decoration on the outside or a spring?
Why do you have to remove it - it looks like a bushing?
The inside looks like it's threaded - with a big odd nut with four lugs.
What does it do?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
It's a spring, and I have to remove it because it blocks the clutch assembly from sliding up and off. No idea what it is.
|
|
|
|
|
If you have a BIG pair of long nosed pliers, it should be able to be opened up to engage two of the opposite slots in the nut, then use a wrench across the opened pliers to turn the nut.
Dave.
|
|
|
|
|
Have you tried googling the number on the inside, plus the model of the bike. Looks like a part number!
|
|
|
|
|
I really don't give a crap what it is right now, that's a much lower priority than just getting it off, and there are either only generic workshop manuals or none for these cheap bikes. It cost me ZAR13k, where a Vespa 150cc costs ZAR70k, to give you a perspective.
|
|
|
|
|
Well, once youv'e identified whatever it is, you can Google removal instructions. The spiral thing looks like a captive spring, and my experience with springs is often when they come out (normally pinging past you face) they won't go back in.
|
|
|
|
|
The 'spiral thing' is no not the issue. It is in the cover of the mystery part, my which my photos show I have easily removed, and the spring shall forever remain untouched. It is the bottom half of the mystery part, where I say "here is what it looks like on the inside", that I need to remove. The top part was just held on with three easily loosened screws.
|
|
|
|
|
a) Put a big flat blade screwdriver into the slot and hit the shaft of the screwdriver to try and rotate the part.
b) put 2 big flat blade screwdrivers into opposite slots, lock the driver heads together and then turn the both of them, acting as a key.
If it is really tight, you could again try the heating method to release tension by expanding the parts.
|
|
|
|
|
Tried (1) half-heartedly, will try (2) tomorrow when I'm not exhausted. I will also try and bend a piece of steel into a U shape that fits the nut thing, in its slots, and turn that with a vice grip.
|
|
|
|
|
As a motorcyclist, I was intrigued by the part with no apparent function (I found your question also on http://mechanics.stackexchange.com/questions/9867/what-is-this-part-and-how-do-i-remove-it ), so I googled for the part number shown (CG200-B) and eventually found the Chinese company that (probably) make it: long link
This didn't get me very far, but I thought I recognised many of the pictures that Google offered as a Honda, so searched for Honda CG200, which wasn't too helpful, but led me to believe that the engine was based on the venerable Honda CG125 from the 80's, so I googled that and found a (free) workshop manual at www.die-kleinkraftrad-ig.de/wissensdatenbank/reparaturanleitungcg125.pdf which (on page 12) confirmed the empty housing with the 3 screws is a centrifugal oil filter. On p23 it tells you how to remove it with Honda's special tool 07916-6390001 which amazingly one can still buy at http://www.wemoto.com/parts/picture/HO-07916-6390001 for £26, which is not much help to you, but confirms that it can be made from a suitable length of thick-walled steel tube.
Good luck!
PS was there any oil/sludge inside the filter?
|
|
|
|
|
Thanks a whole lot man! I googled the part number, but stopped looking after the first few hits. I was already preparing to make a similar removal tool, but it's fascinating to know the thing's function. Yes, there is a bit of stiff sludge around the shaft and locknut, but very little. I'll attempt the toolmaking this weekend, and hopefully be up and running by Monday. The 6.5km walk home from the bus stop is getting a little annoying.
|
|
|
|
|
but, these Germans can show the world a thing or two - this message is coming to you from 22,000+ feet, 'somewhere over India' via a WiFi Hotspot in business class connected to the rest of the world by Satellite
(so Ive typed up my work notes and uploaded them)
Now all I need is for Germany/EU never to outsource their computers in Microsoft and Intel again - we were 2 hours late getting off the ground due to a number of reboots required on a computer and its backup - so it was back off the runway and to a maintenance zone we went - not happy, going to miss my connection tonight from Frankfurt to Florence I reckon
(ok, I don't know if they actually use Intel/Microsoft on an A340-600, but it makes for a good story)
btw, thanks to all those who chipped in about Bangkok - don't know what all the fuss was about on TV, the coup certainly didn't affect day to day life for us tourists - the limo sped past a roadblock on the way in but the soldiers wernt interested - and I'd forgotten how polite and nice the Thai people are
ttfn - a g&t beckons
|
|
|
|
|
Glad to hear you made it through Bangkok without incident.
Garth J Lancaster wrote: the coup certainly didn't affect day to day life
Not yet at least. Thailand has the military coup d'etat down to a science.
The problems arise only if it looks like the military does not want to transition to an elected government. The election will probably be set for a year from now but that is okay as long as it is scheduled to occur.
It is kind of amazing how life goes on pretty much as usual even with soldiers stationed on the streets. This is my second Thai coup d'etat and I am amazed how peaceful they are here. I wouldn't want to be in a coup d'etat in any other country that has less experience.
Garth J Lancaster wrote: I'd forgotten how polite and nice the Thai people are
Amazing Thailand.
Once you lose your pride the rest is easy.
The report of my death was an exaggeration - Mark Twain
Simply Elegant Designs JimmyRopes Designs
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
No worries, as long as you get your sleep[^] I guess
|
|
|
|
|
Even if the computers were such, it's more than likely the software as the culprit. But, hey, why let facts cloud narrative. You're as bad as Hollywood!
|
|
|
|
|
Glad to hear you had a safe trip.
Veni, vidi, vici.
|
|
|
|
|
mio amico (I would have said 'mi amici'), its only just begun - Im in bella Toscana with my father this week, next week we are cycling from Venezia to Firenze
|
|
|
|
|
Wonderful, have a good time here in Italy!
Where are you going to stay in Tuscany?
Form Venezia to Firenze is a bit long ride, how many kilometers per day are you going to cycle?
--Carlo the curious cyclist
Veni, vidi, vici.
|
|
|
|
|
In Toscana, We are using place in Montieri 'Rifugio Prategiano' - we had a booking for here 3 years ago and had to cancel at the last minute as my mother needed a stomach rebuild - but they kept our deposit saying we could use it 'next time' - so, here we are, except then they grudgingly let us use the deposit because this stay isn't as long as we had planned to last time, nor does it involve bikes like we were going to use 3 years ago (the revised trip & cycling component this time has the Venice-Florence cycle trip in it) - as far as Im concerned, they can bite me about the deposit
So, Venezia -> Firenze
Day 1 : 35km, Venice - Chiogga
Day 2 : 45km, Chiogga - Adria
Day 3 : 45km, Adria - Comacchio
Day 4 : 65km, Comacchio - Ravenna
Day 5 : 55km, Ravenna - Brisighella
Day 6 : 35km, Brisighella - Firenze
==================
280km
after this, I chaperone a friend for week in Paris, before cycling in 2 weeks Provence, incl Mt Ventoux, then have 8 days cycling in the UK, then a slack week not cycling - working, in Germany
|
|
|
|
|
Wow, we have to ride together somewhere, someday!
Veni, vidi, vici.
|
|
|
|
|