C programming (Linux) - General Questions and Answers

Hi,
I need to make a program that calculates a Vandermonde determinant.
I have the code but I don't know how to do it...
Basically you have to modify the program attached and make an auxiliar function that calculates the inverse of a matrix... I the instructions to do, but they're in Spanish, so I don't know if any of you coud help...
Thanks

Related

Short translation needed from chinese to english (relating to firmware)

Hi, i've been making some efforts to getting access to the Radio ROM for manipulation of NVRAM parameters, etc. in newer HTC MSM devices (raphael, rose, blackstone, xperia, quartz, etc.)
The bit of text I need translated is very technical and so automated translators don't really get the point across.. i'm hoping someone who speaks chinese natively may be able to shed some light on the situation.
"Enable" = dword:1 ; 2007/10/19 : Windiag 荤侩 蜡公, QPST server肺 SYN阑 傈价秦辑 惯凯 棺 傈幅家葛俊 康氢阑 淋. 荤侩磊茄抛绰 0栏肺 唱皑
I duno if that'll paste properly or not, but that's it..
Thanks in advance for any help.

Decompiling Dalvik to Java, why so many inconsistencies?

I used dex2jar and JD-gui on the dex file of an application, although at several parts of the code, it did not make sense and there were error in term of decompilation.
Although when I used backsmali on the dex file, the code was correct but I would prefer to read Java code than Smali to understand how a big app works.
First of all, why so many inconsistencies in the Java code? Is this a problem with dex2jar or JD-gui? Any other alternatives?
Thanks.
Mainly because you're converting from dalvik (which is not quite the same as normal java byte code) and then decompiling that. Aside from that, the the tools in question are not totally bug free and complete. I know dex2jar had some open issues last I checked and I dont think the underlying layer to DJ-gui has been updated a ton in some years (JAD).
Perhaps try thinking of it this way--take something in English, convert it to Mandarin Chinese, convert it to Russian and then back to English. Do you think it will look 100% the same if done by a computer translation?
Converting between them is just a guide to avoid having to suffer through reading the byte code directly, but not a replacement for it 100%
In your pasted code it thinks that a goto is a loop (GOTOs or jumps being the standard way to move around code in assembly like languages). My guess is it takes much more complexity to figure out if the jump is a conditional statement or a loop and that's why it does not translate it in the way a human would intend it to be.

[Q] how execute/apply xml file?

Hello,
I have a lot of problems with omnia 7 due to app profile network of samsung haven´t got the profile of my operator. I can set it thanks to a post of here, but I think that it is a bit difficult and you need the computer to set it. As I have studied some of programming c#, I decided to make an app that set mms and internet. I have already done the screen and I´ve get to make that app create the file xml with the code in order to set mms and internet, but I haven´t found information about how execute/apply the file xml with the app. Where can I find about it?
PD: Sorry, I do not control English very well
Hi,
I guess it's a topic a bit complex, but can not someone help me with this?
You use an OEM COM interface, accessed from C# by using Microsoft.Phone.InteropServices.ComBridge. One easy way to see how this is done is to look at the source of an app that does it. If you can't get the source to DiagProvXML, you could always just decompile it (decompiling .NET code is pretty easy and there are several tools that can do it). There are several other apps that also use provxml; one or more of them may offer source access.
Hi,
Thank for your help and I can select the services that I have load, but I have a small problem that I hadn't taken into account. I know c# but my apps are a lot of more easy that diagprovxml, and I can´t find the part of program that I´m interested. I use "JustDecompile" to decompile the app. Could you tell me what class(or classes) is (are) what I'm looking for?
Thank you very much again
Hmm... it's not linked in my SIG because it's out-o-date, but you could try using Search to find my old DeployProvXml app. It includes a pretty straightforward example of using provxml.
Essentially, you need the following things:
The interopservices DLL (allows you to use the ComBridge class).
The OEM DLLs (DMXMLCOM.dll and such).
COM class and interface definitions for them in C# (this is the stuff with the [ComImport] attributes and the GUIDs).
ID_CAP_INTEROPSERVICES in your WMAppManifest.
WPInteropManifest.xml file in your project.
Use the ComBridge to register the COM interfaces, then create an instance of the COM class(es), cast to the appropriate interface type(s), and use a variable of the interface type like any other .NET object.
You can read a bit more about COM and native code in Heathcliff74's guide. It's aimed at making your own native libraries, so skip all the stuff about creating your own COM classes and writing native code. http://forum.xda-developers.com/showthread.php?t=1299134
Hi again, Does the method WP7RootToolsSDK.Environment.ProcessConfigXml allow to set the parameters that have a tipical xml file?
thank you again
I'm not sure what you mean by "set the parameters" but the Root Tools SDK does in fact allow you to consume ProvXML files now (I think it even supports the query provXML and returns the output, though I haven't tried).

Creating Recovery for the blind users.

Hi guys!
We would like to raise this issue and to make
recovery mode available for blind users.
An example is the project SpeakUp to nix systems.
At the moment, the blind user interaction with the regime recovery
only possible only on guess.
I am familiar with the languages ​​of c / c ++,
but never before did not write at such low levels.
Since the Recovery has its own full-fledged core
I think that it is possible to do.
I see the following steps:
1. You need to add the audio driver in recovery,
and load it at boot recovery.
2. Write a simple speech synthesizer,
that will take a string to collect sounds and output them to audio.
3. Fix the navigation interface,
so when you go to another point corresponding string is sent to the synthesizer.
For realization want to take cwm.
Again such a low level of new to me,
and I'll be grateful for any help and advice.
P.S. Excuse me for my english ...
This is not my native language.

Extract UI strings from firmware / device

Hi.
Before I start with my question, just a little background. I work in a user guide development firm, and mainly work on Galaxy devices.
One of the most time-consuming process in my work is to match all UI strings (app names, menu text, labels, etc) of the actual device with the user guide.
This is currently being done with human power, with a staff looking at the user guide, check the device if this is correct, and annotate the draft PDF if the UI strings don't match.
If this was for just one language, it's doable. But with 40 or so languages (including Arabic, Cyrillic, Chinese), it definitely makes me want to puke.
This is a very tiring, eye-straining work that I'm trying to resolve, for everyone's sake.
I tried decompressing the Galaxy firmware myself, but the XML data is encoded into binary(for what reason I have no idea), and is not readable.
So now I'm turning to the masters and hope for any luck.
What I would like to know is ...
Hack the Galaxy firmware(md5), and extract UI strings for all language and save in spreadsheet or something, or
Mirror the device's screen on the desktop, copy the desired UI string, and paste it to a desktop application(e.g. Adobe Acrobat).
If the first option is possible, then I can utilize the data for some sort of automation, and would be the best.
If the second option is possible, then I would no longer have to type all kinds of foreign characters(this is also a very time-consuming work), and make some progress in timeline.
If all options are not possible, and there's absolutely no way of automating this process, then well... I guess I'll go see the eye doctor more often than now.
Any ideas or helps would be great.
Thank you.

Categories

Resources