How to use EDID when it occasionally returns wrong characters - edid

Folks,
Environment: Ubuntu 12.04 minimal + openbox.
In our C-based application, the information can be displayed only on approved display devices. We rely on EDID to get the information for the connected display device.
Everything works as expected. However, occasionally EDID returns us some garbled characters. For example, SAMSUNG may come out as SAMSyNG.
The programming logic to obtain EDID information is straightforward. It makes me feel that EDID itself is not as reliable. I am wondering if anyone else has faced such a problem and what you have done programmatically to overcome the problem.
Thank you in advance for sharing your thoughts.
Regards,Peter

Related

Which is the best way to have a jupyter server running for long time?

First question to gain some privileges...
I hope someone can answer it, maybe some links where I could find the info would be great, or the reason why is not a good idea hehe!.
I've tried running it as a service and worked like a charm for around 2 weeks, but then I encountered an issue whose responsible I haven't found.
Nevertheless, this one is a nice guide:
https://naysan.ca/2019/09/07/jupyter-notebook-as-a-service-on-ubuntu-18-04-with-python-3/

How to specify gender in Google Cloud Translation API

I am using Google Cloud Translation API in one of my projects. I want to specify the gender for the translation. I am unable to find about this in Google Cloud Translation. I have also searched a lot on the Internet but not found any way to do this. I know how to specify the gender in Google Text to Speech API using the SSML, but I need it for the translation. Any help will be highly appreciated.
After much searching I have discovered that there is currently no way to do this.
I have made a feature request along these lines at the invitation of GCP support.
The documentation indicates that feature requests are prioritised by how often an issue is starred, so for now my best answer is to star the issue here so that they know how many people are interested in this.
Looking for the same...
As it is NMT (Neural Machine Translation), it reacts to context.
I tried many combinations and found that this works well so far (says, not 'to', not 'talk').
Examples are EN > ES
However, sometimes its effect doesn't reach far in the translation.
So you have to stick the 'prefix' before each sentence.
Sometimes you get irregular behavior (see lower case "estoy"). And when you change something irrelevant (to you, but not to the model) ... buala!
So the final version (for now) is:
I guess the point is:
Understanding how it works (Machine Learning Language Models)
The Model (Algorithm) they use is evolving, so you need to keep an eye, as what works today may break tomorrow.
Once you get the response you will have to filter out you 'prefix', but that is not too difficult.
Please comment if you find better ways (or the API gets updated).
Related info: https://ai.googleblog.com/2018/12/providing-gender-specific-translations.html

What's MBR offset 0x1C3 and how can I edit it?

I posted this question on another website but no one was able to help me there until a user suggested I posted this question here. So...
My SSD has some trouble POSTING on my old GA-P35-DS3 motherboard if I try to use the Intel controller.
Apparently (after much googling) I found this is a bug on the BIOS that can be fixed by some quick editing of the MBR. The trouble is, I have no idea how I can go about doing this. I tried 010 Editor and HxD but I'm completely overwhelmed and, although I am able to open the disk, I can't find that particular "offset" (0x1C3).
If you are curious this post describes my issue (scenario 1) and the required steps to fix it: http://forum.giga-byte.co.uk/index.php?topic=8585.0
So, if someone could help me figure what an "offset" is and how I can find it with 010 Editor (or any other program you see fit) so I could fix these byes I would very much appreciate it! :)
EDIT: I've been looking around and I'm a bit confused if I should change these bytes:
http://i.imgur.com/Ys0gU3O.png
Or these bytes:
j59ypS5.png (I need more rep to post the second like so you can just copy-paste this into the imgur URL)
Judging by its content the first option doesn't seem to make sense. But since the second option is only "00 00 00" for I don't know if it makes any sense either...
If someone could please help me I'd be forever grateful.
Well.. I was able to figure it out by myself so I'll leave the answer here in case someone faces the same issue in the future.
1) I was opening a logical drive instead of a physical unit. That's why what I was seeing wasn't meeting my expectations.
2) I thought the "offset" was only referenced by the column by the left but no. Ox1C3 actually includes the column number as well. So I had to change the three bytes including 0x1C3 (0x1C4 and 0x1C5).
That was pretty much it. After that I saved the changes and rebooted my machine and after changing the SATA port everything was working as expected.

"Selling" trac/buildbot/etc to upper management

My team works mostly w/ Flex-based applications. That being said, there are nearly no conventions at all (even getting them to refactor is a miracle in itself) and the like.
Coming from a .NET + CruiseControl.NET background, I've been aching to getting everyone to use some decent tracking software (we're using a todo list coded in PHP now) and CI; I figured trac+BuildBot would be a nice option.
How would you convince upper management that this is the way to go, as well as some of the rules mentioned in this post? One of my main issues is that everyone codes without thinking (You'd be amazed at the type of "logic" this spawns...)
Thanks
Is there anything you could do now that wouldn't require permission from anyone else? Could you start by just using trac/buildbot/etc for just your own work, then add in others as they are interested?
In my experience you can get quite far by doing w/out asking.
Tell the management that they'll be better able to keep their eye on progress with such a tool.
Are there specific benefits to the route that you're suggesting that you could show them without them having to buy in?
I had an experience with getting my team to accept a maven + cruisecontrol CI setup. Basically I tried to get them to go along with it for a few days and they kept balking because it was unfamiliar. Then I just did it on my own and had all broken builds emailed to the mailing list. That night the project lead made a check in that broke the build (he just forgot a file) and, of course, everybody was emailed with his screw up.
The next day he came over to me and said, "I get it now."
It required no effort from him to get involved and got to see the benefits for free.

Multi-user Snippet Manager

Currently, we're using a wiki at work to share insights, tips and information. But somehow, people aren't sharing snippets that way. It's probably too inconvenient to write and too difficult to find snippets there.
So, is there a multi-user/collaborative snippets manager around? Something like Snippely. (Has anyone tried Snippely in multi-user mode?)
Since we're all on the same site, it would probably be best if it used mapped network drives or ODBC instead of its own server process.
Oh, and it has to support Unicode and let us choose any truetype font. We're using the hideous APL language, which uses special characters.
It would be nice if it didn't cost money, so I wouldn't have to convince management to pay for it as well as the other developers to use it.
Pastebin is a common solution to this. Just install somewhere on your network, then paste snippets. http://pastebin.com/
Works well when trying to debug a piece of code, or stack trace also.
There's Snip-it pro ( http://www.snipitpro.com ), I looked at it a while back, and the interface seemed to be pretty horrible. It's 40 bucks / seat, which is not too bad. Last time I was looking for a tool like that I found nothing at all, and I found that it's very hard to get my co-workers to start using snippet libraries - everybody is happy to google it or search their old codebases. These days I use Evernote for all of my own snippeting needs.

Resources