R

150

Solutions

342

Contributors

R is a programming language and environment used primarily for statistical data analysis.

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

Sign up to Post

What is the most comprehensive, and with highest quality, cheat sheets (infographics) source for programmers available?

I found the best source about ten years ago, but I can't find it now. It had cheat sheets in full-colour and laminated, just like on this page:

http://www.cheat-sheets.org/saved-copy/jquery12_colorcharge.png

The best would be if they are available in digital format also. Price doesn't matter. They should encompass any scripting and programming language, both on client side and server side.
0
hello experts

can I know the best and simple way to learn any program language such as C, C++ or even java ?
I graduate as IT but until now I could not catch these types of programming because too many codes too many difficult things and I hope one day become like you solve and help other problems,
I searched and read your answers to the people who are like me and I found you guys have a good knowledge in programming specially java and C++.
how do you learn these programs I mean what way did you follow to make it easier for you to understand.
I hope you give me a simple way to start from as I'm human like you :)

Thank you experts,
0
Hello

I would like to learn more about API's.

I understand there are REST API's, SOAP, web services, GRAPH API's etc.

CONFUSED!

1. What is the difference between an API and a web service

2. What is the difference between REST and SOAP

3. Where would one use REST and one use SOAP and one use Web Services

4. Anything else useful ;-)

Can someone explain in layman's terms or point me in the right direction?
0
Hello

We currently run an application that uses a standard 3-tier architecture.

Web - App - Database

All this on Windows Server.

We have pulled in the logs from the web and app server to a Splunk database.

We would like some monitoring of said application and there are multiple vendors that can so this. Of course, these vendors also want to charge us a lot of money!

I was thinking of developing a front end to Splunk that can parse the logs and display exactly what we need in graphical form.

1. Errors pertaining to users

2. Bottlenecks

3. Systems down

... you get it.

Is this possible? What sort of API's does Splunk expose?
0
EE experts: I have inherited maintenance responsibility for a MS-Access 2003 application written by a boy wonder mathematics genius who has written some pretty exotic code from which I have learned some useful lessons. But . . . . Some of his code has some very serious amateur programming errors in technique. Like hard coding the connect string to a back-end database in every occurrence where it is needed. I have been maintaining this application for 8 years. I haven't worked on it in 4 years and seemed to have forgotten everything I knew about it and MS-Access 2003.

When I double click the Front-end.mdb file in Windows Explorer the application runs and presents the RUN-TIME_ERROR-3044 screen shown below. When I click the "Debug" button on the Run-Time dialog box window DOCMD.OPENFORM opens with a yellow arrow showing the line of code that threw the exception. This tells me that the exception occurred somewhere in the "Orders" form. But I can not find anywhere in the "Orders" form where the back-end database is being connected to using the connect string in RUN-TIME_ERROR-3044.

If I start the application with alt-F11, I can set a break point where the application is throwing the exception. When I single step using F-8 it doesn't tell me anything. Is there somewhere that I don't know of where this connect string parameter is being set that I don't know about?

I have a previous version of the same application in another MDB file that works just fine but I can't find …
0
I want to get report for individual user like when they are logged in,What they are doing,Ideal time,list of commands they have executed in Linux through shell script??

Like I have three user called A,B,C
I want to prepare status report for each user through shell scripting
0
If i am to choose between Visual Studio Pro of Microsoft and KOMODO IDE of ActiveState.  which is one would be a better IDE based on your experience. price should not be a factor.
0
Hello Folks,

Does anybody know a good compiler for BATCH files (cmd, or bat) to EXE? or a powershell(.PS1) to EXE?

Thanks for looking
0
have a new polycom vvx410 with the latest firmware and need to simply set a parameter to 1.

voIpProt.SIP.header.diversion.enable="1"

cant find the setting in the web interface, so i exported the SIP settings and its basically blank with no parameters set.  guessing i need to add that code and reimport settings?  if so how would the code go into the cfg file?

new to these phones and basically teaching myself as i go.  TIA
0
Hello:

I created a macro for an ERP application that open a couple of windows and runs their processes.  In addition, I have configured Windows Task Scheduler to run this macro, automatically.

The only issue is that the ERP windows have dates in them.  So, in order to have the macro's .mac file "know" to run those two routines on a certain date, the .mac file has to be edited in Notepad.

Is there any sort of tool that will, somehow, automatically edit a .mac file to change the dates to be the last day of the month?

Thanks!

John
0
Hi All,

As we know that in R language you can store a  data file into a data.table and can do all kinds of data manipulations to the table variable. data.table has got a lot of built in methods that could be used to do data manipulations on that table object....

Can i do similar - like read and store a csv file into a data.table (how to do it in python)? so that i can do all kinds of manupulation to it,? can you show me some sample python code example.
Does python can got something similar...like a table object that I can use? or anything close?

Thank you
0
Hey all,
I am trying to get my feet wet in R programming for statistical analysis. '

Can anyone of you, tell me what is the basic differences and similarities between a list and vector, in a simple  layman’s terms…
What is a  data frames?

Thank you
0
What programming code does the PlayStation 4 and Xbox 1 use for games like NBA 2k, and Madden?
0
Oh dear experts,
Im wondering if the new Visual Studio 2017 is for free?
regards
0
Hi, friends,

I have written a (VB).NET console application that does external processing of some text information and is called repeatedly and often from a multithreaded application. Even while each instance runs only for a short time, it's possible that two instances run concurrently.

Unfortunately I observe crashes of the console application, and it rund flawless in the debugger with the same dataset. This behaviour seems to occur more often since I log more data ( = longer run time of each instance = more concurrent processes).

Due to my own convenience I've made use of the My.Settings facility for various program data. This data is updated from time to time by the console application, but it's no problem with what version of that data the application instance runs.

My suspicion is that parallel instances of the console application collide when accessing the application config file.

Unfortunately I don't see anything in the event log nor can I find any crash dump files ...

Any tip how to circumvent that problem ?
0
Looking for a solution to this sql statement

declare @ID int =17592

(select TOP 1 LineNum from a where ID=@ID
 order by desc)
0
I am capturing labor data in the form of an excel file (Single row per employee), and want to import that into an ACCESS or SQL database.
I am thinking of starting with Access as it is more user friendly (I Mostly VBA programming experience).

I see some examples, but one problem I am running into is that each day I get the last 5 days of data (in case the manager edits the older data), so I am looking to update an replace older data each day. One approach is to delete the last 4 days of data, then import everything as new.

Just looking for some suggestions on best way to get into database, so I am not missing something that I later regret..

Not sure how I will award point, maybe split it multiple good replys
0
 

 
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeMap;
 
public class MyHashMapEntrySet3 {
 
    public static void main(String arg[]){
      HashMap hm = new HashMap<Integer, String>();
    	//HashMap hm = new TreeMap<String, String>();
    	//HashMap hm = new LinkedHashMap<String, String>();
        //add key-value pair to hashmap
        hm.put(3, "C");
        hm.put(1, "A");
        hm.put(2, "B");
        //hm.put(3, "C");
        System.out.println(hm);
        //getting value for the given key from hashmap
       /* Set<Entry<String, String>> entires = hm.entrySet();
        for(Entry<String,String> ent:entires){
            System.out.println(ent.getKey()+" ==> "+ent.getValue());*/
       //d }
    }
}

Open in new window


{1=A, 2=B, 3=C}


i wonder how i got above sorted output based on key all the time first 1 then 2 then 3 key set? please advise
0
When an application is started, what are the steps it goes through until data is saved and the application is closed? What are the interactions with the registry and .ini files etc.

Ex. - 1. Executable is left mouse clicked. 2. The application takes the credentials and authenticate. 3. Assigns privileges etc.

Where does the security token fit in this sequence?
Where does the registry/ini files fit is this sequence?

I want to put the answer in a diagram to assist with troubleshooting
0
need the answer as soon as possible. thanks in advance
0
I have a VB.NET application that looks for a specific folder called "datarepository" that gets created in the Windows temp path.  The settings value within the application is named "datapath".  

Below is the value that is within the settings:

Name              Type                 Scope                                Value  

datapath         String               User                                 "C:\Users\<username>\AppData\Local\Temp\datarepository"




Within the vshost.exe.config file the values show as the following:

<setting name="datapath" serializeAs="String">
        <value>C:\Users\&lt;username&gt;\AppData\Local\Temp\datarepository</value>
</setting>

Please note the "&lt" around the "username" within the string value.  I think this is causing an error within the application as the path is not found.  Can someone advise on how to pass in the value so I can be certain that the folder and path are created correctly in both Win 7 and 10 OS?

Regards,
aj85
0
I am programming a gateway for the current website I am working on .

The callback posting from the gateway requires a web service query to eliminate man in the middle attacks.

When the call back is posted, the following information is sent

$gtpay_tranx_id = $_POST['gtpay_tranx_id']//Transaction id
$gtpay_tranx_status_code = $_POST['gtpay_tranx_status_code']//'==> 00
$gtpay_tranx_curr = $_POST['gtpay_tranx_curr']//'==> NGN
$gtpay_tranx_status_msg = $_POST['gtpay_tranx_status_msg']//'==> Approved by Financial Institution
$gtpay_tranx_amt = $_POST['gtpay_tranx_amt']//'==> 140000.00
$gtpay_cust_id = $_POST['gtpay_cust_id']//'==> destiny@icecoolcontracts.mx
$gtpay_echo_data = $_POST['gtpay_echo_data']//'==> Transaction ID:AS20170222150106;ClientName: Destiny Amana [Icecool Contracts Limited]: Purchase of Basic Plus
$site_redirect_url = $_POST['site_redirect_url']//'==> /gtpayresponse.asp
$gtpay_gway_name = $_POST['gtpay_gway_name']//'==> webpay
$gtpay_tranx_hash = $_POST['gtpay_tranx_hash']//'==> CDFB59FDBCE4DCCC7A1348EFF165AC2AA1438356FE042D0DCD5F39DD4DF3F7F4C79BDCF586B858626748CCD0D79B6A39D9A1532949FA5FB7C4E4CBAD3774D335
$gtpay_verification_hash = $_POST['gtpay_verification_hash']//'==> 7CBC424420E73377B6BB1B93979CED3D2A7C53576B13EC61B8F271CCF0025B1EFB4553592382559667560D8FCD3405FA2DC53AF18B6938AE55A67F37AB11F1F1
$gtpay_full_verification_hash = $_POST['gtpay_full_verification_hash']//'==> …
0
Hi,

I need to create a java program to enter the time in hours and minutes.

The time entered is assumed to be a valid time on the 24 hour clock. The program should print out the time followed by one of AM, PM, Noon, midnight as appropriate.

I am new to programming and I would appreciate any help!

Many thanks
0
Microsoft seem to be getting better at updating their control ID lists for major new releases of Office but for the 365 updates, it's not quite there yet.

How can I find the ID for a 2016 ribbon control when it's not in the documentation:

https://www.microsoft.com/en-us/download/details.aspx?id=50745

For example the recent addition of SVG support added a new Icon button to the Illustrations group of the Insert tab but the control ID is not listed in the document above.

I need to hide this button and have tried [and failed] all sorts of logical strings for the ID based on what else I know is in that group:

- ShapesInsertGallery
- SmartArtInsert
- ChartInsert

...but is there a more intelligent way of finding out what it is rather than guessing?

I tried searching the CommandBars object for clues but to no avail:

Sub SearchCommandBarControls()
  Dim x As Long, y As Long
  With Application.CommandBars
    For x = 1 To .Count
      For y = 1 To .Item(x).Controls.Count
        If UCase(.Item(x).Name) Like "*ICON*" Then Debug.Print "cBar : " & .Item(x).Name
        If UCase(.Item(x).Controls(y).Caption) Like "*ICON*" Then
          Debug.Print "Control : " & .Item(x).Controls(y).Caption
        End If
      Next
    Next
  End With
End Sub

Open in new window

0
The idea is to be able to right click on a shortcut and be able to select an option to "copyaspath", which will store the Target URL in memory so that it will be available for pasting.

The command line would need to be placed in Reg Key: HKey_Classes_Root\InternetShortcut\shell\copyaspath\command
Use the Default String Type to add command line.

This works:

cmd.exe /c FINDSTR "URL=" "%1"|clip

Results:
BASEURL=http://site/index.cfm
URL=http://site/index.cfm

But we only need the URL line without "URL="

I was thinking this but not working:
cmd.exe /c For /F "tokens=2 delims==" %1 IN ('FINDSTR "URL"') DO (%1|Clip)

Any help would be appreciated.
0

R

150

Solutions

342

Contributors

R is a programming language and environment used primarily for statistical data analysis.

Top Experts In
R
<
Monthly
>