|
hello guys...i wanted to ask that what sort of application can be built using beagle board(with linux installed on it)?? Using it, can they just be embedded or they can be for a different domain as well (just like the development on Windows using MS Visual Studio)??
|
|
|
|
|
From what I've gathered, the Beagle Board is a single board computer.
Muzammil Saeed wrote: i wanted to ask that what sort of application can be built using beagle board
As seen as the Beagle Board is a computer, your question is the equivalent of saying "What programs can I write for a computer?". Just use your imagination as to what you could write for it?
Unless of course I misunderstand the question.
Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science.
WYSIWYMGIYRRLAAGW: What You See Is What You Might Get If You’re Really Really Lucky And All Goes Well.
|
|
|
|
|
Lloyd Atkinson wrote: Unless of course I misunderstand the question.
English is not my first language so hope you don't mind it. It is a single board computer. If I install Ubuntu on it, can we make all the same programs using it, just like we do it using VS 2008 on windows (of course with Mono installed on Ubuntu)??
|
|
|
|
|
Hi
I'm trying to convert a python script from blender to C++. The script is used to import 3D data from a file.
Things have been going right until I got to this part of the script:
# Generate verts and faces lists, without duplicates
verts = []
coords = {}
index = 0
for f in faces:
if f: # Line might be blank
for i, v in enumerate(f):
try:
f[i]= coords[v]
except:
f[i]= coords[v] = index
index += 1
verts.append(v)
Since I don't know python, I need help to interpretate this part of the code.
|
|
|
|
|
Hi - since my C++ is a bit rusty, I'll give you a pseudocode representation of the snippet:
for each face in faces
do
if "face is not a blank line"
then
for i = 1 to length(face)
do
v = face[i]
if v is not in coords
then
coords.add_item(key=v, value=index)
index += 1
verts.append(v)
fi
face[i] = coords.get_item(key=v)
end for
fi
end for
I think that should be it. Hope it helps.
Meh, just saw the date on this post - but now I have already typed it, so might as well submit :P
|
|
|
|
|
It's ok! And thanks, it helped!
|
|
|
|
|
hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??
|
|
|
|
|
Try a Google search for Linux C C++ compiler, I'm sure you will find many possibilities. My personal favourites were gcc with vi/emacs as editors, but things have progressed since those dark days of the twentieth century.
It's time for a new signature.
|
|
|
|
|
thanx......sometimes im short of tech words for such questions.thanx
|
|
|
|
|
Emacs is one such tool that can be used as a compiler and editor.
But I would stick with vi as editor and gcc command line, which is far better than any of the tools
you get.
"I'm willing to admit that I may not always be right, but I am never wrong." - Samuel Goldwyn
|
|
|
|
|
|
Eclipse/CDT is fairly easy to get to grips with if you're used to IDEs.
Anna
Tech Blog | Visual Lint
"Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"
|
|
|
|
|
Just use vi editor to create text file and save it with extension ".cpp"
Now compile it with "gcc <filename.cpp>". Then run it with "./a.out".
-By Ajay Kedare. B.Tech(IT)
|
|
|
|
|
The best and powerfull Development tool in linux is Vim
Enjoy it.
|
|
|
|
|
Hey guys,
For the last couple of hours i've been messing around with regex. I've never dared to lay my hands on this so please bare with me.
Basicly i'm trying to get some info from the following source
<random htmlcode here>
<td style="BORDER-RIGHT-STYLE:none;">
<a id="dgWachtlijstFGI_ctl03_hlVolnaam" title="Klant wijzigen" class="wl" href="javascript:
Pop(600,860,'klantwijzig','FrmKlant.aspx','?Wijzig=true&lcSchermTitel=&zoekPK=+++140+12++8',false,true); ">FIRST LINE A</a>
(SECOND LINE A)<br>
THIRD LINE A
</td>
<random htmlcode here>
<td style="BORDER-RIGHT-STYLE:none;">
<a id="dgWachtlijstFGI_ctl04_hlVolnaam" title="Klant wijzigen" class="wl" href="javascript:
Pop(600,860,'klantwijzig','FrmKlant.aspx','?Wijzig=true&lcSchermTitel=&zoekPK=+++140+12++8',false,true); ">FIRST LINE B</a>
(SECOND LINE B)<br>
THIRD LINE B
</td>
<random htmlcode here>
What i came up with this far is the following (thanks to rubular.com)
<?php
$bestand = 'output.txt';
$fd = fopen($bestand,"r");
$message = fread($fd, filesize($bestand));
$regexp = "FrmKlant.aspx.*\">(.*)<\/a>\s(.*)<br>\s(.*)\s\s(.*)";
if(preg_match_all("#$regexp#siU", $message, $matches))
{
print_r($matches);
}
?>
This actually seems to put the first and second line i need in a multidimensional array. So far so good, because i want a multidimensional array.
However, it doesn't seem to capture the 3rd line. And somehow it creates array[4]
[1] => Array ( [0] => FIRST LINE A [1] => FIRST LINE B )
[2] => Array ( [0] => (SECOND LINE A) [1] => (SECOND LINE B) )
[3] => Array ( [0] => [1] => ) [4] => Array ( [0] => [1] => )
What i'm looking for is this:
[0] => Array ( [0] => FIRST LINE A [1] => FIRST LINE B )
[1] => Array ( [0] => (SECOND LINE A) [1] => (SECOND LINE B) )
[2] => Array ( [0] => THIRD LINE A [1] => THIRD LINE B ) )
As you might have noticed, i'm lost! Any help would be greatly appreciated.
|
|
|
|
|
Hi,
I've received an odd request from a client and can not figure out a sufficient way to solve the case which can be summarized as:
There is a MailTo link on a PHP coded page and as you all know once clicked it triggers the installed mail application, if there is any. In case there is no mail application installed on the client's pc is there a way to forward the client to another page with a mail to us form?
P.S. I know it could have make more sense to use only the mail form but this is exactly what is being expected :/
Thanks..
|
|
|
|
|
It seems to me that the problem is not one that PHP running on a server can handle, since the server has no way of knowing what is or isn't installed on the client where the browser is located.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Walt's right - this is a client-side issue. Maybe someone who knows about javascript/ajax could say whether you could do something like this pseudocode
<script>
function on_click_mail_request_button() {
if (start_mail_agent(to, subject, ...) != success)
document.URL = url_of_mail_page;
else
;
}
</script>
The real issue is whether there is such a thing as what I've called "start_mail_agent".
Good luck!
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Sounds like an exercise in managing user expectations.
If the goal is to permit the user to use a familiar email application if they have one else a form as a backup, then I would offer the user a add-on program to accomplish said task, at an inflated cost to develop (or outsource) and lost time (6 months+) that maybe can run under flash or java.
Or tell them you can design a web form that will provide a common interface based on html best practices while staying on budget and on time!
Then sit back and see how much money and time they are willing to throw at it...
|
|
|
|
|
Hi ,
I need to encrypt the plan text using AES algorithm in java and decrypt the encrypted text using C.Any please give solution ASAP.
Thanks in Advance
|
|
|
|
|
|
What has this got to do with Linux? C and Java are platform independent, so that means it can run on pretty much any platform that has available compilers, so this means that this is not really a question appropriate for this forum (Unless of course you are planning on using a library for the encryption/decryption that only runs on Linux, etc). A better place would be in the Java and C forums.
Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science.
WYSIWYMGIYRRLAAGW: What You See Is What You Might Get If You’re Really Really Lucky And All Goes Well.
|
|
|
|
|
Hi,
thanks for checking out my message
I need a help to convert .pyc files to .py files
i am currently working in python in which i have to decompile the python code and make changes.
For that i need to convert .pyc files to .py files
Any solutions to this issue?
Thanks
-
MK
|
|
|
|
|
|
hi,
Thanks for the useful suggestion u gave
The url you mentioned is a great help to me now i can convert .pyc files to .py files with ease. But i have one issue
when i am trying to convert a particular .pyc file it is returning a corresponding .py file but with 0 bytes .
No data is there ..
The file i am trying to convert .pyc file is 134.3KB size ..
All remaining files i can convert but this file is the main class file for the project i am working
So Kindly advise me any suggestions if any to this issue .
|
|
|
|