How to create multiple AE title in DCM4CHEE? - dcm4che

I want to create a mutliple receiving AE title which listening on same port but all AE titles are different
Example 192.168.0.1#localhost:11112 - send from A Location
192.168.0.1#localhost:11112 - send from B Location
Is there any other way to get different location in dcm4chee (pacs database).

In the JMX Console, there is dcm4chee.archive, service=StoreScp. The called AE Titles field will accept multiple AE titles (backslash separator). This allows DCM4CHEE to listen on multiple titles (e.g. DCM4CHEE#localhost:11112 and MY_PACS#localhost:11112).

Related

how to make vmware API for tags and ip address link?

is there any api for the vmware virtual machine tags and ip addresses fetching and joining them... for example vm1 would have an ip of 1.1.1.1 and user defined tags like app=db...
I can query the tags but doesn't map to virtual machine nor iP address...
i used cis tags api but none provide the useful output....
vsession = self.vCenterSession()
#print(vsession)
all_tags =
vsession.get('https://10.156.0.10/rest/com/vmware/cis/tagging/tag')
all_tags_py = json.loads(all_tags.text)['value']
You'll have to combine several calls together to pull all that information.
Retrieve the VM ID with: List VM
Retrieve the VM's IP by referencing the VM ID with: List Guest Network Interfaces
Retrieve the Tag ID with: List Tag
Update the tag with: Update Tag

Create letters, contract templates with rich text, save then in SQL Server table

I need to dev a web app that permits users create or write their own templates for letters, contracts, or mails.
This templates must be written with Rich Text Formatted on a user interface like stack overflow use.
The user can use some names columns of a SQL Server table or view, to insert then in the text, similar what MS Word do.
Documents must be saved in a SQL table and then that text must be use to create the final view this the data of the related field.
Example:
Columns of table clients:
clientId Name ProductName
-----------------------------
1 Cris Tablet
Letter created by user:
Hello dear *Name*
We've send you your *ProductName*
Sincerly
My Company
Final view in html:
Hello dear Cris
We've send you your Tablet
Sincerly
My Company
I've work with asp.net and SQL Server... What do you recommend to achieve this?
This can be achieved using C#, i doubt if SQL alone can do it, which language are you using in asp.net?If it is C#, I can explain.
First
On the User login page
After Each user as logged on
On the Button Onclick event
Session["user"] = username.Text;
Response.Redirect("nameofthepagetocreateletter");
Second(To create the letter template)
On the nameofthepagetocreateletter
page_load event
loginname.Text = Session["user"].ToString();
also you will have a text control named "loginname", as well as 5 text field to write the letter
First text field-this will have its default value set to "Hello dear"
Second text field-this is the loginname
Third text field-this will have its default value set to "We've send you your"
Fourth text field-this is the product name field
Label field- this can be set as "sincerely"
Fifth text field-this is company name
I hope this helps.

Specifying multiple Domain Bases in Rocket.Chat LDAP

On Rocket.Chat's LDAP configuration page, the helper text for Domain Base states that you should enter (emphasis mine):
The fully qualified Distinguished Name (DN) of an LDAP subtree you want to search for users and groups. You can add as many as you like; however, each group must be defined in the same domain base as the users that belong to it. If you specify restricted user groups, only users that belong to those groups will be in scope. We recommend that you specify the top level of your LDAP directory tree as your domain base and use search filter to control access.
Problem is, I don't know how to enter more than one.
My DN looks like this:
OU=IT,OU=Staff,DC=companyname,DC=local
And I want the following users to also be synced:
OU=Example,OU=Staff,DC=companyname,DC=local
But I don't know how to add them both, as the docs aren't clear, and the source code is even less clear.
I've tried the following ways:
Space separated
Semicolon separated
Ampersand (and double ampersand) separated
Wrapping them up in an array (e.g. ["OU=Example ...", "OU=IT ..."]) and as a JSON object
Pipe (and double pipe) separated
'Plus' separated (e.g. DC=local + OU=Example)
But no matter what I do, it won't sync users. The logs tell me:
Exception while invoking method 'ldap_sync_users' NoSuchObjectError: 0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of: at Object.Future.wait (/snap/rocketchat-server/511/node_modules/fibers/future.js:449:15) ...
I know I can set up a group restriction so only users in a certain group will be synced, but the helper text says I can use multiple DNs, and I want to know how to use multiple DNs
After reading RFC-4514, I discovered I should construct my DN like so:
OU=Example+OU=IT,OU=Staff,DC=companyname,DC=local
With the plus occurring between the two OUs I wish to add. Now my users are syncing correctly.

How to get with Mediawiki API all images in a category which are not in another one?

I am entirely new to API, so sorry if the question is silly.
I would like to get all images in a category in Commons let's say X, but exclude those which are also in another one (Y). I do not understand if I can actually do this.
https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmtype=file&cmtitle=Category:X
will get all of them, how to exclude some?
moreover I would like in the result to have the description of the images, not just the name of the file, is that possible?
MediaWiki has - by default - no built-in support for category building and querying intersections. To accomplish this task, extensions or external tools or multiple API queries and result processing is required.
CirrusSearch API
On Wikimedia Commons, like on the whole Wikimedia Wiki farm, CirrusSearch powers filtered search, including search for category intersections and is also available through API (action=query&list=search&srsearch=incategory:A+-incategory:B, this is Category:A minus Category:B).
FastCCI
One of the tools I can recommend (because it's a dedicated high-performance solution and actually running) is fastcci, developed by Daniel Schwen; specifically for Wikimedia Commons, there is already a database maintained and a webservice running but it's possible to set it up for any wiki, provided the tool set has a host to run on and has database access.
Query
Consider the following query URL:
https://fastcci.wmflabs.org/?c1=3302993&c2=15516712&d1=0&d2=0&s=200&a=not&t=js
https://fastcci.wmflabs.org/ - Host Wikimedia Commons fastcci runs on
c1 - ID of category 1
c2 - ID of category 2
d1 - depth of category 1 to search in (fastcci by default considers sub-categories)
d2 - depth of category 2 to search in (fastcci by default considers sub-categories)
s - Number or results to return
o - Offset
a - conjunction
t - connection type (t=js for a JSONP response; otherwise assumes being used as websocket)
Response
fastcciCallback( [ 'RESULT 27572680,0,0|1675043,0,0|27577015,0,0|27577043,0,0|27577106,0,0|27576896,0,0|27576790,0,0|23481936,0,0|17560964,0,0|11009066,0,0', 'OUTOF 10', 'DBAGE 378310', 'DONE'] );
RESULT followed by a | separated list of up to 50 integer triplets of the form pageId,depth,tag. Each triplet stands for one image or category
Resources
Sample client side implementation - to see it in action, just visit any category and next to the Good pictures button in any category page.
Example is FilesOf('Category:Saaleck') - FilesOf('Category:Rapeseed fields in Saxony-Anhalt')
Server application
Presentation on YouTube
Slides
A note on pageIDs
page IDs → page titles: GET /w/api.php?action=query&pageids=page_IDs_separated_by_pipe
page titles → page IDs: GET /w/api.php?action=query&titles=Titles_separated_by_pipe
AFAIK, there is no way to get that directly using the API. But, assuming both categories are reasonably small, you could get all images from both of them and then compute the complement in your code.
To retrieve the description, you can use prop=imageinfo&iiprop=extmetadata&iiextmetadatafilter=ImageDescription.
In the context of your example query, it would look like this:
https://commons.wikimedia.org/w/api.php?action=query&generator=categorymembers&gcmtype=file&gcmtitle=Category:X&prop=imageinfo&iiprop=extmetadata&iiextmetadatafilter=ImageDescription

Sitemap structure for local directory website (for search engine bots)

I am working on a local listings website . I have to finalize the sitemap/link directory for the site to enable the search engine bots to crawl my site effectively (the end user is supposed to search using textboxes)
I have come with the following schema : Keywords(alphabetical order)=>City(Alphabetical Orders)=>Locality(in the city above , in alphabetical order)
Please note that at the three levels described above their are no actual profiles , just a bunch of more links , ex: keyword = xyz ; city = New York , Detroit , California , Minnesota
Locality = localities list of city chosen above .
This can be culminated in two ways :
1) At the third level I provide a link to search results page (the same a end user would see)
2) I simple list links of listed entities in the sitemap itself along with relevant info( which would be additional content for the bot to determine the links relevance)
Also is there a penalty for increasing the levels (3) here , should I consider going with two ?
Note : The search results page (as seen by end user) has pagination employed with links , not ajax .
To finalize with your sitemap, you can put a link on your keywords, cities and localities also. It will help for the users to navigate your website very easily.
If you go with more increasing level with third stage then it will look like too many links on a single page. So, Google will ignore your page and it will not indexed. So, you will loose the chanse of SEO benefits.