Pages:
Author

Topic: [BTC-TC] Virtual Community Exchange [CLOSED] - page 60. (Read 316457 times)

hero member
Activity: 630
Merit: 500
Bitgoblin
I'm not sure how exactly to filter that... in the db interface it looks like this:

We�have�received�our�sample-PCB�and�it�is�being�tested�in�every�aspect.�

Really strange.
Keep the database in unicode, and use CSS property `overflow-x:hidden;`
legendary
Activity: 1946
Merit: 1035
@burnside: why not str_replace(" ", " ", $news_text); ?

because...:


I'm not sure how exactly to filter that... in the db interface it looks like this:

We�have�received�our�sample-PCB�and�it�is�being�tested�in�every�aspect.�

Really strange.

I think the real technical issue behind this is could be a headache to back trace.

As far as I have experienced, � appears as a sign of a stream decoding error while parsing (supposedly broken or corrupted) Unicode, especially through a database with certain settings. I believe it may be related to a special CJK whitespace character that is rendered as a non-breaking space, but it is not the HTML entity. And it probably appears as � in your DB backend.

Best real world solution IMO: copy and paste in a Unicode supporting text editor, and search & replace the offending whitespace with the standard U+0020

Cheers

EDIT: In TextWrangler, there is this wonderful command called "Zap Gremlins", which does exactly what we want here, i.e. convert every strange thing into plain old regular straight ASCII Grin

You may want to used the sanitized quote:

Quote
We have received our sample-PCB and it is being tested in every aspect. Everything s running well so far. ( Mass production of PCBs will start later and can be finished within one week in Shenzhen)

We also dealed with an acquaintances packaging factory to shorten the Package period from 10days to 3days. I.E. we will get our chips in hand only 3-4 days later after out of  Fab.

We will hold a meeting next weekend in Beijing to discuz our future plans incl.: 2nd gen chips, deployment plans for 1st gen chips, application of analog circuit  in our project , a lot of experts both on R and D have been invited.
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
@burnside: why not str_replace(" ", " ", $news_text); ?

because...:


I'm not sure how exactly to filter that... in the db interface it looks like this:

We�have�received�our�sample-PCB�and�it�is�being�tested�in�every�aspect.�

Really strange.
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
Bingo! Wink

Quote
[02:11:28] 1 ASK ACTIVEMINING @ 0,1
{"status":"success","response":"Received Ask Order: 1 of ACTIVEMINING @ 0.1 BTC: Placed Sale Order #959414: 1 @ 0.1 BTC.

"}

[02:11:16] 1 BID ACTIVEMINING @ 0,0001
{"status":"success","response":"Received Bid Order: 1 of ACTIVEMINING @ 0.0001 BTC: Placed Purchase Order #959404: 1 @ 0.0001 BTC.

"}

Sweet.  Moved it from oauth/trade_new to oauth/trade.  Thanks again!
legendary
Activity: 1106
Merit: 1026
Bingo! Wink

Quote
[02:11:28] 1 ASK ACTIVEMINING @ 0,1
{"status":"success","response":"Received Ask Order: 1 of ACTIVEMINING @ 0.1 BTC: Placed Sale Order #959414: 1 @ 0.1 BTC.

"}

[02:11:16] 1 BID ACTIVEMINING @ 0,0001
{"status":"success","response":"Received Bid Order: 1 of ACTIVEMINING @ 0.0001 BTC: Placed Purchase Order #959404: 1 @ 0.0001 BTC.

"}
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
Well, I would.. I think it's essential to get the lock error resolved. Smiley

Quote
[01:31:02] 1 ASK ACTIVEMINING @ 0,01
{"status":"error","error_message":"Received Ask Order: 1 of ACTIVEMINING @ 0.01. Received Ask Order Request: 1 @ 0.01 BTC
\nExcessive wait trying to get lock on ACTIVEMINING."}

[01:30:10] 1 BID ACTIVEMINING @ 0,1


[01:30:02] 1 ASK ACTIVEMINING @ 0,1
{"status":"error","error_message":"Received Ask Order: 1 of ACTIVEMINING @ 0.1. Received Ask Order Request: 1 @ 0.1 BTC
\nPlaced Sale Order #957742: 1 @ 0.1 BTC.\n"}

[01:29:50] 1 BID ACTIVEMINING @ 0,0001
{"status":"error","error_message":"Received Bid Order: 1 of ACTIVEMINING @ 0.0001. Received Bid Order Request:  1 @ 0.0001 BTC
\nPlaced Purchase Order #957724: 1 @ 0.0001 BTC.\n"}

But order ids show up. That's really a good thing. Wink

Ok, I think I figured it out.  Round #3?

BTW.  Thanks a bunch for helping like this.  Wink Wink
sr. member
Activity: 493
Merit: 262
The order # is in the response string.
Thanks, haven't noticed that. Should be fine for now.
legendary
Activity: 1106
Merit: 1026
Well, I would.. I think it's essential to get the lock error resolved. Smiley

Quote
[01:31:02] 1 ASK ACTIVEMINING @ 0,01
{"status":"error","error_message":"Received Ask Order: 1 of ACTIVEMINING @ 0.01. Received Ask Order Request: 1 @ 0.01 BTC
\nExcessive wait trying to get lock on ACTIVEMINING."}

[01:30:10] 1 BID ACTIVEMINING @ 0,1


[01:30:02] 1 ASK ACTIVEMINING @ 0,1
{"status":"error","error_message":"Received Ask Order: 1 of ACTIVEMINING @ 0.1. Received Ask Order Request: 1 @ 0.1 BTC
\nPlaced Sale Order #957742: 1 @ 0.1 BTC.\n"}

[01:29:50] 1 BID ACTIVEMINING @ 0,0001
{"status":"error","error_message":"Received Bid Order: 1 of ACTIVEMINING @ 0.0001. Received Bid Order Request:  1 @ 0.0001 BTC
\nPlaced Purchase Order #957724: 1 @ 0.0001 BTC.\n"}

But order ids show up. That's really a good thing. Wink
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
Can someone please test it at https://btct.co/oauth/trade_new ?  If it passes a few test runs, I'll move it into place.

Code:
[00:47:39] 1 BID ACTIVEMINING @ 0.00012:
{"status":"error","error_message":"Received Bid Order: 1 of ACTIVEMINING @ 0.00012. Received Bid Order Request:  1 @ 0.00012 BTC
\nPlaced Purchase Order 1 @ 0.00012 BTC.\n"} << Bid placed though.


[00:48:47] 1 BID ACTIVEMINING @ 0.12:
{"status":"error","error_message":"Received Ask Order: 1 of ACTIVEMINING @ 0.12. Received Ask Order Request: 1 @ 0.12 BTC
\nPlaced Sale Order 1 @ 0.12 BTC.\n"} << Ask placed though.


[00:49:12] 1 BID NOTAVAILABLE @ 0.15:
Error:

Invalid Ticker.


[00:50:27] 1 BID LABCOIN @ 1200,000000
{"status":"error","error_message":"Received Bid Order: 1 of LABCOIN @ 1200. Received Bid Order Request:  1 @ 1200 BTC
\nOrder failed.  This order would cost 1202.40000000.  Your balance is X.\n"}


[00:53:27] 1 BID LABCOIN @ 0,001600
{"status":"error","error_message":"Received Bid Order: 1 of LABCOIN @ 0.0016. Received Bid Order Request:  1 @ 0.0016 BTC
\nExcessive wait trying to get lock on LABCOIN."}


[00:54:18] 1 ASK DMS.SELLING @ 16,000000
{"status":"error","error_message":"Received Ask Order: 1 of DMS.SELLING @ 16. Received Ask Order Request: 1 @ 16 BTC
\nYou do not own any DMS.SELLING.\n"}

Edit:

Can't buy or sell right now. Either gets extensive lock or an empty result.


Thank you.  I adjusted the regex on the "Placed" orders.  Round #2?

The excessive waits I'm still working on... I know they suck.  Sad

legendary
Activity: 1106
Merit: 1026
Can someone please test it at https://btct.co/oauth/trade_new ?  If it passes a few test runs, I'll move it into place.

Quote
[00:47:39] 1 BID ACTIVEMINING @ 0,000120:
{"status":"error","error_message":"Received Bid Order: 1 of ACTIVEMINING @ 0.00012. Received Bid Order Request:  1 @ 0.00012 BTC
\nPlaced Purchase Order 1 @ 0.00012 BTC.\n"} << Bid placed though.


[00:48:47] 1 BID ACTIVEMINING @ 0,120000:
{"status":"error","error_message":"Received Ask Order: 1 of ACTIVEMINING @ 0.12. Received Ask Order Request: 1 @ 0.12 BTC
\nPlaced Sale Order 1 @ 0.12 BTC.\n"} << Ask placed though.


[00:49:12] 1 BID NOTAVAILABLE @ 0,150000:
Error:

Invalid Ticker.


[00:50:27] 1 BID LABCOIN @ 1200,000000
{"status":"error","error_message":"Received Bid Order: 1 of LABCOIN @ 1200. Received Bid Order Request:  1 @ 1200 BTC
\nOrder failed.  This order would cost 1202.40000000.  Your balance is X.\n"}


[00:53:27] 1 BID LABCOIN @ 0,001600
{"status":"error","error_message":"Received Bid Order: 1 of LABCOIN @ 0.0016. Received Bid Order Request:  1 @ 0.0016 BTC
\nExcessive wait trying to get lock on LABCOIN."}


[00:54:18] 1 ASK DMS.SELLING @ 16,000000
{"status":"error","error_message":"Received Ask Order: 1 of DMS.SELLING @ 16. Received Ask Order Request: 1 @ 16 BTC
\nYou do not own any DMS.SELLING.\n"}

Edit:

Can't buy or sell right now. Either gets excessiv  lock or an empty result.
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
I have 2 feature requests for the API:

1. Return Order ID in the response of submitting bid/ask
2. When excessive wait occurs, set status to fail and not success

To add to point 2, I believe an order placed while there is insufficient funds also returns a success, but with a response-message that contains the error.

Basically, as long as your request is well-formed and the security exists, a submit request will return a success, even though the order may not have been placed.

I've fixed both of these in the API response as best I could in a quick manner.  The order # is in the response string.  (sorry, the method that processes the requests only currently returns a string, so it's the only way I could get it in.)  The fail/success I have plugged in a regexp to detect one way or the other.  This is as good as it gets until I can reformat the underlying method call to return an array rather than just the single string.

Can someone please test it at https://btct.co/oauth/trade_new ?  If it passes a few test runs, I'll move it into place.

Cheers.

"Access temporarily denied" Huh

5-10 minute block for too many accesses too fast.  We're very aggressive with our DDoS protections.  We're more lenient if you are logged in.

Cheers.
sr. member
Activity: 392
Merit: 250
"Access temporarily denied" Huh
hero member
Activity: 728
Merit: 500
I have 2 feature requests for the API:

1. Return Order ID in the response of submitting bid/ask
2. When excessive wait occurs, set status to fail and not success

To add to point 2, I believe an order placed while there is insufficient funds also returns a success, but with a response-message that contains the error.

Basically, as long as your request is well-formed and the security exists, a submit request will return a success, even though the order may not have been placed.
sr. member
Activity: 493
Merit: 262
I have 2 feature requests for the API:

1. Return Order ID in the response of submitting bid/ask
2. When excessive wait occurs, set status to fail and not success
sr. member
Activity: 392
Merit: 250
So that's why BTCgardener is plummeting!  Cheesy
sr. member
Activity: 340
Merit: 250
GO http://bitcointa.lk !!! My new nick: jurov
@burnside: why not str_replace(" ", " ", $news_text); ?

because...:
Thats some amazingly formatted text

Honestly that only happens when people copy and paste formatting XD
That only happens when people don't check the result in other (not logged in) browser. Preview function would help, too.
legendary
Activity: 1806
Merit: 1090
Learning the troll avoidance button :)
@burnside: why not str_replace(" ", " ", $news_text); ?

because...:
Thats some amazingly formatted text

Honestly that only happens when people copy and paste formatting XD
sr. member
Activity: 493
Merit: 262
@burnside: why not str_replace(" ", " ", $news_text); ?

because...:
Thats some amazingly formatted text
hero member
Activity: 1008
Merit: 537
@burnside: why not str_replace(" ", " ", $news_text); ?

because...:
legendary
Activity: 1806
Merit: 1090
Learning the troll avoidance button :)

First future on BTC-TC introduced: https://btct.co/security/CB.IDIFF-O  Wink

Observes looks interesting enough proportional to difficulty increases
Pages:
Jump to: