I am in need to somehow display image on Linux console. Why am I need it?
I need to manually enter CAPTCHA code. However my application runs on remote linux system and I am connecting to it via SSH (Bitwise client). I have thought about writing directly to screen, but hey - I see only "clone" of terminal not the remote terminal itself so this is impossible to achieve. Maybe some kind of Img2Asci converter? Please advise.
You want to forward your X session.
on the remote system make sure xauth is installed.
on the client system make sure an X client is installed (Xming for windows)
Connect with ssh -X from a command line or with putty enable X forwarding.
You can then either use display filename or most applications that so that sort of thing will pop up if a display is detected
Assuming you can't forward your X session, perhaps something like jp2a, which converts JPEG to ASCII ?
convert http://www.google.com/intl/en/images/logo.gif jpg:- | jp2a -
....... .':.
.::'....':xd. dX'
.ld. .. . oX. ...
;O' .c;..'cxc ;,...,c;. .:'.,lxc. dX. ,:'.,dx.. .
oO. .ox. ,x0 .cd. .cd..ll l0. xX. :K,..,::.
cxx. .',cl 'x0 lK'.cx ;k, lO; .ll. dX. o0:
,dkc. :kd :kx. :d; ,ol. .lc. .''lk' kX' oOo'...
.;:cc;,,',,. .;;,'.. .,,'... ''',:lxo. .','. .,::;.
.oc. dO
lk;....'c'
.'....
Related
I am using Alfresco community edition-5.1.x set up SMTP configuration in my production server whenever user doing activity in alfresco user get notifications mail, We able to get all the information but in the mail notification mail down alfresco url is there with my domain name (i.e http://mydomainxx.com:5038) when click the link not working browser because its wrong url how can i change to (http://mydomainxx.com) only domainname not with port number , I am stuck on that any can help out.
You should change the default alfresco-global.properties:
alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http
share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http
In your case just changing the port to 80 would be sufficient.
There's a couple of places mentioned here that you could try out (haven't tried them myself). If that proves to not work, IMHO the easiest way is to simply change the notification FTL's with the URL you want (found at "Company Home/Data Dictionary/Email Templates").
However, it is not the cleanest one, so decide for yourself whether you want to take that route.
Hope this helps someone.
#
# URL Parameters(SSL)
# -------------------------
alfresco.context=alfresco
alfresco.host=yourdomain.com
alfresco.port=443
alfresco.protocol=https
share.context=share
share.host=yourdomain.com
share.port=443
share.protocol=https
## Non-ssl
alfresco.context=alfresco
alfresco.host=yourdomain.com
alfresco.port=8080
#<YOUR_PORT_NUMBER>
alfresco.protocol=http
share.context=share
share.host=yourdomain.com
share.port=8080
#<YOUR_PORT_NUMBER>
share.protocol=http
I have just installed dcm4chee4-4.4.0.Beta1, following INSTALL.md instructions and everything works fine except movescu test.
When I run this test I can see an error in standalone/log/server.log (previously I launched in another console storescp -b11115). This is the error:
2015-09-13 12:48:49,105 INFO [org.dcm4che3.net.Association] (pool-6-thread-7) DCM4CHEE<-MOVESCU(7): processing 1:C-MOVE-RQ[pcid=1, prior=0
cuid=1.2.840.10008.5.1.4.1.2.2.2 - Study Root Query/Retrieve Information Model - MOVE
tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian failed. Caused by: org.dcm4che3.net.service.DicomServiceException: Unknown Move Destination: STORESCP#localhost:11115
at org.dcm4chee.archive.retrieve.scp.CMoveSCP.calculateMatches(CMoveSCP.java:184) [dcm4chee-arc-retrieve-scp-4.4.0.Beta1.jar:]
I think this is because of configuration, maybe I have to add STORESCP as acceptedAET or similar, but I can find info on how to do it. I search through ldap using Apache Directory Studio, but I didn't find anything.
Thanks in advance.
Using dcm4che3, it goes like this if you're implementing an SCP and need to define which other SCPs are allowed to C-STORE things to you.
// Usual calamity creating Connection, ApplicationEntity and Device
...
ApplicationEntity ae = new ApplicationEntity("MYAETITLE");
String[] acceptedAETs = { "STORESCP", "GEPACS" }; // etc...
ae.setAcceptedCallingAETitles(acceptedAETs);
I assume that your favourite SCP (STORESCP) may need to know where to find the SCP known by MYAETITLE; identified by IP address and port. Typically you connect to an SCP as a SCU, issuing a C-MOVE (in the scenario laid out here) instructing the SCP to do a C-STORE to the AET identified in the C-MOVE.
I'm a bit confused by your choice of AE Title in your question (STORESCP) because that indicates that you kind of mix up the two SCPs involved here; the one receiving the C-MOVE (which should not be called STORESCP :) and the one implementing the C-STORE behaviour. The answer I gave above, is aimed at the SCP implementing the C-STORE behaviour.
I am reading Windows event logs with JNA as below:
EventLogIterator iterator = new EventLogIterator("Security");
while (iterator.hasNext()) {
EventLogRecord curRecord = iterator.next();
}
But an exception is thrown (other channels like Application are read successfully):
Exception in thread "main" com.sun.jna.platform.win32.Win32Exception: A required privilege is not held by the client.
at com.sun.jna.platform.win32.Advapi32Util$EventLogIterator.<init>(Advapi32Util.java:1929)
at com.sun.jna.platform.win32.Advapi32Util$EventLogIterator.<init>(Advapi32Util.java:1922)
at com.emc.windowsagent.EventLogReader.getEventsByIterator(EventLogReader.java:155)
at com.emc.windowsagent.WindowsAgentMain.main(WindowsAgentMain.java:17)
Is there a way to obtain privilege to read Security events?
Run the application as Administrator.
Hi there Follow simple steps
To get the security logs from the windows we need to change the security permisions via regedit`.
Steps to follow
Type regedit in windows+run
Find
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\system
In the right pane of System key, find EnableLUA DWORD and double click on it.
Then restart the operating system.And then add the java code
it will work.
I am using apache.commons.net.FTPClient to get some files from customers but I found that there is a ftpserver that doesn't process the command list as it should because it always return the current directory instead of the one that I indicate.
I found out that mlistFile (MLSD) works great on that machine!
My question is:
Is there any way to find out with apache.commons.net if there I should use the MLDS or LIST commnad?
Any flag or something like that?
Thanks
Here is what I found (maybe too late?): you can invoke the function listHelp() on a FTPClient object to get the commands recognized by the remote server. You get an output such as
214-The following commands are recognized.
ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM MKD
MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD RNFR
RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD
XPWD XRMD
You just have to check if MLSD is in the list.
You can use "FEAT" command.
It shows commands you can use.
I want to create a simple USSD Menu Browser Application in Java. I have integrated with
one of the Mobile operator to get the USSD Platform. And i have successfully implemented &
tested USSR message pushing. But not able to get started with USSN (Menu Browser) in java. So please help me how to get started with simple USSD menu browser application.
You can use a modem with AT commands.
You need 3GPP TS 27.007 (search in google for latest version), command called CUSD.
Send something like this AT+CUSD=1,AA180C3602,15 which means
1 - I want to read result,
AA180C3602 - *100# (GSM 7bit)
(http://engnick.blogspot.com/2011/09/gsm-7bit-part-of-pdu-packencoding.html),
15 - encoding type particular to PDU.
You'll will receive as a response like this:
+CUSD: 0,"00390030002C003000320020044004430431002E002004210443043F043504400410041E041D0020043E043F0440043504340435043B043804420020043D043E043C04350440043000200437043000200033002C00350440002F043400210020002A0035003000320023",72
, where
0 - ok,
"..." - text in UTF-16 and
72 - encoding type.
If your response requires an answer (menu mode), you will see 1 instead of 0 in first parameter. Just send expected number and you'll support this session (AT+CUSD=1,31,15 - for sending a number 1).