iso

python: edit ISO file directly

本小妞迷上赌 提交于 2019-11-30 15:47:09
Is it possible to take an ISO file and edit a file in it directly, i.e. not by unpacking it, changing the file, and repacking it? It is possible to do 1. from Python? How would I do it? Of course, as with any file. It can be done with open/read/write/seek/tell/close operations on a file. Pack/unpack the data with struct/ctypes. It would require serious knowledge of the contents of ISO, but I presume you already know what to do. If you're lucky you can try using mmap - the interface to file contents string-like. Have you seen Hachoir , a Python library to "view and edit a binary stream field by

ECMAScript 5 Date.parse results for ISO 8601 test cases

天大地大妈咪最大 提交于 2019-11-30 15:44:07
What result is right for the following test cases? //Chrome 19 Opera 12 Firefox 11 IE 9 Safari 5.1.1 console.log(Date.parse("2012-11-31T23:59:59.000Z"));//1354406399000 NaN NaN 1354406399000 NaN console.log(Date.parse("2012-12-31T23:59:59.000Z"));//1356998399000 1356998399000 1356998399000 1356998399000 1356998399000 console.log(Date.parse("2012-12-31T23:59:60.000Z"));//NaN NaN NaN NaN 1356998400000 console.log(Date.parse("2012-04-04T05:02:02.170Z"));//1333515722170 1333515722170 1333515722170 1333515722170 1333515722170 console.log(Date.parse("2012-04-04T24:00:00.000Z"));//NaN 1333584000000

Why a variable can't be defined twice in 2 files in C

家住魔仙堡 提交于 2019-11-30 10:58:45
Why can't I have int a; in 2 C files. I intend to combine both to make executable. I know from experience that I can't, but I want to find where the standard C99 says this and seal my understanding. I am reading ISO C99 standard from http://www.open-std.org/jtc1/sc22/wg...docs/n1256.pdf . It says on page 42: 6.2.2 Linkages of identifiers 1 An identifier declared in different scopes or in the same scope more than once can be made to refer to the same object or function by a process called linkage.There are three kinds of linkage: external, internal, and none. 2 In the set of translation units and

Does the C++ standard specify that for some cases the compiling should fail with an error?

浪子不回头ぞ 提交于 2019-11-30 07:47:52
问题 I'm checking the standard about narrowing conversion, and I think for a narrowing conversion an error should be triggered. Because the standard says: [ Note: As indicated above, such conversions are not allowed at the top level in list-initializations. — end note ] I think the description of "not allowed" means the compiling should fail. But someone told me that here just says "the program is ill-formed", and the standard won't require that compilation must fail. if a narrowing conversion

Camera ISO setting/ shutter speed

隐身守侯 提交于 2019-11-30 07:07:11
I am looking for a way to change the light sensitivity of my Evo 4G camerea. I know it is not the camera's shutter speed because it is a digital camera. The next most relevant aspect is the ISO setting, but the Android SDK does not have a way to manipulate it. Does any one know an alternative? i.e scene mode, exposure or effects **parameter.set("iso", int) sets the iso. Does anyone have the run down on what scene mode values represents? Thanks for the input. I have looked over those pages numerous times. I was looking for a function similar to parameter.set("iso", int) because this function

Is C++03 a new version of the C++ Standard or just a Technical Corrigendum (TC) of C++98?

痴心易碎 提交于 2019-11-30 06:34:26
I'm pretty sure I read on an authoritative source somewhere (I believe it was on the WG21 pages) that C++03 was not a technical corrigendum of C++98 but that it was a new release of the C++ Standard. But nontheless I see only -std=c++98 switch in GCC and others compilers and Alf P Steinbach made a few comments hinting at that it may indeed be a TC of C++98. So when I'm writing about "C++03", does it suffice mentioning C++98? As a related question, is it even wrong to use the term "C++03"? Because I think if it is really C++98 TC1, then it seems to me it cannot be called C++03. Just as I've

In an ISO 8601 date, is the T character mandatory?

拜拜、爱过 提交于 2019-11-30 05:40:32
I'm wondering if the following date is ISO8601 compliant : 2012-03-02 14:57:05.456+0500 (for sure, 2012-03-02T14:57:05.456+0500 is compliant, but not that much human readable !) IOW, is the T between date and time mandatory ? It's required unless the "partners in information interchange" agree to omit it. Quoting the ISO 8601 standard , section 4.3.2: The character [T] shall be used as time designator to indicate the start of the representation of the time of day component in these expressions. [...] NOTE By mutual agreement of the partners in information interchange, the character [T] may be

iOS 7 UISearchDisplayController search bar disappears

落花浮王杯 提交于 2019-11-30 05:09:44
I was recently updating my app and came across this issue. When i start typing in the search bar the search bar disappears and i can only see the table view. I can still keep on typing and the table view gets updated but i cannot see the search bar. Same settings works fine on iOS < 7 Any idea why this is happening ? A little late, but I've encounter the same problem just recently. I wanted the search bar to be visible and active through all of the search, so the dimmed view, which overlaid it, was a big problem. For me the only thing that worked was changing the frame of the dimmed view

How should jPOS be configured/used in a prod environment?

匆匆过客 提交于 2019-11-30 04:58:02
问题 At my current company we are considering using jPOS to do our ISO 8583 integration with other systems. I've been reading the free documentation for a while, but I still have a lot of gaps. For instance: How is jPOS supposed to work in prod? Should I just start a Q2 server and it would act like and endpoint receiving or sending ISO8583 messages? How am I suppose to integrate that with my application server? In which cases and how should I use the jPOS Space? My basic use case is send/receive

C# HtmlEncode - ISO-8859-1 Entity Names vs Numbers

懵懂的女人 提交于 2019-11-30 03:00:55
问题 According to the following table for the ISO-8859-1 standard, there seems to be an entity name and an entity number associated with each reserved HTML character. So for example, for the character é : Entity Name : é Entity Number : é Similarly, for the character > : Entity Name : > Entity Number : > For a given string, the HttpUtility.HtmlEncode returns an HTML encoded String, but I can't figure out how it works. Here is what I mean : Console.WriteLine(HtmlEncode("é>")); //Outputs é> It seems