Programming Languages-Other

20K

Solutions

19K

Contributors

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Thousands of different programming languages have been created, mainly in the computer field, and many more still are being created every year. The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, the C programming language is specified by an ISO Standard), while other languages (such as Perl) have a dominant implementation that is treated as a reference. Some languages have both, with the basic language defined by a standard and extensions taken from the dominant implementation being common.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello experts,
I am looking for an AutoHotkey to easily open/edit document based on extension.
The idea is the following:
Send F10+Tab 3 if file has ahk extension and just send F10 +Tab 2 if file finishes with other extension.
Option 1 will allows me to open/edit file with my SciTE4AutoHotkey and option 2 to open/edit with Notepad++. If there is better way to do this, please let me know.
Option 1:
edit-ahk.pngOption2:
edit-notepad-plus-plus.pngThank you for your help.
0
Hello experts,
I frequently use gmail and google drive.
I was wondering how to set up some ahk which are not part of default shortcuts keyboard proposed.
1)      Be able to download a document on drive
The following combination works but I don't know if there is an smart way to do this: {Shift}+{F10 }+ {Arrow up 2}+{Enter}
2)      Be able to download an attached file from gmail:
The following combination works but I don't know if there is an smart way
3)      Be able to attach a file when composing a new e-mail
The following combination works but I don't know if there is an smart way to do this: {Tab 7}+{Enter}
4)      Be able to open received message in a new windows
Thank you for your help.
0
Hello experts,
I was wondering how to create an AutoHotkey to perform this daily action:
Copy path of word, excel, powerpoint document.
The idea is the following:
I am working on an office document. I launch the related AutoHotkey through shortcut set up to recover path to clipboard and then paste the clipboard if I want to attach it instead of closing the file and trying to find where is located the document.
Here is the option available in word:
It can be activated through Alt + F
Copy-path.pngI don't know how to select this copy path button through the keyboard.
If you have advice or an smart way to cover this daily action please let me know.
0
Hello experts,
I am trying to find a swift way to assign EE link option through AutoHotkey.
Here is my attempt however I don't know what is wrong.

!^u:: ;URL
Send, ^x
Sleep, 50
ClipWait,1
If (ErrorLevel=1)
{
  MsgBox,4144,Error, No text appearing after one second
  Return
}
URL:=chr(34) & Clipboard & chr(34) 
LinkPrefix:="[url="
LinkSuffix:="url][/url]"
LinkURL:=%LinkPrefix% %URL% %LinkSuffix%
Send, %LinkURL%
Sleep, 50
Send, {End}
Sleep, 50
Return

Open in new window


Could you please help to revise the script?
Thank you for your help.
0
Q: How to unite interaction columns from R emmeans package dynamically generated in R-Shiny?

I am building an R-Shiny app where I need to wrangle the output from the 'emmeans' package. However, in this interactive environment where many factors may be entered by the user, the single-tibble 'emmeans' output structure will vary with each run depending on the selections made. It could go from having only a single main effect to having multiple 3-way interactions (mixed with main effects and 2-way interactions) arranged in a wide format way.

For instance, assuming the user selects FctrA (with levels A and B) and FctrB (with levels C, D, and E), the interaction FctrA_FctrB will be automatically considered as well. When (~FctrA, ~FctrB, ~FctrA+FctrB) are submitted to 'emmeans', the output tibble is structured as follows:

- the leftmost side of the tibble contains FctrA results (levels, estimates, SE, df, CLs);
- the certermost block contains FctrB results;
- the rightmost side of the tibble contains the interaction results

So far so good except that FctrA levels columns is a single column, FctrB levels column is also a single column, but the interaction portion has its levels split into two columns, one with FctrA and one with FctrB.

The above issue impairs gathering, spreading, stacking of the separate blocks owing to the dimensional discrepancy.

My question is: How can I tell Shiny ('tidyr') to find those split interaction columns and concatenate them …
0
Hello experts,
When I create dummy files and revise my procedure I always take the question number related to the question.
I was wondering if there is a way to select numeric from an URL as reported bellow:
2019-08-31_18h31_07.png
I would like to proceed like this:
1-Select URL bar with default chrome shortcut: ctrl + l
2-Launch the ahk to copy the sequence number of the URL
 

If you have questions, please contact me.
Thank you for your help.
0
Hello experts ,
I am looking for a procedure to duplicate a word from left to the right or right to the left.
Here is my attempt:
#w::
SendInput ^{Left}+^{Right}^c
ClipWait, 1
Send, {Right}+{Space}^v
Return

Open in new window

The problem with it is that it creates an extra space between word and duplicated ex : word    word    
Do you know if there is a better way to duplicate word from left to the right or right to the left without creating space?
Thank you for your help.
0
In Lotus script, I'd like to get text list data in a field as an array variable. The item num of the list data  is not fixed. I look for the way to check the item num by lotus script but I couldn't. Is there any way except for loop check?
0
In Notes and Domino, I'd like to know the max string length for view SELECT and search query. In my application, it might be very very complex. So I'd like to know the max size.
0
Hello Experts, ,
I am trying to set up a shortcut to open file location as reported bellow.
File-location.pngWhen I launch manually the following keys it works Shift + F10 + down arrow+ enter
However when I send through ahk it doesn’t.
^F8::
Send, +{F10}
;~ Sleep, 5
;~ Send, {Down}{Enter}
Return

Open in new window

Any idea?
Thank you for your help.
Regards,
Luis.
0
Hello experts,
I would like to send specific specific keys exclusively for windows explorer example:
zip file
+F7::
Send, +{F10}
Sleep, 5
Send, 7 

Open in new window


The idea is to add a loop if windows explorer windows is open if not don't send the key.
The problem is that I cannot loop on the windows title as it is not always the same. Either on windows ID.
Do you know how can I manage this?
Thank you for your help.
0
Hi everyone,

I am trying to verify number of files received as well as records in each ASCII pipe-delimited file (file<electronic_company><electronic_device>.txt) by using its associated tally file (file<electronic_company><electronic_device>tally.csv) in SAS?  

ASCII pipe-delimited file (file<electronic_company><electronic_device>.txt) - each files contains 100s of records
Associated tally file (file<electronic_company><electronic_device>tally.csv) - contains a total record number of records in each associated ASCII pipe-delimited file

I have already done the same verification in Bash scripting in Unix but my assumption is the number of files verification can be also done in SAS as well as the number of records verification in each pipe-delimited file can be accomplished by reading each tally file (file<electronic_company><electronic_device>tally.csv) that is associated with each file (file<electronic_company><electronic_device>.txt) received.  Does anyone know what is the best practice in SAS verifiyng number of files and number of records in each file?  
Any suggestions/examples would be greatly appreciated.

Thank you!
0
Hello experts,
I use the following autohotkey to send user and password.
uid := "UserName"
pw := "Password"
!m::
Send, %uid%{Tab}%pw%{Enter}

Open in new window

I would like to enhance it by adding an error and winwait loop
The idea is to have with the same shortcut key:
1-Open the site reported in ahk
2-Wait till reference windows is active
3-Send user and password

Example of winwait active.
WinWaitActive, Untitled - Notepad, , 2
if ErrorLevel
{
    MsgBox, WinWait timed out.
    return
}
else
    WinMinimize  ; minimize the window found by WinWaitActive.

Open in new window


Complementary question: How I identify the id or name related of an url to set up winwaitactive loop?
Thank you in advance for your help.
0
Hello experts,
I use the following procedure reported at: https://www.experts-exchange.com/questions/29151200 to go to a line and select text from current position:
; Joe Winograd 8-Jul-2019
Version:="1.2"
#Warn,UseUnsetLocal ; warning on uninitialized variables
#NoEnv ; avoid checking empty variables to see if they are environment variables
#SingleInstance Force ; replace old instance immediately
SetBatchLines,-1 ; run at maximum speed
SendMode Input ; faster and more reliable
TrayIconFile:="c:\Windows\System32\shell32.dll" ; use an icon from shell32.dll for the system tray
TrayIconNum:="-16775" ; clipboard icon
Menu,Tray,Icon,%TrayIconFile%,%TrayIconNum% ; display chosen icon in system tray
TrayTip:=A_ScriptName . " Version " . Version . "`nHotkey is Ctrl+F12" ; tray tip showing what the hotkey is
Menu,Tray,Tip,%TrayTip% ; display system tray tip
SetTitleMatchMode,3 ; exact match when looking for NPP GoTo dialog

^F12:: ; hotkey to perform action - this is Ctrl+F12 - use whatever hotkey you want
OldX:=A_CaretX ; get X pos of current text insertion point
OldY:=A_CaretY ; get Y pos of current text insertion point
Send ^g ; run GoTo in NPP
WinWaitActive,Go To... ; wait until GoTo dialog appears
WinWaitNotActive,Go To... ; wait until GoTo dialog disappears
Sleep 50 ; give it time to get to the new line
NewY:=A_CaretY ; get Y pos of new text insertion point
If (OldY=NewY)
{
    MsgBox,4144,Error,New line is same as old line
    Return
}
If (OldY<NewY)

Open in new window

0
Hello experts,
I have the following autohotkey command which allows me to duplicate a line
[Code]
^+y::
Clipboard =
Send, {End}+{Home}^c
ClipWait,1
Send, {Right}+{Enter}^v
Return
[Code]
I would like to apply the same process but instead of duplicating a line duplicate/paste a selected text

The command should do:
1-"Ctrl + c" to copy selected text
2-"Left" to exit selection mode and put the cursor in last line involved by the selection
3-"End" to go to the end line of the cursor
4-"Enter" to go to the beginning of next line
5-"Ctrl + v" to paste text copied in step 1

If you have questions, please contact me.
Thank you in advance for your help.
0
Hello experts,
I use the following autohotkey to open excel (64 bits)
#!e::Run C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE

Open in new window

I have another computer with excel (32 bits)
#!e::Run C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE

Open in new window

The idea is to keep the same autohotkey in both computer.
Is there an easy way to add a loop to check computer if EXCEL.EXE file exists and activate the shortcut?
Thank you in advance for your help.
0
Hello experts,
I have the following command that allows me to open notepad ++.
I was wondering how to send ctrl + n to open a new tab as notepad ++ stock previous tab.
I tried the following but it doesn't work.
Thank you in advance for your help.
#!n:: Run C:\Program Files\Notepad++\notepad++.exe
Sleep 20
#IfWinActive ahk_class Notepad
Send, ^n

Open in new window

Thank you in advance for your help.
0
Hi,
I have to design a little email tool for sending semi-automated mails to customers on behalf of employees who don't have enough time to do by theirselves. Information about mail targets (customers) are taken from a database, a mail template is used and filled with the appropriate information. At least that mail is sent out to the customer and a bcc is sent to an internal 'archive' mail address. My tool's basically working and sending mails out. But here are the requirements (and my related problems):

1. If target mail address is not correct or something goes wrong within the mail transport, the error mail must not go back to the employee (which name and address is used in the from tag). Error mails should go to a different 'pool' address, where an operator may compare and correct against the database.

2. If customer replies to the mail, that reply should go to the employee rather than to a 'pool' address or operator.

3. The mail should optically appear to the customer as if it has been sent from the employee.

I need an example on how to create the mail headers to accomplish exactly that behaviour (or one close to that). I tried some combinations and I read the RFCs, but I couldn't get the required results so far.

Any help is greatly appreciated.

TIA
Michael
0
Hi Team,                    

I am trying to retrieve rows and column values from the HTML scroll table. which works fine but time is taken by is quite high it takes around 1 hr for 270 records or so. In order to get rows which are not visible I need to scroll the table down row by row and then I add row data to List or Array-like given below:

Issue: It takes more than 01 hours of time for 270 rows having seven columns.

List<String> displayNames = new List<string>();
            Actions actions = new Actions(Driver);
 for (int counter = 0; counter < cells.Count; counter++)
	{
		//scroll the table to get all the elements
		actions.MoveToElement(Driver.FindElement(
			By.XPath("//*[@id='tbl1']/tbody/tr[" + (counter + 1) + "]/td[" +
					 colIndex + "]")));
		actions.Perform();
		displayNames.Add(Driver
			.FindElement(By.XPath("//*[@id='tbl1']/tbody/tr[" + (counter + 1) +
								  "]/td[" + colIndex + "]")).Text.Trim());
	}

Open in new window



Is there any other way I could reduce this time?
0
Hi EE,

Can you split a CSV file using PowerShell by specific date range, e.g split csv file into two everything before may 30 2018 on the first file and everything after on the second file?

2019-04-30 08:15:34.607 - This is date time format of the file I have and it's the first column of the CSV file.

Any assistance is welcome.

Thank you.
1
What am I doing wrong?

I am trying to bulk remove all the users that have access to a some resource room calendars...

$Users = Get-MailboxFolderPermission -Identity "roomresource1@contoso.com:\calendar"
foreach ($User in $Users)
{
Remove-MailboxFolderPermission -Identity "roomresource1@contoso.com:\calendar" -User $user
}

Open in new window


I can then go back and add the Default and Anonymous settings:

Add-MailboxFolderPermission "roomresource1@contoso.com:\calendar" -User "Default" -AccessRights Reviewer
Add-MailboxFolderPermission "roomresource1@contoso.com:\calendar" -User "Anonymous" -AccessRights None


Thanks in advance.
1
Hi everyone,
I am trying to create sample test SAS datasets (data1, data2, and data3) with 20 records in each from already existed three much larger datasets (largedata1, largedata2, largedata3) but values in all 20 records will have to match in each dataset (data1, data2, data3) for testing purposes. Some variables are the same and some variables are different on these three datasets (largedata1, largedata2, largedata3). I would like to keep all variables (more than 100 variables in each dataset) on for all testing datasets (data1, data2, data3).

So, for testing purposes for example, I would like to pull/create 20 records where "var1" has values 05 or 07 or 10 (all other possible values for "var1" are for example 00-99 but for testing purposes I only need 05, 07, and 10) and where "var2" has unique value (for example serial number - 298463) based on whose 20 records that will be created/pulled with "var1".  

Dilemma that I have is that these three original datasets (largedata1, largedata2, largedata3) are huge (100,000s of records in each) and I only need to create 20 records with the same values. What is the best way to create my sample test files (data1, data2, data3)?

I was thinking to start with creating one dataset first (data1) with 20 records from largedata1 and then based on those 20 records in the first dataset (data1) pull records from the other two large datasets (largedata2, largedata3)
0
How to do a client authentification by dedicated RPGLE, not for all sessions of a client.
(ACS Connection to iSeries is used). Maybe with usage of DCM certificate ?
0
I'm getiing this sbt error and i'm new to sbt and i'm trying to compile the build.scala for my existing project. When searched for the below issue in google it says to add sl4j jars in your dependencies or classpath and it will work. But i get the same error again and again. Tried adding in build.scala file but still issue. Not sure if i have put in the right version etc.,
sbt
Detected sbt version 0.13.16
Starting sbt: invoke with -help for other options
Using /home/rsa-key-20190625/.sbt/0.13.16 as sbt dir, -sbt-dir to override.
[info] Loading global plugins from /home/rsa-key-20180725/.sbt/0.13.16/plugins
[info] Loading project definition from /devops/iot/installs/trendalyze-spark-job-server/project
[info] Set current project to Trendalyze spark job server (in build file:/devops/iot/installs/trendalyze-spark-job-server/)
> compile
[info] Compiling Templates in Template Directory: /devops/iot/installs/trendalyze-spark-job-server/src/main/webapp/WEB-INF/templates
Failed to instantiate SLF4J LoggerFactory
Reported exception:
java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder
	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
	at org.fusesource.scalate.util.Log$$anon$1.log$lzycompute(Logging.scala:31)
	at 

Open in new window

0
Hello Guys,

I developed a simple project where I embebed an IE into a panel, it is ok so far.
I have two problems with my small project:

1) left and top of my IE created into a panel, I can't set it to left=0 and top = 0
2) I would like to have my IE created into my panel without any borderstyle. For this, I tried that command:
SetWindowLong(ie.Handle,GWL_STYLE,  GetWindowLong(ie.Handle,GWL_STYLE) and (not WS_CAPTION) or WS_THICKFRAME);

But I haven't had any success yet.
Web2.rar
the project has only one unit.pas and you can open it in any Delphi version. I use Delphi 2007.

After opening the project, click on the button Browse, it will create a IE into panel1, there is another button named "Mostra Pn" where a panel3 will hide or not and the IE in panel1 should resize automatically.

my code
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
  ie := CreateOleObject('InternetExplorer.Application');
  windows.setparent(ie.hwnd, panel1.handle);
  s:='http://www.microsoft.com';
  s:='https://mercado.khan.com.br/qualidade/historico.aspx';
  ie.Navigate(s);

  ie.fullscreen:=false;
  ie.MenuBar := False;
  ie.AddressBar := False;
  ie.Resizable := false;
  ie.StatusBar := True;
  ie.ToolBar := 0;

  ie.top    := 0;
  ie.left   := 0;
  ie.Width  := panel1.Width;
  ie.Height := panel1.Height+27;


  ie.visible := True;
// SetWindowLong(ie.Handle,GWL_STYLE,  GetWindowLong(ie.Handle,GWL_STYLE) and (not WS_CAPTION) or WS_THICKFRAME);  // I 

Open in new window

0

Programming Languages-Other

20K

Solutions

19K

Contributors

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Thousands of different programming languages have been created, mainly in the computer field, and many more still are being created every year. The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, the C programming language is specified by an ISO Standard), while other languages (such as Perl) have a dominant implementation that is treated as a reference. Some languages have both, with the basic language defined by a standard and extensions taken from the dominant implementation being common.