Is the current number of confirmations visible somewhere in the raw block?


Some API calls are available with CORS headers if you add a &cors=true paramter to the GET request

Please limit your queries to a maximum of 1 every 10 seconds. All bitcoin values are in Satoshi i.e. divide by 100000000 to get the amount in BTC


getdifficulty - Current difficulty target as a decimal number getblockcount - Current block height in the longest chain latesthash - Hash of the latest block bcperblock - Current block reward in BTC totalbc - Total Bitcoins in circulation (delayed by up to 1 hour]) probability - Probability of finding a valid block each hash attempt hashestowin - Average number of hash attempts needed to solve a block nextretarget - Block height of the next difficulty retarget avgtxsize - Average transaction size for the past 1000 blocks. Change the number of blocks by passing an integer as the...
0 0

setUserVisibleHint() gets called sometimes before onCreateView() and sometimes after which causes trouble.

To overcome this you need to check isResumed() as well inside setUserVisibleHint() method. But in this case i realized setUserVisibleHint() gets called only if Fragment is resumed and visible, NOT when Created.

So if you want to update something when Fragment is visible, put your update function both in onCreate() and setUserVisibleHint():

@Override public View onCreateView(...){ ... myUIUpdate(); ... } .... @Override public void setUserVisibleHint(boolean visible){ super.setUserVisibleHint(visible); if (visible && isResumed()){ myUIUpdate(); } }

UPDATE: Still i realized myUIUpdate() gets called twice sometimes, the reason is, if you have 3 tabs and this code is on 2nd tab, when you first open 1st tab, the 2nd tab is also created even it is not visible and myUIUpdate() is called. Then when you swipe to 2nd tab, myUIUpdate() from if...

0 0


Interface name:





float LeftExtend

float RightExtend

float TopExtend

float BottomExtend

float FrontExtend

float BackExtend

bool DetectPlayers

bool DetectFloatingObjects

bool DetectSmallShips

bool DetectLargeShips

bool DetectStations

bool DetectAsteroids

bool DetectOwner

bool DetectFriendly

bool DetectNeutral bool DetectEnemy

IMyEntity LastDetectedEntity

Terminal properties:

Left -> Single

Right -> Single

Bottom -> Single

Top -> Single

Back -> Single

Front -> Single


OnOff->Toggle block On/Off

OnOff_On->Toggle block On

OnOff_Off->Toggle block Off

IncreaseLeft->Increase Left extent

DecreaseLeft->Decrease Left extent

IncreaseRight->Increase Right extent

DecreaseRight->Decrease Right...

0 0


I'm considering building a realtime ASP.NET application on IIS6, that'll need to support about 3,000 simultaneous users on a server, each with a keep-alive HTTP connection for "server push."

The HTTP connection will need to stay open for the duration of the user's session, to allow updates to be pushed to the browser in near real time.

My question is, is this technically feasible on IIS6, particularly with the large number of connections? If it's possible, are there any special considerations to get it to work?

Thanks in advance.


Yup, IIS6 can easily handle 3,000 concurrent keep-alive connections, assuming you:

Have sufficient HW resources (like RAM) on the system
Reconfigure the system (i.e. tweak any applicable limits)
Run scalable user software that handles the user load (i.e. uses asynchronous IO, not necessarily multi-threaded, has appropriate caches, etc)

Windows Server 2003 and...

0 0

Hi, I'm trying to make a section of code that runs with a certain number of MKL threads without affecting the number of MKL threads used in other sections of the code. To do this I want to store the status of the MKL_DYNAMIC and the MKL_NUM_THREADS parameters at a given moment in time.

I know that I can use the calls mkl_set_num_threads and mkl_set_dynamic to define the number of threads used by MKL, and that there's a mkl_get_dynamic() call, however there's no mkl_get_num_threads(), there's only a mkl_get_max_threads().

Why is it a max and not a num? Is there a way to get the current number of mkl threads? Is it reliable to use the omp_get_num_threads to know this?

Thanks for your...

0 0

This chapter discusses the Oracle built-in datatypes, their properties, and how they map to non-Oracle datatypes.

This chapter includes the following topics:

Introduction to Oracle Datatypes

Each column value and constant in a SQL statement has a datatype, which is associated with a specific storage format, constraints, and a valid range of values. When you create a table, you must specify a datatype for each of its columns.

Oracle provides the following categories of built-in datatypes:

The following sections that describe each of the built-in datatypes in more detail.

Overview of Character Datatypes

The character datatypes store character (alphanumeric) data in strings, with byte values corresponding to the character encoding scheme, generally called a character set or code page.

The database's character set is established when you create the database. Examples of character sets are 7-bit ASCII (American Standard Code...

0 0
0 0
0 0

Sony has just announced that its latest cameras will gain the option to shoot uncompressed Raw files. The move comes in response to user feedback (and, we're told, our efforts to communicate this feedback to the company's senior management), and provides a choice between shooting the with the existing two-stage lossy compression or an uncompressed Raw file. Given the interest that was generated when we detailed the effects of Raw compression, we thought it was equally important to make clear the benefits of the newly-added uncompressed Raw option.

What difference does this make?

When we explained the impact of Sony's compression on Raw files, we said the localized second stage of the compression was the aspect that was most visually destructive and, sure enough, this is where the benefit to shooting uncompressed Raw is seen.

The removal of the localized compression of 16-pixel blocks means the files no longer introduce errors and artefacts around high-contrast...

0 0

I am using mssql with laravel 5.1, and I know Laravel can do this:

$num_of_updated_records = DB::update(DB::raw('UPDATE [dbo].[myTable] SET selection=1 WHERE id IN (1,2,3)')); $updated_record_ids = DB::select(DB::raw('SELECT id FROM [dbo].[myTable] WHERE selection=1'));

But it will hit the DB 2 times.

What if I want to do this to avoid hitting the DB twice:

DECLARE @MyTableVar table(selected_id bigint NOT NULL) UPDATE [dbo].[myTable] SET selection=1 OUTPUT INTO @MyTableVar WHERE id IN (1,2,3) SELECT selected_id FROM @MyTableVar

DB::select() will just return empty array.

DB::statement() will just return true.

DB::update() will only return integer 3.

Does Laravel have a function for such query to return the data from that last select of the temp...

0 0

I know it looks like there's a status bar, but there really isn't one - that's just empty space in the autohiding pad area. If you close the "Errors" and "Search Results" pads, that area will disappear almost entirely. That fact that it doesn't disappear quite entirely is a minor bug...

During the design cycle for XS, we did discuss maybe having a small overlay in the bottom right of the text editor but in the end we realized that the major use case was the current line number, and most users turn line numbers on, in which case the line number in the status bar was pretty much redundant. We also realized that the major uses for column numbers was navigating to specific locations and wrapping, for which there are better solutions. In the end there just wasn't enough of a reason to do all the designs, prototypes, implementations etc to put it back in a reasonably polished form, instead of working on more important areas. Sorry!

This is anecdotal, but you're literally...

0 0

Got round to trying out RC7 and after resetting the profile and fiddling around a bit it works really nicely now for arma3 :)
A couple of comments/issues: -

Something is still not right with the autocalibration, if I autocalibrate it results in -119x / -162y / 125z and a whole lot of Tx and Tz motion when yawing. If I manually calibrate to 115x / 60y / -40z it works just about perfect with very little if any cross axis motion. The 60y seems to put the centre of head rotation way higher than it actually is (about 30-40mm above my ears) but if I set it to the -60 that is actually closer to reality it I get Tz motion when pitching.

The accela filter values seem to affect the output far more now, I have to have smoothing set to approximately 15% otherwise I suffer large lag on translations (but curiously not on rotations although both are set the same). I find normal spiking reduction to work perfectly well.

Compensation doesn't seem to work 100%, whilst it...

0 0

If you have sent a bitcoin payment in the last couple of weeks, you may have noticed that your transactions are taking much longer than expected to confirm.

We have received your emails.

Since, like the Bitcoin network, we are currently working through a backlog, we want to thank you for your patience. With the high volume of questions we're getting about delayed payments, we decided it would be best to write a short explanation about what's happening with many bitcoin transactions right now.

Transactions on the Bitcoin network itself aren't controlled or confirmed by BitPay, but by the bitcoin miners which group transactions into "blocks" and add those blocks to the Bitcoin "blockchain" – the shared historical record of all transactions. When a transaction has been added to a block six blocks ago, it's considered a done deal.

Currently, bitcoin network traffic is unusually high due to increasing demand for transactions per block. Block sizes are...

0 0