Get Hardware Info to generate computer unique key
Hello,
I am trying to port a desktop app I have in c# .net framework to adobe AIR.
One of the things I need to do is generate a computer unique key to identify the computer on the server.
In C# i would use the System.Management.Management class and get the Motherboard Serial number, CPU ID, etc... Is this possible in ActionScript? What alternatives do I have? I can't find any reference of this on the web...
Thanks
Unfortunately there isn't any way to do this in AIR currently.
The only option I can think of is to use another external program to get that data and communicate it back to the AIR app. (Currently to communicate with external apps you need some sort of bridge such as Merapi for Java. In AIR 2.0 you will be able to execute external applications directly.)
Similar Messages
-
How to generate a Unique key based on a some String value
Hello every one,
I am sorry , If I post this question in wrong group... I have a requirement to generate a unique key ( what every it may be alpha, numeric or alpha numeric) based on some String..
For ex : String str = "AbCX" - Gives a unique key based on "AbCX" value..
Is there any way we can get the unique value using Java ?
ThanksMay be not what you are looking for, but here's may idea:
use a sequence (db sequence) and add it the the string value. This way the value is unique, because the sequence is unique. So you could omit the string theoretically, but your requirement is met.
It's very easy to get a unique sequence number from the db using java, depending of the technology you use (which you did not say :-( )
Timo -
How i get hardware info with Java Applet
Hello Everybody.
first I am sorry for my english. This my first topic. I am a php developer and learning Java. I am developing a Java Applet.
Can i get client hardware info with Java Applet
Ýf i can How i do get hardware info with Java Applet.
I need sample code or documentation.
Thanx.TrojanMyth wrote:
Hello;
Can i get hardware info with Java ?? Have not a know people ?Applets are restricted, unless, as already noted, they are signed and accepted by the user. See
http://java.sun.com/docs/books/tutorial/deployment/applet/security.html
http://java.sun.com/docs/books/tutorial/deployment/applet/properties.html
In general, since Java is designed to run on multiple operating systems and machine architectures it does not provide much access to the underlying hardware. As mentioned, you can access the os via methods in the java.lang.ProcessBuilder and Runtime classes. -
I'm concerned that if someone else on a different computer typed in this info. (only requiring my computer's user name) that he would have access to contents on my desktop. I am running Mac OSX 10.6.5.
If someone on another computer would type that address in the location bar that they would open a local page on their computer, but probably get an alert that the page doesn't exist because their user name is different. You can only access pages on another computer if a server running on that computer makes them available and then you need to use the http:// protocol. Using the file:// protocol will always be limited to the computer on which you issue the command.
-
I need to get the info Message generated by the Called Program
Hi All,
I am calling an standard SAP program from my own program as follows:
SUBMIT RFBIBL00 WITH DS_NAME = V_FILE
WITH CALLMODE = 'C'
with max_comm = '1000'
with xinf = 'X'
AND RETURN.
As soon as the called program parks invoice and finish execution, it generates an info message at the status bar but I can't capture this message which contains the newly created invoice No.
I have tried to call the above program with xlog = 'X' option which prints the info messages as a log report after the programs finishes, but I am still not able to capture that log as well, although I have tried with the EXPORTING LIST TO MEMORY option while submitting the program but it just prints the log as report without sending it to memory.
Please let me know if there is some way to do it.
Regards,Hi Athar,
1. MESSAGES cannot be CAPTURED
using submit
2. For that CALL Transaction
MESSAGES Into Itab
is required.
3. For your requirement,
make a new TCODE for this program
eg. ZR0 (ZR zero)
4. Fill the bdc table
5. use this code (just copy paste)
make modifiction as per ur requirement.
6.
REPORT abc.
DATA
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
DATA: l_mstring(480).
TABLES : t100.
FILL DATA
PERFORM bdcfill USING :
'X' 'RFBIBL00' '1000'
, '' 'CALLMODE' 'C'
, '' 'XLOG' 'X'
, '' 'BDC_OKCODE' '=ONLI'
TRANSACTION
CALL TRANSACTION 'ZR0'
USING bdcdata
MODE 'N'
MESSAGES INTO messtab.
PERFORM showmsg.
BDC FORM
FORM showmsg.
MESSAGES
LOOP AT messtab.
SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
AND arbgb = messtab-msgid
AND msgnr = messtab-msgnr.
IF sy-subrc = 0.
l_mstring = t100-text.
IF l_mstring CS '&1'.
REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
ENDIF.
CONDENSE l_mstring.
WRITE: / messtab-msgtyp, l_mstring.
ENDIF.
ENDLOOP.
ENDFORM. "SHOWMSG
BDC FORM
FORM bdcfill USING a b c.
CLEAR bdcdata.
IF a = 'X'.
bdcdata-program = b.
bdcdata-dynpro = c.
bdcdata-dynbegin = 'X'.
ELSE.
bdcdata-fnam = b.
bdcdata-fval = c.
ENDIF.
APPEND bdcdata.
ENDFORM. "bdcfill
I hope it helps.
regards,
amit m. -
Generate an automatic key in alphanumeric char(6)
Hi,
Is it possible in Oracle to generate a unique key (in alphanumeric ) in the column ?
The equivalente of sequence but in alphanumeric caracters [0-9]and [a-z]
ThanksUse a sequence a trigger for auto increment and this conversion function inside trigger body.
Processing ...
create or replace type char_seq as table of char(1)
TYPE CHAR_SEQ compiled successfully
Processing ...
create or replace function convert2alpha(
num in integer,
chars in varchar2
return varchar2
as
my_digits char_seq;
my_num integer;
this_digit integer;
digits_length integer;
out_val varchar2(256);
begin
out_val :='';
digits_length := length(chars);
select substr(chars,rownum,1)
bulk collect into my_digits
from dual
connect by rownum <= digits_length;
my_num := num;
loop
if ( my_num = 0 ) then
return nvl(out_val,my_digits(1));
else
this_digit := mod(my_num,digits_length);
out_val := my_digits(this_digit+1)||out_val;
my_num := trunc(my_num / digits_length);
end if;
end loop;
end;
FUNCTION CONVERT2ALPHA compiled successfully
Processing ...
select convert2alpha(ROWNUM,'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ') as conversion
from dual
connect by rownum < 40
Query finished, retrieving results...
CONVERSION
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
10
11
12
13
39 row(s) retrievedBye Alessandro -
How to Get the Unique Key results from OWB Tables after Profile
Hi,
We are using OWB 10gR2(Paris) Beta Version.
In this version the new feature is introduced is Data Profiling.
We are using this feature to analylize the data in terms of stanadards.
We have done profiling for our tables and we are able to see the results for each table in OWB Profile Results Canvas. In this window one Unique Key tab is there to see the Unique results.
Now my question is where these results will be stored in standard tables of OWB. I want to know those exact standard tables to extract thoes Unique results in to my reports.
After profiling we are generating HTML-DB reports to view all these profile results. But we are not able to find the Uique Key tables where these results are stored.
So pls can anybody provide help on this to get these tables...
Thanks in advance...,
Ramesh P.You can use DatabaseMetaData#getPrimaryKeys.
-
hello,
this is the message i get every single time i tried to update iphoto and imovie !!!!
" A unique hardware identifier from your computer must be sent to Apple to verify eligibility."
pls need your help !
revital.I cannot access the App Store and update or download apps and have gotten this same message on my new MacBook Air. "A unique hardware identifier from your computer must be sent to Apple to verify eligibility." A step by step solution or advice would be appreciated.
-
my computer crashed and I no longer have the itunes library. i get an error msg that my iphone 3g is synced to another library - how can I get the info from the phone to the itunes library without losing everything? How do I delete old audiobooks from my iphone?
You can transfer itunes purchases: File>Devices>Transfer Purchases
The iphone is not a storage/backup device. The sync is one way - computer to iphone. The exception is itunes purchases.
It has always been very basic to always maintain a backup copy of your computer. Use your backup copy to put everything back. -
Flashplayer pop up box "Requesting permission to store info on my computer" does not respond and will not go away. How do I get rid of it. It is most annoying as it stays right in the middle of the screen.
Move cursor onto video. Right click. Click Settings, Click the "never ask again" box. Then click Close. That will work.
For some reason, that always worked for me, but in the last two days, it does not work, and it seems to freeze on the
video. See, if it works for you. -
My other computer died and have my bookmark synced with Firefox sync, however, I no longer have access to sync key and I do not want to generate a new key and erase my old bookmarks. How do I retrieve them?
Sorry, without the Sync Key you can't use Sync to recover your personal data. If you have another device that was connected that Sync account, you can recover your Sync Key from that other device in the Password Manager on non-mobile devices. See - [https://support.mozilla.com/en-US/kb/how-do-i-manage-my-firefox-sync-account?redirectlocale=en-US&redirectslug=where-can-i-find-my-firefox-sync-key#w_where-can-i-find-my-recovery-key this].
''Firefox Sync wasn't intended to be a "backup" medium, it was made to keep certain data synchronized between multiple devices.'' That "key" is used to encrypt your data before being uploaded to the Sync server and decrypt the data as it is downloaded to one of your devices. Only you have access to that "key", to maintain security over your data no one else knows that "key".
If you still have that old PC or the hard drive from that old PC, you can connect it to the new PC via USB with a USB enclosure, and you should be able to recover that data if the hard drive didn't fail.<br />
http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile -
How to best generate a unique alphanumeric key
Hi:
I have a requirement to generate a unique alphanumeric key 20 characters long.
I know that I can use sys.dbms_random.string('X', 20) but I also have a requirement to not include certain characters that could be missread, i.e. no 0 (zero), O(uppercase oh) and a few others.
My questions are:
1) Is there a way to tell dbms_random to not include certain characters in the key generation
2) If the answer to 1 is No, what would be the best way to replace the unwanted characters. I am thinking just do a translate right afterwards with a randomly generated set of characters that do not include the characters I am interested in and seeded
upon package initialization. Any other ideas.
3) Is there a better way of meeting this requirement within PL/SQL?
Thanks,
ThomasThe most safe would be to use something like below if efficient enough
select listagg(x.ltr,'') within group (order by y.step desc) key
from (select level lvl,
substr(:alphabet,level,1) ltr
from dual
connect by level <= length(:alphabet)
) x,
(with
to_base(step,num,base,quot,remain) as
(select 1 step,num,base,trunc(num / base) quot,mod(num,base) remain
from (select :sequence_value num,length(:alphabet) base
from dual
where :sequence_value between power(length(:alphabet),:key_length - 1)
and power(length(:alphabet),:key_length) - 1
union all
select step + 1,quot,base,trunc(quot / base),mod(quot,base)
from to_base
where num > 0
select step,remain
from to_base
where num > 0
) y
where x.lvl = y.remain + 1
Regards
Etbin -
Groovy Expression get Values of Unique Key
Hi all,
I am trying to create a custom error message for a unique key validation. With other error messages that just evaluate one field I have been able to do things like:
Value {0} already exists
With the token for 0 being newValue. When I am validating a unique key when I pull newValue it gives me one of the fields it validates on, is there another expression to get all the values?
Thanks!
JDEV 11.1.2.2.0hi,
you can directly use attrName to get the particular attrValue..
like instead of using newValue using attr FirstName.
if you want to customize the error message more then you can create entityImpl class and create a method that will return the custom error message i.e you have a method like getErrorMessage() then you can access it like
adf.source.getErrorMessage().. but i think the first one will solve your problem....
Regards, -
when i run keynote in the play mode, some times the computer get stuck, why?, when i run key note in the play mode, some times the computer get stuck, why?
hello,
I had the same issue. This is what I was told to do.
iWork has to be removed completely to be effective when re-installing, you must use an application removal tool to do this or it wont remove every Keynote file.
Appcleaner will do this and its free.
The following procedure has helped solve many issues with Keynote:
1 Close Keynote then use Appcleaner
2 Empty the Trash
3 Shut down the Mac, then restart and press the shift key immediately after the startup sound, then release shift when the Apple logo appears
allow the Mac to boot up to the desktop, it will take longer then usual as the hard drive is being repaired
4 restart the Mac
5 Reinstall iWork
6 Repair permissions:
Applications > Utilities > Disk Utility > First Aid: click on your system disc in the drive column
and select Repair Disk Permissions
7 open Keynote and test -
Sccm database query to get all hardware info
hi all
i have a sccm db i need to get all system hardware info where sql server is installed
result set should be
sql version
system processor info
can u help on thisYou can use a query based on v_GS_installed_Software and v_GS_Computer_System SQL views, something like:
select
from
v_GS_installed_Software vIS
join
v_GS_Computer_System vSC
on
vIS.ResourceID=vSC.ResourceID
where
vIS.ProductName0 like '%SQL Server%'
Ofcourse the Hardware inventory has to be enabled and collected first.
Maybe you are looking for
-
Network connecting mac to pc wirelessly
does anyone here have any idea how i could wirelessly connect my MBP to my PC, which is currently running vista? or if that is not possible, then via any other means? thanks!
-
Upgraded to Lion and now I cannot watch QuickTime videos in Safari 5.1. Did not have this problem in Snow Leopard. QuickTime videos do play in Firefox. I cannot even play QuickTime videos on Apple's own website. Any suggestions? I'm using a Macb
-
My quick start icons will not work why?
The quick start icons have always worked but yesterday they stopped working. Why?
-
Can't capture through line-in port SB Live! 24-bit and Linux A
Hi, I've posted this message to the ALSA User's forum but have not yet received any responses, so I'm hoping somebody in this forum can help me. I just installed a SB Li've! 24-bit card (SB040) into a Dell Server 950 running Redhat Enterprise Linux E
-
BADI BADI_SD_BILLING issue
Hi all, We're trying to implement the BADI BADI_SD_BILLING thought SE19, but appears the error text 'BADI definition BADI_SD_BILLING is only provided for SAP internal use' . Does anybody know how to use this BADI ? Thanks in advance